/* Zovy Rouba Bandeira — arena 3D (three.js) no canvas (#cv) atrás de tudo; menu, placar e salas ficam por cima.
   Visual próprio de quadra esportiva à noite: grafite, lima neon e os dois times (azul #2F7BFF × vermelho #FF3D5A).
   Títulos em Chakra Petch, texto em Figtree. Cartões claros com friso lima; placar Azul × Vermelho no topo e mapinha no canto.
   No celular: alavanca que nasce onde o dedo encosta (lado esquerdo) e os botões ARRANCADA, PULO e PODER à direita. */
:root {
  --ink: #0E1016; --navy: #1A1E2A; --navy2: #262C3D; --gold: #C8FF3D; --gold2: #7FB012; --gold3: #E9FFB8; --red: #FF3D5A; --red2: #A8142E;
  --blue: #2F7BFF; --blue2: #123A8A;
  --ivory: #F1F3F7; --ivory2: #DCE1EA; --soft: #A9B1C2; --sky: #2F7BFF; --muted: #5A6274;
  --disp: "Chakra Petch", "Figtree", system-ui, sans-serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --goldgrad: linear-gradient(180deg, #E9FFB0 0%, #C8FF3D 45%, #92C81A 100%);
  --redgrad: linear-gradient(180deg, #FF6A80 0%, #FF3D5A 55%, #A8142E 100%);
  --bluegrad: linear-gradient(180deg, #6FA6FF 0%, #2F7BFF 55%, #123A8A 100%);
}
*, *::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; -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: var(--ink); }
#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 .34s cubic-bezier(.2, .9, .3, 1.1); }
.screen.panel {
  background:
    radial-gradient(circle at 50% -10%, rgb(200 255 61 / .22), transparent 55%),
    radial-gradient(circle at 50% 120%, rgb(255 61 90 / .28), transparent 55%),
    url("img/menu.webp") center / cover no-repeat;
}
.screen.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 16 22 / .88), rgb(14 16 22 / .94)); }
.screen.panel { isolation: isolate; }
@keyframes screenIn { from { opacity: 0; transform: translateY(12px) scale(.99); } }
.top { display: flex; align-items: center; gap: 10px; flex: none; }
.logo { height: 30px; width: auto; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .5)); }
.chip-orig { padding: 3px 12px; color: var(--ink); background: var(--goldgrad); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 800 12px/1.3 var(--ui); letter-spacing: .12em; }
.top-btns { display: flex; gap: 8px; margin-left: auto; }
.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(--gold); font: 800 11px/1 var(--ui); letter-spacing: .16em; } .bar-title b { font: 800 22px/1.1 var(--disp); letter-spacing: .02em; }

