/* GAMEDARE LIVE design tokens — dark anthracite + red/pink accent, accessible light variant. */
:root {
  --bg: #141519;
  --bg-2: #1d1f25;
  --bg-3: #272a32;
  --fg: #f4f4f6;
  --fg-2: #c3c5cd;
  --accent: #ff2e63;
  --accent-2: #ff7096;
  /* --accent is for accent TEXT on the page background (>= 4.5:1).
     --accent-fill is for filled surfaces that carry white text (>= 4.5:1). See A11Y_AUDIT.md. */
  --accent-fill: #d6084a;
  --on-accent: #ffffff;
  --ok: #3ddc97;
  --warn: #ffc857;
  --line: #34373f;          /* decorative dividers only */
  --line-strong: #80848f;   /* control boundaries, >= 3:1 (WCAG 1.4.11) */
  --focus: #ffc857;         /* focus ring, >= 3:1 against bg */
  --radius: 18px;
  --tap: 56px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f6f4f1;
  --bg-2: #ffffff;
  --bg-3: #ece9e4;
  --fg: #16171b;
  --fg-2: #464852;
  --accent: #d6084a; /* darker for AA contrast on light */
  --accent-2: #a80039;
  --line: #d9d5cf;
  --line-strong: #77726a;
  --warn: #8a5a00;
  --focus: #0b57d0;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--accent-fill); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; }

header.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.logo { font-weight: 900; letter-spacing: 0.04em; font-size: 18px; color: var(--fg); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); transform: rotate(45deg); display: inline-block; }
.logo .live { color: var(--accent); }
.top-actions { display: flex; gap: 6px; }

main { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }
h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 22px 0 8px; }
h3 { font-size: 18px; margin: 0 0 4px; }
p { margin: 6px 0 10px; }
.muted { color: var(--fg-2); }
.small { font-size: 15px; }
h1:focus { outline: none; }

.hero { padding: 18px 0 8px; }
.hero .tag { font-size: 36px; font-weight: 900; line-height: 1.05; margin: 0; }
.hero .tag em { font-style: normal; color: var(--accent); }
.hero .sub { color: var(--fg-2); margin-top: 8px; }

