@font-face { font-family: 'Fredoka'; font-weight: 400; font-display: swap; src: url(/fonts/fredoka-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 500; font-display: swap; src: url(/fonts/fredoka-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 600; font-display: swap; src: url(/fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }

:root {
  --ink: #0b0f2b;
  --night: #121848;
  --panel: #1b2260;
  --panel-2: #242c78;
  --line: rgba(255, 255, 255, .12);
  --text: #f4f6ff;
  --muted: #aab3e8;
  --amber: #ffd166;
  --teal: #2fc4b2;
  --coral: #ff5d73;
  --sky: #7fdcff;
  --good: #46c98b;
  --bad: #ff6b6b;
  --radius: 22px;
  --font: 'Fredoka', 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--text); background: var(--ink);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(127, 220, 255, .18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 93, 115, .16), transparent 60%),
    radial-gradient(1.5px 1.5px at 20% 30%, #fff8, transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 60%, #fff6, transparent 60%),
    radial-gradient(1px 1px at 40% 80%, #fff7, transparent 60%),
    radial-gradient(1px 1px at 85% 20%, #fff8, transparent 60%),
    radial-gradient(1.2px 1.2px at 10% 70%, #fff5, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sky); }
.hidden { display: none !important; }
.copy { text-align: center; color: rgba(255,255,255,.45); font-size: 12px; margin: 18px 0 0; }

/* ---------- brand ---------- */
.logo { display: flex; align-items: center; gap: 12px; }
.emblem {
  width: 54px; height: 54px; border-radius: 50%; flex: none; position: relative;
  background: url(/img/trickavu-logo.png) center / contain no-repeat;
  box-shadow: 0 0 22px rgba(255, 209, 102, .28);
}
@keyframes spin { to { transform: rotate(360deg); } }
.wordmark { line-height: 1; }
.wordmark b { display: block; font-size: 26px; letter-spacing: .04em; font-weight: 700; }
.wordmark b span { color: var(--amber); }
.wordmark small { color: var(--muted); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.powered::before { content: ''; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -5px; background: url(/img/trickavu-logo.png) center / contain no-repeat; }
.poster .foot img { height: 11mm; vertical-align: middle; margin-right: 3mm; }
.powered {
  position: fixed; right: 10px; bottom: 8px; z-index: 50; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .75); background: rgba(11, 15, 43, .55); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px);
  pointer-events: none;
}
.powered b { color: var(--amber); font-weight: 600; }

/* ---------- common UI ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 22px 18px 70px; }
.card { background: linear-gradient(180deg, var(--panel), #171d55); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.card + .card { margin-top: 16px; }
h1, h2, h3 { margin: 0 0 10px; font-weight: 700; }
h2 { font-size: 24px; } h3 { font-size: 18px; }
p { line-height: 1.45; }
.muted { color: var(--muted); }
label.f { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
input.t, select.t, textarea.t {
  width: 100%; background: #0f1440; border: 2px solid #2d367f; border-radius: 14px; padding: 13px 14px; font-size: 18px; outline: none;
}
textarea.t { font-size: 15px; resize: vertical; }
input.t:focus, select.t:focus, textarea.t:focus { border-color: var(--sky); }
input.code { text-transform: uppercase; letter-spacing: .35em; font-size: 28px; text-align: center; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 16px;
  padding: 14px 20px; font-size: 18px; font-weight: 600; background: var(--panel-2); color: var(--text); transition: transform .08s, filter .2s;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #ffe08a, var(--amber)); color: #3a2600; box-shadow: 0 6px 0 #c99a2e, 0 12px 26px rgba(255, 209, 102, .3); }
.btn.primary:active { box-shadow: 0 2px 0 #c99a2e; transform: translateY(4px); }
.btn.teal { background: linear-gradient(180deg, #5fe0cf, var(--teal)); color: #05302b; box-shadow: 0 6px 0 #1f8c7f; }
.btn.coral { background: linear-gradient(180deg, #ff8a99, var(--coral)); color: #3a0010; box-shadow: 0 6px 0 #c23a4f; }
.btn.ghost { background: transparent; border: 2px solid var(--line); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.huge { padding: 20px; font-size: 22px; border-radius: 20px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap-r { flex-wrap: wrap; }
.grow { flex: 1; }
.err { color: #ffb3b3; min-height: 22px; font-size: 15px; margin-top: 8px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--panel-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.swatch.on { border-color: #fff; transform: scale(1.08); }

.toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%) translateY(-120px); z-index: 200; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1);
  background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); max-width: 92vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- player hub ---------- */
.hud { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 16px 0; }
.hud > div { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 16px; padding: 10px; text-align: center; }
.hud b { display: block; font-size: 26px; line-height: 1.1; }
.hud small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hud .low b { color: var(--coral); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .55; } }
.teamtag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.crystals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.crystal {
  aspect-ratio: 1 / 1.2; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 2px dashed rgba(255, 255, 255, .16); display: flex; flex-direction: column;
  align-items: center; justify-content: center; font-size: 12px; color: var(--muted); position: relative; text-align: center; padding: 4px;
}
.crystal .gem { width: 22px; height: 28px; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%); background: rgba(255, 255, 255, .12); margin-bottom: 4px; }
.crystal.done { border-style: solid; color: #fff; }
.crystal.done .gem { background: var(--c); box-shadow: 0 0 18px var(--c); filter: drop-shadow(0 0 6px var(--c)); }
.crystal.start { border-color: var(--amber); color: var(--amber); }
.crystal .num { position: absolute; top: 3px; left: 7px; font-size: 11px; opacity: .7; }
.scanbtn { margin-top: 18px; }
.scanbtn .btn.huge { flex-direction: column; gap: 2px; }
.scanbtn .row .btn { font-size: 16px; white-space: nowrap; padding: 13px 10px; }
.scanbtn .btn.huge small { font-weight: 500; font-size: 14px; opacity: .75; }
.tip { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .3); color: #ffe7a8; font-size: 15px; }
.mini3d { width: 100%; height: 180px; display: block; }

/* ---------- AR station view ---------- */
.stage { position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden; }
.stage.mode3d { background: radial-gradient(ellipse at 50% 30%, #2a3290, #0b0f2b 70%); }
.ar-wrap { position: absolute; inset: 0; }
.ar-video, .ar-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-canvas { touch-action: none; }
.topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 12px 12px; background: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent); z-index: 5; }
.topbar .title { flex: 1; font-weight: 600; font-size: 17px; text-shadow: 0 2px 6px #000; }
.topbar .title small { display: block; font-weight: 500; font-size: 12px; color: var(--amber); letter-spacing: .14em; text-transform: uppercase; }
.iconbtn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(11, 15, 43, .7); color: #fff; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(6px); flex: none; }
.tools { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.tools .iconbtn { font-size: 13px; font-weight: 700; width: 54px; height: 54px; }
.reticle { position: absolute; left: 50%; top: 44%; width: min(62vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.reticle i { position: absolute; width: 38px; height: 38px; border: 5px solid var(--amber); }
.reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.reticle::after { content: ''; position: absolute; left: 8%; right: 8%; height: 3px; background: linear-gradient(90deg, transparent, var(--sky), transparent); top: 50%; animation: scanline 1.8s ease-in-out infinite; box-shadow: 0 0 12px var(--sky); }
@keyframes scanline { 0%, 100% { top: 12%; } 50% { top: 88%; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 16px 16px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(18, 24, 72, .92), rgba(11, 15, 43, .97)); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0;
  max-height: 70vh; overflow-y: auto; animation: rise .35s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.speech { display: flex; gap: 12px; align-items: flex-start; }
.speech .face { width: 52px; height: 52px; border-radius: 50%; background: #8b5a3c; flex: none; position: relative; box-shadow: 0 0 0 3px var(--teal); }
.speech .face::before, .speech .face::after { content: ''; position: absolute; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: #111; }
.speech .face::before { left: 14px; } .speech .face::after { right: 14px; }
.has-ottie .speech .face { background: #2a5f5a var(--ottie) center 30% / 135% no-repeat; }
.has-ottie .speech .face::before, .has-ottie .speech .face::after, .has-ottie .speech .face i { display: none; }
.speech .face i { position: absolute; left: 50%; top: 27px; transform: translateX(-50%); width: 24px; height: 16px; border-radius: 50%; background: #d9b38c; }
.speech .bubble { flex: 1; background: #fff; color: var(--ink); border-radius: 4px 18px 18px 18px; padding: 12px 14px; font-size: 16px; line-height: 1.4; }
.speech .bubble b { color: #b0461e; }
.sheet .actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet .actions .btn { flex: 1; }
.quiz-q { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 8px 0 14px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; border: 2px solid #3a4392; background: #1a2163; border-radius: 16px; padding: 14px 16px; font-size: 17px; cursor: pointer; display: flex; gap: 12px; align-items: center; }
.opt .k { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.opt.wrong { border-color: var(--bad); background: rgba(255, 107, 107, .16); opacity: .8; }
.opt.right { border-color: var(--good); background: rgba(70, 201, 139, .22); }
.opt:disabled { cursor: default; }
.subject { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); font-weight: 600; }
.result { text-align: center; padding: 6px 0; }
.result .big { font-size: 30px; font-weight: 700; }
.result .gem-big { width: 64px; height: 82px; margin: 6px auto 10px; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%); background: var(--c, var(--sky)); filter: drop-shadow(0 0 16px var(--c)); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } }
.hintdot { position: absolute; z-index: 4; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; border: 4px solid var(--amber); pointer-events: none; animation: pulse 1.1s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.tapfx { position: absolute; z-index: 4; pointer-events: none; font-weight: 700; font-size: 22px; text-shadow: 0 2px 8px #000; animation: floatup 1s ease-out forwards; transform: translate(-50%, -50%); }
@keyframes floatup { to { transform: translate(-50%, -140%); opacity: 0; } }
.lost { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); z-index: 4; background: rgba(11, 15, 43, .75); padding: 10px 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 180; background: rgba(5, 8, 25, .7); display: flex; align-items: center; justify-content: center; padding: 18px; backdrop-filter: blur(4px); }
.modal .card { width: 100%; max-width: 420px; }

/* photo booth */
.booth video, .booth canvas.ov { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.booth video { transform: scaleX(-1); }
.booth .shutter { position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: 82px; height: 82px; border-radius: 50%; border: 6px solid #fff; background: var(--coral); z-index: 6; cursor: pointer; }
.booth .preview { position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; }
.booth .preview img { max-width: 100%; max-height: 70vh; border-radius: 16px; box-shadow: 0 10px 40px #000; }

/* ---------- host dashboard ---------- */
.host { max-width: 1240px; margin: 0 auto; padding: 18px 20px 70px; }
.host header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; background: rgba(255, 255, 255, .06); padding: 5px; border-radius: 14px; }
.tabs button { border: 0; background: transparent; padding: 9px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--panel-2); color: #fff; }
.grid2 { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 12px; background: #0f1440; border: 2px solid #2d367f; cursor: pointer; font-size: 14px; user-select: none; }
.chk input { accent-color: var(--amber); width: 16px; height: 16px; margin: 0; }
.chk.on { border-color: var(--amber); }
.seg { display: inline-flex; background: #0f1440; border: 2px solid #2d367f; border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 9px 14px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--amber); color: #3a2600; }
.mlist .m { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; }
.mlist .m:hover, .mlist .m.on { background: rgba(255, 255, 255, .06); border-color: var(--line); }
.mlist .m b { font-family: ui-monospace, monospace; letter-spacing: .12em; font-size: 16px; }
.st-lobby { background: #3b4380; } .st-running { background: var(--good); color: #032c19; } .st-paused { background: var(--amber); color: #3a2600; } .st-ended { background: #555c8f; }
.bigcode { font-size: 54px; font-weight: 700; letter-spacing: .14em; line-height: 1; color: var(--amber); }
.clock { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
table.teams { width: 100%; border-collapse: collapse; font-size: 15px; }
table.teams th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.teams td { padding: 9px 6px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
.cells { display: flex; gap: 3px; }
.cells span { width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, .07); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .6); }
.cells span.half { background: rgba(255, 209, 102, .35); }
.cells span.full { background: var(--c); color: #0b0f2b; font-weight: 700; }
.feed { max-height: 300px; overflow: auto; font-size: 14px; }
.feed div { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.feed time { color: var(--muted); font-size: 12px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.tough div { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); display: flex; gap: 10px; font-size: 14px; }
.tough .pct { font-weight: 700; width: 48px; flex: none; text-align: right; }
.qcard { background: #141a52; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.qcard .row { flex-wrap: wrap; }
.qcard input.t, .qcard select.t, .qcard textarea.t { font-size: 14px; padding: 8px 10px; border-radius: 10px; }
.qcard .optrow { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.qcard .optrow input[type=radio] { accent-color: var(--good); width: 18px; height: 18px; }
.savebar { position: sticky; bottom: 0; background: rgba(11, 15, 43, .9); backdrop-filter: blur(8px); padding: 12px; border-radius: 16px; border: 1px solid var(--line); display: flex; gap: 10px; align-items: center; margin-top: 12px; z-index: 10; }

/* ---------- hall screen ---------- */
.screen { height: 100vh; display: grid; grid-template-rows: auto 1fr; padding: 2.2vh 2.5vw; gap: 2vh; overflow: hidden; }
.screen header { display: flex; align-items: center; justify-content: space-between; }
.screen .wordmark b { font-size: 3.4vh; }
.screen .clock { font-size: 7vh; }
.sgrid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5vw; min-height: 0; }
.board { display: flex; flex-direction: column; gap: 1.1vh; min-height: 0; }
.brow { display: grid; grid-template-columns: 6vh 1fr auto 11vh; gap: 1.5vw; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 2vh; padding: 1.2vh 1.4vw; font-size: 3vh; transition: transform .5s; }
.brow .rk { font-weight: 700; font-size: 3.6vh; text-align: center; color: var(--muted); }
.brow:nth-child(1) .rk { color: #ffd166; } .brow:nth-child(2) .rk { color: #dfe7ef; } .brow:nth-child(3) .rk { color: #e3a26f; }
.brow .nm { font-weight: 600; display: flex; align-items: center; gap: 1vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .pts { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pips { display: flex; gap: .4vw; }
.pips i { width: 1.6vh; height: 2.1vh; clip-path: polygon(50% 0, 100% 35%, 50% 100%, 0 35%); background: rgba(255, 255, 255, .14); }
.pips i.on { background: var(--c); }
.machine { position: relative; min-height: 0; border-radius: 3vh; background: radial-gradient(ellipse at 50% 40%, rgba(127, 220, 255, .16), transparent 65%); }
.machine canvas { width: 100%; height: 100%; display: block; }
.power { position: absolute; left: 6%; right: 6%; bottom: 3vh; }
.power .bar { height: 2.2vh; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.power .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--sky), var(--amber)); border-radius: 99px; transition: width 1s; }
.power .lbl { display: flex; justify-content: space-between; font-size: 2.4vh; margin-bottom: .8vh; color: var(--muted); }
.ticker { position: absolute; left: 6%; right: 6%; top: 2vh; font-size: 2.3vh; }
.ticker div { padding: .6vh 1vw; border-radius: 1vh; background: rgba(11, 15, 43, .6); margin-bottom: .6vh; animation: rise .5s; }
.joinpane { display: grid; grid-template-columns: auto 1fr; gap: 4vw; align-items: center; }
.joinpane .qr { background: #fff; padding: 2vh; border-radius: 3vh; width: 38vh; height: 38vh; }
.joinpane .qr svg { width: 100%; height: 100%; display: block; }
.joinpane .step { font-size: 3.4vh; margin: 1.2vh 0; }
.joinpane .bigcode { font-size: 12vh; }
.chips { display: flex; flex-wrap: wrap; gap: 1vh; margin-top: 2vh; }
.chips span { padding: 1vh 1.6vw; border-radius: 99px; font-size: 2.6vh; font-weight: 600; background: rgba(255, 255, 255, .08); border: 2px solid var(--c); animation: pop .5s; }
.finale { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 5vh 0 0; pointer-events: none; }
.finale h1 { font-size: 7vh; text-align: center; text-shadow: 0 0 30px rgba(127, 220, 255, .7); margin-bottom: 3vh; }
.podium { display: flex; align-items: flex-end; gap: 2vw; }
.podium .p { width: 22vw; text-align: center; opacity: 0; transform: translateY(40px); transition: all .8s cubic-bezier(.2, 1.3, .4, 1); }
.podium .p.show { opacity: 1; transform: none; }
.podium .p .nm { font-size: 3.6vh; font-weight: 700; margin-bottom: 1vh; }
.podium .p .blk { border-radius: 2vh 2vh 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); }
.podium .p1 .blk { height: 26vh; background: linear-gradient(180deg, #ffe08a, #ffd166); font-size: 9vh; }
.podium .p2 .blk { height: 19vh; background: linear-gradient(180deg, #f2f5f8, #c9d3dd); font-size: 7vh; }
.podium .p3 .blk { height: 14vh; background: linear-gradient(180deg, #f3c39b, #d9915c); font-size: 6vh; }
.podium .blk small { font-size: 2.6vh; font-weight: 600; }

/* ---------- posters ---------- */
.poster-tools { max-width: 900px; margin: 20px auto; padding: 0 18px; }
.poster {
  width: 210mm; height: 297mm; margin: 0 auto 20px; background: #fff; color: #10153f; position: relative; overflow: hidden; page-break-after: always; break-after: page;
  display: flex; flex-direction: column; align-items: center; padding: 14mm 14mm 10mm; font-family: var(--font);
}
.poster .band { position: absolute; left: 0; right: 0; top: 0; height: 12mm; background: var(--c); }
.poster .band2 { position: absolute; left: 0; right: 0; bottom: 0; height: 8mm; background: #10153f; }
.poster .no { margin-top: 6mm; font-size: 14pt; letter-spacing: .3em; font-weight: 600; text-transform: uppercase; color: #5a6196; }
.poster .era { font-size: 56pt; font-weight: 700; line-height: 1; color: var(--c); margin-top: 2mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.poster .ttl { font-size: 22pt; font-weight: 600; margin: 3mm 0 7mm; text-align: center; }
.poster .qr { width: 140mm; height: 140mm; padding: 6mm; border: 3mm solid #10153f; border-radius: 6mm; background: #fff; }
.poster .qr svg { width: 100%; height: 100%; display: block; }
.poster .how { margin-top: 7mm; font-size: 15pt; text-align: center; line-height: 1.4; }
.poster .keyc { margin-top: 4mm; font-size: 13pt; color: #5a6196; }
.poster .keyc b { font-family: ui-monospace, monospace; font-size: 18pt; letter-spacing: .2em; color: #10153f; }
.poster .foot { position: absolute; bottom: 12mm; font-size: 10pt; letter-spacing: .12em; text-transform: uppercase; color: #5a6196; }
.poster * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
  body { background: #fff !important; }
  .poster-tools, .powered { display: none !important; }
  .poster { margin: 0; box-shadow: none; }
  @page { size: A4; margin: 0; }
}
@media screen { .poster { box-shadow: 0 10px 40px rgba(0, 0, 0, .5); } }
