/* Zovy Torre — visual "sticker" do Zovy por cima da torre desenhada no canvas.
   A base das telas de sala ao vivo (sala de espera, pódio, reações) vem do Mais ou Menos; o que é só da Torre fica no fim.
   Funciona no celular em pé, deitado (tela baixa) e no computador. */
:root { --ink: #1E1338; --violet: #7C4DFF; --lime: #C6F432; --pink: #FF4FA3; --cyan: #2EE6FF; --gold: #FFB800; --orange: #FF8A3D; --red: #FF3B5C; --soft: #cdbfff; --paper: #FFFBF0;
  --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: var(--ink); }
body { font: 600 16px/1.35 var(--ui); color: #fff; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.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); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.screen.dim { background: rgb(21 11 51 / .72); backdrop-filter: blur(2px); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes beat { 50% { transform: scale(1.08); } }

/* ---------- 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; }
.top .icon-btn { margin-left: auto; }


.reward { display: grid; gap: 6px; margin: 8px 0; }
.reward p { margin: 0; } .reward .soft { color: #6b5f8f; } .reward .gold { color: #b47a00; font-weight: 800; }
.reward .xp-big { font: 800 36px/1 var(--disp); color: var(--violet); } .reward .xp-big small { font-size: 18px; }
.reward .row-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.reward .zi { width: 18px; height: 18px; vertical-align: -.25em; }
.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; }
.over-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.over-actions .btn.wide { grid-column: 1 / -1; font-size: 20px; padding: 14px; }
.countdown { font: 800 20px/1 var(--disp); font-variant-numeric: tabular-nums; }


/* ---------- efeitos ---------- */
.confetti { position: absolute; inset: 0; z-index: 55; width: 100%; height: 100%; pointer-events: none; }
.toasts { position: absolute; top: max(10px, env(safe-area-inset-top)); 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 { text-align: center; margin: 0; } .modal-card .fact small { display: block; color: #6b5f8f; }
.top-list { display: grid; gap: 6px; margin: 0; 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; }



/* ================= 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; }
.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); }
@keyframes dropIn2 { from { transform: translateY(-30px) scale(.4); opacity: 0; } }
.fl-sub { color: #6b5f8f; font-size: 11px; font-weight: 700; }
.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; }
@media (max-width: 640px) {
  .gclock { width: 44px; height: 44px; } .gclock span { font-size: 16px; }
}
@media (max-height: 520px) {
  .gcount b { width: 80px; height: 80px; font-size: 46px; }
  .gj-body { gap: 8px; } .gj-hero h2 { font-size: 20px; margin: 6px 0 2px; } .gj-hero p { display: none; }
}


/* ================= Zovy Torre: peças próprias ================= */
.top { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 1100px; margin: 0 auto; }
.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; }
.top .coins-chip { margin-left: auto; }
.coins-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); font: 800 16px/1.1 var(--disp); white-space: nowrap; }
i.coin { display: inline-block; flex: none; width: 1.15em; height: 1.15em; vertical-align: -.2em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b0 0 18%, #FFD23F 19% 58%, #e09a00 60%); border: 2px solid var(--ink); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18); }
.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); }
.bar .coins-chip { margin-left: auto; }

