/* Layout idea: a stream timeline runs under the hero; everything else is a quiet editorial grid. */
:root {
  --bg: #111013;
  --surface: #1A181D;
  --raised: #24212A;
  --line: #33303A;
  --text: #F1EEEA;
  --muted: #A7A1AB;
  --tally: #FF4B2B;
  --tally-ink: #1A0905;
  --caption: #FFE200;
  --ok: #3DDC97;
  --warn: #FFB020;
  --bad: #FF6B6B;
  --display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heavy: "Archivo Black", "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 30px 80px -30px rgb(0 0 0 / .7);
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body); font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img, canvas, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
:focus-visible { outline: 3px solid var(--caption); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tally); color: var(--tally-ink); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--caption); color: #000;
  padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.muted { color: var(--muted); }
.display { font-family: var(--display); text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgb(17 16 19 / .88);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo img, .logo svg { width: 30px; height: 30px; flex: none; }
.logo b span { color: var(--tally); }
.logo b { font: 400 26px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--body);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn-primary { background: var(--tally); color: var(--tally-ink); }
.btn-primary:hover { background: #ff6447; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--raised); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.link { color: var(--tally); text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .7fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 0 4px rgb(255 75 43 / .2); }
.hero h1 { font-size: clamp(54px, 8.6vw, 124px); margin: 18px 0 22px; }
.hero h1 span { color: var(--tally); }
.lede { font-size: 20px; line-height: 1.55; max-width: 34em; color: #dcd8d3; }
.price-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; margin: 6px 0 26px; }
.price-line strong { font: 400 34px/1 var(--display); color: var(--text); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 26px; color: var(--muted); }
.specs span::before { content: "■ "; color: var(--tally); font-size: 9px; vertical-align: 2px; }
.hero-phone { justify-self: center; width: min(100%, 320px); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { width: min(78vw, 300px); }
}

/* ---------- timeline scan ---------- */
.scan { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #151317, #111013); }
.scan .wrap { padding: 18px 0 14px; }
.scan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 12px; }
.scan-head .file { color: var(--text); }
.scan-head .found { margin-left: auto; color: var(--tally); }
.wave { width: 100%; height: 150px; }
.axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); }
@media (max-width: 600px) { .wave { height: 120px; } .axis span:nth-child(even) { display: none; } }

/* ---------- phone mock ---------- */
.phone { position: relative; aspect-ratio: 9 / 19; border-radius: 44px; padding: 10px; background: #050506;
  box-shadow: var(--shadow), inset 0 0 0 2px #2b2830; }
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #000; container-type: inline-size; }
.screen .cam { position: absolute; inset: 0 0 auto 0; height: 37.5%; overflow: hidden; }
.screen .cam .room { position: absolute; inset: 0; }
.screen .cam .tag { position: absolute; left: 7%; top: 8%; display: flex; align-items: center; gap: 6px;
  font: 500 3.6cqw/1 var(--mono); color: rgb(255 255 255 / .75); }
.screen .cam .tag i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--tally); }
.screen .cam .glow { position: absolute; inset: 0; }
.screen .cam .person { position: absolute; left: 12%; right: 12%; bottom: 0; height: 86%; width: 76%; }
.screen .game { position: absolute; inset: 37.5% 0 0 0; }
.screen .game canvas { width: 100%; height: 100%; }
.screen .cap { position: absolute; left: 4%; right: 4%; top: 37.5%; transform: translateY(-50%); text-align: center; z-index: 3; }
.screen .hook { position: absolute; left: 8%; right: 8%; top: 45.3%; z-index: 3; text-align: center; }
.screen .hook span { display: inline-block; background: #fff; color: #111013; font: 400 5.4cqw/1.12 var(--heavy);
  padding: 2.6cqw 4cqw; border-radius: 3cqw; box-shadow: 1cqw 1.2cqw 0 rgb(0 0 0 / .35); }
