/* Zovy Sinuca — a mesa é desenhada no canvas (#cv) atrás de tudo; menu, placar, controles e salas ficam por cima.
   Celular em pé: mesa em pé, controles embaixo. Deitado e computador: mesa deitada, força à esquerda, efeito e ajuste à direita.
   O game.js reserva o espaço dos controles (layout()): em pé 76 px em cima e 104 embaixo; deitado 74/14 com 100 à esquerda e 110 à direita
   (tela baixa: 54, 84 e 90). Base da sala ao vivo igual à dos outros jogos ao vivo. */
:root { --ink: #1E1338; --violet: #7C4DFF; --lime: #C6F432; --pink: #FF4FA3; --cyan: #2EE6FF; --gold: #FFB800; --orange: #FF8A3D; --red: #FF3B5C; --soft: #cdbfff;
  --disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #140b2c; }
body { font: 600 16px/1.35 var(--ui); color: #fff; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2b1a5c, #140b2c 70%); }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.screen.on { display: flex; animation: screenIn .32s cubic-bezier(.2, .9, .3, 1.2); }
.screen.panel { background: radial-gradient(circle at 50% 110%, rgb(124 77 255 / .35), transparent 60%), linear-gradient(165deg, #3a2290 0%, #241257 55%, #150b33 100%); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.icon-btn.off { background: #d9d1f2; color: #6b5f8f; }
.top-btns { display: flex; gap: 8px; margin-left: auto; }

/* ---------- menu (por cima de uma partida de robôs) ---------- */
#menu { overflow-y: auto; background: linear-gradient(180deg, rgb(20 11 44 / .72), rgb(20 11 44 / .35) 45%, rgb(20 11 44 / .85)); }
.menu-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 16px; width: 100%; max-width: 1000px; margin: 0 auto; padding: 10px 0; }
.hero { display: grid; justify-items: center; gap: 10px; text-align: center; }
.eight { position: relative; display: grid; place-items: center; width: 104px; height: 104px; background: radial-gradient(circle at 34% 30%, #6a5a7d 0, #221a2c 32%, #0d0912 72%); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 8px 0 var(--ink), inset -8px -10px 18px rgb(0 0 0 / .5); animation: rollIn .9s cubic-bezier(.2, 1.4, .4, 1) backwards, bob 3.4s 1s ease-in-out infinite; }
.eight span { display: grid; place-items: center; width: 50px; height: 50px; color: var(--ink); background: #FBF8F2; border-radius: 50%; font: 800 34px/1 var(--disp); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .12); }
.eight::after { content: ""; position: absolute; top: 14px; left: 22px; width: 26px; height: 14px; background: rgb(255 255 255 / .5); border-radius: 50%; transform: rotate(-24deg); filter: blur(1px); }
@keyframes rollIn { from { transform: translateX(-120px) rotate(-280deg); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(6deg); } }
.title { display: inline-grid; justify-items: center; gap: 4px; margin: 0; font: 800 clamp(42px, 12vw, 80px)/.92 var(--disp); white-space: nowrap; letter-spacing: -.02em; }
.title span { position: relative; padding: 6px 18px 12px; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); animation: signIn .7s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.title .t1 { color: #fff; background: var(--violet); font-size: .5em; transform: rotate(-4deg); }
.title .t2 { color: var(--ink); background: var(--lime); transform: rotate(-2deg); animation-delay: .15s; }
@keyframes signIn { from { opacity: 0; transform: translateY(-40px) rotate(-10deg) scale(.5); } }
.tag { max-width: 460px; margin: 0; font-size: 15px; text-shadow: 0 2px 0 rgb(30 19 56 / .6); }
.tag b { color: var(--lime); }
.modes { display: grid; gap: 12px; }
.mode { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); transition: transform .12s, box-shadow .12s; animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.mode:nth-child(2) { animation-delay: .07s; } .mode:nth-child(3) { animation-delay: .14s; }
.mode:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 9px 0 var(--ink); }
.mode:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.m-ic { display: grid; place-items: center; width: 50px; height: 50px; border: 3px solid var(--ink); border-radius: 16px; }
.m-ic .zi { width: 26px; height: 26px; }
.m-bots .m-ic { background: var(--lime); } .m-local .m-ic { background: var(--gold); } .m-galera .m-ic { background: var(--pink); color: #fff; }
.m-txt { display: grid; min-width: 0; }
.m-txt b { font: 800 22px/1.1 var(--disp); }
.m-txt small { color: #5d5182; font-size: 13px; font-weight: 700; }
.m-rec { display: grid; justify-items: end; font: 800 12px/1.2 var(--ui); color: #6b5f8f; text-align: right; }
.m-rec b { font: 800 22px/1 var(--disp); color: var(--ink); font-variant-numeric: tabular-nums; }
.m-rec .new { padding: 2px 8px; color: #fff; background: var(--pink); border: 2px solid var(--ink); border-radius: 99px; font-size: 11px; animation: beat 1.2s infinite; }
.menu-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-row .btn { padding: 9px 6px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes beat { 50% { transform: scale(1.08); } }
@media (min-width: 860px) {
  #menu { background: linear-gradient(90deg, rgb(20 11 44 / .85), rgb(20 11 44 / .35) 70%); }
  .menu-body { grid-template-columns: 1.1fr 1fr; align-items: center; column-gap: 40px; }
  .hero { grid-row: 1 / 3; }
}
.lvl-pick { display: grid; gap: 8px; }
.btn.lvl { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; }
.btn.lvl img { width: 46px; height: 46px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.btn.lvl b { font: 800 19px/1.1 var(--disp); } .btn.lvl small { display: block; color: #6b5f8f; font-weight: 700; } .btn.lvl em { font-style: normal; color: #6b5f8f; font-size: 12px; }
.btn.lvl:nth-child(1) { background: #E6FFB8; } .btn.lvl:nth-child(2) { background: #FFF0C2; } .btn.lvl:nth-child(3) { background: #FFD3E8; }
.felts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.felt { display: grid; gap: 6px; padding: 8px; color: var(--ink); background: #F4F0FF; border: 3px solid var(--ink); border-radius: 16px; font-weight: 800; }
.felt span { height: 54px; background: radial-gradient(circle, var(--a), var(--b)); border: 5px solid #6B3517; border-radius: 10px; }
.felt.on { background: var(--lime); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.two-names { display: grid; gap: 10px; } .two-names label { display: grid; gap: 4px; font: 800 13px/1 var(--ui); color: #6b5f8f; text-transform: uppercase; }

/* ---------- partida ---------- */
#play { pointer-events: none; padding: 0; animation: none; }
#play > * { pointer-events: auto; }
.hud { position: absolute; top: max(8px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; max-width: 980px; margin: 0 auto; }
.pcard { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 4px 10px 4px 4px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); transition: transform .2s, background .2s; }
.pcard.right { grid-template-columns: minmax(0, 1fr) 42px; padding: 4px 4px 4px 10px; text-align: right; }
.pcard.right img { order: 2; } .pcard.right .pc-balls { justify-content: flex-end; }
.pcard.on { background: var(--lime); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.pcard img { width: 42px; height: 42px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 50%; }
.pc-t { display: grid; gap: 3px; min-width: 0; }
.pc-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 15px/1.1 var(--ui); }
.pc-t b small { color: #6b5f8f; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.pc-balls { display: flex; flex-wrap: wrap; gap: 2px; min-height: 16px; }
.pc-balls em { font-style: normal; font-size: 11px; color: #6b5f8f; font-weight: 800; }
.bd { display: grid; place-items: center; width: 16px; height: 16px; color: #111; background: radial-gradient(circle at 50% 50%, #fff 0 32%, var(--b) 34%); border: 1.5px solid var(--ink); border-radius: 50%; font: 800 7px/1 var(--ui); font-style: normal; }
.bd.st { background: radial-gradient(circle at 50% 50%, #fff 0 32%, transparent 34%), linear-gradient(180deg, #fff 0 24%, var(--b) 24% 76%, #fff 76%); }
.bd.gone { opacity: .22; filter: grayscale(1); }
.h-mid { display: grid; justify-items: center; gap: 2px; }
.h-turn { padding: 3px 10px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1.2 var(--ui); letter-spacing: .06em; white-space: nowrap; }
.h-turn.mine { background: var(--gold); animation: beat 1.4s infinite; }
.h-clock { min-width: 38px; padding: 1px 8px; text-align: center; color: #fff; background: var(--violet); border: 2px solid var(--ink); border-radius: 99px; font: 800 14px/1.3 var(--disp); font-variant-numeric: tabular-nums; }
.h-clock.danger { background: var(--red); animation: beat .5s infinite; }
.msg { position: absolute; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 62px); z-index: 30; width: min(92vw, 460px); padding: 9px 14px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); text-align: center; font-weight: 700; transform: translateX(-50%); pointer-events: none; }
.msg.in { animation: msgIn .4s cubic-bezier(.2, 1.6, .4, 1); }
.msg .bad { color: var(--red); }
@keyframes msgIn { from { transform: translate(-50%, -14px) scale(.9); opacity: 0; } }

/* controles: em pé, embaixo; deitado, nas laterais */
.ctl { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); grid-template-areas: "spin fine"; column-gap: 14px; align-items: center; height: 86px; padding: 6px max(14px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); transition: opacity .2s; }
#play > .ctl.off { opacity: .35; pointer-events: none; } #play > .ctl.off * { pointer-events: none; }
.ctl-side { display: contents; }
.fine small, .spinbtn small { color: var(--soft); font: 800 10px/1 var(--ui); letter-spacing: .12em; text-align: center; }
.fine:focus-visible .fine-ribs { outline: 3px solid var(--cyan); outline-offset: 2px; }
.spinbtn { grid-area: spin; display: grid; justify-items: center; gap: 4px; padding: 0; background: none; border: 0; }
.sb-ball { position: relative; display: block; width: 62px; height: 62px; background: radial-gradient(circle at 36% 32%, #fff 0, #f2eee6 40%, #c9c2b6 100%); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.sb-ball i { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--red); border: 2px solid var(--ink); border-radius: 50%; }
.fine { grid-area: fine; display: grid; gap: 2px; touch-action: none; cursor: ew-resize; outline: none; }
.fine-ribs { height: 22px; background: repeating-linear-gradient(90deg, #fff 0 3px, #b8acd8 3px 6px, #3a2a72 6px 12px); background-position: var(--o, 0) 0; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink), inset 0 0 0 2px rgb(0 0 0 / .2); }
@media (orientation: landscape) {
  #play > .ctl { display: block; height: auto; inset: 0; padding: 0; pointer-events: none; }
  .ctl > *, .ctl-side > * { pointer-events: auto; }
  .spinbtn, .fine { grid-area: auto; }
  .ctl-side { position: absolute; right: max(14px, env(safe-area-inset-right)); top: 82px; bottom: 18px; display: grid; grid-template-rows: auto minmax(0, 1fr); justify-items: center; gap: 12px; width: 84px; }
  .fine { cursor: ns-resize; grid-template-rows: minmax(0, 1fr) auto; height: 100%; max-height: 360px; }
  .fine-ribs { width: 34px; height: auto; justify-self: center; background: repeating-linear-gradient(180deg, #fff 0 3px, #b8acd8 3px 6px, #3a2a72 6px 12px); background-position: 0 var(--o, 0); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hud { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .pcard { grid-template-columns: 32px minmax(0, 1fr); padding: 2px 8px 2px 2px; border-radius: 14px; } .pcard.right { grid-template-columns: minmax(0, 1fr) 32px; }
  .pcard img { width: 32px; height: 32px; } .pc-t b { font-size: 13px; } .bd { width: 13px; height: 13px; font-size: 6px; }
  .msg { top: 52px; font-size: 14px; padding: 6px 10px; }
}
@media (orientation: portrait) { .msg { top: auto; bottom: calc(var(--ctlh, calc(86px + env(safe-area-inset-bottom))) + 74px); } }
@media (orientation: portrait) and (max-width: 420px) { .pcard img { width: 34px; height: 34px; } .pcard { grid-template-columns: 34px minmax(0, 1fr); } .pcard.right { grid-template-columns: minmax(0, 1fr) 34px; } .pc-t b { font-size: 13px; } .bd { width: 12px; height: 12px; font-size: 0; border-width: 1px; } .pc-balls { gap: 1px; } .hud { gap: 5px; } }
.spinpad { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; background: rgb(20 11 44 / .6); backdrop-filter: blur(2px); }
.sp-card { display: grid; justify-items: center; gap: 12px; width: min(90vw, 340px); padding: 16px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.sp-card > b { font: 800 19px/1.1 var(--disp); text-align: center; }
.sp-ball { position: relative; width: 190px; height: 190px; background: radial-gradient(circle at 36% 30%, #fff 0, #f2eee6 40%, #c9c2b6 100%); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 6px 0 var(--ink); touch-action: none; cursor: crosshair; }
.sp-ball::before, .sp-ball::after { content: ""; position: absolute; background: rgb(30 19 56 / .15); }
.sp-ball::before { left: 50%; top: 8%; bottom: 8%; width: 2px; } .sp-ball::after { top: 50%; left: 8%; right: 8%; height: 2px; }
.sp-ball i { position: absolute; z-index: 1; width: 26px; height: 26px; margin: -13px 0 0 -13px; background: var(--red); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); }
.sp-help { display: grid; gap: 2px; font-size: 13px; color: #5d5182; text-align: center; }
.sp-row { display: flex; gap: 8px; }
.pause { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; background: rgb(30 19 56 / .72); backdrop-filter: blur(3px); }
.pause .card { display: grid; gap: 12px; width: min(92vw, 360px); text-align: center; }
.pause h2 { margin: 0; font: 800 28px/1 var(--disp); } .pause h2 .zi { width: 24px; height: 24px; }
.pause .row-chips { display: flex; justify-content: center; gap: 8px; }
.reacts-mini { position: absolute; top: 140px; right: max(12px, env(safe-area-inset-right)); display: flex; flex-direction: column; gap: 4px; }
.reacts-mini button { width: 38px; height: 38px; padding: 4px; background: rgb(30 19 56 / .55); border: 2px solid rgb(255 255 255 / .3); border-radius: 12px; }
@media (orientation: landscape) { .reacts-mini { right: auto; left: 50%; top: auto; bottom: 8px; flex-direction: row; transform: translateX(-50%); } }
@media (orientation: portrait) { .reacts-mini { top: auto; bottom: 90px; right: 8px; flex-direction: row; } .reacts-mini button { width: 34px; height: 34px; } }
/* lugar das figurinhas (e do chat das salas, no Vyxel) que o layout() reserva na sala ao vivo: body[data-rx] = bot (faixa embaixo) ou side (colunas dos lados) */
body[data-rx="bot"] .reacts-mini { top: auto; bottom: 8px; }
body[data-rx="bot"] #zc { --zc-x: calc(50% - 168px); --zc-y: 3px; }
body[data-rx="side"] .reacts-mini { left: auto; top: auto; bottom: 12px; right: calc(max(14px, env(safe-area-inset-right)) + 92px); flex-direction: column; transform: none; }
body[data-rx="side"] #zc { --zc-x: 14px; --zc-y: 12px; }
@media (orientation: landscape) and (max-height: 520px) {
  body[data-rx="side"] .reacts-mini { right: calc(max(14px, env(safe-area-inset-right)) + 76px); bottom: 8px; }
  body[data-rx="side"] .reacts-mini button { width: 36px; height: 36px; }
  body[data-rx="side"] #zc { --zc-x: 10px; --zc-y: 8px; }
}
@media (orientation: portrait) {
  body[data-rx="bot"] .reacts-mini { bottom: calc(var(--ctlh, calc(86px + env(safe-area-inset-bottom))) + 4px); }
  body[data-rx="bot"] #zc { --zc-x: 12px; --zc-y: calc(var(--ctlh, 88px) - 4px); }
  body[data-rx="bot"] .msg { bottom: calc(var(--ctlh, 92px) + 112px); }
}

/* ---------- fim ---------- */
#over { overflow-y: auto; background: rgb(20 11 44 / .66); }
.over-wrap { display: grid; width: 100%; max-width: 520px; margin: auto; }
.over-card { display: grid; gap: 10px; padding: 18px; text-align: center; border-width: 4px; border-radius: 26px; box-shadow: 0 9px 0 var(--ink); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.over-card .kicker { color: var(--violet); font: 800 12px/1 var(--ui); letter-spacing: .12em; }
.over-card h2 { margin: 0; font: 800 30px/1.05 var(--disp); }
.over-card .muted { margin: 0; color: #6b5f8f; font-weight: 700; }
.ov-8 { justify-self: center; display: grid; place-items: center; width: 74px; height: 74px; background: radial-gradient(circle at 34% 30%, #6a5a7d 0, #221a2c 32%, #0d0912 72%); border: 3px solid var(--ink); border-radius: 50%; animation: rollIn .8s cubic-bezier(.2, 1.4, .4, 1); }
.ov-8 span { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink); background: #FBF8F2; border-radius: 50%; font: 800 24px/1 var(--disp); }
.ov-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ov-stats > div { display: grid; justify-items: center; gap: 2px; padding: 8px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; }
.ov-stats > div.w { background: #F2FCCF; }
.ov-stats img { width: 44px; height: 44px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.ov-stats small { color: #6b5f8f; font-size: 12px; font-weight: 700; }
.over-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.over-actions .btn.wide { grid-column: 1 / -1; font-size: 19px; padding: 13px; }
.reward .zi { width: 18px; height: 18px; vertical-align: -.25em; }
.vs-box { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.vs-box .vs { font: 800 26px/1 var(--disp); color: var(--violet); }
.vs-p { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; text-align: center; min-width: 0; }
.vs-p.off { opacity: .45; } .vs-p.me { background: #F2FCCF; } .vs-p.empty { border-style: dashed; color: #6b5f8f; }
.vs-p img { width: 58px; height: 58px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.vs-p b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-p .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.vs-p .kick { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.vs-p .ghost { display: grid; place-items: center; width: 58px; height: 58px; border: 2px dashed #b9add9; border-radius: 50%; }
@media (max-height: 520px) {
  .menu-body { grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 2px 0; gap: 8px; }
  .hero { grid-row: 1 / 3; gap: 6px; } .title { font-size: 40px; } .title span { padding: 3px 12px 7px; border-width: 3px; box-shadow: 0 5px 0 var(--ink); }
  .tag { display: none; } .eight { width: 64px; height: 64px; } .eight span { width: 32px; height: 32px; font-size: 22px; } .eight::after { top: 8px; left: 13px; width: 16px; height: 9px; }
  .mode { padding: 7px 10px; } .m-ic { width: 38px; height: 38px; } .m-txt b { font-size: 17px; } .m-txt small { display: none; } .modes { gap: 8px; }
  .over-card { padding: 12px; gap: 6px; } .over-card h2 { font-size: 22px; } .ov-8 { display: none; }
  .ov-stats > div { padding: 4px 8px; } .ov-stats img { width: 32px; height: 32px; } .over-card .reward p { margin: 0; }
  .over-actions { grid-template-columns: 2fr 1fr 1fr; gap: 8px; } .over-actions .btn.wide { grid-column: auto; font-size: 17px; padding: 10px; } .over-actions .btn { padding: 9px 10px; }
  .over-wrap { max-width: 720px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ================= base comum (botões, janelas, sala ao vivo) ================= */
/* ---------- peças básicas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); font: 800 16px/1.1 var(--ui); transition: transform .12s, box-shadow .12s; text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.lime { background: var(--lime); } .btn.pink { background: var(--pink); color: #fff; } .btn.violet { background: var(--violet); color: #fff; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.btn .zi { width: 1.1em; height: 1.1em; }
.btn:focus-visible, .icon-btn:focus-visible, .mode:focus-visible, .ans:focus-visible, .tab:focus-visible, .stk:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
.icon-btn .zi { width: 22px; height: 22px; }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.pill { display: inline-block; padding: 1px 9px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.4 var(--ui); }
.top { display: flex; align-items: center; gap: 10px; flex: none; }
.logo { height: 32px; width: auto; }
.chip-orig { padding: 3px 12px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1.3 var(--ui); letter-spacing: .1em; }


.bar { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 1100px; margin: 0 auto 10px; }
.bar-title { display: grid; } .bar-title small { color: var(--soft); font: 800 11px/1 var(--ui); letter-spacing: .12em; } .bar-title b { font: 800 22px/1.1 var(--disp); }

/* ---------- efeitos e janelas ---------- */
.confetti { position: absolute; inset: 0; z-index: 55; width: 100%; height: 100%; pointer-events: none; }
.toasts { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 58px); left: 50%; z-index: 85; display: grid; gap: 6px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); font-weight: 800; animation: toastIn .35s cubic-bezier(.2, 1.6, .4, 1); }
.toast .t-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; background: var(--c, var(--lime)); border: 2px solid var(--ink); border-radius: 50%; }
.toast .t-ic .zi { width: 16px; height: 16px; } .toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }
.modal { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgb(30 19 56 / .75); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 520px); max-height: 88vh; overflow-y: auto; padding: 20px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; box-shadow: 0 3px 0 var(--ink); }
.modal-card h2 { margin: 0 40px 12px 0; font: 800 26px/1.1 var(--disp); } .modal-card h2 .zi { color: var(--gold); }
.modal-card ol { padding-left: 20px; } .modal-card li { margin-bottom: 8px; } .modal-card .fact small { color: #6b5f8f; }
.top-list { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.top-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font-weight: 800; }
.top-list img { width: 30px; height: 30px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; } .top-list b { margin-left: auto; }
.plus { position: absolute; z-index: 60; width: 80px; text-align: center; color: var(--lime); font: 800 34px/1 var(--disp); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; pointer-events: none; animation: plusUp 1.1s ease-out forwards; }
@keyframes plusUp { to { transform: translateY(-70px); opacity: 0; } }

/* ================= Com a galera (sala ao vivo): base da sala de espera, reações e pódio, igual ao Stop/Impostor/Mentira ================= */
.mini-btn { padding: 4px 10px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.3 var(--ui); }
.mini-btn[aria-pressed="true"] { background: var(--pink); color: #fff; }
.card { background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 14px; }
.card h2, .card h3 { margin: 0; font: 800 20px/1.1 var(--disp); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head small { color: #6b5f8f; font-size: 12px; }
.pill { display: inline-block; padding: 2px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.4 var(--ui); white-space: nowrap; vertical-align: middle; }
.pill.violet { background: var(--violet); color: #fff; } .pill.pink { background: var(--pink); color: #fff; } .pill.gold { background: var(--gold); }
input[type=text], input:not([type]) { width: 100%; min-width: 0; padding: 11px 14px; color: var(--ink); background: #F4F0FF; border: 3px solid var(--ink); border-radius: 14px; font: 700 16px/1.2 var(--ui); outline: none; }
input:focus { background: #fff; box-shadow: 0 0 0 3px var(--cyan); }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; } .dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-5px); opacity: .5; } }
.wait { padding: 12px; text-align: center; color: #e6dcff; font-weight: 700; }
.me-card { display: flex; align-items: center; gap: 14px; }
.av-big { position: relative; flex: none; width: 76px; height: 76px; padding: 0; background: #F4F0FF; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.av-big img { width: 100%; height: 100%; border-radius: 50%; }
.av-big .dice { position: absolute; right: -6px; bottom: -4px; display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; font-size: 16px; }
.av-big:active { transform: rotate(-12deg) scale(.95); }
.av-big.roll img { animation: roll .45s; } @keyframes roll { 40% { transform: scale(.6) rotate(-40deg); } }
.av-big[disabled] .dice { display: none; }
.me-fields { flex: 1; min-width: 0; display: grid; gap: 4px; }
.me-fields label, .join label { font: 800 13px/1 var(--ui); color: #6b5f8f; letter-spacing: .04em; text-transform: uppercase; }
.me-fields small { color: #6b5f8f; font-size: 12px; }
.me-fields .lvl { display: flex; align-items: center; gap: 8px; }
.menu-actions { display: grid; gap: 12px; }
.join-row { display: flex; gap: 8px; margin-top: 6px; }
#inpCode { text-transform: uppercase; letter-spacing: .35em; font: 800 22px/1 var(--disp); text-align: center; }
/* ---------- sala de espera ---------- */
#lobby { overflow-y: auto; }
.lobby-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; max-width: 1100px; margin: 0 auto; }
.lobby-grid .col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 860px) { .lobby-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.code-card { text-align: center; background: var(--violet); color: #fff; }
.code-head { display: flex; align-items: center; justify-content: space-between; }
.code-head small { font: 800 12px/1 var(--ui); letter-spacing: .12em; opacity: .85; }
.code-tiles { display: flex; justify-content: center; gap: 10px; margin: 12px 0 14px; }
.code-tiles span { display: grid; place-items: center; width: clamp(54px, 16vw, 74px); height: clamp(62px, 18vw, 84px); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); font: 800 clamp(36px, 10vw, 52px)/1 var(--disp); animation: tileIn .5s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.code-tiles span:nth-child(2) { animation-delay: .07s; } .code-tiles span:nth-child(3) { animation-delay: .14s; } .code-tiles span:nth-child(4) { animation-delay: .21s; }
@keyframes tileIn { from { transform: scale(.2) rotate(-30deg); opacity: 0; } }
.code-tiles.hide span { color: transparent; text-shadow: 0 0 14px rgb(30 19 56 / .7); }
.code-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.invite { margin: 10px 0 0; font-size: 13px; opacity: .85; word-break: break-all; }
.invite.hide { filter: blur(6px); user-select: none; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.players li { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; text-align: center; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.players li.off { opacity: .45; }
.players li.me { background: #F2FCCF; }
.players img { width: 54px; height: 54px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.players b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.players .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.players .kick { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 50%; font-size: 12px; }
.players .kick:hover { color: #fff; background: var(--red); }
.players .tagme { font-size: 11px; color: #6b5f8f; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.settings { display: grid; gap: 12px; }
.set-block { display: grid; gap: 6px; min-width: 0; }
.set-block > small { color: #6b5f8f; font: 800 12px/1 var(--ui); letter-spacing: .08em; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.packs button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font: 800 12px/1.1 var(--ui); }
.packs .pk-ic { display: grid; place-items: center; width: 30px; height: 30px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; font-size: 17px; }
.packs button.on .pk-ic { background: var(--lime); }
.packs button.on { background: var(--gold); box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: #6b5f8f; background: #fff; border: 2px dashed #b9add9; border-radius: 99px; font: 700 14px/1.2 var(--ui); }
.chip.on { color: var(--ink); background: var(--lime); border: 2px solid var(--ink); }
.chip.custom.on { background: var(--cyan); }
.chip .x { font-size: 12px; opacity: .7; }
.cat-add { display: flex; gap: 6px; margin-top: 4px; }
.cat-add input { padding: 8px 12px; }
.seg { display: flex; padding: 3px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; }
.seg button { flex: 1; padding: 7px 4px; color: var(--ink); background: none; border: 0; border-radius: 10px; font: 800 14px/1 var(--ui); }
.seg button.on { background: var(--violet); color: #fff; }
.switch { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { grid-row: 1 / 3; position: relative; width: 50px; height: 28px; background: #d9d1f2; border: 2px solid var(--ink); border-radius: 99px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--pink); } .switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.switch b { font-size: 14px; } .switch small { color: #6b5f8f; font-size: 12px; }
.rules-view { display: grid; gap: 8px; }
.rules-view .cats .chip { pointer-events: none; }
.rv-row { display: flex; flex-wrap: wrap; gap: 6px; }
.start { width: 100%; }
.start .ico { animation: pulse 1.2s infinite; } @keyframes pulse { 50% { transform: scale(1.12); } }

.reacts { display: flex; gap: 4px; }
.reacts button { width: 44px; height: 44px; padding: 4px; background: rgb(255 255 255 / .1); border: 2px solid rgb(255 255 255 / .2); border-radius: 14px; transition: transform .12s, background .15s; }
.reacts button:hover { background: rgb(255 255 255 / .2); transform: translateY(-2px) rotate(-6deg); }
.reacts button.boing, .sus.boing { animation: boing .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes boing { 30% { transform: scale(1.12) rotate(3deg); } }
.reacts button:active { transform: scale(.85); }
/* ---------- final ---------- */
#final { overflow-y: auto; }
.final-wrap { width: 100%; max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.final-title { margin: 6px 0 0; text-align: center; font: 800 clamp(32px, 8vw, 48px)/1 var(--disp); text-shadow: 0 4px 0 rgb(0 0 0 / .3); }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 18px); min-height: 260px; padding-top: 10px; }
.pod { display: grid; justify-items: center; gap: 6px; width: clamp(96px, 26vw, 170px); }
.pod img { width: clamp(64px, 16vw, 96px); height: clamp(64px, 16vw, 96px); background: #fff; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 5px 0 var(--ink); animation: popUp .6s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.pod b { max-width: 100%; overflow: hidden; font: 800 16px/1.1 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.pod .step { display: grid; place-items: start center; width: 100%; padding-top: 10px; color: var(--ink); border: 3px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; font: 800 34px/1 var(--disp); transform-origin: bottom; animation: rise .8s cubic-bezier(.2, 1.2, .4, 1) backwards; }
.pod .step small { display: block; font: 800 14px/1.4 var(--ui); }
.pod.p1 .step { height: 150px; background: var(--gold); animation-delay: .9s; } .pod.p1 img { animation-delay: 1.5s; width: clamp(76px, 19vw, 116px); height: clamp(76px, 19vw, 116px); }
.pod.p2 .step { height: 110px; background: #e3e8f5; animation-delay: .5s; } .pod.p2 img { animation-delay: 1.1s; }
.pod.p3 .step { height: 80px; background: #f3c49b; animation-delay: .1s; } .pod.p3 img { animation-delay: .7s; }
.pod.p1 .crown { animation: popUp .6s 1.8s cubic-bezier(.2, 1.6, .4, 1) backwards, wobble 3s 2.4s infinite; --rot: -6deg; }
@keyframes rise { from { transform: scaleY(0); } }
@keyframes popUp { from { transform: translateY(40px) scale(.3); opacity: 0; } }
.final-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 760px) { .final-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.final-cols h3 { margin-bottom: 10px; }
.flist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.flist li { display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 10px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; font-weight: 800; }
.flist li.me { background: #F2FCCF; }
.flist img { width: 34px; height: 34px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.flist span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reward { display: grid; gap: 8px; min-height: 40px; }
.reward .xp-big { font: 800 40px/1 var(--disp); color: var(--violet); } .reward .xp-big small { font-size: 18px; }
.reward p { margin: 0; } .reward .soft { color: #6b5f8f; } .reward .gold { color: #b47a00; font-weight: 800; }
.reward .row-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-mini { display: inline-block; padding: 6px 12px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.2 var(--ui); text-decoration: none; }
.btn-mini.ghost { background: #fff; }
.final-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- efeitos ---------- */
.fx { position: absolute; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.float { position: absolute; bottom: 70px; display: grid; justify-items: center; animation: floatR 2.6s ease-out forwards; }
.float .fr { display: block; width: 58px; height: 58px; filter: drop-shadow(0 4px 0 rgb(0 0 0 / .3)); }
.float img { width: 26px; height: 26px; margin-top: -6px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
@keyframes floatR { 0% { transform: translateY(20px) scale(.3); opacity: 0; } 12% { transform: translateY(0) scale(1.15); opacity: 1; } 100% { transform: translate(var(--dx, 0), -60vh) scale(.9); opacity: 0; } }
.confetti { position: absolute; inset: 0; z-index: 55; width: 100%; height: 100%; pointer-events: none; }
@keyframes wobble { 0%, 100% { transform: rotate(var(--rot)); } 50% { transform: rotate(calc(var(--rot) * -1)) translateY(-4px); } }

/* ---------- Com a galera: peças próprias ---------- */
.btn.big { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: left; padding: 12px 16px; }
.btn.big .ico { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; background: rgb(255 255 255 / .6); border: 3px solid var(--ink); border-radius: 50%; }
.btn.big .ico .zi { width: 20px; height: 20px; }
.btn.big .t { font: 800 21px/1.1 var(--disp); }
.btn.big small { font: 700 13px/1.2 var(--ui); opacity: .8; }
.btn:disabled { opacity: .45; pointer-events: none; }
.m-galera .m-ic { background: var(--pink); color: #fff; }
.me-fields { flex: 1; min-width: 0; display: grid; gap: 4px; }
.me-fields label, .join label { font: 800 13px/1 var(--ui); color: #6b5f8f; letter-spacing: .04em; text-transform: uppercase; }
.me-fields small { color: #6b5f8f; font-size: 12px; }
#gjoin { overflow-y: auto; }
.gj-body { flex: 1; display: grid; align-content: center; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 0; }
.gj-hero { text-align: center; }
.gj-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; color: #fff; background: var(--pink); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); font: 800 13px/1.2 var(--ui); letter-spacing: .08em; animation: beat 1.4s infinite; }
.gj-hero h2 { margin: 12px 0 6px; font: 800 clamp(22px, 5.5vw, 30px)/1.15 var(--disp); }
.gj-hero h2 em { font-style: normal; color: var(--lime); }
.gj-hero p { margin: 0; color: #e6dcff; }
#globby, #gfinal { overflow-y: auto; }
.wait.dark { color: #6b5f8f; }
.round-tag { padding: 4px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.2 var(--ui); letter-spacing: .06em; white-space: nowrap; }
.gclock { position: relative; width: 50px; height: 50px; flex: none; background: #fff; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.gclock svg { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); transform: rotate(-90deg); }
.gclock .tc-bg { fill: none; stroke: #e5def7; stroke-width: 6; } .gclock .tc-fg { fill: none; stroke: var(--violet); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 125.7; transition: stroke-dashoffset .15s linear; }
.gclock span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font: 800 18px/1 var(--disp); }
.gclock.danger { background: var(--red); animation: beat .5s infinite; } .gclock.danger span { color: #fff; } .gclock.danger .tc-fg { stroke: #fff; }
#glive { align-items: center; }
.glive-main { flex: 1; min-height: 0; width: 100%; max-width: 1200px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 12px; }
.gcount { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 4px; pointer-events: none; }
.gcount b { display: grid; place-items: center; width: 110px; height: 110px; color: var(--ink); background: var(--gold); border: 5px solid var(--ink); border-radius: 50%; box-shadow: 0 8px 0 var(--ink); font: 800 64px/1 var(--disp); animation: pop .35s cubic-bezier(.2, 1.8, .4, 1); }
.gcount small { padding: 3px 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; font: 800 14px/1.2 var(--ui); }
.gboard { align-self: center; padding: 10px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); max-height: 100%; overflow-y: auto; }
.gboard h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 800 17px/1 var(--disp); }
.gboard h3 .zi { color: var(--gold); }
.gboard ol { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.gboard li { display: grid; grid-template-columns: 26px 28px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 6px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 12px; font: 800 13px/1.2 var(--ui); }
.gboard li.me { background: #F2FCCF; } .gboard li.out { opacity: .45; text-decoration: line-through; }
.boot { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgb(30 19 56 / .85); color: var(--soft); font-weight: 700; }
.qr { display: grid; place-items: center; padding: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; }
.qr svg { width: min(70vw, 280px); height: auto; }
.final-title .zi { color: var(--gold); width: .9em; height: .9em; vertical-align: -.08em; }
.rule-help { margin: 2px 0 0; color: #6b5f8f; font: 700 12px/1.35 var(--ui); }
.seg button .zi { width: 15px; height: 15px; vertical-align: -.2em; }