:root {
  --ink: #0b0d10;
  --panel: #13161a;
  --panel-2: #191d22;
  --line: #2a3037;
  --muted: #8d969f;
  --paper: #f3f5f6;
  --acid: #d8ff3e;
  --orange: #ff7a45;
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--paper); background: radial-gradient(circle at 72% 7%, rgba(216,255,62,.08), transparent 25rem), var(--ink); }
button, a { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--paper); text-decoration: none; font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; }
.brand-mark { width: 34px; aspect-ratio: 1; display: grid; place-items: center; background: var(--acid); color: var(--ink); border-radius: 10px; font-weight: 950; }
.day-chip { color: #bac1c7; font-size: .82rem; letter-spacing: .08em; }
.day-chip span { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 15px var(--acid); }
.avatar { justify-self: end; width: 40px; aspect-ratio: 1; border: 1px solid #424951; border-radius: 50%; background: transparent; cursor: pointer; font-size: .76rem; }
main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .78fr); gap: 20px; padding: 48px 0 28px; }
.prediction-card, .score-panel { border: 1px solid var(--line); background: rgba(19,22,26,.92); }
.prediction-card { padding: clamp(28px, 5vw, 60px); min-height: 600px; position: relative; overflow: hidden; }
.prediction-card::after { content: "?"; position: absolute; right: -22px; top: -88px; font: 900 22rem/1 Arial; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.04); pointer-events: none; }
.eyebrow-row { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; }
.issue-no, .category { padding: 7px 10px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.issue-no { background: var(--acid); color: var(--ink); font-weight: 800; }
.category { border: 1px solid #3a4148; color: #b5bdc4; }
.deadline { margin: 36px 0 12px; color: var(--orange); font-size: .78rem; letter-spacing: .08em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4.15vw, 3.8rem); line-height: 1.18; letter-spacing: -.04em; text-wrap: balance; }
.context { max-width: 650px; margin: 22px 0 36px; color: #9da5ad; line-height: 1.75; font-size: .94rem; }
.source-link { display: inline-block; margin: -22px 0 30px; color: #7f8992; font-size: .76rem; text-underline-offset: 4px; }
.source-link:hover, .source-link:focus-visible { color: var(--acid); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { min-height: 114px; padding: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; border: 1px solid #353b42; background: var(--panel-2); text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.choice:hover, .choice:focus-visible { transform: translateY(-3px); border-color: var(--acid); outline: none; }
.choice-key { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border: 1px solid #4a535c; border-radius: 50%; font-weight: 800; }
.choice-copy { display: grid; gap: 5px; }
.choice-copy strong { font-size: 1.3rem; }
.choice-copy small { color: var(--muted); line-height: 1.45; }
.choice-arrow { font-size: 1.4rem; color: var(--acid); }
.choice-no .choice-arrow { color: var(--orange); }
.crowd-result { margin-top: 18px; padding: 20px; border: 1px solid #343b42; background: #0e1114; }
.crowd-result[hidden] { display: none; }
.result-heading { display: flex; justify-content: space-between; margin-bottom: 18px; }
.result-heading strong { font-size: .9rem; }
.result-heading span { color: var(--muted); font-size: .74rem; }
.result-row { display: grid; grid-template-columns: 44px 1fr 42px; gap: 12px; align-items: center; margin-top: 12px; font-size: .8rem; }
.result-row strong { text-align: right; }
.bar { height: 8px; background: #2a3036; overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; background: var(--acid); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.result-row:nth-child(3) .bar i { background: var(--orange); }
.reset-demo { margin-top: 18px; padding: 0; border: 0; border-bottom: 1px solid #68717a; background: transparent; color: #949da5; cursor: pointer; font-size: .74rem; }
.card-footer { display: flex; justify-content: space-between; margin-top: 24px; color: #707983; font-size: .78rem; }
.card-footer b { color: #c8cdd1; }
.score-panel { padding: 26px; min-height: 600px; display: flex; flex-direction: column; }
.panel-heading { display: flex; justify-content: space-between; font-size: .84rem; letter-spacing: .08em; }
.season { color: #78818a; }
.score-orbit { position: relative; flex: 1; min-height: 270px; display: grid; place-items: center; }
.orbit-ring { position: absolute; width: min(220px, 80%); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--acid) 0 72%, #2b3035 72% 100%); mask: radial-gradient(transparent 0 61%, #000 62%); transform: rotate(-25deg); filter: drop-shadow(0 0 15px rgba(216,255,62,.12)); }
.score-value { position: relative; display: grid; text-align: center; }
.score-value strong { font-size: 5rem; line-height: .9; letter-spacing: -.08em; }
.score-value span { margin-top: 12px; color: var(--muted); font-size: .74rem; letter-spacing: .12em; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.stat-grid div { display: grid; gap: 6px; text-align: center; border-right: 1px solid var(--line); }
.stat-grid div:last-child { border: 0; }
.stat-grid strong { font-size: 1.3rem; }
.stat-grid span { color: var(--muted); font-size: .7rem; }
.rank-note { margin-top: 20px; padding: 15px; background: #0e1114; color: #9da5ad; text-align: center; font-size: .78rem; }
.rank-note strong { color: var(--acid); }
.method-note { margin-top: 18px; padding-top: 18px; display: grid; gap: 7px; border-top: 1px solid var(--line); }
.method-note span { color: #c6ccd1; font-size: .75rem; }
.method-note p { margin: 0; color: #737d86; font-size: .72rem; line-height: 1.6; }
.below-fold { display: grid; grid-template-columns: .8fr 1.7fr; gap: 20px; padding: 20px 0 64px; border-top: 1px solid var(--line); }
.below-fold > div:first-child { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
.below-fold h2 { margin: 0; font-size: 1.2rem; }
.below-fold p { grid-column: 2; color: var(--muted); font-size: .82rem; }
.section-index { color: var(--acid); font: 700 .72rem/1.6 monospace; }
.mini-history { display: grid; grid-template-columns: auto 1fr auto auto; gap: 22px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); color: #a8b0b7; font-size: .78rem; }
.history-date { color: #68717a; font-family: monospace; }
.history-topic { color: var(--paper); font-size: .9rem; }
.pending { color: var(--orange); }
.result-toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; width: min(360px, calc(100% - 48px)); padding: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--acid); background: #111519; box-shadow: 0 20px 70px #000; transform: translateY(150%); opacity: 0; transition: .35s ease; }
.result-toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { width: 38px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--acid); color: var(--ink); font-weight: 900; }
.result-toast strong { font-size: .9rem; }
.result-toast p { margin: 4px 0 0; color: var(--muted); font-size: .74rem; }
.result-toast button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.4rem; }
.choice.selected { border-color: var(--acid); background: rgba(216,255,62,.08); }
.choice.dimmed { opacity: .42; }

@media (max-width: 860px) {
  .shell { width: min(100% - 24px, 680px); }
  .topbar { height: 76px; grid-template-columns: 1fr auto; }
  .day-chip { display: none; }
  main { grid-template-columns: 1fr; padding-top: 20px; }
  .prediction-card { min-height: auto; padding: 26px 20px; }
  .score-panel { min-height: 520px; }
  .below-fold { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 96px; }
  .card-footer { gap: 14px; flex-direction: column; }
  .mini-history { grid-template-columns: auto 1fr auto; gap: 12px; }
  .history-pick { display: none; }
  h1 { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
