/* Zovy Bomb Party — telas por cima da arena. Visual "sticker" do Zovy. */
:root { --ink: #1E1338; --violet: #7C4DFF; --lime: #C6F432; --pink: #FF4FA3; --gold: #FFC531; --cyan: #2EE6FF; --muted: #62577F;
  --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; --disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --pop: cubic-bezier(.34, 1.56, .64, 1);
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: var(--ui); color: var(--ink); background: #120B24; -webkit-tap-highlight-color: transparent; touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#app { position: fixed; inset: 0; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.screen { position: absolute; inset: 0; display: none; pointer-events: none; }
.screen.on { display: block; }
.screen > * { pointer-events: auto; }
.ib { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink); display: inline-grid; place-items: center; padding: 0; transition: transform .1s; flex: none; }
.ib:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.ib svg { width: 23px; height: 23px; }
.ib.off { background: #E7E1F5; }
.btn { padding: 11px 12px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 4px 0 var(--ink); font: 800 14px/1.1 var(--ui); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .1s; text-decoration: none; color: var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn[data-snd], .btn[data-mus] { font-size: 13.5px; white-space: nowrap; }
.btn.off { opacity: .7; }
.big { width: 100%; padding: 13px 14px 12px; border: 3px solid var(--ink); border-radius: 18px; background: var(--lime); box-shadow: 0 6px 0 var(--ink); display: grid; gap: 3px; justify-items: center; transition: transform .1s; }
.big:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.big b { font: 800 24px/1 var(--disp); letter-spacing: .02em; }
.big small { font: 700 12.5px/1.1 var(--ui); opacity: .8; }
.face { width: 1.6em; height: 1.6em; object-fit: contain; flex: none; vertical-align: middle; }

/* ---------- menu ---------- */
.m-art { position: absolute; inset: 0; background: #2A1458 center 42% / cover no-repeat; pointer-events: none; }
.m-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(30 19 56 / .75) 0%, rgb(30 19 56 / 0) 26%, rgb(30 19 56 / 0) 52%, rgb(30 19 56 / .88) 86%); }
.h-top { position: absolute; top: calc(var(--st) + 10px); left: calc(var(--sl) + 12px); right: calc(var(--sr) + 12px); display: flex; align-items: center; gap: 8px; z-index: 3; }
.h-top .logo { height: 32px; width: auto; filter: drop-shadow(0 2px 0 rgb(255 255 255 / .7)); }
.chip-orig { padding: 4px 9px; border-radius: 99px; background: var(--ink); color: var(--lime); font: 900 11px/1 var(--ui); letter-spacing: .08em; }
.top-btns { margin-left: auto; display: flex; gap: 7px; align-items: center; }
.title { position: absolute; top: calc(var(--st) + 62px); left: 0; right: 0; margin: 0; display: grid; justify-items: center; line-height: .84; font-family: var(--disp); transform: rotate(-4deg); pointer-events: none; z-index: 2; }
.title span { paint-order: stroke fill; -webkit-text-stroke: 9px var(--ink); text-shadow: 0 6px 0 var(--ink); }
.title .t1 { font-size: clamp(20px, 6vw, 30px); color: #fff; -webkit-text-stroke-width: 6px; text-shadow: none; letter-spacing: .06em; }
.title .t2 { font-size: clamp(54px, 17vw, 92px); color: var(--gold); animation: boom 2.6s var(--pop) infinite; }
.title .t3 { font-size: clamp(34px, 10.5vw, 58px); color: var(--pink); margin-top: 2px; }
@keyframes boom { 0%, 78%, 100% { transform: scale(1); } 84% { transform: scale(1.12) rotate(2deg); } 90% { transform: scale(.97); } }
.m-box { position: absolute; left: 50%; bottom: calc(var(--sb) + 14px); transform: translateX(-50%); width: min(440px, calc(100% - 22px)); display: grid; gap: 10px; z-index: 3; }
.m-two { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mbtn { padding: 11px 6px 10px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); display: grid; gap: 3px; justify-items: center; transition: transform .1s; background: #fff; }
.mbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.mbtn b { font: 800 17px/1 var(--disp); } .mbtn small { font: 700 11.5px/1.1 var(--ui); opacity: .85; }
.mbtn.pink { background: var(--pink); color: #fff; } .mbtn.pink b { text-shadow: 0 2px 0 var(--ink); }
.mbtn.cyan { background: var(--cyan); }
.m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
#meFace .face { width: 26px; height: 26px; margin: -6px 0; }

/* ---------- partida ---------- */
.hud { position: absolute; left: var(--bx); top: var(--by); width: var(--bw); height: var(--ts); display: flex; align-items: center; gap: 5px; padding: 0 5px; z-index: 4; pointer-events: none; }
.hud > * { pointer-events: auto; }
.chips { display: flex; gap: 4px; flex: 1; min-width: 0; align-items: center; }
.chip { display: flex; align-items: center; gap: 3px; height: calc(var(--ts) * .84); max-height: 40px; padding: 0 7px 0 2px; border-radius: 99px; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); font: 900 13px/1 var(--ui); min-width: 0; transition: opacity .3s, transform .2s; }
.chip .face { width: calc(var(--ts) * .7); height: calc(var(--ts) * .7); max-width: 34px; max-height: 34px; }
.chip .nm { display: none; max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.chip .sc { display: flex; align-items: center; gap: 2px; }
.chip .mini svg { width: 14px; height: 14px; display: block; }
.chip .pips { display: flex; gap: 2px; } .chip .pips u { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: #E7E1F5; } .chip .pips u.on { background: var(--gold); }
.chip.out { opacity: .45; filter: grayscale(1); }
.chip.lead { background: #FFF3C2; transform: translateY(-1px); }
.timer { padding: 0 9px; height: calc(var(--ts) * .84); max-height: 40px; min-width: 52px; display: grid; place-items: center; border-radius: 99px; background: var(--ink); color: #fff; font: 900 15px/1 var(--ui); font-variant-numeric: tabular-nums; }
.timer.hot { background: var(--pink); animation: hot .5s infinite alternate; }
@keyframes hot { to { transform: scale(1.08); } }
.hud .ib { width: calc(var(--ts) * .9); height: calc(var(--ts) * .9); max-width: 42px; max-height: 42px; box-shadow: 0 2px 0 var(--ink); border-width: 2px; }
.hud .ib svg { width: 60%; height: 60%; }
.pw { display: flex; gap: 6px; align-items: center; padding: 3px 9px; border-radius: 99px; background: rgb(255 255 255 / .94); border: 2px solid var(--ink); font: 900 13px/1 var(--ui); }
.pw:empty { display: none; }
.pw span { display: inline-flex; align-items: center; gap: 1px; } .pw svg { width: 17px; height: 17px; }
.l-kb .hud { left: 50%; top: 9px; transform: translateX(-50%); width: min(980px, calc(100% - 24px)); height: 46px; }
.l-kb .chip { height: 40px; padding-right: 11px; gap: 6px; } .l-kb .chip .face { width: 32px; height: 32px; } .l-kb .chip .nm { display: block; }
.l-kb .timer { height: 40px; font-size: 18px; min-width: 68px; } .l-kb .hud .ib { width: 42px; height: 42px; }
.pad { position: absolute; display: grid; z-index: 3; --pc: var(--violet); }
.sz { position: relative; min-width: 0; min-height: 0; touch-action: none; }
.ring { position: absolute; left: 50%; top: 50%; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .55); background: rgb(255 255 255 / .13); display: grid; place-items: center; pointer-events: none; transition: opacity .2s; opacity: .7; }
.ring.on { opacity: 1; }
.knob { width: 50px; height: 50px; border-radius: 50%; background: var(--pc); border: 3px solid var(--ink); box-shadow: inset 0 -5px 0 rgb(0 0 0 / .2), inset 0 4px 0 rgb(255 255 255 / .35); }
.bb { border: 0; background: none; padding: 0; display: grid; place-items: center; touch-action: none; min-width: 0; min-height: 0; }
.bb i { position: relative; width: 86px; height: 86px; border-radius: 50%; border: 3.5px solid var(--ink); background: radial-gradient(circle at 34% 30%, #7A7396 0 9%, #2B2440 38%, #0E0A18 100%); box-shadow: 0 6px 0 var(--ink), 0 0 0 6px color-mix(in srgb, var(--pc) 60%, transparent); transition: transform .08s; }
.bb i::before { content: ""; position: absolute; left: 50%; top: -15px; width: 22px; height: 15px; margin-left: -11px; border-radius: 5px 5px 0 0; background: #8C86A6; border: 3px solid var(--ink); border-bottom: 0; }
.bb i::after { content: ""; position: absolute; left: 62%; top: -30px; width: 20px; height: 20px; background: radial-gradient(circle, #FFF2A8 0 30%, #FF8A3D 32% 60%, transparent 62%); animation: spark .3s infinite alternate; }
@keyframes spark { to { transform: scale(1.35) rotate(40deg); } }
.bb.hit i { transform: translateY(5px) scale(.94); box-shadow: 0 1px 0 var(--ink), 0 0 0 6px color-mix(in srgb, var(--pc) 60%, transparent); }
.pad .pw { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); z-index: 2; pointer-events: none; white-space: nowrap; }
.l-kb .pad { display: none; }
.l-p1 .pad[data-p="0"], .l-p2 .pad { left: 0; right: 0; height: var(--sv); grid-template-columns: 1.25fr 1fr; }
.l-p1 .pad[data-p="0"], .l-p2 .pad[data-p="0"] { bottom: 0; padding-bottom: var(--sb); }
.l-p2 .pad[data-p="1"] { top: 0; transform: rotate(180deg); padding-bottom: var(--st); }
.l-p2 .pad .pw { top: auto; bottom: calc(100% - 30px); }
.l-p2 .ring, .l-l2 .ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; } .l-p2 .knob, .l-l2 .knob { width: 42px; height: 42px; }
.l-p2 .bb i, .l-l2 .bb i { width: 72px; height: 72px; }
.l-l1 .pad[data-p="0"] { inset: 0; pointer-events: none; grid-template-columns: 1fr 1fr; }
.l-l1 .pad > .sz, .l-l1 .pad > .bb { pointer-events: auto; }
.l-l1 .ring { left: calc(var(--bx) / 2 + 4px); top: 62%; }
.l-l1 .bb { justify-items: end; align-items: end; padding: 0 calc(var(--bx) / 2 - 43px + var(--sr)) 60px 0; }
.l-l1 .pad .pw { left: auto; right: 8px; top: 8px; transform: none; flex-direction: column; border-radius: 14px; padding: 6px; gap: 4px; }
.l-l2 .pad { top: 0; bottom: 0; width: var(--sh); grid-template-rows: 1.3fr 1fr; }
.l-l2 .pad[data-p="0"] { left: 0; padding-left: var(--sl); } .l-l2 .pad[data-p="1"] { right: 0; padding-right: var(--sr); }
.l-l2 .pad .pw { top: 6px; transform: translateX(-50%) scale(.86); }
.hint { position: absolute; left: 50%; bottom: calc(var(--sv, 0px) + 10px); transform: translateX(-50%); max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 99px; background: rgb(30 19 56 / .88); color: #fff; font: 700 13px/1.25 var(--ui); text-align: center; opacity: 0; transition: opacity .3s; pointer-events: none !important; z-index: 5; }
.hint.on { opacity: 1; }
.l-kb .hint { bottom: 16px; } .l-l1 .hint, .l-l2 .hint { bottom: 8px; } .l-p2 .hint { bottom: 50%; }

/* ---------- janelas ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 20; background: rgb(18 11 36 / .66); display: grid; place-items: center; padding: calc(var(--st) + 10px) calc(var(--sr) + 10px) calc(var(--sb) + 10px) calc(var(--sl) + 10px); backdrop-filter: blur(3px); }
.sheet { width: min(430px, 100%); max-height: 100%; overflow: auto; background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); padding: 16px 16px 16px; display: grid; gap: 11px; animation: sheet .28s var(--pop); touch-action: pan-y; overscroll-behavior: contain; }
.sheet.wide { width: min(700px, 100%); }
@keyframes sheet { from { transform: translateY(18px) scale(.94); opacity: 0; } }
.sheet h2 { margin: 0; font: 800 25px/1.05 var(--disp); text-align: center; }
.sheet h2 small { display: block; font: 900 11.5px/1 var(--ui); letter-spacing: .1em; color: var(--violet); margin-bottom: 6px; }
.sheet p { margin: 0; font: 600 14px/1.35 var(--ui); text-align: center; }
.sheet label { font: 900 11.5px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: -5px; }
.sheet .tip { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.s-row { display: flex; gap: 9px; justify-content: center; } .s-row .btn { flex: 1; max-width: 240px; } .s-row.two .btn { flex: 1; }
.s-col { display: grid; gap: 9px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.seg button { padding: 10px 4px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; font: 800 13.5px/1.1 var(--ui); box-shadow: 0 3px 0 var(--ink); transition: transform .1s; }
.seg button.on { background: var(--lime); transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.seg.arenas { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
.seg.arenas button { height: 62px; padding: 0; background-size: cover; background-position: center; display: grid; align-items: end; overflow: hidden; color: #fff; }
.seg.arenas button span { background: rgb(30 19 56 / .78); font-size: 10.5px; padding: 3px 1px; }
.seg.arenas button.on { outline: 4px solid var(--lime); outline-offset: -1px; } .seg.arenas button.on span { background: var(--lime); color: var(--ink); }
.m-grp { border: 2.5px solid var(--ink); border-radius: 16px; overflow: hidden; background: linear-gradient(rgb(255 255 255 / .82), rgb(255 255 255 / .9)), var(--bgi) center / cover; padding: 9px 9px 10px; display: grid; gap: 7px; }
.m-grp h3 { margin: 0; font: 800 15px/1 var(--disp); }
.m-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.m-node { aspect-ratio: 1 / 1.05; border: 2.5px solid var(--ink); border-radius: 13px; background: #fff; box-shadow: 0 3px 0 var(--ink); display: grid; place-items: center; align-content: center; gap: 2px; padding: 2px; transition: transform .1s; min-width: 0; }
.m-node:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.m-node b { font: 800 19px/1 var(--disp); } .m-node b svg { width: 20px; height: 20px; display: block; }
.m-node.done { background: #F1FBC9; } .m-node.lock { background: #E7E1F5; box-shadow: none; opacity: .75; }
.stars { display: inline-flex; gap: 0; } .stars svg { width: 13px; height: 13px; }
.mode b { color: var(--violet); }
.rivals { display: flex; align-items: center; justify-content: center; gap: 10px; } .rivals > small { font: 800 12px/1 var(--ui); color: var(--muted); }
.rv { display: grid; justify-items: center; gap: 1px; } .rv .face { width: 44px; height: 44px; } .rv small { font: 800 11px/1 var(--ui); }
.objs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.objs li { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border: 2.5px solid var(--ink); border-radius: 13px; font: 700 14px/1.2 var(--ui); background: #fff; }
.objs li svg { width: 22px; height: 22px; flex: none; } .objs li em { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2.5px dashed #B9B3CC; }
.objs li.ok { background: #F1FBC9; } .objs li.no { color: var(--muted); }
.bigstars { display: flex; justify-content: center; gap: 6px; } .bigstars i { width: 58px; height: 58px; } .bigstars svg { width: 100%; height: 100%; }
.bigstars i.on { animation: starIn .5s var(--pop) backwards; animation-delay: calc(.3s + var(--d)); } .bigstars i:nth-child(2) { transform: translateY(-8px); }
@keyframes starIn { from { transform: scale(0) rotate(-140deg); opacity: 0; } }
.podium { display: grid; gap: 6px; }
.pd { display: flex; align-items: center; gap: 8px; padding: 5px 11px 5px 8px; border: 2.5px solid var(--ink); border-radius: 13px; font: 800 14px/1 var(--ui); background: #fff; }
.pd em { font: 900 13px/1 var(--ui); font-style: normal; width: 22px; color: var(--muted); } .pd .face { width: 36px; height: 36px; } .pd b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pd span { color: var(--muted); font-size: 13px; }
.pd.win { background: #FFF3C2; box-shadow: 0 3px 0 var(--ink); } .pd.win em { color: var(--ink); }
.reward { display: grid; gap: 6px; justify-items: center; } .reward:empty { display: none; }
.reward .xp { padding: 6px 16px; border-radius: 99px; background: var(--lime); border: 2.5px solid var(--ink); font: 900 22px/1 var(--ui); } .reward .xp small { font-size: 13px; }
.gold { color: #A86A00; font-weight: 800 !important; }
.chars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch { padding: 8px 4px; border: 2.5px solid var(--ink); border-radius: 15px; background: #fff; box-shadow: 0 4px 0 var(--ink); display: grid; justify-items: center; gap: 2px; transition: transform .1s; min-width: 0; }
.ch .face { width: 64px; height: 64px; } .ch b { font: 800 14px/1 var(--disp); } .ch small { font: 700 10.5px/1.15 var(--ui); color: var(--muted); text-align: center; }
.ch.on { background: var(--lime); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); } .ch.on small { color: var(--ink); }
.ch:disabled { opacity: .6; } .ch.lock .face { filter: grayscale(1) brightness(.6); }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; } .how li { display: flex; gap: 9px; align-items: flex-start; font: 600 13.5px/1.3 var(--ui); } .how svg { width: 26px; height: 26px; flex: none; }
.toast { position: absolute; left: 50%; top: calc(var(--st) + 70px); transform: translate(-50%, -20px); padding: 9px 15px; border-radius: 99px; background: var(--ink); color: #fff; font: 700 13.5px/1.2 var(--ui); opacity: 0; transition: .25s; pointer-events: none; z-index: 30; max-width: calc(100% - 30px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.loading { position: absolute; inset: 0; z-index: 40; background: radial-gradient(circle at 50% 40%, #4A2A9E, #1E1338 70%); display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; transition: opacity .35s; }
.loading.off { opacity: 0; pointer-events: none; }
.loading b { font: 800 26px/1 var(--disp); color: var(--gold); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.loading p { margin: 0; font: 700 13px/1 var(--ui); opacity: .8; }
.ld-bomb { width: 74px; height: 74px; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(circle at 34% 30%, #7A7396 0 9%, #2B2440 38%, #0E0A18 100%); animation: ldb .5s infinite alternate var(--pop); margin-bottom: 8px; }
@keyframes ldb { to { transform: scale(1.14); box-shadow: 0 0 30px #FF8A3D; } }

/* telas baixas: celular deitado */
@media (orientation: landscape) and (max-height: 520px) {
  .m-art { background-position: 22% 40%; }
  .m-art::after { background: linear-gradient(90deg, rgb(30 19 56 / .15) 30%, rgb(30 19 56 / .9) 72%); }
  .title { left: calc(var(--sl) + 16px); right: auto; top: calc(var(--st) + 52px); justify-items: start; }
  .title .t2 { font-size: clamp(40px, 15vh, 64px); } .title .t3 { font-size: clamp(26px, 9.5vh, 40px); } .title .t1 { font-size: 18px; }
  .m-box { left: auto; right: calc(var(--sr) + 12px); bottom: calc(var(--sb) + 8px); transform: none; width: min(340px, 46%); gap: 7px; }
  .big { padding: 9px 12px 8px; } .big b { font-size: 20px; } .mbtn { padding: 8px 4px 7px; } .mbtn b { font-size: 15px; } .btn { padding: 8px 10px; }
  .sheet { padding: 11px 14px; gap: 8px; } .sheet h2 { font-size: 20px; } .sheet h2 small { margin-bottom: 3px; }
  .sheet.narrow { width: min(620px, 100%); grid-template-columns: 1fr 1fr; align-items: start; } .sheet.narrow > h2, .sheet.narrow > .bigstars, .sheet.narrow > p, .sheet.narrow > label, .sheet.narrow > .seg { grid-column: 1 / -1; }
  .sheet.narrow > .s-col { align-content: start; } .bigstars i { width: 40px; height: 40px; } .seg.arenas button { height: 44px; } .seg button { padding: 7px 4px; }
  .m-grid { grid-template-columns: repeat(6, 1fr); } .m-node { aspect-ratio: 1.5 / 1; grid-auto-flow: column; } .sheet.wide { grid-template-columns: 1fr 1fr; } .sheet.wide > h2, .sheet.wide > .s-row, .sheet.wide > .seg, .sheet.wide > .chars { grid-column: 1 / -1; }
  .chars { grid-template-columns: repeat(6, 1fr); } .ch .face { width: 44px; height: 44px; }
}
@media (min-width: 760px) and (min-height: 521px) { .m-box { bottom: 34px; } .title { top: 70px; } .m-art { background-size: contain; background-color: #2A1458; } .m-art::before { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; filter: blur(24px) brightness(.7); z-index: -1; } }
@media (max-width: 520px) { .m-grid { grid-template-columns: repeat(6, 1fr); gap: 4px; } .m-node b { font-size: 16px; } .stars svg { width: 10px; height: 10px; } .m-grp { padding: 7px; } }
@media (prefers-reduced-motion: reduce) { .title .t2, .timer.hot, .bb i::after, .ld-bomb { animation: none; } }

/* ================= Online com a galera (live.js): entrar, sala de espera, salas abertas e figurinhas ================= */
.m-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-three .mbtn { position: relative; padding-left: 3px; padding-right: 3px; }
.m-three .mbtn b { font-size: 15.5px; white-space: nowrap; }
.mbtn.lime { background: var(--lime); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); border: 2px solid var(--ink); animation: liveDot 1.1s infinite; vertical-align: 1px; }
.mbtn .live-dot { position: absolute; top: 6px; right: 6px; }
@keyframes liveDot { 50% { box-shadow: 0 0 0 5px rgb(255 79 163 / .35); } }
.screen.panel { pointer-events: auto; overflow-y: auto; touch-action: pan-y; background: radial-gradient(circle at 50% 110%, rgb(255 138 61 / .32), transparent 60%), radial-gradient(circle at 10% 0%, rgb(124 77 255 / .45), transparent 55%), linear-gradient(165deg, #3a2290 0%, #241257 55%, #150b33 100%); color: #fff; z-index: 6; }
.screen.panel::before { content: ""; position: fixed; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .07) 1.5px, transparent 1.6px); background-size: 22px 22px; pointer-events: none; }
.pn { position: relative; min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--st) + 10px) calc(var(--sr) + 12px) calc(var(--sb) + 14px) calc(var(--sl) + 12px); }
.panel input, .panel button, #modal button { touch-action: manipulation; }
.panel input { -webkit-user-select: text; user-select: text; }
.panel .ib svg, .panel .ib .zi { width: 22px; height: 22px; }
.bar { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; max-width: 1100px; margin: 0 auto 12px; }
.bar-title { display: grid; } .bar-title small { color: #cfc3f5; font: 800 11px/1 var(--ui); letter-spacing: .12em; } .bar-title b { font: 800 22px/1.1 var(--disp); }
.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-flex; align-items: center; gap: 4px; 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 .zi { width: 14px; height: 14px; }
.pill.violet { background: var(--violet); color: #fff; } .pill.gold { background: var(--gold); } .pill.pink { background: var(--pink); color: #fff; }
.btn.small { padding: 8px 12px; font-size: 14px; } .btn.lime { background: var(--lime); } .btn.pink { background: var(--pink); color: #fff; } .btn.cyan { background: var(--cyan); }
.btn:disabled, .big:disabled { opacity: .45; pointer-events: none; }
.btn .zi { width: 1.1em; height: 1.1em; }
.mini-btn { display: inline-flex; align-items: center; gap: 4px; 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 .zi { width: 14px; height: 14px; }
.mini-btn[aria-pressed="true"] { background: var(--pink); color: #fff; }
.panel input:not([type]), #modal 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; }
.panel input:focus { background: #fff; box-shadow: 0 0 0 3px var(--cyan); }
.panel input[readonly] { background: #ECE7F8; }
.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; }
.gj-body { flex: 1; display: grid; align-content: center; gap: 14px; width: 100%; max-width: 560px; margin: 0 auto; }
.gj-hero { text-align: center; }
.gj-badge { display: inline-flex; align-items: center; gap: 7px; 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; }
.gj-badge .live-dot { background: #fff; }
.gj-hero h2 { margin: 12px 0 6px; font: 800 clamp(23px, 6vw, 32px)/1.12 var(--disp); }
.gj-hero h2 em { font-style: normal; color: var(--gold); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.gj-hero p { margin: 0; color: #e6dcff; font: 600 14.5px/1.4 var(--ui); }
.me-card { display: flex; align-items: center; gap: 14px; }
.av-big { position: relative; flex: none; width: 80px; height: 80px; padding: 0; background: radial-gradient(circle at 50% 40%, #fff, #E9E2FF); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; }
.av-big .face { width: 70px; height: 70px; }
.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%; }
.av-big .dice .zi { width: 16px; height: 16px; }
.av-big:active { transform: rotate(-10deg) scale(.95); }
.av-big.roll .face { animation: roll .45s; } @keyframes roll { 40% { transform: scale(.6) rotate(-40deg); } }
.me-fields { flex: 1; min-width: 0; display: grid; gap: 5px; }
.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 small a { color: var(--violet); font-weight: 800; }
.join-row { display: flex; gap: 8px; margin-top: 7px; }
#inpCode { text-transform: uppercase; letter-spacing: .35em; font: 800 22px/1 var(--disp); text-align: center; }
.panel .pub.card { color: var(--ink); }
.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.1fr); } }
.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: .9; }
.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, 72px); height: clamp(62px, 18vw, 82px); 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, 50px)/1 var(--disp); animation: tileIn .5s var(--pop) 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: .9; word-break: break-all; }
.invite.hide { filter: blur(6px); }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.players li { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 6px 8px; background: #F4F0FF; border: 2px solid var(--ink); border-radius: 16px; text-align: center; animation: pop .4s var(--pop); }
.players li.off { opacity: .45; } .players li.me { background: #F2FCCF; } .players li.bot { background: #EEF6FF; border-style: dashed; }
.players .pf { width: 62px; height: 62px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.players .pf .face { width: 62px; height: 62px; }
.players li.me .pf { cursor: pointer; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.players b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.players .crown { position: absolute; top: -13px; 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%; }
.players .kick .zi { width: 13px; height: 13px; }
.players .tagme { font-size: 11px; color: #6b5f8f; font-weight: 700; }
@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; }
.seg.arenas.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg.arenas .rand { background: linear-gradient(135deg, var(--violet), var(--pink)); display: grid; place-items: center; align-items: center; }
.seg.arenas .rand .zi { width: 24px; height: 24px; color: #fff; margin-top: 6px; }
.seg button .zi { width: 15px; height: 15px; vertical-align: -.2em; }
.rule-help { margin: 2px 0 0; color: #6b5f8f; font: 700 12px/1.35 var(--ui); text-align: left !important; }
.rules-view { display: grid; gap: 8px; } .rv-row { display: flex; flex-wrap: wrap; gap: 6px; }
.start b { font-size: 26px; }
.reacts { display: flex; justify-content: center; gap: 6px; }
.reacts button { width: 46px; height: 46px; padding: 4px; background: rgb(255 255 255 / .12); border: 2px solid rgb(255 255 255 / .25); border-radius: 14px; transition: transform .12s; }
.reacts button:active { transform: scale(.85); }
.react-pop { position: absolute; z-index: 8; display: flex; gap: 4px; padding: 6px; background: rgb(30 19 56 / .92); border: 2px solid rgb(255 255 255 / .3); border-radius: 18px; top: calc(var(--by) + var(--ts) + 6px); right: calc(100% - var(--bx) - var(--bw) + 6px); }
.l-kb .react-pop { top: 62px; right: max(12px, calc(50% - 490px)); }
.react-pop button { width: 44px; height: 44px; padding: 3px; border: 0; background: none; }
#btnReact { color: var(--ink); } #btnReact .zi { width: 60%; height: 60%; }
.fx { position: absolute; inset: 0; z-index: 25; overflow: hidden; pointer-events: none; }
.float { position: absolute; bottom: 80px; 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 .face { width: 30px; height: 30px; margin-top: -6px; }
@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), -55vh) scale(.9); opacity: 0; } }
.boot { position: absolute; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgb(30 19 56 / .88); color: #e6dcff; font-weight: 700; }
.boot p { margin: 0; }
.modal { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; background: rgb(18 11 36 / .72); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 500px); max-height: 88vh; overflow-y: auto; padding: 18px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); animation: sheet .28s var(--pop); touch-action: pan-y; }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; box-shadow: 0 3px 0 var(--ink); }
.modal-card h2 { display: flex; align-items: center; gap: 6px; margin: 0 40px 12px 0; font: 800 24px/1.1 var(--disp); } .modal-card h2 .zi { color: var(--gold); }
.modal-card p { margin: 6px 0; font: 600 14px/1.35 var(--ui); }
.qr { display: grid; place-items: center; padding: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; }
.qr svg { width: min(70vw, 260px); height: auto; }
.chip.me { box-shadow: 0 2px 0 var(--ink), 0 0 0 3px var(--lime); }
.sheet .wait.dark { color: #6b5f8f; padding: 4px; }
.sheet .lv-tot { font: 700 13px/1.3 var(--ui); color: var(--muted); }
@media (orientation: landscape) and (max-height: 520px) {
  .m-three .mbtn b { font-size: 13.5px; } .m-three .mbtn small { font-size: 10.5px; }
  .gj-body { max-width: 720px; grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; } .gj-hero { grid-column: 1 / -1; } .gj-hero h2 { margin: 6px 0 2px; font-size: 21px; } .gj-hero p { font-size: 13px; }
  .gj-body .pub.card, .gj-body .join { grid-column: auto; }
  .code-tiles span { width: 46px; height: 52px; font-size: 32px; } .code-tiles { margin: 6px 0 8px; }
  .lobby-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .card { padding: 10px 12px; border-radius: 18px; } .players { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; } .players .pf, .players .pf .face { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .live-dot, .players li.me .pf { animation: none; } }
.panel .ib, .modal .ib { color: var(--ink); }
.panel .big { color: var(--ink); }
.s-row.two .btn { white-space: nowrap; }
/* v1.268: perigos, itens novos, chefões, chapéus, quem derrubou quem */
.seg.arenas { grid-template-columns: repeat(3, 1fr); }
.seg.arenas.five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg.hats { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); grid-column: 1 / -1; }
.seg.hats button { display: grid; justify-items: center; gap: 2px; padding: 4px 2px 6px; }
.seg.hats button .face { width: 44px; height: 44px; } .seg.hats button small { font: 800 10px/1.1 var(--ui); color: var(--ink); }
.seg.hats button.lock { opacity: .5; box-shadow: none; } .seg.hats button.lock small svg { width: 10px; height: 10px; vertical-align: -1px; }
.m-node.boss { background: #FFE6E3; border-color: #7A1A0A; } .m-node.boss b .face { width: 30px; height: 30px; display: block; }
.m-grp h3 small { font: 700 11px/1 var(--ui); opacity: .85; }
.rv.boss small { color: #C8200A; } .rv.boss .face { width: 52px; height: 52px; }
.tip.gold { color: #9A5A00; font-weight: 800; }
.pd .kd { display: block; font: 700 11px/1 var(--ui); color: var(--muted); margin-left: 4px; white-space: nowrap; }
.pw .cu { background: #3A2F52 !important; border-radius: 99px; animation: cupulse .6s infinite alternate; } @keyframes cupulse { to { transform: scale(1.12); } }
.pw .kh { font: 800 10px/1 var(--ui); font-style: normal; color: #fff; background: #FF3B30; border-radius: 99px; padding: 3px 6px; margin-left: 2px; align-self: center; }
.db { position: absolute; border: 0; background: none; padding: 0; z-index: 3; touch-action: none; right: 18px; top: 26px; }
.db i { display: block; width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(circle at 35% 30%, #FF8A80 0 12%, #FF3B30 45%, #A3150C 100%); box-shadow: 0 5px 0 var(--ink); position: relative; animation: dbpulse .8s infinite alternate; }
.db i::after { content: "DETONAR"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 900 9px/1 var(--ui); color: #fff; letter-spacing: .02em; }
.db.hit i { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
@keyframes dbpulse { to { box-shadow: 0 5px 0 var(--ink), 0 0 0 6px rgb(255 59 48 / .35); } }
.l-l1 .db { pointer-events: auto; right: calc(var(--bx) / 2 - 29px + var(--sr, 0px)); bottom: 168px; top: auto; }
.l-l2 .db { top: auto; bottom: 12px; right: auto; left: 10px; } .l-l2 .db i { width: 48px; height: 48px; }
.l-p2 .db { right: 12px; top: 10px; } .l-p2 .db i { width: 50px; height: 50px; }
.feed { position: absolute; z-index: 4; right: calc(var(--bx, 0px) + 6px); top: calc(var(--by, 0px) + 6px); display: grid; gap: 4px; justify-items: end; pointer-events: none; }
.screen:not(.on) .feed { display: none; }
.fe { display: flex; align-items: center; gap: 2px; padding: 2px 6px 2px 3px; border-radius: 99px; background: rgb(30 19 56 / .82); border: 2px solid var(--ink); animation: fein .25s ease-out; transition: opacity .4s, transform .4s; }
.fe .face { width: 26px; height: 26px; } .fe .face.dead { filter: grayscale(1) brightness(.9); opacity: .85; }
.fe .fx { display: grid; place-items: center; width: 18px; height: 18px; color: #FFE14A; font: 900 14px/1 var(--ui); } .fe .fx svg { width: 16px; height: 16px; } .fe .fx svg [stroke="#1E1338"] { stroke: #fff; }
.fe.out { opacity: 0; transform: translateX(10px); }
@keyframes fein { from { opacity: 0; transform: translateX(14px) scale(.9); } }
.l-p2 .feed, .l-l2 .feed { top: 50%; transform: translateY(-50%); right: 6px; }
@media (max-width: 520px) { .fe .face { width: 22px; height: 22px; } }
@media (max-height: 520px) and (orientation: landscape) { .m-node { aspect-ratio: 1.25 / 1; grid-auto-flow: row; gap: 0; } .m-node b { font-size: 14px; } .m-node .stars svg { width: 8px; height: 8px; } .m-node.boss b .face { width: 22px; height: 22px; } .m-grp h3 { font-size: 13px; } }
/* botão de ação com arma (v1.271) */
.db.wg i { background: radial-gradient(circle at 35% 30%, #FFD08A 0 12%, #FF8A3D 45%, #A84A0C 100%); animation: none; }
.db.wl i { background: radial-gradient(circle at 35% 30%, #C8FAFF 0 12%, #2EC4F0 45%, #0B6C8A 100%); animation: none; }
.db.wg i::after, .db.wl i::after { content: "ATIRAR"; }
/* placar fora do tabuleiro no celular em pé quando sobra espaço; se não sobrar, fica transparente quando alguém passa embaixo (v1.271.1) */
.hud-up .hud { top: calc(var(--by) - 47px); height: 44px; }
.hud-up .hud .ib { width: 40px; height: 40px; }
.hud > :not(.ib) { transition: opacity .2s; }
.hud.peek > :not(.ib) { opacity: .32; }
