/* STAGE v3 look: a dark live-stream app. Queue rail | the stage | docked chat. One red (ON AIR), green for money. */
:root {
  --bg: #0b0b0c;
  --bg2: #111113;
  --panel: #151518;
  --panel2: #1c1c20;
  --line: #26262c;
  --line2: #33333a;
  --fg: #f4f4f5;
  --mut: #a1a1aa;
  --dim: #71717a;
  --red: #ff3b30;
  --red2: #e5281e;
  --green: #22d37a;
  --gold: #ffc53d;
  --r: 12px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hh: 56px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.note { color: var(--mut); font-size: 13.5px; margin: 0; }
.textlink { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.textlink:hover { text-decoration-color: var(--fg); }
::selection { background: var(--red); color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: #0b0b0c; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--red2); border-color: var(--red2); }
.btn.line { background: transparent; color: var(--fg); border-color: var(--line2); }
.btn.line:hover { border-color: var(--mut); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--mut); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--fg); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.18); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 40; height: var(--hh); background: rgba(11,11,12,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.bar { height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 28px; height: 28px; flex: none; }
.logo .word { font-weight: 800; font-size: 17px; letter-spacing: .14em; }
.links { display: flex; gap: 4px; }
.links a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--mut); font-size: 14px; font-weight: 500; }
.links a:hover { color: var(--fg); background: var(--panel); }
.links a.on { color: var(--fg); background: var(--panel2); }
.right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.onair { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border: 1.5px solid var(--red); border-radius: 6px; color: var(--red); font: 700 11px/1 var(--mono); letter-spacing: .14em; }
.onair i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- the app: queue | stage | chat ---------- */
.app { display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; height: calc(100vh - var(--hh)); height: calc(100dvh - var(--hh)); min-height: 620px; border-bottom: 1px solid var(--line); }
.rail { border-right: 1px solid var(--line); background: var(--bg2); overflow-y: auto; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.stagecol { min-width: 0; overflow-y: auto; padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.fl-chat { border-left: 1px solid var(--line); background: var(--bg2); min-height: 0; display: flex; flex-direction: column; position: relative; }

/* rail */
.rail-h { display: flex; align-items: baseline; justify-content: space-between; }
.rail-h h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.qcount { font-size: 13px; color: var(--mut); }
.qcount b { color: var(--fg); font-size: 15px; }
.wj-form { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.wj-form::before { content: 'Get on stage'; font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.wj-form input { height: 42px; border-radius: 9px; border: 1px solid var(--line2); background: var(--bg); padding: 0 12px; font-size: 14px; outline: none; min-width: 0; }
.wj-form input::placeholder { color: var(--dim); }
.wj-form input:focus { border-color: var(--mut); }
.wj-form .bsb { width: 100%; justify-content: center; margin-top: 2px; }
.wj-q, .wj-on { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 4px; }
.wj-q small { color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.wj-q > b { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.wj-q span { color: var(--mut); font-size: 14px; }
.wj-q span b { color: var(--fg); }
.wj-q .linkbtn { align-self: flex-start; margin-top: 6px; }
.wj-on { flex-direction: row; align-items: center; gap: 10px; border-color: var(--red); background: rgba(255,59,48,.08); font-weight: 600; }
.wj-on svg { width: 20px; height: 20px; fill: var(--gold); flex: none; }
.w-next small { display: block; color: var(--mut); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 8px; }
.w-row { display: flex; flex-direction: column; gap: 2px; }
.w-p { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: 14px; counter-increment: q; min-width: 0; }
.w-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-p::before { content: counter(q); width: 16px; color: var(--dim); font: 500 12px var(--mono); text-align: right; flex: none; }
.w-row { counter-reset: q; }
.w-p.first { background: var(--panel); }
.w-p.first::after { content: 'NEXT'; margin-left: auto; font: 700 10px var(--mono); letter-spacing: .1em; color: var(--red); }
.w-more { padding: 6px 8px 0 34px; color: var(--mut); font-size: 13px; }
.w-none { display: block; color: var(--dim); font-size: 13.5px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 9px; }
.rail-coin:empty, .flh-proof:empty { display: none; }
.rail-coin { display: flex; gap: 8px; }
.flc-ca { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-size: 12.5px; color: var(--mut); }
.flc-ca b { color: var(--fg); font-size: 13px; }
.flc-ca .mono { color: var(--mut); flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flc-ca:hover { border-color: var(--line2); color: var(--fg); }
.flc-buy { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 9px; background: var(--green); color: #04150b; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.flc-buy:hover { filter: brightness(1.08); }
.flc-pre { flex: 1; padding: 10px 12px; border-radius: 9px; border: 1px dashed var(--line2); color: var(--mut); font-size: 13px; text-align: center; }
.flp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.flp-head b { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.flp-head small { color: var(--green); font-size: 12.5px; font-weight: 600; }
.flp-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.flp { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 12px; text-decoration: none; font-size: 13px; border-top: 1px solid var(--line); }
.flp:first-child { border-top: 0; }
.flp:hover { background: var(--panel); }
.flp .num { color: var(--green); font-weight: 600; text-align: right; }
.flp-go { grid-column: 1 / -1; color: var(--dim); font-size: 11.5px; }
.flp-none { margin: 0; color: var(--dim); font-size: 13px; }

/* ---------- the player (the stage itself) ---------- */
.player { position: relative; flex: none; height: clamp(340px, calc(100dvh - var(--hh) - 250px), 640px); border-radius: 16px; overflow: hidden; background: #050506; border: 1px solid var(--line); isolation: isolate; }
.bs-beam { position: absolute; left: 50%; top: -2%; width: 74%; height: 92%; transform: translateX(-50%); clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(255,247,230,.16), rgba(255,247,230,.05) 70%, rgba(255,247,230,0)); z-index: -1; }
.bs-floor { position: absolute; left: 50%; bottom: -16%; width: 92%; height: 34%; transform: translateX(-50%); border-radius: 50%; background: #121214; border-top: 1px solid #2a2a30; z-index: -1; }
.bs-floor::after { content: ''; position: absolute; left: 50%; top: 10%; width: 44%; height: 50%; transform: translateX(-50%); border-radius: 50%; background: rgba(255,247,230,.08); }
.bs-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; z-index: 3; font-size: 13px; }
.bs-top > b { font: 700 12px var(--mono); letter-spacing: .14em; }
.bs-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--red); color: #fff; font: 700 11px var(--mono); letter-spacing: .1em; }
.bs-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.6s ease-in-out infinite; }
.bs-coin { color: var(--mut); font: 500 12px var(--mono); }
.bs-aud { margin-left: auto; display: flex; gap: 8px; }
.bs-aud span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.08); color: var(--mut); font-size: 12.5px; }
.bs-aud b { color: var(--fg); }
.bs-center { position: absolute; inset: 52px 16px 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; z-index: 2; }
.bs-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--mut); }
.bs-empty b { color: var(--fg); font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.bs-empty span { font-size: 14.5px; }
.micstand { width: 64px; height: 106px; margin-bottom: 10px; }
.micstand rect { fill: #2a2a30; stroke: #45454d; stroke-width: 3; }
.micstand path { fill: none; stroke: #45454d; stroke-width: 6; stroke-linecap: round; }

.performer { position: relative; width: clamp(130px, 18vh, 190px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 6px; }
.performer .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.performer .ring circle { fill: none; stroke-width: 6; }
.performer .ring .rb { stroke: rgba(255,255,255,.08); }
.performer .ring .rf { stroke: var(--red); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.av { display: inline-block; flex: none; width: 30px; height: 30px; border-radius: 50%; }
.av.s { width: 24px; height: 24px; }
.av.xl { width: 78%; height: 78%; border: 4px solid #050506; }
.performer.talking .av.xl { animation: talk .45s ease-in-out infinite alternate; }
@keyframes talk { to { transform: scale(1.035); } }
.p-crown { position: absolute; top: -4%; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.p-crown svg, .pv-crown svg { width: 28px; height: 28px; fill: var(--gold); }
.p-eq { position: absolute; bottom: -24px; display: flex; gap: 4px; align-items: flex-end; height: 18px; opacity: .3; }
.p-eq i { width: 4px; height: 6px; border-radius: 2px; background: var(--green); }
.performer.talking .p-eq { opacity: 1; }
.performer.talking .p-eq i { animation: eqb .7s ease-in-out infinite; }
.performer.talking .p-eq i:nth-child(2) { animation-delay: .1s; } .performer.talking .p-eq i:nth-child(3) { animation-delay: .2s; } .performer.talking .p-eq i:nth-child(4) { animation-delay: .3s; } .performer.talking .p-eq i:nth-child(5) { animation-delay: .4s; }
@keyframes eqb { 50% { height: 18px; } }
.p-name { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 14px; }
.p-you { display: inline-block; vertical-align: middle; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--red); color: #fff; }
.p-sub { color: var(--mut); font-size: 14px; }
.p-sub b { color: var(--fg); }
.pv { position: relative; height: min(100%, 420px); aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: #000; border: 2px solid transparent; }
.pv.talking { border-color: var(--green); }
.pv video { width: 100%; height: 100%; object-fit: cover; }
.pv.mine video { transform: scaleX(-1); }
.pv-crown { position: absolute; top: 8px; left: 10px; }
.pv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.pv-bar i { display: block; height: 100%; background: var(--red); transition: width .25s linear; }
.bs-center:has(.pv) { inset: 50px 16px 60px; }
.bs-center:has(.pv) .pv { flex: 1 1 auto; min-height: 0; }
.bs-center:has(.pv) .p-name { margin-top: 2px; font-size: 20px; }

.bs-earn { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.bs-earn:empty { display: none; }
.bs-earn small { color: var(--mut); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.bs-earn b { font: 600 clamp(22px, 2.4vw, 30px)/1.15 var(--mono); color: var(--green); letter-spacing: -.02em; }
.bs-earn span { color: var(--dim); font-size: 12px; }

/* the last performer, in one line */
.bs-last { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font: 600 12.5px var(--mono); letter-spacing: .03em; color: var(--mut); min-width: 0; }
.bs-last > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-last b { color: var(--fg); }
.bs-last b.num { color: var(--green); }
.bl-ic svg { width: 16px; height: 16px; fill: var(--gold); display: block; }

/* controls + emotes */
.deck { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bs-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bsb { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--fg); background: var(--fg); color: #0b0b0c; font-weight: 600; font-size: 14px; white-space: nowrap; }
.bsb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bsb:hover { background: #fff; }
.bsb:disabled { opacity: .6; cursor: default; }
.bsb.gold { background: var(--red); border-color: var(--red); color: #fff; }
.bsb.gold:hover { background: var(--red2); border-color: var(--red2); }
.bsb.on { background: rgba(34,211,122,.12); border-color: var(--green); color: var(--green); }
.bsb.ghost { background: transparent; border-color: var(--line2); color: var(--fg); }
.bsb.ghost:hover { border-color: var(--mut); }
.bs-note { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); font-size: 14px; }
.bs-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.bs-rx { margin-left: auto; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); position: relative; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.bs-rx::-webkit-scrollbar { display: none; }
.bs-rx button { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; padding: 0; transition: transform .12s, background .12s; }
.bs-rx button:hover { background: var(--panel2); transform: translateY(-2px) scale(1.08); }
.bs-rx button:active { transform: scale(.92); }
.bs-rx img { width: 34px; height: 34px; object-fit: contain; }
.bs-rx.hidden { display: none; }
.rx-slow { position: fixed; z-index: 31; left: 50%; top: 0; transform: translate(-50%, calc(-100% + 4px)); padding: 5px 11px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; }
.rx-slow.on { animation: rxslow 1.4s ease forwards; }
@keyframes rxslow { 0% { opacity: 0; transform: translate(-50%, calc(-100% + 4px)); } 12%, 75% { opacity: 1; transform: translate(-50%, -100%); } 100% { opacity: 0; transform: translate(-50%, calc(-100% - 2px)); } }
.rx-fly { position: fixed; z-index: 30; width: 60px; height: 60px; object-fit: contain; pointer-events: none; opacity: 0; will-change: transform, opacity; animation: rxfly 1.6s ease-out forwards; }
@keyframes rxfly { 0% { opacity: 0; transform: translate(-50%, 0) scale(.6); } 15% { opacity: 1; transform: translate(calc(-50% + var(--dx) * .3), -24px) scale(1.05); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -150px) scale(.95); } }

/* the line under the stage */
.title-row { padding: 6px 2px 0; }
.title-row h1 { margin: 0; font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.title-row h1 span { color: var(--mut); }
.title-row p { margin: 6px 0 0; color: var(--mut); font-size: 14.5px; max-width: 640px; }

/* ---------- chat (docked) ---------- */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.chd { display: flex; align-items: center; gap: 8px; height: 50px; flex: none; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.chd h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); white-space: nowrap; }
.herec { color: var(--dim); font-size: 12.5px; white-space: nowrap; }
.chlast { display: none; }
.sp { flex: 1; }
.namechip { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; font-size: 12.5px; color: var(--mut); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.namechip:hover { color: var(--fg); border-color: var(--mut); }
.fl-x { display: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--mut); position: relative; }
.fl-x::before { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: currentColor; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 6px 10px 10px; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.mempty { margin: auto; text-align: center; color: var(--dim); font-size: 13.5px; padding: 20px; }
.mempty b { display: block; color: var(--fg); font-size: 14.5px; margin-bottom: 2px; }
.m { position: relative; display: flex; gap: 10px; padding: 6px 8px; border-radius: 9px; font-size: 14px; }
.m:hover { background: var(--panel); }
.m.cont { padding-top: 1px; }
.m.cont > .av { visibility: hidden; height: 0; }
.m.new { animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.m > .av { margin-top: 2px; width: 26px; height: 26px; }
.mh { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mh b { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh .t { color: var(--dim); font-size: 11.5px; margin-left: auto; padding-left: 6px; flex: none; }
.bdg { font: 700 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; flex: none; }
.bdg.dev { background: var(--red); color: #fff; }
.bdg.h { background: var(--panel2); color: var(--mut); border: 1px solid var(--line2); }
.tx { color: #d4d4d8; overflow-wrap: anywhere; line-height: 1.45; }
.ca { border: 1px solid var(--line2); background: var(--panel2); border-radius: 6px; padding: 0 6px; font: 500 12px var(--mono); color: var(--fg); }
.mm { position: absolute; right: 6px; top: 4px; display: none; gap: 4px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 3px; }
.m:hover .mm { display: flex; }
.mm button { border: 0; background: none; font-size: 12px; padding: 3px 7px; border-radius: 6px; color: var(--mut); }
.mm button:hover { background: var(--line); color: var(--fg); }
.mm button.x { color: #ff7b72; }
.payl { display: flex; align-items: center; gap: 10px; margin: 6px 4px; padding: 9px 12px; border-radius: 10px; background: rgba(34,211,122,.08); border: 1px solid rgba(34,211,122,.3); text-decoration: none; font-size: 13.5px; }
.payl svg { width: 18px; height: 18px; fill: var(--gold); flex: none; }
.payl > span:not(.fdim) { flex: 1; min-width: 0; }
.payl b { color: var(--green); }
.payl b:first-child { color: var(--fg); }
.fdim { color: var(--dim); font-size: 11.5px; }
.newpill { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); height: 30px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--fg); color: #0b0b0c; font-size: 12.5px; font-weight: 600; z-index: 2; }
.comp { flex: none; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.cbox { display: flex; align-items: flex-end; gap: 6px; padding: 5px 5px 5px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line2); }
.cbox:focus-within { border-color: var(--mut); }
.cbox textarea { flex: 1; min-width: 0; border: 0; background: none; resize: none; outline: none; padding: 7px 0; font-size: 14px; line-height: 1.4; max-height: 110px; }
.cbox textarea::placeholder { color: var(--dim); }
.send { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; }
.send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.send:disabled { background: var(--panel2); color: var(--dim); cursor: default; }
.cnote { margin-top: 7px; font-size: 12px; color: var(--dim); }
.cnote b { color: var(--mut); font-weight: 500; }
.cnote button { border: 0; background: none; padding: 0; color: var(--mut); text-decoration: underline; text-underline-offset: 2px; font-size: 12px; }
.cnote.bad { color: #ff7b72; }
.slowtag { color: var(--gold); }

/* ---------- below the app ---------- */
.below { padding: 56px 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.step { background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.sn { font: 600 12px var(--mono); color: var(--red); letter-spacing: .1em; }
.step b { font-size: 18px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--mut); font-size: 14.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.card:empty { display: none; }
.card h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.bh-list { display: flex; flex-direction: column; }
.bh { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.bh:first-child { border-top: 0; }
.bh-n { display: flex; flex-direction: column; min-width: 0; font-weight: 600; font-size: 14px; }
.bh-n small { color: var(--dim); font-weight: 400; font-size: 12px; }
.bh-e { color: var(--green); font-weight: 600; font-family: var(--mono); font-size: 13.5px; }
.bh-t { color: var(--dim); font-size: 12px; width: 28px; text-align: right; }
.ms-coin { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ms-coin > div:not(.ms-mc) { display: flex; flex-direction: column; }
.ms-coin b { font-size: 18px; }
.ms-coin small { color: var(--mut); font-size: 13px; }
.cav { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.cav.ph { display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 20px; }
.ms-mc { margin-left: auto; text-align: right; font: 600 20px var(--mono); display: flex; flex-direction: column; }
.ms-mc small { font: 500 12px var(--font); color: var(--mut); }
.ms-mc small.up { color: var(--green); } .ms-mc small.dn { color: #ff7b72; }
.cabox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); margin-bottom: 12px; }
.cabox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12.5px var(--mono); color: var(--mut); }
.cabox button { height: 28px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel); font-size: 12.5px; font-weight: 600; }
.cabox button:hover { border-color: var(--mut); }
.bs-info .note { margin-bottom: 12px; }
.bs-info .note b { color: var(--green); }
.ms-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-btns .btn:first-child { background: var(--green); border-color: var(--green); color: #04150b; }

.faq-sec { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; padding: 72px 0 48px; }
.faq-sec h2 { margin: 0; font-size: 36px; letter-spacing: -.03em; line-height: 1.1; }
.sub { color: var(--mut); margin: 10px 0 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--mut); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--mut); max-width: 640px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.fbottom { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fbottom nav { display: flex; gap: 20px; }
.fbottom nav a { color: var(--mut); text-decoration: none; font-size: 14px; }
.fbottom nav a:hover { color: var(--fg); }
.fine { margin-left: auto; color: var(--dim); font-size: 12.5px; }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr) 190px; gap: 48px; max-width: 1240px; padding-top: 40px; padding-bottom: 80px; }
.dnav { position: sticky; top: calc(var(--hh) + 32px); align-self: start; }
.dgroup { margin-bottom: 22px; display: flex; flex-direction: column; }
.dgroup h5, .dtoc h5 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.dgroup a { padding: 5px 10px; margin-left: -10px; border-radius: 7px; text-decoration: none; color: var(--mut); font-size: 14px; }
.dgroup a:hover { color: var(--fg); }
.dgroup a.on { color: var(--fg); background: var(--panel2); }
.dbody { min-width: 0; max-width: 720px; }
.crumbs { color: var(--dim); font-size: 13px; margin-bottom: 14px; }
.crumbs b { color: var(--mut); font-weight: 500; }
.dbody h1 { font-size: 40px; letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.1; scroll-margin-top: 90px; }
.dbody h2 { font-size: 24px; letter-spacing: -.02em; margin: 48px 0 12px; scroll-margin-top: 90px; padding-top: 24px; border-top: 1px solid var(--line); }
.dbody p, .dbody li { color: #c8c8ce; font-size: 15.5px; line-height: 1.7; }
.dbody b { color: var(--fg); }
.dlead { font-size: 18px !important; color: var(--fg) !important; }
.dbody ul, .dbody ol { padding-left: 22px; }
.steps-list li { margin-bottom: 6px; }
.callout { margin: 18px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line2); border-left: 3px solid var(--red); background: var(--bg2); color: #c8c8ce; font-size: 14.5px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dtable th, .dtable td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.dtable thead th { border-top: 0; background: var(--bg2); color: var(--mut); font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.dtable td:first-child { color: var(--mut); white-space: nowrap; }
.dbody .faq summary { font-size: 15.5px; }
.dnext { margin-top: 36px; }
.dtoc { position: sticky; top: calc(var(--hh) + 32px); align-self: start; }
.dtoc-in { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 14px; }
.dtoc a { text-decoration: none; color: var(--dim); font-size: 13px; padding: 4px 0; }
.dtoc a:hover, .dtoc a.on { color: var(--fg); }

/* ---------- overlays ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--fg); color: #0b0b0c; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; z-index: 120; animation: rise .2s both; max-width: calc(100vw - 32px); }
.wpick { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; animation: fade .15s both; }
@keyframes fade { from { opacity: 0; } }
.wpick-in { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; padding: 22px; }
.wpick-in h3 { margin: 0 0 4px; font-size: 18px; }
.wpick-in p { margin: 0 0 14px; color: var(--mut); font-size: 14px; }
.field input { width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line2); background: var(--bg); padding: 0 12px; outline: none; }
.field input:focus { border-color: var(--mut); }
.msg { min-height: 18px; margin: 8px 0; font-size: 13px; }
.msg.bad { color: #ff7b72; }
.row2 { display: flex; gap: 8px; justify-content: flex-end; }
.vdock { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 6px 6px 14px; font-size: 13.5px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1280px) {
  .app { grid-template-columns: 260px minmax(0, 1fr) 320px; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr) 340px; height: auto; min-height: 0; }
  .stagecol { grid-column: 1; grid-row: 1; overflow: visible; }
  .fl-chat { grid-column: 2; grid-row: 1 / span 2; height: calc(100dvh - var(--hh)); position: sticky; top: var(--hh); }
  .rail { grid-column: 1; grid-row: 2; border-right: 0; border-top: 1px solid var(--line); overflow: visible; display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding: 20px; }
  .rail-h { grid-column: 1 / -1; }
  .player { height: clamp(320px, 58vh, 560px); }
  .docs { grid-template-columns: 200px minmax(0, 1fr); }
  .dtoc { display: none; }
}
@media (max-width: 760px) {
  :root { --hh: 52px; }
  .bar { gap: 14px; padding: 0 14px; }
  .links { display: none; }
  .onair { display: none; }
  .wrap { padding: 0 16px; }
  .app { display: flex; flex-direction: column; border-bottom: 0; }
  .stagecol { padding: 12px 12px 4px; order: 1; }
  .rail { order: 2; display: flex; align-items: stretch; padding: 16px 12px; background: var(--bg); border-top: 0; }
  .fl-chat { order: 3; position: relative; top: 0; height: 70vh; height: 70dvh; border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .fl-chat.min { height: 50px; }
  .fl-chat.min .msgs, .fl-chat.min .comp { display: none; }
  .fl-x { display: block; }
  .fl-chat.min .fl-x::after { content: ''; position: absolute; top: 8px; bottom: 8px; left: 13px; width: 2px; background: currentColor; }
  .player { height: auto; aspect-ratio: 4 / 5; max-height: 72vh; border-radius: 14px; }
  .bs-top { top: 10px; left: 10px; right: 10px; gap: 8px; }
  .bs-top > b, .bs-coin { display: none; }
  .bs-aud span:last-child { display: none; }
  .bs-center { inset: 46px 10px 70px; }
  .bs-earn { right: 0; left: 0; bottom: 12px; align-items: center; text-align: center; }
  .deck { flex-direction: column; align-items: stretch; }
  .bs-controls { justify-content: center; }
  .bs-controls .bsb { flex: 1; justify-content: center; padding: 0 12px; }
  .bs-rx { margin-left: 0; justify-content: space-between; }
  .bs-rx button { width: 34px; height: 34px; }
  .bs-rx img { width: 30px; height: 30px; }
  .rx-fly { width: 52px; height: 52px; }
  .title-row { display: none; }
  .bs-last { font-size: 11.5px; }
  .below { padding-top: 32px; }
  .steps { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .faq-sec { grid-template-columns: 1fr; gap: 16px; padding: 48px 0 32px; }
  .faq-sec h2 { font-size: 28px; }
  .fine { margin-left: 0; width: 100%; }
  .docs { grid-template-columns: 1fr; padding-top: 24px; gap: 0; }
  .dnav { display: none; }
  .dbody h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .onair i, .bs-live i { animation: none; }
  .rx-fly { animation-duration: 1.2s; }
}
[data-toc] { display: flex; flex-direction: column; }
