/* dono - "On Air, Daylight": a streamer's overlay set in daylight. White page, flat sticker colours, 3px ink outlines,
   hard shadows. Dela Gothic One (name, h2), Sora (text), Azeret Mono (every number, the CA). */
:root {
  --paper: #F7F6FF; --white: #FFFFFF; --ink: #14122B; --ink-2: #4A4766;
  --chroma: #19E07A; --chroma-hi: #4BEB97;
  --pink: #FF4FA3; --pink-deep: #D9307F; --pink-soft: #FFB3D6;
  --gold: #FFD23F; --gold-deep: #F2A81D;
  --lilac: #C9B8FF; --lilac-soft: #EDE7FF; --sky: #4C7DFF; --grey: #D9D6E8;
  --tw: #9146FF; --kk: #53FC18;
  --b: 3px solid var(--ink);
  --sh: 6px 6px 0 var(--ink); --sh-s: 4px 4px 0 var(--ink);
  --r: 18px;
  --f-d: "Dela Gothic One", "Arial Black", sans-serif;
  --f-t: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-n: "Azeret Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 3vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f-t); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, [role=button], [role=radio], [role=tab], summary, label, .ca, select, input[type=file] { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.num { font-family: var(--f-n); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.01em; }
.muted { color: var(--ink-2); }
.lab { font: 600 13px/1.2 var(--f-t); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
h1, h2, h3 { margin: 0; }
.h2, .sec h2 { font: 400 clamp(40px, 6.4vw, 84px)/0.98 var(--f-d); letter-spacing: -0.03em; color: var(--ink); }
.h3, h3 { font: 700 22px/1.2 var(--f-t); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.sp { flex: 1 1 auto; }

/* ---------- stickers: pills, chips, labels */
.pill { --bg: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: var(--b); border-radius: 999px; background: var(--bg); color: var(--ink); box-shadow: var(--sh-s); font: 700 17px/1 var(--f-t); text-decoration: none; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; -webkit-tap-highlight-color: transparent; }
.pill:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 var(--ink); }
.pill:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.pill.pink { --bg: var(--pink); color: var(--white); }
.pill.pink:hover { --bg: var(--pink-deep); }
.pill.gold { --bg: var(--gold); }
.pill.gold:hover { --bg: var(--gold-deep); }
.pill.white:hover { --bg: var(--lilac-soft); }
.pill.round { width: 44px; padding: 0; }
.pill.sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.pill.big { min-height: 60px; padding: 0 30px; font-size: 20px; box-shadow: var(--sh); }
.pill.big:hover { box-shadow: 6px 8px 0 var(--ink); }
.pill.busy { opacity: .75; pointer-events: none; }
.pill svg { flex: none; }
.live { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: var(--b); border-radius: 999px; background: var(--pink); color: var(--white); font: 700 14px/1 var(--f-t); letter-spacing: .08em; }
.live.off { background: var(--white); color: var(--ink); }
.demo { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lilac); color: var(--ink); font: 700 11px/1 var(--f-t); letter-spacing: .1em; }
.demo.xs { height: 18px; padding: 0 6px; font-size: 9px; margin-right: 6px; vertical-align: 2px; }
.demo[hidden] { display: none; }
.chip { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 2px solid var(--ink); background: var(--tw); flex: none; }
.chip.kk { background: var(--kk); }
.plat { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--f-t); }
.stk { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border: var(--b); border-radius: 10px; background: var(--white); font: 700 13px/1 var(--f-t); white-space: nowrap; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); }
.stk.gold { background: var(--gold); } .stk.pink { background: var(--pink); color: var(--white); } .stk.grey { background: var(--grey); }
.stk.big { height: 44px; padding: 0 18px; font-size: 18px; }
.stk .num { font-size: 13px; }
.stk.big .num { font-size: 18px; }

