/* Zovy Boom Castle — o campo de batalha é desenhado no canvas (#cv); menu, placar, munições e salas ficam por cima.
   Tema escuro de guerra: ferro, ouro e brasa. O game.js mede o placar de cima e a barra de munição para saber onde a câmera mostra o campo. */
:root { --ink: #0f0b0d; --iron: #1d1a20; --iron2: #2a262e; --line: #4a4250; --gold: #E8B341; --gold2: #FFD772; --ember: #FF6A2B; --red: #E5412E; --blue: #4FA3FF; --lime: #C6F432; --cyan: #4FC3FF;
  --text: #F3ECE2; --mute: #b8ab9c; --disp: "Cinzel", Georgia, serif; --ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; --violet: #8a5cff; --pink: #ff4fa3; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #120c10; }
body { font: 600 16px/1.35 var(--ui); color: var(--text); touch-action: manipulation; -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 30%, #3a2224, #120c10 70%); }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.screen.on { display: flex; animation: screenIn .32s cubic-bezier(.2, .9, .3, 1.2); }
.screen.panel { background: radial-gradient(circle at 50% 110%, rgb(255 106 43 / .18), transparent 60%), linear-gradient(165deg, #2a1d22 0%, #18121a 55%, #0d090c 100%); }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.top-btns { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---------- peças básicas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; color: var(--text); background: linear-gradient(180deg, #34303a, #221f26); border: 2px solid var(--line); border-radius: 12px; box-shadow: 0 4px 0 #0a0709, inset 0 1px 0 rgb(255 255 255 / .08); font: 800 16px/1.1 var(--ui); transition: transform .12s, box-shadow .12s, filter .15s; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a0709; }
.btn.gold { color: #2a1700; background: linear-gradient(180deg, #FFE08A, #E8B341 55%, #B97F1B); border-color: #6b4300; text-shadow: 0 1px 0 rgb(255 255 255 / .35); }
.btn.red { color: #fff; background: linear-gradient(180deg, #ff6a50, #c62f1f); border-color: #5a1208; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; box-shadow: 0 3px 0 #0a0709; }
.btn .zi { width: 1.1em; height: 1.1em; }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn:focus-visible, .icon-btn:focus-visible, .mode:focus-visible, .am:focus-visible { outline: 3px solid var(--gold2); outline-offset: 3px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; color: var(--text); background: linear-gradient(180deg, #34303a, #221f26); border: 2px solid var(--line); border-radius: 12px; box-shadow: 0 3px 0 #0a0709; }
.icon-btn .zi { width: 22px; height: 22px; }
.icon-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a0709; }
.icon-btn.off { color: #786d80; }
.pill { display: inline-block; padding: 2px 10px; color: #2a1700; background: var(--gold); border: 1px solid #6b4300; border-radius: 99px; font: 800 12px/1.4 var(--ui); white-space: nowrap; vertical-align: middle; }
.pill.violet { background: #3b2f4a; color: var(--gold2); border-color: var(--line); }
.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; flex: none; }
.logo { height: 30px; width: auto; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .6)); }
.chip-orig { padding: 3px 10px; color: #2a1700; background: var(--gold); border-radius: 99px; font: 800 11px/1.3 var(--ui); letter-spacing: .12em; }
.coinpill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; background: rgb(15 11 13 / .75); border: 1px solid #6b4300; border-radius: 99px; font: 800 15px/1 var(--ui); color: var(--gold2); font-variant-numeric: tabular-nums; }
.cp-c, .am-ic, .up-ic { flex: none; }
.cp-c { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFE89A, #E8B341 55%, #9a6410); box-shadow: inset 0 0 0 2px #7a4e00; }
.card { background: linear-gradient(180deg, #24202a, #18151c); color: var(--text); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .05); padding: 14px; }
.card h2, .card h3 { margin: 0; font: 900 20px/1.1 var(--disp); letter-spacing: .02em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.card-head small { color: var(--mute); font-size: 12px; }

/* ---------- menu ---------- */
#menu { overflow-y: auto; }
.menu-art { position: absolute; inset: 0; background: url("img/menu.webp") center / cover no-repeat, #1a1014; }
.menu-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 8 10 / .55), rgb(12 8 10 / .15) 35%, rgb(12 8 10 / .92) 78%); }
.menu-body { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; gap: 14px; width: 100%; max-width: 1040px; margin: 0 auto; padding: 10px 0 4px; }
.hero { display: grid; justify-items: center; gap: 8px; text-align: center; }
.title { display: grid; justify-items: center; margin: 0; font: 900 clamp(46px, 14vw, 96px)/.86 var(--disp); letter-spacing: .02em; filter: drop-shadow(0 6px 0 rgb(0 0 0 / .55)); }
.title span { background: linear-gradient(180deg, #FFF3C4 0%, #FFD772 38%, #E8B341 55%, #9a5a10 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 1.5px #3a2000; animation: forge .8s cubic-bezier(.2, 1.4, .4, 1) backwards; }
.title .t1 { font-size: 1.12em; background: linear-gradient(180deg, #FFE0B0 0%, #FF9A3D 40%, #E5412E 70%, #6b1208 100%); -webkit-background-clip: text; background-clip: text; }
.title .t2 { animation-delay: .12s; letter-spacing: .08em; font-size: .62em; }
@keyframes forge { from { opacity: 0; transform: scale(1.6); filter: blur(6px); } }
.tag { max-width: 480px; margin: 0; font-size: 15px; color: #e8dccd; text-shadow: 0 2px 6px rgb(0 0 0 / .9); }
.tag b { color: var(--gold2); }
.modes { display: grid; gap: 10px; }
.mode { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; color: var(--text); background: linear-gradient(180deg, rgb(42 37 46 / .92), rgb(24 20 27 / .94)); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 22px rgb(0 0 0 / .45), inset 0 1px 0 rgb(255 255 255 / .06); transition: transform .12s, border-color .15s; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) backwards; backdrop-filter: blur(4px); }
.mode:nth-child(2) { animation-delay: .07s; } .mode:nth-child(3) { animation-delay: .14s; }
.mode:hover { transform: translateY(-2px); border-color: var(--gold); }
.mode:active { transform: translateY(2px); }
.m-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; border: 1px solid rgb(0 0 0 / .5); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); }
.m-ic .zi { width: 26px; height: 26px; }
.m-camp .m-ic { color: #2a1700; background: linear-gradient(180deg, #FFE08A, #C98A1F); } .m-bots .m-ic { color: #fff; background: linear-gradient(180deg, #5b6573, #2c333c); } .m-galera .m-ic { color: #fff; background: linear-gradient(180deg, #ff6a50, #a82416); }
.m-txt { display: grid; min-width: 0; }
.m-txt b { font: 900 21px/1.1 var(--disp); letter-spacing: .02em; }
.m-txt small { color: var(--mute); font-size: 13px; font-weight: 700; }
.m-rec { display: grid; justify-items: end; font: 800 12px/1.2 var(--ui); color: var(--mute); text-align: right; }
.m-rec b { font: 900 21px/1 var(--disp); color: var(--gold2); font-variant-numeric: tabular-nums; }
.m-rec .new { padding: 2px 8px; color: #fff; background: var(--red); border-radius: 99px; font-size: 11px; animation: beat 1.2s infinite; }
.menu-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.menu-row .btn { padding: 9px 6px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@keyframes beat { 50% { transform: scale(1.08); } }
@media (min-width: 860px) {
  .menu-art::after { background: linear-gradient(90deg, rgb(12 8 10 / .92), rgb(12 8 10 / .45) 45%, rgb(12 8 10 / .1)); }
  .menu-body { grid-template-columns: minmax(0, 460px); justify-content: start; align-content: center; padding-left: 2vw; }
  .hero { justify-items: start; text-align: left; } .title { justify-items: start; }
}
.lvl-pick { display: grid; gap: 8px; margin-bottom: 12px; }
.btn.lvl { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: 10px; padding: 8px 12px; text-align: left; }
.btn.lvl img { width: 46px; height: 46px; background: #fff; border-radius: 50%; }
.btn.lvl b { font: 900 18px/1.1 var(--disp); } .btn.lvl small { display: block; color: var(--mute); font-weight: 700; } .btn.lvl em { font-style: normal; color: var(--mute); font-size: 12px; }
.maps { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: var(--mute); background: #1b181f; border: 1px solid var(--line); border-radius: 99px; font: 700 13px/1.2 var(--ui); }
.chip.on { color: #2a1700; background: var(--gold); border-color: #6b4300; }
.set-block { display: grid; gap: 6px; min-width: 0; }
.set-block > small { color: var(--mute); font: 800 12px/1 var(--ui); letter-spacing: .08em; }

/* campanha e arsenal (janelas) */
.camp { display: grid; gap: 6px; }
.camp .reg { margin: 10px 0 2px; font: 900 15px/1 var(--disp); letter-spacing: .06em; color: var(--gold2); }
.node { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; text-align: left; color: var(--text); background: #1b181f; border: 1px solid var(--line); border-radius: 12px; }
.node img { width: 64px; height: 50px; object-fit: contain; }
.node b { display: block; font: 800 15px/1.15 var(--ui); } .node small { color: var(--mute); font-size: 12px; }
.node em { display: flex; gap: 1px; color: #5c5363; font-style: normal; } .node em .zi { width: 18px; height: 18px; } .node em i.on { color: var(--gold2); }
.node.done { border-color: #6b4300; background: linear-gradient(90deg, #2a2016, #1b181f); }
.node.lock { opacity: .5; } .node:not(.lock):hover { border-color: var(--gold); }
.coinline { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; color: var(--gold2); font: 800 18px/1 var(--ui); } .coinline .zi { width: 22px; height: 22px; }
.upgs { display: grid; gap: 8px; }
.upg { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; background: #1b181f; border: 1px solid var(--line); border-radius: 12px; }
.up-ic { display: grid; place-items: center; width: 44px; height: 44px; color: #2a1700; background: linear-gradient(180deg, #FFE08A, #C98A1F); border-radius: 12px; } .up-ic .zi { width: 24px; height: 24px; }
.up-t { display: grid; gap: 2px; min-width: 0; } .up-t b { font: 800 15px/1.1 var(--ui); } .up-t small { color: var(--mute); font-size: 12px; }
.pips { display: flex; gap: 3px; } .pips i { width: 16px; height: 6px; background: #3a3440; border-radius: 3px; } .pips i.on { background: var(--gold); }
.maxed { color: var(--gold2); font: 800 12px/1 var(--ui); font-style: normal; letter-spacing: .08em; }
.sub { margin: 14px 0 8px; font: 900 16px/1 var(--disp); color: var(--gold2); }
.skins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.skin { display: grid; justify-items: center; gap: 2px; padding: 8px; color: var(--text); background: #1b181f; border: 1px solid var(--line); border-radius: 12px; }
.skin img { width: 100%; height: 70px; object-fit: contain; } .skin b { font: 800 13px/1.1 var(--ui); text-align: center; } .skin small { color: var(--mute); font-size: 11px; }
.skin.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgb(232 179 65 / .35); } .skin.lock { opacity: .45; } .skin.lock img { filter: grayscale(1) brightness(.6); }
.muted { color: var(--mute); } .small { font-size: 12px; }

/* ---------- batalha ---------- */
#play { pointer-events: none; padding: 0; animation: none; }
#play > * { pointer-events: auto; }
.hud { position: absolute; top: max(6px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); display: grid; gap: 5px; max-width: 980px; margin: 0 auto; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.hud-row2 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 0 2px; }
.pcard { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 7px; min-width: 0; padding: 4px 8px 4px 4px; background: linear-gradient(180deg, rgb(36 32 42 / .92), rgb(20 17 23 / .94)); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.pcard.right { grid-template-columns: minmax(0, 1fr) 38px; padding: 4px 4px 4px 8px; text-align: right; border-left: 1px solid var(--line); border-right: 3px solid var(--red); }
.pcard.right img { order: 2; }
.pcard.on { box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgb(232 179 65 / .45); transform: translateY(-1px); }
.pcard img { width: 38px; height: 38px; object-fit: contain; background: #2c2733; border-radius: 10px; }
.pc-t { display: grid; gap: 4px; min-width: 0; }
.pc-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 14px/1.1 var(--ui); }
.pc-t b small { color: var(--mute); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.hpbar { position: relative; display: block; height: 14px; background: #0d0a0e; border: 1px solid #3a3440; border-radius: 99px; overflow: hidden; }
.hpbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #8fe36a, #3f9a2a); border-radius: 99px; transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.pcard.right .hpbar i { left: auto; right: 0; }
.hpbar.low i { background: linear-gradient(180deg, #ff8a6a, #c62f1f); animation: beat .7s infinite; }
.hpbar em { position: absolute; inset: 0; display: grid; place-items: center; font: 900 10px/1 var(--ui); font-style: normal; color: #fff; text-shadow: 0 1px 2px #000; }
.h-mid { display: grid; justify-items: center; gap: 2px; }
.h-turn { padding: 3px 9px; color: var(--text); background: #221e27; border: 1px solid var(--line); border-radius: 99px; font: 800 11px/1.2 var(--ui); letter-spacing: .08em; white-space: nowrap; }
.h-turn.mine { color: #2a1700; background: var(--gold); border-color: #6b4300; animation: beat 1.4s infinite; }
.h-clock { min-width: 34px; padding: 1px 8px; text-align: center; color: #fff; background: #3b2f4a; border-radius: 99px; font: 800 13px/1.3 var(--ui); font-variant-numeric: tabular-nums; }
.h-clock.danger { background: var(--red); animation: beat .5s infinite; }
.h-wind { display: inline-flex; align-items: center; gap: 4px; min-width: 64px; padding: 3px 8px; color: #cfe7ff; background: rgb(15 11 13 / .7); border-radius: 99px; font: 800 12px/1 var(--ui); white-space: nowrap; }
.h-wind span { display: inline-grid; } .h-wind .zi { width: 15px; height: 15px; } .h-wind small { color: var(--mute); font-size: 10px; }
.h-shots { padding: 3px 8px; color: var(--mute); background: rgb(15 11 13 / .7); border-radius: 99px; font: 800 11px/1 var(--ui); font-variant-numeric: tabular-nums; }
.mini { width: 100%; height: 34px; border: 1px solid rgb(255 255 255 / .12); border-radius: 8px; cursor: pointer; touch-action: manipulation; }
.ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; padding: 6px max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); transition: opacity .2s; }
#play > .ctl.off { opacity: .4; } #play > .ctl.off * { pointer-events: none; }
.ammo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: min(100%, 520px); }
.am { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 4px 5px; color: var(--text); background: linear-gradient(180deg, rgb(42 37 46 / .94), rgb(20 17 23 / .96)); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 0 #0a0709; transition: transform .12s, border-color .15s; }
.am b { font: 800 11px/1 var(--ui); letter-spacing: .02em; }
.am em { position: absolute; top: 3px; right: 6px; font: 900 12px/1 var(--ui); font-style: normal; color: var(--gold2); }
.am kbd { display: none; position: absolute; top: 3px; left: 6px; color: #6f6577; font: 700 10px/1 var(--ui); }
@media (hover: hover) and (pointer: fine) { .am kbd { display: block; } }
.am.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgb(232 179 65 / .45), 0 3px 0 #0a0709; transform: translateY(-2px); }
.am.empty { opacity: .4; }
.am-ic { position: relative; width: 26px; height: 26px; border-radius: 50%; }
.am-bala { background: radial-gradient(circle at 35% 30%, #8a8a92, #1e1e22 65%); }
.am-frag { background: radial-gradient(circle at 35% 30%, #a8705a, #3a160b 65%); box-shadow: inset 0 0 0 3px #c0392b; }
.am-frag::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px dotted #ff8a5a; }
.am-fog { width: 34px; height: 12px; margin: 7px 0; border-radius: 3px 10px 10px 3px; background: linear-gradient(90deg, #ffb347 0 18%, #5c5f66 18% 78%, #c33 78%); }
.am-pes { width: 30px; height: 30px; margin: -2px 0; background: radial-gradient(circle at 35% 30%, #6b6b72, #0e0e10 65%); }
.am-pes::after { content: ""; position: absolute; top: -2px; right: 2px; width: 6px; height: 6px; background: #FFD34D; border-radius: 50%; box-shadow: 0 0 8px #FF6A2B; }
.msg { position: absolute; left: 50%; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 76px); z-index: 30; width: min(92vw, 460px); padding: 9px 14px; color: var(--text); background: rgb(20 17 23 / .92); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 8px 22px rgb(0 0 0 / .5); text-align: center; font-weight: 700; transform: translateX(-50%); pointer-events: none; }
.msg b { color: var(--gold2); }
.msg.in { animation: msgIn .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes msgIn { from { transform: translate(-50%, 14px) scale(.95); opacity: 0; } }
@media (orientation: landscape) and (max-height: 520px) {
  .hud { gap: 3px; } .hud-row2 { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pcard img { width: 30px; height: 30px; } .pcard { grid-template-columns: 30px minmax(0, 1fr); } .pcard.right { grid-template-columns: minmax(0, 1fr) 30px; }
  .pc-t b { font-size: 12px; } .hpbar { height: 11px; } .mini { height: 24px; }
  .ammo { width: min(100%, 440px); } .am { padding: 4px; } .am b { display: none; } .msg { bottom: 64px; font-size: 14px; }
}
@media (orientation: portrait) and (max-width: 420px) { .pc-t b { font-size: 12px; } .pcard { gap: 5px; } .hud-row { gap: 4px; } }
.pause { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; background: rgb(10 7 9 / .74); backdrop-filter: blur(3px); }
.pause .card { display: grid; gap: 12px; width: min(92vw, 360px); text-align: center; }
.pause h2 { margin: 0; font: 900 26px/1 var(--disp); } .pause h2 .zi { width: 24px; height: 24px; }
.pause .row-chips { display: flex; justify-content: center; gap: 8px; }
.reacts-mini { position: absolute; bottom: calc(max(8px, env(safe-area-inset-bottom)) + 74px); right: 8px; display: flex; gap: 4px; }
.reacts-mini button { width: 36px; height: 36px; padding: 4px; background: rgb(15 11 13 / .6); border: 1px solid rgb(255 255 255 / .2); border-radius: 10px; }
@media (orientation: landscape) and (max-height: 520px) { .reacts-mini { bottom: 60px; } }

/* ---------- fim ---------- */
#over { overflow-y: auto; background: rgb(10 7 9 / .62); }
.over-wrap { display: grid; width: 100%; max-width: 520px; margin: auto; }
.over-card { display: grid; gap: 10px; padding: 18px; text-align: center; animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); border-color: #6b4300; }
.over-card .kicker { color: var(--gold2); font: 900 13px/1 var(--disp); letter-spacing: .3em; }
.over-card h2 { margin: 0; font: 900 26px/1.1 var(--disp); }
.over-card .muted { margin: 0; font-weight: 700; font-size: 13px; }
.ov-stars { display: flex; justify-content: center; gap: 6px; } .ov-stars span { color: #3a3440; } .ov-stars .zi { width: 40px; height: 40px; }
.ov-stars span.on { color: var(--gold2); filter: drop-shadow(0 0 10px rgb(255 215 114 / .6)); animation: pop .5s cubic-bezier(.2, 1.8, .4, 1) backwards; }
.ov-stars span:nth-child(2) { animation-delay: .2s; } .ov-stars span:nth-child(3) { animation-delay: .4s; }
.ov-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ov-stats > div { display: grid; justify-items: center; gap: 2px; padding: 8px; background: #1b181f; border: 1px solid var(--line); border-radius: 12px; }
.ov-stats > div.w { border-color: var(--gold); background: linear-gradient(180deg, #2a2016, #1b181f); }
.ov-stats img { width: 90px; height: 60px; object-fit: contain; }
.ov-stats small { color: var(--mute); font-size: 12px; font-weight: 700; }
.coins-won { margin: 0; display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--gold2); font: 900 20px/1 var(--ui); } .coins-won .zi { width: 24px; height: 24px; }
.over-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.over-actions .btn.wide { grid-column: 1 / -1; font-size: 18px; padding: 13px; }
.reward { display: grid; gap: 8px; min-height: 30px; }
.reward .xp-big { font: 900 38px/1 var(--disp); color: var(--gold2); } .reward .xp-big small { font-size: 18px; }
.reward p { margin: 0; } .reward .soft { color: var(--mute); } .reward .gold, .over-card p.gold { color: var(--gold2); font-weight: 800; }
.reward .zi { width: 18px; height: 18px; vertical-align: -.25em; }
.reward .row-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.btn-mini { display: inline-block; padding: 6px 12px; color: #2a1700; background: var(--gold); border-radius: 99px; font: 800 13px/1.2 var(--ui); text-decoration: none; }
.btn-mini.ghost { color: var(--text); background: #2a262e; }
@media (max-height: 560px) {
  .menu-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-content: center; gap: 8px; padding: 0; }
  .hero { grid-row: 1 / 3; justify-items: center; text-align: center; } .title { font-size: 52px; justify-items: center; } .tag { display: none; }
  .mode { padding: 7px 10px; } .m-ic { width: 38px; height: 38px; } .m-txt b { font-size: 17px; } .m-txt small { display: none; } .modes { gap: 7px; }
  .over-card { padding: 12px; gap: 6px; } .over-card h2 { font-size: 20px; } .ov-stats img { width: 60px; height: 40px; } .ov-stars .zi { width: 28px; height: 28px; }
  .over-actions { grid-template-columns: 2fr 1fr 1fr; gap: 8px; } .over-actions .btn.wide { grid-column: auto; font-size: 16px; padding: 10px; }
  .over-wrap { max-width: 720px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- janelas e efeitos ---------- */
.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)) + 84px); left: 50%; z-index: 85; display: grid; gap: 6px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 9px 14px; color: var(--text); background: rgb(24 20 27 / .96); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 20px rgb(0 0 0 / .5); font-weight: 800; animation: toastIn .35s cubic-bezier(.2, 1.6, .4, 1); }
.toast b { color: var(--gold2); }
.toast .t-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: #2a1700; background: var(--c, var(--gold)); border-radius: 50%; }
.toast .t-ic .zi { width: 16px; height: 16px; } .toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { transform: translateY(-20px) scale(.9); opacity: 0; } }
.modal { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 14px; background: rgb(8 5 7 / .78); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(100%, 540px); max-height: 90vh; overflow-y: auto; padding: 20px; color: var(--text); background: linear-gradient(180deg, #24202a, #16131a); border: 1px solid #6b4300; border-radius: 18px; box-shadow: 0 20px 50px rgb(0 0 0 / .6); animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; }
.modal-card h2 { margin: 0 44px 12px 0; font: 900 24px/1.1 var(--disp); } .modal-card h2 .zi { color: var(--gold2); vertical-align: -.12em; }
.modal-card ol { padding-left: 20px; } .modal-card li { margin-bottom: 8px; } .modal-card li b { color: var(--gold2); }
.modal-card p { margin: 0 0 10px; }
.top-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.top-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #1b181f; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; }
.top-list img { width: 30px; height: 30px; background: #fff; border-radius: 50%; } .top-list b { margin-left: auto; color: var(--gold2); }

/* ================= online (sala ao vivo) ================= */
.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(--mute); font: 800 11px/1 var(--ui); letter-spacing: .14em; } .bar-title b { font: 900 21px/1.1 var(--disp); }
.mini-btn { padding: 4px 10px; color: var(--text); background: #2a262e; border: 1px solid var(--line); border-radius: 99px; font: 800 12px/1.3 var(--ui); }
.mini-btn[aria-pressed="true"] { background: var(--red); color: #fff; }
input[type=text], input:not([type]) { width: 100%; min-width: 0; padding: 11px 14px; color: var(--text); background: #0f0c11; border: 1px solid var(--line); border-radius: 12px; font: 700 16px/1.2 var(--ui); outline: none; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(232 179 65 / .25); }
.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(--mute); font-weight: 700; }
.me-card { display: flex; align-items: center; gap: 14px; }
.av-big { position: relative; flex: none; width: 76px; height: 76px; padding: 0; background: #2a262e; border: 2px solid var(--line); border-radius: 50%; }
.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: #2a1700; background: var(--gold); 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 12px/1 var(--ui); color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.me-fields small { color: var(--mute); font-size: 12px; } .me-fields small a { color: var(--gold2); }
.join-row { display: flex; gap: 8px; margin-top: 6px; }
#inpCode { text-transform: uppercase; letter-spacing: .35em; font: 900 22px/1 var(--disp); text-align: center; }
#gjoin, #globby { 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(--red); border-radius: 99px; font: 800 13px/1.2 var(--ui); letter-spacing: .08em; animation: beat 1.4s infinite; }
.gj-hero h2 { margin: 12px 0 6px; font: 900 clamp(22px, 5.5vw, 30px)/1.15 var(--disp); }
.gj-hero h2 em { font-style: normal; color: var(--gold2); }
.gj-hero p { margin: 0; color: var(--mute); }
.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 / .35); border-radius: 50%; }
.btn.big .ico .zi { width: 20px; height: 20px; }
.btn.big .t { font: 900 20px/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; background: linear-gradient(180deg, #3a2a1a, #1c140e); border-color: #6b4300; }
.code-head { display: flex; align-items: center; justify-content: space-between; }
.code-head small { font: 800 12px/1 var(--ui); letter-spacing: .12em; color: var(--gold2); }
.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: #2a1700; background: linear-gradient(180deg, #FFE08A, #E8B341); border-radius: 12px; box-shadow: 0 5px 0 #5a3800; 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(42 23 0 / .8); }
.code-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.invite { margin: 10px 0 0; font-size: 13px; color: var(--mute); word-break: break-all; }
.invite.hide { filter: blur(6px); user-select: none; }
.settings { display: grid; gap: 12px; }
.seg { display: flex; padding: 3px; background: #0f0c11; border: 1px solid var(--line); border-radius: 12px; }
.seg button { flex: 1; padding: 7px 4px; color: var(--text); background: none; border: 0; border-radius: 9px; font: 800 14px/1 var(--ui); }
.seg button.on { color: #2a1700; background: var(--gold); }
.rules-view { display: grid; gap: 8px; } .rv-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-help { margin: 2px 0 0; color: var(--mute); font: 700 12px/1.35 var(--ui); }
.start { width: 100%; } .start .ico { animation: pulse 1.2s infinite; } @keyframes pulse { 50% { transform: scale(1.12); } }
.vs-box { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.vs-box .vs { font: 900 26px/1 var(--disp); color: var(--gold2); }
.vs-p { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px; background: #1b181f; border: 1px solid var(--line); border-radius: 12px; text-align: center; min-width: 0; }
.vs-p.off { opacity: .45; } .vs-p.me { border-color: var(--gold); } .vs-p.empty { border-style: dashed; color: var(--mute); }
.vs-p img { width: 58px; height: 58px; background: #fff; border-radius: 50%; }
.vs-p .fort { width: 86px; height: 54px; object-fit: contain; background: none; border-radius: 0; margin-top: -4px; }
.vs-p b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-p small { color: var(--mute); }
.vs-p .crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.vs-p .kick { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--text); background: #2a262e; border: 1px solid var(--line); border-radius: 50%; }
.vs-p .ghost { display: grid; place-items: center; width: 58px; height: 58px; border: 2px dashed #5a5262; border-radius: 50%; }
.qr { display: grid; place-items: center; padding: 14px; background: #fff; border-radius: 14px; }
.qr svg { width: min(70vw, 280px); height: auto; }
.boot { position: absolute; inset: 0; z-index: 90; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgb(10 7 9 / .88); color: var(--mute); font-weight: 700; }
.fx { position: absolute; inset: 0; z-index: 50; overflow: hidden; pointer-events: none; }
.float { position: absolute; bottom: 90px; display: grid; justify-items: center; animation: floatR 2.6s ease-out forwards; }
.float .fr { display: block; width: 56px; height: 56px; filter: drop-shadow(0 4px 0 rgb(0 0 0 / .3)); }
.float img { width: 26px; height: 26px; margin-top: -6px; background: #fff; 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; } }

/* munições com a arte pintada (sem a imagem, ficam os desenhos acima) */
.am-ic.am-bala, .am-ic.am-frag, .am-ic.am-fog, .am-ic.am-pes { background-position: center; background-repeat: no-repeat; background-size: contain; box-shadow: none; border-radius: 0; }
.am-ic.am-bala { background-image: url("img/p-bala.webp"), radial-gradient(circle at 35% 30%, #8a8a92, #1e1e22 65%); background-size: contain, 0 0; }
.am-ic.am-frag { width: 30px; height: 28px; margin: -1px 0; background-image: url("img/p-frag.webp"); }
.am-ic.am-frag::after, .am-ic.am-pes::after { display: none; }
.am-ic.am-fog { width: 40px; height: 22px; margin: 2px 0; background-image: url("img/p-fog.webp"); }
.am-ic.am-pes { width: 28px; height: 34px; margin: -4px 0; background-image: url("img/p-pes.webp"); }
@media (max-height: 560px) { .hero { align-content: center; } .title { align-content: center; gap: 0; } }

/* salas abertas e denúncia (shared/public-rooms.js) no tema escuro */
.pub-head label, .pub-live, .pub-switch small { color: var(--mute); }
.pub-live i { background: #4a4250; border-color: #0f0b0d; }
.pub-switch { background: #1b181f; border: 2px dashed var(--line); }
.pub-switch b { color: var(--text); }
.pub-switch span { background: #3a3440; border-color: #0f0b0d; }
.pub-switch input:checked + span { background: var(--gold); }
.pub-badge { color: #2a1700; background: var(--gold); border-color: #6b4300; }
.btn.cyan { color: #2a1700; background: linear-gradient(180deg, #FFE08A, #E8B341 55%, #B97F1B); border-color: #6b4300; }
.mini-btn.rep, .btn.rep { color: #ff8a7a; }
@media (orientation: landscape) and (max-height: 520px) { .msg { bottom: auto; top: calc(max(6px, env(safe-area-inset-top)) + 68px); width: min(70vw, 460px); padding: 6px 12px; font-size: 13px; } }
