:root {
  --accent: #f5a623;
  --accent2: #2bb3ff;
  --bg: rgba(12, 16, 22, 0.86);
  --fg: #eef2f6;
  --muted: #9aa7b4;
  --red: #ff4d4d;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0e12; color: var(--fg); font-family: 'Segoe UI', system-ui, sans-serif; user-select: none; }
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* ---------- telas ---------- */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 20;
  background: radial-gradient(ellipse at center, rgba(20,30,45,.55), rgba(0,0,0,.85)); padding: 16px; }
.menu-box { background: var(--bg); border: 1px solid #2a3542; border-radius: 10px; padding: 26px 30px; width: min(560px, 100%); max-height: 100%; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.menu-box.small { width: min(340px, 100%); }
.logo { font-size: 64px; margin: 0; letter-spacing: 2px; font-weight: 900; font-style: italic; color: #fff; text-shadow: 0 4px 0 #b36b00, 0 0 30px rgba(245,166,35,.4); }
.logo span { color: var(--accent); }
h2 { margin: 0 0 8px; }
.tag { color: var(--muted); margin: 4px 0 16px; font-size: 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 12px; flex: 1; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
input, select { background: #151c25; color: var(--fg); border: 1px solid #2f3b49; border-radius: 6px; padding: 8px 10px; font-size: 15px; }
input[type=range] { padding: 0; }
button { background: #223041; color: var(--fg); border: 1px solid #34465b; border-radius: 6px; padding: 11px 16px; font-size: 15px; cursor: pointer; width: 100%; margin-top: 8px; font-weight: 600; }
button:hover { background: #2b3d52; }
button.primary { background: linear-gradient(180deg, #f7b13c, #d98a0f); color: #1b1203; border-color: #f7b13c; font-size: 17px; }
button.primary:hover { filter: brightness(1.08); }
button:disabled { opacity: .45; cursor: default; }
.mp { display: flex; gap: 10px; margin-top: 4px; }
.mp > button { flex: 1; }
.join { display: flex; gap: 6px; flex: 1; align-items: end; }
.join input { width: 90px; text-transform: uppercase; text-align: center; font-weight: 700; letter-spacing: 3px; margin-top: 8px; }
details { margin-top: 14px; color: var(--muted); font-size: 14px; }
summary { cursor: pointer; margin-bottom: 10px; }
.keys { width: 100%; font-size: 12px; border-collapse: collapse; }
.keys td { padding: 3px 4px; }
.keys td:nth-child(odd) { color: var(--accent); font-weight: 700; white-space: nowrap; }
.msg { color: var(--red); min-height: 18px; margin: 10px 0 0; font-size: 14px; }
.code { color: var(--accent); letter-spacing: 4px; font-family: Consolas, monospace; }
#lobbyPlayers { list-style: none; padding: 0; margin: 0 0 8px; }
#lobbyPlayers li { padding: 8px 10px; background: #18212c; border-radius: 6px; margin-bottom: 6px; }
#lobbyPlayers li.host::after { content: ' (host)'; color: var(--accent); font-size: 12px; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
#performance { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; font-variant-numeric: tabular-nums; }
#radar { position: absolute; top: 14px; left: 14px; width: 180px; height: 180px; border-radius: 50%; background: rgba(10,14,20,.6); border: 2px solid rgba(255,255,255,.18); }
#callout { position: absolute; top: 200px; left: 14px; width: 180px; text-align: center; font-size: 13px; color: #cfe3f5; }
#topbar { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center; background: rgba(10,14,20,.55); padding: 6px 18px 8px; border-radius: 6px; min-width: 220px; }
#modeName { font-size: 11px; letter-spacing: 2px; color: var(--accent); }
#timer { font-size: 26px; font-variant-numeric: tabular-nums; }
#scoreLine { font-size: 13px; color: #cfd8e3; }
#killfeed { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; }
#killfeed .kf { background: rgba(10,14,20,.7); padding: 4px 10px; border-radius: 4px; border-left: 3px solid transparent; }
#killfeed .kf.me { border-left-color: var(--accent); background: rgba(60,35,0,.75); }
#killfeed .w { color: var(--accent); margin: 0 8px; font-weight: 600; font-size: 12px; }
#killfeed .hs { color: var(--red); margin-left: 4px; }
#crosshair { position:absolute; left:50%; top:50%; --gap:4px; --arm:7px; color:#b5ffd1; }
#crosshair i { position:absolute; display:block; background:currentColor; box-shadow:0 0 2px #102017; }
#crosshair .t, #crosshair .b { width:2px; height:var(--arm); left:-1px; }
#crosshair .l, #crosshair .r { height:2px; width:var(--arm); top:-1px; }
#crosshair .t { bottom:var(--gap); } #crosshair .b { top:var(--gap); }
#crosshair .l { right:var(--gap); } #crosshair .r { left:var(--gap); }
#crosshair .dot { width:2px; height:2px; left:-1px; top:-1px; border-radius:50%; }
#crosshair[data-kind=pistol] { --arm:4px; }
#crosshair[data-kind=pistol] .t, #crosshair[data-kind=smg] .t { display:none; }
#crosshair[data-kind=smg] { --arm:5px; }
#crosshair[data-kind=heavy] { --arm:10px; }
#crosshair:is([data-kind=sniper],[data-kind=shotgun],[data-kind=melee],[data-kind=grenade]) i:not(.dot) { display:none; }
#crosshair[data-kind=shotgun]::before { content:""; position:absolute; width:calc(10px + var(--gap)*2); height:calc(10px + var(--gap)*2);
  transform:translate(-50%,-50%); border:1.5px dashed currentColor; border-radius:50%; }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px; opacity: 0; transition: opacity .15s; }
#hitmarker::before, #hitmarker::after { content: ''; position: absolute; left: 12px; top: 0; width: 2px; height: 26px; background: #fff; transform: rotate(45deg); box-shadow: 0 0 2px #000; }
#hitmarker::after { transform: rotate(-45deg); }
#hitmarker.show { opacity: 1; transition: none; }
#hitmarker.hs::before, #hitmarker.hs::after { background: var(--red); }
#hitmarker.kill { width: 36px; height: 36px; margin: -18px; }
#hitmarker.kill::before, #hitmarker.kill::after { left: 17px; height: 36px; background: var(--red); width: 3px; }
#dmgDir { position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; margin: -120px; border-radius: 50%; opacity: 0;
  pointer-events: none;
  background: conic-gradient(from -34deg, transparent, #fa785d 8deg, #ffdc96 30deg 38deg, #fa785d 60deg, transparent 68deg);
  mask: radial-gradient(circle, transparent 96px, #000 98px 105px, transparent 107px); }

#dmgFlash { position: absolute; inset: 0; box-shadow: inset 0 0 160px rgba(255,0,0,.6); opacity: 0; }
#center { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); text-align: center; font-size: 20px; }
#center small { display: block; font-size: 14px; color: var(--muted); }
#health { position: absolute; left: 20px; bottom: 18px; display: flex; align-items: center; gap: 10px; background: rgba(10,14,20,.55); padding: 8px 14px; border-radius: 6px; }
.hp-icon { color: var(--accent); font-size: 26px; }
#hpNum { font-size: 34px; min-width: 62px; font-variant-numeric: tabular-nums; }
#health .bar { width: 140px; height: 8px; background: rgba(255,255,255,.15); border-radius: 4px; overflow: hidden; }
#hpBar { height: 100%; width: 100%; background: linear-gradient(90deg, #4fd36b, #9be86b); transition: width .15s; }
#hpBar.low { background: linear-gradient(90deg, #ff3b3b, #ff8b5b); }
#ammo { position: absolute; right: 20px; bottom: 18px; text-align: right; background: rgba(10,14,20,.55); padding: 8px 14px; border-radius: 6px; }
#weaponName { font-size: 13px; color: var(--accent); letter-spacing: 1px; }
#mag { font-size: 38px; font-variant-numeric: tabular-nums; }
#mag.low { color: var(--red); }
#reserve { font-size: 18px; color: var(--muted); margin-left: 6px; }
#slots { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; font-size: 11px; }
#slots span { padding: 2px 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; color: var(--muted); }
#slots span.on { border-color: var(--accent); color: #fff; }
#protect { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); color: var(--accent2); font-size: 13px; letter-spacing: 2px; }

/* ---------- luneta ---------- */
#scope { position: fixed; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; }

/* ---------- placar / loadout ---------- */
#scoreboard, #loadout { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 15; background: var(--bg); border: 1px solid #2a3542; border-radius: 10px; padding: 16px 22px; min-width: min(560px, 94vw); }
#scoreboard h3, #loadout h3 { margin: 0 0 10px; color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid #2a3542; }
td { padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.05); }
tr.me td { background: rgba(245,166,35,.15); }
td .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; vertical-align: middle; }
td .bot { color: var(--muted); font-size: 11px; margin-left: 6px; }
#loadout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; pointer-events: auto; }
#loadout h3, #loadout > p { grid-column: 1 / -1; margin: 0; }
#loadout h4 { margin: 0 0 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.lo-item { padding: 8px 10px; border: 1px solid #2f3b49; border-radius: 6px; margin-bottom: 6px; cursor: pointer; font-size: 13px; }
.lo-item small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }
.lo-item.on { border-color: var(--accent); background: rgba(245,166,35,.12); }
@media (max-width: 640px) { #loadout { grid-template-columns: 1fr; } .logo { font-size: 46px; } }

/* ---------- Caça Terrorista ---------- */
:root { --ti: #9b7bff; --v: #ffb347; }
#ctBar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; min-width: 420px; }
#ctBar .team { display: flex; align-items: center; gap: 10px; background: rgba(10,14,20,.6); padding: 6px 12px; border-radius: 6px; }
#ctBar .left { justify-content: flex-end; }
#ctBar .name { font-size: 13px; letter-spacing: 1px; }
#ctBar .score { font-size: 30px; font-variant-numeric: tabular-nums; }
#ctBar .mid { text-align: center; background: rgba(10,14,20,.6); padding: 4px 14px; border-radius: 6px; }
#ctRound { font-size: 11px; letter-spacing: 2px; color: var(--accent); }
#ctTimer { font-size: 26px; font-variant-numeric: tabular-nums; }
#ctTimer.bomb { color: var(--red); animation: pulse .5s infinite alternate; }
#ctAlive { font-size: 11px; color: var(--muted); }
#ctHistory { grid-column: 1 / -1; display: flex; justify-content: center; gap: 3px; font-size: 11px; }
#ctHistory span { width: 18px; height: 16px; line-height: 16px; text-align: center; border-radius: 3px; background: rgba(10,14,20,.6); }
.ti { color: var(--ti); } .v { color: var(--v); }
#ctSide { position: absolute; left: 20px; bottom: 82px; font-size: 13px; letter-spacing: 1px; background: rgba(10,14,20,.55); padding: 4px 10px; border-radius: 4px; }
#objBanner { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); background: rgba(10,14,20,.7); padding: 6px 16px; border-radius: 4px; font-size: 14px; border-left: 3px solid var(--accent); white-space: nowrap; }
#objBanner b { color: var(--accent); }
#prompt { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); background: rgba(10,14,20,.75); padding: 6px 14px; border-radius: 4px; font-size: 15px; }
#prompt kbd { background: #fff; color: #111; border-radius: 3px; padding: 0 6px; margin-right: 6px; }
#useBar { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); width: 340px; text-align: center; }
#useBar .label { font-size: 14px; margin-bottom: 6px; }
#useBar .track { height: 10px; background: rgba(255,255,255,.15); border-radius: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); }
#useBar .fill { height: 100%; width: 0; background: linear-gradient(90deg, #f5a623, #ffd36b); }
#useBar.defuse .fill { background: linear-gradient(90deg, #2bb3ff, #8fe0ff); }
#bigBanner { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); text-align: center; font-size: 34px; padding: 14px 34px; background: rgba(10,14,20,.78); border-radius: 8px; letter-spacing: 1px; }
#bigBanner small { display: block; font-size: 16px; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
#spectate { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); font-size: 14px; background: rgba(10,14,20,.6); padding: 6px 14px; border-radius: 4px; }
@keyframes pulse { from { opacity: 1; } to { opacity: .45; } }

/* telas dos dispositivos */
#deviceUi { position: fixed; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 11; pointer-events: none; }
.panel-ui { display: flex; gap: 14px; align-items: center; background: rgba(10,14,20,.85); border: 1px solid #2a3542; padding: 14px 20px; border-radius: 10px; }
.p-icon { font-size: 40px; }
.p-text { font-size: 18px; }
#scoreboard .team-h { margin: 10px 0 4px; font-size: 14px; letter-spacing: 1px; }
#hud.ct #killfeed { top: 128px; }

/* =================== v0.3: menu, loja, HUD extra =================== */
.panel { display: none; max-width: 980px; animation: fadein .25s; }
.panel.on { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel h2 { font-size: 28px; }
.panel h4 { margin: 18px 0 8px; color: var(--muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.panel label { max-width: 520px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { background: rgba(21,28,37,.9); border: 2px solid #2a3542; border-radius: 10px; padding: 14px; cursor: pointer; transition: transform .12s, border-color .12s; display: flex; flex-direction: column; gap: 6px; }
.card:hover { transform: translateY(-2px); border-color: #45607d; }
.card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(245,166,35,.15); }
.card b { font-size: 18px; }
.card small { color: var(--muted); line-height: 1.35; }
.card-icon { font-size: 34px; }
.thumb { width: 100%; height: auto; border-radius: 6px; background: #0c1016; }
.field { display: flex; flex-direction: column; min-width: 160px; }
.field input { width: 120px; }
.seg { display: inline-flex; border: 1px solid #34465b; border-radius: 8px; overflow: hidden; }
.seg button { width: auto; margin: 0; border: 0; border-radius: 0; padding: 9px 16px; background: #151c25; font-size: 14px; }
.seg button.on { background: var(--accent); color: #1b1203; }
.seg button.ti.on { background: #7b4fd6; color: #fff; }
.seg button.v.on { background: #f39c12; color: #1b1203; }
button.big { font-size: 22px; padding: 16px; margin-top: 26px; max-width: 420px; letter-spacing: 1px; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.box { background: rgba(21,28,37,.9); border: 1px solid #2a3542; border-radius: 10px; padding: 18px; }
.box h3 { margin: 0 0 6px; }
.check { flex-direction: row; align-items: center; gap: 8px; color: var(--fg); font-size: 15px; margin: 10px 0; }
.check input { width: 18px; height: 18px; }
.code-input { width: 100%; text-transform: uppercase; text-align: center; font-weight: 800; letter-spacing: 8px; font-size: 26px; }
.arsenal { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.arsenal h3 { grid-column: 1 / -1; margin: 14px 0 0; color: var(--accent); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }
.wcard { background: rgba(21,28,37,.9); border: 1px solid #2a3542; border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; }
.wcard img { width: 120px; height: 52px; object-fit: contain; }
.wcard b { display: block; font-size: 14px; }
.wcard small { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; }
.price { color: #7dde92; font-weight: 700; font-size: 13px; }
.stats { display: grid; grid-template-columns: 60px 1fr; gap: 2px 6px; font-size: 10px; color: var(--muted); margin-top: 4px; }
.stats .bar { height: 5px; background: rgba(255,255,255,.1); border-radius: 3px; align-self: center; overflow: hidden; }
.stats .bar i { display: block; height: 100%; background: linear-gradient(90deg, #f5a623, #ffd36b); }
.menu-box.wide { width: min(820px, 100%); }
.lobby-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lobby-mode { background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.4); border-radius: 8px; padding: 8px 14px; font-size: 14px; }
.lobby-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 12px 0; }
.team-col { background: rgba(21,28,37,.9); border: 1px solid #2a3542; border-radius: 8px; padding: 10px; }
.team-col h4 { margin: 0 0 8px; font-size: 13px; letter-spacing: 1px; }
.slot { padding: 7px 10px; border-radius: 5px; background: #18212c; margin-bottom: 5px; font-size: 14px; display: flex; justify-content: space-between; }
.slot.bot { opacity: .55; font-style: italic; }
.slot.empty { opacity: .3; }
.rooms-box { margin-bottom: 16px; }
.rooms-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
button.small { width: auto; margin: 0; padding: 6px 12px; font-size: 13px; }
.room-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; }
.room-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: #18212c; border-radius: 6px; padding: 8px 12px; }
.room-row b { font-size: 15px; }
.room-row small { display: block; color: var(--muted); font-size: 12px; }
.room-row .count { font-weight: 800; color: var(--accent); white-space: nowrap; }
.room-row .live { color: #7dde92; font-size: 11px; font-weight: 700; margin-left: 6px; }
.room-row button { width: auto; margin: 0; padding: 7px 16px; }
.privacy-seg { margin: 4px 0 2px; }
.lobby-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.privacy-btn[disabled] { opacity: 1; cursor: default; }
.slot .host { color: var(--accent); font-size: 11px; }

/* HUD extra */
#armorBox { display: flex; align-items: center; gap: 4px; margin-left: 10px; font-size: 22px; color: #8fd3ff; }
#helmetIcon { font-size: 18px; opacity: .3; }
#helmetIcon.on { opacity: 1; }
#money { position: absolute; left: 20px; bottom: 82px; font-size: 22px; color: #7dde92; background: rgba(10,14,20,.55); padding: 4px 12px; border-radius: 6px; }
#hud.ct #money { bottom: 112px; }
#money .cur { font-size: 14px; opacity: .8; }
#moneyDelta { margin-left: 8px; font-size: 16px; opacity: 0; transition: opacity .6s; }
#moneyDelta.show { opacity: 1; transition: none; }
#weaponIcon img { height: 40px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.7)); }
#nadesHud { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; }
#nadesHud img { height: 22px; opacity: .55; }
#nadesHud img.on { opacity: 1; filter: drop-shadow(0 0 3px #f5a623); }
#buyHint { position: absolute; left: 20px; bottom: 150px; font-size: 13px; background: rgba(10,14,20,.6); padding: 4px 10px; border-radius: 4px; color: #7dde92; }
#killfeed img { height: 16px; vertical-align: middle; margin: 0 6px; filter: drop-shadow(0 1px 1px #000); }
#flashOverlay { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 12; }

/* loja de armas */
#shop { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(1040px, 96vw); height: min(640px, 92vh); z-index: 16; background: rgba(10,14,20,.95); border: 1px solid #34465b; border-radius: 12px; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.shop-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #2a3542; }
.shop-head h3 { margin: 0; color: var(--accent); font-size: 22px; }
.shop-head small { color: var(--muted); }
.shop-money { font-size: 28px; color: #7dde92; font-weight: 800; }
.shop-money .cur { font-size: 16px; opacity: .8; }
.shop-body { flex: 1; display: grid; grid-template-columns: 170px 1fr 300px; min-height: 0; }
.shop-cats { border-right: 1px solid #2a3542; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.shop-cats button { text-align: left; margin: 0; background: transparent; border-color: transparent; font-size: 14px; }
.shop-cats button.on { background: rgba(245,166,35,.15); border-color: rgba(245,166,35,.5); }
.shop-items { padding: 12px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; align-content: start; }
.item { background: #151c25; border: 2px solid #2a3542; border-radius: 8px; padding: 8px 10px; cursor: pointer; position: relative; }
.item:hover { border-color: #5b7896; }
.item.owned { border-color: #3fae5d; }
.item.cant { opacity: .45; }
.item img { width: 100%; height: 64px; object-fit: contain; }
.item b { display: block; font-size: 13px; }
.item .tag2 { position: absolute; top: 6px; right: 8px; font-size: 10px; color: #3fae5d; font-weight: 800; }
.shop-detail { border-left: 1px solid #2a3542; padding: 14px; overflow: auto; }
.shop-detail img { width: 100%; height: 110px; object-fit: contain; }
.shop-detail h4 { margin: 6px 0; font-size: 18px; }
.shop-detail p { color: var(--muted); font-size: 13px; line-height: 1.4; }
.shop-detail .stats { grid-template-columns: 80px 1fr; font-size: 12px; gap: 6px 8px; }
.shop-detail .stats .bar { height: 8px; }
.shop-foot { display: flex; justify-content: space-between; padding: 10px 20px; border-top: 1px solid #2a3542; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .shop-body { grid-template-columns: 1fr; } .shop-cats { flex-direction: row; flex-wrap: wrap; } .shop-detail { display: none; } }

/* luneta (snipers) e red dot ao mirar */
#scope svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#scope:not(.hidden) { animation: scopeIn .16s ease-out; }
@keyframes scopeIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: none; } }
#aimFocus { position:absolute; top:50%; left:50%; width:3px; height:3px; transform:translate(-50%,-50%);
  border-radius:50%; background:#cdffeb; box-shadow:0 0 0 1px #111b; pointer-events:none; z-index:1; }
#aimFocus[data-weapon=lavadora] { background:#ff7066; }
#aimFocus[data-weapon=tico] { background:#ffd36f; }
#scope .focus-point { stroke:#15191d; stroke-width:1; }
#scope .scope-instrument > g { display:none; }
#scope .scope-center { fill:#ff514c; }
#scope[data-weapon=nivel] .scope-center { fill:#5afd8b; }
#scope:is([data-weapon=trena],[data-weapon=teodolito],[data-weapon=nivelotico]) .scope-grid { display:none; }
#scope[data-weapon=trena] .tape, #scope[data-weapon=teodolito] .survey, #scope[data-weapon=nivelotico] .level { display:inline; }
#scope .scope-instrument { color:#15222a; }
#scope[data-weapon=teodolito] .scope-center { fill:#57e1de; }
#scope[data-weapon=nivelotico] .scope-center { fill:#ffbe4e; }

/* =================== v0.7: tema de jogo dos menus =================== */
.screen, .menu-screen, #pause, #results, #lobby, .gate { font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif; }
.screen h2, .logo, .panel h2, .gate h2, .opt-card h3, .char-name b { font-family: 'Russo One', 'Segoe UI', sans-serif; font-weight: 400; letter-spacing: .5px; }
.screen button, .screen input { font-family: inherit; }
.screen button { font-weight: 700; letter-spacing: .6px; text-transform: uppercase; font-size: 15px; border-radius: 3px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: filter .12s, transform .12s, background .12s; }
.screen button:not(:disabled):active { transform: translateY(1px); }
.screen button.primary { background: linear-gradient(180deg, #ffbf47 0%, #f5a623 45%, #d4800b 100%); color: #1a1003; border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45); text-shadow: 0 1px 0 rgba(255,255,255,.25); position: relative; overflow: hidden; }
.screen button.primary::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.screen button.primary:hover { filter: brightness(1.1) saturate(1.1); }
.screen button.big { font-size: 22px; padding: 18px 28px; letter-spacing: 2px; }
.screen button.ghost { background: transparent; border: 1px solid rgba(255,255,255,.18); }
.screen input:not([type=range]):not([type=checkbox]) { background: rgba(8,12,18,.75); border: 1px solid #2d3a4a; border-radius: 3px; font-size: 17px; font-weight: 600; }
.screen input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(245,166,35,.25); }

/* Menu principal */
.screen.menu-screen {
  --menu-gutter: clamp(24px, 4.5vw, 88px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  background: linear-gradient(90deg, #091217 0%, rgba(9,18,23,.94) 26%, rgba(9,18,23,.42) 49%, transparent 76%),
    #0a1116 url('assets/menu/equipe-galpao.webp') 68% center / cover no-repeat;
}
.menu-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) fit-content(clamp(260px, 26vw, 420px));
  align-items: stretch;
  gap: clamp(18px, 3vw, 54px);
  min-height: 76px;
  padding-inline: var(--menu-gutter);
  border-bottom: 1px solid #ffffff26;
  background: #0a1015f0;
}
.menu-bar .logo { align-self: center; font-size: 30px; font-style: normal; line-height: 1; text-shadow: none; }
.menu-bar nav { display: flex; gap: 6px; overflow: auto; scrollbar-width: thin; }
.screen .nav-btn {
  flex: none;
  width: auto;
  margin: 0;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  clip-path: none;
  background: transparent;
  color: #b5c2c9;
  white-space: nowrap;
}
.screen .nav-btn:hover { background: #ffffff0d; color: #fff; }
.screen .nav-btn.on { color: #ffcb76; background: linear-gradient(0deg, #f5a62322, transparent 80%); box-shadow: inset 0 -3px 0 var(--accent); }
.menu-screen button:focus-visible { outline: 2px solid #ffbf56; outline-offset: -3px; }
.profile { display: flex; align-items: center; gap: 10px; justify-self: end; align-self: center; min-width: 0; max-width: 100%; padding-block: 5px; }
#menu .profile .next-track { width: 36px; height: 36px; padding: 0; margin: 0; border: 1px solid #506066; border-radius: 3px; clip-path: none; color: #e1c496; background: #202d33; }
#menu .profile .next-track:hover { background: #304149; }
.avatar-badge { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 21px; background: #1d272d; border: 1px solid #526168; border-radius: 3px; }
.profile-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
#menu #editNick { display: flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 0; margin: 0; border: 0; background: transparent; clip-path: none; text-transform: none; text-align: left; }
#menu #editNick #nick { color: #fff; font-size: 16px; font-weight: 700; }
#menu #editNick span:last-child { color: #ffc369; flex: none; }

.profile-info span { font-size: 12px; line-height: 1.25; color: #b5c2c9; overflow-wrap: anywhere; white-space: normal; }
#menu #editNick:hover #nick { color: #ffc369; }
.menu-screen .content { min-width: 0; overflow: auto; padding: clamp(26px, 4.5vh, 52px) var(--menu-gutter); }
.menu-screen:not(:has(#panel-play.on)) .content { background: #0a1116c9; }
#menuMsg { min-height: 0; margin: 0; }
#menuMsg:not(:empty) { margin-bottom: 14px; padding: 9px 12px; color: #ffb7a9; background: #381b18; border-left: 3px solid #ff8a78; width: fit-content; }

.menu-screen #panel-play { max-width: min(650px, 54vw); }
.menu-screen #panel-play h2 { font-size: clamp(48px, 5.1vw, 86px); line-height: 1; color: #fff7e9; letter-spacing: -.025em; }
.menu-screen #panel-play h2::after { width: 52px; height: 3px; margin-top: 13px; background: var(--accent); }
.match-config {
  margin-top: 24px;
  padding: clamp(14px, 2vw, 24px);
  border: 1px solid #3e5158;
  border-top: 2px solid #d9a350;
  background: linear-gradient(145deg, #16252fed, #0a1319f5);
  box-shadow: 0 20px 50px #0005;
}
.match-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 16px; }
.match-grid:has(> .map-only.hidden) { grid-template-columns: 1fr; }
.menu-screen .match-config h4 { margin: 0 0 9px; color: #c2cfd2; letter-spacing: .14em; }
#panel-play #modeCards, #panel-play #mapCards { grid-template-columns: minmax(0, 1fr); gap: 7px; }
.screen #panel-play button.card {
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  clip-path: none;
  border-radius: 3px;
  background: #0b151c;
  border: 1px solid #3a4c55;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}
.screen #panel-play button.card:hover { background: #23323d; border-color: #81939c; transform: none; }
.screen #panel-play button.card.on { border-color: #c9974c; background: #29261e; box-shadow: inset 3px 0 0 #ffb13e; }
#panel-play button.card.on::before { content: none; }
#panel-play .card b { font: 700 18px/1.1 'Rajdhani', 'Segoe UI', sans-serif; }
#panel-play .card small { font-size: 14px; font-weight: 600; color: #becbd0; }
.screen #panel-play button.map { display: grid; grid-template-columns: minmax(70px, 42%) minmax(0, 1fr); align-items: center; gap: 10px; min-height: 94px; padding: 8px; }
#panel-play .map span { display: flex; flex-direction: column; gap: 4px; }
#panel-play .thumb { display: block; height: 74px; object-fit: contain; border-radius: 2px; }
#panel-mp { width: 100%; max-width: none; }
.mp-workspace { display: grid; grid-template-columns: minmax(310px, 1.12fr) minmax(270px, 1fr) minmax(290px, .92fr); align-items: start; gap: clamp(12px, 1.5vw, 28px); margin-top: 16px; }
.mp-career, .mp-rooms { display: grid; gap: 14px; min-width: 0; }
.mp-rooms .rooms-box { margin: 0; }
#panel-mp .mp-create h4 { margin: 12px 0 5px; }
.mp-create .seg { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; }
#panel-mp .tag { margin: 6px 0 10px; }
@media (min-width: 1001px) {
  .menu-screen:has(#panel-mp.on) .content { padding-block: clamp(12px, 2.5vh, 28px); }
  #panel-mp > h2 { margin-top: 0; }
}
@media (max-width: 1000px) {
  .mp-workspace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-career { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .mp-workspace, .mp-career { grid-template-columns: minmax(0, 1fr); }
}

.mp-profile { display: grid; align-content: start; gap: 6px; border-top: 2px solid var(--accent); }
.mp-profile small { color: var(--muted); }
.mp-profile h3 { color: #ffce76; }
.mp-profile p { margin: 0; font-variant-numeric: tabular-nums; }
.mp-profile progress { width: 100%; height: 7px; margin-top: 6px; accent-color: var(--accent); }
.mp-profile button { justify-self: start; margin-top: 10px; }
.rank-scroll { overflow: auto; max-height: 245px; }
#careerTable { border-collapse: collapse; width: 100%; margin-top: 8px; text-align: left; }
#careerTable th, #careerTable td { padding: 6px 8px; border-bottom: 1px solid #35414b; }
#careerTable th { color: var(--muted); background: #161e27; position: sticky; top: 0; }
#careerTable tr:first-child td:first-child { color: var(--accent); }
#careerTable td:last-child, #careerTable th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
#powerHud {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(4, minmax(54px, 72px)); gap: 6px;
}
.power-slot {
  --tint: #9fe2e4; position: relative; display: grid; justify-items: center; align-content: end;
  padding: 5px 3px 4px; border: 1px solid #536674; border-bottom: 2px solid var(--tint); border-radius: 4px;
  background: linear-gradient(160deg, #17252eef, #0b121bea); color: var(--tint);
}
#slot-1 { --tint: #b1c9ff; }
#slot-2 { --tint: #a6e0a6; }
#slot-3 { --tint: #ffcb80; }
.power-slot kbd { position: absolute; top: -8px; left: 5px; min-width: 14px; padding: 0 2px; text-align: center; font: bold 11px/15px sans-serif; }
.power-glyph { font: bold 25px/28px 'Segoe UI Symbol', sans-serif; }
.power-slot small { color: #e2e9ef; font: 600 10px/13px 'Rajdhani', sans-serif; white-space: nowrap; }
.power-time { position: absolute; top: 6px; color: white; font: bold 18px/25px 'Rajdhani', sans-serif; font-variant-numeric: tabular-nums; }
.power-slot.cooling .power-glyph { opacity: .16; }
.power-slot.cooling, .power-slot.unavailable { border-bottom-color: #62717c; }
.power-slot.unavailable .power-glyph { color: #8a989f; }
@media (max-width: 820px) {
  #powerHud { bottom: 86px; grid-template-columns: repeat(4, 57px); gap: 3px; }
}
.match-settings { padding-top: 16px; }
.match-settings .field { min-width: 0; }
.match-settings .field input { width: 103px; }
.match-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; padding-top: 14px; border-top: 1px solid #40515a; }
.screen #panel-play .match-actions button {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 11px 15px;
  clip-path: none;
  font-size: 16px;
  letter-spacing: .035em;
}
.screen #panel-play #btnSolo {
  background: #ffb13e;
  flex: 1;
}
.screen #panel-play #playMultiplayer {
  background: #243540;
  border: 1px solid #586c76;
  color: #eef1eb;
}
.screen #panel-play #playMultiplayer:hover { background: #334a56; }
.match-actions button span { margin-inline-start: 5px; }
.screen #panel-play #btnSolo::after { content: none; }

@media (max-width: 1080px) {
  .menu-bar { grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; }
  .menu-bar .logo, .menu-bar .profile { min-height: 57px; }
  .menu-bar .logo { display: flex; align-items: center; }
  .menu-bar nav { grid-column: 1 / -1; grid-row: 2; min-height: 43px; }
}
@media (max-width: 960px) {
  .menu-screen #panel-play { max-width: min(660px, 74vw); }
}
@media (max-width: 650px) {
  .screen.menu-screen {
    --menu-gutter: 16px;
    background: linear-gradient(180deg, rgba(10,17,22,.05) 154px, #0a1116 510px),
      #0a1116 url('assets/menu/equipe-galpao.webp') 77% 78px / auto 454px no-repeat;
  }
  #menu .menu-bar { gap: 0 10px; }
  #menu .menu-bar .logo { font-size: clamp(18px, 4vw, 26px); }
  #menu .profile { gap: 5px; }
  #menu .profile .avatar-badge, #menu .profile .next-track { width: 30px; height: 30px; }
  .menu-bar nav { gap: 0; }
  .screen .nav-btn { padding-inline: 8px; font-size: 13px; letter-spacing: .22px; }
  .menu-screen #panel-play { max-width: none; }
  .menu-screen #panel-play h2 { margin-top: 82px; }
  .match-config { margin-top: 18px; }
  .match-grid { grid-template-columns: 1fr; gap: 15px; }
  #panel-play #modeCards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #panel-play #mapCards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen #panel-play button.card { padding: 7px; }
  .screen #panel-play button.map { display: flex; align-items: stretch; gap: 5px; }
  #panel-play .thumb { height: 58px; }
  #panel-play .card b { font-size: 16px; }
  #panel-play .card small { font-size: 12px; }
  .menu-screen .mp-grid, .menu-screen .opt-grid, .menu-screen .arsenal { grid-template-columns: 1fr; }
}

/* conteúdo */
.panel h2 { font-size: 34px; margin-bottom: 2px; text-transform: uppercase; }
.panel h2::after { content: ''; display: block; width: 70px; height: 4px; margin-top: 8px; background: linear-gradient(90deg, var(--accent), transparent); }
.panel h4 { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 3px; margin: 22px 0 10px; }
.panel .tag { font-size: 16px; max-width: 760px; }
.card { background: linear-gradient(160deg, rgba(30,40,54,.92), rgba(14,19,27,.92)); border: 1px solid #2c3a4b; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); padding: 16px; position: relative; }
.card b { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 19px; }
.card small { font-size: 14px; }
.card:hover { transform: translateY(-3px); border-color: #4a6684; background: linear-gradient(160deg, rgba(40,54,72,.95), rgba(16,22,31,.95)); }
.card.on { border-color: var(--accent); background: linear-gradient(160deg, rgba(245,166,35,.22), rgba(16,22,31,.95)); box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(245,166,35,.18); }
.card.on::before { content: '✔'; position: absolute; right: 14px; top: 10px; color: var(--accent); font-size: 16px; }
.card-icon { font-size: 38px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.thumb { border-radius: 0; }
.seg { border-radius: 0; border-color: #2d3a4a; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.screen .seg button { clip-path: none; font-size: 14px; padding: 10px 18px; }
.box { background: linear-gradient(160deg, rgba(28,37,50,.92), rgba(12,17,24,.92)); border: 1px solid #2c3a4b; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.box h3 { font-family: 'Russo One', sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.room-row { border-radius: 0; border-left: 3px solid var(--accent); background: rgba(255,255,255,.04); }
.code-input { letter-spacing: 10px !important; font-size: 28px !important; }

/* opções */
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.opt-card { background: linear-gradient(160deg, rgba(28,37,50,.92), rgba(12,17,24,.92)); border: 1px solid #2c3a4b; padding: 16px 18px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.opt-card h3 { margin: 0 0 12px; font-size: 17px; text-transform: uppercase; display: flex; gap: 10px; align-items: center; color: #fff; }
.opt-card h3 i { font-style: normal; }
.opt-row { display: grid; grid-template-columns: 120px 1fr 56px; gap: 12px; align-items: center; margin: 10px 0; font-size: 16px; font-weight: 600; color: #c9d3de; }
.opt-row .val { text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; }
.screen input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; background: linear-gradient(90deg, rgba(245,166,35,.8), rgba(255,255,255,.12)); border: 0; border-radius: 3px; cursor: pointer; }
.screen input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: #fff; border: 3px solid var(--accent); border-radius: 50%; box-shadow: 0 0 10px rgba(245,166,35,.6); }
.screen input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: #fff; border: 3px solid var(--accent); border-radius: 50%; }
.toggle { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; color: #dfe6ee; font-size: 16px; font-weight: 600; max-width: none !important; }
.toggle input { display: none; }
.toggle .sw { width: 46px; height: 24px; flex: none; border-radius: 12px; background: #2a3646; position: relative; transition: background .15s; }
.toggle .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfd8e3; transition: transform .15s; }
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { transform: translateX(22px); background: #fff; }
.toggle .tx small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.keys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 18px; }
.keys-grid div { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #c9d3de; padding: 6px 10px; background: rgba(255,255,255,.03); }
.keys-grid span { margin-left: 8px; }
kbd { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px; color: #fff; min-width: 28px; padding: 3px 8px; text-align: center;
  background: linear-gradient(180deg, #3a4a5e, #222d3b); border: 1px solid #55697f; border-bottom-width: 3px; border-radius: 4px; }

/* personagem */
.char-layout { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 22px; align-items: start; }
.char-stage { position: relative; background: radial-gradient(ellipse at 50% 40%, rgba(245,166,35,.18), rgba(10,14,20,0) 60%), linear-gradient(180deg, rgba(25,33,45,.9), rgba(8,11,16,.95));
  border: 1px solid #2c3a4b; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
#charCanvas { display: block; width: 100%; height: auto; aspect-ratio: 520 / 640; cursor: grab; }
#charCanvas:active { cursor: grabbing; }
.char-name { position: absolute; left: 18px; bottom: 16px; display: flex; flex-direction: column; text-shadow: 0 2px 6px #000; }
.char-name b { font-size: 24px; }
.char-name small { color: var(--accent); font-size: 14px; font-weight: 700; }
.char-hint { position: absolute; right: 16px; top: 12px; font-size: 12px; color: #7f8c99; letter-spacing: 1px; text-transform: uppercase; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pick-grid.models { grid-template-columns: repeat(4, 1fr); }
.screen .pick { margin: 0; padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0;
  background: linear-gradient(160deg, rgba(30,40,54,.92), rgba(14,19,27,.92)); border: 1px solid #2c3a4b; }
.pick .ic { font-size: 30px; line-height: 1.1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.pick small { font-size: 12px; color: #b9c4cf; font-weight: 600; line-height: 1.15; text-align: center; }
.screen .pick:hover { border-color: #4a6684; background: linear-gradient(160deg, rgba(40,54,72,.95), rgba(16,22,31,.95)); }
.screen .pick.on { border-color: var(--accent); background: linear-gradient(160deg, rgba(245,166,35,.3), rgba(16,22,31,.95)); box-shadow: inset 0 0 0 1px var(--accent); }
.pick.on small { color: #fff; }
#btnRandomLook { width: auto; margin-top: 16px; padding: 9px 18px; }

/* Entrada com apelido */
.screen.gate {
  z-index: 60;
  display: block;
  overflow: auto;
  padding: 0;
  background-color: #10171b;
  background-image: linear-gradient(90deg, rgba(8,13,17,.84), rgba(8,13,17,.38) 48%, transparent 73%), url('assets/menu/galpao-login.webp');
  background-position: center, 65% center;
  background-size: cover;
}
.gate-inner {
  width: min(100%, 1600px);
  min-height: 100%;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 86px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 32px;
}
.gate-brand {
  width: fit-content;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f5a623;
  color: #fff7e9;
  font: 400 clamp(24px, 3vw, 35px)/1 'Russo One', sans-serif;
  letter-spacing: .045em;
}
.gate-brand span { color: #f5a623; }
.gate-box { width: min(100%, 430px); align-self: center; padding-bottom: clamp(12px, 4vh, 64px); }
.gate-box #gateTitle {
  margin: 0 0 36px;
  max-width: 8ch;
  color: #fff7e9;
  font: 400 clamp(46px, 6vw, 90px)/.96 'Russo One', sans-serif;
  text-transform: uppercase;
  letter-spacing: -.025em;
  text-shadow: 0 6px 25px rgba(0,0,0,.3);
}
.gate-box label {
  display: block;
  margin: 0 0 8px;
  color: #f0f1ed;
  font-size: 17px;
  font-weight: 700;
}
.screen .gate-box input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #727f82;
  border-radius: 3px;
  background: #161f24;
  color: #fff;
  font: 600 19px/1.4 'Segoe UI', system-ui, sans-serif;
}
.gate-box input::placeholder { color: #a9b4b8; }
.gate-box input:focus-visible, .screen .gate-box button:focus-visible {
  outline: 2px solid #ffbf56;
  outline-offset: 3px;
}
.gate-box input[aria-invalid="true"] { border-color: #ff9283; }
.gate-box #gateHelp, .gate-box #gateMsg { margin: 10px 0 0; font: 400 14px/1.45 'Segoe UI', system-ui, sans-serif; }
.gate-box #gateHelp { color: #c5cece; }
.gate-box #gateMsg { margin: 0; color: #ffab9d; }
.gate-box #gateMsg:not(:empty) { margin-top: 10px; }
.screen .gate-box button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 17px;
  clip-path: none;
  border: 1px solid #ffbf56;
  border-radius: 3px;
  background: #f5a623;
  color: #161208;
  text-transform: none;
  letter-spacing: 0;
  font: 700 18px/1.5 'Segoe UI', system-ui, sans-serif;
}
.gate-box button span { font-size: 25px; line-height: 1; }

@media (max-width: 650px) {
  .screen.gate {
    background-image: linear-gradient(180deg, rgba(8,13,17,.45), rgba(8,13,17,.44) 18%, rgba(8,13,17,.98) 67%), url('assets/menu/galpao-login.webp');
    background-position: center, 76% top;
    background-size: cover, auto 70%;
    background-repeat: no-repeat;
  }
  .gate-inner { gap: 110px; }
  .gate-box { align-self: end; padding-bottom: 0; }
  .gate-box #gateTitle { margin-bottom: 24px; }
}

@media (max-height: 560px) {
  .gate-inner { gap: 24px; }
  .gate-box #gateTitle { margin-bottom: 18px; }
}

/* pausa, lobby e resultado no mesmo estilo */
.menu-box { background: linear-gradient(160deg, rgba(30,40,54,.95), rgba(10,14,20,.97)); border: 1px solid #2c3a4b; border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.menu-box h2 { text-transform: uppercase; }
.team-col, .slot { border-radius: 0; }
#panel-char { width: 100%; max-width: none; }
.menu-screen:has(#panel-char.on) .content { padding-block: clamp(10px, 2.5vh, 26px); }
#panel-char > h2 { margin: 0 0 clamp(8px, 2vh, 18px); }
.char-layout { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.4fr); gap: clamp(12px, 2vw, 32px); }
#charCanvas { height: clamp(150px, calc(100dvh - 210px), 680px); aspect-ratio: auto; touch-action: none; }
.char-pick {
  min-width: 0; padding: clamp(12px, 1.7vw, 24px);
  background: linear-gradient(135deg, #1a2731f5, #101922f7 65%); border: 1px solid #344450;
}
.char-categories {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: stretch;
  gap: 2px; margin-bottom: clamp(10px, 1.6vh, 18px); border-bottom: 1px solid #354653;
}
.char-categories button {
  width: auto; min-width: 0; padding: 8px 2px 11px; margin: 0; clip-path: none; border: 0;
  border-bottom: 3px solid transparent; border-radius: 0; background: none; color: #abbac5; font-size: clamp(12px, 1vw, 15px);
}
.char-categories button:hover { background: #ffffff08; color: #fff; }
.char-categories button[aria-pressed=true] { border-bottom-color: #ffb53b; color: #ffd28a; background: linear-gradient(0deg,#ffb53b12,transparent); }
.char-pick .pick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(5px,.7vw,10px); }
.char-pick .pick {
  min-width: 0; position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center;
  gap: 2px; padding: 5px 4px 8px; clip-path: none; border: 1px solid #40505e; border-radius: 5px;
  background: radial-gradient(ellipse at 50% 38%, #354652, #202d38 68%, #1a2630);
}
.char-pick .pick:hover { border-color: #8094a3; background: radial-gradient(ellipse at 50% 38%,#41535d,#24323e 72%); }
.char-pick .pick.on { border-color: #f0ae4b; background: radial-gradient(ellipse at 50% 38%,#504739,#302f2a 72%); box-shadow: none; }
.char-pick .pick.on::after { content: '✓'; position: absolute; inset: 5px 7px auto auto; color: #ffd18a; font-size: 14px; font-weight: 700; }
.char-pick .pick small { font-size: clamp(12px,.96vw,15px); line-height: 1.15; color: #e1e8ed; }
.gear-thumb, .char-pick .ic, .empty-hat { width: min(100%, clamp(46px,10vh,105px)); aspect-ratio: 1; }
.gear-thumb { background-image: url('assets/menu/vestiario.webp'); background-size: 800% 500%; }
.char-pick .ic, .empty-hat { display: grid; place-items: center; font-size: clamp(20px,4vh,38px); }
.empty-hat { color: #95a4ae; }
.char-pick [hidden] { display: none !important; }
.char-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: clamp(9px,1.8vh,20px); }
.char-pager { display: flex; gap: 8px; align-items: center; }
.char-pager button { width: 32px; height: 30px; margin: 0; padding: 0; border-radius: 3px; clip-path: none; font-size: 20px; line-height: 1; }
.char-pager span { white-space: nowrap; font-variant-numeric: tabular-nums; color: #c1cfda; }
.char-pager button:disabled { opacity: .35; }
#btnRandomLook { margin: 0; padding: 6px 12px; width: auto; clip-path: none; border-radius: 3px; }
@media (max-width: 720px) {
  .char-layout { grid-template-columns: 1fr; gap: 8px; }
  #charCanvas { height: clamp(92px, 24dvh, 190px); }
  .char-categories button { font-size: 12px; padding: 5px 0; }
  .char-pick .pick-grid { gap: 4px; }
  .char-pick .pick { padding: 3px 2px 5px; }
  .char-name { left: 9px; bottom: 5px; }
  .char-name b { font-size: 18px; }
}

/* ponto da mira de ferro */
@keyframes adsIn { from { opacity: 0; transform: scale(2.5); } to { opacity: 1; transform: none; } }

/* vinheta sutil nas bordas durante o jogo (estática: custo zero) */
#vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.32) 100%); }

/* =================== v0.8: loja / loadout =================== */
#shop { font-family: 'Rajdhani', 'Segoe UI', sans-serif; background: linear-gradient(160deg, rgba(22,30,42,.97), rgba(8,11,16,.98)); border: 1px solid rgba(245,166,35,.35); border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); width: min(1120px, 96vw); height: min(680px, 92vh); }
.shop-head { gap: 18px; padding: 16px 24px; background: linear-gradient(90deg, rgba(245,166,35,.12), transparent 60%); }
.shop-head h3 { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: 1px; }
#shopSub { display: block; font-size: 14px; font-weight: 600; letter-spacing: .5px; }
#shopSub.timer { color: #ffd27f; position: relative; padding-bottom: 6px; min-width: 220px; }
#shopSub.timer::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--buy, 1) * 100%); background: linear-gradient(90deg, #f5a623, #ffd36b); transition: width .3s; }
.shop-loadout { display: flex; gap: 6px; margin-left: auto; }
.shop-loadout span { width: 86px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.shop-loadout span.nade { width: 44px; }
.shop-loadout span.empty { color: #5a6673; }
.shop-loadout img { max-width: 92%; max-height: 34px; object-fit: contain; }
.shop-money { font-family: 'Russo One', sans-serif; font-weight: 400; text-shadow: 0 0 18px rgba(125,222,146,.35); }
.shop-body { grid-template-columns: 190px 1fr 320px; }
.shop-cats { padding: 12px 10px; gap: 6px; background: rgba(0,0,0,.18); }
.shop-cats button { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; padding: 10px 10px; font-size: 15px; font-weight: 700; color: #c9d3de; border: 1px solid transparent; border-radius: 0; text-transform: none; letter-spacing: .3px; clip-path: none; }
.shop-cats button i { font-style: normal; font-size: 17px; text-align: center; }
.shop-cats button kbd { font-size: 11px; min-width: 20px; padding: 1px 5px; }
.shop-cats button:hover { background: rgba(255,255,255,.05); color: #fff; }
.shop-cats button.on { background: linear-gradient(90deg, rgba(245,166,35,.3), rgba(245,166,35,.04)); border-color: transparent; color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.shop-items { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 14px; }
.item { padding: 0; border: 1px solid #2c3a4b; border-radius: 0; background: linear-gradient(170deg, rgba(34,45,60,.95), rgba(14,19,27,.95)); overflow: hidden; transition: transform .1s, border-color .1s; display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
.item:hover { transform: translateY(-2px); border-color: #f5a623; }
.item .stage { height: 86px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 70%, rgba(245,166,35,.16), transparent 70%); border-bottom: 1px solid rgba(255,255,255,.05); }
.item .stage img { width: 88%; height: 76px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.55)); transition: transform .15s; }
.item:hover .stage img { transform: scale(1.06) rotate(-2deg); }
.item .meta { padding: 8px 10px 2px; }
.item b { font-size: 15px; line-height: 1.15; }
.item .meta small { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.item .price { display: inline-block; margin: 6px 10px 10px; align-self: flex-start; padding: 2px 10px; font-size: 15px; font-weight: 800; color: #0f1a12; background: #7dde92; }
.item.cant { opacity: .55; }
.item.cant .price { background: #5b3a3a; color: #ffb3b3; }
.item.owned { border-color: #3fae5d; }
.item .flag { position: absolute; top: 6px; left: 6px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 2px 7px; }
.item .flag.ok { background: #3fae5d; color: #08200f; }
.item .flag.no { background: #c0392b; color: #fff; }
.gear-ic { font-size: 46px; text-align: center; }
.gear-ic.big { font-size: 86px; }
.shop-detail { padding: 0 16px 16px; background: rgba(0,0,0,.18); }
.shop-detail .d-stage { height: 150px; margin: 0 -16px 10px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 65%, rgba(245,166,35,.22), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.shop-detail .d-stage img { width: 92%; height: 130px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.6)); }
.shop-detail h4 { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 21px; margin: 4px 0 2px; }
.shop-detail .d-cat { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.shop-detail p { font-size: 14px; }
.shop-detail .stats { grid-template-columns: 80px 1fr 30px; font-size: 13px; gap: 7px 8px; margin: 10px 0; }
.shop-detail .stats em { font-style: normal; color: #fff; font-weight: 700; text-align: right; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.specs div { background: rgba(255,255,255,.05); padding: 6px 8px; }
.specs small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.specs b { font-size: 15px; }
.shop-foot { font-size: 14px; }
.stats { grid-template-columns: 62px 1fr 26px !important; }
.stats em { font-style: normal; text-align: right; color: #dfe6ee; font-weight: 700; }
.shop-detail .stats { grid-template-columns: 80px 1fr 30px !important; }
.item { min-height: 172px; }
.item > * { flex-shrink: 0; }

/* tela de carregamento da partida (a animação roda no compositor: continua girando mesmo enquanto o jogo prepara os gráficos) */
#loadingScreen { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(ellipse at center, #1a2230 0%, #07090d 75%); font-family: 'Rajdhani', 'Segoe UI', sans-serif; }
#loadingScreen .ld-box { text-align: center; width: min(420px, 90vw); }
#loadingScreen h2 { font-family: 'Russo One', sans-serif; font-weight: 400; letter-spacing: 3px; text-transform: uppercase; margin: 18px 0 4px; }
#loadingScreen p { color: #c9d3de; margin: 0 0 14px; font-weight: 600; }
#loadingScreen small { color: #6f7c8a; }
.ld-spin { width: 56px; height: 56px; margin: 0 auto; border: 4px solid rgba(245,166,35,.18); border-top-color: #f5a623; border-radius: 50%; animation: ldspin .8s linear infinite; will-change: transform; }
@keyframes ldspin { to { transform: rotate(360deg); } }
.ld-bar { height: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 14px; }
.ld-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f5a623, #ffd36b); transition: width .3s; }

/* =================== v0.9: tela inicial nova (vitrine das armas do jogo + botões de oficina) =================== */
.screen.menu-screen {
  background:
    linear-gradient(90deg, #070c10 0%, rgba(7,12,16,.96) 30%, rgba(7,12,16,.55) 50%, rgba(7,12,16,.05) 72%),
    linear-gradient(0deg, rgba(7,12,16,.9), transparent 28%),
    #0a1116 url('assets/menu/vitrine-armas.webp') 70% center / cover no-repeat;
}
/* faixa zebrada de obra no topo + grade técnica bem sutil por cima */
.screen.menu-screen::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 70%);
}
.menu-screen > * { position: relative; z-index: 1; }
.menu-bar { background: linear-gradient(180deg, #0b1116, #0a1015ee); border-bottom: 0; box-shadow: 0 1px 0 #ffffff14; }
.menu-bar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px;
  background: repeating-linear-gradient(-45deg, #f5a623 0 12px, #14181c 12px 24px); opacity: .85;
}
.menu-bar .logo { font-size: 32px; letter-spacing: 1px; }
.menu-bar .logo span { color: var(--accent); }
.screen .nav-btn { position: relative; font-size: 15px; letter-spacing: .12em; color: #9fb0b9; }
.screen .nav-btn.on { color: #fff; background: none; box-shadow: none; }
.screen .nav-btn::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .18s;
}
.screen .nav-btn:hover::after { transform: scaleX(.4); }
.screen .nav-btn.on::after { transform: scaleX(1); }

/* painel de partida: chapa de aço com cantos cortados e parafusos */
.match-config {
  position: relative; border: 1px solid #33444d; border-top: 0;
  background: linear-gradient(160deg, rgba(22,34,42,.94), rgba(9,15,20,.97));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.match-config::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: repeating-linear-gradient(-45deg, #f5a623 0 9px, #1a1f24 9px 18px);
}
.menu-screen #panel-play h2 { text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.menu-screen #panel-play h2::after { width: 90px; height: 5px; background: repeating-linear-gradient(-45deg, #f5a623 0 6px, transparent 6px 12px); }

/* cartões de modo com ícone */
.screen #panel-play button.mode { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.screen #panel-play button.mode::before {
  content: ''; grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center;
  font-size: 20px; background: #16222b; border: 1px solid #3a4c55; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
#panel-play button.mode[data-mode="ffa"]::before { content: '⚔'; }
#panel-play button.mode[data-mode="ct"]::before { content: '💣'; }
#panel-play button.mode[data-mode="training"]::before { content: '🎯'; }
.screen #panel-play button.mode.on::before { background: #f5a623; border-color: #f5a623; color: #1a1003; }
.screen #panel-play button.card { transition: background .12s, border-color .12s, transform .12s; }
.screen #panel-play button.card:hover { transform: translateX(3px); }

/* botões de ação: grandes, recortados, com faixa zebrada que corre no hover */
.screen #panel-play .match-actions { border-top: 1px dashed #40515a; }
.screen #panel-play .match-actions button { font-family: 'Russo One', 'Segoe UI', sans-serif; font-weight: 400; letter-spacing: .08em; }
.screen #panel-play #btnSolo,
.screen #gateOk {
  position: relative; overflow: hidden; padding: 15px 22px 15px 54px; font-size: 19px; color: #1a1003;
  background: linear-gradient(180deg, #ffc65a, #f5a623 55%, #d88a10);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,0,.18);
}
.screen #panel-play #btnSolo::before,
.screen #gateOk::before {
  content: '▶'; position: absolute; left: 0; top: 0; bottom: 0; width: 40px; display: grid; place-items: center;
  font-size: 15px; color: #f5a623; background: #1a1f24;
}
.screen #panel-play #btnSolo::after,
.screen #gateOk::after {
  content: ''; position: absolute; left: 40px; right: 0; bottom: 0; height: 5px; animation: none; top: auto; width: auto; transform: none;
  background: repeating-linear-gradient(-45deg, rgba(26,16,3,.55) 0 7px, transparent 7px 14px); background-size: 20px 5px;
}
.screen #panel-play #btnSolo:hover::after, .screen #gateOk:hover::after { animation: hazard .6s linear infinite; }
@keyframes hazard { to { background-position: 20px 0; } }
.screen #panel-play #btnSolo:hover, .screen #gateOk:hover { filter: brightness(1.08); }
.screen #panel-play #playMultiplayer {
  padding: 15px 20px; font-size: 16px; background: rgba(14,22,28,.9); border: 1px solid #5d727c; color: #e8eef0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.screen #panel-play #playMultiplayer:hover { background: #1d2c35; border-color: #f5a623; color: #ffcb76; }

/* segmentados (bots) e campos no mesmo visual */
.screen #panel-play .seg { border: 1px solid #3a4c55; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.screen #panel-play .seg button { background: #0c161d; font-family: 'Rajdhani', sans-serif; font-weight: 700; }
.screen #panel-play .seg button.on { background: #f5a623; color: #1a1003; }

/* tela do apelido com a mesma vitrine */
.screen.gate {
  background-image: linear-gradient(90deg, rgba(7,12,16,.95), rgba(7,12,16,.6) 45%, rgba(7,12,16,.05) 75%), url('assets/menu/vitrine-armas.webp');
  background-position: center, 70% center;
}
@media (max-width: 650px) {
  .screen.menu-screen {
    background: linear-gradient(180deg, rgba(7,12,16,.1) 120px, #070c10 420px), #070c10 url('assets/menu/vitrine-armas.webp') 75% 60px / auto 360px no-repeat;
  }
  .screen #panel-play #btnSolo { font-size: 16px; padding-left: 48px; }
}
.screen #panel-play button.mode::before, .screen #panel-play button.mode.on::before { position: static; grid-column: 1; grid-row: 1 / 3; inset: auto; }
.screen #panel-play button.mode b, .screen #panel-play button.mode small { grid-column: 2; }
.screen .nav-btn { font-size: 14px; letter-spacing: .07em; }
.menu-bar nav { scrollbar-width: none; }
.menu-bar nav::-webkit-scrollbar { display: none; }
@media (max-width: 650px) {
  .screen #panel-play button.mode { grid-template-columns: 1fr; row-gap: 4px; }
  .screen #panel-play button.mode::before, .screen #panel-play button.mode.on::before { grid-row: 1; width: 30px; height: 30px; font-size: 16px; }
  .screen #panel-play button.mode b, .screen #panel-play button.mode small { grid-column: 1; }
}

#menu #accountAction, .gate-actions button { width: auto; margin: 0; border: 0; clip-path: none; background: transparent; color: #ffc369; }
#menu #accountAction { padding: 0; font-size: 11px; text-align: left; }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; }
.screen .gate-actions button { padding: 4px 0; margin: 0; width: auto; border: 0; background: transparent; color: #ffc369; font-size: 13px; }
#gatePass { width: 100%; }

#outfitFilter { display: flex; gap: 4px; margin: 0 0 8px; }
#outfitFilter button { width: auto; margin: 0; padding: 3px 12px; clip-path: none; background: transparent; color: #bfccd7; }
#outfitFilter button[aria-pressed=true] { color: #ffc773; border-color: #977039; }
.club-thumb { width: clamp(30px,5.7vh,64px); height: clamp(30px,5.7vh,64px); object-fit: contain; }
#pickOutfit .gear-thumb { width: min(100%,clamp(40px,7vh,80px)); }
#kitTitle { margin: 2px 0 11px; font-weight: 600; font-size: 19px; color: #e5ecf2; }
#pickPower { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.ability-info { display: grid; grid-template-columns: clamp(42px,5.4vw,84px) minmax(0,1fr); gap: 12px; align-items: center;
  padding: clamp(8px,1vw,14px); border: 1px solid #364854; border-radius: 5px; background: linear-gradient(120deg,#22343f,#15212b); }
.ability-info img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.ability-name { display: flex; align-items: center; gap: 7px; }
.ability-name strong { font-size: clamp(14px,1.15vw,18px); line-height: 1.15; }
.ability-name kbd { min-width: 19px; padding: 1px 4px; color: #ffd38d; border-color: #76634a; }
.ability-info p { margin: 5px 0; font: 13px/1.3 'Segoe UI',sans-serif; color: #d4dfe6; }
.ability-info small { display: block; color: #edbc76; font-size: 12px; font-weight: 600; }
@media(max-width:720px) {
  .ability-info { grid-template-columns: 1fr; gap: 2px; padding: 6px; }
  .ability-info img { display: none; }
  .ability-info p { font-size: 11px; }
}
.power-slot small { white-space: normal; text-align: center; }

#rankDialog { color: #ecf2f5; background: #18252f; border: 1px solid #64717a; border-top: 3px solid #eda83b; padding: 22px 30px; margin: auto; text-align: center; border-radius: 7px; }
#rankDialog::backdrop { background: #080e14b8; }
#rankDialog h2 { margin: 0 0 12px; font-size: 22px; }
#rankChange { display: block; color: #95e4b3; font-size: 32px; }
#rankChange.loss { color: #ffa59b; }
#rankDialog p { margin: 7px 0; }
#rankDialog button { margin: 12px 0 0; }

.badge-art { width: 20px; height: 20px; vertical-align: middle; object-fit: contain; margin-right: 4px; }
#profileIcon .badge-art { width: 32px; height: 32px; margin: 0; }
#pickBadge .badge-art { width: 54px; height: 54px; margin: 0; }
.power-glyph .ability-art { display: block; width: 32px; height: 30px; object-fit: contain; }
#powerAimHint, #dogWarning { position: absolute; left: 50%; transform: translateX(-50%); text-align: center;
  border-radius: 4px; padding: 5px 10px; background: #101b24ec; font-size: 14px; }
#powerAimHint { bottom: 102px; color: #a0ffeb; }
#dogWarning { top: 24%; color: #ffdfba; border-left: 3px solid #f57949; }
#matchSide { position: absolute; left: 14px; top: max(224px, 36%); width: min(192px, 24vw); display: grid; gap: 4px; }
#matchSide section { padding: 7px 9px; background: #101820db; border-left: 2px solid #667987; border-radius: 3px; }
#matchSide section:first-child { border-color: #f8b54a; }
#matchSide section > small { display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #c3d3dd; }
#matchPhase { display: block; font-size: 18px; color: #ffd188; }
#matchProgress { appearance: none; display: block; width: 100%; height: 4px; margin: 4px 0; border: 0; background: #36434b; }
#matchProgress::-webkit-progress-bar { background: #36434b; }
#matchProgress::-webkit-progress-value { background: #f4b955; }
#matchProgress::-moz-progress-bar { background: #f4b955; }
#matchGoal { display: block; font-size: 12px; font-weight: 500; }
#matchLeaders { margin: 5px 0 0; padding: 0; list-style: none; }
#matchLeaders li { display: grid; grid-template-columns: 17px minmax(0,1fr) auto; align-items: center; gap: 3px; padding: 2px 0; font-size: 13px; line-height: 1.05; }
#matchLeaders li > span { color: #bdcbd4; font-size: 11px; }
#matchLeaders li div { min-width: 0; }
#matchLeaders li b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#matchLeaders small { display: block; color: #a6b6c2; font-size: 10px; font-weight: 500; }
#matchLeaders .self { color: #ffce79; }
#matchLeaders .badge-art { width: 17px; height: 17px; float: left; margin-top: 2px; }
@media (max-height: 710px), (max-width: 700px) {
  #hud #radar { width: 112px; height: 112px; }
  #hud #callout { top: 130px; width: 112px; }
  #matchSide { top: max(152px, 32%); }
  #matchLeaders small { display: none; }
}
@media (max-height: 480px) {
  #matchSide { top: 83px; left: 140px; }
  #matchLeaders li:not(.self):nth-child(n+4) { display: none; }
}
@media (max-width: 820px) { #powerAimHint { bottom: 152px; } }

#nickDialog { color: #e9f1f5; background: #17232e; border: 1px solid #526676; border-top: 3px solid #ffb541; border-radius: 6px; width: min(350px, 90vw); padding: 22px; }
#nickDialog::backdrop { background: #070d14c9; }
#nickForm { display: grid; gap: 10px; }
#nickForm h2, #nickForm p { margin: 0; }
#nickForm p:empty { display: none; }
#nickForm input { font: inherit; color: white; background: #0d151d; padding: 8px; border: 1px solid #869baa; }
#nickForm #nickError { color: #ffb9a8; }
#nickForm div { display: flex; justify-content: flex-end; gap: 8px; }

.career-emblem { width: 48px; height: 48px; object-fit: contain; }
.mp-profile .career-emblem { float: right; }

#smokeVeil { position: absolute; inset: 0; background: radial-gradient(ellipse at 44% 48%, #919ba4, #78848d 72%, #6e7c87); pointer-events: none; }

#kitHeader:not([hidden]) { display:flex; gap:8px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:8px; }
#kitHeader h3 { margin:0; }
#kitMode { display:flex; gap:3px; }
#kitMode button { width:auto; margin:0; padding:3px 7px; font-size:12px; clip-path:none; }
#kitMode button[aria-pressed=true] { color:#ffcc75; border-color:#c1934d; }

#marketNotice { position:absolute; top:17%; left:50%; transform:translateX(-50%); padding:5px 12px; border-left:3px solid #ffbd57; background:#111c24eb; color:#fff1cc; text-align:center; font-size:15px; z-index:1; }

#center .damage-report { color: #ffce93; font-weight: 700; }
.kill-medal {
  --enamel: #a6d4cb; --metal: #477876; display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 18px 3px 5px; border-radius: 4px; text-align: left; color: #fff9e9;
  background: linear-gradient(100deg, #0d1b21ed, #112026eb 78%, #102027aa);
  border-bottom: 2px solid var(--metal); animation: medal-in .22s ease-out;
}
.kill-medal.precision { --enamel: #ffcd75; --metal: #aa7533; }
.kill-medal.double { --enamel: #9cd9ff; --metal: #4987ac; }
.kill-medal.triple { --enamel: #e0b4ff; --metal: #9365a8; }
.kill-medal.multi { --enamel: #ffd494; --metal: #dc764f; }
.kill-medal svg { width: clamp(36px, 6vh, 54px); flex: none; }
.medal-metal { fill: var(--metal); stroke: var(--enamel); stroke-width: 2; }
.medal-core { fill: #192c31; stroke: var(--enamel); }
.medal-mark { fill: none; stroke: var(--enamel); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.kill-medal b { color: var(--enamel); text-transform: uppercase; letter-spacing: .06em; }
#center .kill-medal small { color: #e3e9e6; font-size: 12px; }
.dog-release { display: inline-flex; align-items: center; gap: .3em; color: #ffd089; }
.dog-release::before { content: ''; width: 1.35em; height: 1.35em; background: url('assets/emblemas/caramelo.svg') center / contain no-repeat; }
@keyframes medal-in { from { opacity: 0; transform: translateY(6px) scale(.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kill-medal { animation: none; } }

#roomStreak {
  --ink: #d4effe; --edge: #81b5ce; position: fixed; z-index: 27; pointer-events: none;
  left: 50%; top: clamp(78px, 15vh, 145px); transform: translateX(-50%);
  width: min(300px, 60vw); text-align: center; font-family: 'Rajdhani', sans-serif;
}
#roomStreak.tier-4 { --ink: #f2e2ff; --edge: #c59be3; }
#roomStreak.tier-5 { --ink: #fff0be; --edge: #f9bf60; width: min(380px, 68vw); }
.streak-ribbon {
  position: relative; isolation: isolate; padding: 5px 22px 9px;
  color: var(--ink); background: linear-gradient(90deg, transparent, #11222bef 22% 78%, transparent);
  animation: streak-arrive .23s ease-out both;
}
.streak-ribbon::before, .streak-ribbon::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--edge) 28% 72%, transparent);
}
.streak-ribbon::before { top: 0; } .streak-ribbon::after { bottom: 0; }
.tier-5 .streak-ribbon {
  background: linear-gradient(110deg, transparent 3%, #453224f2 24%, #211d1af5 52%, #453224f2 76%, transparent 97%);
}
.streak-ribbon strong { display: block; font: 400 clamp(18px, 3.5vh, 30px)/1 'Russo One', sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.tier-5 .streak-ribbon strong { font-size: clamp(27px, 4.8vh, 49px); text-shadow: 0 2px 0 #98642f; }
.streak-ribbon span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: white; font-size: clamp(14px, 2.2vh, 21px); font-weight: 700; }
.streak-stars { display: flex; justify-content: center; gap: .35em; color: var(--edge); }
.streak-stars i { font-style: normal; font-size: 12px; line-height: 1.3; }
.tier-5 .streak-stars i { font-size: 18px; animation: streak-star .34s cubic-bezier(.2,.8,.3,1.3) both; animation-delay: calc(var(--i) * 65ms); }
.tier-5 .streak-stars i:nth-child(3) { color: #fff3bc; }
@keyframes streak-arrive { from { opacity: 0; transform: translateY(-8px) scaleX(.88); } to { opacity: 1; transform: none; } }
@keyframes streak-star { from { opacity: 0; transform: translateY(5px) scale(.4) rotate(-16deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .streak-ribbon, .tier-5 .streak-stars i { animation: none; } }

#musicNotice { position: fixed; right: 18px; bottom: 16px; z-index: 25; pointer-events: none;
  max-width: min(340px, 80vw); padding: 8px 23px 8px 12px; border-left: 4px solid #f3af43;
  background: linear-gradient(100deg,#101d29f5,#142937e8); color: #f6f2e5; font-family: 'Rajdhani', sans-serif; }
#musicNotice small, #musicNotice strong, #musicNotice span { display: block; }
#musicNotice small { font-size: 12px; color: #ffcc76; text-transform: uppercase; letter-spacing: .1em; }
#musicNotice strong { font-size: 20px; line-height: 1.1; }
#musicNotice span { color: #ccd7df; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { #musicNotice:not([hidden]) { animation: fadein .22s ease-out; } }

#panel-play #mapCards { grid-template-columns: repeat(2,minmax(0,1fr)); }
.screen #panel-play button.map { grid-template-columns: 1fr; gap: 4px; min-height: 0; }
#panel-play .map span { gap: 1px; }
#panel-play .thumb { height: clamp(42px,7vh,68px); }
#mpMapSeg { flex-wrap: wrap; }

.next-track { flex: none; align-self: center; }
.shop-model { display: grid; gap: 3px; color: #b6c6ce; font-size: .8rem; }
.shop-model select { color: #fff; background: #203141; border: 1px solid #50657a; padding: .35rem; font: inherit; }


/* Central de operações */
:root {--lobby-art:url('./assets/menu/lobby-cais.webp');}
#menu .logo button {
  display:inline-flex; align-items:baseline; width:auto; margin:0; padding:0; border:0;
  background:transparent; color:#f0f0e7; font:inherit; line-height:1; letter-spacing:-.045em; clip-path:none;
}
#menu .logo button span {color:#dfb878;}
#menu:has(#panel-home.on) {background:#111a1c;}
#menu:has(#panel-home.on)::before {display:none;}
#menu:has(#panel-home.on) .content {
  position:relative; display:flex; flex-direction:column; padding:0 var(--menu-gutter); isolation:isolate;
  background:
    linear-gradient(90deg,#0a1318a3 0%,#0a13184d 27%,transparent 52%),
    linear-gradient(0deg,#0c1318d9,transparent 28%),
    #1c282b var(--lobby-art) 61% 32% / cover no-repeat;
}
#panel-home.on {
  flex:1; min-height:0; width:100%; max-width:none; margin:0; padding-block:clamp(18px,4vh,50px);
  display:grid; grid-template-rows:minmax(min-content,1fr) auto; gap:clamp(16px,3vh,36px);
}
.ops-intro {align-self:center;width:min(29rem,50%);}
#panel-home .ops-intro h2 {
  margin:0 0 clamp(20px,3.8vh,42px); padding:0; color:#eeeae0; text-shadow:0 2px 14px #09101788;
  font:600 clamp(34px,5.1vw,88px)/.93 'Rajdhani','Segoe UI',sans-serif;
  text-transform:uppercase; letter-spacing:-.035em;
}
#panel-home .ops-intro h2 strong {font-weight:700;}
#panel-home .ops-intro h2::after {display:none;}
.ops-deploy {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:370px;}
#menu #panel-home .ops-deploy button {justify-content:space-between;width:100%;min-height:47px;padding-inline:clamp(10px,1.4vw,20px);}
.ops-deploy button span,.pc-download span {font:500 1.15em/1 system-ui;}
.ops-footer {display:flex;align-items:end;justify-content:space-between;gap:12px;}
#menu .ops-operative {
  display:grid;grid-template-columns:clamp(49px,6.6vh,77px) 1fr auto;align-items:center;gap:12px;
  width:min(320px,100%);min-height:64px;margin:0;padding:0 13px 0 0;overflow:hidden;text-align:left;
  color:#eceee7;background:#152127eb;border:1px solid #a6b5ae55;border-left:3px solid #caa56a;
  border-radius:2px;clip-path:none;
}
.ops-operative img {display:block;width:100%;height:clamp(62px,8.4vh,92px);object-fit:cover;object-position:50% 24%;background:linear-gradient(145deg,#52615e,#253237);}
.ops-operative>span {display:grid;line-height:1.1;gap:2px;}
.ops-operative small {color:#dfbd84;font-size:.64rem;text-transform:uppercase;letter-spacing:.12em;}
.ops-operative strong {font-size:clamp(19px,2.55vh,26px);letter-spacing:.035em;}
.ops-operative #homeEquipment {font-size:.83rem;font-weight:500;color:#cfdbd8;text-transform:none;letter-spacing:.01em;}
.ops-operative i {font-style:normal;color:#ddc9a1;}
#menu .ops-operative:hover {background:#233338;border-color:#ccb58c;}
body:has(#panel-home.on) #musicNotice {bottom:auto;top:calc(76px + 12px);}
@media(max-width:700px) {
  #menu:has(#panel-home.on) .content {background-position:center,center,66% 35%;}
  .ops-intro {width:min(270px,82%);}
  .ops-deploy {grid-template-columns:1fr;max-width:170px;gap:6px;}
  #menu #panel-home .ops-deploy button {min-height:38px;}
  #menu .ops-operative {width:min(245px,75vw);}
  .ops-footer {align-items:start;flex-wrap:wrap;}
}
.pick .ability-art {width:52px;height:52px;}

/* A central de operações usa a mesma direção de arte nas telas internas. */
#menu:not(:has(#panel-home.on)) {
  --accent:#e7c080; --accent2:#d6a15d; color:#e6e9e5;
  background:linear-gradient(90deg,#0c1519fa 9%,#142027ed 56%,#1a272bcd),var(--lobby-art) 68% 32% / cover;
}
#menu:not(:has(#panel-home.on))::before,.menu-bar::after,.match-config::before {display:none;}
#menu:not(:has(#panel-home.on)) .menu-bar {background:#10191ceb;border-bottom:1px solid #b9c5bd35;}
#menu .panel:not(#panel-home)>h2 {font:600 clamp(25px,3.8vh,45px)/1.1 'Barlow Condensed','Segoe UI',sans-serif;letter-spacing:.035em;color:#f0efe7;}
#menu .panel:not(#panel-home)>h2::after {display:none;}
#menu .box,#menu .char-pick,#menu .match-config,#menu .char-stage {clip-path:none;background:#132025e8;border:1px solid #879a9c47;box-shadow:0 12px 36px #04090928;}
#menu .char-pick {align-self:stretch;}
#menu .char-stage {background:radial-gradient(ellipse at 50% 26%,#516064 0,#293941 43%,#172328 82%);}
#menu .char-name {padding:12px 18px;border-left:3px solid #e3bd7c;background:linear-gradient(90deg,#131b1ee8,transparent);}
#menu .char-categories {background:transparent;border-bottom:1px solid #9baeb143;}
#menu .char-categories button {font:600 .94rem 'Segoe UI',sans-serif;letter-spacing:.03em;}
#menu .char-categories button.on {color:#efd39a;}
#menu #pickModel:not([hidden]) {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,1vw,14px);}
#menu #pickModel .pick {position:relative;overflow:hidden;isolation:isolate;display:grid;align-content:end;justify-items:start;
  min-height:clamp(89px,19vh,210px);height:auto;background:linear-gradient(140deg,#36484c,#19282d 80%);
  border:1px solid #697b7e70;border-radius:2px;clip-path:none;padding:0;}
#menu #pickModel .pick.on {border-color:#e4bb77;background:linear-gradient(140deg,#655c47,#222d2e 82%);}
#menu #pickModel .operator-portrait {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center 15%;z-index:-1;}
#menu #pickModel small {width:100%;text-align:left;padding:6px 11px;background:linear-gradient(0deg,#101a1eef,#101a1e65);color:#fff4df;}
#menu .box h3,#menu .match-config h4,#menu .arsenal h3 {color:#e9d2a8;letter-spacing:.045em;}
#menu .screen button.primary,#menu .primary {background:#dfbd82;color:#172021;}
#menu .card,#menu .seg button,#menu .opt-grid button {border-radius:2px;clip-path:none;}
#menu .nav-btn.on {color:#f4debc;}
#menu .nav-btn.on::after {background:#e1bc80;}
#profileIcon .ability-art {width:28px;height:28px;}
@media(max-height:690px) {#menu #pickModel .pick{min-height:84px;} #menu .char-name{padding:5px 10px;}}
@media(max-width:680px) {#menu #pickModel .pick{min-height:90px;}#menu #pickModel:not([hidden]){gap:5px;}}

.screen.gate {background:linear-gradient(90deg,#091115fa 4%,#111b20ec 34%,#16222950 72%),var(--lobby-art) 65% center / cover;}
.gate-box #gateTitle {max-width:11ch;font-family:'Segoe UI',sans-serif;font-weight:750;font-size:clamp(32px,7vh,64px);line-height:1;letter-spacing:-.04em;}
.gate-box .gate-brand {color:#e7e8df;}
.gate-box .gate-brand span {color:#dcb578;}

#menu #pickModel .pick small{position:absolute;left:0;bottom:0;}

/* Controles e superfícies usados entre o menu e a partida. */
:root {
  --ui-ink:#ecede6; --ui-muted:#b8c5c2; --ui-gold:#e4bf80; --ui-line:#516269;
  --ui-surface:#152126; --ui-control:#233038; --ui-highlight:#324249;
}
#menu .menu-bar {
  background:#111b20f5; border-bottom:1px solid #acb6ac38;
  box-shadow:none; gap:clamp(10px,2.1vw,42px);
}
#menu .menu-bar nav {min-width:0; align-items:stretch;}
#menu .nav-btn {font:700 clamp(12px,1.1vw,16px)/1 Rajdhani,'Segoe UI',sans-serif;letter-spacing:.065em;padding-inline:clamp(6px,1.05vw,19px);}
#menu .nav-btn.on {color:#fff1d7;}
#menu .nav-btn::after {background:var(--ui-gold);}
:is(#menu,#lobby,#pause,#results,#nameGate,.ui-dialog) :is(.ui-action,button.primary),
#lobby :is(#btnLeave,#btnPrivacy),#pause :is(#btnFullscreen,#btnLoadout,#btnQuit),#results #btnMenu,#nickDialog #nickCancel,
#menu :is(#playMultiplayer,#btnRefreshRooms,#btnRandomLook),#shop #shopClose {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:.55em;
  min-height:38px; margin:0; padding:.54em 1.1em; border:1px solid var(--ui-line); border-radius:2px;
  background:var(--ui-control); color:var(--ui-ink); clip-path:none; box-shadow:none; text-shadow:none;
  font:700 15px/1.13 Rajdhani,'Segoe UI',sans-serif; text-transform:uppercase; letter-spacing:.055em;
  transition:background-color .15s,border-color .15s,color .15s;
}
:is(#menu,#lobby,#pause,#results,#nameGate,.ui-dialog) :is(.ui-action,button.primary):hover,
#lobby #btnLeave:hover,#pause button:not(.primary):hover,#results #btnMenu:hover,#nickDialog #nickCancel:hover,#menu #playMultiplayer:hover,#shop #shopClose:hover {
  border-color:#a1b0ab; background:var(--ui-highlight); color:white;
}
:is(#menu,#lobby,#pause,#results,#nameGate,.ui-dialog) button.primary {
  background:var(--ui-gold); color:#171c1c; border-color:#edcd96; filter:none;
}
:is(#menu,#lobby,#pause,#results,#nameGate,.ui-dialog) button.primary::after {content:none;}
:is(#menu,#lobby,#pause,#results,#nameGate,.ui-dialog) button.primary:hover {background:#f1d39e;color:#101617;border-color:#fae1b6;filter:none;}
:is(#menu,#lobby,#pause,#results,#nameGate,.ui-dialog) button:disabled {opacity:.48;cursor:default;}
:is(#menu,#lobby,#pause,#results,#nameGate,.ui-dialog,#shop) :is(button,input,select):focus-visible {outline:2px solid #ffe1a6;outline-offset:-2px;}
#menu .ui-action[hidden] {display:none;}
#menu .seg,#menu #panel-play .seg {clip-path:none;border-radius:2px;border-color:var(--ui-line);background:#111c21;}
#menu .seg button,#menu #panel-play .seg button {background:transparent;color:var(--ui-muted);clip-path:none;}
#menu .seg button.on,#menu #panel-play .seg button.on {background:var(--ui-gold);color:#151c1d;}
#menu .seg button:not(.on):hover {color:white;background:var(--ui-highlight);}
#menu .room-entry {display:flex;gap:8px;align-items:stretch;}
#menu .room-entry input {flex:1 1 0;min-width:0;margin:0;}
#menu .room-entry button {flex:0 0 auto;width:auto;}
#menu .mp-profile #careerPlay {width:max-content;max-width:100%;margin-top:8px;}
#menu .pc-download {width:auto;}
.screen .ui-surface,:is(#nickDialog,#rankDialog).ui-surface {
  box-sizing:border-box; color:var(--ui-ink); background:linear-gradient(145deg,#203037,#142026 80%);
  border:1px solid #61716f; border-top:3px solid var(--ui-gold); border-radius:3px;
  box-shadow:0 16px 58px #0008; clip-path:none;
}
:is(dialog.ui-dialog,#pause .ui-surface,#results .ui-surface,#lobby .ui-surface) {
  max-height:calc(100dvh - 32px);overflow:auto;scrollbar-width:thin;scrollbar-color:#52646a #142025;
}
:is(#nickDialog,#rankDialog).ui-dialog {margin:auto;width:min(410px,calc(100vw - 32px));padding:clamp(20px,3vw,32px);font-family:Rajdhani,'Segoe UI',sans-serif;}
:is(#nickDialog,#rankDialog).ui-dialog::backdrop {background:#050c10bd;}
:is(#pause,#results,#lobby,.ui-dialog) h2 {font:700 clamp(24px,4.2vh,36px)/1.05 Rajdhani,'Segoe UI',sans-serif;letter-spacing:.015em;}
:is(#nickDialog,#rankDialog).ui-dialog h2 {font:700 29px/1.05 Rajdhani,'Segoe UI',sans-serif;text-transform:uppercase;}
#nickForm label {color:var(--ui-muted);font-weight:600;}
#nickForm input {border-radius:2px;border:1px solid var(--ui-line);background:#101a1f;font-size:18px;}
#nickForm div,#rankDialog form,.ui-actions {border-top:1px solid #87949342;padding-top:13px;margin-top:7px;}
#rankDialog form button {width:100%;}
#pause .ui-surface {display:grid;gap:8px;width:min(380px,calc(100vw - 32px));padding:clamp(18px,3vw,32px);}
#pause .ui-surface h2 {margin:0 0 8px;}
#pause .check {margin:4px 0;}
#pause .ui-surface #btnQuit {margin-top:7px;}
#lobby .ui-surface,#results .ui-surface {width:min(820px,calc(100vw - 32px));padding:clamp(16px,2.4vw,34px);}
#lobby .lobby-side {flex-direction:row;align-items:center;flex-wrap:wrap;}
#lobby .lobby-mode {border:1px solid #5b6969;background:#263338;color:#ead5b1;border-radius:2px;}
#lobby .team-col {border:1px solid #46585c;border-radius:2px;background:#121d22;}
#lobby .slot {border-radius:2px;}
#lobby .lobby-head h2 {margin:0;}
#lobby .lobby-head .code {letter-spacing:.11em;color:var(--ui-gold);}
#lobby .msg:empty,#results p:empty {display:none;}
#nameGate .gate-box {padding:clamp(16px,2.5vw,34px);width:min(440px,100%);}
#nameGate .gate-box #gateTitle {font:700 clamp(27px,4.8vh,42px)/1 Rajdhani,'Segoe UI',sans-serif;max-width:none;margin:0 0 clamp(10px,2.2vh,22px);}
#nameGate .gate-actions button {color:var(--ui-gold);}
#nameGate .gate-inner {gap:clamp(12px,3vh,32px);}
#nameGate .gate-box #gateOk {width:100%;min-height:42px;margin-top:13px;}
@media (min-width:850px) and (max-height:800px) {
  #menu .menu-bar {min-height:60px;}
  #menu .content {padding-block:clamp(8px,1.6vh,14px);}
  #menu .mp-workspace {gap:12px;}
  #menu #panel-mp .box {padding:clamp(10px,1.6vh,14px);}
  #menu .mp-create h4 {margin-block:8px 4px;}
  #menu .mp-create button {padding-block:6px;}
  #menu .mp-create p.tag {margin-block:4px;}
  body:has(#panel-home.on) #musicNotice {top:68px;}
}
@media(max-height:570px) and (min-width:701px) {
  #panel-home.on {padding-block:10px;gap:6px;}
  #panel-home .ops-intro h2 {font-size:42px;margin-bottom:10px;}
  #nameGate .gate-inner {grid-template:1fr / minmax(100px,1fr) minmax(265px,420px);align-items:center;}
}
@media(prefers-reduced-motion:reduce) {
  :is(#menu,#nameGate,#pause,#results,#lobby,.ui-dialog) button {animation:none;transition:none;}
}


#panel-char .char-categories { grid-template-columns: repeat(4,minmax(0,1fr)); }
#menu #pickModel:not([hidden]) { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; }
#menu #pickModel .pick { min-height: clamp(64px,12vh,118px); }
#menu #pickModel small { padding: 3px 4px; text-align: center; }
#kitHeader:not([hidden]) { margin-top: clamp(8px,2vh,18px); }
#pickPower .ability-info { grid-template-columns: clamp(27px,2.8vw,45px) minmax(0,1fr); gap: 8px; padding: clamp(6px,.8vw,13px); }
#pickPower .ability-info p { margin: 3px 0; }
@media (max-width: 720px) {
  #menu #pickModel:not([hidden]) { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #menu #pickModel .pick { min-height: 54px; }
  #pickPower .ability-info { grid-template-columns: minmax(0,1fr); align-content:start; }
  #pickPower .ability-info > img { display:none; }
}

/* ---------- Jogar: largura toda, mapas grandes lado a lado ---------- */
.menu-screen #panel-play { max-width: none; width: 100%; }
#panel-play .match-config { max-width: 1500px; }
#panel-play .match-grid { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); }
#panel-play #mapCards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.screen #panel-play button.map { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; min-height: 0; overflow: hidden; }
#panel-play .map .thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
#panel-play .map span { padding: 12px 14px 14px; gap: 6px; }
#panel-play .map b { font-size: 22px; }
#panel-play .map small { font-size: 14px; line-height: 1.35; }
.screen #panel-play button.map.on { box-shadow: 0 0 0 2px #ffb13e, 0 12px 30px #0007; }
.screen #panel-play button.map:hover .thumb { filter: brightness(1.12); }
#panel-play #modeCards .card { padding: 14px 14px; }
#panel-play .match-settings { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.screen #panel-play .match-actions { justify-content: flex-end; }
.screen #panel-play #btnSolo { flex: 0 1 420px; font-size: 20px; padding: 15px 22px; }
@media (max-width: 900px) {
  #panel-play .match-grid { grid-template-columns: 1fr; }
  #panel-play #modeCards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Pausa: jogo desfocado ao fundo, menu à esquerda e comandos à direita ---------- */
#pause.screen { place-items: stretch; background: linear-gradient(90deg, #05090cf2 0%, #05090cc7 46%, #05090c80 100%); backdrop-filter: blur(5px); }
#pause .pause-wrap { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 520px); gap: clamp(32px, 6vw, 110px); align-content: center; padding: 0 clamp(28px, 7vw, 120px); height: 100%; animation: pauseIn .22s ease-out; }
@keyframes pauseIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { #pause .pause-wrap { animation: none; } }
#pause .pause-kicker { margin: 0 0 6px; color: #ffb13e; font: 700 14px/1.2 'Rajdhani', sans-serif; letter-spacing: .22em; text-transform: uppercase; }
#pause h2 { margin: 0 0 26px; font: 700 clamp(56px, 6vw, 92px)/.9 'Rajdhani', sans-serif; color: #fff7e9; letter-spacing: -.02em; text-transform: uppercase; }
#pause .pause-menu { display: grid; gap: 2px; border-top: 1px solid #ffffff1f; }
#pause .pause-menu button, #pause .pause-menu .check {
  all: unset; box-sizing: border-box; display: flex; align-items: center; min-height: 48px; padding: 0 14px; cursor: pointer;
  border-bottom: 1px solid #ffffff14; color: #dfe6e8; font: 700 19px/1 'Rajdhani', sans-serif; letter-spacing: .06em; text-transform: uppercase;
  transition: background .12s, color .12s, padding .12s;
}
#pause .pause-menu button:hover, #pause .pause-menu button:focus-visible { background: #ffffff0d; color: #fff; padding-left: 20px; outline: none; }
#pause .pause-menu button.primary { background: #ffb13e; color: #111618; border-bottom-color: transparent; }
#pause .pause-menu button.primary:hover { background: #ffc66a; color: #111618; }
#pause .pause-menu .check { gap: 10px; font-weight: 600; color: #aab7bc; }
#pause .pause-menu .pause-quit { color: #ff9c8a; }
#pause .pause-keys h3 { margin: 0 0 14px; color: #8fa1a8; font: 700 13px/1 'Rajdhani', sans-serif; letter-spacing: .24em; text-transform: uppercase; }
#pause .pause-keys dl { display: grid; gap: 0; margin: 0; }
#pause .pause-keys dl > div { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid #ffffff10; }
#pause .pause-keys dt { display: flex; gap: 4px; flex-wrap: wrap; }
#pause .pause-keys dd { margin: 0; color: #c9d3d6; font: 500 15px/1.35 'Segoe UI', system-ui, sans-serif; }
#pause kbd { display: inline-block; min-width: 26px; padding: 3px 7px; border: 1px solid #ffffff33; border-bottom-width: 2px; border-radius: 3px; background: #ffffff0f; color: #fff; font: 700 13px/1 'Rajdhani', sans-serif; text-align: center; }
@media (max-width: 900px) { #pause .pause-wrap { grid-template-columns: 1fr; align-content: start; padding-top: 48px; overflow: auto; } }

/* ---------- HUD de partida: tático e discreto (sem caixas arredondadas nem ícones de emoji) ---------- */
#hud { font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif; --hud-amber: #ffb13e; --hud-line: #ffffff26; --hud-bg: linear-gradient(90deg, #05090cb3, #05090c40); }
#hud :is(#health, #ammo, #ctBar .team, #ctBar .mid, #ctSide, #objBanner, #topbar, #killfeed .kf, #prompt, #buyHint, #matchSide section) {
  border-radius: 0; box-shadow: none; text-shadow: 0 1px 2px #000c;
}
/* vida e colete: canto inferior esquerdo, número grande, barra fina */
#hud #health { left: 28px; bottom: 26px; padding: 0 0 0 14px; gap: 14px; background: none; border-left: 3px solid #e8eef0; }
#hud #health .hp-icon { display: none; }
#hud #hpNum { font: 700 52px/1 'Rajdhani', sans-serif; min-width: 0; letter-spacing: -.02em; }
#hud #health .bar { width: 160px; height: 4px; border-radius: 0; background: #ffffff26; }
#hud #health .bar > div { border-radius: 0; }
#hud #armorBox { display: flex; align-items: baseline; gap: 4px; font: 700 18px/1 'Rajdhani', sans-serif; color: #9fd0ff; }
#hud #armorBox .shield, #hud #armorBox #helmetIcon { display: none; }
#hud #armorBox::before { content: 'COLETE'; font-size: 11px; letter-spacing: .16em; color: #8fa1a8; }
/* munição: canto inferior direito, nome da arma em caixa alta */
#hud #ammo { right: 28px; bottom: 26px; padding: 0 14px 0 0; background: none; border-right: 3px solid var(--hud-amber); }
#hud #weaponName { font: 700 13px/1 'Rajdhani', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #c9d3d6; }
#hud #mag { font: 700 52px/1 'Rajdhani', sans-serif; letter-spacing: -.02em; }
#hud #reserve { font: 600 20px/1 'Rajdhani', sans-serif; color: #8fa1a8; }
#hud #slots span { border-radius: 0; border-color: #ffffff22; font: 700 11px/1.4 'Rajdhani', sans-serif; letter-spacing: .1em; }
#hud #slots span.on { border-color: var(--hud-amber); color: #fff; background: #ffb13e1a; }
#hud #money { display: none !important; }
/* placar do CQB: faixa única no topo */
#hud #ctBar { top: 14px; gap: 0; min-width: 460px; }
#hud #ctBar .team, #hud #ctBar .mid { background: #05090cb8; padding: 6px 16px; }
#hud #ctBar .team.left { border-bottom: 2px solid #9b7bff; }
#hud #ctBar .team.right { border-bottom: 2px solid #ffb347; }
#hud #ctBar .mid { border-bottom: 2px solid #ffffff33; }
#hud #ctBar .name { font: 700 13px/1 'Rajdhani', sans-serif; letter-spacing: .2em; color: #c9d3d6; }
#hud #ctBar .score { font: 700 32px/1 'Rajdhani', sans-serif; }
#hud #ctRound { font: 700 11px/1 'Rajdhani', sans-serif; letter-spacing: .22em; color: var(--hud-amber); }
#hud #ctTimer { font: 700 30px/1.05 'Rajdhani', sans-serif; }
#hud #objBanner { top: 74px; background: none; border-left: none; font: 600 14px/1 'Rajdhani', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #c9d3d6; }
#hud #ctSide { left: 28px; bottom: 96px; background: none; padding: 0; font: 700 13px/1 'Rajdhani', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8fa1a8; }
/* radar sem moldura pesada */
#hud #radar { top: 20px; left: 20px; border: 1px solid #ffffff2e; background: #05090c99; }
/* feed de abates: linhas finas à direita */
#hud #killfeed { top: 20px; right: 24px; }
#hud #killfeed .kf { background: #05090ca6; padding: 5px 12px; border-left: 2px solid transparent; font: 600 14px/1.2 'Rajdhani', sans-serif; }
#hud #killfeed .kf.me { border-left-color: var(--hud-amber); background: #2a1c05b3; }
/* dica de tecla: centralizada logo abaixo da mira, com tecla desenhada */
#hud #prompt { top: 60%; padding: 8px 16px; background: #05090cc4; border-bottom: 2px solid var(--hud-amber); font: 600 16px/1.2 'Rajdhani', sans-serif; letter-spacing: .04em; }
#hud #prompt kbd { background: #fff; color: #111; border-radius: 2px; padding: 1px 7px; font: 700 14px/1.3 'Rajdhani', sans-serif; margin: 0 6px 0 0; }
#hud #center { font: 700 24px/1.2 'Rajdhani', sans-serif; letter-spacing: .06em; text-transform: uppercase; }
#hud #center small { font: 600 15px/1.3 'Rajdhani', sans-serif; letter-spacing: .04em; text-transform: none; color: #c9d3d6; }
/* habilidades: faixa inferior central */
#hud #powerHud .power-slot { border-radius: 0; background: #05090cb8; }
#hud #matchSide section { background: #05090cb8; border-left: 2px solid #ffffff33; }

/* ---------- Alerta de evento do cenário ---------- */
#hazardAlert { position: absolute; top: 118px; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; min-width: min(620px, 92vw); background: #0b0e10f0; border-top: 2px solid #ffc531; border-bottom: 2px solid #ffc531; box-shadow: 0 18px 60px #000a; animation: hzIn .35s cubic-bezier(.2,.9,.3,1.2); }
#hazardAlert.lethal { border-color: #ff4636; }
#hazardAlert .hz-stripes { width: 46px; background: repeating-linear-gradient(-45deg, #ffc531 0 12px, #111 12px 24px); animation: hzRoll .6s linear infinite; }
#hazardAlert.lethal .hz-stripes { background: repeating-linear-gradient(-45deg, #ff4636 0 12px, #111 12px 24px); }
#hazardAlert .hz-body { flex: 1; padding: 10px 20px 12px; text-align: center; }
#hazardAlert .hz-kicker { display: block; color: #ffc531; font: 700 12px/1 'Rajdhani', sans-serif; letter-spacing: .4em; animation: hzBlink .5s steps(2) infinite; }
#hazardAlert.lethal .hz-kicker { color: #ff6b5e; }
#hazardAlert strong { display: block; margin: 4px 0 2px; color: #fff; font: 700 clamp(26px, 2.6vw, 40px)/1 'Rajdhani', sans-serif; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 0 18px #ffc53166; }
#hazardAlert small { display: block; color: #d7dfe2; font: 600 15px/1.3 'Rajdhani', sans-serif; letter-spacing: .03em; }
#hazardAlert .hz-bar { height: 4px; margin-top: 8px; background: #ffffff1f; }
#hazardAlert .hz-bar i { display: block; height: 100%; width: 100%; background: #ffc531; transform-origin: left; }
#hazardAlert.lethal .hz-bar i { background: #ff4636; }
#hazardEdge { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 120px 30px #ff2a1a66; animation: hzPulse .8s ease-in-out infinite alternate; }
@keyframes hzIn { from { opacity: 0; transform: translate(-50%, -30px) scaleY(.6); } }
@keyframes hzRoll { to { background-position: 34px 0; } }
@keyframes hzBlink { 50% { opacity: .35; } }
@keyframes hzPulse { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #hazardAlert, #hazardAlert .hz-stripes, #hazardAlert .hz-kicker, #hazardEdge { animation: none; } }

/* ---------- Placar do CQB: bloco central de tempo, times em lâminas, traços de vivos e rodadas ---------- */
#hud #ctBar { top: 12px; display: grid; grid-template-columns: 230px 128px 230px; gap: 0; min-width: 0; filter: drop-shadow(0 8px 18px #0008); }
#hud #ctBar .team { height: 54px; padding: 0 18px; background: linear-gradient(180deg, #0b1116f2, #070b0ee6); display: grid; align-items: center; column-gap: 12px; position: relative; border: 0; }
#hud #ctBar .team.left { grid-template-columns: 1fr auto; grid-template-rows: auto auto; clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); box-shadow: inset 0 -3px 0 #9b7bff; }
#hud #ctBar .team.right { grid-template-columns: auto 1fr; grid-template-rows: auto auto; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%); box-shadow: inset 0 -3px 0 #ffb347; }
#hud #ctBar .team.left .pips { grid-column: 1; grid-row: 2; justify-self: end; }
#hud #ctBar .team.left .name { grid-column: 1; grid-row: 1; justify-self: end; align-self: end; }
#hud #ctBar .team.left .score { grid-column: 2; grid-row: 1 / 3; }
#hud #ctBar .team.right .score { grid-column: 1; grid-row: 1 / 3; }
#hud #ctBar .team.right .name { grid-column: 2; grid-row: 1; align-self: end; }
#hud #ctBar .team.right .pips { grid-column: 2; grid-row: 2; }
#hud #ctBar .name { font: 700 12px/1 'Rajdhani', sans-serif; letter-spacing: .28em; color: #aeb9bd; }
#hud #ctBar .name .ti { color: #b9a4ff; } #hud #ctBar .name .v { color: #ffc879; }
#hud #ctBar .score { font: 700 40px/1 'Rajdhani', sans-serif; font-variant-numeric: tabular-nums; color: #fff; min-width: 28px; text-align: center; }
#hud #ctBar .pips { display: flex; gap: 3px; margin-top: 5px; }
#hud #ctBar .pips i { width: 14px; height: 5px; background: #ffffff1f; transform: skewX(-20deg); }
#hud #ctBar .left .pips i.on { background: #9b7bff; }
#hud #ctBar .right .pips i.on { background: #ffb347; }
#hud #ctBar .mid { height: 62px; margin-top: -4px; padding: 6px 0 0; background: #f2f4f5; color: #0a0e11; text-align: center; border: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
#hud #ctTimer { font: 700 36px/1 'Rajdhani', sans-serif; font-variant-numeric: tabular-nums; color: #0a0e11; text-shadow: none; }
#hud #ctTimer.bomb { color: #e0281b; animation: hzBlink .9s steps(2) infinite; }
#hud #ctRound { margin-top: 2px; font: 700 10px/1 'Rajdhani', sans-serif; letter-spacing: .24em; color: #5b666b; text-shadow: none; }
#hud #ctAlive { display: none; }
#hud #ctHistory { grid-column: 1 / -1; justify-content: center; gap: 4px; margin-top: 7px; }
#hud #ctHistory span { width: 18px; height: 4px; border-radius: 0; background: #ffffff26; }
#hud #ctHistory span.ti { background: #9b7bff; } #hud #ctHistory span.v { background: #ffb347; }
#hud #ctHistory span.now { background: #fff; }
#hud #ctPhase { grid-column: 1 / -1; justify-self: center; margin-top: 8px; padding: 4px 14px; background: #ffb13e; color: #0a0e11; font: 700 12px/1 'Rajdhani', sans-serif; letter-spacing: .26em; text-transform: uppercase; text-shadow: none; }
#hud #ctPhase.alert { background: #e0281b; color: #fff; }
#hud #ctPhase.hidden { display: none; }
#hud #objBanner { top: 112px; padding: 6px 16px; background: #05090cb8; font: 600 13px/1 'Rajdhani', sans-serif; letter-spacing: .18em; color: #c9d3d6; }
#hud #objBanner b { color: #fff; }
#hazardAlert { top: 142px; }

#thermalTint { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, #1a305000 40%, #0a1a3a99 100%); mix-blend-mode: multiply; box-shadow: inset 0 0 0 2px #ff5a1a55; }
#thermalTint.hidden { display: none; }