/* lower-third CA strap: pink label + white value + copy, "copied" swaps in place */
.lowthird { display: inline-flex; align-items: stretch; height: 48px; border: var(--b); border-radius: 10px; overflow: hidden; box-shadow: var(--sh-s); background: var(--white); max-width: 100%; }
.lt-lab { display: inline-flex; align-items: center; padding: 0 14px; background: var(--pink); color: var(--white); font: 700 16px/1 var(--f-t); letter-spacing: .06em; border-right: var(--b); }
.lt-val { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; border: 0; background: var(--white); min-width: 0; }
.lt-val .num { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-val .cl { display: inline-flex; color: var(--ink); }
.lt-val:hover { background: var(--lilac-soft); }
.lt-val:disabled { cursor: default; background: var(--white); }
.lt-val:disabled .cl { opacity: .35; }
.lt-val.copied .num, .lt-val.copied .cl { visibility: hidden; }
.lt-val.copied::after { content: "copied"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 15px/1 var(--f-t); background: var(--gold); }
.lowthird.sm { height: 40px; box-shadow: 3px 3px 0 var(--ink); }
.lowthird.sm .lt-lab { padding: 0 10px; font-size: 14px; }
.lowthird.sm .lt-val .num { font-size: 14px; }
.lowthird.xs { height: 36px; box-shadow: none; border-width: 2px; border-radius: 8px; }
.lowthird.xs .lt-lab { padding: 0 8px; font-size: 12px; border-right-width: 2px; }
.lowthird.xs .lt-val { padding: 0 8px; gap: 6px; min-height: 32px; }
.lowthird.xs .lt-val .num { font-size: 13px; }
.carow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.carow .lk { display: inline-flex; align-items: center; min-height: 36px; font: 600 14px/1 var(--f-t); color: var(--sky); text-decoration: underline; text-underline-offset: 3px; padding: 8px 0; }
.carow .lk:hover { color: var(--ink); }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 var(--gut); background: var(--white); border-bottom: var(--b); }
.wm { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.wm img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink); }
.wm span { font: 400 28px/1 var(--f-d); letter-spacing: -0.02em; }
.stitle { display: none; margin: 0 0 0 10px; font: 400 15px/1.2 var(--f-t); color: var(--ink-2); white-space: nowrap; }
.stitle b { color: var(--ink); font-weight: 700; }
.tnav { display: none; gap: 2px; margin-left: 8px; }
.tnav a { padding: 10px 12px; border-radius: 999px; font: 600 15px/1 var(--f-t); text-decoration: none; }
.tnav a:hover { background: var(--lilac-soft); }
.tnav a[aria-current] { background: var(--ink); color: var(--white); }
.top .pill { min-height: 44px; font-size: 16px; padding: 0 16px; }
.top .pill.round { padding: 0; }
.home .stitle { display: block; }
@media (min-width: 900px) { .tnav { display: flex; } .home .tnav { display: none; } }
@media (min-width: 1320px) { .home .tnav { display: flex; } }
@media (max-width: 1100px) { .home .stitle { display: none; } }
@media (max-width: 520px) {
  .top { gap: 8px; }
  .top .pill:not(.round) { width: 44px; padding: 0; }
  .top .pill .pl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 340px) { .wm span { font-size: 24px; } .top { gap: 6px; padding: 0 12px; } }

