/* A Arena é pixel art do começo ao fim: cantos retos, borda dura e sombra sem desfoque, inclusive nos menus. */
:root {
  --fundo: #14161c; --painel: #1c1f28; --painel-2: #252935; --linha: #3a3f4e; --linha-forte: #565d70; --texto: #eef0e8; --fraco: #a0a6b4;
  --ambar: #ffb24d; --a: #e9914a; --b: #4cc0d6; --acao: #d83a2e; --acao-forte: #ef4a3d; --bom: #7ce29a;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  font-family: var(--mono);
  color-scheme: dark;
}
* { box-sizing: border-box; border-radius: 0; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fundo); color: var(--texto); font-size: 14px; }
[hidden] { display: none !important; }
#mundo { position: fixed; left: 0; top: 0; display: block; image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; cursor: none; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.fraco { color: var(--fraco); }
.miudo { font-size: 12px; }
.painel { background: var(--painel); border: 2px solid var(--linha); box-shadow: 4px 4px 0 #07080b; }
.linha { display: flex; gap: 12px; align-items: flex-end; }
.linha > * { flex: 1; }

button { background: var(--painel-2); border: 2px solid var(--linha); padding: 8px 12px; cursor: pointer; box-shadow: 0 2px 0 #07080b; }
button:hover { background: #2f3442; border-color: var(--linha-forte); }
button:active { transform: translateY(2px); box-shadow: none; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--ambar); outline-offset: 1px; }
.primario { background: var(--acao); border-color: #8f2017; font-weight: 700; padding: 12px 16px; width: 100%; font-size: 16px; }
.primario:hover { background: var(--acao-forte); border-color: #8f2017; }
.discreto { background: none; border-color: transparent; color: var(--fraco); box-shadow: none; }
.trilho { height: 8px; background: #0d0f14; border: 1px solid var(--linha); overflow: hidden; }
.trilho i { display: block; height: 100%; width: 0; background: var(--ambar); }

/* ------------------------------------------------- a tela de entrada: navegador de servidores */
#entrada { position: fixed; inset: 0; overflow-y: auto; overflow-x: hidden; background: var(--fundo); }
/* Atrás de tudo, o mapa do servidor escolhido, escuro e andando devagar: a tela tem a cara do jogo. */
#entrada-fundo { position: fixed; inset: -60px; background: #0d0f14 center / cover no-repeat; image-rendering: pixelated;
  filter: brightness(.3) saturate(.75); animation: panorama 70s ease-in-out infinite alternate; pointer-events: none; z-index: 0; }
#entrada::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, transparent 0, rgba(10, 11, 15, .55) 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 4px); }
@keyframes panorama { from { transform: translate(-30px, -18px) scale(1.04); } to { transform: translate(30px, 18px) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { #entrada-fundo { animation: none; } }
#entrada > .barra, #entrada > .aviso-topo, #entrada > .entrada-miolo { position: relative; z-index: 1; }

.barra { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 28px; padding: 10px 24px;
  background: rgba(14, 16, 21, .9); border-bottom: 2px solid var(--linha); box-shadow: 0 4px 0 #07080b; backdrop-filter: blur(6px); }
#entrada > .barra { position: sticky; z-index: 3; }
.marca { display: grid; line-height: 1; }
.marca h1 { font-size: 26px; font-weight: 800; letter-spacing: .04em; text-shadow: 3px 3px 0 #07080b; white-space: nowrap; }
.marca h1 em { font-style: normal; color: var(--ambar); }
.versao { font-size: 10px; color: var(--fraco); letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.abas { display: flex; gap: 4px; align-self: stretch; margin: -10px 0; }
.abas button { white-space: nowrap; background: none; border: 0; border-bottom: 3px solid transparent; box-shadow: none; padding: 0 14px; color: var(--fraco);
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.abas button:hover { background: rgba(255, 255, 255, .04); color: var(--texto); }
.abas button[aria-selected=true] { color: var(--ambar); border-bottom-color: var(--ambar); }
.abas button:active { transform: none; }
.perfil { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.online { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--fraco); white-space: nowrap; }
.ponto { width: 8px; height: 8px; background: var(--bom); box-shadow: 0 0 0 2px rgba(124, 226, 154, .2); animation: pisca 2s steps(2) infinite; }
@keyframes pisca { 50% { opacity: .35; } }
.perfil-cartao { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; background: var(--painel); border: 2px solid var(--linha); }
.rosto canvas { display: block; width: 40px; height: 40px; background: var(--painel-2); image-rendering: pixelated; border: 2px solid var(--linha); }
.perfil-texto { display: grid; gap: 4px; min-width: 150px; }
.perfil-texto b { font-size: 14px; }
.perfil-nome { display: grid; font-size: 10px; color: var(--fraco); text-transform: uppercase; letter-spacing: .08em; gap: 2px; }
.perfil-nome input { background: #0d0f14; border: 2px solid var(--linha); padding: 3px 7px; color: var(--texto); font-size: 13px; text-transform: none; letter-spacing: 0; width: 160px; }
.perfil-linha { display: flex; align-items: center; gap: 7px; }
.perfil-linha small { font-size: 11px; color: var(--ambar); white-space: nowrap; }
.perfil-linha .trilho { flex: 1; height: 5px; border-width: 0; }

.aviso-topo { max-width: 1280px; margin: 14px auto 0; width: calc(100% - 48px); padding: 10px 14px; background: #3a1714; border: 2px solid #8f2017;
  color: #ffd5cf; box-shadow: 4px 4px 0 #07080b; animation: sobe .18s steps(3); }
.entrada-miolo { max-width: 1280px; margin: 0 auto; padding: 18px 24px 40px; }

/* duas colunas: a lista e o servidor escolhido */
.navegador { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
/* O começo: o que é o jogo numa frase, um botão grande e as teclas que importam. Quem chega não precisa ler a lista. */
.comeco { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 18px 22px; margin-bottom: 16px; }
.comeco h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: .01em; }
.comeco p { margin: 0 0 14px; color: var(--fraco); max-width: 62ch; line-height: 1.45; }
.comeco-acao { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.comeco-acao small { color: var(--fraco); max-width: 34ch; }
.primario.grande { width: auto; font-size: 20px; padding: 14px 34px; letter-spacing: .03em; box-shadow: 0 4px 0 #6d160f; }
.primario.grande::before { content: "▶ "; font-size: 15px; }
.primario.grande:active { transform: translateY(3px); box-shadow: 0 1px 0 #6d160f; }
.comeco-teclas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px 18px; }
.comeco-teclas li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto); }
.comeco-teclas kbd { min-width: 54px; text-align: center; padding: 3px 6px; background: var(--painel-2); box-shadow: 0 2px 0 #07080b; }
.comeco-teclas span { color: var(--fraco); }
.lista { display: flex; flex-direction: column; min-height: 420px; }
.lista-topo { display: flex; gap: 10px; padding: 14px 14px 10px; }
.busca { flex: 1; position: relative; }
.busca::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; border: 2px solid var(--fraco); transform: translateY(-62%); pointer-events: none; }
.busca::after { content: ""; position: absolute; left: 21px; top: 55%; width: 6px; height: 2px; background: var(--fraco); transform: rotate(45deg); pointer-events: none; }
.busca input { width: 100%; height: 100%; background: #0d0f14; border: 2px solid var(--linha); padding: 9px 10px 9px 34px; color: var(--texto); }
.primario.compacto { width: auto; font-size: 14px; padding: 9px 18px; white-space: nowrap; }
.filtros { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 0 14px 12px; }
.chaves { display: flex; gap: 14px; flex-wrap: wrap; }
.chave { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fraco); cursor: pointer; user-select: none; }
.chave input { accent-color: var(--ambar); width: 14px; height: 14px; margin: 0; }

.colunas-lista, .srv { display: grid; grid-template-columns: 72px minmax(0, 1fr) 142px 148px 178px; gap: 12px; align-items: center; }
.colunas-lista { padding: 7px 14px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--fraco);
  border-top: 2px solid var(--linha); border-bottom: 2px solid var(--linha); background: rgba(0, 0, 0, .18); }
.colunas-lista em { font-style: normal; color: var(--texto); margin-left: 4px; }
#salas { overflow-y: auto; max-height: calc(100vh - 262px); min-height: 200px; }
.grupo { padding: 12px 14px 5px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--fraco); }
.grupo span { color: var(--texto); margin-left: 4px; }
.srv { width: 100%; text-align: left; background: none; border: 0; border-left: 3px solid transparent; box-shadow: none;
  padding: 8px 14px 8px 11px; border-bottom: 1px solid #262a35; font-size: 13px; }
.srv:hover { background: rgba(255, 255, 255, .045); border-color: #262a35; border-left-color: var(--linha-forte); }
.srv:active { transform: none; }
.srv.sel { background: #2b2619; border-left-color: var(--ambar); }
.srv.cheio { opacity: .55; }
.srv-foto { display: block; }
img.mini { display: block; width: 72px; height: 46px; object-fit: cover; background: #0d0f14; border: 2px solid #07080b; image-rendering: pixelated; }
img.mini, img.grande, img.cartao-foto { opacity: 0; transition: opacity .35s; }
img.pronta { opacity: 1; }
.srv-foto, .detalhe-foto, .cartao-mapa { background-color: #0d0f14; }
.srv-nome { display: block; min-width: 0; }
.srv-nome b { font-size: 14px; }
.srv-nome small { display: block; margin-top: 3px; font-size: 11px; color: var(--fraco); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selo { font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #181308;
  background: var(--ambar); padding: 1px 5px; margin-left: 7px; vertical-align: 2px; }
/* Com bots ou só gente, no servidor de jogador; cor própria (o âmbar é do Oficial). Não quebra linha. */
.selo { white-space: nowrap; }
.selo-bots { background: #565d70; color: var(--texto); }
.selo-gente { background: var(--bom); color: #0c1a10; }
/* Um cadeado de pixel, só com CSS. */
.cadeado { display: inline-block; position: relative; width: 10px; height: 8px; background: var(--ambar); margin-left: 8px; vertical-align: -1px; }
.cadeado::before { content: ""; position: absolute; left: 2px; top: -5px; width: 6px; height: 6px; border: 2px solid var(--ambar); border-bottom: 0; box-sizing: border-box; }
.tag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border: 2px solid currentColor; background: rgba(0, 0, 0, .35); white-space: nowrap; }
.modo-mata { color: #ff7a6b; } .modo-times { color: #7fb8ff; } .modo-zona { color: var(--bom); }
.modo-escalada { color: #d39bff; } .modo-bomba { color: var(--ambar); }
/* O selo do modo cabe na coluna: "Corrida de Armas" é o mais largo e, em tela estreita, quebra em duas linhas em vez de
   invadir o número de jogadores ao lado. */
.srv-modo { min-width: 0; }
.srv-modo .tag { max-width: 100%; white-space: normal; line-height: 1.2; text-align: center; }
.srv-gente { display: block; font-variant-numeric: tabular-nums; color: var(--fraco); white-space: nowrap; }
.srv-gente .pips { margin-top: 5px; }
.srv-gente b { color: var(--texto); font-size: 15px; }
.srv-gente small { font-size: 11px; }
.pips { display: flex; gap: 2px; flex-wrap: wrap; max-width: 140px; }
.pips i { width: 6px; height: 8px; background: #2a2f3b; }
.pips i.h { background: var(--bom); }
.pips i.b { background: #59627a; }
.pilula { display: inline-block; font-style: normal; font-size: 11px; padding: 3px 8px; border: 1px solid; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pilula.livre { color: var(--fraco); border-color: var(--linha); }
.pilula.jogo { color: var(--bom); border-color: #2e5a3a; background: rgba(124, 226, 154, .07); }
.pilula.fim { color: #8fd3e3; border-color: #2d5361; background: rgba(76, 192, 214, .07); }
.pilula .ta { color: var(--a); } .pilula .tb { color: var(--b); }
.vazio-lista { padding: 14px 14px 22px; color: var(--fraco); font-size: 13px; line-height: 1.5; }
.link { background: none; border: 0; padding: 0; box-shadow: none; color: var(--ambar); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.link:hover { background: none; color: #ffc77a; }

/* o servidor escolhido */
.detalhe { position: sticky; top: 84px; display: flex; flex-direction: column; overflow: hidden; max-height: calc(100vh - 104px); }
.detalhe-foto { position: relative; border-bottom: 2px solid var(--linha); aspect-ratio: 16 / 10; flex: none; }
.detalhe-foto img.grande { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.detalhe-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(10, 11, 15, .75)); pointer-events: none; }
.detalhe-foto .tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; }
.detalhe-corpo { padding: 14px 16px; display: grid; gap: 10px; overflow-y: auto; align-content: start; }
.detalhe-corpo h2 { font-size: 19px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.detalhe-corpo h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--fraco); margin-top: 4px; }
.detalhe-corpo h3 span { color: var(--texto); margin-left: 4px; text-transform: none; letter-spacing: 0; }
.detalhe-corpo p { line-height: 1.45; }
.ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0; background: var(--linha); border: 2px solid var(--linha); }
.ficha div { background: #171a22; padding: 7px 10px; display: grid; gap: 2px; min-width: 0; }
.ficha dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--fraco); }
.ficha dd { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.ficha dd .pilula { font-size: 10px; padding: 1px 5px; white-space: normal; }
.detalhe-placar { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 12px; background: #0d0f14; border: 2px solid var(--linha); font-size: 12px; }
.detalhe-placar b { font-size: 24px; margin: 0 4px; }
.detalhe-placar .ta { color: var(--a); } .detalhe-placar .tb { color: var(--b); }
.gente { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.gente li { font-size: 12px; padding: 3px 8px; background: var(--painel-2); border: 1px solid var(--linha); }
.gente li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--bom); margin-right: 6px; vertical-align: 1px; }
.detalhe-acao { padding: 12px 16px 16px; border-top: 2px solid var(--linha); display: grid; gap: 9px; background: rgba(0, 0, 0, .18); flex: none; }
.detalhe-acao .primario[disabled] { background: var(--painel-2); border-color: var(--linha); color: var(--fraco); cursor: not-allowed; }
.detalhe-vazio { padding: 40px 20px; text-align: center; display: grid; gap: 6px; }
.campo.alerta input { border-color: var(--ambar); }

/* criar servidor */
.formulario { padding: 18px; display: grid; gap: 11px; }
.formulario h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--ambar); }
.formulario h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--fraco); margin-top: 6px; }
.formulario .linha { align-items: start; }
.campo output { color: var(--texto); margin-left: 4px; }
.mapas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cartao-mapa { padding: 0; display: grid; text-align: left; overflow: hidden; }
.cartao-mapa img.cartao-foto { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; image-rendering: pixelated; border-bottom: 2px solid #07080b; }
.cartao-mapa b { padding: 7px 9px; font-size: 13px; }
.cartao-mapa[aria-pressed=true] { border-color: var(--ambar); background: #3a3121; box-shadow: 0 0 0 2px var(--ambar), 0 2px 0 #07080b; }
#criar-modos .escolha[aria-pressed=true] { border-color: currentColor; background: rgba(0, 0, 0, .35); }
#criar-modos .escolha:not([aria-pressed=true]) { color: var(--texto); }

/* metas */
.metas-painel { padding: 18px; display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.metas-topo { display: flex; gap: 24px; align-items: center; }
.metas-topo h2 { font-size: 22px; font-weight: 800; color: var(--ambar); }
.metas-barra { flex: 1; display: grid; gap: 6px; }
.trilho.grosso { height: 12px; }
#metas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.meta { display: grid; gap: 5px; font-size: 13px; padding: 10px 12px; background: var(--painel-2); border: 2px solid var(--linha); }
.meta header { display: flex; justify-content: space-between; margin: 0; gap: 8px; }
.meta header span { color: var(--fraco); white-space: nowrap; }
.meta small { color: var(--fraco); }
.meta em { font-style: normal; font-size: 11px; color: var(--bom); }
.meta .trilho { height: 5px; border-width: 0; }
.meta.feita { opacity: .55; }
.meta.feita .trilho i { background: var(--bom); }

/* comuns da entrada e da pausa */
.campo { display: grid; gap: 5px; font-size: 13px; color: var(--fraco); }
.campo input[type=text], .campo input[type=password], .campo input:not([type]), .campo select { background: #0d0f14; border: 2px solid var(--linha); padding: 8px 10px; color: var(--texto); }
.campo select option { background: #1b2026; }
.escolhas { display: flex; flex-wrap: wrap; gap: 6px; }
.escolha { padding: 6px 11px; font-size: 12px; }
.escolha[aria-pressed=true] { border-color: var(--ambar); background: #3a3121; }
#modo-dica { font-size: 12px; min-height: 34px; line-height: 1.45; }
input[type=range] { width: 100%; accent-color: var(--ambar); }
.erro { color: #ff9a8f; font-size: 13px; }
.perigo { background: #4a1612; border-color: #8f2017; color: #ffd5cf; font-weight: 700; }
.perigo:hover { background: #5d1c16; border-color: #b02a1f; }
.pausa-gente { display: grid; gap: 4px; max-height: 160px; overflow-y: auto; }
.pessoa { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 4px 3px 8px; background: #171a22; border: 1px solid var(--linha); font-size: 13px; }
.pessoa button { padding: 3px 8px; font-size: 12px; color: #ff9a8f; }

@media (max-width: 1080px) {
  .navegador { grid-template-columns: minmax(0, 1fr) 320px; }
  .colunas-lista, .srv { grid-template-columns: 64px minmax(0, 1fr) 112px 120px; }
  .colunas-lista span:last-child, .srv-fase { display: none; }
}
@media (max-width: 900px) {
  .barra, #entrada > .barra { flex-wrap: wrap; gap: 8px 18px; padding: 10px 16px; position: relative; }
  .abas { order: 3; width: 100%; height: 38px; margin: 0; }
  .entrada-miolo { padding: 14px 16px 32px; }
  .comeco { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .comeco h2 { font-size: 20px; }
  .primario.grande { width: 100%; }
  .aviso-topo { width: calc(100% - 32px); }
  .navegador { grid-template-columns: 1fr; }
  .detalhe { position: static; max-height: none; }
  #salas { max-height: none; }
  .online { display: none; }
}
@media (max-width: 600px) {
  .colunas-lista { display: none; }
  .srv { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "foto nome gente" "foto modo gente"; row-gap: 4px; }
  .srv-foto { grid-area: foto; } .srv-nome { grid-area: nome; } .srv-modo { grid-area: modo; } .srv-gente { grid-area: gente; }
  img.mini { width: 56px; height: 40px; }
  .pips { display: none; }
  .lista-topo { flex-direction: column; }
  .perfil-nome input { width: 120px; }
  .marca h1 { font-size: 22px; }
}

/* ------------------------------------------------- o HUD */
#hud { position: fixed; inset: 0; pointer-events: none; user-select: none; }
.bloco, #vida, #arma-info, .placar, #relogio, .abate, #dica, #radar { background: rgba(20, 22, 28, .86); border: 2px solid #07080b; box-shadow: 0 0 0 1px var(--linha) inset; }
#topo { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: 70px auto 70px; gap: 6px; align-items: center; justify-items: center; }
.placar { font-size: 22px; font-weight: 800; padding: 1px 10px; min-width: 62px; text-align: center; }
.placar:empty { visibility: hidden; }
.placar.a { color: var(--a); } .placar.b { color: var(--b); }
#relogio { font-size: 24px; font-weight: 700; padding: 1px 14px; font-variant-numeric: tabular-nums; }
#relogio.urgente { color: #ff8a7a; }
#meta-modo { grid-column: 1 / -1; display: flex; align-items: center; gap: 0; font-size: 12px; color: #dfe4e8; background: rgba(20, 22, 28, .86); border: 2px solid #07080b; }
#meta-modo:empty { display: none; }
#meta-modo .tag { border-width: 0 2px 0 0; padding: 3px 7px; font-size: 10px; }
#meta-modo > span:last-child { padding: 3px 9px; white-space: nowrap; }
/* A abertura: o cartão do modo que aparece ao entrar, com a cor do modo na borda. */
#abertura { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); padding: 16px 20px 14px;
  background: rgba(16, 18, 24, .94); border: 2px solid #07080b; border-top: 4px solid currentColor; box-shadow: 0 0 0 1px var(--linha) inset, 6px 6px 0 rgba(0, 0, 0, .5);
  text-align: center; animation: abre .35s cubic-bezier(.2, .9, .3, 1.2); }
#abertura.saindo { opacity: 0; transform: translate(-50%, -10px); transition: opacity .35s, transform .35s; }
#abertura .tag { font-size: 10px; }
#abertura h2 { color: var(--texto); font-size: 34px; font-weight: 800; letter-spacing: .03em; margin-top: 8px; text-shadow: 3px 3px 0 #07080b; }
.ab-mapa { color: var(--fraco); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-top: 2px; }
.ab-obj { color: var(--texto); font-size: 14px; line-height: 1.45; margin: 12px 0 10px; }
#abertura ul { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--linha); display: grid; gap: 4px; text-align: left; }
#abertura li { font-size: 12px; color: #c9cfd8; display: flex; gap: 8px; }
#abertura li::before { content: ""; width: 6px; height: 6px; margin-top: 5px; background: currentColor; flex: none; color: inherit; }
#abertura.modo-mata li::before { background: #ff7a6b; } #abertura.modo-times li::before { background: #7fb8ff; } #abertura.modo-zona li::before { background: var(--bom); }
#abertura.modo-escalada li::before { background: #d39bff; } #abertura.modo-bomba li::before { background: var(--ambar); }
.ab-time { margin-top: 10px; font-size: 14px; color: var(--texto); }
.ab-time:empty { display: none; }
@keyframes abre { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
/* A escada da Corrida de Armas, embaixo do relógio. */
#escada { position: absolute; top: 88px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; background: rgba(20, 22, 28, .86); border: 2px solid #07080b; }
#escada span { display: grid; place-items: center; width: 40px; height: 22px; background: #1c1f28; }
#escada img { image-rendering: pixelated; max-width: 36px; max-height: 18px; }
#escada span.passou { opacity: .28; }
#escada span.agora { background: #3a2a4a; box-shadow: 0 0 0 2px #d39bff; }
#centro { padding: 6px 0; }
#centro:not(:empty) { background: linear-gradient(90deg, transparent, rgba(10, 11, 15, .72) 25%, rgba(10, 11, 15, .72) 75%, transparent); animation: sobe .2s ease-out; }
#feed { position: absolute; top: 10px; right: 10px; display: grid; gap: 3px; justify-items: end; max-width: 46vw; }
.abate { padding: 3px 8px; font-size: 13px; display: flex; gap: 7px; align-items: baseline; }
.abate.meu { border-color: var(--ambar); }
.abate .ta { color: var(--a); } .abate .tb { color: var(--b); } .abate .tn { color: #e8ecef; }
.abate small { color: #b8c0c7; display: inline-flex; align-items: center; gap: 5px; }
.abate small img { image-rendering: pixelated; height: 16px; filter: drop-shadow(0 1px 0 #000); }
.selo-abate { font-style: normal; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; background: #4a1612; color: #ffb3a8; }
#conversa { position: absolute; left: 12px; bottom: 96px; display: grid; gap: 2px; max-width: 42vw; font-size: 13px; text-shadow: 1px 1px 0 #000; }
.fala b { color: var(--ambar); } .fala.sistema { color: #c6ced4; }
#digitar { position: fixed; left: 12px; bottom: 66px; width: min(420px, calc(100vw - 24px)); }
#digitar input { width: 100%; padding: 7px 10px; background: #0d0f14; border: 2px solid var(--ambar); }
#centro { position: absolute; top: 19%; left: 50%; transform: translateX(-50%); text-align: center; font-size: clamp(18px, 3vw, 30px); font-weight: 800; white-space: pre-line; width: 90vw; text-shadow: 2px 2px 0 #000; }
#centro small { display: block; font-size: .55em; font-weight: 500; }
#dica { position: absolute; top: 64%; left: 50%; transform: translateX(-50%); font-size: 14px; padding: 3px 10px; white-space: nowrap; }
#dica:empty { display: none; }
#progresso { position: absolute; top: 58%; left: 50%; width: 280px; transform: translateX(-50%); display: grid; gap: 5px; text-align: center; text-shadow: 1px 1px 0 #000; }
#radar { position: absolute; left: 10px; top: 10px; width: 240px; height: 170px; image-rendering: pixelated; border-color: #07080b; box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 4px 14px rgba(0,0,0,.45); }
/* O mapa inteiro (tecla M): no meio da tela, por cima do jogo e abaixo da loja. */
#mapa-caixa { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(5,6,9,.62); z-index: 30; pointer-events: none; }
#mapa-caixa[hidden] { display: none; }
.mapa-topo { display: flex; gap: 18px; align-items: center; justify-content: space-between; width: 100%; max-width: min(86vw, var(--mapa-l, 86vw)); font-size: 13px; color: #c2cad0; }
.mapa-topo b { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.mapa-legenda { display: flex; gap: 6px; align-items: center; }
.mapa-legenda i { display: inline-block; width: 10px; height: 10px; border: 2px solid #07080b; margin-left: 8px; }
.lg-eu { background: #fff; } #lg-time-item[hidden], #lg-sitio-item[hidden] { display: none; } .lg-sitio { background: rgba(255,178,77,.4); border-color: #ffb24d !important; }
#mapa-grande { display: block; max-width: 86vw; max-height: 80vh; image-rendering: pixelated; border: 2px solid #07080b; box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 10px 40px rgba(0,0,0,.6); }
@media (max-width: 760px) { #radar { width: 168px; height: 119px; } .mapa-legenda { display: none; } }
#vida { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 14px; align-items: flex-end; padding: 6px 12px; }
.num small { display: block; font-size: 10px; letter-spacing: .08em; color: #c2cad0; }
.num b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
#hp.baixo { color: #ff6e5e; }
/* A barra de vida: o que você perdeu fica em branco por um instante e escorre, e o "-N" diz quanto foi. */
#vida-barra { width: 220px; }
.vida-topo { display: flex; align-items: baseline; gap: 8px; }
.vida-topo small { font-size: 10px; letter-spacing: .08em; color: #c2cad0; }
.vida-topo b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
#hp-perda { margin-left: auto; color: #ff6e5e; font-weight: 700; font-size: 18px; opacity: 0; font-variant-numeric: tabular-nums; }
.trilho-vida { position: relative; height: 14px; margin-top: 4px; background: #0b0c10; box-shadow: 0 0 0 1px #07080b, 0 0 0 2px var(--linha); overflow: hidden; }
.trilho-vida i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }
#hp-fantasma { background: #f4ecd8; }
#hp-cheio { background: linear-gradient(#8af0a6, #4cbf6f); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
#hp-cheio.meio { background: linear-gradient(#ffd27a, #e3a23a); }
#hp-cheio.baixo { background: linear-gradient(#ff8a7a, #d43c2e); animation: pisca .7s steps(2) infinite; }
.trilho-vida::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 21px, rgba(0, 0, 0, .35) 21px 22px); }
.trilho-colete { height: 4px; margin-top: 3px; background: #0b0c10; }
#co-cheio { display: block; height: 100%; width: 0; background: #6fb6ff; }
#vida.apanhou { animation: apanhou .28s ease-out; }
@keyframes apanhou { 0% { transform: translate(-3px, 1px); box-shadow: 0 0 0 1px var(--linha) inset, 0 0 0 3px rgba(255, 90, 72, .6); } 40% { transform: translate(3px, -1px); } 100% { transform: none; } }
#veiculo-vida { width: 120px; }
#veiculo-vida small { display: block; font-size: 10px; letter-spacing: .08em; color: #c2cad0; }
.trilho-veiculo { height: 10px; margin-top: 4px; background: #0b0c10; box-shadow: 0 0 0 1px #07080b; }
#ve-cheio { display: block; height: 100%; width: 100%; background: #c9cfd8; }
#ve-cheio.meio { background: #e3a23a; } #ve-cheio.baixo { background: #d43c2e; animation: pisca .5s steps(2) infinite; }
/* "E" em cima da arma no chão, do carro livre, da saída. */
#aviso-e { position: fixed; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; background: rgba(20, 22, 28, .9); border: 2px solid #07080b; box-shadow: 0 0 0 1px #ffd75a inset; font-size: 14px; white-space: nowrap; pointer-events: none; }
#aviso-e kbd { background: #ffd75a; color: #14161c; border: 0; font-weight: 800; padding: 1px 7px; box-shadow: 0 2px 0 #9a7a1e; }
#aviso-e span::first-letter { text-transform: uppercase; }
#aviso-e:not([hidden]) { animation: sobe .15s ease-out; }
#din { font-size: 17px; color: var(--bom); font-weight: 700; padding-bottom: 2px; }
#din:empty { display: none; }
#arma-info { position: absolute; right: 10px; bottom: 10px; text-align: right; padding: 6px 12px; min-width: 190px; }
#arma-nome { font-size: 12px; color: #d4dade; }
#arma-foto { display: block; margin: 2px 0 4px auto; image-rendering: pixelated; max-height: 40px; max-width: 170px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .5)); }
#arma-foto[hidden] { display: none; }
#proxima { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 11px; color: #c2cad0; padding-bottom: 5px; margin-bottom: 4px; border-bottom: 1px solid var(--linha); }
#proxima small { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: #d39bff; }
#proxima img { image-rendering: pixelated; max-height: 16px; }
#municao b { font-size: 32px; line-height: 1.05; font-variant-numeric: tabular-nums; }
#municao span { font-size: 16px; color: #c2cad0; margin-left: 7px; font-variant-numeric: tabular-nums; }
#municao.vazio b { color: #ff6e5e; }
#slots { display: flex; gap: 4px; justify-content: flex-end; margin-top: 4px; font-size: 11px; }
#slots span { padding: 1px 5px; background: #2c303c; color: #c2cad0; white-space: nowrap; }
#slots span.ativo { background: var(--ambar); color: #181308; font-weight: 700; }
#brindes { position: absolute; top: 74px; left: 50%; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; }
.brinde { background: var(--painel); border: 2px solid var(--ambar); padding: 6px 12px; font-size: 13px; animation: sobe .18s steps(3); }
.brinde b { color: var(--ambar); }
@keyframes sobe { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------- painéis por cima do jogo */
#tabela, #loja, #fim { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 16px; }
.tab-titulo { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.tab-titulo h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
#tabela table, #fim table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
th { text-align: right; font-weight: 500; color: var(--fraco); padding: 3px 7px; font-size: 12px; }
td { text-align: right; padding: 3px 7px; border-top: 1px solid var(--linha); }
th:first-child, td:first-child { text-align: left; }
tr.eu td { background: #3a3121; }
tr.morto td { opacity: .5; }
td .ta { color: var(--a); } td .tb { color: var(--b); }
.grupo-time { color: var(--fraco); font-size: 12px; padding-top: 10px; display: block; }
/* A loja: a grade com a foto de cada item à esquerda, a ficha do item em destaque à direita (como num menu de compra de
   jogo de tiro). A foto é a arte do próprio jogo ampliada sem borrar, numa vitrine escura com luz de cima. */
#loja { pointer-events: auto; width: min(1060px, calc(100vw - 32px)); padding: 16px 18px 18px; }
#loja .tab-titulo { border-bottom: 2px solid var(--linha); padding-bottom: 10px; margin-bottom: 4px; }
#loja .tab-titulo h2 { font-size: 20px; font-weight: 800; letter-spacing: .08em; color: var(--ambar); }
.loja-din { display: flex; align-items: center; gap: 10px; color: var(--fraco); font-size: 13px; }
.loja-din b { color: var(--bom); font-size: 20px; font-variant-numeric: tabular-nums; }
.loja-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.loja-grade h3 { font-size: 11px; color: var(--fraco); margin: 12px 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  display: flex; align-items: center; gap: 8px; }
.loja-grade h3::after { content: ""; flex: 1; height: 2px; background: var(--linha); }
.itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.item { position: relative; text-align: left; display: grid; grid-template-rows: auto auto; gap: 0; padding: 0; overflow: hidden; background: #1a1d26; }
.item-foto { display: grid; place-items: center; height: 64px; background: radial-gradient(ellipse at 50% 0%, #3a3f4e 0, #20232d 62%, #171920 100%);
  border-bottom: 2px solid #07080b; }
.item-foto img { image-rendering: pixelated; max-width: 92%; max-height: 54px; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)); transition: transform .12s; }
.item-texto { display: grid; gap: 1px; padding: 6px 9px 2px; min-width: 0; }
.item-texto b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-texto small { color: var(--fraco); font-size: 11px; }
.item em { font-style: normal; color: var(--bom); font-size: 13px; font-weight: 700; padding: 0 9px 7px; font-variant-numeric: tabular-nums; }
.item:hover, .item.foco { border-color: var(--ambar); background: #232019; }
.item:hover .item-foto img, .item.foco .item-foto img { transform: translateY(-2px) scale(1.06); }
.item[aria-disabled=true] { cursor: not-allowed; }
.item[aria-disabled=true] .item-foto img, .item[aria-disabled=true] .item-texto { opacity: .45; }
.item[aria-disabled=true] em { color: #ff8a7a; }
.item.tem { border-color: #2e5a3a; }
.etq { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; white-space: nowrap; }
/* o selo vai na linha do preço, embaixo à direita: em cima da foto ele cobria o cano da arma */
.item .etq { position: absolute; right: 7px; bottom: 7px; font-size: 9px; padding: 1px 5px; }
.etq.tem { background: var(--bom); color: #0c1a10; }
.etq.falta { background: #4a1612; color: #ffd5cf; border: 1px solid #8f2017; }
.etq.ok { background: var(--ambar); color: #181308; }
.loja-detalhe { position: sticky; top: 0; display: grid; gap: 8px; padding: 12px; background: #171920; border: 2px solid var(--linha); margin-top: 12px; }
.loja-detalhe .etq { justify-self: start; font-size: 11px; padding: 5px 9px; }
.vitrine { display: grid; place-items: center; height: 120px; background: radial-gradient(ellipse at 50% 10%, #4a4f60 0, #252935 58%, #14161c 100%);
  border: 2px solid #07080b; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .25); }
.vitrine img { image-rendering: pixelated; max-width: 94%; max-height: 104px; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .5)); }
.loja-nome { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.loja-nome h3 { font-size: 18px; font-weight: 800; }
.loja-nome b { color: var(--bom); font-size: 16px; font-variant-numeric: tabular-nums; }
.barras { display: grid; gap: 5px; margin-top: 2px; }
.atributo { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 8px; font-size: 11px; color: var(--fraco); }
.atributo i { height: 8px; background: #0b0c10; box-shadow: 0 0 0 1px #07080b; position: relative; overflow: hidden; }
.atributo i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 19%, rgba(0, 0, 0, .55) 19% 20%); }
.atributo b { display: block; height: 100%; background: linear-gradient(#ffd27a, #e3a23a); }
.ficha-arma { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 2px 0 0; background: var(--linha); border: 2px solid var(--linha); }
.ficha-arma div { background: #1c1f28; padding: 5px 8px; }
.ficha-arma dt { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--fraco); }
.ficha-arma dd { margin: 0; font-size: 12px; }
.loja-desc { font-size: 13px; line-height: 1.45; color: var(--texto); }
.loja-vazia { padding: 30px 6px; text-align: center; }
@media (max-width: 760px) { .loja-corpo { grid-template-columns: 1fr; } .loja-detalhe { position: static; } }

/* O fim da partida. */
#fim { pointer-events: auto; display: grid; gap: 12px; width: min(820px, calc(100vw - 32px)); padding: 0 0 14px; }
#fim > * { margin: 0 16px; }
.fim-topo { margin: 0 !important; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 16px 18px 14px;
  background: linear-gradient(180deg, #2a2e3a, #1c1f28); border-bottom: 2px solid var(--linha); }
#fim.ganhou .fim-topo { background: linear-gradient(180deg, #4a3a14, #2a2416); border-bottom-color: var(--ambar); }
#fim.perdeu .fim-topo { background: linear-gradient(180deg, #3a1d1a, #221a1d); }
.fim-topo h2 { font-size: 30px; font-weight: 800; margin-top: 8px; text-shadow: 3px 3px 0 #07080b; letter-spacing: .02em; }
#fim.ganhou .fim-topo h2 { color: var(--ambar); }
.fim-conta { text-align: right; display: grid; }
.fim-conta small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--fraco); }
.fim-conta b { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1; }
.mvp { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: #171920; border: 2px solid var(--linha); border-left: 4px solid var(--ambar); }
.mvp-rosto canvas { display: block; width: 54px; height: 54px; image-rendering: pixelated; background: var(--painel-2); border: 2px solid #07080b; }
.mvp div { display: grid; gap: 2px; }
.mvp small { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--ambar); }
.mvp b { font-size: 18px; }
#fim table td:first-child { display: flex; align-items: center; gap: 8px; }
.pos { display: inline-grid; place-items: center; width: 20px; height: 18px; font-size: 11px; font-weight: 800; background: #2a2f3b; color: var(--fraco); }
.pos.p1 { background: var(--ambar); color: #181308; } .pos.p2 { background: #c9cdd6; color: #14161c; } .pos.p3 { background: #b07a4a; color: #14161c; }
.votos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.voto { display: grid; padding: 0; text-align: left; overflow: hidden; }
.voto img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; background: #0d0f14; border-bottom: 2px solid #07080b; opacity: 0; transition: opacity .3s; }
.voto img.pronta { opacity: 1; }
.voto span { display: grid; padding: 5px 8px; }
.voto b { font-size: 12px; } .voto small { font-size: 11px; color: var(--fraco); }
.voto[aria-pressed=true] { border-color: var(--ambar); background: #3a3121; box-shadow: 0 0 0 2px var(--ambar); }
#pausa { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(8, 9, 13, .62); padding: 16px; }
.pausa-caixa { width: min(420px, 100%); padding: 16px; display: grid; gap: 11px; max-height: calc(100vh - 32px); overflow-y: auto; }
.pausa-caixa h2 { text-transform: uppercase; letter-spacing: .05em; }
.pausa-caixa label { display: grid; gap: 3px; font-size: 13px; color: var(--fraco); }
.pausa-caixa output { color: var(--texto); }
.teclas { padding: 0; margin: 7px 0 0; list-style: none; display: grid; gap: 4px; font-size: 12px; color: var(--fraco); }
kbd { background: var(--painel-2); border: 1px solid var(--linha); padding: 0 5px; color: var(--texto); font: inherit; }

/* ------------------------------------------------- a conta e a voz da Comunidade */
#falantes { position: absolute; left: 10px; top: 164px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.falante { background: rgba(20, 22, 28, .86); border-left: 3px solid var(--bom); padding: 2px 8px; font-size: 12px; font-weight: 600; }
#mic-info { position: absolute; left: 10px; bottom: 70px; background: rgba(20, 22, 28, .86); padding: 2px 8px; font-size: 11px; color: var(--fraco); pointer-events: none; }
#mic-info.ligado { color: var(--bom); }
