@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root { --navy: #0A1430; --navy-2: #13214A; --ink: #0F1B3D; --gold: #F2C14E; --gold-2: #FFE39A; --marker: #4D6BFF; --text: #E8EDFB; --muted: #8E9AC0; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--navy); color: var(--text); font-family: Archivo, system-ui, sans-serif; overflow-x: hidden; }
.stage { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, #1B2E6B 0%, var(--navy) 70%); }
.lights span { position: absolute; top: -20vh; width: 34vw; height: 120vh; background: linear-gradient(180deg, rgba(255,227,154,.16), rgba(255,227,154,0) 70%); transform-origin: top center; filter: blur(8px); pointer-events: none; }
.lights span:nth-child(1) { left: 2vw; transform: rotate(18deg); animation: sweep 9s ease-in-out infinite alternate; }
.lights span:nth-child(2) { left: 33vw; transform: rotate(0deg); opacity: .6; }
.lights span:nth-child(3) { right: 2vw; transform: rotate(-18deg); animation: sweep 11s ease-in-out infinite alternate-reverse; }
@keyframes sweep { from { transform: rotate(24deg); } to { transform: rotate(8deg); } }
.stage-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; z-index: 2; }
.logo-svg { height: 38px; width: auto; overflow: visible; }
.logo-star { fill: var(--gold); } .logo-word { font-family: Archivo; font-weight: 900; font-size: 30px; font-stretch: 90%; letter-spacing: -1px; fill: #fff; } .logo-idols { fill: #8FA4FF; } .logo-swash { fill: none; stroke: #8FA4FF; stroke-width: 2.4; stroke-linecap: round; }
.onair { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 8px 16px; border-radius: 999px; font-weight: 750; }
.onair i { width: 10px; height: 10px; border-radius: 50%; background: #FF4D5E; box-shadow: 0 0 0 0 rgba(255,77,94,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,77,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); } }
.stage-main { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 4vw; align-items: center; padding: 2vh 5vw 4vh; }
.intro { text-align: left; }
.prize-img { width: min(320px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.45); margin-bottom: 24px; border: 4px solid rgba(255,255,255,.1); }
.eyebrow { color: var(--gold); font-weight: 750; margin: 0 0 8px; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.intro h1 { font-stretch: 62%; font-weight: 900; font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: .95; margin: 0 0 14px; color: #fff; text-wrap: balance; }
.sub { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); margin: 0; }
.machine { position: relative; min-height: 62vh; display: grid; place-items: center; }
.phase { width: 100%; text-align: center; }
.count-label { color: var(--muted); font-weight: 650; margin: 0; }
.count { font-stretch: 62%; font-weight: 900; font-size: clamp(5rem, 12vw, 10rem); line-height: 1; margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.when { font-weight: 700; color: var(--gold); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; max-height: 34vh; overflow: hidden; mask-image: linear-gradient(180deg, #000 70%, transparent); }
.pool span { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-stretch: 80%; font-size: 1.02rem; }
.reel { position: relative; height: min(62vh, 520px); overflow: hidden; border-radius: 28px; background: linear-gradient(180deg, #071029, #0E1A40 50%, #071029); border: 2px solid rgba(242,193,78,.35);
  box-shadow: inset 0 0 60px rgba(0,0,0,.6), 0 30px 80px rgba(0,0,0,.4); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.reel-track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.reel-track div { height: 110px; display: flex; align-items: center; justify-content: center; font-stretch: 62%; font-weight: 900; font-size: clamp(2.2rem, 4.4vw, 4rem); color: rgba(232,237,251,.55); white-space: nowrap; padding: 0 20px; }
.reel-window { position: absolute; left: 14px; right: 14px; top: 50%; height: 110px; transform: translateY(-50%); border-radius: 18px; border: 3px solid var(--gold); box-shadow: 0 0 40px rgba(242,193,78,.35), inset 0 0 30px rgba(242,193,78,.15); pointer-events: none; }
.drawing-note { color: var(--muted); font-weight: 650; margin-top: 18px; }
.phase-revealed .winner { font-stretch: 62%; font-weight: 900; line-height: .95; margin: 6px 0 14px; font-size: clamp(3.4rem, 9vw, 8rem);
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #D99A1E); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 30px rgba(242,193,78,.35)); animation: pop .9s cubic-bezier(.2,1.6,.4,1) both; text-wrap: balance; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.winner-name { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 750; color: #fff; margin: 0 0 22px; animation: fade 1s .5s both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.proof-link { color: #A9B8FF; font-weight: 650; }
.stage-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 32px 22px; color: var(--muted); font-size: .9rem; }
.stage-foot code { color: var(--text); background: rgba(255,255,255,.08); padding: 2px 8px; border-radius: 6px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.controls { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; align-items: center; background: rgba(5,10,28,.9); border: 1px solid rgba(255,255,255,.15); padding: 10px 12px 10px 18px; border-radius: 999px; backdrop-filter: blur(8px); }
.controls a, .controls button { color: #fff; font: inherit; font-weight: 700; }
.controls a { text-decoration: none; opacity: .8; }
.controls button { background: rgba(255,255,255,.1); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.controls form { margin: 0; }
.controls .go { background: var(--gold); color: var(--ink); padding: 12px 22px; font-size: 1.05rem; }
.controls .go[disabled] { opacity: .5; cursor: default; }
:fullscreen .controls, .is-full .controls { opacity: 0; transition: opacity .3s; }
:fullscreen .controls:hover { opacity: 1; }
@media (max-width: 900px) {
  .stage-main { grid-template-columns: 1fr; text-align: center; padding-top: 0; }
  .intro { text-align: center; } .prize-img { width: 180px; margin: 0 auto 16px; display: block; }
  .machine { min-height: 48vh; } .reel { height: 46vh; }
  .stage-top { padding: 16px 18px; } .stage-foot { padding: 14px 18px 90px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .lights span, .onair i { animation: none; } .phase-revealed .winner, .winner-name { animation: none; } }
.stage-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.stream-link { color: #fff; text-decoration: none; font-weight: 700; background: #4D6BFF; padding: 8px 14px; border-radius: 999px; }
.stream-link:hover { background: #6A84FF; }
.pool span em { font-style: normal; font-weight: 600; color: #F2C14E; margin-left: 8px; font-stretch: 100%; font-size: .85em; }