/* ---------- the stage (hero + ending): chroma green broadcast frame */
.hero { padding: 24px var(--gut) 8px; display: flex; flex-direction: column; align-items: center; }
.stage { position: relative; width: 100%; max-width: 1240px; background: var(--chroma); border: 6px solid var(--ink); border-radius: 24px; box-shadow: 12px 12px 0 var(--ink); }
.hero .stage { height: clamp(600px, calc(100dvh - 64px - 64px), 700px); display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 18px 28px; padding: 24px 28px 26px; }
.st-top { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.viewers { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: var(--b); border-radius: 999px; background: var(--white); font: 600 14px/1 var(--f-t); }
.viewers .num { font-size: 15px; }
.st-name { grid-column: 1; grid-row: 2; align-self: center; min-width: 0; }
.rule { display: block; width: 120px; height: 6px; background: var(--ink); border-radius: 3px; margin: 0 0 18px 12px; }
.name { font: 400 clamp(84px, 16.5vw, 232px)/0.9 var(--f-d); color: var(--white); -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 10px 10px 0 var(--ink); transform: rotate(-4deg); transform-origin: 0 100%; letter-spacing: -0.02em; margin: 0 0 26px 4px; white-space: nowrap; }
.strap { margin: 0; max-width: 620px; }
.strap span { display: inline; padding: 6px 12px; background: var(--ink); color: var(--white); font: 600 20px/1.75 var(--f-t); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.strap .num { color: var(--gold); font-size: 19px; }
.chat { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; min-height: 0; background: var(--white); border: var(--b); border-radius: var(--r); box-shadow: var(--sh-s); overflow: hidden; }
.chat-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: var(--b); font: 700 14px/1 var(--f-t); text-transform: uppercase; letter-spacing: .08em; }
.lines { list-style: none; margin: 0; padding: 10px 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; flex: 1 1 auto; min-height: 0; overflow: hidden; font: 400 15px/1.4 var(--f-t); }
.lines li { overflow-wrap: anywhere; }
.u { font-weight: 700; margin-right: 6px; }
.u.sky { color: var(--sky); } .u.pink { color: var(--pink-deep); } .u.gold { color: #B57800; }
.lines .num, .chat-strip .num { font-size: 14px; }
.goal { grid-column: 1 / -1; grid-row: 3; }
.g-l { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.g-who { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; background: var(--ink); color: var(--white); font: 700 15px/1 var(--f-t); border-radius: 6px; }
.g-n { font-size: 22px; }
.g-n b { font-weight: 700; }
.g-st { font: 600 14px/1 var(--f-t); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 10px; }
.g-st:empty { display: none; }
.bar { position: relative; height: 34px; border: var(--b); border-radius: 999px; background: var(--white); overflow: hidden; box-shadow: var(--sh-s); }
.bar .fill { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.bar { --n: 5; }
.bar .ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 3px), var(--ink) calc(100% / var(--n) - 3px) calc(100% / var(--n))); }
.st-foot { grid-column: 1 / -1; grid-row: 4; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pill.sticker { min-height: 60px; padding: 0 28px; font-size: 20px; box-shadow: var(--sh); transform: rotate(-2deg); }
.pill.sticker:hover { transform: rotate(-2deg) translateY(-2px); }
.pill.sticker:active { transform: rotate(-2deg) translate(4px, 4px); box-shadow: none; }
.pill.big-x { width: 52px; min-height: 52px; }
.chat-strip { display: none; }

/* the alert (absolutely placed in the stage: no layout shift). It lands where a streamer's alert box lives: on desktop
   over the chat column (top right), on mobile over the chat strip under the stage. Never over the name or the strap. */
.alert { position: absolute; z-index: 5; top: 24px; right: 28px; width: 340px; display: flex; flex-direction: column; align-items: center; pointer-events: none; visibility: hidden; }
.alert.on { visibility: visible; }
.a-mic { width: 120px; height: 120px; flex: none; transform-origin: 50% 100%; opacity: 0; }
.alert.still .a-mic { opacity: 1; }
.a-coin { position: absolute; top: 0; left: calc(50% - 24px); width: 48px; height: 48px; opacity: 0; }
.a-card { position: relative; margin-top: -10px; width: 100%; padding: 16px 18px 12px; background: var(--white); border: var(--b); border-radius: var(--r); box-shadow: var(--sh); pointer-events: auto; clip-path: inset(0 50% 0 50%); }
.alert.still .a-card { clip-path: none; }
.a-h { margin: 0 44px 6px 0; font: 400 28px/1.08 var(--f-d); letter-spacing: -0.02em; }
.a-h .num { color: var(--ink); background: var(--gold); padding: 0 8px; border-radius: 8px; border: 2px solid var(--ink); font-size: .82em; }
.a-l { margin: 0; min-height: 2.9em; font: 400 17px/1.42 var(--f-t); }
.a-wave { display: block; width: 100%; height: 44px; margin-top: 8px; }
.a-spk { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: var(--b); border-radius: 999px; background: var(--white); }
.a-spk .spk-on { display: none; } .a-spk.on .spk-on { display: inline; } .a-spk.on .spk-off { display: none; }
.a-spk.on { background: var(--gold); }
.a-demo { display: none; position: absolute; top: -12px; left: 16px; }
.alert.is-demo .a-demo { display: inline-flex; }

/* ---------- sections */
.sec { padding: clamp(64px, 9vw, 120px) var(--gut); }
.in { max-width: 1240px; margin: 0 auto; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sub { margin: 0; max-width: 520px; font: 400 18px/1.5 var(--f-t); color: var(--ink); }
.seg { cursor: pointer; display: inline-flex; padding: 4px; gap: 4px; border: var(--b); border-radius: 999px; background: var(--white); box-shadow: var(--sh-s); }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 700 15px/1 var(--f-t); }
.seg button:hover { background: var(--lilac-soft); }
.seg button[aria-checked=true], .seg button[aria-selected=true] { background: var(--ink); color: var(--white); }

/* board */
.board { background: var(--lilac); border-top: var(--b); border-bottom: var(--b); margin-top: 48px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.scard { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--white); border: var(--b); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.scard.hl { outline: 4px solid var(--pink); outline-offset: 4px; }
.sc-top { display: flex; align-items: flex-start; gap: 14px; }
.sc-top > img, .noimg { width: 96px; height: 96px; border: var(--b); border-radius: 14px; object-fit: cover; flex: none; background: var(--lilac-soft); }
.noimg { display: grid; place-items: center; font: 400 40px/1 var(--f-d); }
.sc-id { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 150px; }
.sc-id .handle { display: inline-flex; align-items: center; min-height: 32px; font: 700 19px/1.15 var(--f-t); text-decoration: none; overflow-wrap: anywhere; }
.sc-id a.handle:hover { color: var(--sky); }
.coinn { font: 700 14px/1.3 var(--f-t); color: var(--ink-2); overflow-wrap: anywhere; }
.coinn .cn { font-weight: 400; }
.sc-top .stk { margin-left: auto; }
.sc-owed { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sc-owed .lab { width: 100%; }
.num.big { font-size: 32px; line-height: 1; }
.unit { font-size: 16px; }
.mini { position: relative; height: 16px; border: var(--b); border-radius: 999px; background: var(--lilac-soft); overflow: hidden; }
.mini i { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; }
.mini { --n: 5; }
.mini::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--n) - 2px), rgba(20,18,43,.5) calc(100% / var(--n) - 2px) calc(100% / var(--n))); }
.sc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.sc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--grey); }
.invite { align-items: flex-start; background: var(--lilac-soft); }
.invite img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: var(--b); border-radius: 14px; background: var(--white); }
.invite p { margin: 0; }