.screen .handle { position: absolute; left: 0; right: 0; top: 83.8%; text-align: center; z-index: 3; }
.screen .handle span { background: rgb(0 0 0 / .55); color: #fff; font: 400 3.4cqw/1 var(--heavy); padding: 1.6cqw 3cqw; border-radius: 99px; }
.screen .bar { position: absolute; left: 6%; right: 6%; bottom: 3.2%; height: 3px; background: rgb(255 255 255 / .25); border-radius: 3px; z-index: 3; }
.screen .bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.cap .w { display: inline-block; margin: 0 .12em; }
.cap-bold, .cap-neon { font: 400 11.5cqw/1.02 var(--display); text-transform: uppercase; color: #fff; }
.cap-bold .w { -webkit-text-stroke: 1.6cqw #000; paint-order: stroke fill; text-shadow: .6cqw .9cqw 0 rgb(0 0 0 / .55); }
.cap-bold .w.on { color: var(--caption); font-size: 1.1em; }
.cap-clean { font: 400 8.4cqw/1.15 var(--heavy); color: #fff; }
.cap-clean .w { -webkit-text-stroke: 1.1cqw #000; paint-order: stroke fill; padding: 0 .1em; border-radius: .25em; }
.cap-clean .w.on { background: var(--tally); -webkit-text-stroke: 0; }
.cap-neon .w { color: #fff; text-shadow: 0 0 1.2cqw #ff2bd6, 0 0 3cqw #ff2bd6, 0 0 6cqw rgb(255 43 214 / .6); -webkit-text-stroke: .5cqw #200a2a; paint-order: stroke fill; }
.cap-neon .w.on { color: #22e4ff; text-shadow: 0 0 1.2cqw #22e4ff, 0 0 3cqw #22e4ff, 0 0 6cqw rgb(34 228 255 / .6); font-size: 1.1em; }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 112px 0; }
.section + .section { padding-top: 0; }
.kicker { color: var(--tally); margin-bottom: 14px; display: block; }
.h2 { font: 400 clamp(44px, 6.4vw, 84px)/.92 var(--display); text-transform: uppercase; }
.intro { font-size: 19px; color: #d6d2cd; max-width: 36em; margin-top: 20px; }

/* how it works: a vertical timeline with timecodes */
.how { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.steps li { position: relative; padding: 0 0 40px 44px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--tally); }
.steps li:first-child::before { background: var(--tally); }
.steps h3 { font: 600 24px/1.25 var(--body); margin: 4px 0 8px; }
.steps p { color: #d0ccc7; margin: 0; max-width: 34em; }
.chip { display: inline-block; margin-top: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 40px; } }

/* anatomy */
.anatomy { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 72px; align-items: start; margin-top: 56px; }
.anatomy .phone-col { position: sticky; top: 96px; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; gap: 4px; margin-bottom: 18px; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 14px/1 var(--body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.parts { list-style: none; margin: 0; padding: 0; counter-reset: part; display: grid; gap: 0; }
.parts li { counter-increment: part; display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.parts li::before { content: counter(part, decimal-leading-zero); font: 400 34px/1 var(--display); color: var(--tally); }
.parts h3 { font: 600 21px/1.3 var(--body); margin-bottom: 6px; }
.parts p { color: #cfcac5; margin: 0; }
.parts .mono { color: var(--muted); display: block; margin-top: 8px; }
@media (max-width: 900px) {
  .anatomy { grid-template-columns: 1fr; gap: 40px; }
  .anatomy .phone-col { position: static; width: min(80vw, 320px); margin-inline: auto; text-align: center; }
}

/* who */
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
.who div { border-top: 3px solid var(--text); padding-top: 18px; }
.who div:first-child { border-color: var(--tally); }
.who h3 { font: 400 32px/1 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.who p { color: #cfcac5; }
.rights { margin-top: 40px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--muted); max-width: 52em; }
@media (max-width: 900px) { .who { grid-template-columns: 1fr; gap: 28px; } }

/* pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 48px; }
.big-price { font: 400 clamp(120px, 20vw, 240px)/.8 var(--display); color: var(--tally); }
.per { font: 600 20px/1.3 var(--body); margin: 18px 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; color: #d6d2cd; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.calc label { display: block; font-weight: 600; margin-bottom: 6px; }
.calc .len { font: 400 52px/1 var(--display); margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--tally); height: 32px; }
.calc dl { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.calc dt { color: var(--muted); }
.calc dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc dd.total { font: 400 34px/1 var(--display); color: var(--text); }
.calc .note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 40px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 19px/1.4 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 400 30px/1 var(--display); color: var(--tally); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #cfcac5; max-width: 44em; margin: -6px 0 22px; }

/* closing */
.closing { padding: 112px 0; border-top: 1px solid var(--line); background:
  radial-gradient(600px 240px at 85% 100%, rgb(255 75 43 / .16), transparent 70%); }
.closing .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: end; justify-content: space-between; }
.closing .h2 { max-width: 12em; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.foot a { color: var(--muted); }
.foot .logo { margin-right: auto; color: var(--text); }

/* ---------- admin and legal ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); margin: 20px 0 80px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: var(--surface); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 24px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.tile b { display: block; font: 400 34px/1.1 var(--display); }
.prose { max-width: 720px; padding: 40px 0 96px; }
.prose h1 { font: 400 clamp(44px, 6vw, 72px)/.92 var(--display); text-transform: uppercase; margin-bottom: 24px; }
.prose h2 { font: 600 24px/1.3 var(--body); margin: 40px 0 12px; }
.prose p, .prose li { color: #d6d2cd; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   POPOFF LIVE additions
   ===================================================================== */
.btn-twitch { background: #9147ff; color: #fff; }
.btn-twitch:hover { background: #a970ff; }
.btn-twitch svg { width: 18px; height: 18px; }
.btn-danger { background: transparent; color: var(--bad); border-color: rgb(255 107 107 / .45); }
.btn-danger:hover { background: rgb(255 107 107 / .1); }
.btn-keep { background: var(--ok); color: #04150d; }
.btn-keep:hover { background: #5be6aa; }
.kbd { font: 500 11px/1 var(--mono); border: 1px solid currentColor; border-radius: 4px; padding: 2px 5px; opacity: .7; }

/* landing: chat meter band */
.meterband { margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #151317, #111013); }
.meterband .wrap { padding: 18px 0 14px; }

/* pricing cards */
.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.pack { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 20px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pack.hot { border-color: var(--tally); box-shadow: inset 0 0 0 1px var(--tally); }
.pack .tag { position: absolute; top: -12px; left: 20px; background: var(--tally); color: var(--tally-ink);
  font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; }
.pack .tag.alt { background: var(--text); color: var(--bg); }
.pack h3 { font: 600 18px/1.2 var(--body); }
.pack .amount { font: 400 56px/.9 var(--display); }
.pack .hours { font: 600 17px/1.3 var(--body); }
.pack ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; font-size: 15px; color: #cfcac5; }
.pack ul li::before { content: "✓ "; color: var(--ok); }
.pack .btn { margin-top: auto; width: 100%; }
.save { display: inline-block; font: 600 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px;
  background: rgb(61 220 151 / .14); color: var(--ok); }
.save.none { background: var(--raised); color: var(--muted); }
.savebar { height: 6px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.savebar i { display: block; height: 100%; background: var(--ok); }
@media (max-width: 1100px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .packs { grid-template-columns: 1fr; } }

.fair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.fair div { border-top: 3px solid var(--line); padding-top: 18px; }
.fair div:first-child { border-color: var(--tally); }
.fair b { display: block; font: 400 30px/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.fair p { color: #cfcac5; }
@media (max-width: 900px) { .fair { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- app shell ---------- */
.app-top .wrap { gap: 16px; }
.tabsnav { display: flex; gap: 4px; margin-left: 12px; }
.tabsnav a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.tabsnav a:hover { color: var(--text); background: var(--raised); }
.tabsnav a[aria-current="page"] { color: var(--bg); background: var(--text); }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--tally); color: var(--tally-ink);
  font: 700 12px/20px var(--body); text-align: center; }
.balance { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.balance .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.balance.on .dot { background: var(--tally); box-shadow: 0 0 0 4px rgb(255 75 43 / .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(255 75 43 / 0); } }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--raised); flex: none; }
.mobile-nav { display: none; }
@media (max-width: 860px) {
  .tabsnav { display: none; }
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgb(17 16 19 / .96); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); text-decoration: none;
    font: 600 12px/1.2 var(--body); border-radius: 10px; position: relative; }
  .mobile-nav a[aria-current="page"] { color: var(--text); background: var(--raised); }
  .mobile-nav .count { position: absolute; top: 2px; right: calc(50% - 26px); }
  body.app { padding-bottom: 76px; }
}
.view { padding: 28px 0 80px; }
.view h1 { font: 400 clamp(40px, 5vw, 60px)/.92 var(--display); text-transform: uppercase; }
.subhead { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font: 600 19px/1.3 var(--body); margin-bottom: 12px; }
.banner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: var(--r-md); margin-bottom: 16px; border: 1px solid var(--line); background: var(--raised); }
.banner.warn { border-color: rgb(255 176 32 / .45); background: rgb(255 176 32 / .08); }
.banner.bad { border-color: rgb(255 107 107 / .45); background: rgb(255 107 107 / .08); }
.banner.good { border-color: rgb(61 220 151 / .4); background: rgb(61 220 151 / .08); }

/* radar */
.radar-head { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.switch { position: relative; width: 132px; height: 64px; border-radius: 999px; border: 0; cursor: pointer; background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 6px; left: 6px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--muted); transition: transform .2s, background .2s; }
.switch[aria-checked="true"] { background: var(--tally); }
.switch[aria-checked="true"]::after { transform: translateX(68px); background: #fff; }
.switch span { position: absolute; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--display); }
.switch .on { left: 18px; color: var(--tally-ink); opacity: 0; }
.switch .off { right: 18px; color: var(--muted); }
.switch[aria-checked="true"] .on { opacity: 1; }
.switch[aria-checked="true"] .off { opacity: 0; }
.radar-state b { display: block; font: 400 30px/1 var(--display); text-transform: uppercase; }
.bigtime { text-align: right; }
.bigtime b { display: block; font: 400 42px/1 var(--display); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .radar-head { grid-template-columns: auto 1fr; } .bigtime { grid-column: 1 / -1; text-align: left; } }
.streamers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }
.streamer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 10px; }
.streamer.live { border-color: rgb(255 75 43 / .5); }
.streamer header { display: flex; gap: 10px; align-items: center; }
.streamer header b { font-size: 17px; }
.streamer .x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.streamer .x:hover { background: var(--raised); color: var(--text); }
.livebadge { font: 600 12px/1 var(--body); padding: 5px 8px; border-radius: 6px; background: var(--raised); color: var(--muted); }
.livebadge.on { background: var(--tally); color: var(--tally-ink); }
.livebadge.warn { background: rgb(255 176 32 / .18); color: var(--warn); }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.nums b { display: block; font: 400 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.nums span { font-size: 12px; color: var(--muted); }
.spark { width: 100%; height: 56px; display: block; }
.streamer footer { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.streamer footer .btn { margin-left: auto; }
.addcard { border-style: dashed; align-content: start; }
.search { position: relative; }
.results { position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px); background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.results button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 10px 12px; border: 0; background: transparent;
  color: var(--text); font: 500 15px var(--body); text-align: left; cursor: pointer; }
.results button:hover, .results button:focus-visible { background: #2f2b36; }
.results img { width: 30px; height: 30px; border-radius: 50%; }
.results small { color: var(--muted); margin-left: auto; font-size: 12px; }
.segrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.segrow label, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 300px; overflow: auto; }
.feed li { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed time { color: var(--muted); font: 500 12px/1.6 var(--mono); flex: none; width: 64px; }
.feed .spike { color: var(--text); }
.feed .skip, .feed .info { color: var(--muted); }
.feed .error { color: var(--bad); }
.feed .good { color: var(--ok); }
input[type=text], input[type=email], input[type=url], input[type=search], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 400 16px var(--body); }
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus, select:focus { border-color: var(--tally); outline: none; box-shadow: 0 0 0 3px rgb(255 75 43 / .25); }
.hint { font-size: 14px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--tally); margin: 2px 0 0; flex: none; }

/* clips inbox */
.cliptabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; width: fit-content; }
.cliptabs button { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font: 600 14px var(--body); cursor: pointer; }
.cliptabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.cliptabs button[aria-selected="true"] .count { background: var(--bg); color: var(--text); }
.inbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.card:focus-within { border-color: #4a4552; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb .play i { width: 58px; height: 58px; border-radius: 50%; background: rgb(17 16 19 / .75); display: grid; place-items: center; }
.thumb .play i::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.heat { position: absolute; top: 10px; left: 10px; background: var(--tally); color: var(--tally-ink); font: 700 13px/1 var(--body);
  padding: 6px 9px; border-radius: 8px; }
.dur { position: absolute; bottom: 10px; right: 10px; background: rgb(0 0 0 / .7); font: 500 12px/1 var(--mono); padding: 5px 7px; border-radius: 6px; }
.card .meta { padding: 14px 16px 0; display: grid; gap: 4px; }
.card .meta b { font-size: 16px; }
.card .meta span { color: var(--muted); font-size: 13px; }
.chatlines { margin: 10px 16px 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); font: 12px/1.45 var(--mono); color: var(--muted);
  max-height: 78px; overflow: hidden; }
.chatlines div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .acts { display: flex; gap: 8px; padding: 14px 16px 16px; margin-top: auto; flex-wrap: wrap; }
.card .acts .btn { flex: 1; min-width: 0; }
.vertical { aspect-ratio: 9 / 16; width: 100%; background: #000; display: block; }
.dropzone { margin: 12px 16px 0; padding: 18px 12px; border: 2px dashed var(--line); border-radius: var(--r-md); text-align: center;
  cursor: pointer; display: grid; gap: 6px; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--tally); background: rgb(255 75 43 / .05); }
.steps2 { margin: 12px 16px 0; padding-left: 20px; font-size: 14px; color: #d6d2cd; display: grid; gap: 6px; }
.bar { height: 8px; background: var(--raised); border-radius: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--tally); transition: width .4s; }
.state { margin: 12px 16px 0; display: grid; gap: 8px; font-size: 14px; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg); margin-top: 20px; }
.empty b { display: block; color: var(--text); font: 400 30px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.bulk { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }

/* review mode */
.modal { position: fixed; inset: 0; z-index: 60; background: rgb(8 7 10 / .92); display: grid; place-items: center; padding: 16px; }
.modal .box { width: min(980px, 100%); max-height: 100%; overflow: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; }
.modal .embed { aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-md); overflow: hidden; }
.modal .embed iframe { width: 100%; height: 100%; border: 0; }
.modal .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* clip player: big, mini and full screen */
body.noscroll { overflow: hidden; }
.thumb:focus-visible { outline: 3px solid var(--caption); outline-offset: -3px; }
.tallthumb { aspect-ratio: auto; height: min(440px, 62vh); }
.tallthumb video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; pointer-events: none; }
.viewer { z-index: 70; }
.viewer.large { position: fixed; inset: 0; background: rgb(8 7 10 / .94); display: grid; place-items: center; padding: 24px; }
.viewer .vpanel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.viewer.large .vpanel { width: min(1280px, 100%); max-height: 100%; }
.viewer.large.tall .vpanel { width: auto; max-width: 100%; }
.vbar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); flex: none; }
.vtitle { flex: 1; min-width: 0; display: grid; gap: 2px; }
.vtitle b, .vtitle span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtitle span { color: var(--muted); font-size: 13px; }
.vtools { display: flex; gap: 6px; flex: none; }
.ibtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--text);
  display: grid; place-items: center; cursor: pointer; padding: 0; }
.ibtn:hover:not(:disabled) { border-color: #5b5563; }
.ibtn:disabled { opacity: .35; cursor: default; }
.ibtn .ico, .ibtn svg { display: block; }
.vbody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; min-height: 0; }
.viewer.tall .vbody { grid-template-columns: auto 320px; }
.stage { background: #000; position: relative; min-width: 0; display: grid; place-items: center; }
.stage iframe, .stage video { display: block; border: 0; width: 100%; height: 100%; background: #000; }
.stage video { object-fit: contain; }
.viewer.large .stage.wide { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 130px); }
.viewer.large .stage.vertical { height: min(calc(100vh - 130px), 860px); aspect-ratio: 9 / 16; }
.stage:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; }
.stage:-webkit-full-screen { width: 100vw; height: 100vh; }
.vside { padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: auto; border-left: 1px solid var(--line); min-height: 0; }
.vlabel { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vchat { background: var(--bg); border-radius: 10px; padding: 10px 12px; font: 12px/1.5 var(--mono); color: #cfcac4; display: grid; gap: 2px; }
.vchat div { overflow-wrap: anywhere; }
.vpost { background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; color: #d6d2cd; }
.vacts { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; }
.vkeys { font-size: 12px; margin: 0; }
.viewer.mini { position: fixed; right: 16px; bottom: 16px; width: 400px; max-width: calc(100vw - 32px);
  box-shadow: 0 18px 50px rgb(0 0 0 / .55); border-radius: var(--r-lg); }
.viewer.mini.tall { width: 250px; }
.viewer.mini .vbody { display: block; }
.viewer.mini .vside, .viewer.mini .navbtn, .viewer.mini .vtitle span { display: none; }
.viewer.mini .stage.wide { aspect-ratio: 16 / 9; }
.viewer.mini .stage.vertical { aspect-ratio: 9 / 16; max-height: 60vh; margin: 0 auto; }
.viewer.mini .vbar { padding: 6px 6px 6px 12px; gap: 6px; }
.viewer.mini .ibtn { width: 34px; height: 34px; }
@media (hover: none) { .vkeys { display: none; } }
@media (max-width: 760px) {
  .viewer.large { padding: 0; }
  .viewer.large .vpanel { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .viewer.large.tall .vpanel { width: 100%; }
  .viewer.large .vbody { display: block; overflow: auto; flex: 1; }
  .viewer.large .stage.wide { max-height: none; }
  .viewer.large .stage.vertical { height: min(68vh, calc(100vw * 16 / 9)); margin: 0 auto; }
  .vside { border-left: 0; border-top: 1px solid var(--line); }
  .vtools { gap: 4px; }
  .viewer.mini { right: 10px; bottom: 84px; width: min(320px, 72vw); }
  .viewer.mini.tall { width: max(180px, 46vw); }
  .viewer.mini.tall .vtitle { visibility: hidden; }
  .vkeys { display: none; }
  .cliptabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .cliptabs button { flex: none; }
}

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1.15fr) 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.editor .col { display: grid; gap: 16px; }
.source { position: relative; background: #000; border-radius: var(--r-md); overflow: hidden; touch-action: none; user-select: none; }
.source video { width: 100%; display: block; }
.cambox { position: absolute; border: 3px solid var(--caption); box-shadow: 0 0 0 9999px rgb(0 0 0 / .45); cursor: move; border-radius: 4px; }
.cambox .grip { position: absolute; right: -10px; bottom: -10px; width: 22px; height: 22px; border-radius: 50%; background: var(--caption);
  border: 3px solid #000; cursor: nwse-resize; }
.cambox::before { content: "FACECAM"; position: absolute; left: 6px; top: 4px; font: 600 11px/1 var(--mono); color: var(--caption); }
.gamebox { position: absolute; top: 0; bottom: 0; border: 3px dashed #22e4ff; pointer-events: none; }
.preview { position: relative; width: 100%; max-width: 330px; margin-inline: auto; aspect-ratio: 9 / 16; background: #000; border-radius: 26px;
  overflow: hidden; container-type: inline-size; box-shadow: var(--shadow), 0 0 0 8px #050506, 0 0 0 10px #2b2830; }
.preview .box { position: absolute; left: 0; right: 0; overflow: hidden; }
.preview video { position: absolute; max-width: none; }
.preview .bg video { filter: blur(14px) brightness(.85); }
.preview .cap { position: absolute; left: 4%; right: 4%; transform: translateY(-50%); text-align: center; z-index: 3; }
.preview .hookcard { position: absolute; left: 7%; right: 7%; z-index: 3; text-align: center; }
.preview .hookcard span { display: inline-block; background: #fff; color: #111013; font: 400 5.2cqw/1.12 var(--heavy); padding: 2.4cqw 3.6cqw;
  border-radius: 2.6cqw; box-shadow: .9cqw 1.1cqw 0 rgb(0 0 0 / .35); }
.preview .handle { position: absolute; left: 0; right: 0; text-align: center; z-index: 3; }
.preview .handle span { background: rgb(0 0 0 / .55); color: #fff; font: 400 3.2cqw/1 var(--heavy); padding: 1.6cqw 3cqw; border-radius: 99px; }
.preview .wm { position: absolute; top: 2.1%; left: 0; right: 0; text-align: center; z-index: 4; }
.preview .wm span { display: inline-block; background: rgb(17 16 19 / .85); border: .4cqw solid var(--tally); color: #fff; border-radius: 3cqw;
  font: 400 3.2cqw/1.25 var(--heavy); padding: 1.2cqw 3.4cqw; }
.preview .wm small { display: block; color: var(--caption); font-size: 2.4cqw; }
.controls { display: grid; gap: 16px; }
.controls .grp { display: grid; gap: 8px; }
.trim { display: grid; gap: 8px; }
.trim .row { display: flex; gap: 8px; align-items: center; }
.trim input[type=range] { flex: 1; }
.trim .t { font: 500 13px var(--mono); width: 52px; text-align: right; color: var(--muted); }
.words { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; padding: 10px; background: var(--bg); border-radius: var(--r-sm);
  border: 1px solid var(--line); }
.words button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; padding: 4px 7px;
  font: 500 13px var(--body); cursor: pointer; }
.words button.now { border-color: var(--caption); color: var(--caption); }
.words button.edited { border-color: var(--ok); }
.words input { width: 110px; min-height: 30px; padding: 2px 6px; font-size: 13px; }
.renderbar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 0; background: var(--bg); }
@media (max-width: 1180px) { .editor { grid-template-columns: minmax(0, 1fr) 320px; } .editor .col.right { grid-column: 1 / -1; } }
@media (max-width: 760px) { .editor { grid-template-columns: 1fr; } }

.toasts { position: fixed; z-index: 80; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow); font-size: 15px; }
.toast.bad { border-color: rgb(255 107 107 / .5); }
.toast.good { border-color: rgb(61 220 151 / .5); }
@media (max-width: 860px) { .toasts { bottom: 86px; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--tally); animation: spin 0.9s linear infinite; display: inline-block; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#view:focus, #view:focus-visible { outline: none; }
.card video.vertical { max-height: 560px; }
.renderbar { border-top: 1px solid var(--line); z-index: 5; }
@media (max-width: 860px) { .mobile-nav .count { top: -2px; right: calc(50% - 36px); } }
body[data-page="home"] .hero h1 { font-size: clamp(50px, 7.2vw, 104px); }
