:root {
  /* CORES DOS TIMES (pedido de 29/09/2026: "sempre um time AZUL, outro
     LARANJA; o laranja no lugar do vermelho"). Policia = azul, Bandidos =
     laranja. Tons medidos no print do feed de abates que a dona mandou (cor
     do texto + brilho borrado atras); o laranja definitivo ela ainda vai
     mandar -- trocar AQUI muda tudo que usa as variaveis. */
  --time-azul: #7fe6f6;
  --time-azul-brilho: #34a6d6;
  --time-laranja: #f29a4c;
  --time-laranja-brilho: #e07424;
  --texto: #f1ede4;
  --sombra: 0 2px 0 #0009;
  --destaque: #ffcf5a;
  --perigo: #e0463a;
}

* { box-sizing: border-box; }
/* BARRA DE ROLAGEM DO JOGO (09/10/2026, a dona: "tire esse scroll do
   navegador e coloque um do jogo mesmo" -- a barra branca do Windows
   aparecia no painel da sala escolhida e nas patentes). Vale para TODA
   rolagem: escura, quadrada, com o laranja do lobby. ATENCAO: no Chrome 121+
   um `scrollbar-color`/`scrollbar-width` no elemento DESLIGA estes
   ::-webkit-scrollbar -- nao declarar esses dois em nenhum lugar (so o
   `scrollbar-width: none` de quem esconde a barra). Firefox: o @supports. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0f14; box-shadow: inset 1px 0 0 #1f2731; }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #ffbf5a, #f39a00); border: 2px solid #0b0f14; min-height: 28px; }
::-webkit-scrollbar-thumb:hover { background: #ffd35a; }
::-webkit-scrollbar-button, ::-webkit-scrollbar-corner { display: none; background: #0b0f14; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: #f39a00 #0b0f14; } }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; }
body { font: 600 16px/1.3 system-ui, "Segoe UI", sans-serif; color: var(--texto); user-select: none; }
/* Jogo, nao site: imagem (icone de arma, roupa) nao se arrasta para fora
   (reclamacao). Junto com o dragstart bloqueado no lobby.js. */
img { -webkit-user-drag: none; user-drag: none; }
#jogo canvas { display: block; }

#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: var(--sombra); }

/* Mira em cruz: quatro tracinhos, centro vazio para nao tapar o alvo. */
#mira { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: opacity .12s; }
#mira span { position: absolute; background: #fff; box-shadow: 0 0 2px #000; }
#mira span:nth-child(1), #mira span:nth-child(2) { width: 2px; height: 8px; left: -1px; }
#mira span:nth-child(1) { top: -14px; }
#mira span:nth-child(2) { top: 6px; }
#mira span:nth-child(3), #mira span:nth-child(4) { width: 8px; height: 2px; top: -1px; }
#mira span:nth-child(3) { left: -14px; }
#mira span:nth-child(4) { left: 6px; }

/* Visao pela luneta. A malha da luneta do SCAR-L tem a lente fechada dentro
   dela, entao olhar "pelo modelo" mostra so um disco preto. Com a mira no
   olho, a arma some (arma.js) e esta mascara faz o papel da luneta. */