/* ---------- peças básicas ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, var(--ivory2)); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgb(255 255 255 / .7); font: 800 16px/1.1 var(--ui); transition: transform .12s, box-shadow .12s, filter .12s; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink), inset 0 2px 0 rgb(255 255 255 / .5); }
.btn.gold { background: var(--goldgrad); }
.btn.red { color: #fff; background: var(--redgrad); text-shadow: 0 1px 0 rgb(0 0 0 / .35); box-shadow: 0 5px 0 var(--ink), inset 0 2px 0 rgb(255 255 255 / .3); }
.btn.violet { color: #fff; background: linear-gradient(180deg, #3a4462, var(--navy2)); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 12px; box-shadow: 0 4px 0 var(--ink), inset 0 2px 0 rgb(255 255 255 / .6); }
.btn .zi { width: 1.1em; height: 1.1em; }
.btn:focus-visible, .icon-btn:focus-visible, .mode:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, var(--ivory2)); border: 3px solid var(--ink); border-radius: 12px; 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); }
.icon-btn.off { background: #c4cad6; color: #6a7284; }
.icon-btn.flip .zi { transform: scaleX(-1); }
.pill { display: inline-block; padding: 2px 10px; color: var(--ink); background: var(--goldgrad); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.4 var(--ui); white-space: nowrap; vertical-align: middle; }
.pill.violet { background: linear-gradient(180deg, #3a4462, var(--navy2)); color: #fff; } .pill.gold { background: var(--goldgrad); } .pill.red { background: var(--redgrad); color: #fff; }
.pwi { display: inline-block; vertical-align: middle; object-fit: contain; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .35)); }
.card { position: relative; background: linear-gradient(180deg, #FFFFFF 0%, var(--ivory) 60%, var(--ivory2) 100%); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 3px var(--gold); padding: 16px; }
.card h2, .card h3 { margin: 0; font: 800 20px/1.15 var(--disp); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head small { color: var(--muted); font-size: 12px; }

/* ---------- menu (por cima da arena de demonstração) ---------- */
#menu { overflow-y: auto; background: radial-gradient(ellipse at 30% 40%, rgb(14 16 22 / .2), rgb(14 16 22 / .82) 75%), linear-gradient(180deg, rgb(14 16 22 / .55), rgb(14 16 22 / .05) 35%, rgb(14 16 22 / .82)); }
.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: 12px; text-align: center; }
.title { margin: 0; line-height: 0; }
.title-img { width: min(76vw, 400px); height: auto; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .55)); animation: crownIn .9s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes crownIn { from { opacity: 0; transform: translateY(-40px) scale(.7) rotate(-4deg); } }
.tag { max-width: 470px; margin: 0; font-size: 15px; color: var(--ivory); text-shadow: 0 2px 6px rgb(0 0 0 / .8); }
.tag b { color: var(--gold); }
.team { display: flex; align-items: center; gap: 8px; }
.tm-box { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, var(--ivory2)); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink), inset 0 0 0 2px var(--gold); text-align: left; }
.tm-sw { position: relative; display: grid; place-items: center; width: 50px; height: 56px; background: linear-gradient(160deg, color-mix(in srgb, var(--c, #D7263D) 75%, #fff), var(--c, #D7263D) 55%, color-mix(in srgb, var(--c, #D7263D) 60%, #000)); border: 3px solid var(--ink); border-radius: 10px 10px 50% 50% / 10px 10px 40% 40%; box-shadow: inset 0 0 0 2px var(--gold); }
.tm-sw i { width: 18px; height: 14px; background: var(--goldgrad); clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%); }
.tm-box span:last-child { display: grid; min-width: 112px; }
.tm-box small { color: var(--muted); font: 800 10px/1 var(--ui); letter-spacing: .12em; }
.tm-box b { font: 800 20px/1.1 var(--disp); }
.tm-box em { font-style: normal; color: var(--muted); font-size: 11px; font-weight: 700; }
.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: linear-gradient(180deg, #FFFFFF, var(--ivory2)); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 3px var(--gold); 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:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--ink), inset 0 0 0 3px var(--gold); }
.mode:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink), inset 0 0 0 3px var(--gold); }
.m-ic { display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 14px; }
.m-ic .zi { width: 26px; height: 26px; }
.m-ic img { width: 40px; height: 40px; object-fit: contain; }
.m-bots .m-ic { background: radial-gradient(circle at 50% 35%, #2a3350, var(--ink)); }
.m-galera .m-ic { background: var(--redgrad); color: #fff; }
.m-txt { display: grid; min-width: 0; }
.m-txt b { font: 800 21px/1.1 var(--disp); }
.m-txt small { color: var(--muted); font-size: 13px; font-weight: 700; }
.m-rec { display: grid; justify-items: end; font: 800 12px/1.2 var(--ui); color: var(--muted); 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(--redgrad); border: 2px solid var(--ink); border-radius: 99px; font-size: 11px; animation: beat 1.2s infinite; }
.menu-row { display: grid; grid-template-columns: 1fr 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(14 16 22 / .9), rgb(14 16 22 / .55) 45%, rgb(14 16 22 / .1) 80%); }
  .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; justify-items: start; padding: 10px 14px; text-align: left; } .btn.lvl b { font: 800 19px/1.1 var(--disp); } .btn.lvl small { color: var(--muted); font-weight: 700; }
.btn.lvl:nth-child(1) { background: linear-gradient(180deg, #F2FFE6, #D5EDC0); } .btn.lvl:nth-child(2) { background: var(--goldgrad); } .btn.lvl:nth-child(3) { color: #fff; background: var(--redgrad); } .btn.lvl:nth-child(3) small { color: #ffd9de; }

/* ---------- arena ---------- */
#play { pointer-events: none; padding: 0; animation: none; }
#play > * { pointer-events: auto; }
.hud { position: absolute; top: max(10px, env(safe-area-inset-top)); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.h-mid { position: absolute; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 5px; pointer-events: none; }
.h-time { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 16px; color: var(--gold3); background: linear-gradient(180deg, #262C3D, var(--ink)); border: 3px solid var(--gold); border-radius: 14px; box-shadow: 0 4px 0 var(--ink), 0 0 0 2px var(--ink); }
.h-time b { font: 800 26px/1 var(--disp); font-variant-numeric: tabular-nums; letter-spacing: .04em; min-width: 3.6ch; text-align: center; }
.h-time .x2 { display: none; padding: 1px 6px; color: var(--ink); background: var(--goldgrad); border: 2px solid var(--ink); border-radius: 8px; font: 900 13px/1.2 var(--ui); }
.h-time.hot { border-color: var(--red); color: #fff; box-shadow: 0 4px 0 var(--ink), 0 0 0 2px var(--ink), 0 0 18px rgb(255 61 90 / .7); }
.h-time.hot .x2 { display: inline-block; animation: beat .8s infinite; }
.h-time.end b { animation: beat .5s infinite; color: #FFD0D6; }
.h-round { padding: 1px 10px; color: var(--gold3); background: rgb(14 16 22 / .7); border-radius: 99px; font: 800 11px/1.3 var(--ui); letter-spacing: .1em; white-space: nowrap; }
.h-round:empty { display: none; }
.h-king { display: flex; align-items: center; gap: 6px; padding: 3px 12px 3px 6px; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, var(--ivory2)); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 0 3px 0 var(--ink); font: 700 13px/1.2 var(--ui); white-space: nowrap; max-width: 78vw; }
.h-king span { overflow: hidden; text-overflow: ellipsis; }
.h-king.mine { color: var(--ink); background: var(--goldgrad); animation: glowK 1.2s ease-in-out infinite; }
@keyframes glowK { 50% { box-shadow: 0 3px 0 var(--ink), 0 0 18px rgb(200 255 61 / .9); } }
.h-board { display: grid; gap: 3px; margin: 0 0 0 auto; padding: 6px; list-style: none; min-width: 148px; background: rgb(14 16 22 / .72); border: 2px solid rgb(200 255 61 / .55); border-radius: 12px; backdrop-filter: blur(4px); }
.h-board li { display: grid; grid-template-columns: 16px 10px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 2px 6px; border-radius: 8px; font: 700 12.5px/1.3 var(--ui); }
.h-board .hp { color: var(--soft); font-weight: 800; }
.h-board i { width: 10px; height: 10px; background: var(--c); border: 1.5px solid #fff; border-radius: 50%; }
.h-board .hn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-board b { color: var(--gold3); font-variant-numeric: tabular-nums; }
.h-board li.me { background: rgb(255 255 255 / .14); }
.h-board li.king { background: linear-gradient(90deg, rgb(200 255 61 / .4), transparent); }
.h-board li.king .hn::before { content: "▶ "; color: var(--gold); }
.h-slot { position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 6px; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, var(--ivory2)); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink), 0 0 0 3px var(--c, var(--gold)) inset; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.h-slot span { display: grid; line-height: 1.05; } .h-slot small { color: var(--muted); font: 800 10px/1 var(--ui); letter-spacing: .1em; } .h-slot b { font: 800 16px/1.1 var(--disp); }
.h-slot kbd { display: grid; place-items: center; width: 28px; height: 28px; color: #fff; background: var(--ink); border-radius: 8px; font: 800 14px/1 var(--ui); }
.feed { position: absolute; left: max(12px, env(safe-area-inset-left)); top: calc(max(10px, env(safe-area-inset-top)) + 58px); display: grid; gap: 4px; pointer-events: none !important; }
.fd { display: flex; align-items: center; gap: 5px; padding: 3px 10px; color: #fff; background: rgb(14 16 22 / .7); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; font: 600 12.5px/1.3 var(--ui); animation: fdIn .3s ease-out; transition: opacity .4s, transform .4s; }
.fd b { color: var(--c, #fff); font-weight: 800; }
.fd.out { opacity: 0; transform: translateX(-12px); }
@keyframes fdIn { from { opacity: 0; transform: translateX(-16px); } }
.crown-ptr { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none !important; z-index: 4; }
.crown-ptr img { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgb(200 255 61 / .9)); animation: beat 1s infinite; }
.cp-arrow { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, rgb(14 16 22 / .75) 55%, transparent 56%); }
.cp-arrow::after { content: ""; position: absolute; right: -9px; top: 50%; margin-top: -9px; border: 9px solid transparent; border-left: 12px solid var(--gold); }
.stick-zone { position: absolute; left: 0; top: 96px; bottom: 0; width: 56%; touch-action: none; }
.stick { position: absolute; left: 0; top: 0; width: 120px; height: 120px; display: grid; place-items: center; border: 3px solid rgb(200 255 61 / .85); border-radius: 50%; background: radial-gradient(circle, rgb(14 16 22 / .15), rgb(14 16 22 / .45)); opacity: 0; pointer-events: none !important; transition: opacity .12s; }
.stick.on { opacity: 1; }
.stick-knob { width: 56px; height: 56px; background: var(--goldgrad); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 rgb(0 0 0 / .45); }
.ctl { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: end; gap: 10px 12px; padding: 0 max(16px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) 0; pointer-events: none !important; touch-action: none; }
.ctl > * { pointer-events: auto; }
.ctl button { position: relative; display: grid; place-items: center; align-content: center; padding: 0; color: var(--ink); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 6px 0 #05060a, inset 0 3px 0 rgb(255 255 255 / .5); touch-action: none; -webkit-tap-highlight-color: transparent; opacity: .95; }
.ctl button .zi { width: 30px; height: 30px; }
.ctl button .lb { font: 800 11px/1 var(--ui); letter-spacing: .04em; }
.ctl button.down { transform: translateY(4px); box-shadow: 0 2px 0 #05060a; }
.ctl .ctl-d { grid-column: 2; grid-row: 1 / 3; width: 116px; height: 116px; background: var(--goldgrad); }
.ctl .ctl-d .zi { width: 38px; height: 38px; } .ctl .ctl-d .lb { font-size: 10.5px; margin-top: -1px; }
.ctl .ctl-d.cool { filter: saturate(.4) brightness(.9); }
.ctl .ctl-d .cd { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); pointer-events: none; }
.ctl .ctl-d .cd circle { fill: none; stroke: var(--gold3); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: var(--off, 0); filter: drop-shadow(0 2px 0 var(--ink)); }
.ctl .ctl-j { grid-column: 1; grid-row: 2; width: 78px; height: 78px; background: linear-gradient(180deg, #FFFFFF, var(--ivory2)); }
.ctl .ctl-j .zi { width: 26px; height: 26px; } .ctl .ctl-j .lb { font-size: 11px; margin-top: -3px; }
.ctl .ctl-u { grid-column: 1; grid-row: 1; justify-self: end; width: 70px; height: 70px; margin-bottom: 4px; color: #fff; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c, #3a3f5a) 70%, #fff), var(--c, #3a3f5a)); }
.ctl .ctl-u:not(.has) { opacity: .55; }
.ctl .ctl-u.has { animation: pwBeat 1.2s ease-in-out infinite; }
@keyframes pwBeat { 50% { box-shadow: 0 6px 0 #05060a, 0 0 18px var(--c); } }
.ctl .ctl-u .uimg { display: grid; place-items: center; height: 44px; } .ctl .ctl-u .uimg .zi { width: 22px; height: 22px; }
.ctl .ctl-u .lb { font-size: 9.5px; margin-top: -4px; text-shadow: 0 1px 0 #000; }
.ctl button.down.ctl-j { background: var(--goldgrad); } .ctl button.down.ctl-d { background: var(--redgrad); color: #fff; }
@media (orientation: landscape) and (max-height: 520px) { .ctl .ctl-d { width: 98px; height: 98px; } .ctl .ctl-j { width: 66px; height: 66px; } .ctl .ctl-u { width: 60px; height: 60px; } .ctl .ctl-u .uimg { height: 36px; } .stick-zone { top: 70px; } .h-board { min-width: 118px; padding: 4px; gap: 1px; } .h-board li { font-size: 11px; padding: 1px 5px; gap: 5px; } .h-board li:nth-child(n+4) { display: none; } .feed { top: 54px; } }
@media (max-width: 400px) { .ctl .ctl-d { width: 102px; height: 102px; } .ctl .ctl-j { width: 70px; height: 70px; } .ctl .ctl-u { width: 62px; height: 62px; } }
@media (orientation: portrait) and (max-width: 640px) {
  .hud { padding-top: 2px; }
  .h-mid { position: static; transform: none; margin: 0 auto; }
  .h-board { position: absolute; right: 0; top: 108px; min-width: 0; padding: 4px; }
  .h-board li { font-size: 11px; grid-template-columns: 12px 8px minmax(0, 72px) auto; padding: 1px 4px; gap: 4px; }
  .feed { top: calc(max(10px, env(safe-area-inset-top)) + 108px); }
  .hud::after { content: ""; width: 42px; flex: none; }
}
.big-txt { position: absolute; left: 50%; top: 36%; z-index: 30; padding: 0 10px; transform: translate(-50%, -50%) scale(.4); opacity: 0; pointer-events: none; color: var(--gold3); font: 900 clamp(70px, 22vw, 150px)/1 var(--disp); white-space: nowrap; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink), 0 0 28px rgb(200 255 61 / .55); }
.big-txt.small { color: #fff; font-size: clamp(32px, 9.5vw, 72px); -webkit-text-stroke-width: 5px; }
.big-txt.gold { color: var(--gold); }
.big-txt.on { animation: bigIn .9s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes bigIn { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(-6deg); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(2deg); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); } }
.nogl { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: var(--ink); } .nogl .card { max-width: 380px; text-align: center; }
.pause { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; background: rgb(14 16 22 / .78); 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; }
.lscore { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 14px; background: rgb(14 16 22 / .72); backdrop-filter: blur(2px); }
.lscore .card { width: min(96vw, 520px); max-height: calc(100% - 20px); overflow-y: auto; }
.lscore h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.lscore h2 > span:first-child { display: flex; align-items: center; gap: 6px; }
.ls-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.ls-list li { display: grid; grid-template-columns: 34px 30px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 5px 10px; background: #fff; border: 2px solid var(--ink); border-left: 6px solid var(--c, var(--ink)); border-radius: 12px; font-weight: 800; animation: lineIn .3s ease-out backwards; }
.ls-list li.me { background: #EEFFD0; }
.ls-list img { width: 30px; height: 30px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; }
.ls-list .lt { color: var(--red2); font-size: 14px; font-variant-numeric: tabular-nums; }
.ls-list .lp { min-width: 44px; padding: 1px 8px; text-align: center; background: var(--goldgrad); border: 2px solid var(--ink); border-radius: 99px; }
.ls-list .ln { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-list.tot .ln { display: grid; line-height: 1.1; }
.ls-list.tot .ln small { color: var(--muted); font: 700 11.5px/1.2 var(--ui); overflow: hidden; text-overflow: ellipsis; }
.ls-next { margin: 10px 0 0; text-align: center; color: var(--muted); font-weight: 800; }
@keyframes lineIn { from { opacity: 0; transform: translateY(-6px); } }
.lscore .over-actions { position: sticky; bottom: -16px; margin: 12px -16px -16px !important; padding: 10px 16px 16px; background: var(--ivory2); border-radius: 0 0 16px 16px; }
.reacts-mini { position: absolute; top: calc(max(10px, env(safe-area-inset-top)) + 190px); right: max(12px, env(safe-area-inset-right)); display: flex; flex-direction: column; gap: 4px; }
.reacts-mini button { width: 40px; height: 40px; padding: 4px; background: rgb(14 16 22 / .5); border: 2px solid rgb(200 255 61 / .35); border-radius: 12px; }
@media (orientation: portrait) and (max-width: 640px) { .reacts-mini { flex-direction: column; top: calc(max(10px, env(safe-area-inset-top)) + 196px); bottom: auto; right: 8px; } .reacts-mini button { width: 34px; height: 34px; } }   /* coluna embaixo do mapinha: não cobre o botão PODER (v1.273.3) */
.keyhelp { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 14px; padding: 6px 14px; color: #fff; background: rgb(14 16 22 / .7); border: 1.5px solid rgb(200 255 61 / .4); border-radius: 99px; font: 700 13px/1.2 var(--ui); white-space: nowrap; pointer-events: none !important; }
.keyhelp kbd { display: inline-block; min-width: 22px; padding: 1px 6px; color: var(--ink); background: var(--ivory); border: 2px solid var(--ink); border-radius: 6px; font: 800 12px/1.3 var(--ui); text-align: center; }
.dotav { display: inline-block; width: 28px; height: 28px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c, #fff) 60%, #fff), var(--c, #fff)); border: 2px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 2px rgb(200 255 61 / .7); }

/* ---------- fim da partida ---------- */
#over { overflow-y: auto; background: radial-gradient(circle at 50% 30%, rgb(200 255 61 / .18), transparent 60%), rgb(14 16 22 / .7); }
.over-wrap { display: grid; width: 100%; max-width: 520px; margin: auto; }
.over-card { display: grid; gap: 10px; padding: 20px; text-align: center; border-radius: 22px; box-shadow: 0 9px 0 var(--ink), inset 0 0 0 3px var(--gold); animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.over-crown { margin: -64px auto -6px; line-height: 0; animation: crownIn .8s .1s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.over-crown img { filter: drop-shadow(0 0 16px rgb(200 255 61 / .9)); }
.over-card .kicker { color: var(--red); font: 800 12px/1 var(--ui); letter-spacing: .14em; }
.over-card h2 { margin: 0; font: 800 28px/1.1 var(--disp); }
.over-card .big { display: grid; justify-items: center; font: 900 64px/1 var(--disp); color: var(--gold2); font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 var(--ink); }
.over-card .big small { font: 700 15px/1.3 var(--ui); color: var(--muted); text-shadow: none; }
.over-card .flist li { grid-template-columns: 34px minmax(0, 1fr) auto; text-align: left; }
.over-card .flist .rn { display: flex; align-items: center; gap: 6px; } .over-card .flist .dotav { width: 18px; height: 18px; flex: none; }
.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; }
.modal-card h2 .zi { color: var(--gold2); }

/* ---------- 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)) + 96px); 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: 8px 14px; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, var(--ivory2)); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink), inset 0 0 0 2px var(--c, var(--gold)); font-weight: 700; animation: toastIn .35s cubic-bezier(.2, 1.6, .4, 1); }
.toast .t-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--ink); border-radius: 50%; }
.toast .t-ic .zi { width: 16px; height: 16px; color: var(--c, var(--gold)); } .toast .t-ic .pwi { width: 28px; height: 28px; }
.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(14 16 22 / .8); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 540px); max-height: 88vh; overflow-y: auto; padding: 22px; color: var(--ink); background: linear-gradient(180deg, #FFFFFF, var(--ivory) 70%, var(--ivory2)); border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 var(--ink), inset 0 0 0 3px var(--gold); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; box-shadow: 0 3px 0 var(--ink); }
.modal-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 40px 12px 0; font: 800 24px/1.1 var(--disp); }
.modal-card h3 { margin: 14px 0 6px; font: 800 17px/1.1 var(--disp); color: var(--red2); }
.modal-card ol, .modal-card ul { padding-left: 20px; } .modal-card li { margin-bottom: 7px; }
.top-list { display: grid; gap: 6px; margin: 0 0 12px; padding: 0 !important; list-style: none; }
.top-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; 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; }
.pw-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0 !important; list-style: none; }
.pw-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; padding: 6px 8px; background: #fff; border: 2px solid var(--ink); border-left: 5px solid var(--c); border-radius: 12px; font-size: 13px; }
.pw-list b { display: block; font: 800 15px/1.1 var(--disp); }
@media (max-width: 420px) { .pw-list { grid-template-columns: 1fr; } }

/* ================= Com a galera (sala ao vivo) ================= */
.mini-btn { padding: 4px 10px; color: var(--ink); background: var(--ivory); border: 2px solid var(--ink); border-radius: 99px; font: 800 12px/1.3 var(--ui); }
.mini-btn[aria-pressed="true"] { background: var(--redgrad); color: #fff; }
input[type=text], input:not([type]) { width: 100%; min-width: 0; padding: 11px 14px; color: var(--ink); background: #fff; border: 3px solid var(--ink); border-radius: 12px; font: 700 16px/1.2 var(--ui); outline: none; }
input:focus { box-shadow: 0 0 0 3px var(--gold); }
.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: var(--ivory); font-weight: 700; }
.wait.dark { color: var(--muted); }
.me-card { display: flex; align-items: center; gap: 14px; }
.av-big { position: relative; flex: none; width: 76px; height: 76px; padding: 0; background: #fff; border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink), 0 0 0 3px var(--gold); }
.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(--goldgrad); border: 2px solid var(--ink); border-radius: 50%; }
.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: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.me-fields small { color: var(--muted); font-size: 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; }
#gjoin, #globby, #gfinal { 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(--redgrad); border: 2px solid var(--gold); border-radius: 99px; font: 800 13px/1.2 var(--ui); letter-spacing: .1em; animation: beat 1.4s infinite; }
.gj-hero h2 { margin: 12px 0 6px; font: 800 clamp(21px, 5.3vw, 30px)/1.2 var(--disp); }
.gj-hero h2 em { font-style: normal; color: var(--gold); }
.gj-hero p { margin: 0; color: var(--soft); }
.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 / .55); 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; }
.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; color: #fff; background: radial-gradient(circle at 50% 0%, #34479a, var(--navy) 60%, var(--ink)); }
.code-head { display: flex; align-items: center; justify-content: space-between; }
.code-head small { color: var(--gold); font: 800 12px/1 var(--ui); letter-spacing: .14em; }
.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: var(--goldgrad); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 6px 0 #05060a, inset 0 2px 0 rgb(255 255 255 / .6); font: 900 clamp(34px, 10vw, 50px)/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(14 16 22 / .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: #fff; border: 2px solid var(--ink); border-bottom: 5px solid var(--c, var(--ink)); border-radius: 14px; text-align: center; animation: pop .4s cubic-bezier(.2, 1.6, .4, 1); }
.players li.off { opacity: .45; } .players li.me { background: #EEFFD0; }
.players img { width: 54px; height: 54px; background: #fff; border: 3px solid var(--c, 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%; }
.players .kick:hover { color: #fff; background: var(--red); }
.players .tagme { font-size: 11px; color: var(--muted); }
.settings { display: grid; gap: 12px; }
.set-block { display: grid; gap: 6px; min-width: 0; }
.set-block > small { color: var(--muted); font: 800 12px/1 var(--ui); letter-spacing: .1em; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.seg button { flex: 1; padding: 7px 4px; color: var(--ink); background: none; border: 0; border-radius: 9px; font: 800 14px/1 var(--ui); white-space: nowrap; }
.seg button.on { color: var(--gold3); background: linear-gradient(180deg, #2c3c84, var(--ink)); }
#segArena button { flex: 1 1 30%; font-size: 13px; }
.rules-view { display: grid; gap: 8px; }
.rv-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-help { margin: 2px 0 0; color: var(--muted); font: 700 12px/1.35 var(--ui); }
.start { width: 100%; }
.start .ico { animation: pulse 1.2s infinite; } @keyframes pulse { 50% { transform: scale(1.12); } }
.final-wrap { width: 100%; max-width: 980px; margin: 0 auto; display: grid; gap: 14px; }
.final-title { margin: 6px 0 0; text-align: center; color: var(--gold3); font: 900 clamp(30px, 8vw, 48px)/1 var(--disp); text-shadow: 0 4px 0 #05060a, 0 0 24px rgb(200 255 61 / .4); }
.final-title .zi { color: var(--gold); width: .9em; height: .9em; vertical-align: -.08em; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2vw, 18px); min-height: 260px; padding-top: 18px; }
.pod { display: grid; justify-items: center; gap: 6px; width: clamp(96px, 26vw, 170px); }
.pod img, .pod .pod-bot { width: clamp(64px, 16vw, 96px); height: clamp(64px, 16vw, 96px); background: #fff; border: 4px solid var(--c, var(--ink)); border-radius: 50%; box-shadow: 0 5px 0 #05060a, 0 0 0 3px 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: 12px 12px 0 0; font: 900 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(--goldgrad); animation-delay: .9s; } .pod.p1 img, .pod.p1 .pod-bot { animation-delay: 1.5s; width: clamp(76px, 19vw, 116px); height: clamp(76px, 19vw, 116px); }
.pod.p2 .step { height: 110px; background: linear-gradient(180deg, #F2F4FA, #B8BFD0); animation-delay: .5s; } .pod.p2 img, .pod.p2 .pod-bot { animation-delay: 1.1s; }
.pod.p3 .step { height: 80px; background: linear-gradient(180deg, #F3C9A0, #C88A55); animation-delay: .1s; } .pod.p3 img, .pod.p3 .pod-bot { animation-delay: .7s; }
.pod.p1 .crown { line-height: 0; margin-bottom: -18px; z-index: 2; 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; } }
@keyframes wobble { 0%, 100% { transform: rotate(var(--rot)); } 50% { transform: rotate(calc(var(--rot) * -1)) translateY(-4px); } }
.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: #fff; border: 2px solid var(--ink); border-left: 5px solid var(--c, var(--ink)); border-radius: 12px; font-weight: 800; }
.flist li.me { background: #EEFFD0; }
.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; }
.flist .fl-sub { color: var(--muted); font-weight: 700; font-size: 12px; }
.reward { display: grid; gap: 8px; min-height: 40px; }
.reward .xp-big { font: 900 40px/1 var(--disp); color: var(--gold2); text-shadow: 0 2px 0 var(--ink); } .reward .xp-big small { font-size: 18px; }
.reward p { margin: 0; } .reward .soft { color: var(--muted); } .reward .gold { color: #a06a00; 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(--goldgrad); 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; }
.boot { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgb(14 16 22 / .88); color: var(--gold3); font-weight: 700; }
.qr { display: grid; place-items: center; padding: 14px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; }
.qr svg { width: min(70vw, 280px); height: auto; }
.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; } }

/* ---------- celular deitado / tela baixa ---------- */
@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-img { width: min(34vw, 250px); }
  .tag { display: none; } .tm-sw { width: 40px; height: 44px; }
  .mode { padding: 7px 10px; } .m-ic { width: 40px; height: 40px; } .m-ic img { width: 30px; height: 30px; } .m-txt b { font-size: 17px; } .m-txt small { display: none; } .modes { gap: 8px; }
  .over-card { padding: 12px; gap: 6px; } .over-card .big { font-size: 42px; } .over-card h2 { font-size: 21px; } .over-crown { display: none; }
  .over-card .flist { grid-template-columns: 1fr 1fr; } .over-card .flist li { padding: 3px 8px; font-size: 13px; }
  .over-wrap { max-width: 720px; }
  .lscore { padding: 6px; } .lscore h2 { margin-bottom: 6px; font-size: 17px; } .ls-list { grid-template-columns: 1fr 1fr; gap: 4px; } .ls-list li { padding: 2px 8px; grid-template-columns: 26px 22px minmax(0, 1fr) auto auto; gap: 6px; } .ls-list.tot .ln small { display: none; } .dotav { width: 22px; height: 22px; } .lscore .card { width: min(96vw, 720px); padding: 10px 12px; } .lscore .btn.wide { padding: 8px; font-size: 16px; }
  .h-time b { font-size: 21px; } .h-king { font-size: 12px; padding: 2px 10px 2px 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ================= Rouba Bandeira: peças próprias ================= */
/* fundo da quadra: grafite com linhas finas de neon */
#menu { background:
  radial-gradient(ellipse at 30% 40%, rgb(14 16 22 / .15), rgb(14 16 22 / .82) 75%),
  linear-gradient(90deg, rgb(47 123 255 / .18), transparent 30%, transparent 70%, rgb(255 61 90 / .18)),
  linear-gradient(180deg, rgb(14 16 22 / .5), rgb(14 16 22 / .05) 35%, rgb(14 16 22 / .85)); }
@media (min-width: 860px) { #menu { background: linear-gradient(90deg, rgb(14 16 22 / .92), rgb(14 16 22 / .55) 45%, rgb(14 16 22 / .08) 80%), linear-gradient(0deg, rgb(255 61 90 / .14), transparent 40%); } }
.card { border-radius: 14px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 2px var(--gold); }
.card h2, .card h3, .modal-card h2, .modal-card h3 { letter-spacing: .01em; text-transform: none; }
.mode { border-radius: 14px; box-shadow: 0 6px 0 var(--ink), inset 0 0 0 2px var(--gold); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.mode:hover { box-shadow: 0 9px 0 var(--ink), inset 0 0 0 2px var(--gold); }
.m-bots .m-ic { background: radial-gradient(circle at 50% 35%, #3a4462, var(--ink)); }
.m-txt b, .m-rec b, .btn.lvl b, .tm-box b { font-weight: 700; }
.m-galera .m-ic { background: var(--bluegrad); }
.chip-orig { border-radius: 6px; transform: skewX(-8deg); }
.title-img { width: min(80vw, 440px); }
.tag b { color: var(--gold); }
.btn.lvl:nth-child(1) { background: linear-gradient(180deg, #F2FFE0, #D7F0B8); }
.btn.lvl:nth-child(2) { background: var(--goldgrad); }

/* escolha do time no menu */
.team-pick { display: grid; justify-items: center; gap: 6px; }
.team-pick > small { color: var(--gold); font: 800 11px/1 var(--ui); letter-spacing: .18em; text-shadow: 0 1px 4px #000; }
.tp-row { display: flex; align-items: center; gap: 10px; }
.tp { display: flex; align-items: center; gap: 8px; min-width: 132px; padding: 8px 14px 8px 8px; color: #fff; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink); opacity: .55; filter: saturate(.55); transition: transform .14s, opacity .14s, filter .14s, box-shadow .14s; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.tp img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .4)); }
.tp b { font: 700 19px/1 var(--disp); text-shadow: 0 2px 0 rgb(0 0 0 / .35); }
.tp.t0 { background: var(--bluegrad); } .tp.t1 { background: var(--redgrad); }
.tp.on { opacity: 1; filter: none; transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 0 var(--ink), 0 0 0 3px var(--gold), 0 0 22px rgb(200 255 61 / .5); }
.tp:active { transform: translateY(2px); }
.tp-vs { font: 700 22px/1 var(--disp); color: var(--gold); text-shadow: 0 2px 0 var(--ink), 0 0 12px rgb(200 255 61 / .6); }
body[data-team="0"] .m-bots .m-ic img { content: url("img/i-time1.webp"); }
body[data-team="1"] .m-bots .m-ic img { content: url("img/i-time0.webp"); }

/* placar Azul × Vermelho */
.score-bar { display: flex; align-items: stretch; filter: drop-shadow(0 4px 0 var(--ink)); }
.sc-team { display: flex; align-items: center; gap: 6px; padding: 3px 12px; color: #fff; border: 3px solid var(--ink); }
.sc-team img { width: 26px; height: 26px; object-fit: contain; }
.sc-team.t0 { background: var(--bluegrad); border-right: 0; border-radius: 12px 0 0 12px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.sc-team.t1 { background: var(--redgrad); border-left: 0; border-radius: 0 12px 12px 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.sc-team.mine { box-shadow: inset 0 0 0 2px var(--gold); }
.sc-num { display: inline-block; min-width: 1.2ch; font: 700 30px/1 var(--disp); text-align: center; text-shadow: 0 2px 0 rgb(0 0 0 / .4); font-variant-numeric: tabular-nums; }
.sc-num.bump { animation: scBump .55s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes scBump { 0% { transform: scale(1); } 35% { transform: scale(1.7); color: var(--gold); } 100% { transform: scale(1); } }
.score-bar .h-time { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; border-color: var(--ink); padding: 4px 12px; background: linear-gradient(180deg, #262C3D, var(--ink)); }
.score-bar .h-time b { font-size: 24px; color: #fff; }
.h-time.ot b { color: var(--gold); }
.h-time.hot { box-shadow: 0 0 18px rgb(200 255 61 / .55) !important; }
.h-flags { display: flex; gap: 6px; }
.hf { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; color: #fff; background: rgb(14 16 22 / .72); border-radius: 99px; font: 700 11.5px/1.4 var(--ui); white-space: nowrap; max-width: 46vw; overflow: hidden; }
.hf.t0 { border: 1.5px solid var(--blue); } .hf.t1 { border: 1.5px solid var(--red); }
.hf .fs.carry { color: var(--gold); animation: beat .8s infinite; } .hf .fs.drop { color: #FFD0D6; }
.h-goal { padding: 1px 10px; color: var(--gold3); background: rgb(14 16 22 / .6); border-radius: 99px; font: 700 10.5px/1.4 var(--ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.mini { width: 176px; height: 96px; margin-left: auto; background: rgb(14 16 22 / .55); border: 2px solid rgb(200 255 61 / .5); border-radius: 10px; backdrop-filter: blur(3px); }
.h-tip { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 96px); transform: translateX(-50%); padding: 5px 14px; color: #fff; background: rgb(14 16 22 / .78); border: 1.5px solid rgb(200 255 61 / .55); border-radius: 99px; font: 600 13px/1.3 var(--ui); white-space: nowrap; pointer-events: none !important; animation: fdIn .3s ease-out; }
.h-tip b { color: var(--gold); }
.fd { border-left-color: var(--gold); }
.fd b { color: var(--c, #fff); }
.fptr .cp-arrow::after { border-left-color: var(--c, var(--gold)); }
.fptr img { filter: drop-shadow(0 0 6px var(--c, #fff)); }
.fptr.alert img { animation: beat .45s infinite; }
.fptr.alert .cp-arrow { background: radial-gradient(circle, rgb(255 61 90 / .55) 55%, transparent 56%); }
.big-txt { color: #fff; text-shadow: 0 7px 0 var(--ink), 0 0 28px rgb(200 255 61 / .5); }
.big-txt.lime { color: var(--gold); }
.big-txt.red, .big-txt.t1 { color: #FF8296; text-shadow: 0 7px 0 var(--ink), 0 0 28px rgb(255 61 90 / .6); }
.big-txt.t0 { color: #8DB8FF; text-shadow: 0 7px 0 var(--ink), 0 0 28px rgb(47 123 255 / .6); }
.big-txt.ice { color: #BFF3FF; text-shadow: 0 7px 0 var(--ink), 0 0 28px rgb(127 216 255 / .7); }
.big-txt.small { font-size: clamp(30px, 8.6vw, 66px); }
@media (orientation: portrait) and (max-width: 640px) {
  .mini { position: absolute; right: 0; top: 100px; width: 132px; height: 57px; }
  .sc-num { font-size: 24px; } .score-bar .h-time b { font-size: 20px; } .sc-team { padding: 2px 8px; } .sc-team img { width: 22px; height: 22px; }
  .h-tip { top: auto; bottom: 168px; font-size: 12px; white-space: normal; text-align: center; max-width: 86vw; }
  .feed { top: calc(max(10px, env(safe-area-inset-top)) + 104px); max-width: 58vw; }
  .h-goal { display: none; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .mini { width: 132px; height: 57px; } .h-goal { display: none; } .h-tip { top: auto; bottom: 14px; }
  .sc-num { font-size: 24px; } .score-bar .h-time b { font-size: 20px; }
}

/* fim da partida */
.over-flag { margin: -70px auto -8px; line-height: 0; animation: crownIn .8s .1s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.over-flag img { filter: drop-shadow(0 0 16px rgb(200 255 61 / .7)); }
.big-score { display: flex; align-items: center; justify-content: center; gap: 14px; }
.big-score span { display: grid; place-items: center; min-width: 72px; padding: 4px 14px; color: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); font: 700 54px/1 var(--disp); font-variant-numeric: tabular-nums; }
.big-score .t0 { background: var(--bluegrad); } .big-score .t1 { background: var(--redgrad); }
.big-score .mine { box-shadow: 0 5px 0 var(--ink), 0 0 0 3px var(--gold); }
.big-score small { color: var(--muted); font: 700 26px/1 var(--disp); }
#gfinal .big-score small { color: var(--soft); }
.me-line { margin: 0; color: var(--muted); font-weight: 700; } .me-line b { color: var(--ink); }
.teams-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; text-align: left; }
.teams-res h4 { margin: 0 0 6px; font: 700 16px/1 var(--disp); }
.flist.res { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.flist.res li { display: grid; grid-template-columns: minmax(0, 1fr) 34px 42px 42px; align-items: center; gap: 4px; padding: 4px 6px; background: #fff; border: 2px solid var(--ink); border-left: 5px solid var(--c, var(--ink)); border-radius: 10px; font: 800 13px/1.2 var(--ui); }
.flist.res li > span:not(.rn) { text-align: center; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.flist.res li.hdr { padding: 0 6px; background: none; border: 0; color: var(--muted); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.flist.res li.me { background: #EEFFD0; }
.flist.res .rn { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flist.res .dotav { width: 14px; height: 14px; flex: none; }
@media (max-width: 460px) { .teams-res { grid-template-columns: 1fr; } }
.seg.arena-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.seg.arena-pick button { padding: 6px 12px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; font: 800 13px/1.2 var(--ui); }
.seg.arena-pick button.on { background: var(--goldgrad); box-shadow: 0 3px 0 var(--ink); }

/* sala: colunas dos times */
.tcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.tcol { display: grid; align-content: start; gap: 6px; padding: 8px; border: 2px solid var(--ink); border-radius: 12px; background: color-mix(in srgb, var(--tc) 12%, #fff); }
.tcol.t0 { --tc: var(--blue); } .tcol.t1 { --tc: var(--red); }
.tc-head { display: flex; align-items: center; gap: 6px; color: var(--tc); } .tc-head b { font: 700 17px/1 var(--disp); } .tc-head small { margin-left: auto; color: var(--muted); font-weight: 800; }
.tlist { display: grid !important; grid-template-columns: 1fr !important; gap: 4px !important; margin: 0 !important; padding: 0 !important; }
.tlist li { display: flex !important; align-items: center; gap: 6px; padding: 4px 6px !important; min-height: 0 !important; background: #fff; border: 2px solid var(--ink); border-radius: 10px; font: 800 13px/1.2 var(--ui); }
.tlist li img { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; flex: none; }
.tlist li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.tlist li.bot { opacity: .7; border-style: dashed; }
.tlist li.me { box-shadow: inset 0 0 0 2px var(--gold); }
.tlist li.off { opacity: .45; }
.tlist li .tg { padding: 0 6px; color: #fff; background: var(--ink); border-radius: 6px; font-size: 10px; }
.tlist li .mv { width: 26px; height: 26px; padding: 0; border: 2px solid var(--ink); border-radius: 8px; background: var(--ivory); font-weight: 900; }
.tlist.watch:empty { display: none !important; }
.tlist.watch { margin-top: 8px !important; }
.tc-join { justify-self: stretch; }
.tc-join.on { display: none; }
.mini-btn .zi { width: 14px; height: 14px; vertical-align: -2px; }
.btn.lvl { justify-content: stretch; justify-items: start; text-align: left; }
.flist.res .pwi { width: 16px; height: 16px; }
@media (orientation: portrait) and (max-width: 640px) {
  .toasts { top: calc(max(10px, env(safe-area-inset-top)) + 186px); width: min(86vw, 360px); }
  .toast { padding: 6px 10px; font-size: 13px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .toasts { top: auto; bottom: 60px; width: min(52vw, 380px); }
  .toast { padding: 5px 10px; font-size: 12.5px; } .toast .t-ic { width: 26px; height: 26px; }
}

/* tutorial (v1.275.2) */
.tuto { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 96px); z-index: 6; width: min(440px, calc(100% - 24px)); transform: translateX(-50%); padding: 12px 14px 10px; color: #fff; background: rgb(14 16 22 / .9); border: 2px solid #C8FF3D; border-radius: 18px; box-shadow: 0 6px 0 rgb(0 0 0 / .45); font: 600 14px/1.35 var(--ui); }
.tuto.pop { animation: tuPop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tuPop { from { transform: translateX(-50%) scale(.9); opacity: 0; } }
.tu-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tu-n { padding: 2px 9px; color: #0E1016; background: #C8FF3D; border-radius: 99px; font: 900 11px/1.5 var(--ui); letter-spacing: .04em; }
.tu-skip { padding: 4px 10px; color: #fff; background: rgb(255 255 255 / .12); border: 0; border-radius: 99px; font: 800 12px/1.2 var(--ui); cursor: pointer; pointer-events: auto; }
.tu-t { display: block; font: 900 18px/1.2 var(--disp, var(--ui)); }
.tuto p { margin: 4px 0 6px; color: #E6E9EF; }
.tu-chk { display: flex; gap: 8px; margin-bottom: 6px; }
.tu-chk span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; background: rgb(255 255 255 / .1); border-radius: 99px; font: 800 13px/1.3 var(--ui); }
.tu-chk span.on { color: #0E1016; background: #C8FF3D; }
.tu-chk .zi { width: 15px; height: 15px; }
.tu-bar { height: 5px; background: rgb(255 255 255 / .14); border-radius: 99px; overflow: hidden; }
.tu-bar i { display: block; height: 100%; background: #C8FF3D; transition: width .4s; }
@media (orientation: portrait) and (max-width: 640px) { .tuto { top: calc(max(10px, env(safe-area-inset-top)) + 64px); font-size: 13px; } .tu-t { font-size: 16px; } }
@media (max-height: 500px) { .tuto { top: 64px; left: auto; right: 12px; transform: none; width: min(340px, 44vw); padding: 8px 10px; } .tuto.pop { animation: none; } .tuto p { font-size: 12px; } }
.tuto { pointer-events: none !important; } .tuto .tu-skip { pointer-events: auto; }

/* times da sala sem estourar a coluna no celular (v1.275.3) */
.tcol, .tlist, .tlist li { min-width: 0; }
.tlist li { flex-wrap: wrap; row-gap: 4px; }
.tlist li .tg { padding: 1px 6px; font-size: 10px; }
.tlist li .acts { display: inline-flex; gap: 4px; margin-left: auto; }
.tlist li .mv { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; font-size: 14px; }
.tlist li .mv .zi { width: 15px; height: 15px; }
.tlist li .mv.own { color: #0E1016; background: #C8FF3D; }
@media (max-width: 560px) { .tlist li .nm { flex: 1 1 calc(100% - 34px); } .tlist li .acts { margin-left: 0; } }

/* ======== Queimada (v1.280.0): quatro botões, rodada, poderes ativos, bola no botão ======== */
.mini { width: 168px; height: 72px; }
.h-time { flex-direction: column; gap: 0; line-height: 1; }
.h-time small { font: 800 9.5px/1.2 var(--ui); letter-spacing: .14em; color: var(--gold3); opacity: .9; }
.h-time.ot small { color: #FFD0D6; animation: beat .8s infinite; }
.hf b { font: 800 13px/1 var(--disp); }
.hf .cap { display: inline-flex; color: var(--gold); } .hf .cap .zi { width: 13px; height: 13px; }
.h-slot { gap: 6px; padding: 4px 6px; }
.pws { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 3px; background: color-mix(in srgb, var(--c) 22%, #fff); border: 2px solid var(--ink); border-radius: 99px; }
.pws b { font: 800 13px/1 var(--disp); }
.ctl { grid-template-columns: auto auto auto; }
.ctl .ctl-u { grid-column: 3; grid-row: 1 / 3; justify-self: auto; width: 116px; height: 116px; margin: 0; color: #fff; --c: #FF3D5A; background: var(--redgrad); }
.ctl .ctl-u:not(.has) { opacity: .7; filter: saturate(.6); }
.ctl .ctl-u.fire { --c: #FF7A1A; background: linear-gradient(180deg, #FFD23F, #FF7A1A 55%, #B83A00); }
.ctl .ctl-u .uimg { height: 56px; }
.ctl .ctl-u .uimg::before { content: ""; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(circle at 35% 30%, #fff 0 10%, transparent 11%), linear-gradient(160deg, #FFD23F 0 30%, #FF3D2A 30% 48%, #fff 48% 54%, #FF3D2A 54% 72%, #FFD23F 72%); box-shadow: inset -4px -5px 0 rgb(0 0 0 / .18); }
.ctl .ctl-u .lb { font-size: 11px; margin-top: -2px; }
.ctl .ctl-c { grid-column: 2; grid-row: 1; width: 78px; height: 78px; color: var(--ink); background: var(--goldgrad); }
.ctl .ctl-c .zi { width: 28px; height: 28px; } .ctl .ctl-c .lb { font-size: 9.5px; margin-top: -3px; }
.ctl .ctl-c.cool { filter: saturate(.3) brightness(.85); }
.ctl .ctl-j { grid-column: 2; grid-row: 2; width: 70px; height: 70px; justify-self: center; }
.ctl .ctl-d { grid-column: 1; grid-row: 2; width: 70px; height: 70px; background: linear-gradient(180deg, #FFFFFF, var(--ivory2)); }
.ctl .ctl-d .zi { width: 24px; height: 24px; } .ctl .ctl-d .lb { font-size: 8.5px; margin-top: -2px; }
.ctl button.down.ctl-u { background: var(--goldgrad); color: var(--ink); } .ctl button.down.ctl-c { background: #fff; } .ctl button.down.ctl-d { background: var(--goldgrad); color: var(--ink); }
@media (orientation: landscape) and (max-height: 520px) {
  .ctl .ctl-u { width: 98px; height: 98px; } .ctl .ctl-u .uimg { height: 44px; } .ctl .ctl-u .uimg::before { width: 34px; height: 34px; }
  .ctl .ctl-c { width: 66px; height: 66px; } .ctl .ctl-j, .ctl .ctl-d { width: 60px; height: 60px; }
  .ctl .ctl-c .lb, .ctl .ctl-d .lb { font-size: 8px; }
}
@media (max-width: 400px) { .ctl .ctl-u { width: 102px; height: 102px; } .ctl .ctl-c { width: 70px; height: 70px; } .ctl .ctl-j, .ctl .ctl-d { width: 62px; height: 62px; } }
@media (max-width: 560px) { .mini { width: 132px; height: 57px; } }
