/* Painel de cada grupo no visual "Arena" (12/11, pedido do dono: mesmo estilo do
   Painel Geral novo). Carregado DEPOIS do v2-painel.css so quando VISUAL_ARENA nao e 0
   (cabecaV2 em visualV2.ts). So muda a aparencia: as telas, classes e botoes sao os
   mesmos. Preto + verde-limao (acoes) + a cor do grupo (identidade), titulos em Anton. */
:root {
  --ar-neon: #c6ff1a;
  --ar-neon-escuro: #0b0d02;
  --ar-roxo: #8b5cf6;
  --ar-painel: #131317;
  --ar-painel2: #18181d;
  --ar-linha: rgba(255, 255, 255, 0.08);
  --v2-borda: rgba(255, 255, 255, 0.09);
  --v2-linha: rgba(255, 255, 255, 0.06);
  --v2-texto: #fafafa;
  --v2-fraco: rgba(250, 250, 250, 0.6);
  --v2-fundo: #09090b;
}
html body.v2 { background: #09090b !important; color: #fafafa !important; }
html body.v2::before {
  background:
    radial-gradient(40% 32% at 92% -4%, rgba(139, 92, 246, 0.2), transparent 70%),
    radial-gradient(34% 30% at 8% 0%, rgba(var(--v2-rgb), 0.16), transparent 70%),
    radial-gradient(40% 34% at 50% 110%, rgba(198, 255, 26, 0.07), transparent 70%) !important;
}
html body.v2 h1, html body.v2 h2, html body.v2 h3 { font-family: "Anton", Impact, "Arial Narrow", sans-serif !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: 0.01em !important; }
html body.v2 .stat-card .valor, html body.v2 .podio-valor, html body.v2 .pessoa-total { font-family: "Anton", Impact, "Arial Narrow", sans-serif !important; font-weight: 400 !important; letter-spacing: 0.02em !important; }
html body.v2 a { color: var(--ar-neon); }

/* ----- menu lateral ----- */
html body.v2 .v2-lateral { background: rgba(9, 9, 11, 0.9) !important; border-right: 1px solid var(--ar-linha) !important; }
html body.v2 .v2-grupo strong { font-family: "Anton", Impact, sans-serif !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: 0.04em; font-size: 17px !important; color: #fff !important; }
html body.v2 .v2-grupo img { box-shadow: 0 0 0 2px var(--v2-cor), 0 0 18px rgba(var(--v2-rgb), 0.45) !important; }
html body.v2 .v2-bloco > span { font-family: "Anton", Impact, sans-serif; letter-spacing: 0.24em !important; color: var(--ar-neon) !important; font-size: 11px !important; }
html body.v2 .v2-bloco a { color: rgba(250, 250, 250, 0.72) !important; border-radius: 12px !important; text-transform: uppercase; font-size: 12.5px !important; letter-spacing: 0.08em; font-weight: 600 !important; }
html body.v2 .v2-bloco a em { font-style: normal; }
html body.v2 .v2-bloco a:hover { background: rgba(255, 255, 255, 0.05) !important; color: #fff !important; }
html body.v2 .v2-bloco a[aria-current="page"] { background: var(--ar-neon) !important; color: var(--ar-neon-escuro) !important; box-shadow: 0 8px 24px rgba(198, 255, 26, 0.25) !important; }
html body.v2 .v2-bloco a[aria-current="page"] .v2-ic { color: var(--ar-neon-escuro) !important; }
html body.v2 .v2-voltar { color: var(--ar-neon) !important; border-color: rgba(198, 255, 26, 0.3) !important; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px !important; font-weight: 700 !important; }
html body.v2 .v2-usuario a, html body.v2 .link-trocar-logo { color: var(--v2-fraco) !important; }

/* ----- cabecalho da pagina ----- */
html body.v2 .v2-trilha { font-family: "Anton", Impact, sans-serif; color: var(--ar-neon) !important; letter-spacing: 0.3em !important; text-transform: uppercase; font-size: 12px !important; }
html body.v2 .cabecalho-pagina h1 { font-size: clamp(38px, 4.4vw, 60px) !important; line-height: 0.95 !important; letter-spacing: 0 !important; margin-top: 6px !important; }
html body.v2 .cabecalho-pagina h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--ar-neon), var(--v2-cor)); box-shadow: 0 0 16px rgba(198, 255, 26, 0.5); }
html body.v2 h2.secao, html body.v2 .card > h2, html body.v2 .card h2 { font-size: 24px !important; letter-spacing: 0.02em !important; }

/* ----- cartoes ----- */
html body.v2 .card, html body.v2 .stat-card, html body.v2 .premio-card, html body.v2 .pessoa-card, html body.v2 .hall, html body.v2 .coluna-ranking {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)), var(--ar-painel) !important;
  border: 1px solid var(--ar-linha) !important; border-radius: 20px !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
