/* ---------------- Arena ----------------
   Lista e sala seguem o resto do app. O jogo ocupa tudo: canvas no fundo e o
   HUD por cima, com o minimo de texto - a luta e o assunto.
   ---------------------------------------- */

#app-screen.modo-arena #sidebar,
#app-screen.modo-arena #content,
#app-screen.modo-arena #pista { display: none; }
#arena { flex: 1; min-width: 0; display: flex; background: var(--chat); position: relative; }
#arena [hidden] { display: none !important; }

.guild-btn.arena { background: var(--sidebar); color: var(--text-muted); }
/* partida acontecendo com a tela fechada */
.guild-pill.em-partida .guild-btn.arena { color: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }

/* abas dos servidores (entrada da Arena) */
.arena-guilds { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.arena-guild {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--sidebar);
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600;
  border: 1px solid transparent;
}
.arena-guild:hover { color: var(--text-bright); }
.arena-guild.ativa { border-color: var(--brand); color: var(--text-bright); }
.arena-guild-icone {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  font-size: 11px; color: #fff;
}
.arena-guild-icone img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- entrada da Arena ---------------- */

.lob { flex: 1; min-width: 0; overflow-y: auto; padding: 0 32px 40px; }
.arena-vazio { color: var(--text-faint); font-size: var(--fs-ui); }

.lob-heroi {
  position: relative; overflow: hidden;
  margin: 0 -32px 22px; padding: 34px 32px 30px;
  min-height: 230px;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(149, 69, 243, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #17131f 0%, var(--chat) 100%);
  border-bottom: 1px solid var(--divider);
}
/* o elenco em leque atras do logo */
.lob-elenco { position: absolute; right: 4%; bottom: -12px; display: flex; align-items: flex-end; }
.lob-elenco img {
  width: 150px; height: 190px; object-fit: cover; object-position: top;
  margin-left: -38px; border-radius: 18px;
  border: 2px solid color-mix(in srgb, var(--cor) 70%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 26px color-mix(in srgb, var(--cor) 30%, transparent);
  transform: rotate(-6deg) translateY(10px);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.lob-elenco img:nth-child(2) { transform: rotate(-2deg); }
.lob-elenco img:nth-child(3) { transform: rotate(2deg); }
.lob-elenco img:nth-child(4) { transform: rotate(6deg) translateY(10px); }
.lob-marca { position: relative; z-index: 1; max-width: 460px; }
.lob-logo { width: 240px; height: auto; display: block; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6)); }
.lob-marca p { color: var(--text); font-size: var(--fs-msg); margin-top: 8px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.lob-fechar {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(12, 13, 17, 0.6); color: var(--text-muted);
  transition: color var(--t-toque), background var(--t-toque);
}
.lob-fechar:hover { color: var(--text-bright); background: rgba(12, 13, 17, 0.9); }

.lob-grade { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 26px; }
.lob-cartao {
  position: relative; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--sidebar); border: 1px solid var(--divider);
  transition: transform var(--t-move) var(--curva-saida), border-color var(--t-toque), box-shadow var(--t-move);
}
.lob-cartao.principal {
  background: linear-gradient(135deg, rgba(149, 69, 243, 0.28), rgba(76, 28, 212, 0.12) 60%, var(--sidebar));
  border-color: rgba(149, 69, 243, 0.45);
}
.lob-cartao-titulo { color: var(--text-bright); font: 700 22px/1.15 var(--font-display); }
.lob-cartao-texto { color: var(--text-muted); font-size: var(--fs-ui); }
.lob-niveis { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.lob-nivel {
  padding: 9px 16px; border-radius: var(--radius);
  background: rgba(12, 13, 17, 0.55); border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-bright); font-weight: 700; font-size: var(--fs-ui);
  transition: transform var(--t-toque), background var(--t-toque), border-color var(--t-toque);
}
.lob-nivel:hover { transform: translateY(-1px); border-color: var(--brand-soft); }
.lob-nivel.principal { background: var(--brand); border-color: var(--brand); }
.lob-nivel.principal:hover { background: var(--brand-hover); }
.lob-formatos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.lob-formato {
  min-width: 58px; padding: 9px 12px;
  border-radius: var(--radius);
  background: var(--input); border: 1px solid var(--divider);
  color: var(--text-bright); font: 700 var(--fs-msg) var(--font-display);
  transition: border-color var(--t-toque), background var(--t-toque), transform var(--t-toque);
}
.lob-formato:hover { border-color: var(--brand); background: var(--active); transform: translateY(-1px); }

.lob-abertas h2 { color: var(--text-bright); font-size: var(--fs-ui); font-weight: 700; margin-bottom: 10px; }
.lob-partida {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 8px;
  border-radius: var(--radius);
  background: var(--sidebar); border: 1px solid var(--divider);
}
.lob-partida strong { color: var(--text-bright); font: 700 var(--fs-msg) var(--font-display); }
.lob-partida span { color: var(--text-muted); font-size: var(--fs-sm); }
.lob-lugares { margin-left: auto; color: var(--text-faint) !important; }

/* ---------------- selecao de campeao ---------------- */

.sel { --azul: #4f8cff; --vermelho: #ff4f5e; position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; padding: 22px 28px 18px; isolation: isolate; }
/* a arte do campeao em destaque, enorme e desfocada, no fundo */
.sel-fundo {
  position: absolute; inset: 0; z-index: -1;
  background: var(--fundo) center 20% / cover no-repeat;
  filter: blur(42px) saturate(1.2) brightness(0.32);
  transform: scale(1.15);
}
.sel-fundo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 18, 0.2), rgba(14, 15, 18, 0.85)); }