button, .btn {
  font: inherit; font-weight: 700; cursor: pointer;
  min-height: var(--tap); padding: 12px 18px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--bg-2); color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease;
}
button:active { transform: scale(0.98); }
button:focus-visible, summary:focus-visible, textarea:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, label.seg:focus-within, label.chip:focus-within {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
button.primary, .btn.primary { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
button.ghost { background: transparent; }
button.small { min-height: 44px; padding: 8px 12px; font-size: 15px; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.full { width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 auto; }
.stack > * + * { margin-top: 10px; }

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.tile {
  display: block; width: 100%; text-align: left; padding: 16px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--fg); min-height: 72px;
}
.tile strong { display: block; font-size: 20px; }
.tile span { display: block; font-weight: 400; color: var(--fg-2); font-size: 15px; margin-top: 2px; }
.tile.big { background: linear-gradient(135deg, var(--accent-fill), #b93a12); border: none; color: #fff; }
.tile.big span { color: rgba(255, 255, 255, 0.9); }
.grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.tile[aria-disabled='true'] { opacity: 0.55; cursor: default; }

.badge { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; background: var(--bg-3); color: var(--fg-2); }
.badge.accent { background: var(--accent-fill); color: var(--on-accent); }
.badge.tw { background: linear-gradient(90deg, #2a5fd6, var(--accent-fill)); color: #fff; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }

.role { border-left: 6px solid var(--accent); }
.role.gamer { border-left-color: #3a7bff; }
.role .who { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-2); }
.role p { font-size: 19px; margin: 6px 0 0; }
.secret { background: repeating-linear-gradient(45deg, var(--bg-3), var(--bg-3) 10px, var(--bg-2) 10px, var(--bg-2) 20px); }
.secret .reveal { font-size: 22px; font-weight: 800; }
.note { border-radius: 12px; padding: 10px 12px; background: var(--bg-3); font-size: 15px; color: var(--fg-2); }
.note.warn { border: 1px solid var(--warn); }

.timer { font-variant-numeric: tabular-nums; font-size: 84px; font-weight: 900; text-align: center; letter-spacing: -0.02em; margin: 8px 0; }
.timer.low { color: var(--accent); }
.timer.paused { opacity: 0.5; }
.attempts { text-align: center; font-weight: 800; font-size: 20px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 6px 0 12px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); display: inline-block; }
.dots i.used { background: var(--bg-3); border: 2px solid var(--line); }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; border: 3px solid transparent; background: var(--bg-3); aspect-ratio: 4/3; padding: 0; min-height: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.best { border-color: var(--accent); }
.thumb .lbl { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,0.65); color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.thumb.err { opacity: 0.4; }

.crit { padding: 10px 0; border-bottom: 1px solid var(--line); }
.crit:last-child { border-bottom: none; }
.crit .q { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
label.seg { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--bg-3); font-weight: 700; cursor: pointer; }
label.seg input { position: absolute; opacity: 0; pointer-events: none; }
label.seg:has(input:checked) { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
label.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--bg-3); font-weight: 700; cursor: pointer; margin: 4px 6px 4px 0; }
label.chip:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 17px; }
.check input { width: 26px; height: 26px; flex: none; accent-color: var(--accent); }

.bigscore { font-size: 96px; font-weight: 900; text-align: center; line-height: 1; margin: 10px 0 0; }
.bigscore small { font-size: 28px; color: var(--fg-2); }
.split-pts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; margin-top: 12px; }
.split-pts div { background: var(--bg-3); border-radius: 12px; padding: 10px; }
.split-pts b { display: block; font-size: 28px; }

.news { background: #fff; color: #111; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.news .band { background: #d6084a; color: #fff; font-weight: 900; font-size: 34px; padding: 12px 16px; letter-spacing: 0.02em; }
.news .hl { font-family: Georgia, 'Times New Roman', serif; font-weight: 800; font-size: 28px; line-height: 1.2; padding: 16px; }
.news .cert { margin: 0 16px 16px; border: 3px solid #d6084a; color: #d6084a; font-weight: 800; padding: 10px; border-radius: 10px; text-align: center; }
.news .meta { padding: 0 16px 16px; font-size: 15px; color: #444; }

.field { display: block; margin: 10px 0; }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
input[type='text'], select {
  font: inherit; width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 14px;
  border: 2px solid var(--line-strong); background: var(--bg-2); color: var(--fg);
}
fieldset { border: none; padding: 0; margin: 14px 0; }
legend { font-weight: 800; margin-bottom: 6px; padding: 0; }

.sound-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 520px) { .sound-grid { grid-template-columns: repeat(4, 1fr); } }
.pad { width: 100%; position: relative; display: flex; flex-direction: column; min-height: 104px; padding: 10px; border-radius: 18px; background: var(--bg-3); border: 2px solid var(--line); font-size: 15px; }
.pad .emo { font-size: 34px; line-height: 1; }
.pad:active, .pad.hit { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.pad-wrap { position: relative; }
.fav { position: absolute; top: 2px; right: 2px; min-height: 44px; min-width: 44px; padding: 0; border-radius: 12px; background: transparent; border: none; font-size: 20px; }
input[type='range'] { width: 100%; accent-color: var(--accent); height: 40px; }

dialog { border: none; border-radius: var(--radius); background: var(--bg); color: var(--fg); padding: 0; width: min(720px, 96vw); max-height: 92vh; }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog .inner { padding: 16px; overflow: auto; max-height: 92vh; }

.bingo-wrap { margin-top: 12px; }
.bingo-title { margin-top: 0; }
.bingo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bingo .cell { min-width: 0; min-height: 72px; padding: 8px; font-size: 15px; line-height: 1.2; border-radius: 14px; background: var(--bg-3); overflow-wrap: anywhere; hyphens: auto; }
.bingo .cell.on { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.admin-stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-table { display: flex; flex-direction: column; gap: 4px; }
.admin-row { display: grid; grid-template-columns: 2.2fr 1.2fr 0.6fr 0.7fr 0.5fr 1.6fr; gap: 6px; align-items: center; text-align: left; min-height: 48px; padding: 8px 10px; font-size: 14px; font-weight: 500; border-radius: 10px; }
.admin-row.head { font-weight: 800; background: transparent; border: none; }
/* Reflow at narrow widths / high zoom (WCAG 1.4.10): mission title on its own line, the other
   five columns in a 5-up grid; the header row uses the same layout so columns stay aligned. */
@media (max-width: 559px) {
  .admin-row { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow-wrap: anywhere; }
  .admin-row > :first-child { grid-column: 1 / -1; }
}
.admin-pair { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .admin-pair { grid-template-columns: 1fr 1fr; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 50; max-width: 90vw; }
.footer-legal { margin-top: 32px; font-size: 13px; color: var(--fg-2); text-align: center; }
.tw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tw-pair .side { background: var(--bg-3); border-radius: 12px; padding: 8px; text-align: center; }
.tw-pair img { width: 100%; border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.tw-pair .sc { font-size: 26px; font-weight: 900; }
.story { font-size: 19px; font-style: italic; border-left: 4px solid var(--warn); padding-left: 12px; }

.pulse { animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
:root.reduce-motion *, :root.reduce-motion *::before, :root.reduce-motion *::after { animation: none !important; transition: none !important; }

/* ---------- Party Mode, guest screen, streamer overlay (T-21a..c) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.room-code { text-align: center; }
.room-code .code { font: 900 48px/1.1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.12em; margin-top: 4px; }
.guest-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 6px 0 12px; }
.guest-list li { background: var(--bg-3); border-radius: 999px; padding: 4px 12px; font-weight: 700; }
.guest-list li.off { opacity: 0.55; font-weight: 400; }
.party-panel h2 { margin-top: 0; font-size: 19px; }
.poll { margin: 10px 0 14px; }
.poll .q { font-weight: 800; margin-bottom: 6px; }
.poll-opt {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; min-height: var(--tap); padding: 10px 14px; margin-top: 6px; border-radius: 14px;
  border: 2px solid var(--line-strong); background: var(--bg-2); color: var(--fg); font-weight: 700; text-align: left;
}
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent-fill) 28%, transparent); transition: width 0.3s ease; }
.poll-opt .opt, .poll-opt .cnt { position: relative; }
.poll-opt .cnt { font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.poll-opt.win { border-color: var(--ok); }
.poll-opt.mine { border-color: var(--accent); }
.poll-opt.mine .opt::before { content: '✓ '; }
.twist { font-size: 20px; font-weight: 800; }
.board { list-style: none; padding: 0; margin: 6px 0; counter-reset: rank; }
.board li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--bg-3); margin-top: 4px; }
.board li.me { outline: 2px solid var(--accent); }
.board li span::before { counter-increment: rank; content: counter(rank) '. '; color: var(--fg-2); }
.url { display: block; word-break: break-all; background: var(--bg-3); padding: 8px 10px; border-radius: 8px; font-size: 14px; margin: 6px 0; }
pre.url { white-space: pre-wrap; overflow-wrap: anywhere; }
details > summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }

/* Overlay (OBS Browser Source): transparent page, high-contrast panel, no app chrome. */
:root.overlay-mode, :root.overlay-mode body { background: transparent !important; }
:root.overlay-mode.ov-green, :root.overlay-mode.ov-green body { background: #00b140 !important; }
:root.overlay-mode header.top, :root.overlay-mode .skip { display: none; }
:root.overlay-mode main { max-width: none; padding: 0; }
.ov { position: fixed; color: #fff; background: rgba(12, 13, 17, 0.86); border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 18px; padding: 14px 18px; font-size: 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); }
.ov-bar { left: 24px; right: 24px; bottom: 24px; }
.ov-box { top: 24px; right: 24px; width: 380px; }
.ov-head { display: flex; flex-wrap: wrap; gap: 14px; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #d6d8df; }
.ov-brand { color: #ff7096; }
.ov-title { font-size: 26px; font-weight: 900; margin: 4px 0; }
.ov-twist { font-size: 20px; font-weight: 800; color: #ffc857; }
.ov-score { font-size: 44px; font-weight: 900; }
.ov-badge { position: absolute; top: -12px; right: 14px; background: #ffc857; color: #141519; font-size: 13px; font-weight: 900; padding: 2px 8px; border-radius: 999px; }
.ov .poll-opt { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.35); color: #fff; min-height: 40px; padding: 6px 12px; }
.ov .poll { margin: 6px 0; }
.ov-bar .polls { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.ov .poll-opt .bar { background: rgba(255, 46, 99, 0.5); }

/* Voice changer */
.rec { touch-action: none; user-select: none; -webkit-user-select: none; }
.rec.on { background: var(--ok); border-color: var(--ok); color: #0b1a12; }
.clip { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; margin-top: 6px; }
.clip > span { font-weight: 700; }

/* Solo: phone-as-director cue card, lives, badges */
.cue { border: 2px solid var(--accent); }
.cue .cue-text { font-size: 24px; font-weight: 900; line-height: 1.2; margin: 4px 0 0; }
.badge.lives { background: var(--bg-3); color: var(--accent); letter-spacing: 0.1em; }
.badge-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.badge-grid li { background: var(--bg-3); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.badge-grid li.on { outline: 2px solid var(--ok); }
.badge-grid li.off { color: var(--fg-2); }
.history { padding-left: 18px; }
.badge-new { border: 1px solid var(--ok); }
.guest-list li { display: inline-flex; align-items: center; gap: 6px; } .chip-x { min-height: 32px; min-width: 32px; padding: 0 8px; border-radius: 999px; font-size: 14px; }
fieldset.team .row input { flex: 1 1 140px; } fieldset.team .tname { width: 100%; margin-bottom: 6px; }

/* Streamer Control Room + stream overlay */
.stream-panel .cue-text { font-size: 26px; }
.ov-timebar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); overflow: hidden; margin: 8px 0 4px; }
.ov-timebar span { display: block; height: 100%; background: #ffc857; transition: width 1s linear; }

/* Streamer Pro branding: a fixed set of accent colours (light enough for the dark overlay, >= 4.5:1 on #0c0d11). */
.acc-pink { --acc: #ff7096; } .acc-orange { --acc: #ffa24c; } .acc-yellow { --acc: #ffc857; }
.acc-green { --acc: #4cd98a; } .acc-cyan { --acc: #4cc9f0; } .acc-violet { --acc: #b69cff; }
.ov-acc-pink { --acc: #ff7096; } .ov-acc-orange { --acc: #ffa24c; } .ov-acc-yellow { --acc: #ffc857; }
.ov-acc-green { --acc: #4cd98a; } .ov-acc-cyan { --acc: #4cc9f0; } .ov-acc-violet { --acc: #b69cff; }
.ov-stream { border-color: color-mix(in srgb, var(--acc, #ff7096) 70%, transparent); }
.ov-stream .ov-brand { color: var(--acc, #ff7096); }
.ov-stream .poll-opt .bar { background: color-mix(in srgb, var(--acc, #ff2e63) 35%, transparent); }
.ov-stream .ov-timebar span { background: var(--acc, #ffc857); }
.accents { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.accents label.seg { gap: 8px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--acc); border: 2px solid rgba(0, 0, 0, 0.35); flex: none; }
.ov-versus { display: flex; align-items: center; gap: 12px; margin: 6px 0; font-size: 18px; font-weight: 800; }
.ov-versus b { font-size: 30px; font-weight: 900; color: var(--acc, #ff7096); min-width: 3.5em; text-align: center; }
.vs-line { margin: 6px 0; font-weight: 900; font-size: 18px; }
.brand-strip { margin: 8px 0; padding: 8px 12px; border-left: 6px solid var(--acc); border-radius: 8px; background: var(--bg-3); font-weight: 900; font-size: 18px; }
.ov-sponsor { margin-top: 8px; font-size: 15px; color: #d6d8df; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 6px; }
.ov-sponsor b { background: #ffc857; color: #141519; border-radius: 4px; padding: 0 6px; }
.ov-join { position: absolute; top: -14px; left: 14px; background: #d6084a; color: #fff; font-size: 14px; font-weight: 900; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.03em; }

/* Touch: no double-tap delay/zoom on controls, no grey tap flash (Android/iOS). */
button, .poll-opt, label.chip, label.seg, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* How-to card on briefing and playing screens */
.howto summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; }
.howto ol { padding-left: 20px; margin: 6px 0; }
.qr-card { text-align: center; margin: 12px 0; }
.qr-card .qr { width: min(240px, 70vw); height: auto; border-radius: 8px; border: 1px solid var(--line, #8884); background: #fff; }
.quiz-count .stepper { align-items: center; justify-content: center; gap: 16px; }
.quiz-count .stepper button { min-width: 56px; font-size: 24px; flex: 0 0 auto; }
.qcount { font-size: 22px; min-width: 7ch; text-align: center; }

/* Confetti burst */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0.95; animation: confetti-fall linear forwards; }
@keyframes confetti-fall { to { top: 105%; margin-left: 40px; } }

/* ---- Public sales page (welcome.html) ---- */
body.site { overflow-x: clip; }
body.site main { max-width: 980px; }
body.site .hero-split { display: grid; gap: 28px; align-items: center; padding: 28px 0 12px; position: relative; }
body.site .hero-split::before { content: ''; position: absolute; inset: -40px 0 auto 0; height: 340px; z-index: -1; background: radial-gradient(60% 70% at 25% 20%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%), radial-gradient(50% 60% at 85% 30%, rgba(42, 95, 214, 0.25), transparent 70%); pointer-events: none; }
body.site .hero .tag { font-size: clamp(38px, 8vw, 62px); letter-spacing: -0.02em; }
body.site .hero .sub { font-size: 20px; max-width: 34em; }
body.site .hero-copy { animation: rise 0.6s ease both; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.stats li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px; }
.phone { justify-self: center; width: 250px; padding: 12px; border-radius: 38px; background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 2px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent); transform: rotate(3deg); animation: float 5s ease-in-out infinite; }
.phone-screen { border-radius: 28px; background: var(--bg); padding: 18px 16px; min-height: 360px; display: flex; flex-direction: column; gap: 10px; }
.phone-title { font-size: 26px; line-height: 1.1; }
.phone-screen p { color: var(--fg-2); font-size: 15px; margin: 0; }
.phone-timer { font-size: 44px; font-weight: 900; text-align: center; margin-top: auto; font-variant-numeric: tabular-nums; color: var(--accent); }
.phone-btn { background: var(--accent-fill); color: var(--on-accent); border-radius: 16px; padding: 14px; text-align: center; font-weight: 800; }
body.site .tile .badge { display: inline-block; margin-bottom: 6px; color: var(--on-accent); font-size: 12px; }
body.site .tile.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
body.site .tile { transition: transform 0.15s ease; }
body.site .tile:hover { transform: translateY(-2px); }
.sticky-cta { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-8px); } }
@media (min-width: 760px) { body.site .hero-split { grid-template-columns: 1.3fr 1fr; } body.site .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 759px) {
  .phone { width: 220px; transform: none; animation: none; }
  .phone-screen { min-height: 300px; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
}