html body.v2 .stat-card:hover, html body.v2 .pessoa-card:hover, html body.v2 .premio-card:hover { transform: translateY(-3px); border-color: rgba(198, 255, 26, 0.35) !important; }
html body.v2 .stat-card { text-align: center; padding: 22px 16px !important; }
html body.v2 .stat-card .label { text-transform: uppercase !important; letter-spacing: 0.24em !important; font-size: 11px !important; color: var(--v2-fraco) !important; }
html body.v2 .stat-card .valor { font-size: 40px !important; line-height: 1.05 !important; color: #fff !important; }
html body.v2 .grid-stats .stat-card:first-child { background: var(--ar-neon) !important; border-color: var(--ar-neon) !important; box-shadow: 0 16px 50px rgba(198, 255, 26, 0.22) !important; }
html body.v2 .grid-stats .stat-card:first-child .label, html body.v2 .grid-stats .stat-card:first-child .valor { color: var(--ar-neon-escuro) !important; }
html body.v2 .grid-stats .stat-card:last-child:not(:first-child) { background: linear-gradient(150deg, #8b5cf6, #6d3fd6) !important; border-color: transparent !important; box-shadow: 0 16px 50px rgba(109, 63, 214, 0.35) !important; }
html body.v2 .grid-stats .stat-card:last-child:not(:first-child) .label { color: rgba(255, 255, 255, 0.82) !important; }

/* ----- tabelas ----- */
html body.v2 table { border-collapse: separate !important; border-spacing: 0 !important; }
html body.v2 th { font-family: "Inter", sans-serif !important; text-transform: uppercase !important; letter-spacing: 0.18em !important; font-size: 10.5px !important; color: var(--ar-neon) !important; background: rgba(198, 255, 26, 0.05) !important; border-bottom: 1px solid var(--ar-linha) !important; }
html body.v2 td { border-bottom: 1px solid var(--v2-linha) !important; }
html body.v2 tbody tr:hover { background: rgba(198, 255, 26, 0.04) !important; }

/* ----- campos e botoes ----- */
html body.v2 input, html body.v2 textarea, html body.v2 select { background: #0d0d10 !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; border-radius: 12px !important; color: #fafafa !important; }
html body.v2 input:focus, html body.v2 textarea:focus, html body.v2 select:focus { border-color: var(--ar-neon) !important; box-shadow: 0 0 0 3px rgba(198, 255, 26, 0.18) !important; outline: none !important; }
html body.v2 button, html body.v2 .btn {
  background: var(--ar-neon) !important; color: var(--ar-neon-escuro) !important; border: 0 !important; border-radius: 99px !important;
  font-weight: 800 !important; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12.5px !important;
  box-shadow: 0 8px 24px rgba(198, 255, 26, 0.22) !important; position: relative; overflow: hidden;
}
html body.v2 button:hover, html body.v2 .btn:hover { box-shadow: 0 10px 32px rgba(198, 255, 26, 0.38) !important; }
html body.v2 .btn-excluir, html body.v2 button.btn-excluir { background: transparent !important; color: #ff6b6b !important; border: 1px solid rgba(255, 107, 107, 0.45) !important; box-shadow: none !important; }
html body.v2 label { color: rgba(250, 250, 250, 0.75) !important; }
html body.v2 .mensagem-sucesso { background: rgba(198, 255, 26, 0.1) !important; border: 1px solid rgba(198, 255, 26, 0.4) !important; color: #e8ff9a !important; border-radius: 14px !important; }
html body.v2 .faixa-leitura { background: rgba(139, 92, 246, 0.14) !important; border: 1px solid rgba(139, 92, 246, 0.4) !important; color: #ddd0ff !important; }

/* ----- ranking / podio / abas ----- */
html body.v2 .abas-periodo a { border-radius: 99px !important; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px !important; font-weight: 700 !important; color: var(--v2-fraco) !important; border: 1px solid var(--ar-linha) !important; background: transparent !important; }
html body.v2 .abas-periodo a.ativo { background: var(--ar-neon) !important; color: var(--ar-neon-escuro) !important; border-color: var(--ar-neon) !important; }
html body.v2 .podio-item { background: linear-gradient(170deg, rgba(var(--v2-rgb), 0.28), #121318 75%) !important; border: 1px solid var(--ar-linha) !important; }
html body.v2 .podio-item.ouro { border-color: var(--ar-neon) !important; box-shadow: 0 0 0 1px var(--ar-neon), 0 14px 40px rgba(198, 255, 26, 0.2) !important; }
html body.v2 .podio-valor { color: var(--ar-neon) !important; }

/* ----- barra de atalhos ----- */
html body.v2 .v2-dock { background: rgba(9, 9, 11, 0.86) !important; border-color: var(--ar-linha) !important; }
html body.v2 .v2-dock a { color: rgba(250, 250, 250, 0.7) !important; }
html body.v2 .v2-dock a[aria-current="page"] { background: var(--ar-neon) !important; color: var(--ar-neon-escuro) !important; box-shadow: 0 6px 22px rgba(198, 255, 26, 0.4) !important; }
html body.v2 a:focus-visible, html body.v2 button:focus-visible, html body.v2 label:focus-visible { outline-color: var(--ar-neon) !important; }

/* ----- barra do celular ----- */
html body.v2 .v2-barra-topo { background: rgba(9, 9, 11, 0.92) !important; border-bottom: 1px solid var(--ar-linha) !important; }
html body.v2 .v2-barra-nome strong { font-family: "Anton", Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }

/* ----- login do grupo ----- */
.v2-login .caixa { background: var(--ar-painel) !important; border: 1px solid var(--ar-linha) !important; border-radius: 22px !important; }
.v2-login h1 { font-family: "Anton", Impact, sans-serif !important; font-weight: 400 !important; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { html body.v2 .card, html body.v2 .stat-card { transition: none; } }