.sel-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sel-modo { color: var(--brand-soft); font-size: var(--fs-sm); font-weight: 700; }
.sel-topo h1 { color: var(--text-bright); font: 700 30px/1.1 var(--font-display); margin-top: 2px; }
.sel-ultima { display: block; color: var(--text-muted); font-size: var(--fs-sm); margin-top: 4px; }
.sel-acoes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.sel-corpo { flex: 1; display: grid; grid-template-columns: 230px minmax(0, 1fr) 230px; gap: 18px; min-height: 0; }
.sel-time { display: flex; flex-direction: column; gap: 8px; }
.sel-time h3 { font-size: var(--fs-sm); font-weight: 700; padding-bottom: 6px; border-bottom: 2px solid currentColor; margin-bottom: 2px; }
.sel-time.t0 h3 { color: var(--azul); }
.sel-time.t1 h3 { color: var(--vermelho); }
.sel-vaga {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: var(--radius-lg);
  background: rgba(14, 15, 18, 0.7); border: 1px solid var(--divider);
  backdrop-filter: blur(6px);
}
.sel-vaga.pronta { border-color: color-mix(in srgb, var(--cor) 55%, var(--divider)); }
.sel-vaga.eu { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.sel-vaga-rosto { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; object-position: top; flex: 0 0 48px; display: grid; place-items: center; }
.sel-vaga-rosto.vazio { background: var(--input); }
.sel-vaga-texto { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sel-vaga-nome { display: flex; align-items: center; min-width: 0; color: var(--text-bright); font-weight: 700; font-size: var(--fs-ui); }
.sel-vaga-nome b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.sel-marca { flex: 0 0 auto; }
.sel-vaga-campeao { color: var(--cor, var(--text-faint)); font-size: var(--fs-sm); font-weight: 600; }
.sel-marca { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--input); color: var(--text-muted); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.sel-vaga.livre {
  justify-content: center; gap: 6px; min-height: 66px;
  background: transparent; border-style: dashed;
  color: var(--text-faint); font-size: var(--fs-sm); font-weight: 600;
}
button.sel-vaga.livre { cursor: pointer; color: var(--text-muted); }
button.sel-vaga.livre:hover { border-color: var(--brand); color: var(--text-bright); }
.sel-tirar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); }
.sel-tirar:hover { background: var(--active); color: var(--text-bright); }
.sel-trocar { padding: 7px; border-radius: var(--radius); color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; border: 1px solid var(--divider); }
.sel-trocar:hover { color: var(--text-bright); border-color: var(--brand); }

