[hidden] { display: none !important; }
:root {
  --ink: #0b0a1c;
  --night: #131033;
  --velvet: #1d1848;
  --velvet-2: #26205a;
  --gold: #f3c86b;
  --gold-deep: #c99a3d;
  --rose: #ff8d9c;
  --mint: #7fe3c4;
  --text: #eeebff;
  --muted: #a9a3cf;
  --line: rgba(243, 200, 107, 0.18);
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% -10%, #2a2163 0%, var(--night) 45%, var(--ink) 100%) fixed;
  background-color: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--body);
  overflow-x: clip;
  min-height: 100vh;
}
img, svg { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: #ffe1a3; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sky {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: clip;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #fff6 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 47% 12%, #ffe9b8aa 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 38%, #fff7 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 81% 22%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 64%, #fff5 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 7% 58%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 88%, #fff4 50%, transparent 51%);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.marquee {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(11, 10, 28, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 600 22px/1 var(--display); letter-spacing: .01em; }
.mark em { font-style: italic; color: var(--gold); }
.acts { display: flex; gap: 22px; }
.acts a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.acts a:hover { color: var(--gold); }
.seat { display: flex; gap: 10px; align-items: center; }
.brand-x { font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.ticket {
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.ticket:hover { background: rgba(243, 200, 107, .1); }
.ticket.on { background: var(--gold); color: var(--ink); }

main { position: relative; z-index: 1; width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 64px; }

.stage {
  position: relative; margin: 40px 0 28px; padding: clamp(28px, 6vw, 64px);
  border-radius: 28px; overflow: clip;
  background: linear-gradient(160deg, rgba(38, 32, 90, .9), rgba(19, 16, 51, .92));
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .06);
}
.spot {
  position: absolute; inset: -30% -10% auto auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 200, 107, .22), transparent 65%);
  pointer-events: none;
}
.kicker { margin: 0 0 10px; color: var(--gold); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.stage h1 { font: 800 clamp(38px, 7vw, 74px)/1.02 var(--display); margin: 0 0 18px; letter-spacing: -.01em; }
.stage h1 span { color: var(--gold); font-style: italic; font-weight: 600; }
.lede { max-width: 620px; color: #d6d1f5; font-size: 18px; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.curtain {
  border: 0; border-radius: 999px; padding: 15px 28px;
  background: linear-gradient(180deg, #ffd98a, var(--gold) 55%, var(--gold-deep));
  color: #20180a; font-weight: 800; font-size: 17px; letter-spacing: .01em;
  box-shadow: 0 10px 30px -12px rgba(243, 200, 107, .7);
  transition: transform .15s ease, box-shadow .15s ease;
}
.curtain:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(243, 200, 107, .85); }
.curtain:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.fine { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.tally { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 34px 0 0; max-width: 640px; }
.tally div { border-top: 1px solid var(--line); padding-top: 10px; }
.tally dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.tally dd { margin: 4px 0 0; font: 600 22px/1.2 var(--display); }
.ca-line { margin: 18px 0 0; font-size: 13px; color: var(--muted); word-break: break-all; }

.podium { position: relative; max-width: 760px; margin: 0 auto; }
.podium-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.chip { background: rgba(243, 200, 107, .14); color: var(--gold); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.count { color: var(--muted); font-weight: 700; }
.score { margin-left: auto; color: var(--muted); }
.score b { color: var(--text); font: 700 20px var(--display); }
.dial { position: relative; width: 92px; height: 92px; margin: 22px auto 8px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-track { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 8; }
.dial-run { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; transition: stroke-dashoffset .25s linear, stroke .3s; }
.dial.low .dial-run { stroke: var(--rose); }
.dial span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 28px var(--display); }
.question { font: 600 clamp(22px, 3.4vw, 32px)/1.25 var(--display); text-align: center; margin: 10px 0 24px; }
.choices { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: pick; }
.choices button {
  width: 100%; min-height: 64px; text-align: left; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 16px;
  transition: border-color .15s, background .15s, transform .15s;
}
.choices button::before {
  counter-increment: pick; content: counter(pick, upper-alpha);
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold); font: 700 14px var(--display);
}
.choices button:hover:not(:disabled) { border-color: var(--gold); background: rgba(243, 200, 107, .08); transform: translateY(-1px); }
.choices button:disabled { cursor: default; }
.choices button.right { border-color: var(--mint); background: rgba(127, 227, 196, .14); }
.choices button.wrong { border-color: var(--rose); background: rgba(255, 141, 156, .12); }
.verdict { min-height: 1.6em; text-align: center; font-weight: 700; margin: 16px 0 0; }
.verdict.good { color: var(--mint); }
.verdict.bad { color: var(--rose); }

.encore { text-align: center; padding: 10px 0; }
.encore h2 { font: 800 clamp(40px, 7vw, 64px)/1 var(--display); margin: 6px 0 12px; color: var(--gold); }

.band { margin: 28px 0; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: rgba(19, 16, 51, .72); border: 1px solid rgba(255, 255, 255, .07); }
.band h2 { font: 700 clamp(26px, 4vw, 36px)/1.1 var(--display); margin: 0 0 16px; }
.band h3 { font: 600 19px var(--display); margin: 0 0 12px; color: var(--gold); }
.band-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.tabs { display: flex; gap: 6px; background: rgba(255, 255, 255, .05); padding: 4px; border-radius: 999px; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); }

.board { margin-top: 12px; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.board td { padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.board td.n { text-align: right; }
.board tr.me td { background: rgba(243, 200, 107, .08); }
.board .medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 13px var(--display); background: rgba(255, 255, 255, .06); }
.board tr:nth-child(1) .medal { background: var(--gold); color: var(--ink); }
.board tr:nth-child(2) .medal { background: #d9d6ef; color: var(--ink); }
.board tr:nth-child(3) .medal { background: #d49a6a; color: var(--ink); }
.empty { color: var(--muted); padding: 22px; text-align: center; border: 1px dashed rgba(255, 255, 255, .14); border-radius: 14px; margin: 8px 0; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.purse-sum { font: 800 clamp(44px, 8vw, 72px)/1 var(--display); margin: 0; color: var(--gold); }
.purse-sum small { font-size: .35em; color: var(--muted); font-weight: 600; }
.addr-line { word-break: break-all; font-size: 14px; margin-top: 12px; }
.split-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.split-bars li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 10px; font-weight: 700; }
.split-bars .bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: clip; }
.split-bars .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: inherit; transform-origin: left; animation: grow .9s ease-out both; }
@keyframes grow { from { transform: scaleX(0); } }

.launch-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 10px; }
.ballot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ballot label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.ballot .wide { grid-column: 1 / -1; }
.ballot input, .ballot textarea {
  width: 100%; min-width: 0; background: rgba(0, 0, 0, .25); color: var(--text); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px; padding: 10px 12px; font: 15px var(--body);
}
.ballot input[type="file"] { padding: 8px; }
.ballot input:focus, .ballot textarea:focus { border-color: var(--gold); outline: none; }
.disclose { background: rgba(243, 200, 107, .08); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: #e7e0c8; }
.disclose b { color: var(--gold); }
.disclose .mono { word-break: break-all; }
.coins { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.coins li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.coins img, .coins .noart { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--velvet-2); }
.coins b { display: block; }
.coins small { color: var(--muted); }
.coins a { font-size: 13px; margin-right: 10px; }

.rule-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.rules ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #d6d1f5; }
.winner-week { border-top: 1px solid var(--line); padding: 12px 0; }
.winner-week h3 { margin-bottom: 6px; }

.curtain-call { position: relative; z-index: 1; text-align: center; color: var(--muted); padding: 30px 16px 50px; border-top: 1px solid var(--line); font-size: 14px; }
.curtain-call p { max-width: 720px; margin: 6px auto; }

.picker { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(5, 4, 15, .7); padding: 16px; }
.picker-card { width: min(380px, 100%); background: var(--velvet); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.picker-card h2 { font: 700 22px var(--display); margin: 0 0 12px; }
.picker-card ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.picker-card li button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; font-weight: 700; }
.picker-card li img { width: 28px; height: 28px; border-radius: 6px; }
.ghost { background: transparent; color: var(--muted); border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; padding: 8px 16px; }

/* host page */
.host-wrap { width: min(980px, 100%); margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 60px; position: relative; z-index: 1; }
.week-card { border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 16px; margin: 14px 0; background: rgba(19, 16, 51, .72); }
.week-card header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.week-card .status { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--gold); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.row-btns button { border: 1px solid var(--gold); background: transparent; color: var(--gold); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
.log { white-space: pre-wrap; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .acts { display: none; }
  .split, .launch-grid, .rule-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .marquee { gap: 10px; }
  .mark span { font-size: 19px; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .ballot { grid-template-columns: minmax(0, 1fr); }
  .tally { grid-template-columns: minmax(0, 1fr); }
  .tally div { display: flex; justify-content: space-between; align-items: baseline; }
  .board th:nth-child(4), .board td:nth-child(4) { display: none; }
  .brand-x { padding: 5px 9px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
