/* QR Vote — one visual language: white paper, black ink, lime accent;
   2px black borders with a hard offset shadow; mono uppercase labels;
   English as a smaller grey second line. Sections: tokens → base →
   controls → cards → host screens → phone → effects → small screens. */

/* ══════════ tokens ══════════ */
:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #5f5f5f;
  --ink-3: #9a9a9a;
  --line: #e6e6e6;
  --line-2: #d6d6d6;
  --line-3: #c4c4c4;
  --accent: #b5e61d;        /* fills, and text on black */
  --accent-hover: #a3d10f;
  --accent-soft: #f4fbe0;
  --accent-ink: #111111;    /* text on the green */
  --accent-text: #4f7a00;   /* green text on white */
  --danger: #d9304f;
  --bar-track: #efefef;
  --night: #0f0f0f;
  --night-2: #1a1a1a;
  --night-line: #2a2a2a;
  --night-line-2: #444444;
  --live: #4ade80;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;
  /* shape */
  --bw: 2px;
  --bw-xl: 3px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --sh: 4px 4px 0 var(--accent);
  --sh-lg: 6px 6px 0 var(--accent);
  --sh-ink: 6px 6px 0 var(--ink);
  /* control heights */
  --h-sm: 40px;
  --h-md: 48px;
  --h-lg: 60px;
  /* gift colours: gift content only, never UI chrome */
  --g-rose: #ff7aa8;
  --g-diamond: #6ad0ff;
  --g-rocket: #ffb347;
  --g-custom: #c58cff;
}

/* ══════════ base ══════════ */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font-family: var(--sans); cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
input { font-family: var(--sans); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
[data-enter] { opacity: 0; }
.no-fx [data-enter] { opacity: 1; }
.logo { font: 700 18px var(--mono); letter-spacing: -.02em; }
.logo span { color: var(--accent-text); }
.live .logo span, .night .logo span { color: var(--accent); }

/* bilingual: English is a smaller grey second line */
.en { display: block; font-size: .72em; font-weight: 500; color: var(--ink-3); letter-spacing: 0; text-transform: none; margin-top: 2px; line-height: 1.25; }
.en-i { font-weight: 500; opacity: .6; }
.btn-primary .en, .btn-primary .en-i, .p-leader .en { color: rgba(0, 0, 0, .55); opacity: 1; }
.live .en, .night .en { color: var(--ink-3); }
.btn-solid .en-i, .pill-time .en-i, .btn-dark .en-i { opacity: .7; }
h1 .en, .p-q .en { font-size: .45em; font-weight: 600; margin-top: 6px; letter-spacing: 0; }

/* ══════════ controls ══════════ */
/* Every button: 2px black border, --r-md corners, heights 40 / 48 / 60. */
.btn { height: var(--h-sm); padding: 0 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); background: #fff; font: 700 13px var(--sans); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover:not(:disabled) { background: var(--accent-soft); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.btn:active:not(:disabled) { transform: translate(1px, 1px); box-shadow: none; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #fff1f3; box-shadow: 3px 3px 0 var(--danger); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #000; box-shadow: 3px 3px 0 var(--accent); }
.btn-primary { position: relative; overflow: hidden; border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink); font: 800 17px var(--sans); display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .12s; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-solid { border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: var(--ink); color: #fff; font: 700 15px var(--sans); box-shadow: 4px 4px 0 var(--accent); }
.btn-solid:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--accent); }
.btn-ghost-night { height: var(--h-sm); padding: 0 16px; border: var(--bw) solid var(--night-line-2); border-radius: var(--r-sm); background: transparent; color: var(--paper); font: 700 13px var(--sans); white-space: nowrap; }
.btn-ghost-night:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn { width: var(--h-sm); height: var(--h-sm); flex: none; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; font: 700 18px/1 var(--sans); color: var(--ink); display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--danger); color: var(--danger); background: #fff1f3; }
.chip { height: 34px; padding: 0 14px; border-radius: var(--r-pill); border: var(--bw) solid var(--ink); background: #fff; font: 700 13px var(--sans); color: var(--ink); white-space: nowrap; }
.chip:hover { background: var(--accent-soft); }
.chip.on { background: var(--accent); box-shadow: 2px 2px 0 var(--ink); }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.field { width: 100%; height: var(--h-sm); padding: 0 12px; border: var(--bw) solid var(--line-2); border-radius: var(--r-sm); background: #fff; font: 500 15px var(--sans); color: var(--ink); outline: none; }
.field:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.field.upper { text-transform: uppercase; }
/* dashed "add" buttons (entries, judges) */
.add-opt { flex: none; height: var(--h-md); border: var(--bw) dashed var(--ink); border-radius: var(--r-md); background: #fff; font: 700 14px var(--sans); color: var(--ink); }
.add-opt .en-i { color: var(--ink-2); }
.add-opt:hover { background: var(--accent-soft); border-style: solid; box-shadow: var(--sh); }
/* range (weighting, volume) */
.wrange { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; border-radius: 6px; border: var(--bw) solid var(--ink);
  background: linear-gradient(90deg, var(--accent) 0 var(--w, 70%), var(--ink) var(--w, 70%) 100%); outline: none; cursor: pointer; }
.wrange::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--accent); }
.wrange::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--accent); }
.wrange:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
.fx-ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.7); pointer-events: none; transform: scale(0); }

/* ══════════ host: frame + header ══════════ */
.host { min-height: 100vh; display: flex; flex-direction: column; }
.host-top { display: flex; align-items: center; gap: 12px; padding: 18px 32px; border-bottom: var(--bw) solid var(--ink); }
.live .host-top { border-bottom-color: var(--night-line); }
.host-top .logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.room-chip { font: 700 12px var(--sans); padding: 5px 10px; border-radius: var(--r-pill); background: var(--accent); color: #111; border: var(--bw) solid var(--ink); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps { display: flex; gap: 22px; font-size: 13px; font-weight: 700; margin: 0 auto; }
.step { display: flex; align-items: center; gap: 8px; color: var(--ink-3); white-space: nowrap; }
.step i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; border: var(--bw) solid var(--line-3); display: grid; place-items: center; font: 800 11px var(--mono); }
.step.on { color: var(--ink); }
.step.on i { background: var(--accent); color: #111; border-color: var(--ink); }
.closed-tag { font: 700 12px var(--mono); color: var(--ink-2); letter-spacing: .08em; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 10px; }
/* header tools: same size, same border, same lime shadow */
.gear, .snd-btn, .hist-btn, .donate-pill { height: 44px; flex: none; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--accent); transition: transform .12s, box-shadow .12s; }
.gear, .snd-btn { width: 44px; display: grid; place-items: center; font-size: 20px; }
.hist-btn, .donate-pill { padding: 0 14px; font: 800 14px var(--sans); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.hist-btn b { font: 800 15px var(--mono); }
body.no-pay .donate-pill { display: none; }
.gear:hover, .snd-btn:hover, .hist-btn:hover, .donate-pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--accent); }
.gear:hover svg { transform: rotate(30deg); }
.gear svg { transition: transform .3s; }
.gear:active, .snd-btn:active, .hist-btn:active, .donate-pill:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }
.live .gear, .live .snd-btn, .live .hist-btn { background: transparent; color: var(--paper); border-color: var(--night-line-2); box-shadow: none; }
.live .gear:hover, .live .snd-btn:hover, .live .hist-btn:hover { border-color: var(--accent); color: var(--accent); }
.snd-btn.need { animation: sndpulse 1s ease-in-out infinite; border-color: var(--accent); }
@keyframes sndpulse { 50% { box-shadow: 0 0 0 6px rgba(181, 230, 29, .45); } }