/* destaque: arte grande a esquerda, ficha a direita */
.sel-centro { min-width: 0; }
.sel-destaque {
  height: 100%; min-height: 360px;
  display: grid; grid-template-columns: minmax(180px, 0.9fr) 1.2fr; gap: 20px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(14, 15, 18, 0.62); border: 1px solid var(--divider);
  backdrop-filter: blur(8px);
  animation: destaque 0.35s var(--curva-saida);
}
@keyframes destaque { from { opacity: 0.4; transform: translateY(6px); } }
.sel-arte {
  width: 100%; height: 100%; max-height: 460px; object-fit: cover; object-position: top;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--cor) 65%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--cor) 28%, transparent), 0 18px 40px rgba(0, 0, 0, 0.5);
}
.sel-info { display: flex; flex-direction: column; min-width: 0; }
.sel-papel { color: var(--cor); font-size: var(--fs-sm); font-weight: 700; }
.sel-info h2 { color: var(--text-bright); font: 700 40px/1 var(--font-display); letter-spacing: -0.02em; margin: 2px 0 12px; }
.sel-atributos { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.sel-atributo { display: grid; grid-template-columns: 78px 1fr 76px; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.sel-atributo span { color: var(--text-muted); font-weight: 600; }
.sel-atributo em { color: var(--text); font-style: normal; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.sel-atributo i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; display: flex; gap: 3px; }
.sel-atributo i b { display: block; height: 100%; border-radius: 3px; background: var(--cor); }
.sel-atributo i.gomos { background: none; }
.sel-atributo i.gomos b { flex: 0 0 26px; background: #8cc8ff; }
.sel-atributo i.gomos.dificuldade b { background: #ffd166; }
.sel-habilidades { list-style: none; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 4px; }
.sel-habilidades li { display: flex; gap: 10px; align-items: flex-start; }
.sel-habilidades img { width: 38px; height: 38px; border-radius: 8px; flex: 0 0 38px; border: 1px solid color-mix(in srgb, var(--cor) 50%, transparent); }
.sel-habilidades strong { display: flex; align-items: center; gap: 6px; color: var(--text-bright); font-size: var(--fs-ui); }
.sel-habilidades p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.35; margin-top: 1px; }
.sel kbd {
  min-width: 22px; padding: 0 6px;
  border-radius: 4px;
  background: #0c0d11; border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text); font: 700 11px/18px var(--font-display); text-align: center;
}

.sel-rodape { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px; }
.sel-grade { display: flex; gap: 12px; }
.sel-escolha {
  position: relative; width: 92px; height: 112px;
  border-radius: 14px; overflow: hidden;
  border: 2px solid var(--divider);
  background: #0c0d11;
  transition: transform var(--t-move) var(--curva-firme), border-color var(--t-toque), box-shadow var(--t-move);
}
.sel-escolha img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; filter: saturate(0.85) brightness(0.85); transition: filter var(--t-toque); }
.sel-escolha span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 5px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  color: #fff; font: 700 var(--fs-sm) var(--font-display); text-align: center;
}
.sel-escolha:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--cor) 70%, transparent); }
.sel-escolha:hover img, .sel-escolha.escolhido img { filter: none; }
.sel-escolha.escolhido { border-color: var(--cor); box-shadow: 0 0 0 2px var(--cor), 0 10px 30px color-mix(in srgb, var(--cor) 45%, transparent); transform: translateY(-4px); }