/* mixer */
.mix { background: var(--gold); border-bottom: var(--b); }
.mixer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 22px; background: var(--ink); border-radius: 24px; box-shadow: 10px 10px 0 var(--gold-deep); }
.strip { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 10px; background: var(--white); border-radius: 14px; border: var(--b); min-width: 0; }
.ch-n { font: 700 15px/1 var(--f-t); text-transform: uppercase; letter-spacing: .08em; }
.track { display: flex; gap: 18px; align-items: stretch; height: 220px; }
.meter { width: 18px; height: 220px; }
.rail { position: relative; width: 14px; background: var(--lilac-soft); border: var(--b); border-radius: 999px; }
.cap { --pos: 0.5; position: absolute; left: 50%; bottom: calc(var(--pos) * (100% - 30px)); width: 52px; height: 30px; margin-left: -26px; background: var(--ink); border-radius: 8px; transition: bottom .6s cubic-bezier(.2,.8,.2,1); }
.cap::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 4px; background: var(--white); border-radius: 2px; }
.ch-v { font-size: 34px; line-height: 1; }
.ch-t { font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: center; }
.routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.route { display: flex; gap: 14px; padding: 18px; background: var(--white); border: var(--b); border-radius: var(--r); box-shadow: var(--sh-s); min-width: 0; }
.route h3 { font-size: 19px; margin-bottom: 4px; }
.route p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.route:not(.used) { background: #FFF6D6; }
.r-ic { flex: none; display: flex; align-items: center; gap: 3px; width: 44px; height: 44px; padding: 0 7px; border: var(--b); border-radius: 12px; background: var(--pink); }
.r-ic i { flex: 1; background: var(--white); border-radius: 2px; height: 30%; }
.r-ic i:nth-child(2) { height: 70%; } .r-ic i:nth-child(3) { height: 45%; } .r-ic i:nth-child(4) { height: 85%; } .r-ic i:nth-child(5) { height: 35%; }
.route[data-route=tip_page] .r-ic { background: var(--sky); }
.route[data-route=chat] .r-ic { background: var(--chroma); }
.r-coins { display: flex; flex-wrap: wrap; gap: 6px; }
.rc { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 2px; border: 2px solid var(--ink); border-radius: 999px; background: var(--lilac-soft); font: 600 13px/1 var(--f-t); }
.rc img { width: 26px; height: 26px; border-radius: 999px; object-fit: cover; }
.rc.none { padding: 0 10px; background: var(--white); color: var(--ink-2); font-weight: 400; border-style: dashed; }

/* he shows up / he doesn't */
.fork { background: var(--white); }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fcard { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: var(--b); border-radius: 24px; box-shadow: var(--sh); background: var(--paper); min-width: 0; }
.fcard h3 { font: 400 34px/1 var(--f-d); letter-spacing: -0.02em; }
.transcript { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.transcript li { align-self: flex-start; max-width: 100%; padding: 10px 14px; background: var(--lilac-soft); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; font-size: 16px; overflow-wrap: anywhere; }
.transcript li.bot { background: var(--white); }
.transcript li.end { background: none; border: 0; padding: 6px 0 0; }
.window { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; margin-top: auto; }
.window .lab { grid-column: 1 / -1; }
.wbar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.wbar i { display: block; height: 100%; background: var(--chroma); transform-origin: 0 50%; transform: scaleX(1); }
.w-v { font-size: 15px; }
.offline { position: relative; border: 5px solid var(--ink); border-radius: 18px; background: var(--grey); overflow: hidden; }
.offline img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(.15); }
.off-lab { position: absolute; top: 12px; left: 12px; height: 30px; display: inline-flex; align-items: center; padding: 0 12px; background: var(--white); border: var(--b); border-radius: 999px; font: 700 14px/1 var(--f-t); letter-spacing: .1em; }
.off-t { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; background: var(--ink); color: var(--white); border-radius: 10px; font-size: 22px; }
.never-l { margin: 0; font-size: 17px; }

/* ending: Go live */
.ending { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); display: flex; justify-content: center; }
.end-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 32px; padding: clamp(22px, 3vw, 40px); align-items: start; }
.end-l { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.end-l h2, .end-l .h2 { color: var(--white); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); font: 400 clamp(46px, 6vw, 88px)/0.98 var(--f-d); letter-spacing: -0.02em; }
.end-p { margin: 0; max-width: 420px; padding: 8px 12px; background: var(--ink); color: var(--white); font: 600 18px/1.5 var(--f-t); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 56px; background: var(--white); border: var(--b); border-radius: 14px; font-size: 16px; }
.steps li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; font: 700 15px/1 var(--f-n); }
.known { display: flex; flex-direction: column; gap: 8px; }
.known[hidden] { display: none; }
.known .lab { color: var(--ink); }
.known-l, .kchips { display: flex; flex-wrap: wrap; gap: 8px; }
.kchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: var(--b); border-radius: 999px; background: var(--white); font: 700 15px/1 var(--f-t); box-shadow: 3px 3px 0 var(--ink); }
.kchip:hover { background: var(--lilac-soft); }
.kchip .num { font-size: 12px; color: var(--ink-2); }

