:root {
  --bg: #eaf7ff;
  --panel: #ffffff;
  --card: #f8fbff;
  --card-strong: #edf4ff;
  --line: #d9e5fa;
  --line-soft: #edf2fb;
  --text: #14213d;
  --muted: #70809d;
  --blue: #4c7ff0;
  --blue-deep: #3763df;
  --red: #e64d49;
  --green: #53b782;
  --pink: #d84aa0;
  --purple: #8e61e9;
  --orange: #f1a23a;
  --shadow: 0 18px 42px rgba(72, 104, 171, .16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
  opacity: .62;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 28px;
}

.hero-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 230px;
  background:
    radial-gradient(circle at 31% 38%, rgba(255, 255, 255, .95) 0 1px, transparent 2px 100%),
    radial-gradient(circle at 68% 45%, rgba(255, 255, 255, .75) 0 1px, transparent 2px 100%),
    radial-gradient(circle at 19% 70%, rgba(91, 128, 239, .24), transparent 26%),
    linear-gradient(135deg, #bcd2ff 0%, #f2edff 54%, #d7eeff 100%);
}

.hero-sky::before,
.hero-sky::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .12);
}

.hero-sky::before {
  left: 34px;
  top: 62px;
}

.hero-sky::after {
  right: 26%;
  top: 46px;
  width: 6px;
  height: 6px;
  border: 0;
  box-shadow:
    0 -34px 0 1px rgba(255, 255, 255, .95),
    24px -24px 0 1px rgba(255, 255, 255, .95),
    34px 0 0 1px rgba(255, 255, 255, .95),
    24px 24px 0 1px rgba(255, 255, 255, .95),
    0 34px 0 1px rgba(255, 255, 255, .95),
    -24px 24px 0 1px rgba(255, 255, 255, .95),
    -34px 0 0 1px rgba(255, 255, 255, .95),
    -24px -24px 0 1px rgba(255, 255, 255, .95);
}

.panel {
  position: relative;
  width: min(960px, 100%);
  margin: 142px auto 0;
  background: var(--panel);
  border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.top-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  min-height: 104px;
  padding: 26px 28px 0;
  border-bottom: 1px solid var(--line-soft);
}

.lottery-tab {
  position: relative;
  z-index: 2;
  height: 76px;
  color: #79849c;
  background: transparent;
  border-radius: 28px 28px 0 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.lottery-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #4e84f5, #416ce5);
  box-shadow: 0 12px 26px rgba(63, 103, 224, .25);
}

.tab-pill {
  display: none;
}

.theme-toggle {
  align-self: center;
  width: 64px;
  height: 64px;
  margin: 0 0 16px 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.moon-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  box-shadow: -7px 4px 0 0 #4a5a77;
  transform: translate(5px, -3px);
}