.sel-pronto {
  min-width: 210px; padding: 16px 26px;
  border-radius: 14px;
  background: var(--brand-gradient); color: #fff;
  font: 700 var(--fs-title) var(--font-display);
  box-shadow: 0 10px 30px var(--brand-glow);
  transition: transform var(--t-toque), filter var(--t-toque), box-shadow var(--t-move);
}
.sel-pronto:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 40px var(--brand-glow); }
.sel-pronto:disabled { background: var(--input); color: var(--text-faint); box-shadow: none; cursor: default; }
.sel-espera { min-width: 210px; text-align: center; color: var(--text-muted); font-weight: 600; font-size: var(--fs-ui); }

.sel-controles { margin-top: 12px; align-self: center; color: var(--text-muted); font-size: var(--fs-sm); }
.sel-controles summary { cursor: pointer; text-align: center; font-weight: 600; }
.sel-controles ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 8px; max-width: 760px; }
.sel-controles li { display: flex; align-items: center; gap: 6px; }

@media (max-width: 1100px) {
  .sel-corpo { grid-template-columns: 1fr; }
  .sel-time { flex-direction: row; flex-wrap: wrap; }
  .sel-time h3 { flex-basis: 100%; }
  .sel-vaga { flex: 1 1 200px; }
  .sel-destaque { grid-template-columns: 160px 1fr; }
}
@media (max-width: 760px) {
  .lob { padding: 0 16px 32px; }
  .lob-heroi { margin: 0 -16px 18px; padding: 24px 16px; }
  .lob-elenco { opacity: 0.35; }
  .lob-grade { grid-template-columns: 1fr; }
  .sel { padding: 16px; }
  .sel-destaque { grid-template-columns: 1fr; }
  .sel-arte { max-height: 220px; }
  .sel-rodape { flex-direction: column; }
}

/* ---------------- jogo ---------------- */

.arena-jogo { flex: 1; position: relative; min-width: 0; overflow: hidden; background: #0e0f12; }
.arena-palco { position: absolute; inset: 0; }
/* o mundo 3D por baixo; a camada 2D (nomes, numeros, mira) por cima, recebendo o mouse */
.arena-3d, .arena-canvas { position: absolute; inset: 0; display: block; }
.arena-canvas { outline: none; cursor: none; }

/* a luta ocupa a janela inteira: nem a barra de servidores fica */
#app-screen.arena-em-jogo #guild-rail { display: none; }

/* cores dos times e da HUD: as mesmas do mundo 3D e da camada 2D (jogo.js) */
.arena-jogo {
  --azul: #4f8cff;
  --vermelho: #ff4f5e;
  --placa: linear-gradient(180deg, rgba(26, 27, 34, 0.94) 0%, rgba(12, 13, 17, 0.96) 100%);
  --placa-borda: rgba(255, 255, 255, 0.09);
  --placa-sombra: 0 10px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-family: var(--font);
  user-select: none;
}
.arena-jogo .t0 { color: var(--azul); }
.arena-jogo .t1 { color: var(--vermelho); }

/* caido: o mundo perde a cor, a HUD da luta apaga */
.arena-jogo.caido .arena-3d { filter: grayscale(0.85) brightness(0.7); transition: filter 0.6s ease; }
.arena-3d { transition: filter 0.4s ease; }

.arena-sair-jogo {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  padding: 6px 12px; border-radius: var(--radius);
  background: rgba(12, 13, 17, 0.7); border: 1px solid var(--placa-borda);
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600;
  transition: color var(--t-toque), background var(--t-toque);
}
.arena-sair-jogo:hover { color: var(--text-bright); background: rgba(12, 13, 17, 0.92); }

.hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hud kbd {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%); z-index: 4;
  min-width: 18px; padding: 0 5px;
  border-radius: 4px;
  background: #0c0d11; border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-bright); font: 700 10px/16px var(--font-display); text-align: center; white-space: nowrap;
}