#luneta { position: absolute; inset: 0; opacity: 0; /* (sem transition: segue o zoom quadro a quadro, arma.js fatorLuneta) */
          background: radial-gradient(circle at center, transparent 0 34vmin, #000c 34.4vmin, #000 36vmin); }

/* Reticulo: a lente do modelo nao aparece, entao o ponto e desenhado aqui. */
#ponto-vermelho { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px;
                  border-radius: 50%; background: #ff2a2a; box-shadow: 0 0 6px 2px #ff2a2a99; opacity: 0; transition: opacity .1s; }

/* Marca de acerto: X que aparece quando a bala pega. */
#marca { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; opacity: 0; }
#marca::before, #marca::after { content: ""; position: absolute; left: 10px; top: -2px; width: 2px; height: 26px; background: #fff; }
#marca::before { transform: rotate(45deg); }
#marca::after { transform: rotate(-45deg); }
#marca.ativa { opacity: 1; }
#marca.cabeca::before, #marca.cabeca::after { background: var(--destaque); }
#marca.matou::before, #marca.matou::after { background: var(--perigo); width: 3px; }

/* Placar da sala no alto, no centro (arte placar.png, 700x92, sem os
   numeros: o jogo escreve por cima). Posicoes em % da arte; letra em cqw
   (largura do proprio placar), entao tudo escala junto com a tela. Centro e
   altura de cada numero MEDIDOS contra os digitos da arte original (placar
   com 1:42, 2 x 2, partida 5): mesmos lugares e tamanhos. */
#placar-serie { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: clamp(340px, 32vw, 620px);
  container-type: inline-size; pointer-events: none; filter: drop-shadow(0 3px 6px #0008); }
#placar-serie img { display: block; width: 100%; height: auto; }
#placar-serie b { position: absolute; transform: translate(-50%, -50%); font-family: Impact, "Haettenschweiler", "Arial Narrow", sans-serif;
  font-weight: 400; line-height: 1; color: #f2eee6; text-shadow: 0 .35cqw 0 #000, 0 0 1cqw #000b; font-variant-numeric: tabular-nums; }
#ps-verm { left: 33.9%; top: 54.5%; font-size: 6.2cqw; }
#ps-azul { left: 66%; top: 54.5%; font-size: 6.2cqw; }
/* Tempo um pouco abaixo do centro dos digitos da arte original (56%): a
   dona do jogo achou alto demais -- centro da caixa escura do meio. */
#ps-tempo { left: 50.3%; top: 60.5%; font-size: 5.9cqw; letter-spacing: .15cqw; }
#ps-rodada { left: 50%; top: 21.6%; font-size: 2.65cqw; }
/* COMBATE: so o relogio no alto (main.js comecarPartida, .so-tempo) -- sem a
   arte nem os numeros dos times (o placar dos times fica perto do minimapa) */
#placar-serie.so-tempo { width: auto; container-type: normal; }
#placar-serie.so-tempo img, #placar-serie.so-tempo #ps-verm, #placar-serie.so-tempo #ps-azul, #placar-serie.so-tempo #ps-rodada { display: none; }
#placar-serie.so-tempo #ps-tempo { position: static; display: block; transform: none; padding: 4px 16px; font-size: 30px; letter-spacing: 1px;
  background: #0b0f15b3; border-bottom: 2px solid #ffbf5a99; text-shadow: 0 2px 0 #000; }
/* Abates/mortes (e onda/pontos no zumbi) logo abaixo do placar. */
#topo { position: absolute; top: calc(12px + clamp(340px, 32vw, 620px) * 0.1314); left: 0; right: 0; display: flex; justify-content: center; gap: 28px; font-size: 14px; text-shadow: 0 1px 2px #000; }
#topo b { color: var(--destaque); font-size: 20px; margin-left: 4px; }
/* OBJETIVO do time (roubo/destruicao), logo abaixo do placar, no lugar do
   #topo do zumbi. Maiusculo, curto, legivel no meio do tiroteio. */
#objetivo { position: absolute; top: calc(12px + clamp(340px, 32vw, 620px) * 0.1314); left: 50%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 12px; padding: 5px 16px; background: #0009; border-left: 3px solid #e8b04a;
  font: 700 15px/1.2 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #f2eee6; text-shadow: 0 1px 2px #000;
  white-space: nowrap; pointer-events: none; }
#objetivo.policia { border-left-color: #4a8fe8; }
#objetivo b { color: #f0c24e; font-size: 17px; }
#objetivo b:empty { display: none; }
/* Abates por time (combate), GRUDADO em cima do minimapa, no jeito do BF3
   (14/10/2026, print da dona: "US 718 / RU 472" com barra -- Response no azul
   claro, Raiders no laranja, vidro escuro como o do minimapa). A barra e a
   proporcao: quem lidera, cheia; o outro, proporcional (main.js). */
/* (no combate o minimapa e FIXO e de borda nitida -- minimapa.js `fixo`: o
   placar tem a largura EXATA dele e cola em cima, sem vao: margem de baixo
   negativa igual ao gap do #radar) */
#abates-times { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; padding: 6px 8px 7px; margin: 0 0 -3px;
  background: linear-gradient(180deg, #1b2a36d9, #12202bcc); border: 1px solid #ffffff1f; border-bottom: 0;
  font: 700 clamp(10px, 0.72vw, 14px)/1 "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif; text-shadow: 0 1px 2px #000c; }
/* (colunas na medida da letra: a barra fica com o resto em qualquer tela) */
.at-linha { display: grid; grid-template-columns: 6.2em 2.1em 1fr; align-items: center; gap: 0.45em; }
.at-linha span { font-size: 0.9em; letter-spacing: .06em; }
.at-linha b { text-align: right; font-size: 1.12em; font-variant-numeric: tabular-nums; }
.at-barra { position: relative; display: block; height: 0.62em; min-height: 6px; background: #ffffff1c; box-shadow: inset 0 0 0 1px #ffffff14; }
.at-barra > i { position: absolute; inset: 0 auto 0 0; display: block; width: 0%; transition: width .4s ease-out; }
.at-linha.azul { color: #8fd3ff; }
.at-linha.azul .at-barra > i { background: linear-gradient(90deg, #3d9be0, #8fd3ff); box-shadow: 0 0 6px #5cb8ff88; }
.at-linha.verm { color: #ffa45c; }
.at-linha.verm .at-barra > i { background: linear-gradient(90deg, #d8661f, #ffa45c); box-shadow: 0 0 6px #ff8a3c88; }
/* (o display: flex acima venceria o atributo hidden) */
#objetivo[hidden], #abates-times[hidden] { display: none; }

/* PAINEL estilo BATTLEFIELD 3, canto inferior direito. 3a rodada
   (29/09/2026, print do BF3: "tem mais detalhes, faca igual, na mesma cor,
   com o mesmo efeito blur atras de cada numero"). Placa AZUL translucida em
   dois blocos: em cima a VIDA (faixa clara = a vida que resta, linha de
   batimento e o %); embaixo a MUNICAO grande, com os digitos que sobram
   APAGADOS atras ("88" fantasma, como no painel dele), a reserva menor, o
   modo de tiro (tres balas acesas = automatica, uma = semi), "Gx1" e a
   barra fina entre colchetes (balas no pente). Texto branco-azulado com
   brilho azul borrado atras (text-shadow). Cores medidas no print.
   Ambar abaixo de 50%, vermelho pulsando abaixo de 25%. */
#painel-bf { position: absolute; right: 18px; bottom: 16px; display: flex; flex-direction: column; align-items: stretch;
  width: 214px; color: #e2eef6; font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif; font-weight: 300;
  font-variant-numeric: tabular-nums; gap: 3px;
  --brilho-hud: 0 0 2px #9ad4f4, 0 0 5px #5fb4e8, 0 0 12px #2f84c0;
  text-shadow: var(--brilho-hud);
  transform: perspective(700px) rotateY(-10deg); transform-origin: right center; }
#vida { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 10px 4px 8px; background: rgba(28, 98, 150, 0.58); overflow: hidden; }
#vida-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(120, 190, 235, 0.16);
  transition: width .25s; pointer-events: none; }
#vida-graf { position: relative; width: 116px; height: 22px; display: block; }
.vida-txt { position: relative; display: flex; align-items: baseline; }
#vida-num { font-size: 21px; font-weight: 300; line-height: 1; letter-spacing: .06em; min-width: 40px; text-align: right; }
.vida-pct { font-size: 14px; font-weight: 300; margin-left: 2px; }
#vida.baixa { color: #ffd08a; }
#vida.critica { color: #ff6b5f; }
#vida.critica .vida-txt { animation: vidaPulsa .8s ease-in-out infinite; }
#vida.regenerando #vida-num { animation: vidaVolta 1s ease-in-out infinite; }
@keyframes vidaPulsa { 50% { opacity: .45; } }
@keyframes vidaVolta { 50% { filter: brightness(1.45); } }

/* FPS (pedido: "para eu ver como ta o fps no desenvolvimento"). */
#fps { position: absolute; left: 12px; top: 10px; font: 700 13px/1 system-ui, sans-serif; color: #b8ffb0;
  text-shadow: 0 1px 2px #000; letter-spacing: .04em; pointer-events: none; font-variant-numeric: tabular-nums; }
#fps.medio { color: #ffd98a; }
/* (o contador global de src/desempenho.js aparece em todas as telas; este, so da partida, sai) */
#fps { display: none !important; }
#fps.baixo { color: #ff7a6e; }

#balas { position: relative; display: flex; flex-direction: column; align-items: stretch; padding: 4px 10px 6px 10px;
  background: linear-gradient(180deg, rgba(26, 92, 142, 0.60), rgba(20, 74, 118, 0.52)); }
/* MINIMAPA estilo BATTLEFIELD 3: o quadrado do mapa, cantos retos,
   moldura fina clara (a bussola em faixa em cima saiu a pedido, 26/09/2026). O desenho e todo nos
   canvas (minimapa.js); aqui so tamanho e moldura. */
#radar { position: absolute; left: 16px; bottom: 16px; width: clamp(160px, 14vw, 230px); display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
/* (sem moldura nem sombra: a borda do minimapa some borrada, como no BF3 --
   minimapa.js mascaraBorda) */
#minimapa { width: 100%; aspect-ratio: 1; display: block; }
/* MAPA GRANDE (tecla M): o mapa inteiro no meio da tela, fundo escurecido.
   A proporcao do canvas e a da area de jogo (~1,65 : 1); cabe na tela sem
   cortar em qualquer proporcao de janela. */
#mapa-grande { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 7, 10, 0.45); pointer-events: none; z-index: 6; }
#mapa-grande[hidden] { display: none; }
.mg-caixa { display: flex; flex-direction: column; gap: 4px; width: min(90vw, calc(78vh * 1.65)); }
.mg-topo { display: flex; justify-content: space-between; align-items: baseline; color: #e8eef4;
  font: 300 13px/1 system-ui, sans-serif; letter-spacing: .22em; text-shadow: 0 1px 2px #000; }
.mg-topo small { font-size: 10px; letter-spacing: .12em; opacity: .6; }
#mapa-grande-cv { width: 100%; aspect-ratio: 1.65; display: block;
  border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }
.bl-linha { display: flex; align-items: flex-start; justify-content: space-between; }
.bl-num { display: flex; align-items: baseline; line-height: .9; margin: 0; }
#municao { font-size: 44px; font-weight: 300; letter-spacing: .02em; }
#municao.pouca { color: #ff6b5f; }
.bl-sep { font-size: 24px; margin: 0 5px 0 4px; opacity: .9; }
#reserva { font-size: 24px; letter-spacing: .02em; }
/* cada digito numa caixinha escura; as posicoes que sobram, com "8"
   apagado (o fantasma do painel do BF3) */
.fantasma { font-size: 44px; letter-spacing: 0; display: inline-flex; }
.fantasma.pequeno { font-size: 24px; }
.dig { display: inline-block; padding: 0 1px; margin-right: 1px; border-radius: 2px; background: rgba(110, 160, 195, 0.16); }
.dig.vazio { color: rgba(120, 175, 210, 0.16); text-shadow: none; }
#municao, #reserva { display: inline-flex; }
#nome-arma { display: none; }
#modo-tiro { display: flex; gap: 2px; margin-top: 6px; }
#modo-tiro i { width: 5px; height: 7px; border-radius: 3px 3px 1px 1px; background: rgba(210, 235, 250, 0.28); box-shadow: none; }
#modo-tiro i.aceso { background: #e2eef6; box-shadow: 0 0 4px #5fb4e8; }
#granadas-hud { font-size: 20px; font-weight: 300; letter-spacing: .04em; margin-top: 1px; }
#granadas-hud small { font-size: 18px; margin: 0 1px; }
#granadas-hud.vazio { opacity: .35; }
#granadas-hud b { font-weight: 300; }
/* barra fina entre colchetes: balas no pente */
#bl-barra { position: relative; height: 8px; margin: 6px 2px 0; border-left: 1px solid #8ec3e6; border-right: 1px solid #8ec3e6; }
#bl-barra::before, #bl-barra::after { content: ''; position: absolute; top: 0; bottom: 0; width: 3px; border-top: 1px solid #8ec3e6; border-bottom: 1px solid #8ec3e6; }
#bl-barra::before { left: 0; } #bl-barra::after { right: 0; }
#bl-barra-fill { position: absolute; left: 5px; right: 5px; top: 3.5px; height: 1px; background: #8ec3e6; box-shadow: 0 0 4px #5fb4e8;
  transform-origin: left center; transition: transform .15s; }

/* Feed de abates (pedido com print, 29/09/2026): "Matador [ARMA] Vitima"
   alinhado a direita, SEM faixa atras; cada nome na cor do TIME (policia
   azul, bandidos laranja; no zumbi os soldados azuis e o zumbi laranja) --
   o proprio jogador tambem (o verde saiu a pedido), a arma em branco. Atras de cada texto um brilho
   borrado da mesma cor (dois text-shadow). Cores e fonte calibradas contra
   o print (mesma medida de cor nas duas imagens). A linha mais antiga
   apaga e sai. */
#feed-abates { position: absolute; top: 12px; right: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.abate { display: flex; align-items: center; gap: 9px; font: 350 16px/18px "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
         letter-spacing: .01em; white-space: nowrap; transition: opacity .5s; }
.abate.saindo { opacity: 0; }
.abate .quem { color: var(--time-laranja); text-shadow: 0 0 3px var(--time-laranja-brilho), 0 0 8px var(--time-laranja-brilho); }
.abate .quem.azul { color: var(--time-azul); text-shadow: 0 0 3px var(--time-azul-brilho), 0 0 8px var(--time-azul-brilho); }
.abate .arma { color: #f6f6f6; text-shadow: 0 0 3px #c4c4c4, 0 0 8px #c4c4c4; }
.abate.saiu .arma { color: #cfd5de; text-shadow: 0 0 3px #000; letter-spacing: 1px; }
.abate svg { width: 18px; height: 18px; fill: #f6f6f6; filter: drop-shadow(0 0 3px #c4c4c4); }
/* Mapa dos LUGARES da picape (canto esquerdo, dirigindo): vista de cima,
   frente para cima. Livre: contorno; vindo: contorno piscando; ocupado:
   cheio na cor do time; voce: branco. */
#assentos { position: absolute; left: 18px; top: 34%; width: 118px; pointer-events: none;
  font: 600 11px/1.2 sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
#assentos svg { display: block; width: 118px; height: auto; filter: drop-shadow(0 1px 3px #000a); }
#assentos .as-titulo { margin-bottom: 4px; letter-spacing: .5px; }
#assentos .as-titulo b { color: #ffcf5a; }
#assentos .lugar { fill: none; stroke: #ffffff70; stroke-width: 2; }
#assentos .lugar.vindo { stroke: #ffcf5a; animation: as-pisca .8s infinite alternate; }
#assentos .lugar.cheio { fill: #d8453a; stroke: #ffb0a8; }
#assentos .lugar.voce { fill: #f2f2f2; stroke: #fff; }
#assentos text { fill: #fff; font: 700 10px sans-serif; text-anchor: middle; dominant-baseline: central; }
#assentos text.escuro { fill: #111; }
#assentos text.num { fill: #ffffff80; font-weight: 400; } /* lugar vago: o numero da tecla (trocarLugar) */
@keyframes as-pisca { from { opacity: 1; } to { opacity: .35; } }
/* Roubo do ouro: dica + barra de progresso no meio, um pouco abaixo da mira;
   selo dourado de quem esta com a barra. */
#roubo-hud { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); text-align: center;
  color: #fff; font-size: 15px; text-shadow: 0 1px 3px #000c; pointer-events: none; }
#roubo-hud kbd { display: inline-block; min-width: 20px; padding: 1px 6px; margin: 0 4px; border: 1px solid #fff9;
  border-radius: 3px; background: #0006; font: 700 13px/18px sans-serif; }
#roubo-barra { width: 220px; height: 6px; margin: 8px auto 0; background: #0008; border: 1px solid #ffffff40; border-radius: 3px; overflow: hidden; }
#roubo-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c9921e, #ffd76a); }
#roubo-hud.sem-barra #roubo-barra { display: none; }
#ouro-mao { position: absolute; right: 24px; bottom: 150px; padding: 5px 12px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(180deg, #ffd76a, #c9921e); color: #3a2600; font: 800 13px/1 sans-serif; letter-spacing: 1px;
  box-shadow: 0 2px 6px #0008; }
/* Carro: velocidade embaixo no meio, dica curta embaixo dela. Dirigindo,
   sem mira nem municao (nao ha arma na mao). */
body.dirigindo #mira, body.dirigindo #balas, body.dirigindo #luneta, body.dirigindo #ponto-vermelho { display: none; }
#carro-hud { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; pointer-events: none;
  text-shadow: 0 1px 3px #000c; color: #fff; }
#carro-kmh b { font: 700 46px/1 Impact, "Arial Narrow", sans-serif; letter-spacing: 1px; }
#carro-kmh span { font-size: 15px; margin-left: 6px; opacity: .8; }
#carro-hud.a-pe #carro-kmh { display: none; }
#carro-dica { margin-top: 6px; font-size: 15px; opacity: .9; }
#carro-dica kbd { display: inline-block; min-width: 20px; padding: 1px 6px; margin: 0 4px; border: 1px solid #fff9;
  border-radius: 3px; background: #0006; font: 700 13px/18px sans-serif; }
#aviso { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-size: 42px; opacity: 0; transition: opacity .4s; }
/* MIRA LIBERADA: grande, no alto e no meio, ~4 s (main.js mostrarMiraLiberada) */
#mira-liberada { position: absolute; left: 50%; top: 9%; transform: translate(-50%, -12px) scale(.92); display: flex; align-items: center; gap: 18px;
  padding: 14px 30px 14px 18px; pointer-events: none; opacity: 0; transition: opacity .35s, transform .35s;
  background: linear-gradient(90deg, #0b0f15e6, #1a1f29e6); border: 2px solid #ff9f1c; border-radius: 6px;
  box-shadow: 0 0 0 1px #000a, 0 0 28px #ff9f1c66; }
#mira-liberada.ativo { opacity: 1; transform: translate(-50%, 0) scale(1); }
#mira-liberada img { width: 96px; height: 60px; object-fit: contain; filter: drop-shadow(0 0 8px #ffd16699); }
#mira-liberada b { display: block; font-size: 34px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #ffd166;
  text-shadow: 0 2px 0 #000, 0 0 18px #ff9f1c88; white-space: nowrap; }
#mira-liberada small { display: block; margin-top: 2px; font-size: 14px; letter-spacing: 2.5px; text-transform: uppercase; color: #e6ebf2; }
@media (max-width: 760px) { #mira-liberada b { font-size: 22px; } #mira-liberada img { width: 64px; height: 40px; } }
#dano { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, #a00a 100%); }
/* FERIDO estilo BATTLEFIELD 3 (pedido): quanto menos vida, mais os CANTOS
   da tela embacam (#embaco: desfoque do que esta atras, recortado por uma
   mascara que deixa o meio limpo) e avermelham (#ferido). Os dois voltam
   ao normal conforme a vida sobe.
   SEM backdrop-filter (queixa: "passando de camionete e um bot atirando em
   mim, caiu MUITO o fps"): o desfoque de tela cheia por cima do WebGL faz o
   navegador ler e borrar a imagem do jogo INTEIRA a cada quadro, fora do
   jogo (medido: o quadro do jogo custava o mesmo com e sem tiro -- o peso
   estava na composicao). Dentro da picape se leva muito tiro seguido e o
   efeito ficava ligado o tempo todo. Hoje: NEVOA nas bordas (gradiente
   acinzentado), que o navegador desenha de graca. */
#embaco { position: absolute; inset: 0; opacity: 0; pointer-events: none; display: none;
  background: radial-gradient(ellipse 72% 68% at center, transparent 34%, rgba(58,62,64,0.45) 72%, rgba(26,28,30,0.78) 100%); }
#ferido { position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at center, transparent 50%, #6a0000aa 88%, #3a0000dd 100%); }
/* Respingos de sangue (um a cada tiro levado; imagens geradas no main.js). */
#sangue { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* As camadas de tela cheia que mudam de OPACIDADE a cada quadro levando tiro
   ficam em camada propria (will-change): trocar a opacidade vira so
   composicao, sem repintar o degrade da tela inteira a cada quadro (1080p). */
#dano, #ferido, #embaco, #fumaca-tela, #dano-dir { will-change: opacity; }
/* (camada propria: o sumico de 1,7 s vira so composicao, sem redesenhar a
   area a cada quadro -- levando tiro seguido sao ate 5 ao mesmo tempo) */
#sangue img { position: absolute; transform-origin: 50% 50%; will-change: opacity; }

/* CHAT da sala estilo BATTLEFIELD 3 (canto superior esquerdo, abaixo do
   FPS): "[TODOS] Nome: texto", nome na cor do time. UM fundo so para o
   bloco inteiro (pedido: "nao quero divisorias por texto"), que aparece com
   linha a mostra (.tem) ou com a caixa aberta. As linhas somem sozinhas;
   com o chat aberto (Enter) todas as recentes voltam. Fonte fina. */
#chat { position: absolute; left: 12px; top: 32px; width: min(420px, 40vw); font-size: 13px; font-weight: 400;
  padding: 4px 40px 4px 8px; background: transparent; }
/* degrade do preto para o transparente, da esquerda para a direita, como
   no BF3 (pedido: "vai degrade para transparente"). */
#chat.tem, #chat.aberto { background: linear-gradient(90deg, #000000b3 0%, #00000080 45%, #0000 100%); }
#chat-linhas { display: flex; flex-direction: column; gap: 1px; }
.chat-l { overflow-wrap: anywhere; line-height: 1.35; }
.chat-l.velha { display: none; }
#chat.aberto .chat-l.velha { display: block; }
.chat-l .canal { color: #d7dde2; opacity: .6; margin-right: 5px; font-size: 11px; }
.chat-l .nome { color: #ff9d3c; }
.chat-l .nome.amigo { color: #4cc4ff; }
.chat-l.sistema { color: #c9d3da; font-style: italic; }
#chat-form { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding-top: 4px;
  border-top: 1px solid; border-image: linear-gradient(90deg, #ffffff33, #fff0) 1; }
#chat-form[hidden] { display: none; }
#chat-form span { font-size: 11px; color: #4cc4ff; letter-spacing: .08em; }
#chat-texto { flex: 1; min-width: 0; font: inherit; color: #fff; background: transparent; border: 0; outline: 0; padding: 1px 0; pointer-events: auto; }

/* Companheiros de time (pedido): so o TRIANGULO sempre; com a mira em cima,
   nome e barra de vida em cima dele, tudo na MESMA cor. Minimalista: fonte
   fina e pequena, barra de 2 px, triangulo pequeno, logo acima da cabeca. */
#marcadores { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.marc { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #4cc4ff; will-change: transform; }
.marc .m-nome, .marc .m-vida { display: none; }
.marc.alvo .m-nome, .marc.alvo .m-vida { display: block; }
.marc .m-nome { font-size: 11px; font-weight: 400; letter-spacing: .03em; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.marc .m-vida { width: 34px; height: 2px; background: #0008; }
.marc .m-vida i { display: block; height: 100%; background: currentColor; }
.marc .m-tri { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 6px solid currentColor; filter: drop-shadow(0 1px 1px #000a); }

.tela { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 10px; background: #0b0f16cc; text-align: center; padding: 16px; }
.tela[hidden] { display: none; }
.tela h1 { font-size: 48px; margin: 0 0 6px; color: var(--destaque); text-shadow: var(--sombra); }
.tela p { margin: 0; font-size: 18px; }
.tela ul { list-style: none; padding: 0; margin: 8px 0 16px; line-height: 1.8; font-weight: 400; }
.tela button { font: inherit; font-size: 20px; padding: 12px 36px; border: 0; border-radius: 12px; cursor: pointer;
               background: var(--destaque); color: #2a1d05; box-shadow: 0 4px 0 #9a7418; }
.tela button:active { transform: translateY(3px); box-shadow: 0 1px 0 #9a7418; }

/* Modos (tela inicial) e HUD de cada modo. */
#modos { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 10px 0 4px; }
.tela button.modo { display: flex; flex-direction: column; gap: 6px; width: 260px; padding: 16px 18px; text-align: left; }
.tela button.modo b { font-size: 26px; }
.tela button.modo span { font-size: 15px; font-weight: 400; line-height: 1.35; }
.tela button.secundario { background: #3a4150; color: #e9edf4; box-shadow: 0 4px 0 #1d222b; font-size: 16px; padding: 9px 26px; }

/* Contagem antes de comecar (5 s, tudo parado). */
#contagem { position: absolute; left: 0; right: 0; top: 28%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#contagem[hidden] { display: none; }
#contagem span { font-size: 18px; letter-spacing: 3px; text-transform: uppercase; opacity: .85; }
#contagem b { font-size: 96px; line-height: 1; color: var(--destaque); }
#contagem small { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; margin-top: 10px; padding: 6px 14px; border-radius: 6px; background: rgba(0, 0, 0, .45); animation: contagem-pisca 1.2s ease-in-out infinite alternate; }
#contagem small[hidden] { display: none; }
#clique-jogar { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); pointer-events: none; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; padding: 8px 18px; border-radius: 6px; background: rgba(0, 0, 0, .55); animation: contagem-pisca 1.2s ease-in-out infinite alternate; }
#clique-jogar[hidden] { display: none; }
@keyframes contagem-pisca { from { opacity: .55; } to { opacity: 1; } }

/* Resultado da partida. */
.resultado { background: #070a10ee; }
/* PLACAR (TAB e fim da partida) estilo BATTLEFIELD 3 (pedido de
   29/09/2026, com print): sem moldura, duas tabelas lado a lado; cabecalho
   de cada uma na cor do TIME (azul policia, laranja bandidos) com o nome e
   o total; linhas azul-escuro translucidas alternadas; a linha de quem
   abriu o TAB em LARANJA; quem esta morto, apagado. Fonte Bahnschrift.
   Missoes embaixo, no mesmo desenho. */
.pb { width: min(1120px, 96vw); padding: 0; color: #d3e1ea; font: 400 15px/1 "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
  background: none; text-align: left; }
.pb-topo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 2px 6px; }
.pb-topo h2 { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: #fff; order: 2;
  text-shadow: 0 1px 3px #000; }
.pb-topo span { font-size: 13px; color: #c7d6e0; text-shadow: 0 1px 2px #000; }
.pb-times { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-items: start; }
.pb-time { background: rgba(22, 36, 46, 0.62); }
.pb-time table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pb-time th { height: 30px; padding: 0 6px; font-size: 17px; font-weight: 400; color: #fff; text-align: center;
  text-shadow: 0 1px 2px #0006; }
.pb-time.azul th { background: #7fbfee; }
.pb-time.verm th { background: #d9822c; }
.pb-time th.c-titulo { text-align: left; padding-left: 8px; }
.pb-time th.c-titulo span { text-transform: uppercase; letter-spacing: 1px; }
.pb-time th.c-titulo b { font-weight: 400; margin-left: 22px; }
.pb-time th:nth-child(2), .pb-time th:nth-child(3) { width: 44px; }
.pb-time th:nth-child(4) { width: 86px; }
.pb-time th:last-child { width: 62px; }
.pb-time.com-exp th:nth-child(5) { width: 62px; }
.pb-time td { height: 28px; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28); }
.pb-time td.c-num { width: 34px; color: #c3d3de; }
.pb-time td.c-pat { width: 34px; }
.pb-time td.c-pat svg { display: block; margin: 0 auto; }
.pb-time td.c-nick { color: #e4eef4; }
.pb-time td.c-n { text-align: center; color: #e4eef4; }
.pb-time td.c-exp { color: #ffd08a; }
.pb-time tbody tr:nth-child(odd) { background: rgba(58, 82, 98, 0.55); }
.pb-time tbody tr:nth-child(even) { background: rgba(40, 60, 74, 0.55); }
.pb-time tr.morto td { color: #8ea3b1; }
.pb-time tr.morto td.c-pat svg { opacity: .5; }
/* Quem abriu o TAB: sempre laranja (cor medida no print) */
.pb-time tbody tr.eu { background: #c9711a !important; }
.pb-time tbody tr.eu td { color: #fff; }
.pb-time tr.horda td.c-nick { color: #d3e1ea; }
.pb-missoes { margin-top: 6px; background: rgba(22, 36, 46, 0.62); }
.pb-missoes h3 { margin: 0; padding: 0 8px; height: 26px; line-height: 26px; font-size: 15px; font-weight: 400; color: #fff;
  text-transform: uppercase; letter-spacing: 1px; background: rgba(127, 191, 238, 0.55); }
.pb-missao { display: grid; grid-template-columns: 34px 1fr 110px 110px; align-items: center; height: 26px; padding-right: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28); }
.pb-missao:nth-child(odd) { background: rgba(58, 82, 98, 0.45); }
.pb-missao .c-num { text-align: center; color: #c3d3de; }
.pb-missao .m-prog { text-align: right; color: #e4eef4; }
.pb-missao .m-ok { text-align: right; color: #ffd08a; font-size: 13px; }
.pb-missao.feita .m-txt { color: #ffd08a; }
/* TAB no MEIO da tela (pedido: "ta muito pra cima"; em 8% do alto ficava
   por baixo do placar da sala). */
#placar-tab { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 25; }
#placar-tab[hidden] { display: none; }
#tela-fim .pb { margin: 10px auto 4px; }
/* Entre uma partida e outra: so quem venceu e a contagem, SEM a tabela
   (pedido: a tabela fixa so no fim de todas as partidas). */
#tela-fim.entre .pb { display: none; }
#tela-fim.entre { background: #070a1099; }
.fim-volta { font-size: 14px !important; opacity: .7; }

/* Carregando partida (14/10/2026, refeita no jeito de tela de FPS): arte do
   mapa em tela cheia com degrade escuro embaixo, logo no canto superior
   direito, nome do mapa grande embaixo a esquerda e a barra de progresso
   REAL (com marcacoes) com a etapa e a porcentagem. */
#tela-carregar { position: fixed; inset: 0; z-index: 50; overflow: hidden; transition: opacity .45s;
                 background: radial-gradient(ellipse at center, #1a2130 0%, #07090d 75%); }
#tela-carregar[hidden] { display: none; }
#tela-carregar.saindo { opacity: 0; }
.carregar-arte { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .5s;
                 transform: scale(1.04); animation: carregarZoom 14s ease-out forwards; }
.carregar-arte.com-arte { opacity: 1; }
.carregar-arte.so-borrada { filter: blur(8px) brightness(.55); }
.carregar-arte::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, #0000 45%, #05070bcc 78%, #05070b 100%), linear-gradient(90deg, #05070b99 0%, #0000 45%); }
@keyframes carregarZoom { to { transform: scale(1); } }
.carregar-logo { position: absolute; top: clamp(14px, 3vh, 34px); right: clamp(16px, 3vw, 44px); width: clamp(140px, 15vw, 260px);
                 filter: drop-shadow(0 4px 14px #000a); pointer-events: none; }
.carregar-caixa { position: absolute; left: clamp(18px, 4vw, 70px); right: clamp(18px, 4vw, 70px); bottom: clamp(22px, 6vh, 64px); text-align: left; }
.carregar-caixa small { display: block; letter-spacing: 4px; color: #ffa531; font-size: 14px; font-weight: 700; text-shadow: 0 1px 4px #000; }
.carregar-caixa h1 { margin: 4px 0 6px; font: 800 clamp(30px, 4.4vw, 64px)/1 "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
                     letter-spacing: 1px; text-transform: uppercase; color: #fff; text-shadow: 0 3px 14px #000c; }
.carregar-caixa p { margin: 0 0 22px; max-width: 760px; opacity: .78; font-size: 15px; text-shadow: 0 1px 4px #000; }
.carregar-status { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
                   font: 600 13px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: 3px; color: #dfe7ee; }
.carregar-status b { font-size: 22px; letter-spacing: 1px; color: #ffcf5a; font-variant-numeric: tabular-nums; }
.carregar-barra { position: relative; height: 8px; background: #ffffff1a; overflow: hidden; clip-path: polygon(0 0, 100% 0, 99.4% 100%, 0 100%); }
/* (marcacoes a cada 5%, por cima: o jeito de barra de jogo) */
.carregar-barra::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #0000 0 calc(5% - 2px), #05070bcc calc(5% - 2px) 5%); }
.carregar-barra i { position: absolute; inset: 0 auto 0 0; display: block; width: 0%; transition: width .35s ease-out;
                    background: linear-gradient(90deg, #d9731a, #ffa531 60%, #ffe08a); box-shadow: 0 0 14px #ffa531aa; }
/* (brilho correndo dentro do que ja encheu: mostra que esta vivo entre etapas) */
.carregar-barra i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #fff0 0%, #fff8 50%, #fff0 100%);
                           width: 30%; animation: carregarBrilho 1.4s linear infinite; }
@keyframes carregarBrilho { from { transform: translateX(-100%); } to { transform: translateX(380%); } }

/* Transicao suave (escurece e clareia). */
#transicao { position: fixed; inset: 0; z-index: 60; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s; }
#transicao.escuro { opacity: 1; pointer-events: auto; }
body.combate .so-zumbi { display: none; }
/* De onde veio o tiro: arco vermelho na borda, girado para o atirador. */
#dano-dir { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; transition: opacity .15s; }
#dano-dir::before { content: ''; position: absolute; left: -70px; top: -190px; width: 140px; height: 40px;
  border-top: 8px solid #e0201c; border-radius: 50% 50% 0 0 / 100% 100% 0 0; filter: drop-shadow(0 0 6px #f00a); }
#renascer { position: absolute; left: 0; right: 0; top: 40%; text-align: center; font-size: 28px; text-shadow: var(--sombra); }


/* ---- janela de troca de arma (tecla T) ---- */
/* EM LINHAS (09/10/2026): Fuzil, Pistola, Faca, uma embaixo da outra, cada
   uma com UM cartao grande e setas (paginacao) -- antes eram 6 colunas com
   todas as armas de uma vez (6 AKM, 5 pistolas...). Fundo inteiro clicavel
   (clicar fora fecha). Com 6 linhas (modo Zumbi) a lista rola por dentro,
   presa a altura da tela. */
#seletor-armas { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.35), rgba(0,0,0,0.7)); color: #e8ecea; pointer-events: auto; cursor: default; }
#seletor-armas[hidden] { display: none; }
#seletor-armas > * { width: min(760px, 94vw); box-sizing: border-box; margin: 0;
  background: linear-gradient(180deg, rgba(22, 27, 24, 0.97), rgba(12, 15, 13, 0.97)); border: 1px solid rgba(255,255,255,0.12); }
#seletor-armas h2 { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px 12px; border-radius: 14px 14px 0 0; border-bottom: 0;
  font-size: 20px; letter-spacing: 3px; text-transform: uppercase; box-shadow: inset 0 -2px 0 var(--destaque); }
#seletor-armas h2 small { font-size: 11px; letter-spacing: 1px; opacity: 0.6; padding: 2px 7px; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; }
#seletor-lista { display: flex; flex-direction: column; gap: 10px; padding: 14px 20px 10px; border-top: 0; border-bottom: 0;
  max-height: calc(100vh - 150px); overflow-y: auto; }
#seletor-rodape { padding: 10px 20px 14px; border-radius: 0 0 14px 14px; border-top: 0; font-size: 12px; color: rgba(232,236,234,0.6); text-align: center; }
.sel-linha { display: grid; grid-template-columns: 104px 40px minmax(0, 1fr) 40px 52px; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06); }
.sel-rotulo { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.sel-rotulo kbd { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; font: 700 13px/1 inherit;
  color: #111; background: var(--destaque); box-shadow: 0 2px 0 #9a7a2a; }
.sel-seta { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06);
  color: #fff; font: 700 26px/1 inherit; padding: 0 0 3px; cursor: pointer; transition: background .12s, border-color .12s, transform .08s; }
.sel-seta:hover:not(:disabled) { background: var(--destaque); border-color: var(--destaque); color: #111; }
.sel-seta:active:not(:disabled) { transform: scale(0.92); }
.sel-seta:disabled { opacity: 0.2; cursor: default; }
.sel-meio { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.sel-cartao { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 14px; padding: 8px 12px 8px 8px;
  border-radius: 10px; border: 2px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.05);
  font: inherit; color: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.sel-cartao:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.09); }
/* Arma preta em painel escuro sumia: fundo claro atras do icone. */
.sel-cartao img { width: 170px; height: 80px; object-fit: contain; border-radius: 7px;
  background: radial-gradient(ellipse at 50% 55%, #d3dbd6 0%, #87928d 55%, #3a423e 100%); filter: drop-shadow(0 2px 2px #0008); }
.sel-cartao > div { min-width: 0; }
.sel-cartao b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-cartao small { display: block; margin-top: 2px; font-size: 12px; opacity: 0.7; }
.sel-cartao em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.6; }
.sel-cartao.em-uso em { opacity: 0.9; }
.sel-cartao.escolhida { border-color: var(--destaque); background: rgba(255, 207, 90, 0.08); }
.sel-cartao.escolhida em { color: #111; background: var(--destaque); padding: 2px 7px; border-radius: 4px; opacity: 1; }
.sel-pontos { display: flex; justify-content: center; gap: 5px; min-height: 6px; }
.sel-pontos i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.sel-pontos i.atual { background: var(--destaque); width: 16px; border-radius: 3px; }
.sel-conta { font-size: 12px; opacity: 0.6; text-align: right; white-space: nowrap; }
.sel-vazio { grid-column: 2 / -1; margin: 0; padding: 18px 0; font-size: 13px; opacity: 0.45; }
/* celular / janela estreita: rotulo em cima, cartao menor */
@media (max-width: 620px) {
  .sel-linha { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .sel-rotulo { grid-column: 1 / -1; }
  .sel-conta { display: none; }
  .sel-seta { width: 34px; height: 34px; }
  .sel-cartao { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .sel-cartao img { width: 96px; height: 50px; }
  .sel-cartao b { font-size: 15px; }
}
#fumaca-tela { position: fixed; inset: 0; background: radial-gradient(ellipse at 50% 50%, #585c5e, #43474a); opacity: 0; pointer-events: none; }
#balas.sem-reserva #reserva, #balas.sem-reserva .bl-sep, #balas.sem-reserva #reserva-f, #balas.sem-reserva #bl-barra { display: none; }

/* ---- "Inimigo eliminado" (estilo Battlefield 3) ----
   Embaixo, no centro, azul-claro. Entra subindo e crescendo de leve (0,12
   s), fica ~3 s (pedido: 2 s a mais que a 1a versao) e some suave (0,35 s). Cada abate e
   uma LINHA com animacao propria (main.js avisarAbate), ate 4 empilhadas; a
   mais nova embaixo, a caixa cresce para cima. */
#aviso-abate { position: absolute; left: 0; right: 0; bottom: 21%; display: flex; flex-direction: column; align-items: center; gap: 5px;
  pointer-events: none; }
/* Pequeno e discreto (pedido: 26 px era "gigante"). */
#aviso-abate b { font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: #9fd8f7;
  text-shadow: 0 0 6px #3aa8ff55, 0 1px 2px #000b; animation: avisoAbate 3.5s ease-out forwards; }
@keyframes avisoAbate {
  0% { opacity: 0; transform: translateY(6px) scale(.96); }
  3.5% { opacity: 1; transform: translateY(0) scale(1.02); }
  6% { transform: scale(1); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* ---- Tela de carregamento inicial (F5) ----
   Arte loading_inicial cobrindo tudo (acima do lobby e do login) e a barra
   embaixo, no centro, sobre a parte escura da arte. */
#tela-inicial { position: fixed; inset: 0; z-index: 100; background: #07090d url("../assets/hud/loading_inicial.jpg") center / cover no-repeat;
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, sans-serif; color: #e8ecf2; transition: opacity .5s; }
#tela-inicial::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, #0000, #000c); pointer-events: none; }
#tela-inicial.saindo { opacity: 0; pointer-events: none; }
#tela-inicial[hidden] { display: none; }
.ti-rodape { position: absolute; z-index: 1; left: 50%; bottom: 6%; transform: translateX(-50%); width: min(640px, calc(100vw - 32px)); }
.ti-logo { text-align: center; margin-bottom: 14px; font-size: 34px; font-weight: 700; letter-spacing: 8px; color: #ff9f1c; text-shadow: 0 0 18px #ff9f1c66, 0 2px 4px #000; }
.ti-logo img { display: block; width: min(420px, 70vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 14px #000c); }
.ti-linha { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.ti-linha b { font-size: 15px; color: #ffbf5a; font-variant-numeric: tabular-nums; }
.ti-barra { position: relative; height: 10px; padding: 2px; overflow: hidden; background: #0b0e13d9; border: 1px solid #ff9f1c80; box-shadow: 0 0 14px #000a; }
.ti-barra i { position: relative; display: block; height: 100%; width: 0; overflow: hidden; transition: width .3s ease-out; background: linear-gradient(90deg, #ff7a00, #ffbf5a); box-shadow: 0 0 10px #ff9f1c99; }
/* Brilho correndo pelo TRILHO inteiro (por cima da parte cheia): mostra que
   esta vivo mesmo com a barra em 0% (os primeiros ~2 s, antes do codigo do
   jogo chegar) ou esperando uma etapa longa. */
.ti-barra::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff0, #fff8, #fff0) no-repeat;
  background-size: 30% 100%; animation: tiBrilho 1.4s linear infinite; opacity: .55; }
@keyframes tiBrilho { from { background-position: -60% 0; } to { background-position: 160% 0; } }
#tela-inicial.erro .ti-barra i { background: #ff5a4f; box-shadow: none; }
#tela-inicial.erro .ti-barra::after { display: none; }
#tela-inicial.erro #ti-texto { color: #ff8a80; text-transform: none; letter-spacing: .5px; }
@media (max-width: 600px) { .ti-logo { font-size: 26px; letter-spacing: 6px; } .ti-linha { font-size: 11px; letter-spacing: 1px; } }

/* CARTAO DE QUEM MATOU (camera de morte, estilo BF3 -- pedido de 29/09/2026,
   com print). Faixa LARANJA em cima (morto por, vida dele, duelo), placa
   escura translucida com a arma (icone + nome) e tres celulas (mira,
   distancia, acerto), a patente no meio e a plaqueta com o nome. */
#cartao-morte { position: absolute; left: 50%; top: 58px; transform: translateX(-50%); width: min(1000px, 94vw); z-index: 7;
  pointer-events: none; font: 400 16px/1.1 "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif; color: #eef4f8; }
#cartao-morte[hidden] { display: none; }
body.killcam #mira, body.killcam #objetivo { display: none; }
/* (o "Renascendo em N" desce: no meio cobria o rosto de quem matou) */
body.killcam #renascer { top: auto; bottom: 20%; font-size: 24px; }
.km-faixa { display: grid; grid-template-columns: 1.55fr .6fr 1fr auto; align-items: center; height: 30px;
  background: linear-gradient(180deg, #e0892f, #c9701a); color: #fff; text-shadow: 0 1px 1px #0005; }
.km-faixa > span { padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-faixa b { font-weight: 400; margin-left: 6px; }
#km-duelo { padding-right: 12px; }
.km-corpo { display: grid; grid-template-columns: 1.55fr .6fr 1.6fr; background: rgba(28, 44, 56, 0.72); }
.km-arma { border-right: 1px solid rgba(255, 255, 255, 0.14); }
.km-arma-topo { display: flex; align-items: center; gap: 14px; height: 92px; padding: 6px 12px; }
#km-arma-img { height: 70px; max-width: 58%; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 0 3px #5fb4e8); opacity: .92; }
#km-arma-img[hidden] { display: none; }
#km-arma-nome { font-size: 20px; }
.km-cels { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.km-cels > div { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 9px; }
.km-cels > div + div { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.km-cels small { font-size: 12px; color: #b9ccd9; letter-spacing: .06em; }
.km-cels b { font-weight: 400; font-size: 16px; }
.km-pat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.14); }
.km-pat svg { display: block; filter: drop-shadow(0 2px 3px #0008); }
.km-pat b { font-weight: 400; font-size: 17px; color: #ffd98a; }
.km-pat small { font-size: 12px; color: #b9ccd9; letter-spacing: .08em; }
.km-tag { display: flex; align-items: center; justify-content: center; padding: 10px; }
/* plaqueta de identificacao: metal escuro escovado, furo, nome em dourado */
.km-plaqueta { position: relative; display: flex; align-items: center; gap: 12px; width: 300px; height: 96px; padding: 0 20px 0 18px;
  border-radius: 46px; transform: rotate(-4deg);
  background: repeating-linear-gradient(90deg, #ffffff06 0 1px, #0000 1px 3px), linear-gradient(160deg, #4a4f55, #25282c 55%, #1a1c1f);
  box-shadow: inset 0 0 0 3px #6b7178, inset 0 0 0 5px #1c1e21, 0 6px 14px #000a; }
.km-plaqueta i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #0c0d0f; box-shadow: inset 0 0 0 2px #7c838b; }
#km-plaqueta { font-size: 22px; color: #d9b04d; text-shadow: 0 1px 0 #000, 0 0 6px #d9b04d55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-rodape { height: 20px; background: rgba(201, 112, 26, 0.35); }

/* Placa de video reiniciando (src/gpu.js): tela escura com aviso, no lugar
   do branco que o navegador deixa enquanto o contexto WebGL esta perdido. */
#gpu-perdida { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: #06090d; color: #e2eef6; font: 400 20px/1.2 "Bahnschrift", "Segoe UI", sans-serif; }
#gpu-perdida[hidden] { display: none; }
#gpu-perdida span { font-size: 14px; color: #9fb4c3; }

/* MENU DO ESC estilo BATTLEFIELD 3 (pedido de 29/09/2026, com print): a
   tela inteira em azul translucido e desfocado; "PARTIDA /" pequeno e
   "MENU DO JOGO" grande no canto; opcoes em maiusculas, a da vez numa faixa
   CLARA com o texto escuro (o "RESUME" do print). */
.menu-bf { position: fixed; inset: 0; z-index: 30; background: rgba(28, 86, 128, 0.58);
  backdrop-filter: blur(4px) saturate(.55); -webkit-backdrop-filter: blur(4px) saturate(.55);
  font-family: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif; color: #fff; }
.menu-bf[hidden] { display: none; }
.mb-col { position: absolute; left: clamp(20px, 4.5vw, 90px); top: clamp(18px, 5vh, 70px); width: min(420px, 90vw); }
.mb-pre { display: block; font-size: 19px; font-weight: 600; letter-spacing: .02em; text-shadow: 0 1px 3px #0006; }
.mb-tit { margin: 0 0 10px; font-size: clamp(36px, 4.2vw, 54px); font-weight: 700; line-height: 1; letter-spacing: .01em;
  text-shadow: 0 2px 6px #0006; }
.mb-itens { display: flex; flex-direction: column; }
.mb-itens button { font: 600 clamp(22px, 2.2vw, 30px)/1 "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif; text-align: left;
  color: #fff; background: none; border: 0; padding: 6px 10px; cursor: pointer; letter-spacing: .02em; text-shadow: 0 1px 3px #0005; }
.mb-itens button:hover, .mb-itens button:focus-visible, .mb-itens button.ativo {
  color: #1b2630; text-shadow: none; outline: none; background: linear-gradient(90deg, #f4f7f9, #dfe6eb 70%, #c9d3da); }
.mb-confirma p { margin: 6px 10px 8px; font-size: 20px; font-weight: 400; }
/* (o display: flex acima venceria o atributo hidden) */
.menu-bf .mb-itens[hidden], .menu-bf .mb-janela[hidden], .menu-bf .mb-confirma[hidden] { display: none; }
/* sem o mouse em cima de nenhuma, a 1a opcao fica na faixa clara (como o
   "RESUME" do print) */
.mb-itens:not(:hover) button:first-child { color: #1b2630; text-shadow: none; background: linear-gradient(90deg, #f4f7f9, #dfe6eb 70%, #c9d3da); }


/* OPCOES: janela no MEIO da tela (pedido: "tem que aparecer no meio, ta
   confuso para sair, o salvar deve ser diferente e separado das opcoes").
   A coluna do menu some; cabecalho com X; rodape com Restaurar/Cancelar a
   esquerda e SALVAR laranja a direita (apagado sem mudanca). */
.menu-bf.com-opcoes .mb-col { display: none; }
.mb-janela { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, 94vw);
  background: rgba(12, 32, 48, 0.88); box-shadow: 0 18px 60px #0009; }
.mb-janela header { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 8px 0 18px;
  background: rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.mb-janela h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: .04em; }
.mb-x { width: 40px; height: 40px; border: 0; background: none; color: #dbe7ef; font-size: 30px; line-height: 1; cursor: pointer; }
.mb-x:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.mb-corpo { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 10px; }
.op-linha { display: grid; grid-template-columns: 210px 1fr 54px; align-items: center; gap: 12px; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06); font-size: 16px; font-weight: 600; }
.op-linha output { text-align: right; font-weight: 400; }
/* (volumes por canal: um degrau para dentro do VOLUME GERAL, que manda neles;
   com 9 linhas o corpo rola em tela baixa) */
.op-linha.op-sub { padding-left: 28px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, 0.035); }
.mb-corpo { max-height: calc(100vh - 170px); overflow-y: auto; }
/* (aberta pelo LOBBY: por cima dele, sem a coluna do menu da partida) */
.menu-bf.do-lobby { z-index: 60; }
.op-linha input[type=range] { width: 100%; accent-color: #f28c28; }
.op-seg { display: flex; gap: 4px; grid-column: 2 / 4; }
.op-seg button { flex: 1; font: 600 15px/1 "Bahnschrift", "Segoe UI", sans-serif; padding: 9px 0; cursor: pointer; border: 0;
  color: #dbe7ef; background: rgba(255, 255, 255, 0.12); }
.op-seg button.ativo { color: #1b2630; background: #eef3f6; }
.op-dica { margin: 0 2px; min-height: 36px; font-size: 14px; font-weight: 400; color: #bcd0dd; }
.mb-janela footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mb-sec { font: 400 15px/1 "Bahnschrift", "Segoe UI", sans-serif; color: #dbe7ef; background: none; border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 16px; cursor: pointer; }
.mb-sec:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mb-salvar { font: 700 18px/1 "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: .06em; color: #fff; border: 0; padding: 12px 34px;
  cursor: pointer; background: linear-gradient(180deg, #f59a3a, #d9731a); box-shadow: 0 3px 0 #9a4f10; }
.mb-salvar:hover { filter: brightness(1.08); }
.mb-salvar:disabled { cursor: default; filter: grayscale(1) brightness(.6); box-shadow: none; }

/* SAIR DA PARTIDA diferente de VOLTAR AO JOGO (pedido de 29/09/2026: "deve
   ser diferente, indicando que saira do jogo"): separado por uma linha,
   texto avermelhado com o aviso "volta ao lobby" e faixa VERMELHA ao passar
   o mouse (a clara e a de voltar ao jogo). */
.mb-itens button.mb-sair { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.28); color: #ffb4a8;
  display: flex; flex-direction: column; gap: 3px; }
.mb-itens button.mb-sair small { font-size: 13px; font-weight: 400; letter-spacing: .04em; color: #ffd6cf; opacity: .85; }
.mb-itens button.mb-sair:hover, .mb-itens button.mb-sair:focus-visible { color: #fff; background: linear-gradient(90deg, #d23a2a, #a82a1e 70%, #8e2419); }
.mb-itens button.mb-sair:hover small { color: #fff; }

/* LUNETA DE SNIPER (AWP; 29/09/2026, com imagem de referencia): cruz preta
   fina no centro, grossa nas pontas (esquerda, direita e embaixo), sem o
   ponto vermelho; borda escura por dentro do tubo. */
#luneta.sniper {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg stroke='%23000' stroke-linecap='butt'%3E%3Cline x1='0' y1='100' x2='200' y2='100' stroke-width='0.45'/%3E%3Cline x1='100' y1='0' x2='100' y2='200' stroke-width='0.45'/%3E%3Cline x1='0' y1='100' x2='64' y2='100' stroke-width='2.6'/%3E%3Cline x1='136' y1='100' x2='200' y2='100' stroke-width='2.6'/%3E%3Cline x1='100' y1='136' x2='100' y2='200' stroke-width='2.6'/%3E%3C/g%3E%3C/svg%3E") center / 68vmin 68vmin no-repeat,
    radial-gradient(circle at center, transparent 0 27vmin, #0006 31vmin, #000d 33.6vmin, #000 34.2vmin);
}

/* GRAVADOR DO TREINO DOS BOTS (src/gravador.js): REC no canto de cima a
   ESQUERDA, embaixo do FPS (a direita e o feed de abates) */
#rec-treino { position: fixed; top: 32px; left: 12px; z-index: 40; display: flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px; border-radius: 4px; background: #000a; color: #fff; font: 600 12px sans-serif; pointer-events: none; }
#rec-treino[hidden] { display: none; }
#rec-treino i { width: 9px; height: 9px; border-radius: 50%; background: #e53935; animation: rec-pisca 1s infinite alternate; }
#rec-treino b { color: #ff6b63; letter-spacing: .5px; }
#rec-treino span { color: #ddd; font-weight: 400; }
#rec-treino.pausado i { background: #999; animation: none; }
#rec-treino.pausado b { color: #aaa; }
#rec-treino.so-aviso i, #rec-treino.so-aviso b { display: none; }
@keyframes rec-pisca { from { opacity: 1; } to { opacity: .35; } }

/* RECOMPENSA NA HORA (09/10/2026; main.js avisoRecompensa): no alto, no
   centro, estilo BF3 -- faixa escura com a fita/medalha grande, o nome e a
   EXP. Entra crescendo e some sozinha (6,4 s fita, 8,4 s medalha -- o dobro
   desde 12/10/2026; main.js proximoAvisoRecompensa usa os mesmos tempos). */
#rec-aviso { position: fixed; left: 50%; top: 92px; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px 22px 10px 14px;
  transform: translateX(-50%); pointer-events: none; color: #fff; white-space: nowrap;
  background: linear-gradient(90deg, #0000, #0b0f15e6 14%, #0b0f15e6 86%, #0000);
  border-top: 1px solid #ffbf5a66; border-bottom: 1px solid #ffbf5a66;
  animation: recEntra 6.4s ease-out both; }
#rec-aviso.medalha { animation-duration: 8.4s; }
#rec-aviso[hidden] { display: none; }
#rec-aviso img { display: block; filter: drop-shadow(0 3px 6px #000c); }
/* (no TAMANHO DA ARTE -- a dona: "nao precisa aumentar, perde qualidade") */
#rec-aviso.fita img { width: 75px; height: 28px; }
#rec-aviso.medalha img { width: 52px; height: 52px; }
#rec-aviso small { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #ffbf5a; }
#rec-aviso b { display: block; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 2px 0 #000a; }
#rec-aviso span { display: block; font-size: 14px; font-weight: 800; color: #ffd35a; }
@keyframes recEntra {
  0% { opacity: 0; transform: translateX(-50%) scale(1.25); }
  8% { opacity: 1; transform: translateX(-50%) scale(1); }
  85% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(.96); }
}

/* PROTECAO AO RENASCER (3 s, main.js): aviso discreto abaixo da mira,
   piscando no mesmo ritmo do boneco */
#protecao { position: fixed; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); z-index: 30; pointer-events: none;
  padding: 3px 12px; font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: #bfe6ff;
  background: #0b1a28b3; border: 1px solid #7fc8ff66; }
#protecao[hidden] { display: none; }

/* T: "Arma principal" (era "Fuzil") quebra em 2 linhas na coluna do rotulo */
.sel-rotulo span { min-width: 0; line-height: 1.15; letter-spacing: 1.5px; }
