:root {
  --bg: #07100b;
  --panel: #0c1610;
  --panel-2: #101d15;
  --line: rgba(124, 255, 107, 0.22);
  --line-soft: rgba(124, 255, 107, 0.14);
  --grid: rgba(159, 179, 163, 0.13);
  --neon: #7cff6b;
  --neon-dim: #3fae36;
  --violet: #9b6bff;
  --violet-text: #b99bff;
  --teal: #2fd4c4;
  --text: #eef5ee;
  --muted: #9fb3a3;
  --faint: #5d7363;
  --up: #7cff6b;
  --down: #ff6b78;
  --on-neon: #06110a;
  --on-violet: #140a2a;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Archivo Black", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: #000; overflow: hidden; }
body { font-family: Inter, system-ui, sans-serif; color: var(--text); }
[hidden] { display: none !important; }

/* Fixed stage (1920x1080 or 1080x1920), scaled to fit any window. */
#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: center; transform: translate(-50%, -50%) scale(var(--scale, 1));
  background: var(--bg); overflow: hidden;
}
#stage.portrait { width: 1080px; height: 1920px; }

.bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,255,107,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(124,255,107,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ---------- top bar ---------- */
.topbar { position: absolute; top: 36px; left: 56px; right: 56px; height: 64px; display: flex; justify-content: space-between; align-items: center; }
.brand, .topright { display: flex; align-items: center; gap: 20px; }
/* lettering sits at 61.7% of the image height (antennas above): centre the lettering, not the box */
.logo { display: block; height: 76px; width: auto; transform: translateY(-11.7%); }
.live { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 6px; background: #d0202f; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: 2px; }
/* viewer page (/live): its header carries the brand; the picture keeps only the desk label */
#stage.viewer .brand > .logo, #stage.viewer .brand > .live { display: none; }
.live i { width: 11px; height: 11px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.desk { padding: 8px 14px; border: 1px solid rgba(124,255,107,0.3); border-radius: 6px; font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: 1px; color: var(--neon); }
.nfa { font-family: var(--mono); font-size: 17px; color: var(--muted); border: 1px solid var(--line); padding: 8px 14px; border-radius: 6px; background: rgba(0,0,0,0.3); }
.clock { font-family: var(--mono); font-size: 26px; font-weight: 700; }
/* viewer page only: stays clickable when the stream is shown small (at least ~26 screen px) */
.fs-btn {
  --fs: max(56px, calc(26px / var(--scale, 1)));
  position: relative; z-index: 11; /* above the "start audio" screen */
  flex: none; display: grid; place-items: center; width: var(--fs); height: var(--fs); margin: 0; padding: 0;
  border: 2px solid var(--line); border-radius: calc(var(--fs) * 0.2); background: rgba(0, 0, 0, 0.45); color: var(--text); cursor: pointer;
}
.fs-btn:hover { border-color: var(--neon); color: var(--neon); }
.fs-btn:focus-visible { outline: 3px solid var(--neon); outline-offset: 3px; }
/* speaker button: while the browser blocks sound it grows into a "TAP FOR SOUND" pill */
.sound-btn.blocked { width: auto; display: flex; align-items: center; gap: calc(var(--fs) * 0.18); padding: 0 calc(var(--fs) * 0.3) 0 calc(var(--fs) * 0.18);
  border-color: var(--neon); background: var(--neon); color: var(--on-neon); animation: tap-pulse 1.6s ease-in-out infinite; }
.sound-btn.blocked svg { width: calc(var(--fs) * 0.55); height: calc(var(--fs) * 0.55); flex: none; }
.sound-btn.blocked span { font: 800 calc(var(--fs) * 0.3) Inter, sans-serif; letter-spacing: 1px; white-space: nowrap; }
.sound-btn .spk { fill: currentColor; }
@keyframes tap-pulse { 50% { box-shadow: 0 0 0 calc(var(--fs) * 0.12) rgba(124, 255, 107, 0.25); } }
@media (prefers-reduced-motion: reduce) { .sound-btn.blocked { animation: none; } }
.fs-btn svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- anchor camera ---------- */
.cam { position: absolute; left: 56px; top: 132px; width: 760px; height: 700px; border-radius: 20px; overflow: hidden; background: #050b07; border: 1px solid var(--line); }
.cam-bg { position: absolute; inset: -12px; background: center / cover no-repeat; filter: blur(3px) saturate(0.95) brightness(0.92); }
.character { position: absolute; inset: 0; animation: breathe 4.5s ease-in-out infinite; transform-origin: bottom center; }
.character.puppet, .character.puppet.talking { animation: none; }
.character .puppet-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.character img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; visibility: hidden; }
.character img.on { visibility: visible; }
.character svg { position: absolute; left: 50%; bottom: 0; height: 92%; transform: translateX(-50%); }
.character.talking { animation: breathe 4.5s ease-in-out infinite, nod 0.9s ease-in-out infinite; }
.character[data-emotion="hype"].talking { animation: breathe 4.5s ease-in-out infinite, bounce 0.5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(-4px) scale(1.005); } }
@keyframes nod { 50% { rotate: -0.6deg; } }
@keyframes bounce { 50% { translate: 0 -8px; } }
/* until the anchor has loaded, the camera shows a loading screen (never the bare SVG placeholder) */
#fallback { display: none; }
.cam > .cam-bg, .cam > .character, .cam > .plate { opacity: 0; transition: opacity 0.5s ease; }
.cam.ready > .cam-bg, .cam.ready > .character, .cam.ready > .plate { opacity: 1; }
.cam-loader {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 45%, rgba(124, 255, 107, 0.09), transparent 60%), #050b07;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.cam.ready .cam-loader { opacity: 0; visibility: hidden; }
.cam-loader-ring { width: 72px; height: 72px; border-radius: 50%; border: 4px solid var(--line-soft); border-top-color: var(--neon); animation: cam-spin 0.9s linear infinite; }
.cam-loader b { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 4px; color: var(--text); }
.cam-loader span { font-family: var(--mono); font-size: 17px; color: var(--muted); animation: cam-pulse 1.8s ease-in-out infinite; }
#stage.takeover .cam-loader b, #stage.takeover .cam-loader span { display: none; }
#stage.takeover .cam-loader-ring { width: 44px; height: 44px; }
@keyframes cam-spin { to { transform: rotate(360deg); } }
@keyframes cam-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .cam-loader-ring, .cam-loader span { animation: none; } }
.plate { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 26px; display: flex; align-items: center; justify-content: space-between; background: rgba(4,9,6,0.92); border-top: 3px solid var(--neon); }
.plate-name { display: flex; flex-direction: column; gap: 4px; }
.plate-name b { font-family: var(--display); font-weight: 400; font-size: 30px; letter-spacing: 2px; }
.plate-name small { font-family: var(--mono); font-size: 16px; color: var(--muted); }
.meter { display: flex; align-items: flex-end; gap: 5px; height: 36px; }
.meter i { width: 7px; height: 6px; border-radius: 2px; background: var(--neon); transition: height 0.08s linear; }

/* ---------- up next ---------- */
.upnext { position: absolute; left: 56px; top: 856px; width: 760px; height: 90px; padding: 0 26px; display: flex; align-items: center; gap: 20px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.pill { flex: none; padding: 7px 12px; border-radius: 6px; background: var(--violet); color: var(--on-violet); font-weight: 800; font-size: 17px; letter-spacing: 2px; }
.upnext-list { display: flex; align-items: center; gap: 16px; font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.upnext-list span { color: var(--muted); }
.upnext-list span:first-child { color: var(--text); }
.upnext-list i { font-style: normal; color: var(--faint); }

/* ---------- card ---------- */
.card {
  position: absolute; left: 876px; top: 132px; width: 988px; height: 600px; padding: 34px 44px 30px;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  transition: opacity 0.35s, transform 0.35s;
}
.card.leaving { opacity: 0; transform: translateX(40px); }
.card.no-chart:not(.with-media) { height: auto !important; max-height: 600px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-head-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.card-label { flex: none; padding: 7px 14px; border-radius: 6px; background: var(--neon); color: var(--on-neon); font-weight: 800; font-size: 18px; letter-spacing: 2px; }
.card[data-kind="trending"] .card-label { background: var(--violet); color: var(--on-violet); }
.card[data-kind="market"] .card-label, .card[data-kind="headline"] .card-label { background: var(--teal); color: var(--on-neon); }
.card[data-emotion="shock"] .card-label { background: var(--down); color: #1a0306; }
.card-sub, .card-age { font-family: var(--mono); font-size: 17px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-age { flex: none; }
.card-main { flex: 1; min-height: 0; display: flex; gap: 32px; margin-top: 20px; }
.card-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-top { display: flex; flex-direction: column; gap: 24px; }
.card-title { font-family: var(--display); font-weight: 400; font-size: 50px; line-height: 1.08; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.stats:empty { display: none; }
.stat { padding: 14px 18px; border-radius: 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat span { font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font-family: var(--mono); font-size: 30px; font-weight: 700; white-space: nowrap; }
.stat b.up { color: var(--up); }
.stat b.down { color: var(--down); }
.card-text { margin-top: 22px; font-size: 24px; line-height: 1.4; font-weight: 600; color: #d6e3d8; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-text:empty { display: none; }
.chart { position: relative; flex: 1; min-height: 0; margin-top: 22px; }
.card-foot { margin-top: 14px; display: flex; justify-content: space-between; font-size: 16px; color: var(--muted); }
.card-media { flex: none; width: 380px; margin: -6px 0 -6px -20px; border-radius: 14px; overflow: hidden; background: var(--panel-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.with-media { padding: 28px 36px 26px; }
.card.with-media .card-title { font-size: 42px; -webkit-line-clamp: 3; }
.card.with-media .card-text { font-size: 22px; }

/* ---------- charts (built by charts.js) ---------- */
.chart > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ch-grid { stroke: var(--grid); stroke-width: 1; }
.ch-axis { fill: var(--muted); font-family: var(--mono); font-size: 15px; }
.ch-marker { stroke: var(--violet); stroke-width: 2; stroke-dasharray: 6 6; }
.ch-marker-label { fill: var(--violet-text); font-family: var(--mono); font-size: 14px; font-weight: 700; }
.ch-tag rect { fill: var(--neon); }
.ch-tag text { fill: var(--on-neon); font-family: var(--mono); font-size: 15px; font-weight: 700; }
.ch-hilo { fill: var(--text); font-family: var(--mono); font-size: 15px; font-weight: 700; }

.bars { position: absolute; inset: 0 0 26px 0; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid rgba(159,179,163,0.3); }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: rgba(124,255,107,0.32); }
.bars i.now { background: var(--neon); }
.bars .avg { position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(238,245,238,0.55); }
.bars .avg b { position: absolute; left: 0; top: -26px; padding: 3px 8px; border-radius: 4px; background: var(--bg); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.bars-axis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; color: var(--muted); }

.lb { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-head, .lb-row { display: grid; grid-template-columns: 44px 44px minmax(0, 220px) minmax(0, 1fr) 130px; column-gap: 16px; align-items: center; }
.lb-head { font-family: var(--mono); font-size: 14px; letter-spacing: 1px; color: var(--muted); }
.lb-head span:last-child, .lb-row .chg { text-align: right; padding-right: 14px; }
.lb-row { flex: 1; min-height: 0; max-height: 64px; border-radius: 12px; background: var(--panel-2); }
.lb-row.hl { background: rgba(124,255,107,0.1); outline: 1px solid rgba(124,255,107,0.35); }
.lb-row .rank { font-family: var(--display); font-size: 28px; text-align: center; color: var(--muted); }
.lb-row.hl .rank { color: var(--neon); }
.lb-row .tok-ic.av { width: 44px; height: 44px; }
.lb-row .nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-row .nm b { font-weight: 800; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .nm small { font-family: var(--mono); font-size: 15px; color: var(--muted); }
.lb-row .vol { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-row .track { flex: 1; height: 18px; border-radius: 4px; background: rgba(159,179,163,0.1); overflow: hidden; }
.lb-row .track i { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.lb-row .vol b { width: 84px; font-family: var(--mono); font-size: 20px; }
.lb-row .chg { font-family: var(--mono); font-size: 22px; font-weight: 700; }

.prog { position: absolute; inset: 0; display: flex; flex-direction: column; }
.prog-top { display: flex; align-items: flex-end; justify-content: space-between; }
.prog-top b { font-family: var(--display); font-weight: 400; font-size: 72px; line-height: 0.9; color: var(--neon); }
.prog-top span { font-family: var(--mono); font-size: 18px; color: var(--muted); }
.prog-bar { position: relative; margin-top: 14px; height: 36px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.prog-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--neon) repeating-linear-gradient(135deg, rgba(6,17,10,0.18) 0 10px, transparent 10px 20px); }
.prog-steps { margin-top: 24px; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.prog-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--panel-2); }
.prog-steps li.todo { background: none; border: 1px dashed rgba(155,107,255,0.6); }
.prog-steps .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--neon); display: flex; align-items: center; justify-content: center; }
.prog-steps li.todo .dot { background: none; border: 2px solid var(--violet); }
.prog-steps .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prog-steps .txt b { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-steps .txt small { font-family: var(--mono); font-size: 14px; color: var(--muted); }

/* ---------- captions ---------- */
.captions { position: absolute; left: 876px; right: 56px; top: 756px; height: 190px; display: flex; align-items: flex-end; }
.captions p { font-size: 34px; line-height: 1.35; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.8); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.captions p span { opacity: 0.32; transition: opacity 0.12s; }
.captions p span.said { opacity: 1; }
.captions p:lang(zh) { font-family: Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.captions p:lang(ar) { font-family: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Inter, sans-serif; line-height: 1.5; }
.lang-chip { padding: 6px 10px; border-radius: 6px; background: rgba(124,255,107,0.12); border: 1px solid rgba(124,255,107,0.35); font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: 1px; color: var(--neon); }

/* ---------- ticker ---------- */
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; display: flex; background: #040906; border-top: 2px solid var(--neon); }
.prices { display: flex; align-items: center; gap: 32px; padding: 0 36px; background: #0d1a11; font-family: var(--mono); font-size: 26px; font-weight: 700; white-space: nowrap; }
.prices b { color: var(--muted); font-weight: 500; margin-right: 10px; }
.prices .up { color: var(--up); } .prices .down { color: var(--down); }
.tape { flex: 1; display: flex; align-items: center; overflow: hidden; }
.tape-label { flex: none; padding: 0 22px; height: 100%; display: flex; align-items: center; background: var(--neon); color: var(--on-neon); font-weight: 800; font-size: 20px; letter-spacing: 2px; }
.tape-label .short { display: none; }
.tape-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tape-inner { display: inline-flex; gap: 44px; white-space: nowrap; padding-left: 100%; animation: tape 60s linear infinite; font-family: var(--mono); font-size: 24px; }
.tape-inner span em { font-style: normal; color: var(--neon); margin-left: 10px; }
@keyframes tape { to { transform: translateX(-100%); } }
/* Dex Paid: breaking mode of the bottom bar */
.ticker.breaking { border-top-color: #ff2e43; }
.ticker.breaking .tape { background: linear-gradient(90deg, rgba(208, 32, 47, 0.28), rgba(208, 32, 47, 0.08)); }
.ticker.breaking .tape-label { background: #d0202f; color: #fff; animation: breaking-pulse 1.2s ease-in-out infinite; }
.tape-inner span i.grad { background: var(--neon); color: var(--on-neon); }
.tape-inner span i { font-style: normal; margin-left: 12px; padding: 3px 9px; border-radius: 5px; background: #d0202f; color: #fff; font: 800 17px Inter, sans-serif; letter-spacing: 1.5px; vertical-align: 3px; }
@keyframes breaking-pulse { 50% { background: #8f0f1c; } }
@media (prefers-reduced-motion: reduce) { .ticker.breaking .tape-label { animation: none; } }

/* ======================================================================
   Chart takeover (landscape): big candle chart, anchor as picture-in-picture
   ====================================================================== */
#stage.takeover .card { left: 56px; width: 1808px; height: 600px; padding: 26px 36px 24px; }
#stage.takeover .card-main { margin-top: 18px; }
#stage.takeover .card-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
#stage.takeover .card-title { font-size: 40px; -webkit-line-clamp: 1; flex: 1; min-width: 0; }
#stage.takeover .stats { display: flex; gap: 36px; }
#stage.takeover .stat { padding: 0; background: none; align-items: flex-end; gap: 2px; }
#stage.takeover .chart { margin-top: 18px; }
#stage.takeover .card-foot { display: none; }
#stage.takeover .cam { top: 756px; width: 194px; height: 194px; border-radius: 16px; border: 2px solid var(--neon); }
#stage.takeover .plate { padding: 6px 10px; border-top-width: 2px; }
#stage.takeover .plate-name b { font-size: 16px; }
#stage.takeover .plate-name small, #stage.takeover .meter { display: none; }
#stage.takeover .upnext { display: none; }
#stage.takeover .captions { left: 282px; top: 756px; height: 194px; align-items: center; }

/* ======================================================================
   Portrait 1080x1920 (TikTok, X, Shorts, pump.fun mobile)
   ====================================================================== */
#stage.portrait .bg { background-size: 72px 72px; }
#stage.portrait .topbar { top: 48px; left: 48px; right: 48px; height: auto; display: grid; grid-template-columns: auto auto 1fr auto; grid-template-areas: "logo live . clock" "desk desk nfa nfa"; row-gap: 22px; column-gap: 18px; align-items: center; }
#stage.portrait .brand, #stage.portrait .topright { display: contents; }
#stage.portrait .logo { grid-area: logo; height: 72px; }
#stage.portrait .live { grid-area: live; justify-self: start; }
#stage.portrait .clock { grid-area: clock; }
#stage.portrait .desk { grid-area: desk; justify-self: start; padding: 0; border: 0; }
#stage.portrait .nfa { grid-area: nfa; justify-self: end; padding: 0; border: 0; background: none; }
#stage.portrait .cam { left: 48px; right: 48px; width: auto; top: 172px; height: 724px; border-radius: 28px; }
#stage.portrait .plate-name small { font-size: 16px; }
#stage.portrait .upnext { display: none; }
#stage.portrait .card { left: 48px; right: 48px; width: auto; top: 920px; height: 600px; padding: 30px 36px 26px; border-radius: 24px; }
#stage.portrait .card-title { font-size: 44px; line-height: 1.1; }
#stage.portrait .card-top { gap: 20px; }
#stage.portrait .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#stage.portrait .stat { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 12px 18px; }
#stage.portrait .card-main { flex-direction: column; gap: 20px; }
#stage.portrait .card-media { width: auto; height: 220px; margin: 0; }
#stage.portrait .card.with-media .card-title { font-size: 38px; -webkit-line-clamp: 2; }
#stage.portrait .card.with-media .card-text { -webkit-line-clamp: 2; }
#stage.portrait .lb-head, #stage.portrait .lb-row { grid-template-columns: 40px 44px minmax(0, 200px) minmax(0, 1fr) 120px; column-gap: 12px; }
#stage.portrait .captions { left: 48px; right: 48px; top: 1540px; height: 190px; align-items: center; }
#stage.portrait .captions p { font-size: 36px; line-height: 1.32; }
#stage.portrait .ticker { height: 170px; flex-direction: column; }
#stage.portrait .prices { height: 78px; flex: none; justify-content: space-between; padding: 0 48px; font-size: 25px; gap: 16px; }
#stage.portrait .prices b { margin-right: 6px; }
#stage.portrait .tape-label .long { display: none; }
#stage.portrait .tape-label .short { display: inline; }

/* portrait takeover: PiP top-left, up-next beside it, chart fills the middle */
#stage.portrait.takeover .cam { right: auto; width: 260px; height: 260px; border-radius: 22px; }
#stage.portrait.takeover .upnext { display: flex; left: 332px; right: 48px; width: auto; top: 172px; height: 260px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 24px 28px; }
#stage.portrait.takeover .upnext-list { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 24px; }
#stage.portrait.takeover .upnext-list i { display: none; }
#stage.portrait.takeover .card { left: 48px; right: 48px; width: auto; top: 456px; height: 1064px; padding: 28px 28px 24px; }
#stage.portrait.takeover .card-top { flex-direction: column; align-items: stretch; gap: 18px; }
#stage.portrait.takeover .card-title { font-size: 38px; }
#stage.portrait.takeover .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#stage.portrait.takeover .stat { background: var(--panel-2); padding: 12px 18px; align-items: baseline; }
#stage.portrait.takeover .captions { left: 48px; top: 1540px; height: 190px; }

/* ---------- viewer-only avatar switch (never in OBS) ---------- */

/* ---------- click-to-start (browsers block autoplay audio) ---------- */
.start { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: center; padding: 40px; text-align: center; background: rgba(0,0,0,0.75); }
.start button { font: 800 34px Inter, sans-serif; padding: 26px 46px; border-radius: 14px; border: 0; background: var(--neon); color: var(--on-neon); cursor: pointer; }
.start small { font-size: 22px; line-height: 1.5; color: var(--muted); }
.start code { color: var(--text); }

/* ---------- off air (show stopped in the admin page) ---------- */
.offair { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(ellipse at 50% 40%, rgba(124,255,107,0.10), transparent 60%), #050a07; text-align: center; }
.offair img { width: min(560px, 46%); height: auto; filter: drop-shadow(0 20px 60px rgba(124,255,107,0.18)); }
.offair b { font-family: var(--mono); font-size: 54px; letter-spacing: 10px; color: var(--neon); }
.offair span { font-size: 30px; color: var(--muted); }
#stage.portrait .offair img { width: 70%; }