/* ---------------- topo: times, placar, relogio ---------------- */

.hud-topo {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-start; gap: 10px;
}
.hud-time { display: flex; gap: 6px; padding-top: 6px; }
.hud-time.t0 { flex-direction: row-reverse; }
.hud-aliado {
  position: relative; width: 40px; height: 40px;
  border-radius: 10px; overflow: hidden;
  background: #0c0d11; border: 2px solid currentColor;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.hud-aliado img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.3s ease; }
.hud-aliado.eu { box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(0, 0, 0, 0.5); }
.hud-aliado-vida { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(0, 0, 0, 0.75); }
.hud-aliado-vida span { position: absolute; inset: 0 auto 0 0; background: currentColor; transition: width 0.15s linear; }
.hud-aliado.caido img { filter: grayscale(1) brightness(0.45); }
.hud-aliado.caido::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(45deg, transparent 46%, rgba(255, 255, 255, 0.75) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(255, 255, 255, 0.75) 46% 54%, transparent 54%);
  opacity: 0.55;
}

.hud-centro { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hud-placar {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 16px;
  border-radius: 12px;
  background: var(--placa); border: 1px solid var(--placa-borda); box-shadow: var(--placa-sombra);
}
.hud-placar b { font: 700 26px/1 var(--font-display); min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.hud-pontos { display: flex; gap: 4px; }
.hud-pontos i {
  width: 9px; height: 9px; transform: rotate(45deg);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.hud-pontos[data-pontos="0"] i.ganho { background: var(--azul); border-color: var(--azul); box-shadow: 0 0 8px var(--azul); }
.hud-pontos[data-pontos="1"] i.ganho { background: var(--vermelho); border-color: var(--vermelho); box-shadow: 0 0 8px var(--vermelho); }
.hud-relogio {
  min-width: 52px; text-align: center;
  color: var(--text-bright); font: 600 17px/1 var(--font-display); font-variant-numeric: tabular-nums;
}
.hud-rodada { color: var(--text-muted); font-size: var(--fs-xs); font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.hud-zona {
  padding: 3px 10px; border-radius: 999px;
  background: rgba(12, 13, 17, 0.8); color: #ffd166;
  font-size: var(--fs-xs); font-weight: 700;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.hud-zona.visivel { opacity: 1; transform: none; }
.hud-zona.perigo { color: #fff; background: rgba(217, 67, 74, 0.85); animation: zona 1s ease-in-out infinite alternate; }
@keyframes zona { to { background: rgba(217, 67, 74, 0.55); } }

/* ---------------- quem derrubou quem ---------------- */

.hud-feed { position: absolute; top: 64px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hud-abate {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px;
  border-radius: 10px;
  background: rgba(12, 13, 17, 0.82); border: 1px solid var(--placa-borda);
  color: var(--text); font-size: var(--fs-sm); font-weight: 700;
  animation: abate-entra 0.35s var(--curva-saida);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hud-abate img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.hud-abate img:last-child { margin-right: -6px; }
.hud-abate svg { width: 16px; height: 16px; color: var(--text-muted); }
.hud-abate.meu { border-color: rgba(255, 209, 102, 0.6); box-shadow: 0 0 14px rgba(255, 209, 102, 0.18); }
.hud-abate.sai { opacity: 0; transform: translateX(16px); }
@keyframes abate-entra { from { opacity: 0; transform: translateX(24px); } }

/* ---------------- anuncios no meio da tela ---------------- */

.hud-anuncio {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; transition: opacity 0.3s ease;
  text-align: center;
}
.hud-anuncio.visivel { opacity: 1; }
.hud-anuncio-titulo {
  color: #fff; font: 700 64px/1 var(--font-display); letter-spacing: -0.02em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.9);
}
.hud-anuncio-sub {
  color: var(--text); font-size: var(--fs-title); font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}
.hud-anuncio-sub:empty { display: none; }
.hud-anuncio.contagem .hud-anuncio-titulo { font-size: 110px; }
.hud-anuncio.lutem .hud-anuncio-titulo { font-size: 84px; color: #ffd166; }
.hud-anuncio.vitoria .hud-anuncio-titulo { color: #ffd166; }
.hud-anuncio.derrota .hud-anuncio-titulo { color: #ff8a94; }
.hud-anuncio.final .hud-anuncio-titulo { font-size: 104px; }
.hud-anuncio.final.vitoria .hud-anuncio-titulo { text-shadow: 0 0 40px rgba(255, 209, 102, 0.55), 0 6px 30px rgba(0, 0, 0, 0.75); }
.hud-anuncio.entra .hud-anuncio-titulo { animation: anuncio 0.5s var(--curva-firme); }
.hud-anuncio.entra .hud-anuncio-sub { animation: anuncio-sub 0.5s var(--curva-saida) 0.08s both; }
@keyframes anuncio { from { transform: scale(1.7); opacity: 0; filter: blur(6px); } }
@keyframes anuncio-sub { from { transform: translateY(10px); opacity: 0; } }

.hud-caido {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0; transition: opacity 0.4s ease;
}
.hud-caido.visivel { opacity: 1; }
.hud-caido-titulo { color: #fff; font: 700 34px/1 var(--font-display); text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8); }
.hud-caido-sub { color: var(--text-muted); font-size: var(--fs-ui); font-weight: 600; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }

/* ---------------- painel do campeao ---------------- */

.hud-painel {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: var(--placa); border: 1px solid var(--placa-borda); box-shadow: var(--placa-sombra);
  transition: opacity 0.4s ease, filter 0.4s ease;
}
/* um fio da cor do campeao no alto do painel */
.hud-painel::before {
  content: ''; position: absolute; top: -1px; left: 18%; right: 18%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cor, var(--brand)), transparent);
}
.hud-painel.sem-campeao { display: none; }
.arena-jogo.caido .hud-painel { opacity: 0.45; filter: grayscale(1); }

.hud-retrato {
  position: relative; width: 74px; height: 74px; flex: 0 0 auto;
  border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, var(--cor, var(--brand)), rgba(255, 255, 255, 0.15), var(--cor, var(--brand)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--cor, var(--brand)) 40%, transparent);
}
.hud-retrato img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #0c0d11; }

.hud-meio { display: flex; flex-direction: column; gap: 8px; }
.hud-golpes, .hud-gerais { display: flex; align-items: flex-end; gap: 8px; }
.hud-gerais { padding-left: 14px; border-left: 1px solid var(--placa-borda); align-self: stretch; align-items: center; }

.hud-golpe {
  position: relative; width: 56px; height: 56px; flex: 0 0 auto;
  border-radius: 12px;
  background: #0c0d11;
  border: 2px solid color-mix(in srgb, var(--cor, var(--divider)) 70%, #000);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.45);
  --resta: 0;
}
.hud-golpe.geral { width: 48px; height: 48px; border-color: rgba(255, 255, 255, 0.16); }
.hud-golpe-icone {
  position: absolute; inset: 0; border-radius: 10px;
  background: center / cover no-repeat;
  transition: filter 0.15s ease;
}
.hud-golpe-recarga {
  position: absolute; inset: 0; border-radius: 10px;
  /* a recarga e um ponteiro de relogio: o que falta fica escuro */
  background: conic-gradient(rgba(6, 7, 10, 0.78) calc(var(--resta) * 360deg), transparent 0);
}
.hud-golpe.em-recarga .hud-golpe-icone { filter: grayscale(0.6) brightness(0.8); }
.hud-golpe-tempo {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font: 700 20px/1 var(--font-display); font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}
.hud-golpe.bloqueado .hud-golpe-icone { filter: grayscale(1) brightness(0.45); }
.hud-golpe.reativar { border-color: #fff; box-shadow: 0 0 14px 2px var(--cor); }

/* especial: maior, com um anel que enche com a energia */
.hud-golpe.especial { width: 66px; height: 66px; border-radius: 50%; border: 0; padding: 4px; --carga: 0;
  background: conic-gradient(var(--cor, var(--brand)) calc(var(--carga) * 360deg), rgba(255, 255, 255, 0.1) 0);
}
.hud-golpe.especial .hud-golpe-icone, .hud-golpe.especial .hud-golpe-recarga { inset: 4px; border-radius: 50%; }
.hud-golpe.especial.carregado { animation: carregado 1.2s ease-in-out infinite; }
@keyframes carregado {
  0%, 100% { box-shadow: 0 0 8px 1px var(--cor); }
  50% { box-shadow: 0 0 24px 6px var(--cor); }
}

.hud-golpe.negado { animation: negado 0.3s ease; }
@keyframes negado {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); border-color: var(--vermelho); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); border-color: var(--vermelho); }
  80% { transform: translateX(2px); }
}
.hud-golpe.pronto { animation: pronto 0.45s var(--curva-saida); }
@keyframes pronto {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95); transform: scale(1.14); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); transform: scale(1); }
}

/* estamina: gomos em baixo do icone do avanco */
.hud-gomos { position: absolute; left: 3px; right: 3px; bottom: -9px; display: flex; gap: 3px; }
.hud-gomos span { flex: 1; height: 5px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, 0.8); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hud-gomos i { display: block; height: 100%; transform-origin: left; background: rgba(140, 200, 255, 0.45); }
.hud-gomos span.cheio i { background: #8cc8ff; box-shadow: 0 0 6px #8cc8ff; }

/* vida em gomos: o pedaco perdido fica branco e desce atrasado */
.hud-vida {
  position: relative; height: 18px; border-radius: 6px; overflow: hidden;
  background: rgba(0, 0, 0, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.hud-vida i { position: absolute; top: 0; bottom: 0; left: 0; }
.hud-vida-atras { background: rgba(255, 255, 255, 0.85); transition: width 0.5s ease-in 0.3s; }
.hud-vida-cheia { background: linear-gradient(180deg, #7ef0a4 0%, #34c46b 55%, #23a057 100%); transition: width 0.12s linear; }
.hud-vida-escudo { background: linear-gradient(180deg, #ffffff, #c9ced8); opacity: 0.9; }
.hud-vida-gomos {
  right: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(var(--gomo, 25%) - 1px), rgba(0, 0, 0, 0.55) calc(var(--gomo, 25%) - 1px) var(--gomo, 25%));
}
.hud-vida b {
  position: relative; z-index: 2; display: block;
  color: #fff; font: 700 12px/18px var(--font-display); text-align: center; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.hud-vida.pouca .hud-vida-cheia { background: linear-gradient(180deg, #ff9a9a 0%, #ef4b4f 60%, #c23137 100%); animation: pouca 0.55s ease-in-out infinite alternate; }
@keyframes pouca { to { filter: brightness(1.45); } }

.hud-energia { height: 6px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, 0.7); }
.hud-energia i { display: block; height: 100%; background: var(--brand-gradient-h); transition: width 0.15s linear; }
.hud-energia.cheia i { box-shadow: 0 0 10px var(--brand); }

@media (max-width: 900px) {
  .hud-golpe { width: 46px; height: 46px; }
  .hud-golpe.geral { width: 40px; height: 40px; }
  .hud-golpe.especial { width: 54px; height: 54px; }
  .hud-retrato { width: 58px; height: 58px; }
  .hud-anuncio-titulo { font-size: 46px; }
  .hud-anuncio.contagem .hud-anuncio-titulo, .hud-anuncio.final .hud-anuncio-titulo { font-size: 76px; }
  .hud-time { display: none; }
}