/* menu por cima da torre de demonstração */
#menu { overflow-y: auto; background: linear-gradient(90deg, rgb(21 11 51 / .78), rgb(21 11 51 / .35) 55%, rgb(21 11 51 / 0)); }
.menu-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 16px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 10px 0; }
.hero { text-align: left; }
.title { display: inline-flex; align-items: flex-end; gap: 8px; margin: 0; font: 800 clamp(44px, 11vw, 92px)/.95 var(--disp); letter-spacing: -.02em; }
.title span { padding: 6px 16px 10px; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 var(--ink); animation: stackIn .7s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.title .t1 { color: var(--ink); background: var(--lime); transform: rotate(-3deg); }
.title .t2 { color: #fff; background: var(--pink); transform: rotate(2deg) translateY(-14px); animation-delay: .15s; }
@keyframes stackIn { from { opacity: 0; transform: translateY(-80px) rotate(12deg); } }
.tag { max-width: 520px; margin: 14px 0 0; color: #f0eaff; font-size: clamp(15px, 3.6vw, 18px); text-shadow: 0 2px 0 rgb(0 0 0 / .35); }
.tag b { color: var(--lime); }
.modes { display: grid; gap: 10px; max-width: 520px; }
.mode { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 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: .06s; } .mode:nth-child(3) { animation-delay: .12s; } .mode:nth-child(4) { animation-delay: .18s; }
.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); }
.mode:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.m-ic { display: grid; place-items: center; width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 16px; }
.m-ic .zi { width: 26px; height: 26px; }
.m-classic .m-ic { background: var(--lime); } .m-daily .m-ic { background: var(--gold); } .m-bot .m-ic { background: var(--cyan); } .m-galera .m-ic { background: var(--pink); color: #fff; }
.m-txt { display: grid; min-width: 0; }
.m-txt b { font: 800 21px/1.1 var(--disp); }
.m-txt small { color: #5d5182; font-size: 13px; font-weight: 700; }
.m-txt small b { font: inherit; color: var(--violet); }
.m-rec { display: grid; justify-items: end; font: 800 12px/1.2 var(--ui); color: #6b5f8f; text-align: right; }
.m-rec b { font: 800 24px/1 var(--disp); color: var(--ink); }
.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, 1fr); gap: 8px; max-width: 520px; }
.menu-row .btn { padding: 9px 6px; }
@media (min-width: 760px) and (min-height: 521px) {
  .menu-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px; align-items: center; }
  .hero { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .modes, .menu-row { grid-column: 1; }
  .menu-body { grid-template-rows: auto auto auto; }
  #menu { background: linear-gradient(90deg, rgb(21 11 51 / .82), rgb(21 11 51 / .5) 45%, rgb(21 11 51 / 0) 70%); }
  .hero { grid-row: 1; } .modes { grid-row: 2; } .menu-row { grid-row: 3; }
}

/* partida */
#play { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.hud { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 1100px; margin: 0 auto; flex: none; position: relative; z-index: 3; }
.hud-sp { flex: 1; }
.mod-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 4px 0 var(--ink); font: 800 13px/1.2 var(--ui); white-space: nowrap; }
.mod-chip .zi { width: 18px; height: 18px; }
.floor { position: absolute; left: 50%; top: max(64px, calc(env(safe-area-inset-top) + 58px)); z-index: 2; display: grid; justify-items: center; transform: translateX(-50%); pointer-events: none; text-align: center; }
.floor b { font: 800 clamp(58px, 15vw, 96px)/.9 var(--disp); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); font-variant-numeric: tabular-nums; }
.floor small { margin-top: 6px; padding: 2px 10px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 13px/1.3 var(--ui); white-space: nowrap; }
.callout { position: absolute; left: 50%; top: 34%; z-index: 4; display: grid; justify-items: center; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; text-align: center; }
.callout.on { animation: callout .9s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.callout b { padding: 6px 16px 8px; color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); font: 800 clamp(26px, 7vw, 40px)/1 var(--disp); white-space: nowrap; transform: rotate(-3deg); }
.callout small { margin-top: 6px; padding: 1px 10px; color: var(--ink); background: var(--lime); border: 2px solid var(--ink); border-radius: 99px; font: 800 14px/1.4 var(--ui); }
.callout.perfect b { background: var(--lime); } .callout.gold b { background: var(--gold); } .callout.near b { background: #fff; color: var(--violet); font-size: clamp(20px, 5vw, 28px); }
@keyframes callout { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -56%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(.96); } }
.hint { position: absolute; left: 50%; bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px)); z-index: 2; margin: 0; padding: 8px 18px; transform: translateX(-50%); color: var(--ink); background: var(--lime); border: 3px solid var(--ink); border-radius: 99px; box-shadow: 0 5px 0 var(--ink); font: 800 15px/1.2 var(--ui); white-space: nowrap; pointer-events: none; animation: beat 1.1s infinite; }
.vs { position: absolute; top: max(66px, calc(env(safe-area-inset-top) + 60px)); right: max(12px, env(safe-area-inset-right)); z-index: 2; width: clamp(110px, 26vw, 220px); height: clamp(150px, 34vh, 300px); overflow: hidden; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); background: #bfe8ff; pointer-events: none; }
.vs canvas { display: block; width: 100%; height: 100%; }
.vs-tag { position: absolute; left: 6px; right: 6px; top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 4px 2px 10px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.2 var(--ui); }
.vs-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-tag b { padding: 0 8px; color: #fff; background: var(--ink); border-radius: 99px; font: 800 15px/1.4 var(--disp); }
.spect { position: absolute; left: 50%; bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px)); z-index: 3; width: min(92vw, 460px); padding: 10px 14px; transform: translateX(-50%); color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); font-weight: 800; text-align: center; }
.spect .zi { width: 18px; height: 18px; vertical-align: -.25em; color: var(--violet); }
.spect b { color: var(--violet); }