.status-grid {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.status-block {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff, #f8fbff);
  border-radius: 8px;
}

.brand-block {
  min-height: 176px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 32px;
}

.game-badge {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(160deg, #c59cf8, #744fe3);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, .28);
}

.game-badge span {
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.game-badge strong {
  font-size: 52px;
  line-height: 1;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-size: 22px;
  color: var(--muted);
  font-weight: 800;
}

.issue-line {
  margin-top: 10px;
  color: #31405f;
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
}

.issue-line strong {
  margin: 0 8px;
  color: #ef6278;
  font-size: 42px;
  line-height: 1;
}

.time-chip,
.next-issue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-top: 16px;
  padding: 0 12px;
  border: 1px solid #d5e3ff;
  border-radius: 999px;
  color: #416ce5;
  background: #f8fbff;
  font-weight: 900;
}

.time-chip span,
.next-issue span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #59bd83;
  box-shadow: 0 0 0 5px rgba(89, 189, 131, .16);
}

.action-button {
  min-width: 128px;
  height: 98px;
  padding: 0 28px;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(145deg, #5584f3, #3f69e3);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 15px 32px rgba(65, 108, 229, .25);
}

.countdown-block {
  display: grid;
  place-items: center;
  min-height: 172px;
  padding: 22px 16px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.next-issue {
  margin-top: 0;
  transform: translateY(-5px);
}

.next-issue span {
  background: #ffb5c4;
  box-shadow: 0 0 0 5px rgba(255, 181, 196, .22);
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.time-box {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
  background: linear-gradient(180deg, #fff, #eaf0fa);
  box-shadow: 0 8px 18px rgba(40, 62, 99, .13), inset 0 1px 0 rgba(255, 255, 255, .9);
  font-size: 38px;
  font-weight: 950;
}

.time-label {
  color: #73819b;
  font-size: 22px;
  font-weight: 800;
}

.refresh-button {
  width: 62px;
  height: 62px;
  margin-left: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4a5a77;
  background: #fff;
  font-size: 32px;
  font-weight: 800;
}

.refresh-button.is-spin {
  animation: spin .55s ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.last-block {
  display: grid;
  place-items: center;
  min-height: 118px;
  padding: 20px;
  border: 0;
  background: #fff;
}

.result-equation,
.mini-equation,
.scratch-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.drawing-label {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.ball {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(35, 48, 78, .1);
}

.ball.blue {
  background: var(--blue);
}

.ball.green {
  background: var(--green);
}

.ball.sum {
  background: var(--blue);
}

.ball.small {
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.operator {
  color: #72809a;
  font-size: 28px;
  font-weight: 900;
}

.tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tag-pill {
  min-width: 44px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

.tag-pill.red {
  background: var(--red);
}

.tag-pill.green {
  background: var(--green);
}

.tag-pill.blue {
  background: var(--blue);
}

.tag-pill.purple {
  background: var(--purple);
}

.tag-pill.orange {
  background: var(--orange);
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.view-tab {
  position: relative;
  height: 78px;
  color: #71809b;
  background: #fff;
  font-size: 24px;
  font-weight: 900;
}

.view-tab.is-active {
  color: var(--blue);
  background: #eef4ff;
}

.view-tab.is-active::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--blue);
}

.content-view {
  display: none;
  padding: 20px 24px 36px;
}

.content-view.is-active {
  display: block;
}

.rtable {
  width: 100%;
}

.rtable__head,
.rtable__row {
  display: grid;
  grid-template-columns: 140px 260px 1fr 170px;
  align-items: center;
  gap: 12px;
}

.rtable__head {
  min-height: 44px;
  padding: 0 28px;
  color: #7a88a1;
  font-size: 15px;
  font-weight: 800;
}

.rtable__row {
  min-height: 150px;
  padding: 24px 28px;
  border-radius: 0;
}

.rtable__row:nth-child(even) {
  background: #f4f8ff;
}

.rtable__period {
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
}

.rtable__time {
  display: grid;
  gap: 6px;
  color: #73809a;
  font-size: 22px;
  font-weight: 800;
}

.rtable__time small {
  font-size: 15px;
}

.rtable__nums {
  justify-content: flex-start;
}

.rtable__shape {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.combo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.combo-nav span,
.t2-win span {
  color: var(--muted);
  font-weight: 900;
}

.combo-nav div,
.t2-tabs,
.t2-win,
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.combo-nav button,
.t2-tabs button,
.t2-win button,
.seg button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: #6f7c96;
  background: #f3f6fb;
  font-weight: 900;
}

.combo-nav button.is-on,
.t2-tabs button.is-on,
.t2-win button.is-on,
.seg button.is-on {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 9px 18px rgba(76, 127, 240, .2);
}

.trend-wrap,
.stats-wrap,
.predict-wrap {
  display: grid;
  gap: 16px;
}

.t2-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.t2-win {
  align-items: center;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.kpi__lbl {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.kpi__val {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 950;
}

.kpi__val span {
  font-size: 18px;
}

.kpi__val--row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.kpi__val .kpi__big,
.kpi__val .kpi__small {
  font-size: inherit;
}

.kpi__big {
  color: var(--red);
}

.kpi__small {
  color: var(--green);
}

.kpi__bar,
.kpi__hint {
  margin-top: 12px;
}

.kpi__bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eef8;
}

.kpi__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.kpi__bar--split {
  background: var(--green);
}

.kpi__bar--split i {
  background: var(--red);
}

.kpi__hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.data-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.card-head,
.stats-head,
.pred-tablehd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.card-head h2,
.stats-head h2,
.pred-tablehd h2,
.ai-panel h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.card-head p,
.stats-head p,
.ai-panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
  white-space: nowrap;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.dot-a,
.legend-big {
  background: var(--red);
}

.dot-b,
.legend-small {
  background: var(--green);
}

.trend-chart {
  height: 310px;
  padding: 20px 22px 10px;
}

.trend-chart svg {
  width: 100%;
  height: 100%;
}

.zero-line {
  stroke: #cfd8e8;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
}

.trend-axis {
  fill: #77849d;
  font-size: 13px;
  font-weight: 800;
}

.trend-area {
  pointer-events: none;
}

.trend-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rhythm {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  margin: 0 22px 20px;
  padding: 3px 12px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
}

.rhythm-cell {
  width: 4px;
  height: 10px;
  flex: 0 0 4px;
  border-radius: 4px;
  background: #d8e0ef;
}

.rhythm-cell.A {
  background: var(--red);
}

.rhythm-cell.B {
  background: var(--green);
}

.rhythm-cell.tie {
  background: var(--green);
}

.trend-grid,
.dual-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 16px;
}

.bigroad-shell {
  margin: 18px 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.bigroad {
  width: auto;
  min-height: 190px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #8f8f8f #f2f4f8;
  scrollbar-width: none;
}

.bigroad__inner {
  position: relative;
  width: max(100%, calc(var(--cols) * 28px));
  min-height: 190px;
}

.bigroad::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.road-scrollbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 8px 9px;
  background: #fff;
}

.road-scrollbar__arrow {
  position: relative;
  width: 16px;
  height: 18px;
  flex: 0 0 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.road-scrollbar__arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.road-scrollbar__arrow--left::before {
  border-right: 8px solid #8f8f8f;
}

.road-scrollbar__arrow--right::before {
  border-left: 8px solid #8f8f8f;
}

.road-scrollbar__track {
  position: relative;
  flex: 1;
  height: 18px;
}

.road-scrollbar__track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #f2f4f8;
}

.road-scrollbar__thumb {
  position: absolute;
  left: 0;
  top: 5px;
  height: 8px;
  min-width: 44px;
  border-radius: 999px;
  background: #8f8f8f;
  cursor: grab;
  touch-action: none;
}

.road-scrollbar__thumb:active {
  cursor: grabbing;
}

.road-cell {
  float: left;
  width: 28px;
  height: 28px;
  border-right: 1px dashed #cfd8e8;
  border-bottom: 1px dashed #cfd8e8;
}

.road-chip {
  position: absolute;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid currentColor;
  color: var(--red);
  background: #fff;
  font-size: 14px;
  font-weight: 950;
  transform: translate(2px, 2px);
}

.road-chip.A {
  color: var(--red);
  background: #fff;
}

.road-chip.B {
  color: var(--green);
  background: #fff;
}

.road-chip.tie {
  color: var(--green);
  background: #fff;
}

.strategy-item b.tie {
  background: var(--green);
}

.road-chip.is-last {
  outline: 3px solid rgba(255, 206, 76, .8);
}

.strategy-list {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
}

.strategy-item,
.meta-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #f5f8ff;
}

.strategy-item span,
.meta-list span {
  color: var(--muted);
  font-weight: 900;
}

.strategy-item b {
  min-width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
}

.strategy-item b.A {
  background: var(--red);
}

.strategy-item b.B {
  background: var(--blue);
}

.strategy-item small {
  grid-column: 1 / -1;
  color: #8390a7;
  font-weight: 700;
}

.meta-list {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.meta-list b {
  font-size: 18px;
}

.classic-scroll-shell {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.classic-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
  scrollbar-width: none;
}

.classic-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.classic-title {
  min-width: 920px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.classic-title h2 {
  margin: 0;
  font-size: 22px;
}

.classic-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.classic-table {
  min-width: 920px;
  display: grid;
}

.classic-row {
  display: grid;
  grid-template-columns: 106px repeat(var(--cols), 42px);
  min-height: 36px;
  align-items: center;
}

.classic-row > div {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-right: 1px solid #eef2f8;
  border-bottom: 1px solid #eef2f8;
  color: #5e6b83;
  font-size: 13px;
  font-weight: 800;
}

.classic-row.head > div,
.classic-row.stat > div {
  background: #f4f8ff;
  color: #76839d;
}

.classic-row .period-cell {
  justify-content: start;
  padding-left: 10px;
  color: var(--text);
}

.classic-dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.classic-dot.red,
.classic-row .hot {
  background: var(--red);
  color: #fff;
}

.classic-dot.blue {
  background: var(--blue);
}

.classic-dot.green {
  background: var(--green);
}

.classic-row .cold {
  background: #fff1f1;
  color: var(--red);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 14px 4px 0;
  color: var(--muted);
  font-weight: 800;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-row i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.dual-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}

.dual-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #63718c;
  background: #eef4ff;
  font-weight: 900;
}

.combo-current {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  margin-right: 8px;
  border: 2px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-size: 26px;
}

.combo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 20px;
}

.combo-stats div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.combo-stats span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.combo-stats div:nth-child(n+3) span {
  background: var(--green);
}

.combo-stats b {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 32px;
}

.combo-stats small {
  color: var(--muted);
  font-weight: 800;
}

.quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quad-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quad-card span {
  color: var(--muted);
  font-weight: 900;
}

.quad-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 34px;
}

.quad-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.quad-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-top: 14px;
}

.quad-strip i {
  height: 8px;
  border-radius: 999px;
  background: #e7edf7;
}

.quad-strip i.hit {
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

.stats-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.heatbar {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.heatbar i {
  width: 120px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #58bb84, #f1c04f, #e44d4a);
}

.stats3 {
  display: grid;
  gap: 22px;
}

.stats3__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 8px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.stats3__t {
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
}

.stats3__s {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.stats3__heat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.stats3__heatbar {
  width: 126px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #74bd85, #efcf69, #e85758);
}

.s3-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.s3-block__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.s3-block__l {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.s3-block__t {
  position: relative;
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.s3-block__t::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 4px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--blue);
}

.s3-block__s {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.s3-shapes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 20px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f8;
}

.s3-chip {
  position: relative;
  min-height: 108px;
  padding: 16px 14px;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.s3-chip__lbl {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.s3-chip__num {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.s3-chip__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: transparent;
}

.s3-chip__bar i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.s3-chip--fresh .s3-chip__lbl,
.s3-cell--fresh .s3-cell__m {
  color: var(--green);
}

.s3-chip--fresh .s3-chip__bar i {
  background: #bcd0ff;
}

.s3-chip--cool .s3-chip__bar i {
  background: #94b3f6;
}

.s3-chip--mild .s3-chip__bar i {
  background: var(--blue);
}

.s3-chip--warm .s3-chip__lbl,
.s3-chip--hot .s3-chip__lbl,
.s3-cell--warm .s3-cell__m,
.s3-cell--hot .s3-cell__m {
  color: #ee6073;
}

.s3-chip--warm .s3-chip__bar i {
  background: #f1c46a;
}

.s3-chip--hot .s3-chip__bar i,
.s3-chip--never .s3-chip__bar i {
  background: #ee6073;
}

.s3-segment {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f7fc;
}

.s3-segment button {
  min-width: 78px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
  cursor: pointer;
}

.s3-segment button.is-on {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 2px 10px rgba(42, 93, 224, .14);
}

.s3-grid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  margin: 0 20px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.s3-cell {
  position: relative;
  min-height: 94px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
}

.s3-cell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background: #c9d8fb;
}

.s3-cell__n {
  color: #a6afc3;
  font-size: 13px;
  font-weight: 950;
}

.s3-cell__m {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  font-weight: 950;
}

.s3-cell--fresh {
  background: #ddf4e8;
}

.s3-cell--fresh::after {
  background: #d8f2e4;
}

.s3-cell--cool::after {
  background: #c9d8fb;
}

.s3-cell--mild {
  background: #fff5de;
}

.s3-cell--mild::after {
  background: #f0d08f;
}

.s3-cell--warm {
  background: #fff2de;
}

.s3-cell--warm::after {
  background: #efcd8e;
}

.s3-cell--hot,
.s3-cell--never {
  background: #ffe7ed;
}

.s3-cell--hot::after,
.s3-cell--never::after {
  background: #f49aac;
}

.s3-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.s3-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.s3-foot b {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.s3-foot__fresh {
  background: var(--green);
}

.s3-foot__cool {
  background: #94b3f6;
}

.s3-foot__mild {
  background: var(--blue);
}

.s3-foot__warm {
  background: #efc66b;
}

.s3-foot__hot {
  background: #ee6073;
}

.s3-foot__never {
  background: repeating-linear-gradient(45deg, #aab3c5 0 3px, transparent 3px 6px);
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 20px;
}

.stat-chip {
  position: relative;
  min-height: 84px;
  padding: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f8ff;
}

.stat-chip span,
.value-cell span {
  color: var(--muted);
  font-weight: 900;
}

.stat-chip b {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
}

.stat-chip i {
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--green);
}

.stat-chip.warm i,
.value-cell.warm::after {
  background: var(--orange);
}

.stat-chip.hot i,
.value-cell.hot::after {
  background: var(--red);
}

.stat-chip.cold i,
.value-cell.cold::after {
  background: var(--blue);
}

.stat-chip.never i,
.value-cell.never::after {
  background: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 8px;
  padding: 18px 20px;
}

.value-cell {
  position: relative;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f8ff;
}

.value-cell strong {
  font-size: 24px;
}

.value-cell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: var(--green);
}

.stats-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.ai-summary {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}

.ai-summary > header {
  display: grid;
  align-content: center;
  min-height: 156px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f8ff, #fff8fc);
}

.ai-summary > header h2 {
  margin: 0;
  font-size: 28px;
}

.ai-summary > header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.cons-row,
.ai-rank,
.ai-panel,
.pred-next,
.pred-note,
.pred-tablehd,
.pred-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cons-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-bottom: 12px;
}

.cons-row > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cons-row i {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-style: normal;
  font-weight: 950;
}

.cons-row i:first-child {
  background: var(--red);
}

.cons-row em {
  color: #8a96ad;
  font-style: normal;
  font-weight: 900;
}

.cons-main {
  min-width: 0;
}

.cons-bar {
  display: flex;
  height: 38px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fb;
}

.cons-bar b {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

.cons-bar .a {
  background: var(--red);
}

.cons-bar .b {
  background: var(--blue);
}

.cons-main small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.ai-rank {
  padding: 16px;
}

.rank-caption {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 900;
}

.rank-head,
.rank-row {
  display: grid;
  grid-template-columns: 48px 42px 1fr 54px 54px 64px;
  align-items: center;
  gap: 8px;
}

.rank-head {
  padding: 0 0 8px;
  color: #8994aa;
  font-size: 13px;
  font-weight: 900;
}

.rank-row {
  min-height: 46px;
  border-top: 1px solid var(--line-soft);
  font-weight: 900;
}

.rank-row b {
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
}

.rank-row b.a {
  background: var(--red);
}

.rank-row b.b {
  background: var(--blue);
}

.model-logo {
  --vc: var(--blue);
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--vc);
  font-weight: 950;
}

.ai-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ai-tabs button {
  min-width: 122px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #65728d;
  background: #fff;
  font-weight: 900;
}

.ai-tabs button.is-on {
  color: var(--text);
  border-color: var(--vc);
  background: #f5f8ff;
}

.ai-panel {
  padding: 18px;
}

.ai-panel header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.ai-panel header strong {
  color: var(--vc);
  font-size: 30px;
}

.ai-sub {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 900;
}

.ai-picks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.ai-picks > div {
  min-height: 104px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.ai-picks > div.a {
  background: var(--red);
}

.ai-picks small,
.ai-picks span {
  font-weight: 900;
  opacity: .88;
}

.ai-picks b {
  font-size: 36px;
}

.ai-panel blockquote {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--vc);
  border-radius: 8px;
  color: #60708b;
  background: #f5f8ff;
  font-weight: 800;
}

.ai-hist {
  margin-top: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.ai-hist-head,
.ai-hrow {
  display: grid;
  grid-template-columns: 130px 1fr 50px 50px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 900;
}

.ai-hist-head {
  color: var(--muted);
  background: #f5f8ff;
}

.ai-hist-head span {
  grid-column: span 3;
  text-align: right;
}

.ai-hrow {
  border-top: 1px solid var(--line-soft);
}

.hit {
  color: var(--green);
  font-weight: 950;
}

.miss {
  color: var(--red);
  font-weight: 950;
}

.ai-foot {
  color: #8490a7;
  font-size: 13px;
  font-weight: 800;
}

.combo-nav--predict {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.combo-nav--predict .combo-nav__lbl {
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.combo-nav--predict .combo-nav__pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.combo-nav--predict button {
  height: 54px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: #f1f4f9;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.combo-nav--predict button.is-on {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 22px rgba(76, 120, 232, .22);
}

.predict-wrap .ai-summary {
  display: block;
  padding: 20px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.predict-wrap .ai-summary > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.predict-wrap .ai-summary > header h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
}

.predict-wrap .ai-summary > header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.predict-wrap .cons-row {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.predict-wrap .cons-row > span {
  justify-content: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 950;
}

.predict-wrap .cons-row i {
  min-width: auto;
  width: auto;
  height: auto;
  color: var(--green);
  background: transparent;
  font-size: 18px;
}

.predict-wrap .cons-row i.a {
  color: var(--red);
}

.predict-wrap .cons-row em {
  color: #b4bdcf;
}

.predict-wrap .cons-bar {
  height: 48px;
  border-radius: 10px;
  background: #eef2fb;
}

.predict-wrap .cons-bar b {
  justify-content: start;
  padding: 0 20px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.predict-wrap .cons-bar .a {
  background: var(--red);
}

.predict-wrap .cons-bar .b {
  justify-content: end;
  background: var(--green);
}

.predict-wrap .cons-main small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.predict-wrap .ai-rank {
  padding: 16px 18px;
  overflow: hidden;
}

.predict-wrap .rank-caption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.predict-wrap .rank-head,
.predict-wrap .rank-row {
  grid-template-columns: 46px 42px minmax(180px, 1fr) 58px 58px 70px;
  gap: 10px;
}

.predict-wrap .rank-head {
  height: 38px;
  padding: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}

.predict-wrap .rank-row {
  min-height: 60px;
  color: var(--text);
  font-size: 15px;
}

.predict-wrap .rank-model {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.predict-wrap .rank-row b {
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  font-size: 16px;
}

.predict-wrap .rank-row strong {
  color: var(--green);
  font-size: 16px;
  text-align: right;
}

.model-logo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  color: var(--vc);
  background: #fff;
  box-shadow: none;
}

.model-logo svg {
  width: 23px;
  height: 23px;
}

.model-logo--qwen {
  color: #8062f3;
}

.model-logo--gpt {
  color: #45a37e;
}

.model-logo--deepseek {
  color: #526ffe;
}

.model-logo--gemini {
  color: #4f7ee8;
}

.model-logo--claude {
  color: #d47a55;
}

.ai-tabs-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow-x: auto;
}

.predict-wrap .ai-tabs {
  gap: 14px;
  padding: 10px 12px 0;
  overflow-x: auto;
}

.predict-wrap .ai-tabs button {
  position: relative;
  min-width: 150px;
  height: 58px;
  justify-content: flex-start;
  padding: 0 14px;
  border: 1px solid transparent;
  color: var(--muted);
  background: #fff;
  font-size: 17px;
}

.predict-wrap .ai-tabs button.is-on {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

.predict-wrap .ai-tabs button.is-on::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: var(--vc);
}

.predict-wrap .ai-panel {
  padding: 0;
  overflow: hidden;
}

.predict-wrap .ai-panel header {
  padding: 18px 20px;
  background: #eef4ff;
}

.predict-wrap .ai-panel header h2 {
  margin: 0;
  font-size: 22px;
}

.predict-wrap .ai-panel header p {
  margin: 3px 0 0;
  color: var(--muted);
  text-transform: lowercase;
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 950;
}

.predict-wrap .ai-panel header strong {
  display: grid;
  justify-items: end;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.predict-wrap .ai-panel header strong small {
  color: var(--muted);
  font-size: 12px;
}

.model-logo--panel {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.model-logo--panel svg {
  width: 29px;
  height: 29px;
}

.predict-wrap .ai-sub {
  margin: 18px 20px 12px;
  padding-left: 12px;
  border-left: 4px solid var(--vc);
  color: #4e5a73;
  font-size: 17px;
  font-weight: 950;
}

.predict-wrap .ai-picks {
  gap: 12px;
  margin: 0 20px 18px;
}

.predict-wrap .ai-picks > div {
  min-height: 78px;
  grid-template-columns: auto 1fr auto;
  padding: 14px 22px;
  border: 1px solid #ffb4b4;
  border-radius: 8px;
  color: var(--red);
  background: #fff5f5;
}

.predict-wrap .ai-picks > div.b {
  border-color: #aee0c5;
  color: var(--green);
  background: #f2fbf6;
}

.predict-wrap .ai-picks small,
.predict-wrap .ai-picks span {
  opacity: 1;
  font-size: 13px;
}

.predict-wrap .ai-picks b {
  font-size: 38px;
  line-height: 1;
}

.predict-wrap .ai-panel blockquote {
  margin: 0 20px 18px;
  border-color: var(--vc);
}

.predict-wrap .ai-hist {
  margin: 0 20px 22px;
}

.predict-wrap .ai-hist-head {
  grid-template-columns: 1fr auto;
  min-height: 46px;
  color: var(--muted);
}

.predict-wrap .ai-hist-head span {
  grid-column: auto;
  text-align: left;
}

.predict-wrap .ai-hist-head b {
  color: var(--green);
  font-weight: 950;
}

.ai-hist-cols {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) 64px 64px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-weight: 950;
}

.predict-wrap .ai-hrow {
  grid-template-columns: 110px minmax(180px, 1fr) 64px 64px;
  min-height: 58px;
  padding: 0 14px;
}

.ai-draw-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.ai-draw-mini .ball.small.sum {
  width: 38px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  box-shadow: none;
}

.ai-draw-mini .operator {
  color: var(--muted);
  font-size: 14px;
}

.ai-draw-mini em {
  min-width: 42px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #ffc4c4;
  border-radius: 7px;
  color: var(--red);
  background: #fff6f6;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.ai-draw-mini em.b {
  border-color: #bbe7d0;
  color: var(--green);
  background: #f1fbf6;
}

.pred-head {
  display: flex;
}

.pred-head .t2-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f6fb;
}

.pred-head .t2-tabs button {
  min-width: 108px;
  height: 56px;
  border-radius: 9px;
  font-size: 18px;
}

.pred-next {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.pred-next-main {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
}

.pred-next p,
.pred-next-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.pred-pick {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--green);
  font-size: 42px;
  font-weight: 950;
}

.pred-pick.a {
  background: var(--red);
}

.pred-pick.b {
  background: var(--green);
}

.pred-next-copy strong {
  display: block;
  margin-top: 14px;
  color: #6b7892;
  font-size: 17px;
  font-weight: 950;
}

.pred-next-copy strong em {
  color: var(--blue);
  font-style: normal;
}

.pred-next-copy small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pred-next span,
.pred-next-copy span {
  color: var(--muted);
  font-weight: 800;
}

.pred-next-copy > i {
  display: block;
  height: 6px;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7edf8;
}

.pred-next-copy > i span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.pred-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pred-kpis--official {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 24px 26px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.pred-mini-kpi {
  min-height: 112px;
  padding: 4px 26px 0;
  border-left: 1px solid var(--line-soft);
}

.pred-mini-kpi:first-child {
  border-left: 0;
  padding-left: 0;
}

.pred-mini-kpi span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.pred-mini-kpi strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.pred-mini-kpi strong em {
  margin-left: 2px;
  color: var(--muted);
  font-size: 19px;
  font-style: normal;
}

.pred-mini-kpi small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pred-note {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  color: var(--muted);
  font-weight: 800;
}

.pred-note b {
  color: var(--text);
}

.pred-tablehd {
  margin-bottom: 0;
}

.pred-tablehd h2 span {
  color: var(--muted);
  font-size: 16px;
}

.pred-table {
  margin-top: 16px;
  overflow: auto;
}

.pred-thead,
.pred-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: 120px 220px 80px 80px 120px 90px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.pred-thead {
  height: 46px;
  color: var(--muted);
  background: #f5f8ff;
  font-weight: 900;
}

.pred-row {
  min-height: 64px;
  border-top: 1px solid var(--line-soft);
  font-weight: 900;
}

.pred-row.is-hit {
  background: rgba(83, 183, 130, .06);
}

.pred-row.is-miss {
  background: rgba(230, 77, 73, .04);
}

.pred-table--official .pred-thead,
.pred-table--official .pred-row {
  grid-template-columns: 132px minmax(142px, 1fr) 90px 90px 118px;
  min-width: 0;
}

.pred-table--official .pred-row {
  min-height: 58px;
}

.pred-table--official .pred-row > div:first-child {
  color: #42506b;
}

.pred-table--official .pred-row.is-miss > div:first-child {
  color: #c76f82;
}

.pred-conf {
  position: relative;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2fb;
}

.pred-conf i {
  display: block;
  height: 100%;
  background: var(--blue);
}

.pred-conf span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: calc(100vw - 40px);
  transform: translate(-50%, 18px);
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 33, 61, .92);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
  font-weight: 900;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.scratch-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 24, 40, .48);
}

.scratch-card {
  position: relative;
  width: min(620px, calc(100vw - 120px));
  border-radius: 18px;
  padding: 26px 36px;
  background: #fff;
  box-shadow: 0 28px 78px rgba(16, 24, 40, .32);
}

.scratch-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #5d6880;
  background: #eef3fb;
  font-size: 24px;
}

.scratch-title {
  padding-right: 40px;
  font-size: 22px;
  font-weight: 950;
}

.scratch-stage {
  position: relative;
  min-height: 292px;
  display: grid;
  place-items: center;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
}

.scratch-stage.is-revealed {
  border-color: #eef2f7;
}

.scratch-content {
  width: 100%;
  min-height: 292px;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #fff;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity .18s ease;
}

.scratch-canvas:active {
  cursor: grabbing;
}

.scratch-hint {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.scratch-hint .check {
  display: inline-block;
  margin-right: 8px;
  color: #58bd83;
  font-size: 18px;
}

.scratch-skip {
  display: block;
  min-width: 134px;
  height: 46px;
  margin: 12px auto 0;
  padding: 0 24px;
  border: 1px solid #e6ebf4;
  border-radius: 999px;
  color: #63708a;
  background: #fff;
  font-weight: 950;
}

.scratch-locked {
  text-align: center;
}

.scratch-locked strong {
  display: block;
  font-size: 32px;
}

.scratch-locked span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.scratch-formula {
  transform: scale(1.06);
}

@media (max-width: 680px) {
  .scratch-card {
    width: min(430px, calc(100vw - 44px));
    padding: 24px 36px;
  }

  .scratch-stage,
  .scratch-content {
    min-height: 146px;
  }
}

@media (max-width: 420px) {
  .scratch-card {
    padding: 20px 18px;
  }
}

body.is-dark {
  --bg: #0d1424;
  --panel: #111a2b;
  --card: #151f33;
  --card-strong: #1a263c;
  --line: #26354f;
  --line-soft: #202d43;
  --text: #edf4ff;
  --muted: #9eabc2;
  --shadow: 0 18px 42px rgba(0, 0, 0, .32);
  background: var(--bg);
}

body.is-dark .panel,
body.is-dark .status-block,
body.is-dark .countdown-block,
body.is-dark .last-block,
body.is-dark .view-tab,
body.is-dark .data-card,
body.is-dark .combo-nav,
body.is-dark .kpi,
body.is-dark .bigroad-shell,
body.is-dark .classic-scroll-shell,
body.is-dark .classic-scroll,
body.is-dark .road-scrollbar,
body.is-dark .stats3__hd,
body.is-dark .s3-block,
body.is-dark .s3-chip,
body.is-dark .s3-cell,
body.is-dark .s3-segment,
body.is-dark .quad-card,
body.is-dark .stats-head,
body.is-dark .cons-row,
body.is-dark .ai-rank,
body.is-dark .ai-panel,
body.is-dark .pred-next,
body.is-dark .pred-note,
body.is-dark .pred-tablehd,
body.is-dark .pred-table,
body.is-dark .scratch-card,
body.is-dark .theme-toggle,
body.is-dark .refresh-button {
  background: var(--panel);
}

body.is-dark .status-block {
  background: linear-gradient(180deg, #121d31, #10192a);
}

body.is-dark .view-tab.is-active,
body.is-dark .ai-summary > header,
body.is-dark .ai-panel blockquote,
body.is-dark .classic-row.head > div,
body.is-dark .classic-row.stat > div,
body.is-dark .strategy-item,
body.is-dark .meta-list div,
body.is-dark .stat-chip,
body.is-dark .value-cell,
body.is-dark .ai-hist-head,
body.is-dark .pred-thead,
body.is-dark .rtable__row:nth-child(even) {
  background: #17243a;
}

body.is-dark .time-box {
  background: linear-gradient(180deg, #21304a, #111a2b);
}

body.is-dark .s3-chip,
body.is-dark .s3-cell {
  border-color: #24334d;
}

body.is-dark .s3-shapes,
body.is-dark .s3-grid {
  border-color: #24334d;
  background: #17243a;
}

body.is-dark .s3-segment button.is-on {
  background: #17243a;
}

body.is-dark .time-chip,
body.is-dark .next-issue,
body.is-dark .combo-nav button,
body.is-dark .t2-tabs button,
body.is-dark .t2-win button,
body.is-dark .seg button,
body.is-dark .dual-stats span,
body.is-dark .ai-tabs button {
  background: #18253c;
}

@media (max-width: 980px) {
  .panel {
    margin-top: 142px;
    border-radius: 28px 28px 0 0;
  }

  .top-tabs {
    grid-template-columns: 1fr 1fr auto;
    padding: 26px 24px 0;
  }

  .lottery-tab {
    height: 76px;
    font-size: 26px;
  }

  .status-grid {
    padding: 24px;
  }

  .brand-block {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding: 24px;
  }

  .combo-nav {
    padding: 14px 18px;
  }

  .combo-nav div {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .combo-nav button {
    height: 50px;
    border-radius: 14px;
    font-size: 18px;
  }

  .t2-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .t2-tabs button {
    height: 50px;
    border-radius: 14px;
    font-size: 18px;
  }

  .t2-win {
    width: 100%;
    gap: 14px;
  }

  .t2-win button {
    min-width: 62px;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-tab {
    height: 68px;
    font-size: 21px;
  }

  .view-tab.is-active::after {
    height: 3px;
  }

  .content-view {
    padding: 10px 10px 28px;
  }

  .ball.small {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .mini-equation {
    gap: 8px;
  }

  .tag-pill {
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    font-size: 16px;
  }

  .rtable__head {
    display: none;
  }

  .rtable__row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    min-height: 116px;
    padding: 16px 22px;
  }

  .rtable__period {
    grid-column: 1;
    grid-row: 1;
    font-size: 24px;
  }

  .rtable__time {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-size: 18px;
  }

  .rtable__nums {
    grid-column: 1;
    grid-row: 2;
  }

  .rtable__shape {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-content: flex-end;
  }

  .trend-grid,
  .dual-grid,
  .ai-summary,
  .pred-next {
    grid-template-columns: 1fr;
  }

  .quad-grid,
  .shape-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding-bottom: 0;
  }

  .hero-sky {
    height: 148px;
  }

  .panel {
    margin-top: 86px;
    width: 100%;
  }

  .top-tabs {
    min-height: 76px;
    padding: 14px 12px 0;
    grid-template-columns: 1fr 1fr 48px;
  }

  .lottery-tab {
    height: 58px;
    font-size: 18px;
    border-radius: 20px 20px 0 0;
  }

  .theme-toggle {
    width: 44px;
    height: 44px;
    margin: 0 0 8px 6px;
  }

  .status-grid {
    gap: 10px;
    padding: 10px;
  }

  .brand-block {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    min-height: 112px;
    padding: 12px;
  }

  .game-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .game-badge span {
    font-size: 13px;
  }

  .game-badge strong {
    font-size: 30px;
  }

  .brand-title {
    display: none;
  }

  .issue-line {
    margin-top: 0;
    font-size: 15px;
  }

  .issue-line strong {
    margin: 0 3px;
    font-size: 26px;
  }

  .time-chip,
  .next-issue {
    height: 26px;
    margin-top: 8px;
    padding: 0 8px;
    gap: 5px;
    font-size: 13px;
  }

  .time-chip span,
  .next-issue span {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 4px rgba(89, 189, 131, .16);
  }

  .action-button {
    grid-column: auto;
    width: 62px;
    min-width: 62px;
    height: 56px;
    padding: 0;
    border-radius: 16px;
    font-size: 17px;
  }

  .countdown-block {
    min-height: 126px;
    padding: 16px 10px;
  }

  .countdown {
    gap: 8px;
    margin-top: 16px;
  }

  .time-box {
    width: 42px;
    height: 50px;
    border-radius: 10px;
    font-size: 27px;
  }

  .time-label {
    font-size: 17px;
  }

  .refresh-button {
    width: 46px;
    height: 46px;
    margin-left: 2px;
    font-size: 28px;
  }

  .last-block {
    min-height: 94px;
    padding: 14px;
  }

  .view-tab {
    height: 50px;
    font-size: 16px;
  }

  .content-view {
    padding: 8px 6px 22px;
  }

  .ball {
    width: 42px;
    height: 42px;
    font-size: 23px;
  }

  .ball.small {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .operator {
    font-size: 16px;
  }

  .tag-pill {
    height: 26px;
    min-width: 30px;
    padding: 0 8px;
    font-size: 13px;
  }

  .rtable__row {
    min-height: 92px;
    padding: 12px 10px;
  }

  .rtable__period {
    font-size: 20px;
  }

  .rtable__time {
    font-size: 15px;
  }

  .mini-equation,
  .rtable__shape {
    gap: 5px;
  }

  .rtable__nums {
    min-width: 0;
  }

  .rtable__nums.mini-equation {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .combo-nav,
  .t2-bar,
  .card-head,
  .stats-head,
  .pred-tablehd {
    align-items: stretch;
    flex-direction: column;
  }

  .kpis,
  .pred-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .quad-grid,
  .shape-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cons-row {
    grid-template-columns: 1fr;
  }

  .rank-head,
  .rank-row {
    grid-template-columns: 42px 38px 1fr 42px 42px 56px;
    font-size: 13px;
  }

  .ai-hist-head,
  .ai-hrow {
    grid-template-columns: 96px 1fr 38px 38px;
    font-size: 13px;
  }

  .pred-thead,
  .pred-row {
    grid-template-columns: 100px 180px 70px 70px 100px 80px;
    min-width: 640px;
  }

  .stats3 {
    gap: 16px;
  }

  .stats3__hd {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 10px 14px;
  }

  .stats3__t {
    font-size: 18px;
  }

  .stats3__s {
    font-size: 13px;
  }

  .stats3__heatbar {
    width: 104px;
  }

  .s3-block__hd {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 18px;
  }

  .s3-block__l {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .s3-shapes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 12px 16px;
  }

  .s3-chip {
    min-height: 88px;
    padding: 12px 10px;
  }

  .s3-chip__lbl {
    font-size: 13px;
  }

  .s3-chip__num {
    font-size: 22px;
  }

  .s3-segment {
    width: 100%;
  }

  .s3-segment button {
    flex: 1;
  }

  .s3-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 0 12px 14px;
  }

  .s3-cell {
    min-height: 78px;
  }

  .s3-cell__m {
    font-size: 18px;
  }

  .s3-foot {
    gap: 10px;
    padding: 0 12px 16px;
  }

  .combo-nav--predict {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .combo-nav--predict .combo-nav__lbl {
    font-size: 13px;
  }

  .combo-nav--predict .combo-nav__pills {
    gap: 10px;
  }

  .combo-nav--predict button {
    height: 46px;
    border-radius: 10px;
    font-size: 15px;
  }

  .predict-wrap .ai-summary {
    padding: 16px 14px;
  }

  .predict-wrap .ai-summary > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .predict-wrap .ai-summary > header h2 {
    font-size: 20px;
  }

  .predict-wrap .ai-summary > header p {
    font-size: 13px;
    text-align: left;
  }

  .predict-wrap .cons-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .predict-wrap .cons-row > span,
  .predict-wrap .cons-row i {
    font-size: 16px;
  }

  .predict-wrap .cons-bar {
    height: 42px;
  }

  .predict-wrap .cons-bar b {
    padding: 0 13px;
    font-size: 15px;
  }

  .predict-wrap .cons-main small {
    font-size: 12px;
  }

  .predict-wrap .ai-rank {
    padding: 14px 12px;
    overflow-x: auto;
  }

  .predict-wrap .rank-head,
  .predict-wrap .rank-row {
    grid-template-columns: 32px 30px minmax(104px, 1fr) 38px 38px 42px;
    min-width: 0;
    gap: 6px;
  }

  .predict-wrap .rank-head {
    font-size: 12px;
  }

  .predict-wrap .rank-row {
    min-height: 54px;
    font-size: 13px;
  }

  .model-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .model-logo svg {
    width: 21px;
    height: 21px;
  }

  .predict-wrap .rank-row b {
    min-width: 32px;
    height: 28px;
    padding: 0 7px;
    font-size: 13px;
  }

  .predict-wrap .rank-row strong {
    font-size: 12px;
  }

  .ai-tabs-shell {
    overflow-x: auto;
  }

  .predict-wrap .ai-tabs {
    gap: 10px;
    min-width: max-content;
    padding: 8px 8px 0;
  }

  .predict-wrap .ai-tabs button {
    min-width: 132px;
    height: 52px;
    padding: 0 10px;
    font-size: 15px;
  }

  .predict-wrap .ai-panel header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }

  .predict-wrap .ai-panel header h2 {
    font-size: 18px;
  }

  .predict-wrap .ai-panel header strong {
    font-size: 24px;
  }

  .model-logo--panel {
    width: 40px;
    height: 40px;
  }

  .predict-wrap .ai-sub {
    margin: 14px 14px 10px;
    font-size: 15px;
  }

  .predict-wrap .ai-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 14px 14px;
  }

  .predict-wrap .ai-picks > div {
    min-height: 66px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    padding: 10px;
  }

  .predict-wrap .ai-picks b {
    font-size: 30px;
  }

  .predict-wrap .ai-panel blockquote {
    margin: 0 14px 14px;
    font-size: 13px;
  }

  .predict-wrap .ai-hist {
    margin: 0 14px 18px;
    overflow-x: auto;
  }

  .predict-wrap .ai-hist-head {
    min-width: 430px;
    font-size: 12px;
  }

  .ai-hist-cols,
  .predict-wrap .ai-hrow {
    grid-template-columns: 84px 172px 44px 44px;
    min-width: 430px;
    padding: 0 10px;
    font-size: 12px;
  }

  .predict-wrap .ai-hrow {
    min-height: 52px;
  }

  .ai-draw-mini {
    gap: 5px;
  }

  .ai-draw-mini .ball.small {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }

  .ai-draw-mini .ball.small.sum {
    width: 34px;
    height: 28px;
    border-radius: 8px;
    font-size: 14px;
  }

  .ai-draw-mini em {
    min-width: 34px;
    height: 22px;
    padding: 0 5px;
    font-size: 11px;
  }

  .pred-head .t2-tabs {
    width: auto;
    max-width: 100%;
  }

  .pred-head .t2-tabs button {
    min-width: 86px;
    height: 44px;
    font-size: 15px;
  }

  .pred-next-main {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
  }

  .pred-pick {
    width: 66px;
    height: 66px;
    border-radius: 15px;
    font-size: 34px;
  }

  .pred-next-copy p {
    font-size: 14px;
  }

  .pred-next-copy strong {
    margin-top: 8px;
    font-size: 15px;
  }

  .pred-next-copy small {
    font-size: 12px;
  }

  .pred-kpis--official {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .pred-mini-kpi {
    min-height: 96px;
    padding: 14px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .pred-mini-kpi:nth-child(2n) {
    border-left: 1px solid var(--line-soft);
  }

  .pred-mini-kpi:last-child {
    grid-column: 1 / -1;
  }

  .pred-mini-kpi strong {
    font-size: 26px;
  }

  .pred-note {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
    font-size: 13px;
  }

  .pred-table--official .pred-thead,
  .pred-table--official .pred-row {
    grid-template-columns: 86px 94px 54px 54px 78px;
    min-width: 390px;
    gap: 7px;
    padding: 0 10px;
    font-size: 13px;
  }

  .pred-table--official .pred-row {
    min-height: 56px;
  }

  .pred-table--official .tag-pill {
    height: 24px;
    min-width: 30px;
    padding: 0 6px;
    font-size: 12px;
  }
}