/* ══════════ login ══════════ */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border: var(--bw) solid var(--ink); box-shadow: 8px 8px 0 var(--accent); border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.login-card h2 { margin: 0; font: 800 24px var(--sans); }
.login-card .field { height: var(--h-md); font-size: 16px; }
.login-card .btn-primary { height: 52px; font-size: 16px; }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-md); border: var(--bw) solid var(--ink); background: var(--bar-track); }
.login-tabs button { padding: 8px 6px; line-height: 1.15; border: 0; border-radius: var(--r-sm); background: transparent; font: 700 14px var(--sans); color: var(--ink-2); }
.login-tabs button.on { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 var(--bw) var(--ink); }
.login-tabs button .en { font-size: 11px; margin-top: 1px; }
.lf { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.lf > span .en-i { font-size: 12px; }
.login-note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.login-note .en { font-size: 11.5px; }

/* ══════════ host: setup (preview) ══════════ */
.preview { flex: 1; min-height: 0; display: grid; grid-template-columns: 440px 1fr; gap: 48px; padding: 40px; }
.preview h1 { margin: 10px 0 0; font-size: clamp(48px, 5vw, 72px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.left-col { display: flex; flex-direction: column; gap: 24px; min-height: 0; }
.left-actions { margin-top: auto; display: flex; gap: 12px; }
.left-actions .btn-primary { flex: 1; height: var(--h-lg); }
.set-sum { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; align-self: flex-start; padding: 12px 16px; border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: #fff; font: 600 15px var(--sans); color: var(--ink-2); text-align: left; transition: transform .12s, box-shadow .12s, background .12s; }
.set-sum b { color: var(--ink); font: 800 16px var(--mono); }
.set-sum .en { display: inline; }
.set-sum i { display: grid; color: var(--ink); transition: transform .3s; }
.set-sum:hover { background: var(--accent-soft); box-shadow: var(--sh); transform: translate(-1px, -1px); }
.set-sum:hover i { transform: rotate(90deg); }
.right-col { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.right-head { display: flex; justify-content: space-between; align-items: baseline; }
.right-head b { font-size: 16px; }
.opt-list { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 8px 8px 2px; max-height: calc(100vh - 210px); }
.opt { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-md); padding: 12px 14px 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; transition: box-shadow .12s; }
.opt:hover { box-shadow: var(--sh); }
.opt .n { font-weight: 800; font-size: 16px; }
.opt .d { font-size: 13px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .acts { display: flex; gap: 6px; }
.opt-edit { background: #fff; border: var(--bw) solid var(--ink); box-shadow: var(--sh); border-radius: var(--r-md); padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.opt-edit .f { display: flex; flex-direction: column; gap: 8px; }
.opt-edit .row-acts { display: flex; gap: 8px; justify-content: flex-end; }

/* settings rows (inside the ⚙️ modal) */
.set-row { display: flex; flex-direction: column; gap: 8px; }
.set-row > label { font: 700 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.set-row > label .en { display: inline; margin-left: 6px; font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.dur { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dur .step-btn { width: 44px; height: 44px; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; font: 700 20px var(--mono); color: var(--ink); }
.dur .step-btn:hover { background: var(--accent); }
.dur .dur-val { min-width: 150px; height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: var(--ink); color: var(--accent); font: 700 20px var(--mono); }
.dur .dur-val .en-i { font: 500 13px var(--sans); color: #bbb; opacity: 1; }
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.prize-box { border: var(--bw) solid var(--ink); border-radius: var(--r-md); padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; }
.prize-box.p1 { background: var(--accent-soft); box-shadow: 3px 3px 0 var(--accent); }
.prize-box .pl { font: 700 13px var(--sans); white-space: nowrap; }
.prize-box .pl .en-i { font-size: 11px; }
.prize-box .ps { display: flex; align-items: center; gap: 8px; }
.prize-box .ps button { width: 32px; height: 32px; border-radius: 8px; border: var(--bw) solid var(--ink); background: #fff; font: 700 16px var(--mono); }
.prize-box .ps button:hover { background: var(--accent); }
.prize-box .pv { min-width: 22px; text-align: center; font: 800 22px var(--mono); }
.wctl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.wlab { display: flex; flex-direction: column; line-height: 1.1; font-size: 12px; color: var(--ink-2); }
.wlab.r { text-align: right; align-items: flex-end; }
.wlab b { font: 800 22px var(--mono); color: var(--ink); }
.vol-row { display: flex; align-items: center; gap: 12px; }
.vol-row .wrange { flex: 1; }
.snd-test { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.snd-test .en { display: inline; margin-left: 3px; }
.session-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; }

/* ══════════ modal ⚙️ ══════════ */
.smodal-back { position: fixed; inset: 0; z-index: 110; background: rgba(15, 15, 15, .5); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.smodal-back[hidden] { display: none; }
.smodal { width: min(560px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column; background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: 10px 10px 0 var(--accent); overflow: hidden; }
.smodal-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: var(--bw) solid var(--ink); }
.smodal-ic, .hd-ic { width: 40px; height: 40px; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: var(--accent); display: grid; place-items: center; font-size: 22px; }
.smodal-head .set-title, .hd-head .set-title { flex: 1; font: 800 20px var(--sans); }
.smodal-head .set-title .en, .hd-head .set-title .en { display: inline; margin-left: 8px; font: 600 13px var(--sans); color: var(--ink-3); }
.smodal-x { width: var(--h-sm); height: var(--h-sm); border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; font: 700 15px var(--sans); color: var(--ink); }
.smodal-x:hover { background: var(--accent-soft); }
.smodal-body { padding: 20px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.smodal-body .set-row + .set-row { border-top: var(--bw) dashed var(--line-2); padding-top: 18px; }
.smodal-foot { padding: 14px 20px 18px; border-top: var(--bw) solid var(--ink); display: flex; }
.smodal-foot .btn-primary { flex: 1; height: 52px; }
.smodal .res-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.smodal .res-actions button { height: var(--h-md); padding: 0 18px; }
.gift-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px 6px 6px 2px; }
.gift-item, .hd-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: #fff; }
.gift-item.pending { border-style: dashed; }
.gift-item.paid { background: var(--accent-soft); }
.gift-item .ge, .hd-item .ge { font-size: 26px; }
.gift-item .gi, .hd-item .hi { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gift-item .gi span, .hd-item .hi span { font-size: 12.5px; color: var(--ink-3); }
.gift-item .gs { font: 700 12px var(--mono); color: var(--accent-text); }

/* ══════════ confirm dialog + toasts ══════════ */
.dlg-back { position: fixed; inset: 0; z-index: 120; background: rgba(15, 15, 15, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.dlg { width: min(440px, 100%); background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--accent); padding: 26px 24px 20px; display: flex; flex-direction: column; gap: 8px; }
.dlg-danger { box-shadow: 8px 8px 0 var(--danger); }
.dlg-badge { width: 48px; height: 48px; border-radius: var(--r-md); border: var(--bw) solid var(--ink); background: var(--accent); display: grid; place-items: center; font: 900 24px var(--mono); margin-bottom: 6px; }
.dlg-danger .dlg-badge { background: var(--danger); color: #fff; }
.dlg h3 { margin: 0; font: 800 22px/1.2 var(--sans); }
.dlg-en { margin: 0; font-size: 14px; color: var(--ink-3); }
.dlg-note { margin: 6px 0 0; padding: 10px 12px; border-radius: var(--r-sm); border: var(--bw) solid var(--line-2); background: var(--bar-track); font-size: 14px; font-weight: 600; }
.dlg-note span { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.dlg-acts { display: flex; gap: 10px; margin-top: 14px; }
.dlg-acts button { flex: 1; height: var(--h-md); border-radius: var(--r-md); font: 800 15px var(--sans); border: var(--bw) solid var(--ink); }
.dlg-acts button span { font-weight: 500; opacity: .6; }
.dlg-cancel { background: #fff; color: var(--ink); }
.dlg-ok { background: var(--accent); color: #111; box-shadow: 3px 3px 0 var(--ink); }
.dlg-danger .dlg-ok { background: #111; color: #fff; box-shadow: 3px 3px 0 var(--danger); }
.dlg-acts button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.toast-stack { position: fixed; top: max(16px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 12px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast3 { pointer-events: auto; position: relative; overflow: hidden; display: grid; grid-template-columns: 40px 1fr 28px; align-items: center; gap: 12px; padding: 14px 12px 16px 14px; border-radius: var(--r-md); background: #fff; color: var(--ink); border: var(--bw) solid var(--ink); box-shadow: 5px 5px 0 var(--t3c, var(--accent)); cursor: pointer; transform-origin: top center; }
.t3-success { --t3c: var(--accent); }
.t3-info { --t3c: #111; }
.t3-warn { --t3c: #f6c445; }
.t3-error { --t3c: var(--danger); }
.t3-badge { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; font: 900 20px var(--mono); background: var(--t3c); color: #111; border: var(--bw) solid var(--ink); }
.t3-info .t3-badge { color: var(--accent); }
.t3-error .t3-badge { color: #fff; }
.t3-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.t3-kind { font: 800 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.t3-txt b { font: 800 15px var(--sans); }
.t3-en { font: 500 12.5px var(--sans); color: var(--ink-2); }
.t3-x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; font: 700 20px/1 var(--sans); color: var(--ink-3); align-self: start; }
.t3-x:hover { background: var(--bar-track); color: var(--ink); }
.t3-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--t3c); transform-origin: left; }
.t3-info .t3-bar { background: var(--ink); }
body:has(.live) .toast3 { box-shadow: 5px 5px 0 var(--t3c, var(--accent)), 0 18px 40px rgba(0,0,0,.45); }

/* ══════════ host: live (dark) ══════════ */
.live { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.live-body, .live .host-top { position: relative; z-index: 1; }
.live-badge { display: flex; align-items: center; gap: 8px; font: 700 12px var(--mono); color: var(--live); letter-spacing: .08em; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }
.live-body { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 40px; padding: 32px 48px; align-items: center; }
.qr-col { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-box { background: #fff; padding: 24px; border-radius: var(--r-lg); border: 0; perspective: 800px; box-shadow: 8px 8px 0 var(--accent); }
.qr-box img { display: block; image-rendering: pixelated; }
.live .qr-box img { width: min(320px, 40vh); height: min(320px, 40vh); }
button.qr-box { cursor: zoom-in; transform-origin: top left; }
.qr-tip { font: 600 13px var(--sans); color: var(--ink-3); text-align: center; }
.qr-tip .en { display: inline; margin-left: 4px; }
.live.qr-full .live-body { z-index: 96; }
.live.qr-full .qr-box { position: fixed; inset: 0; z-index: 95; border-radius: 0; display: grid; place-items: center; cursor: zoom-out; padding: 0; background: #fff; box-shadow: none; }
.live.qr-full .qr-box img { width: min(94vh, 94vw); height: min(94vh, 94vw); }
.stat-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.live-h1 { margin: 0; font: 800 clamp(40px, 4.6vw, 64px)/1.08 var(--sans); letter-spacing: -.02em; color: #fff; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-h1 .en { font-size: .36em; color: var(--ink-3); margin-top: 6px; }
.live-row { display: flex; align-items: flex-end; gap: 36px; }
.live-clock { flex: 1; min-width: 0; }
.big-timer { font: 700 clamp(84px, 10vw, 170px)/.9 var(--mono); letter-spacing: -.06em; }
.big-timer.warn { color: var(--accent); }
.progress { height: 10px; background: var(--night-line); border-radius: 6px; margin-top: 14px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 6px; transition: width 1s linear; }
.ballot-count { display: flex; gap: 28px; }
.ballot-count b { display: block; font: 800 clamp(44px, 5vw, 72px)/1 var(--mono); color: var(--accent); }
.ballot-count b.dim { color: var(--ink-3); }
.ballot-count span { font-size: 14px; color: var(--ink-3); }
.live-bottom { display: flex; gap: 20px; align-items: flex-end; min-width: 0; }
.live-board { flex: 1; min-width: 0; border: var(--bw) solid var(--night-line-2); border-radius: var(--r-lg); padding: 14px 16px 16px; background: var(--night-2); }
.lb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lb-head .en { display: inline; margin-left: 4px; color: var(--ink-3); }
.lb-head .lb-note { color: var(--ink-3); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.lb-rows { position: relative; transition: height .4s; }
.lb-row { position: absolute; left: 0; right: 0; top: 0; height: 50px; display: flex; align-items: center; gap: 12px; transition: transform .7s cubic-bezier(.34, 1.4, .64, 1); }
.lb-rank { width: 34px; height: 34px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; font: 800 16px var(--mono); border: var(--bw) solid var(--night-line-2); color: #fff; }
.lb-row.lead .lb-rank { background: var(--accent); border-color: var(--accent); color: #111; }
.lb-name { flex: 0 1 42%; min-width: 0; font: 700 clamp(18px, 1.7vw, 30px) var(--sans); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-track { flex: 1 1 30%; min-width: 50px; height: 18px; border-radius: var(--r-pill); border: var(--bw) solid var(--night-line-2); background: transparent; overflow: hidden; }
.lb-bar { height: 100%; width: 0; background: rgba(181, 230, 29, .55); transition: width .9s cubic-bezier(.22, 1, .36, 1); }
.lb-row.lead .lb-track { border-color: var(--accent); }
.lb-row.lead .lb-bar { background: var(--accent); }
.lb-val { width: 64px; text-align: right; font: 800 clamp(22px, 2vw, 34px) var(--mono); color: #fff; }
.lb-row.lead .lb-val { color: var(--accent); }
.lb-n { width: 30px; font: 600 12px var(--mono); color: var(--ink-3); }
.lb-n:not(:empty)::before { content: '×'; }
/* live chat + reactions */
.chat-feed { position: absolute; right: 24px; bottom: 24px; width: min(360px, 30vw); max-height: 40%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; pointer-events: none; z-index: 22;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%); }
.live-bottom .chat-feed { position: relative; right: auto; bottom: auto; overflow: hidden; flex: none; width: clamp(220px, 22vw, 340px); max-height: 46vh; align-self: stretch; }
.jury-host .chat-feed { right: 24px; bottom: 96px; width: min(340px, 30vw); }
.chat-line { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); background: rgba(12, 12, 12, .8); backdrop-filter: blur(8px); border: var(--bw) solid rgba(181, 230, 29, .45); color: #fff; align-self: flex-start; max-width: 100%; }
.host:not(.live) .chat-line { background: rgba(17, 17, 17, .88); }
.chat-line.cl-gift { border-color: var(--accent); background: rgba(181, 230, 29, .22); }
.chat-line.cl-rose { border-color: var(--g-rose); background: rgba(255, 122, 168, .22); }
.chat-line.cl-diamond { border-color: var(--g-diamond); background: rgba(106, 208, 255, .22); }
.chat-line.cl-rocket { border-color: var(--g-rocket); background: rgba(255, 179, 71, .24); }
.cl-ava { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: var(--bw) solid var(--accent); display: grid; place-items: center; background: var(--accent); font-size: 18px; }
.cl-body { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cl-nick { font: 700 12px var(--sans); color: var(--accent); }
.cl-body b { font: 800 16px var(--sans); }
.cl-en { font: 500 12px var(--sans); color: #aaa; }
.cheer-lane { position: absolute; right: 0; bottom: 0; width: min(380px, 32vw); height: 72%; pointer-events: none; z-index: 15; overflow: hidden; }
.jury-host .cheer-lane { height: 60%; }
.reaction-fly { position: absolute; bottom: 10px; opacity: 0; will-change: transform; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.combo { position: absolute; right: 24px; bottom: 90px; font: 900 34px var(--mono); color: #fff; text-shadow: 0 0 18px rgba(181, 230, 29, .9), 0 4px 0 #000; pointer-events: none; opacity: 0; }

/* ══════════ host: jury ══════════ */
.jury-host { position: relative; overflow: hidden; }
.jury-wrap { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 28px 40px 32px; min-height: 0; position: relative; z-index: 1; }
.jury-head { display: flex; flex-direction: column; gap: 10px; }
.jury-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.jury-meta b { font: 800 18px var(--mono); color: var(--ink); }
.jury-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.wpill { height: 34px; padding: 0 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-pill); background: #fff; font: 600 13px var(--sans); color: var(--ink-2); display: inline-flex; align-items: center; }
.wpill b { color: var(--ink); font-family: var(--mono); margin: 0 6px; }
.wpill .en { display: inline; }
.wpill:hover { background: var(--accent-soft); box-shadow: 3px 3px 0 var(--accent); }
.jury-scroll { overflow: auto; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); background: #fff; max-height: calc(100vh - 330px); box-shadow: var(--sh); }
.jury { border-collapse: separate; border-spacing: 0; width: 100%; min-width: max-content; }
.jury th, .jury td { padding: 0; border-bottom: var(--bw) solid var(--line); }
.jury thead th { position: sticky; top: 0; z-index: 2; background: var(--ink); color: #fff; font: 800 14px var(--sans); padding: 14px 10px; text-align: center; min-width: 110px; max-width: 180px; }
.jury thead th span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jury .j-corner { text-align: left; padding: 12px 16px; min-width: 190px; position: sticky; left: 0; z-index: 3; background: var(--ink); color: #fff; }
.jury .j-corner .en { color: #999; }
.jury tbody th.j-name { position: sticky; left: 0; background: #fff; z-index: 1; padding: 6px 10px; border-right: var(--bw) solid var(--line); }
.j-name-in { width: 100%; height: 44px; border: var(--bw) solid transparent; background: transparent; font: 800 16px var(--sans); color: var(--ink); padding: 0 8px; border-radius: var(--r-sm); outline: none; }
.j-name-in:focus { border-color: var(--ink); background: var(--accent-soft); }
.jury td { text-align: center; padding: 6px 8px; }
.j-cell { width: 76px; height: var(--h-md); text-align: center; border: var(--bw) solid var(--line-2); border-radius: var(--r-sm); background: #fff; font: 800 20px var(--mono); color: var(--ink); outline: none; transition: border-color .15s, background .15s; }
.j-cell:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--accent); }
.j-cell.filled { background: var(--accent-soft); border-color: var(--ink); }
.j-cell.bad { border-color: var(--danger); background: #fff1f3; }
.j-cell::placeholder { color: var(--line-3); }
.j-del { width: 56px; }
.jury tfoot th, .jury tfoot td { background: var(--accent); border-bottom: 0; border-top: var(--bw) solid var(--ink); }
.jury tfoot .j-corner { background: var(--accent); color: #111; }
.jury tfoot .j-corner .en { color: rgba(0,0,0,.5); }
.j-avg { display: inline-block; font: 800 20px var(--mono); color: #111; padding: 12px 0; }
.jury-actions { display: flex; gap: 14px; align-items: center; }
.add-judge { flex: 1; height: 56px; }
.reveal { height: 56px; padding: 0 28px; font-size: 17px; }
/* jury on phones: one judge at a time (built by host.js when ≤ 760px) */
.jm { display: flex; flex-direction: column; gap: 12px; }
.jm-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 6px 8px 2px; scrollbar-width: none; }
.jm-tabs::-webkit-scrollbar { display: none; }
.jm-tab { flex: none; height: var(--h-sm); padding: 0 14px; border-radius: var(--r-pill); border: var(--bw) solid var(--ink); background: #fff; font: 800 14px var(--sans); color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.jm-tab small { font: 700 11px var(--mono); color: var(--ink-2); }
.jm-tab.on { background: var(--accent); box-shadow: 3px 3px 0 var(--ink); }
.jm-tab.add { border-style: dashed; }
.jm-card { border: var(--bw) solid var(--ink); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh); overflow: hidden; }
.jm-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: var(--bw) solid var(--ink); background: var(--bar-track); }
.jm-head .j-name-in { flex: 1; min-width: 0; background: #fff; border-color: var(--ink); height: 44px; }
.jm-fill { font: 800 12px var(--mono); white-space: nowrap; }
.jm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: var(--bw) solid var(--line); }
.jm-row:last-child { border-bottom: 0; }
.jm-row.filled { background: var(--accent-soft); }
.jm-name { min-width: 0; }
.jm-name b { display: block; font: 800 15px var(--sans); overflow-wrap: anywhere; }
.jm-name span { font: 600 11.5px var(--mono); color: var(--ink-2); }
.jm-ctl { display: flex; align-items: center; gap: 6px; }
.jm-ctl button { width: var(--h-md); height: var(--h-md); border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; font: 800 22px var(--mono); color: var(--ink); }
.jm-ctl button:active { background: var(--accent); }
.jm-ctl .j-cell { width: 68px; height: var(--h-md); font-size: 22px; }
.jm-next { margin: 12px; height: var(--h-md); }
.jm-foot { position: sticky; bottom: 0; z-index: 5; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); display: flex; flex-direction: column; gap: 10px; }
.jm-foot .btn-primary { height: 56px; width: 100%; }
/* quick score picker (bottom sheet) */
.jpick-back { position: fixed; inset: 0; z-index: 115; background: rgba(15,15,15,.4); }
.jpick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 116; background: #fff; border-top: var(--bw) solid var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 0 var(--accent); }
.jpick-t { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.jpick-t b { font: 800 17px var(--sans); overflow-wrap: anywhere; }
.jpick-t span { font: 700 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.jpick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.jpick-grid button { height: 54px; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; font: 800 22px var(--mono); color: var(--ink); }
.jpick-grid button.on { background: var(--accent); box-shadow: 3px 3px 0 var(--ink); }
.jpick-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.jpick-row button { height: var(--h-md); border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; font: 800 15px var(--sans); color: var(--ink); }
.jpick-row button.on { background: var(--ink); color: var(--accent); }

/* ══════════ host: results ══════════ */
/* The podium fills exactly the space left under the title. Column heights
   include the winner card, so 1st is always the tallest (100 / 82 / 66%);
   text scales with the column, so zooming never pushes it over the title. */
.res-host { position: relative; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.res-host .host-top { flex: none; }
.results2 { flex: 1 1 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 14px 32px 16px; gap: 12px; }
.res-h1 { flex: none; position: relative; z-index: 2; margin: 0; background: var(--paper); font: 800 clamp(34px, 4.2vw, 76px)/1.08 var(--sans); letter-spacing: -.02em; text-align: center; text-wrap: balance; }
.res-h1 .en { font-size: .34em; margin-top: 4px; }
.podium { flex: 1 1 0; min-height: 0; width: 100%; display: flex; align-items: stretch; justify-content: center; gap: 1.4vw; }
.tier { height: 100%; display: flex; align-items: flex-end; gap: 1vw; }
.pod { height: 100%; width: min(380px, calc((100vw - 64px - (var(--n, 3) + 1) * 1.6vw) / var(--n, 3))); display: flex; flex-direction: column; justify-content: flex-end; container-type: size; min-height: 0; }
.pod.g2 { height: 82%; }
.pod.g3 { height: 66%; }
/* winner card */
.pod .who { flex: none; position: relative; z-index: 1; margin: 0 4px 10px; padding: clamp(6px, 3cqw, 14px) clamp(6px, 4cqw, 14px); text-align: center; background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-md); box-shadow: 4px 4px 0 var(--ink); }
.pod.g1 .who { box-shadow: 5px 5px 0 var(--accent); border-width: var(--bw-xl); }
.pod .who .nm { font: 800 clamp(11px, min(11cqw, 6cqh), 44px)/1.1 var(--sans); text-transform: uppercase; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pod .who .fs { font: 900 clamp(18px, min(26cqw, 13cqh), 104px)/1 var(--mono); letter-spacing: -.03em; margin-top: 4px; }
.pod.g1 .who .fs { text-shadow: 3px 3px 0 var(--accent); }
.pod .who .vv { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sub-chip { display: inline-flex; align-items: baseline; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); border: var(--bw) solid var(--ink); background: var(--bar-track); font: 700 clamp(8px, min(5.2cqw, 2.6cqh), 18px) var(--mono); white-space: nowrap; }
.sub-chip b { font-weight: 900; }
/* podium block */
.pod .block { flex: 1 1 0; min-height: 26px; overflow: hidden; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding-top: clamp(4px, 2cqh, 22px); transform-origin: bottom; border: var(--bw-xl) solid var(--ink); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-ink); }
.pod.g1 .block { background: var(--accent); }
.pod.g2 .block { background: repeating-linear-gradient(135deg, #fff 0 14px, var(--accent-soft) 14px 28px); }
.pod.g3 .block { background: #fff; }
.pod .rk { font: 900 clamp(22px, min(34cqw, 16cqh), 150px)/1 var(--mono); letter-spacing: -.05em; margin-bottom: 2px; }
.pod.g1 .rk { text-shadow: 3px 3px 0 #fff; }
.pod .medal { font-size: clamp(16px, min(16cqw, 7cqh), 64px); line-height: 1; }
.pod .tl { margin-top: 4px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ink); color: var(--accent); font: 800 clamp(8px, min(5.4cqw, 2.8cqh), 20px) var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pod .tl .en { display: none; }
.podium-base { flex: none; width: 100%; height: 12px; margin: 0 auto; background: var(--ink); border-radius: 4px; }
.rest { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rest > span { padding: 5px 12px; border: var(--bw) solid var(--ink); border-radius: var(--r-pill); background: #fff; font: 600 clamp(13px, 1.1vw, 20px) var(--sans); color: var(--ink-2); }
.rest > span b { color: var(--ink); font-weight: 800; }
.res-foot { flex: none; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.res-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.res-stats > div { display: flex; align-items: baseline; gap: 8px; padding: 6px 14px; border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: #fff; }
.res-stats b { font: 800 clamp(18px, 1.6vw, 28px) var(--mono); }
.res-stats span { font-size: clamp(12px, .95vw, 15px); color: var(--ink-2); }
.res-stats span .en { display: inline; margin-left: 3px; }

/* ══════════ donation history drawer ══════════ */
.hist-back { position: fixed; inset: 0; z-index: 105; background: rgba(15, 15, 15, .35); }
.hist-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); background: #fff; color: #111; border-left: var(--bw-xl) solid var(--ink); box-shadow: -8px 0 0 var(--accent); display: flex; flex-direction: column; }
.hd-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: var(--bw) solid var(--ink); }
.hd-sum { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; padding: 16px 20px 6px; }
.hd-sum > div { border: var(--bw) solid var(--ink); border-radius: var(--r-md); padding: 12px 14px; }
.hd-sum > div:first-child { background: var(--accent); box-shadow: 3px 3px 0 var(--ink); }
.hd-sum b { display: block; font: 900 clamp(24px, 2.4vw, 34px)/1.05 var(--mono); }
.hd-sum span { font: 600 12px var(--sans); color: var(--ink-2); }
.hd-sum span .en { display: inline; margin-left: 3px; }
.hd-top { padding: 8px 20px 4px; display: flex; flex-direction: column; gap: 6px; }
.hd-top-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: var(--bw) solid var(--ink); border-radius: var(--r-md); background: var(--accent-soft); font-size: 15px; }
.hd-top-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-top-row .m { font-size: 20px; }
.hd-top-row .mono { font-weight: 800; }
.hd-list { flex: 1; overflow-y: auto; padding: 10px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.hd-item .hi b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-item .hi span .en { display: none; }
.hd-item .amt { font: 800 16px var(--mono); white-space: nowrap; }
.hd-empty { padding: 30px 0; text-align: center; color: var(--ink-3); }

/* ══════════ phone (audience) ══════════ */
.phone { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.phone.night { background: var(--night); color: var(--paper); max-width: none; }
.phone.roam-host { position: relative; overflow: hidden; }
.phone-top { padding: 16px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.phone-top .logo { font-size: 14px; }
.pill-time { font: 700 13px var(--mono); background: var(--ink); color: #fff; padding: 7px 12px; border-radius: var(--r-pill); border: var(--bw) solid var(--ink); }
.phone-body { flex: 1; padding: 18px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.p-q { font-weight: 800; font-size: 30px; line-height: 1.2; margin-top: 6px; text-wrap: balance; }
.phone-foot { position: sticky; bottom: 0; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); border-top: var(--bw) solid var(--ink); background: var(--paper); }
.phone-foot button { position: relative; overflow: hidden; width: 100%; height: 56px; border-radius: var(--r-md); font-size: 16px; }
.center { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px 32px; text-align: center; gap: 18px; }
.check, .jury-wait { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 5px 5px 0 var(--accent); }
.jury-wait { font-size: 44px; }
.check svg { width: 52px; height: 52px; }
.done-title { font-weight: 800; font-size: 26px; }
.voted-title { font: 800 22px/1.2 var(--sans); text-align: center; text-wrap: balance; }
.wait-timer { font: 700 64px/1 var(--mono); letter-spacing: -.04em; }
.wait-note { font-size: 13px; color: var(--ink-2); max-width: 260px; text-wrap: pretty; }
.scan-ico { width: 120px; height: 120px; border: 6px solid var(--ink); border-radius: var(--r-lg); position: relative; overflow: hidden; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px), repeating-linear-gradient(0deg, var(--ink) 0 8px, transparent 8px 16px); background-blend-mode: multiply; opacity: .9; box-shadow: 5px 5px 0 var(--accent); }
.scan-ico::before { content: ''; position: absolute; inset: 10px; background: var(--paper); border-radius: 8px; }
.scan-ico .line { position: absolute; left: 6px; right: 6px; height: 4px; background: var(--accent); border-radius: 2px; box-shadow: 0 0 14px var(--accent); top: 10px; }
/* scoring */
.score-hint { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.score-list { display: flex; flex-direction: column; gap: 12px; padding: 0 6px 20px 0; }
.score-card { border: var(--bw) solid var(--line-2); border-radius: var(--r-lg); padding: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.score-card.done { border-color: var(--ink); box-shadow: var(--sh); }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sc-head .n { font: 800 17px var(--sans); }
.sc-val { flex: none; min-width: 48px; height: var(--h-sm); border-radius: var(--r-sm); background: var(--ink); color: var(--accent); font: 800 22px/40px var(--mono); text-align: center; }
.score-card .d { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.sc-btns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.sc-btns button { height: var(--h-md); border-radius: var(--r-sm); border: var(--bw) solid var(--line-2); background: #fff; font: 800 18px var(--mono); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.sc-btns button.on { background: var(--accent); border-color: var(--ink); color: #111; box-shadow: 2px 2px 0 var(--ink); }
.prog { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.prog i { flex: 1; height: 8px; border-radius: 4px; border: var(--bw) solid var(--ink); background: #fff; overflow: hidden; }
.prog b { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
#send:not(.ready) { background: #e9e9e9; color: #666; box-shadow: none; border-color: #bbb; }
.mine { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-md); padding: 14px 18px; font-size: 14px; width: 100%; }
.mine-scores > div { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: center; margin-top: 8px; font-weight: 600; font-size: 14px; }
.mine-scores > div b { display: inline-grid; place-items: center; min-width: 28px; height: 26px; border-radius: 8px; border: var(--bw) solid var(--ink); background: var(--accent); font: 800 14px var(--mono); margin-right: 4px; }
/* results on the phone */
.p-leader { background: var(--accent); color: var(--accent-ink); border: var(--bw-xl) solid var(--ink); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-ink); }
.p-leader .k { font: 800 11px var(--mono); letter-spacing: .1em; }
.p-leader .big { font: 900 56px/1 var(--mono); letter-spacing: -.04em; margin-top: 10px; }
.p-leader .nm { font-weight: 800; font-size: 18px; margin-top: 10px; text-transform: uppercase; }
.p-leader .sub { font-size: 13px; margin-top: 2px; }
.p-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.p-bars > div { border: var(--bw) solid var(--ink); border-radius: var(--r-md); padding: 10px 12px; background: #fff; }
.p-bars > div.first { box-shadow: var(--sh); }
.p-bars .top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; gap: 10px; }
.p-bars .top .you { font-size: 11px; background: var(--ink); color: var(--accent); padding: 2px 6px; border-radius: 6px; margin-left: 6px; }
.p-bars .top .you .en-i { display: none; }
.p-bars .top > span:last-child { font: 800 15px var(--mono); }
.bar { height: 10px; margin-top: 8px; border-radius: var(--r-pill); border: var(--bw) solid var(--ink); background: #fff; overflow: hidden; }
.bar > div { height: 100%; background: var(--ink); min-width: 2px; }
.bar > div[data-w="0"] { min-width: 0; }
.p-bars .first .bar > div { background: var(--accent); }
.p-note { font-size: 13px; color: var(--ink-2); text-align: center; margin-top: 10px; padding-bottom: 24px; }
/* cheer sheet */
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: 520px; max-height: 92vh; margin: 0 auto; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: var(--bw) solid var(--ink); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 0 var(--accent); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--ink); margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 12px; font: 800 20px var(--sans); }
.sheet h3 .en { display: inline; margin-left: 6px; font-size: 13px; }
.sheet .left { margin-top: 10px; font-size: 12px; color: var(--ink-3); text-align: center; }
.free-badge { margin: -4px 0 12px; padding: 8px 12px; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: var(--bar-track); font: 700 13px var(--sans); color: var(--ink-2); }
.free-badge.on { background: var(--accent); color: #111; }
.free-badge .en, .gift-card .en, .bank-row .en, .pay-status .en, .pay-note .en, .pay-save .en, .pay-gift .en { display: inline; margin-left: 4px; font-weight: 500; opacity: .7; }
.react-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.react-row button { min-width: 0; height: var(--h-md); padding: 0; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; font-size: 24px; }
.react-row button:active { background: var(--accent); }
.msg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.msg-grid button { text-align: left; padding: 10px 12px; border-radius: var(--r-md); border: var(--bw) solid var(--ink); background: #fff; font: 700 14px var(--sans); color: var(--ink); }
.msg-grid button .en { font-size: 11px; }
.msg-grid button:active { background: var(--accent); }
.cheer-free.locked { position: relative; opacity: .38; filter: grayscale(1); }
.cheer-free.locked::after { content: '🔒'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; filter: none; pointer-events: none; }
/* gifts (tier colours are gift content) */
.gift-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.gift-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: var(--r-md); border: var(--bw) solid var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--accent); font: 700 12.5px var(--sans); color: var(--ink); }
.gift-card .ge { font-size: 36px; line-height: 1.1; }
.gift-card .en { display: block; margin: 0; font-size: 10.5px; }
.gift-card .gp { margin-top: 4px; padding: 2px 10px; border-radius: var(--r-pill); background: #111; color: var(--accent); font: 800 14px var(--mono); }
.gift-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }
.gift-card.g-rose { box-shadow: 3px 3px 0 var(--g-rose); }
.gift-card.g-diamond { box-shadow: 3px 3px 0 var(--g-diamond); }
.gift-card.g-rocket { box-shadow: 3px 3px 0 var(--g-rocket); }
.gift-card:disabled { opacity: .45; }
.donate { margin: -4px 0 14px; padding: 12px; border: var(--bw) solid var(--ink); border-radius: var(--r-md); box-shadow: 3px 3px 0 var(--g-custom); background: #fff; }
.donate.off { opacity: .45; }
.dn-head { display: flex; align-items: center; gap: 8px; font: 800 14px var(--sans); margin-bottom: 8px; }
.dn-head .ge { font-size: 22px; }
.dn-head .en { display: inline; margin-left: 4px; font-weight: 500; opacity: .7; }
.dn-min { margin-left: auto; font: 600 12px var(--mono); color: var(--ink-3); }
.dn-min .en { display: inline; }
.dn-row { display: flex; align-items: center; gap: 8px; }
.dn-input { flex: 1; min-width: 0; height: var(--h-md); padding: 0 12px; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); font: 800 20px var(--mono); color: var(--ink); background: #fff; }
.dn-input:focus { outline: none; box-shadow: 3px 3px 0 var(--accent); }
.dn-cur { font: 800 18px var(--mono); color: var(--ink-3); }
.dn-go { height: var(--h-md); padding: 0 16px; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #111; color: var(--accent); font: 800 15px var(--sans); }
.dn-go:active { transform: translate(1px, 1px); }
.dn-chips { display: flex; gap: 6px; margin-top: 8px; }
.dn-chips button { flex: 1; height: 36px; border-radius: var(--r-pill); border: var(--bw) solid var(--ink); background: #fff; font: 700 13px var(--mono); color: var(--ink); }
.dn-chips button:active { background: var(--accent); }
/* payment */
.pay-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pay-back { width: var(--h-sm); height: var(--h-sm); border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: #fff; font: 700 18px var(--sans); }
.pay-gift { display: flex; align-items: center; gap: 10px; }
.pay-gift .ge { font-size: 40px; }
.pay-gift b { display: block; font: 800 17px var(--sans); }
.pay-amt { font: 800 22px var(--mono); }
.pay-qr { display: grid; place-items: center; padding: 10px; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); background: #fff; }
.pay-qr img { width: min(300px, 76vw); height: auto; display: block; -webkit-touch-callout: default; user-select: auto; }
.pay-hint { margin: 8px 0 0; text-align: center; font: 600 12.5px var(--sans); color: var(--ink-3); }
.pay-hint .en { display: inline; margin-left: 4px; font-weight: 500; }
.pay-hint a { color: var(--ink); font-weight: 800; }
.pay-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0; padding: 10px; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: var(--bar-track); font: 700 14px var(--sans); }
.pay-status.ok { background: var(--accent); }
.pay-status .spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--ink); animation: qvspin .8s linear infinite; }
@keyframes qvspin { to { transform: rotate(360deg); } }
.bank { display: flex; flex-direction: column; border: var(--bw) solid var(--ink); border-radius: var(--r-md); overflow: hidden; }
.bank-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; }
.bank-row + .bank-row { border-top: var(--bw) solid var(--line); }
.bank-row > span { flex: none; width: 92px; color: var(--ink-3); font-weight: 600; }
.bank-row > span .en { display: block; margin: 0; font-size: 10.5px; }
.bank-row b { flex: 1; min-width: 0; font-size: 14.5px; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.bank-row .copy { flex: none; height: 34px; padding: 0 12px; border-radius: var(--r-sm); border: var(--bw) solid var(--ink); background: var(--accent); font: 800 12px var(--sans); }
.bank-row .copy .en { display: none; }
.pay-note { margin: 10px 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.pay-save { width: 100%; height: var(--h-md); }
.inapp { margin: 0 0 12px; padding: 12px; border-radius: var(--r-md); border: var(--bw) solid var(--ink); background: #fff6c2; font-size: 13px; }
.inapp b { display: block; font: 800 14px var(--sans); }
.inapp p { margin: 6px 0 0; line-height: 1.4; }
.inapp .en { display: inline; margin-left: 4px; opacity: .7; }
.inapp-chrome { display: flex; align-items: center; justify-content: center; height: var(--h-sm); margin-top: 10px; text-decoration: none; }
.bank-apps { margin: 14px 0 4px; }
.ba-head { font: 800 13px var(--sans); margin-bottom: 8px; }
.ba-head .en { display: inline; margin-left: 4px; font-weight: 500; opacity: .7; }
.ba-head small { display: block; font: 600 11px var(--sans); color: var(--ink-3); margin-top: 2px; }
.ba-head small .en { display: inline; }
.ba-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ba { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: var(--bw) solid var(--ink); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font: 600 10.5px/1.2 var(--sans); text-align: center; background: #fff; }
.ba img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: var(--bar-track); }
.ba span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ba:active { background: var(--accent-soft); }
.ba.af::after { content: '✓'; position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 1.5px solid #111; font: 900 10px/13px var(--sans); text-align: center; }
.ba.more { display: none; }
.bank-apps.all .ba.more { display: flex; }
.ba-toggle { width: 100%; margin-top: 8px; height: var(--h-sm); border-radius: var(--r-sm); border: var(--bw) dashed var(--ink); background: #fff; font: 700 13px var(--sans); }

/* ══════════ cats ══════════ */
.cat { position: relative; display: inline-block; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.cat img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(23, 21, 15, .25); }
.cat::after { content: '🐾'; position: absolute; right: -6px; bottom: 4px; font-size: 26px; transform: rotate(18deg); }
.cat-host { width: 120px; height: 120px; }
.cat-host img { border-color: var(--night-2); box-shadow: 0 0 0 4px var(--accent), 0 16px 40px rgba(0, 0, 0, .5); }
.cat-phone { width: 110px; height: 110px; }
.meow { position: absolute; left: 50%; top: -14px; transform-origin: bottom center; translate: -50% -100%; opacity: 0; background: #fff; color: var(--ink); font: 800 15px var(--sans); padding: 8px 14px; border-radius: 16px; border: var(--bw) solid var(--ink); white-space: nowrap; box-shadow: 3px 3px 0 var(--accent); pointer-events: none; }
.meow::after { content: ''; position: absolute; left: 50%; bottom: -9px; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
.roam { position: absolute; left: 0; top: 0; z-index: 20; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.roam.dragging { cursor: grabbing; }
.roam .cat { cursor: inherit; }
.roam .cat::after { display: none; }
.roam .shadow { position: absolute; left: 12%; right: 12%; bottom: -10px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(3px); }
.live .roam .shadow { background: rgba(181, 230, 29, .25); }
.squad .cat { position: relative; }
.squad .cat-host { width: 104px; height: 104px; }
.phone .squad .cat-phone { width: 92px; height: 92px; }
.squad .jersey { position: absolute; left: -6px; top: -6px; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--accent); color: #111; font: 800 14px/24px var(--mono); text-align: center; border: var(--bw) solid #111; z-index: 2; pointer-events: none; }
.scratches { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; pointer-events: none; }
.scratches svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.glaring .cat img { border-color: #e11d48 !important; box-shadow: 0 0 0 4px #e11d48, 0 0 26px rgba(225, 29, 72, .6) !important; }
.anger { position: absolute; right: -10px; top: -18px; font-size: 34px; z-index: 3; pointer-events: none; }
.dust { position: absolute; width: 0; height: 0; z-index: 25; pointer-events: none; }
.dust span { position: absolute; left: -20px; top: -20px; font-size: 40px; opacity: 0; }
.red-card { position: absolute; left: calc(100% - 6px); top: 6px; width: 34px; height: 48px; border-radius: 5px; background: #e11d48; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .45); z-index: 4; pointer-events: none; opacity: 0; }
.sub-board { position: absolute; right: 40px; top: 90px; z-index: 30; background: #0b0b0b; border: 3px solid #333; border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); pointer-events: none; }
.sb-row { display: flex; align-items: center; gap: 12px; }
.sb-row .sb-no { min-width: 58px; font: 800 44px/1 var(--mono); text-align: center; text-shadow: 0 0 12px currentColor; }
.sb-row.out .sb-no { color: #ff3b3b; }
.sb-row.in .sb-no { color: var(--accent); }
.sb-row img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.sb-row b { font: 800 16px var(--mono); letter-spacing: .1em; color: #fff; }
.qr-zoom { position: fixed; inset: 0; z-index: 96; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: zoom-out; }
.qr-zoom img { width: min(80vh, 90vw); height: auto; image-rendering: pixelated; }
.qz-cap { text-align: center; font: 800 clamp(20px, 2.4vw, 40px) var(--sans); color: #111; }
.qz-cap span { display: block; font: 600 clamp(14px, 1.3vw, 22px) var(--sans); color: var(--ink-3); }
.qz-hint { position: absolute; bottom: 16px; font: 600 13px var(--mono); color: var(--ink-3); }

/* ══════════ effects ══════════ */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.fx-confetti { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0; }
.fx-confetti.round { width: 10px; height: 10px; border-radius: 50%; }
.fx-float { position: absolute; opacity: 0; will-change: transform; user-select: none; font-weight: 800; }
.fx-ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.fx-ambient i { position: absolute; border-radius: 50%; }
@keyframes fxquake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(calc(var(--q) * -1), var(--q)); } 50% { transform: translate(var(--q), calc(var(--q) * -.6)); } 75% { transform: translate(calc(var(--q) * -.6), calc(var(--q) * -1)); } }
.fx-quake { animation: fxquake 90ms linear infinite; }
/* gift shows on the big screen */
.gift-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.gift-show { position: absolute; inset: 0; }
.gift-skip { position: absolute; inset: 0; pointer-events: auto; cursor: pointer; background: transparent; }
.gift-skip span { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 6px 14px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .55); color: #fff; font: 600 12px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.gift-glyph { position: absolute; line-height: 1; will-change: transform; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.gift-banner { position: absolute; top: 22px; left: 50%; margin-left: -260px; width: 520px; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; border-radius: var(--r-pill); background: #111; color: #fff; border: var(--bw) solid var(--accent); box-shadow: 0 16px 40px rgba(0,0,0,.35), 6px 6px 0 var(--accent); }
.gift-banner img, .gift-banner .gb-ava { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--accent); display: grid; place-items: center; font-size: 30px; background: #222; flex: none; }
.gift-banner > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gift-banner b { font: 800 20px var(--sans); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-banner span { font-size: 14px; color: #ddd; }
.gift-banner strong { color: #fff; }
.gift-banner .gb-emoji { font-size: 52px; line-height: 1; color: inherit; }
.gift-banner .gb-amt { font: 800 16px var(--mono); color: #111; background: var(--accent); padding: 6px 12px; border-radius: var(--r-pill); }
.gb-rose { border-color: var(--g-rose); box-shadow: 0 16px 40px rgba(0,0,0,.35), 6px 6px 0 var(--g-rose); }
.gb-diamond { border-color: var(--g-diamond); box-shadow: 0 16px 40px rgba(0,0,0,.35), 6px 6px 0 var(--g-diamond); }
.gb-rocket { border-color: var(--g-rocket); box-shadow: 0 16px 40px rgba(0,0,0,.35), 6px 6px 0 var(--g-rocket); }
.gfx { position: absolute; pointer-events: none; }
.gfx.spark { width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; }
.gfx.shell { width: 6px; height: 18px; margin-left: -3px; border-radius: 3px; background: linear-gradient(#fff, #ffd23f); box-shadow: 0 0 12px #ffd23f; }
.gfx.dim { inset: 0; background: #000; opacity: 0; }
.gfx.flash { inset: 0; background: #fff; opacity: 0; }
.gfx.flash.gold { background: radial-gradient(circle, #fff8d6 0%, #ffd23f 45%, rgba(255, 176, 0, 0) 80%); }
.gfx.ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border: 6px solid #fff; border-radius: 50%; opacity: 0; }
.gfx.stem { width: 110px; height: 0; border-radius: 50px 50px 10px 10px; background: linear-gradient(#ffb347, #7a5c4a 60%, #3b3b3b); filter: blur(6px); }
.gfx.puff { border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe0a3, #ff8a3d 35%, #7a5c4a 65%, rgba(60, 60, 60, 0) 72%); filter: blur(4px); opacity: 0; }
.gfx.sky { inset: 0; opacity: 0; background: radial-gradient(ellipse at 50% 110%, #2a1a5c 0%, #0d1233 50%, #02030a 100%); }
.gfx.ny-count { left: 0; right: 0; top: 50%; translate: 0 -50%; text-align: center; font: 900 clamp(160px, 26vw, 420px)/1 var(--mono); color: #ffd23f; -webkit-text-stroke: 4px #111; paint-order: stroke fill; text-shadow: 0 10px 0 #000, 0 0 60px rgba(255, 210, 63, .8); opacity: 0; }
.gfx.big-text { left: 0; right: 0; top: 50%; translate: 0 -50%; margin: 0 auto; width: fit-content; max-width: 90vw; padding: .28em .55em .32em; border-radius: 28px; transform-origin: center; text-align: center;
  font: 900 clamp(40px, 6.2vw, 112px)/1 var(--sans); letter-spacing: -.03em; color: #fff; background: rgba(12, 12, 12, .82); border: 4px solid currentColor; opacity: 0;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .55); -webkit-text-stroke: 2px #111; paint-order: stroke fill; text-shadow: 0 6px 0 #111; }
.gfx.big-text span { display: block; margin-top: 12px; font: 800 clamp(24px, 3vw, 48px) var(--mono); letter-spacing: 0; color: #fff; -webkit-text-stroke: 0; text-shadow: 0 2px 0 #000; }
.gfx.nuke-text { color: #ffd23f; text-shadow: 0 5px 0 #000, 0 0 28px rgba(255, 90, 54, .9); }
.gfx.boss-text { color: #ffd23f; top: 62%; text-shadow: 0 5px 0 #000, 0 0 30px rgba(255, 176, 0, .85); }

/* ══════════ narrower screens ══════════ */
@media (max-width: 1440px) {
  .steps { gap: 16px; }
  .steps .en { display: none; }
  .top-right .closed-tag { display: none; }
}
@media (max-width: 1180px) { .steps { display: none; } }
@media (max-width: 1000px) {
  .preview, .live-body { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .opt-list { max-height: none; }
  .host-top { padding: 14px 20px; }
}
@media (max-width: 900px) { .live-bottom { flex-direction: column; align-items: stretch; } .live-row { flex-wrap: wrap; } }

/* ══════════ host on a phone (≤ 760px) ══════════ */
@media (max-width: 760px) {
  .host-top { padding: 10px 12px; gap: 8px; }
  .host-top .logo { gap: 6px; font-size: 16px; }
  .room-chip { max-width: 96px; }
  .closed-tag, .live-badge .en-i { display: none; }
  .gear, .snd-btn { width: var(--h-sm); height: var(--h-sm); }
  .hist-btn, .donate-pill { height: var(--h-sm); padding: 0 10px; }
  .hist-btn b, .dp-t { display: none; }
  .top-right { gap: 6px; }
  .btn-ghost-night { padding: 0 10px; }
  /* setup */
  .preview { padding: 16px 14px 96px; gap: 20px; }
  .preview h1 { font-size: 40px; }
  .left-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: var(--bw) solid var(--ink); }
  .opt { grid-template-columns: 1fr; }
  .opt .acts { justify-content: flex-end; }
  /* live (host) */
  .live-body { padding: 16px 14px; gap: 18px; }
  .live .qr-box { padding: 14px; }
  .live .qr-box img { width: min(62vw, 260px); height: min(62vw, 260px); }
  .live-h1 { font-size: 30px; }
  .live-row { gap: 16px; }
  .live-bottom .chat-feed, .chat-feed, .cheer-lane { display: none; }
  .lb-name { font-size: 16px; }
  .lb-val { font-size: 20px; width: 48px; }
  /* jury */
  .jury-wrap { padding: 16px 14px 0; gap: 12px; }
  .jury-head .res-h1 { font-size: 30px; }
  .jury-meta { font-size: 13px; gap: 8px; }
  /* modal + drawer become bottom sheets */
  .smodal-back { place-items: end stretch; padding: 0; }
  .smodal { width: 100%; max-height: 92vh; border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; box-shadow: 0 -6px 0 var(--accent); }
  .smodal-body { padding: 16px; }
  .hist-drawer { top: auto; left: 0; width: 100%; max-height: 92vh; border-left: 0; border-top: var(--bw-xl) solid var(--ink); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -6px 0 var(--accent); }
  .prizes { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .wctl { gap: 8px; }
  /* results → vertical ranking */
  .res-host { height: auto; min-height: 100vh; overflow: visible; }
  .results2 { overflow: visible; padding: 14px 14px 24px; }
  .res-h1 { font-size: 30px; }
  .podium { flex: none; flex-direction: column; gap: 12px; }
  .tier { height: auto; flex-direction: column; align-items: stretch; gap: 12px; }
  .tier[data-tier="1"] { order: 1; } .tier[data-tier="2"] { order: 2; } .tier[data-tier="3"] { order: 3; }
  .pod, .pod.g2, .pod.g3 { width: 100% !important; height: auto; container-type: normal; flex-direction: row; align-items: stretch; }
  .pod .block { order: -1; flex: 0 0 76px; min-height: 0; border-bottom: var(--bw-xl) solid var(--ink); border-radius: var(--r-md); padding: 8px 4px; justify-content: center; box-shadow: 4px 4px 0 var(--ink); }
  .pod .who { flex: 1; margin: 0 0 0 10px; text-align: left; padding: 10px 12px; }
  .pod .who .nm { font-size: 16px; -webkit-line-clamp: 2; }
  .pod .who .fs { font-size: 34px; }
  .pod.g1 .who .fs { font-size: 44px; }
  .pod .who .vv { justify-content: flex-start; }
  .sub-chip { font-size: 12px; }
  .pod .rk { font-size: 34px; }
  .pod.g1 .rk { font-size: 44px; }
  .pod .medal { font-size: 22px; }
  .pod .tl { font-size: 9px; padding: 2px 6px; }
  .podium-base { display: none; }
  .rest { justify-content: flex-start; }
  .rest > span { font-size: 14px; }
  .res-stats > div { padding: 4px 10px; }
  .res-stats b { font-size: 18px; }
  .gift-banner { width: calc(100% - 24px); left: 12px; margin-left: 0; }
}