/* corrida ao vivo: a altura de cada um */
.race { position: absolute; z-index: 2; right: max(12px, env(safe-area-inset-right)); top: max(66px, calc(env(safe-area-inset-top) + 60px)); width: 210px; max-height: calc(100% - 150px); overflow: hidden; padding: 8px; color: var(--ink); background: rgb(255 255 255 / .94); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); pointer-events: none; }
.race h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 800 15px/1 var(--disp); } .race h3 .zi { width: 18px; height: 18px; color: var(--gold); }
.race ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.race li { position: relative; display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 3px 6px; overflow: hidden; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 12px; font: 800 12px/1.2 var(--ui); transition: transform .3s; }
.race li i.fill { position: absolute; inset: 0 auto 0 0; width: var(--f, 0%); background: color-mix(in srgb, var(--lime) 55%, transparent); transition: width .4s; z-index: 0; }
.race li > * { position: relative; z-index: 1; }
.race li.me { border-color: var(--violet); box-shadow: 0 0 0 2px var(--violet); }
.race li.out { opacity: .55; } .race li.out i.fill { background: #d9d1f2; }
.race img { width: 26px; height: 26px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.race .rn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race .rh { font: 800 15px/1 var(--disp); }
.live-reacts { position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 3; }
.gcount { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 6px; pointer-events: none; }

body[data-screen=play] .toasts { top: auto; bottom: max(84px, calc(env(safe-area-inset-bottom) + 76px)); }
/* pausa e fim */
#pause { align-items: center; justify-content: center; }
.pause-card { width: min(100%, 380px); text-align: center; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.pause-card h2 { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 30px !important; }
.pause-card p { color: #6b5f8f; margin: 6px 0 0; }
#over { align-items: center; overflow-y: auto; background: rgb(21 11 51 / .35); }
.over-card { width: min(100%, 540px); margin: auto; padding: 18px 20px; color: var(--ink); background: #fff; border: 4px solid var(--ink); border-radius: 28px; box-shadow: 0 10px 0 var(--ink); text-align: center; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.over-card h2 { margin: 0; font: 800 clamp(28px, 7.5vw, 42px)/1.05 var(--disp); }
.over-card .big { display: inline-flex; align-items: baseline; gap: 8px; margin: 6px 0 0; font: 800 clamp(64px, 18vw, 96px)/1 var(--disp); color: var(--violet); }
.over-card .big small { font-size: 22px; color: var(--ink); }
.over-card .rec { display: block; width: fit-content; margin: 2px auto 6px; padding: 3px 12px; background: var(--gold); border: 3px solid var(--ink); border-radius: 99px; font-weight: 800; animation: beat 1s infinite; }
.over-card .muted { color: #6b5f8f; font-weight: 700; margin: 4px 0; }
.over-card .muted .zi { width: 16px; height: 16px; vertical-align: -.2em; }
.over-card .unlock { margin: 8px 0; padding: 8px 10px; background: #F2FCCF; border: 3px solid var(--ink); border-radius: 14px; font-weight: 800; }
.over-card .unlock .zi { width: 18px; height: 18px; vertical-align: -.25em; color: var(--violet); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0 6px; }
.stats span { display: grid; justify-items: center; padding: 6px 4px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 14px; }
.stats b { display: inline-flex; align-items: center; gap: 4px; font: 800 20px/1.1 var(--disp); }
.stats small { color: #6b5f8f; font: 800 11px/1.2 var(--ui); }
.vs-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 0; font-weight: 800; }
.vs-line span { padding: 4px 12px; border: 3px solid var(--ink); border-radius: 99px; } .vs-line .me { background: var(--lime); } .vs-line .it { background: var(--cyan); }
.vs-line b { font: 800 20px/1 var(--disp); } .vs-line .x { border: 0; padding: 0; font: 800 20px/1 var(--disp); }
.reward { display: grid; gap: 6px; margin: 8px 0; }
.over-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.over-actions .btn.wide { grid-column: 1 / -1; font-size: 20px; padding: 13px; }
.countdown { font: 800 15px/1 var(--disp); font-variant-numeric: tabular-nums; }

/* duelo: escolher o robô */
.bot-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.bot-opt { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 10px; color: var(--ink); background: color-mix(in srgb, var(--c) 22%, #fff); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.bot-opt:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); } .bot-opt:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.bot-opt canvas { width: 72px; height: 72px; }
.bot-opt b { font: 800 17px/1.1 var(--disp); } .bot-opt small { color: #6b5f8f; font-weight: 800; font-size: 12px; }
.bot-opt em { margin-top: 2px; padding: 0 8px; font-style: normal; background: #fff; border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.5 var(--ui); }

/* skins */
#skins { overflow-y: auto; }
.tabs { display: flex; gap: 8px; width: 100%; max-width: 1100px; margin: 0 auto 12px; }
.tab { padding: 8px 18px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 99px; font: 800 15px/1.2 var(--ui); }
.tab.on { background: var(--lime); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; width: 100%; max-width: 1100px; margin: 0 auto; padding-bottom: 12px; }
.skin { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 8px 12px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink); transition: transform .12s, box-shadow .12s; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.skin:hover { transform: translateY(-3px) rotate(-.6deg); box-shadow: 0 9px 0 var(--ink); }
.skin:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.skin.on { background: #F2FCCF; outline: 3px solid var(--lime); outline-offset: 3px; }
.skin canvas { width: 120px; height: 120px; border-radius: 14px; background: linear-gradient(#8fd8ff, #e2f6ff); }
.skin.pet canvas { background: radial-gradient(circle at 50% 60%, #f1ecff, #ddd2ff); }
.skin b { font: 800 17px/1.1 var(--disp); }
.skin .tag { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 2px 10px; color: var(--ink); background: #F4F0FF; border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.4 var(--ui); text-shadow: none; }
.skin .tag.on { background: var(--lime); } .skin .tag.buy { background: var(--gold); } .skin .tag.lock { color: #6b5f8f; }
.skin .tag .zi { width: 14px; height: 14px; }
.skin.locked canvas { filter: saturate(.5); }

/* placar da rodada ao vivo */
#gplacar { align-items: center; justify-content: center; overflow-y: auto; }
.final-wrap.narrow { max-width: 520px; }
#gplacar .reacts { justify-content: center; }
.flist .rp { color: var(--violet); }

@media (max-width: 640px) {
  #menu { background: rgb(21 11 51 / .55); }
  .hero { text-align: center; } .tag { margin-left: auto; margin-right: auto; }
  .modes, .menu-row { max-width: none; }
  .title { font-size: clamp(38px, 12vw, 56px); gap: 6px; } .title span { padding: 4px 10px 7px; border-width: 3px; border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }
  .m-txt b { font-size: 18px; } .m-ic { width: 42px; height: 42px; } .m-txt small { font-size: 12px; }
  .menu-row .btn { font-size: 13px; }
  .logo { height: 26px; } .chip-orig { display: none; }
  .vs { width: 30vw; height: 26vh; }
  .race { width: auto; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); top: auto; bottom: max(70px, calc(env(safe-area-inset-bottom) + 64px)); max-height: none; padding: 6px; }
  .race h3 { display: none; }
  .race ol { display: flex; gap: 4px; overflow: hidden; }
  .race li { grid-template-columns: 22px auto; padding: 2px 6px 2px 2px; flex: none; } .race li .rp, .race li .rn { display: none; }
  .race img { width: 22px; height: 22px; }
  .stats b { font-size: 17px; } .stats small { font-size: 10px; }
  .bot-opt canvas { width: 56px; height: 56px; } .bot-opt b { font-size: 15px; }
  .skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 520px) {
  #menu { background: linear-gradient(90deg, rgb(21 11 51 / .8), rgb(21 11 51 / .5) 60%, rgb(21 11 51 / .1)); }
  .menu-body { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 16px; gap: 8px; padding: 2px 0; max-width: 900px; }
  .hero { grid-row: 1 / 3; text-align: left; align-self: center; } .title { font-size: 40px; } .title span { padding: 3px 10px 6px; border-width: 3px; box-shadow: 0 5px 0 var(--ink); }
  .tag { margin-top: 10px; font-size: 13px; }
  .modes { grid-column: 2; gap: 6px; } .menu-row { grid-column: 2; }
  .mode { padding: 6px 10px; border-radius: 18px; } .m-ic { width: 36px; height: 36px; border-radius: 12px; } .m-ic .zi { width: 20px; height: 20px; } .m-txt b { font-size: 17px; } .m-txt small { display: none; } .m-rec b { font-size: 19px; }
  .menu-row .btn { padding: 6px; font-size: 13px; }
  .floor { top: max(8px, env(safe-area-inset-top)); } .floor b { font-size: 54px; } .floor small { margin-top: 2px; }
  .vs { top: max(60px, calc(env(safe-area-inset-top) + 56px)); height: calc(100vh - 80px); width: 20vw; }
  .race { top: max(60px, calc(env(safe-area-inset-top) + 56px)); width: 200px; max-height: calc(100vh - 80px); }
  .over-card { width: min(100%, 700px); padding: 10px 16px; border-radius: 22px; } .over-card h2 { font-size: 22px; } .over-card .big { font-size: 44px; margin: 0; } .over-card .big small { font-size: 16px; } .over-card .rec { margin: 0 auto 2px; font-size: 12px; } .over-card .muted, .over-card .unlock { margin: 2px 0; font-size: 13px; } .over-card .unlock { padding: 4px 8px; } .stats { margin: 4px 0 2px; } .stats span { padding: 2px; } .stats b { font-size: 16px; } .reward { margin: 4px 0; gap: 3px; font-size: 14px; } body[data-screen=play] .toasts { bottom: 12px; }
  .over-actions { grid-template-columns: 1fr 1fr 1fr; margin-top: 8px; } .over-actions .btn.wide { grid-column: auto; font-size: 16px; padding: 10px; }
  .hint { bottom: 14px; }
  .skin canvas { width: 96px; height: 96px; } .skin-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* computador com quadro baixo (página do jogo em tela de notebook, 521–760 px de altura): o menu cabe sem rolar */
@media (min-width: 760px) and (min-height: 521px) and (max-height: 760px) {
  .menu-body { gap: 10px; padding: 4px 0; }
  .title { font-size: clamp(40px, 11vh, 80px); } .title span { padding: 4px 13px 8px; box-shadow: 0 6px 0 var(--ink); }
  .title .t2 { transform: rotate(2deg) translateY(-10px); }
  .tag { margin-top: 8px; font-size: 15px; }
  .modes { gap: 8px; }
  .mode { padding: 7px 12px; border-radius: 18px; box-shadow: 0 5px 0 var(--ink); }
  .m-ic { width: 40px; height: 40px; border-radius: 13px; } .m-ic .zi { width: 22px; height: 22px; }
  .m-txt b { font-size: 18px; } .m-txt small { font-size: 12px; } .m-rec b { font-size: 20px; }
  .menu-row .btn { padding: 7px 6px; }
}
@media (min-width: 760px) and (min-height: 521px) and (max-height: 620px) {
  .m-txt small { display: none; }
  .tag { font-size: 14px; }
}