.golive { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--white); border: var(--b); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.gl-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px dashed var(--grey); }
.gl-t { font: 700 17px/1 var(--f-t); }
.gl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.inp { display: flex; align-items: center; min-height: 50px; border: var(--b); border-radius: 12px; background: var(--lilac-soft); overflow: hidden; }
.inp:focus-within { background: var(--white); box-shadow: 3px 3px 0 var(--ink); }
.inp input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 0; background: transparent; font: 600 17px/1 var(--f-t); outline: none; }
.inp input.num, .handle .inp input { font-family: var(--f-n); font-weight: 600; }
.pre, .post { padding: 0 0 0 12px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.post { padding: 0 12px 0 0; }
.pre + input { padding-left: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop { position: relative; padding: 0 12px; gap: 10px; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.fname { font: 500 13px/1.3 var(--f-t); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.fprev { width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--ink); object-fit: cover; flex: none; }
.fprev[hidden] { display: none; }
.gl-fee { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.gl-fee b { color: var(--ink); }
.golive-btn { width: 100%; }
.gl-done { padding: 16px; background: var(--lilac-soft); border: var(--b); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.gl-done[hidden] { display: none; }
.gl-ok { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gl-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- inner pages */
.pg { width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gut) clamp(56px, 7vw, 96px); }
.pg-h { margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.panel { position: relative; padding: 22px; background: var(--white); border: var(--b); border-radius: var(--r); box-shadow: var(--sh); min-width: 0; }
.claim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.step.wide { grid-column: 1 / -1; }
.step h2 { margin: 0 0 14px 48px; min-height: 34px; display: flex; align-items: center; }
.st-n { position: absolute; top: 20px; left: 20px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--gold); border: var(--b); border-radius: 999px; font-size: 17px; }
.step p { margin: 0 0 12px; }
.step .row { display: flex; flex-wrap: wrap; gap: 12px; }
.who { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.mute { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--grey); }
.claim-sum { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.clist { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.clist li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--lilac-soft); }
.clist .rc { background: var(--white); }
.clist li > .num:first-of-type { margin-left: auto; }
.mine-top { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.mt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.streamer-note { margin-top: 28px; }
.streamer-note a { color: var(--sky); font-weight: 700; }
.killer { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 36px; }
.kl { margin: 0; font: 600 clamp(22px, 3vw, 34px)/1.3 var(--f-t); max-width: 900px; }
.kl .num { display: inline-block; padding: 2px 14px; background: var(--white); border: var(--b); border-radius: 12px; font-size: clamp(36px, 6vw, 76px); line-height: 1.1; box-shadow: var(--sh-s); margin: 0 6px 8px 0; }
.kl span { background: var(--ink); color: var(--white); padding: 4px 10px; -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.7; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--white); border: var(--b); border-radius: 16px; box-shadow: var(--sh-s); min-width: 0; }
.tile .num { font-size: clamp(20px, 2.2vw, 28px); overflow-wrap: anywhere; }
.src { margin-top: 24px; }
.docs { max-width: 900px; }
.doc { padding: 26px 0; border-top: var(--b); }
.doc h2 { margin-bottom: 12px; }
.doc p, .doc li { font-size: 17px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.pt { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0; border: var(--b); border-radius: 14px; overflow: hidden; background: var(--white); }
.pt th, .pt td { padding: 12px 14px; text-align: left; border-bottom: 2px solid var(--grey); vertical-align: top; font-size: 16px; }
.pt tr:last-child th, .pt tr:last-child td { border-bottom: 0; }
.pt th { font-weight: 700; width: 42%; }
.docs a { color: var(--sky); }
.nf-main { display: grid; place-items: center; }
.nf-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 28px; background: var(--white); border: var(--b); border-radius: 24px; box-shadow: var(--sh); max-width: 680px; width: 100%; }
.nf-stage img { width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 2; border-radius: 16px; }
.nf-stage p { margin: 0; font-size: 19px; }

/* ---------- footer */
.foot { border-top: var(--b); background: var(--white); padding: 28px var(--gut) 32px; }
.f-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.fnav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fnav a { font: 600 15px/1 var(--f-t); text-decoration: none; padding: 10px 0; }
.fnav a:hover { color: var(--sky); }
.f-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.f-note { max-width: 1240px; margin: 18px auto 0; font-size: 14px; color: var(--ink-2); }
.f-note a { color: var(--sky); display: inline-block; padding: 8px 2px; }

/* ---------- toasts */
.tstack { position: fixed; z-index: 60; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 44px 14px 16px; position: relative; background: var(--white); border: var(--b); border-radius: 14px; box-shadow: var(--sh-s); font-size: 15px; }
.toast.ok { background: var(--chroma); } .toast.err { background: var(--pink-soft); }
.toast a { color: var(--ink); font-weight: 700; }
.toast .tx { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 22px; line-height: 1; }
.tipt { position: fixed; z-index: 70; max-width: 260px; padding: 8px 10px; background: var(--ink); color: var(--white); border-radius: 8px; font: 500 13px/1.3 var(--f-t); pointer-events: none; }

/* wallet dialog (kit) */
.dlg { width: min(440px, calc(100vw - 32px)); padding: 24px; border: var(--b); border-radius: 20px; box-shadow: var(--sh); background: var(--white); color: var(--ink); }
.dlg::backdrop { background: rgba(20, 18, 43, .45); }
.dlg h2 { font: 400 30px/1 var(--f-d); margin: 0 0 16px; }
.dlg-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: var(--b); border-radius: 999px; background: var(--white); font-size: 22px; line-height: 1; }
.wp-list { display: flex; flex-direction: column; gap: 10px; }
.wp-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border: var(--b); border-radius: 14px; background: var(--lilac-soft); font: 700 16px/1 var(--f-t); text-align: left; }
.wp-item:hover { background: var(--gold); }
.wp-dot { width: 32px; height: 32px; border-radius: 999px; background: var(--pink); border: 2px solid var(--ink); }
.wp-get { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 14px; }
.wp-get a { color: var(--sky); }
.wp-err { color: var(--pink-deep); }
.wp-off { margin-top: 14px; }
.btn.ghost { min-height: 44px; padding: 0 16px; border: var(--b); border-radius: 999px; background: var(--white); font-weight: 700; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .stage { grid-template-columns: minmax(0, 1fr) 300px; }
  .alert { width: 300px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; height: auto; min-height: 0; aspect-ratio: auto; padding: 18px 16px 18px; gap: 16px; }
  .chat { display: none; }
  .alert { top: calc(100% + 28px); left: -6px; right: -6px; width: auto; display: block; }
  .a-mic { position: absolute; z-index: 1; top: -46px; left: 16px; width: 60px; height: 60px; }
  .a-coin { z-index: 2; top: -46px; left: 26px; width: 40px; height: 40px; }
  .a-card { margin-top: 0; padding-top: 22px; }
  .a-demo { left: 86px; }
  .st-name { padding: 34px 0 24px; }
  .chat-strip { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 1240px; margin: 22px 0 0; padding: 12px 14px; list-style: none; background: var(--white); border: var(--b); border-radius: 14px; box-shadow: var(--sh-s); font-size: 14px; line-height: 1.4; }
  .chat-strip li { overflow-wrap: anywhere; }
  .mixer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routes { grid-template-columns: 1fr; }
  .two-cards { grid-template-columns: 1fr; }
  .end-stage { grid-template-columns: 1fr; }
  .claim-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding: 16px 16px 4px; }
  .stage { border-width: 5px; border-radius: 20px; box-shadow: 7px 7px 0 var(--ink); }
  .hero .stage { min-height: min(calc((100vw - 32px) * 1.25), calc(100dvh - 64px - 140px)); }
  .name { font-size: clamp(76px, 25vw, 96px); -webkit-text-stroke-width: 7px; text-shadow: 6px 6px 0 var(--ink); margin-bottom: 18px; }
  .rule { width: 80px; height: 5px; margin-bottom: 12px; }
  .strap span { font-size: 15px; line-height: 1.8; padding: 4px 8px; }
  .strap .num { font-size: 14px; }
  .g-n { font-size: 17px; }
  .bar { height: 26px; }
  .st-foot { gap: 10px; }
  .st-foot .sp { display: none; }
  .st-foot .lowthird { width: 100%; height: 44px; }
  .st-foot .lt-val { flex: 1; justify-content: space-between; }
  .st-foot .pill.sticker { flex: 1; min-height: 54px; font-size: 17px; padding: 0 16px; }
  .pill.big-x { width: 54px; min-height: 54px; }
  .alert { top: calc(100% + 27px); left: -5px; right: -5px; }
  .a-card { padding: 20px 12px 8px; }
  .a-h { font-size: 21px; margin-right: 44px; }
  .a-l { font-size: 15px; min-height: 0; }
  .a-wave { height: 32px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .scard { padding: 14px; box-shadow: var(--sh-s); }
  .sc-top > img, .noimg { width: 72px; height: 72px; }
  .sc-top { flex-wrap: wrap; }
  .mixer { gap: 10px; padding: 12px; }
  .strip { padding: 12px 6px; }
  .track { height: 160px; gap: 10px; }
  .meter { height: 160px; width: 14px; }
  .cap { width: 40px; margin-left: -20px; height: 26px; }
  .ch-v { font-size: 26px; }
  .ch-n { font-size: 13px; }
  .two { grid-template-columns: 1fr; }
  .golive { padding: 16px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { padding: 14px; }
  .fcard { padding: 18px; }
  .fcard h3 { font-size: 28px; }
  .f-links { margin-left: 0; }
  .sec h2, .h2 { font-size: clamp(38px, 11vw, 56px); }
  .pt th { width: 50%; }
}
@media (max-width: 360px) {
  .lt-lab { padding: 0 10px; }
  .gl-row .seg button { padding: 0 12px; }
  .tiles { grid-template-columns: 1fr; }
}
@media (min-width: 2000px) { .hero .stage { max-width: 1400px; } }
@media (prefers-reduced-motion: reduce) {
  .bar .fill, .cap, .pill { transition: none; }
}

/* ---------- How it works: the film, in a broadcast frame; the timeline is a goal bar */
.howto { background: var(--paper); }
.player { position: relative; max-width: 1040px; margin: 0 auto; background: var(--white); border: var(--b); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink); padding: 14px; }
.vp-scr { position: relative; aspect-ratio: 16 / 9; border: var(--b); border-radius: 16px; overflow: hidden; background: var(--chroma); }
.vp-scr video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--chroma); cursor: pointer; }
.vp-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.vp-big:hover { transform: translate(-50%, calc(-50% - 2px)); }
.vp-big:active { transform: translate(calc(-50% + 4px), calc(-50% + 4px)); }
.vp-tri { display: inline-block; width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vp-pp.on .vp-tri { width: 14px; height: 16px; border: 0; border-left: 5px solid currentColor; border-right: 5px solid currentColor; }
.vp-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.vp-tl { position: relative; flex: 1; height: 32px; background: var(--white); border: var(--b); border-radius: 999px; cursor: pointer; touch-action: none; overflow: visible; }
.vp-fill { position: absolute; left: 0; top: 0; bottom: 0; max-width: 100%; background: var(--gold); border-radius: 999px 0 0 999px; }
.vp-k { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--pink); border: var(--b); }
.vp-t { min-width: 118px; text-align: center; font: 700 15px/1 var(--f-n); font-variant-numeric: tabular-nums; }
.vp-vol { display: flex; align-items: flex-end; gap: 3px; height: 40px; cursor: pointer; }
.vp-vol button { position: relative; width: 12px; height: 40px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.vp-vol button::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; background: var(--lilac-soft); border: 2px solid var(--ink); border-radius: 3px; }
.vp-vol button:nth-child(1)::before { height: 10px; } .vp-vol button:nth-child(2)::before { height: 16px; } .vp-vol button:nth-child(3)::before { height: 22px; } .vp-vol button:nth-child(4)::before { height: 28px; }
.vp-vol button.on::before { background: var(--chroma); }
.player:fullscreen { display: flex; flex-direction: column; justify-content: center; max-width: none; border-radius: 0; background: var(--paper); }
.player:fullscreen .vp-scr { max-height: calc(100vh - 90px); margin: 0 auto; width: min(100%, calc((100vh - 90px) * 16 / 9)); }
@media (max-width: 640px) { .vp-vol, .vp-m { display: none; } .vp-t { min-width: 0; font-size: 12px; } .player { padding: 8px; box-shadow: 6px 6px 0 var(--ink); } .vp-bar { gap: 8px; } }
.gl-hint { margin: 0; padding: 8px 12px; font-size: 13px; line-height: 1.4; color: #b3261e; background: #fff1f0; border: 1px solid #b3261e; border-radius: 10px; }
.gl-hint[hidden] { display: none; }
/* reserve the player's box before player.js mounts it (no layout jump under the hero) */
.player:empty::before { content: ""; display: block; aspect-ratio: 16 / 9; border: var(--b); border-radius: 16px; background: var(--chroma) url(/assets/video/howto.webp) center / contain no-repeat; }
.player:empty::after { content: ""; display: block; height: var(--vp-bar-h, 58px); }
