html,
body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

body {
  background: #111;
}

#app {
  min-height: 0 !important;
  height: auto;
  overflow: visible;
  position: relative;
  width: 100vw;
  max-width: 720px;
  box-sizing: border-box;
}

.nav,
.main {
  max-width: 720px;
  margin: 0 auto;
}

.nav {
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
}

.noscript,
.status-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 12px;
  color: #333;
  background: #fff;
  font-size: 14px;
}

.status-box {
  min-height: 120px;
}

.status-box p {
  margin-top: 8px;
}

.page-spacer {
  height: 140px;
}

.trend-shell {
  position: relative;
  min-height: 0;
  background: #fff;
  overflow-x: visible;
  overflow-y: visible;
}

.trend-fit {
  position: relative;
  width: 100%;
  height: auto !important;
  overflow: visible;
  background: #fff;
}

.trend-board {
  width: 100%;
  height: auto !important;
  transform-origin: left top;
  zoom: 1 !important;
}

.trend-mode {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 10px 6px;
  background: #fff7de;
  color: #d95a00;
  font-size: 13px;
  line-height: 1.4;
  border-top: 1px solid #ffd37a;
}

.trend-shell canvas {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  transform: translateX(-50%);
  pointer-events: none;
}

.trend-shell .tongji {
  position: relative !important;
  width: 100%;
  max-width: none;
  left: 0;
  top: 0;
}

.kind img {
  display: block;
  margin: 0 auto;
}

.nav .kind div {
  width: 16.66%;
}

.nav .select button {
  width: 33.3%;
  padding: 3px 0;
  border: 1px solid #ff9200;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  font-size: 13px;
  white-space: nowrap;
}

.nav .select button.act {
  background: #ff7d27;
  color: #fff;
  font-weight: 700;
}

.rank-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #f6fff6;
  padding: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.rank-card,
.rank-rule,
.rank-meta,
.rank-table,
.rank-status,
.rank-notice {
  background: #fff;
  border: 1px solid #bdecc0;
}

.rank-title-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  text-align: left;
}

.rank-title-card h2 {
  margin: 0 0 4px;
  color: #0d7f22;
  font-size: 22px;
  line-height: 1.2;
}

.rank-title-card p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.rank-title-card button,
.rank-tabs button {
  border: 1px solid #ff7d27;
  background: #fff;
  color: #e35f00;
  border-radius: 4px;
  font-weight: 700;
}

.rank-title-card button {
  flex: 0 0 auto;
  padding: 6px 14px;
}

.rank-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0;
}

.rank-tabs button {
  height: 34px;
  font-size: 15px;
}

.rank-tabs button.act {
  background: #ff7d27;
  color: #fff;
}

.rank-rule {
  padding: 8px 10px;
  text-align: left;
  color: #444;
  font-size: 13px;
  line-height: 1.5;
}

.rank-rule summary {
  color: #0d7f22;
  font-weight: 700;
}

.rank-rule p {
  margin-top: 6px;
}

.rank-meta {
  margin: 8px 0;
  padding: 7px 10px;
  color: #d85700;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.rank-table {
  overflow: hidden;
}

.rank-row {
  display: grid;
  grid-template-columns: 22% 34% 44%;
  min-height: 46px;
  border-bottom: 1px solid #d9ead8;
}

.rank-row:nth-child(2n + 1):not(.rank-head-row) {
  background: #f4fff0;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-head-row {
  min-height: 34px;
  background: linear-gradient(0deg, #35c447, #1c8f24);
  color: #fff;
  font-weight: 700;
}

.rank-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-sizing: border-box;
  font-size: 15px;
}

.rank-no {
  color: #333;
  font-weight: 700;
}

.rank-money {
  color: #e60012;
  font-weight: 700;
}

.rank-ball {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  background-size: contain;
  color: #111;
  font-weight: 700;
  text-shadow: 0 1px 0 #fff;
}

.rank-zodiac {
  display: inline-block;
  min-width: 48px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #fff3ca;
  border: 1px solid #f3bd35;
  color: #0d7f22;
  font-weight: 800;
}

.rank-medal,
.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
}

.rank-medal {
  color: #fff;
}

.rank-medal-1 {
  background: #e13a22;
}

.rank-medal-2 {
  background: #257bd4;
}

.rank-medal-3 {
  background: #19a451;
}

.rank-index {
  background: #eef4ee;
  color: #555;
}

.rank-status,
.rank-notice {
  padding: 18px 10px;
  color: #ff7d27;
  font-size: 16px;
  font-weight: 700;
}

.rank-error {
  color: #d71920;
}

.rank-notice {
  margin-bottom: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
