:root { --g: #39ff88; --r: #ff3b5c; --y: #ffd23f; --ink: #06080b; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; font-family: Inter, system-ui, sans-serif; color: #fff; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }
.ov { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.labels { position: absolute; inset: 0; }
.lab { position: absolute; left: 0; top: 0; font: 800 11px Inter, sans-serif; letter-spacing: .04em; padding: 2px 6px; border-radius: 3px; background: rgba(0,0,0,.6); color: #fff; white-space: nowrap; border-left: 3px solid var(--c, var(--g)); transition: opacity .2s; }
.lab.hm { background: rgba(57,255,136,.85); color: #04120a; border: 0; font-size: 10px; }
.lab.hm.hohl { background: var(--y); }

.tl, .tr { position: absolute; top: 12px; display: flex; gap: 8px; align-items: center; font: 700 13px 'Chakra Petch', sans-serif; letter-spacing: .06em; text-shadow: 0 1px 3px #000; }
.tl { left: 14px; } .tr { right: 14px; }
.live { color: var(--r); display: inline-flex; gap: 6px; align-items: center; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--r); animation: bl 1.2s steps(2) infinite; }
@keyframes bl { 50% { opacity: .25; } }
.brand { color: var(--g); }
.day, .cam { color: #cfd6dd; opacity: .85; }
.pill { background: rgba(0,0,0,.55); padding: 3px 9px; border-radius: 4px; }
.pill b { color: var(--g); }
.hoh b { color: var(--y); }
.preview { position: absolute; left: 14px; top: 40px; font: 800 10px Inter; letter-spacing: .08em; background: var(--y); color: #111; padding: 2px 7px; border-radius: 3px; }
.preview[hidden] { display: none; }

.title { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.96); text-align: center; opacity: 0; transition: opacity .35s, transform .35s; max-width: 90%; }
.title.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.title small { display: block; font: 700 clamp(11px, 1.5vw, 16px) 'Chakra Petch'; letter-spacing: .3em; color: var(--g); text-shadow: 0 2px 8px #000; }
.title b { display: block; font: 400 clamp(34px, 7vw, 96px)/1 Anton, Impact, sans-serif; text-transform: uppercase; color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.9), 0 0 2px #000; letter-spacing: .01em; margin-top: 8px; }

.toast { position: absolute; left: 50%; top: 18%; transform: translate(-50%, -8px); opacity: 0; transition: opacity .25s, transform .25s; background: rgba(4,10,7,.82); border: 2px solid var(--g); border-radius: 8px; padding: 8px 16px; text-align: center; max-width: 92%; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast b { display: block; font: 400 clamp(20px, 3.4vw, 40px)/1.05 Anton, Impact, sans-serif; color: var(--g); letter-spacing: .02em; }
.toast span { font: 600 13px Inter; color: #d7dee5; }
.toast.out { border-color: var(--r); } .toast.out b { color: var(--r); }
.toast .stk { display: block; width: 96px; height: 96px; margin: -54px auto 4px; border-radius: 50%; border: 3px solid var(--r); background: #000; }
@media (max-width: 520px) { .toast .stk { width: 56px; height: 56px; margin-top: -32px; } }
.toast.gold { border-color: var(--y); } .toast.gold b { color: var(--y); }

.vote { position: absolute; right: 14px; top: 48px; width: min(300px, 46vw); background: rgba(6,8,11,.84); border: 1px solid rgba(255,59,92,.6); border-radius: 8px; padding: 10px 12px; }
.vote h4 { margin: 0 0 8px; font: 700 13px 'Chakra Petch'; letter-spacing: .1em; color: var(--r); display: flex; justify-content: space-between; }
.vote .row { display: grid; grid-template-columns: 1fr auto; gap: 4px; margin-bottom: 6px; font: 700 13px Inter; }
.vote .bar { grid-column: 1 / -1; height: 6px; background: #1d2228; border-radius: 3px; overflow: hidden; }
.vote .bar i { display: block; height: 100%; background: var(--r); transition: width .4s; }
.vote p { margin: 6px 0 0; font: 600 11px Inter; color: #9aa6b2; }

.cap { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); width: min(94%, 1200px); text-align: center; opacity: 0; transition: opacity .2s;
  font: 800 clamp(16px, 2.5vw, 32px)/1.25 Inter, sans-serif; text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 2px 6px #000, 0 0 3px #000, 0 0 1px #000; }
.cap.on { opacity: 1; }
.cap b { color: var(--c, var(--r)); margin-right: .35em; }

.side { position: absolute; right: 14px; bottom: 16%; width: min(320px, 30vw); display: none; flex-direction: column; gap: 4px; font: 700 13px Inter; }
.side div { background: rgba(0,0,0,.6); padding: 4px 9px; border-radius: 4px; border-left: 3px solid #333; }
.side .in { border-color: var(--g); } .side .out { border-color: var(--r); } .side .chat b { color: #7dd3fc; }
.ca { position: absolute; left: 14px; bottom: 14px; display: none; font: 800 14px Inter; background: var(--g); color: #04120a; padding: 4px 10px; border-radius: 4px; letter-spacing: .02em; }
.parody { position: absolute; right: 14px; bottom: 10px; font: 700 9px Inter; letter-spacing: .12em; color: rgba(255,255,255,.55); }

.sound { pointer-events: auto; position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); min-height: 48px; padding: 0 22px; font: 800 15px Inter; letter-spacing: .03em; border: 2px solid var(--g); color: #04120a; background: var(--g); border-radius: 999px; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.sound[hidden] { display: none; }
.loading { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: #06080b; transition: opacity .6s; }
.loading b { font: 400 64px Anton, Impact, sans-serif; color: var(--g); letter-spacing: .02em; }
.loading span { font: 600 14px Inter; color: #9aa6b2; margin-top: 6px; }
.loading.done { opacity: 0; }

/* the livestream (?stream=1): bigger type, a feed column, the CA strip */
body.stream .side { display: flex; }
body.stream .ca { display: block; }
body.stream .cap { width: min(70%, 1200px); left: 38%; }
body.stream .sound { display: none; }

@media (max-width: 640px) {
  .tl .cam, .tl .day { display: none; }
  .tr .mc { display: none; }
  .vote { top: auto; bottom: 26%; right: 8px; width: min(240px, 60vw); padding: 8px; }
  .cap { bottom: 5%; font-size: 15px; }
  .title b { font-size: 34px; }
}

/* small frames (the phone site's embed is ~350 px wide): fewer, smaller overlays */
@media (max-width: 520px) {
  .tl { top: 8px; left: 8px; gap: 6px; font-size: 11px; }
  .tl .brand, .preview { display: none; }
  .tr { top: 8px; right: 8px; gap: 4px; font-size: 11px; }
  .pill { padding: 2px 6px; }
  .toast { top: 22%; padding: 5px 10px; border-width: 1px; }
  .toast b { font-size: 18px; }
  .toast span { font-size: 11px; }
  .title b { font-size: 30px; }
  .title small { font-size: 10px; letter-spacing: .2em; }
  .cap { bottom: 4%; font-size: 13px; width: 96%; }
  .sound { left: auto; right: 8px; bottom: 8px; transform: none; min-height: 40px; padding: 0 14px; font-size: 12px; }
  .parody { display: none; }
  .lab { font-size: 9px; padding: 1px 4px; }
  /* the phone site shows the vote right under the frame */
  .vote { display: none !important; }
}
