/* css/estilo.css — SUPER 11 · TEMA PREMIUM (Neurodesign / Retenção) */

/* =========================================================================
   :root — PALETA "ÁLBUM VINTAGE / 7 a 0" (Light Mode Premium)
   - Fundo creme/bege elegante (papel de álbum de figurinhas antigo).
   - Texto quase preto/carvão para leitura confortável em fundo claro.
   - Verde de campo clássico e limpo (sem grid neon holográfico).
   - Laranja terra / vermelho tijolo como cor de identidade e de ação.
   - Ouro segue como raridade máxima (funciona bem sobre o creme).
   ========================================================================= */
:root {
    --font-display: 'Bebas Neue', 'Montserrat', sans-serif; /* títulos grandes, números, placares */
    --font-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif; /* texto corrido */
    --font-mono: 'Roboto Mono', 'Courier New', monospace; /* minutos e detalhes técnicos */

    /* --bg-void = "tinta" mais escura da paleta: usada como texto de alto
       contraste sobre elementos claros/coloridos (botões, badges, placar) */
    --bg-void: #241f16;
    --bg-page: #f4ecd8;       /* fundo geral do site — creme/bege */
    --bg-panel: #fffaf0;      /* cards e painéis — off-white quente */
    --bg-panel-alt: #efe4c9;  /* painéis secundários — bege um pouco mais escuro */
    --bg-elevated: #e7dabb;   /* hover / elementos elevados */
    --bg-pitch: #2f5233;      /* campo de futebol — verde clássico */

    --border-subtle: rgba(36, 31, 22, 0.12);
    --border-strong: rgba(36, 31, 22, 0.28);

    --text-primary: #241f16;
    --text-secondary: #574c3a;
    --text-muted: #8a7c62;

    /* Identidade/marca — laranja terra */
    --accent-primary: #b5502e;
    --accent-primary-light: #d16b45;
    --accent-primary-soft: rgba(181, 80, 46, 0.18);

    /* Ação primária (CTAs) — vermelho tijolo/queimado */
    --accent-cyan: #a8391f;
    --accent-cyan-light: #c9552f;
    --accent-cyan-soft: rgba(168, 57, 31, 0.22);

    /* Tensão / reroll — vermelho mais quente */
    --accent-tension: #c1440e;
    --accent-tension-light: #e2661f;
    --accent-tension-soft: rgba(193, 68, 14, 0.25);
    --accent-tension-bg: rgba(193, 68, 14, 0.1);

    --legendary-gold: #b8860b;
    --legendary-glow: rgba(184, 134, 11, 0.45);
    --rare-silver: #8a7f6a;
    --rare-silver-glow: rgba(138, 127, 106, 0.35);

    --danger: #b3261e;
    --success: #3f6b3f;

    --radius-card: 10px;
    --shadow-elevacao: 0 16px 38px rgba(36, 31, 22, 0.18);
}

/* 1. CONFIGURAÇÕES BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(circle at 15% 0%, rgba(181, 80, 46, 0.05), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(184, 134, 11, 0.04), transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 80px; /* Espaço para a navbar fixa */
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* 2. BARRA DE TOPO (Estilo Premium) */
.barra-topo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(244, 236, 216, 0.92);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
}

.logo-mini {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--font-display);
}

.logo-mini-clicavel {
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.logo-mini-clicavel:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}
.logo-mini-clicavel:active {
    transform: translateY(0);
}
.logo-mini-clicavel:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo-mini span {
    color: var(--accent-primary);
}

.nav-botoes {
    display: flex;
    align-items: center;
    gap: 20px;
}

.badge-diario {
    background: var(--legendary-gold);
    color: var(--bg-void);
    font-size: 0.8rem;
    font-weight: 950;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.contador-comunidade {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 3. TELA INICIAL: LAYOUT EDITORIAL (Duas Colunas) */
.tela-inicio-editorial {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .tela-inicio-editorial {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

/* Coluna 1: Conteúdo */
.editorial-conteudo {
    display: flex;
    flex-direction: column;
}

.tag-torneio {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.titulo-principal {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    font-size: 5rem;
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin-bottom: 25px;
}

.titulo-principal .destaque {
    color: var(--legendary-gold); /* Ouro */
    font-style: italic;
}

.frase-efeito {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.descricao-jogo {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}

@media (max-width: 1024px) {
    .descricao-jogo {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Botões do Menu */
.botoes-jogar-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .botoes-jogar-container {
        justify-content: center;
    }
}

.btn-jogar {
    padding: 18px 32px;
    font-size: 1rem;
    font-weight: 800;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background-color 0.2s ease;
    text-transform: uppercase;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* CTA primário — Vermelho Tijolo: cor de ação sobre fundo creme, alto contraste */
.btn-jogar.principal {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-primary));
    color: #fffaf0;
    box-shadow: 0 4px 20px var(--accent-cyan-soft);
}

.btn-jogar.principal:hover {
    background: linear-gradient(135deg, var(--accent-cyan-light), var(--accent-primary-light));
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--accent-cyan-soft);
}

.btn-jogar.principal:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 10px var(--accent-cyan-soft);
}

.btn-jogar.secundario {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-strong);
}

.btn-jogar.secundario:hover {
    border-color: var(--accent-primary-light);
    color: var(--accent-primary-light);
    background-color: var(--accent-primary-soft);
}

.btn-jogar.secundario:active {
    transform: scale(0.97);
}

.stats-footer {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .stats-footer {
        justify-content: center;
    }
}

/* Faixa "Como Funciona" — 3 passos, ocupa a largura toda abaixo do hero */
.como-funciona-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-top: 50px;
    box-shadow: var(--shadow-elevacao);
}

.passo-funciona {
    background: var(--bg-panel);
    padding: 24px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.numero-passo {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--border-strong);
}

.icone-passo {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.texto-passo {
    display: flex;
    flex-direction: column;
}

.texto-passo strong {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.texto-passo span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

@media (max-width: 900px) {
    .como-funciona-strip {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }
}

/* Coluna 2: Preview do Campo (A Mágica Visual) */
.editorial-preview {
    display: flex;
    justify-content: center;
}

.preview-campo {
    width: 340px;
    height: 440px;
    background-color: var(--bg-pitch);
    background-image:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.06), transparent 65%);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-elevacao), inset 0 0 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.preview-linha-meio {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.preview-titulo-campo {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 4px;
    white-space: nowrap;
}

/* Elemento Jogador no Campo de Preview */
.jogador-preview {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}

.jogador-preview .foto-placeholder {
    width: 32px;
    height: 32px;
    background-color: var(--bg-void);
    border: 2px solid var(--legendary-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.jogador-preview span {
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--text-primary);
    background-color: rgba(244, 236, 216, 0.92);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* 4. DESIGN DA ÁREA DE JOGO ATIVA */
.layout-jogo {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .layout-jogo {
        grid-template-columns: 1fr;
    }
}

.painel-draft {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    min-height: 520px;
    box-shadow: var(--shadow-elevacao);
}

.painel-draft h3 {
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#time-sorteado-nome {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--legendary-gold);
    margin-bottom: 25px;
}

/* Cards de Escolha de Jogador */
.lista-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-jogador {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-jogador:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.card-info .nome {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.card-info .detalhe {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

.card-nota {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    background: var(--bg-void);
    color: var(--legendary-gold);
    font-weight: 900;
    font-size: 1.3rem;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1.5px solid var(--legendary-gold);
}

/* 5. CAMPO DE JOGO DE VERDADE — PRANCHETA TÁTICA HOLOGRÁFICA (zero verde-grama) */
.campo-futebol {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--bg-pitch);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 8%, transparent 92%, rgba(0, 0, 0, 0.08) 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05), transparent 70%);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-elevacao), inset 0 0 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.linha-meio {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan-soft) 15%, var(--accent-cyan-soft) 85%, transparent);
}

.linha-meio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 1.5px solid var(--accent-cyan-soft);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.grande-area {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 62%;
    height: 16%;
    border: 1.5px solid var(--accent-cyan-soft);
}

.area-cima { top: 0; border-top: none; }
.area-baixo { bottom: 0; border-bottom: none; }

.posicoes-campo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Nota: o antigo seletor .posicao (singular) e suas variações [data-pos] /
   .preenchida foram removidos — o JS gera dinamicamente elementos com a
   classe .posicao-campo (ver mais abaixo), então este bloco era CSS morto. */

/* 6. TELA DE SIMULAÇÃO */
.painel-central {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-elevacao);
    max-width: 800px;
    margin: 40px auto 0 auto;
}

/* 6.1 CABEÇALHO AO VIVO — título da fase + controles de velocidade juntos,
   fixo (sticky) logo abaixo da barra de navegação enquanto a lista de
   jogos rola normalmente por baixo. */
.cabecalho-ao-vivo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: -12px -12px 8px -12px;
    padding: 12px;
    position: sticky;
    top: 70px; /* logo abaixo da barra de navegação fixa (70px de altura) */
    z-index: 50;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
}

/* 6.2 CONTROLES DE VELOCIDADE */
.controles-velocidade {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-velocidade {
    background: rgba(36, 31, 22, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-velocidade:hover {
    border-color: var(--legendary-gold);
    color: var(--legendary-gold);
}

.btn-velocidade.ativo {
    background: var(--legendary-gold);
    border-color: var(--legendary-gold);
    color: var(--bg-void);
}

.btn-pular {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--accent-primary-light);
}

/* JUICINESS — texto que "pula" ao entrar na tela: cresce com overshoot e
   assenta suave. Usado em avisos de fase/status. */
@keyframes textPop {
    0%   { opacity: 0; transform: scale(0.35); }
    55%  { opacity: 1; transform: scale(1.18); }
    75%  { transform: scale(0.94); }
    100% { transform: scale(1); }
}

.texto-animado {
    display: inline-block;
    animation: textPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

@keyframes entradaEvento {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulsarGol {
    0% { transform: scale(0.97); }
    40% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

.gol-pop {
    animation: golPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes golPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.35); color: #ffffff; text-shadow: 0 0 18px var(--legendary-gold); }
    100% { transform: scale(1); }
}

.flash-gol {
    animation: flashTela 0.4s ease-out;
}
@keyframes flashTela {
    0% { box-shadow: inset 0 0 0 3px rgba(251, 191, 36, 0); }
    30% { box-shadow: inset 0 0 40px 6px rgba(251, 191, 36, 0.55); }
    100% { box-shadow: inset 0 0 0 3px rgba(251, 191, 36, 0); }
}

.area-compartilhar {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.area-compartilhar .btn-jogar { width: auto; }

.area-prancheta-topo {
    display: flex;
    justify-content: center;
    margin: -6px 0 20px 0;
}
.area-prancheta-topo .btn-jogar { width: auto; padding: 10px 22px; font-size: 0.85rem; }

@media (max-width: 600px) {
    .area-compartilhar { flex-direction: column; }
    .area-compartilhar .btn-jogar { width: 100%; }
    .area-prancheta-topo .btn-jogar { width: 100%; }
}

/* 7. CLASSES UTILITÁRIAS */
.escondido {
    display: none !important;
}

/* ==========================================================================
   NOVA TELA DE PREPARAÇÃO TÁTICA (ESTILOS)
   ========================================================================== */

.painel-preparacao-container {
    display: grid;
    grid-template-columns: 1.20fr 0.80fr;
    gap: 40px;
    background-color: rgba(255, 250, 240, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-elevacao);
}

@media (max-width: 900px) {
    .painel-preparacao-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

.titulo-setup {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.subtitulo-setup {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Seções de Opções */
.setup-secao {
    margin-bottom: 25px;
}

.setup-secao label {
    display: block;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--accent-primary);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.input-nome-time {
    width: 100%;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-nome-time::placeholder {
    color: var(--text-muted);
    font-weight: 600;
}

.input-nome-time:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-soft);
}

/* Grid de Seletores Interativos */
.grid-opcoes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.grid-opcoes.grid-opcoes-2 {
    grid-template-columns: repeat(2, 1fr);
}

.btn-opcao {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px 10px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-opcao strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.btn-opcao span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.btn-opcao:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background-color: var(--bg-elevated);
}

/* Estado Ativo/Selecionado (Unicidade Visual) */
.btn-opcao.ativo {
    border-color: var(--accent-primary);
    background-color: var(--accent-primary);
    color: #fffaf0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-opcao.ativo strong {
    color: #fffaf0;
}

/* Coluna Direita: O Contrato */
.setup-resumo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-contrato {
    background-color: var(--bg-panel);
    border: 1.5px solid var(--legendary-gold); /* Ouro */
    border-radius: 12px;
    width: 100%;
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-elevacao);
}

.contrato-header {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--legendary-gold);
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(251, 191, 36, 0.3);
    padding-bottom: 12px;
}

.contrato-corpo p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.linha-divisora {
    height: 1px;
    background-color: var(--border-subtle);
    margin: 20px 0;
}

.detalhe-contrato {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.detalhe-contrato span {
    color: var(--text-secondary);
}

.detalhe-contrato strong {
    color: var(--text-primary);
}

/* CONTAINER DO SORTEIO */
.painel-sorteio-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.card-sorteio {
    background: var(--bg-panel-alt);
    padding: 15px 30px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-primary);
    min-width: 250px;
}

.label-sorteio {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* EFEITO SLOT MACHINE (GIRO RAPIDO COM MOTION BLUR) */
.slot-machine {
    overflow: hidden;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.texto-giro {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    transition: transform 0.1s ease-in-out;
}

.texto-giro-ano {
    font-size: 18px;
    font-weight: bold;
    color: var(--legendary-gold); /* Dourado */
    margin: 0;
}

/* Classe CSS ativada via JS para simular o efeito de velocidade */
.efeito-desfocado {
    animation: desfoqueGiro 0.1s infinite alternate;
    filter: blur(2px);
    opacity: 0.7;
}

@keyframes desfoqueGiro {
    0% { transform: translateY(-5px); }
    100% { transform: translateY(5px); }
}

/* EFEITO DE ENTRADA TRIUNFAL APÓS O GIRO */
.efeito-revelado {
    animation: popRevelar 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popRevelar {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* CONTROLES DE RE-SORTEIO */
.controles-resorteio {
    text-align: right;
}

.controles-resorteio p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.botoes-resorteio button {
    background: var(--bg-panel-alt);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
}

.botoes-resorteio button:hover:not(:disabled) {
    background: var(--accent-primary);
    color: #fffaf0;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.botoes-resorteio button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--border-strong);
    color: var(--text-muted);
}

/* INTERATIVIDADE DO CAMPO TÁTICO */
.campo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Nota: os antigos seletores .grande-area-topo/.grande-area-fundo/.circulo-central
   e a segunda definição duplicada de .campo-futebol/.linha-meio foram removidos —
   não correspondiam a nenhum elemento gerado pelo HTML/JS (CSS morto que também
   sobrescrevia, por cascata, o .campo-futebol "de verdade" definido acima). */

/* CÍRCULOS DE POSIÇÃO NO CAMPO — pinos táticos estilo "álbum vintage" */
.posicao-campo {
    position: absolute;
    width: 54px;
    height: 54px;
    min-width: 44px; /* alvo de toque mínimo recomendado (mobile) */
    min-height: 44px;
    border-radius: 50%;
    background: rgba(244, 236, 216, 0.14);
    border: 2px dashed rgba(244, 236, 216, 0.55);
    color: #f4ecd8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 5;
}

.posicao-campo:hover {
    border-color: #f4ecd8;
    transform: scale(1.08);
}

/* ⚠️ DESTAQUE DE SELEÇÃO — Laranja de Tensão: "aqui você pode encaixar" */
.posicao-campo.ativa-laranja {
    background: var(--accent-tension);
    border: 2px solid #ffffff;
    color: #fffaf0;
    box-shadow: 0 0 20px var(--accent-tension), inset 0 0 5px rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
    animation: glowPulsePosicao 1.2s infinite ease-in-out;
    z-index: 10;
}

/* POSIÇÃO JÁ ESCALADA — recompensa visual: gradiente laranja terra → tijolo */
.posicao-campo.escalada {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 0 14px var(--accent-primary-soft);
    cursor: pointer; /* clicar num slot ocupado (sem jogador selecionado) começa o remanejamento */
}

/* Jogador "na mão" — foi pego do campo e aguarda um novo destino (ou toque
   de novo aqui pra cancelar). Pulso dourado pra diferenciar do estado
   simplesmente ocupado. */
.posicao-campo.escalada.remanejando {
    border-color: var(--legendary-gold);
    box-shadow: 0 0 18px var(--legendary-glow);
    animation: glowPulsePosicao 1.2s infinite ease-in-out;
}

.posicao-campo .sigla-posicao {
    font-size: 11px;
    font-weight: 800;
}

/* Bug fix #2: no campo tático mostramos só Posição / Número / Nome abreviado.
   O Overall NUNCA aparece aqui — só na lista lateral (ver .item-jogador .ovr-jogador). */
.posicao-campo .nome-gravado {
    font-size: 9px;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
    color: #ffffff;
}

.posicao-campo .ovr-gravado {
    display: none !important;
}

@keyframes glowPulsePosicao {
    0% { transform: scale(1.15); }
    50% { transform: scale(1.22); }
    100% { transform: scale(1.15); }
}

/* Exemplo de coordenadas absolutas para posicionar no campo (Esquema 4-3-3 padrão) */
#campo-GOL  { bottom: 15px; left: calc(50% - 25px); }
#campo-LD   { bottom: 100px; right: 25px; }
#campo-ZAG1 { bottom: 85px; left: calc(50% - 70px); }
#campo-ZAG2 { bottom: 85px; right: calc(50% - 70px); }
#campo-LE   { bottom: 100px; left: 25px; }
#campo-VOL  { bottom: 200px; left: calc(50% - 25px); }
#campo-MC1  { top: 240px; left: 70px; }
#campo-MC2  { top: 240px; right: 70px; }
#campo-MEI  { top: 160px; left: calc(50% - 25px); }
#campo-CA1  { top: 65px; left: calc(50% - 80px); }
#campo-CA2  { top: 65px; right: calc(50% - 80px); }

/* =========================================================================
   LISTA DE JOGADORES DO DRAFT (#lista-jogadores)
   ========================================================================= */
#lista-jogadores {
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel-alt);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#lista-jogadores::-webkit-scrollbar { width: 8px; }
#lista-jogadores::-webkit-scrollbar-track { background: rgba(36, 31, 22, 0.04); border-radius: 4px; }
#lista-jogadores::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
#lista-jogadores::-webkit-scrollbar-thumb:hover { background: var(--accent-primary-soft); }

.item-jogador {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-panel-alt);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-subtle);
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    animation: entradaCard 0.3s ease-out both;
}

.item-jogador:hover {
    background: var(--bg-elevated);
    transform: translateX(3px);
    border-color: var(--accent-primary);
}

.item-jogador.selecionado-draft {
    background: var(--accent-tension) !important;
    border-color: var(--accent-tension) !important;
    box-shadow: 0 0 16px var(--accent-tension-soft);
}

.item-jogador .num-camisa { font-weight: 700; color: var(--text-muted); width: 28px; font-size: 15px; flex-shrink: 0; font-family: var(--font-display); }
.item-jogador.selecionado-draft .num-camisa { color: #fffaf0; }

.item-jogador .nome-jogador { flex-grow: 1; text-align: left; display: flex; flex-direction: column; padding: 0 8px; overflow: hidden; }
.item-jogador .nome-txt { font-size: 13.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-jogador.selecionado-draft .nome-txt { color: #fffaf0; }
.item-jogador .pos-secundarias { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.item-jogador.selecionado-draft .pos-secundarias { color: rgba(255, 250, 240, 0.75); }

.item-jogador .pos-jogador {
    font-size: 10px;
    background: var(--accent-primary-soft);
    color: var(--accent-primary-light);
    padding: 3px 7px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: 900;
    flex-shrink: 0;
}
.item-jogador.selecionado-draft .pos-jogador { background: rgba(0, 0, 0, 0.18); color: #fffaf0; }

/* Bug fix #2 — o OVR (ou "?" no Modo Almanaque, ver JS) aparece aqui na lista,
   nunca dentro do pino do campo tático. */
.item-jogador .ovr-jogador {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    padding: 4px 8px;
    background: var(--bg-void);
    color: var(--legendary-gold);
    border: 1.5px solid var(--legendary-gold);
    border-radius: 6px;
    font-weight: 900;
    font-size: 12.5px;
    flex-shrink: 0;
}
.item-jogador.selecionado-draft .ovr-jogador { border-color: #fffaf0; color: #fffaf0; }

/* Bug fix #3 — jogador já escalado no campo: card cinza/desabilitado na lista.
   Aplicado via JS (classe .escalado) assim que o jogador entra em campo. */
.item-jogador.escalado {
    opacity: 0.5;
    filter: grayscale(90%);
    pointer-events: none;
    cursor: not-allowed;
    background: #c7c2b4; /* cinza esverdeado nítido — não pode parecer disponível */
    border-color: var(--border-subtle);
    box-shadow: none;
}
.item-jogador.escalado:hover {
    background: #c7c2b4;
    transform: none;
    border-color: var(--border-subtle);
    box-shadow: none;
}

/* =========================================================================
   PILAR 1 — HIERARQUIA DE RARIDADE (3 tiers, conforme pedido)
   Na LISTA o brilho é discreto (não "gasta" atenção enquanto o usuário
   ainda está escolhendo) — o efeito forte de raridade fica reservado para
   quando o craque entra em campo (ver .tier-bom-campo / .tier-lendario-campo).
   ========================================================================= */
.item-jogador.tier-bom {
    border-color: var(--rare-silver-glow) !important;
}
.item-jogador.tier-lendario {
    border: 1px solid var(--legendary-gold) !important;
    position: relative;
    overflow: hidden;
}
.item-jogador.tier-lendario .nome-txt::before { content: "★ "; color: var(--legendary-gold); }

/* Brilho pleno de raridade — reservado para o campo (a recompensa real) */
.posicao-campo.escalada.tier-bom-campo {
    background: linear-gradient(135deg, #6b5f4a, var(--rare-silver));
    box-shadow: 0 0 20px var(--rare-silver-glow);
}
.posicao-campo.escalada.tier-lendario-campo {
    background: linear-gradient(135deg, #7a5b0a, var(--legendary-gold));
    border-color: var(--legendary-gold);
    box-shadow: 0 0 26px var(--legendary-glow);
    animation: respiroOuro 1.8s ease-in-out infinite;
}
.posicao-campo.escalada.tier-lendario-campo .nome-gravado { color: #241a05; text-shadow: none; }

@keyframes entradaCard {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes respiroOuro {
    0%, 100% { box-shadow: 0 0 8px var(--legendary-glow); }
    50% { box-shadow: 0 0 20px var(--legendary-glow); }
}
@keyframes brilhoLendario {
    0% { left: -60%; }
    100% { left: 130%; }
}

/* =========================================================================
   PILAR 3 — PAINEL DE PROGRESSÃO (Overall + Entrosamento ao vivo)
   ========================================================================= */
.painel-progressao { display: flex; gap: 10px; margin-bottom: 16px; }
.metrica-progresso {
    flex: 1;
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}
.label-metrica { display: block; font-size: 9px; letter-spacing: 0.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 3px; }
.valor-metrica { display: block; font-size: 26px; font-weight: 700; color: var(--accent-cyan); font-family: var(--font-display); letter-spacing: 0.5px; }
.valor-metrica.subiu { animation: golPopMetrica 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes golPopMetrica {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); color: #ffffff; text-shadow: 0 0 12px var(--accent-cyan); }
    100% { transform: scale(1); }
}
/* Badge da Panelinha — aparece quando 3+ jogadores do mesmo clube estão
   escalados. Tom dourado/quente, combina com a paleta vintage. */
.valor-panelinha {
    color: var(--legendary-gold) !important;
    font-size: 0.95rem !important;
    animation: pulsoPanelinha 1.4s ease-in-out infinite;
}
@keyframes pulsoPanelinha {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* Tensão no re-sorteio (aversão à perda) */
.tentativas-alerta { color: var(--danger) !important; animation: piscarTentativa 0.9s infinite alternate; }
@keyframes piscarTentativa { from { opacity: 0.55; } to { opacity: 1; } }

.btn-resorteio {
    background: var(--accent-cyan) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-resorteio:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 14px var(--accent-cyan-soft); }
.btn-resorteio:active:not(:disabled) { transform: scale(0.94); }
.btn-resorteio:disabled { background-color: var(--bg-elevated) !important; cursor: not-allowed; opacity: 0.5; }

/* =========================================================================
   PILAR 4 — SLOT MACHINE (giro do sorteio)
   ========================================================================= */
.efeito-desfocado {
    filter: blur(2px);
    opacity: 0.75;
    animation: desfoqueGiro 0.1s infinite alternate;
}
@keyframes desfoqueGiro {
    0% { transform: translateY(-4px); }
    100% { transform: translateY(4px); }
}
.efeito-revelado {
    animation: popRevelar 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--legendary-gold) !important;
    text-shadow: 0 0 12px var(--legendary-glow);
}
@keyframes popRevelar {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* =========================================================================
   PILAR 5 — ONBOARDING / FTUE (Spotlight, regra dos 10 segundos)
   ========================================================================= */
.ftue-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(3, 5, 10, 0.78);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.ftue-overlay.visivel { opacity: 1; pointer-events: auto; }

.ftue-spotlight {
    position: fixed;
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(3, 5, 10, 0.78);
    border: 2px solid var(--accent-cyan);
    transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 9999;
    pointer-events: none;
}

.ftue-cartao {
    position: fixed;
    z-index: 10000;
    background: var(--bg-panel);
    border: 1px solid var(--accent-cyan-soft);
    border-radius: 12px;
    padding: 18px 20px;
    max-width: 280px;
    box-shadow: var(--shadow-elevacao);
    animation: entradaCard 0.3s ease-out both;
}
.ftue-cartao .ftue-passo { font-size: 10px; letter-spacing: 1px; color: var(--accent-cyan); font-weight: 800; text-transform: uppercase; margin-bottom: 6px; }
.ftue-cartao h4 { font-size: 15px; color: var(--text-primary); margin-bottom: 6px; }
.ftue-cartao p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.ftue-cartao .ftue-botoes { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ftue-pular { background: none; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; text-decoration: underline; }
.ftue-avancar {
    background: var(--accent-cyan);
    color: #fffaf0;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12.5px;
    cursor: pointer;
    text-transform: uppercase;
}

/* =========================================================================
   PILAR 6 — CONQUISTAS / TROFÉUS (Efeito Zeigarnik)
   ========================================================================= */
.btn-trofeus-nav {
    background: var(--accent-primary-soft);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary-light);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    letter-spacing: 0.3px;
}
.btn-trofeus-nav:hover { background: var(--accent-primary); color: #fff; }

.modal-trofeus-fundo {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.82);
    backdrop-filter: blur(4px);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-trofeus-caixa {
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 30px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elevacao);
}

.modal-trofeus-caixa h2 { font-size: 1.4rem; margin-bottom: 4px; color: var(--text-primary); }
.modal-trofeus-caixa .sub-trofeus { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }

.grid-trofeus { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

.card-trofeu {
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
}
.card-trofeu .icone-trofeu { font-size: 28px; margin-bottom: 8px; filter: grayscale(1) brightness(0.5); }
.card-trofeu .nome-trofeu { font-size: 12px; font-weight: 800; color: var(--text-muted); }
.card-trofeu .desc-trofeu { font-size: 10px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

.card-trofeu.desbloqueado {
    border-color: var(--legendary-gold);
    background: linear-gradient(135deg, #241a05, #33270a);
    box-shadow: 0 0 14px var(--legendary-glow);
}
.card-trofeu.desbloqueado .icone-trofeu { filter: none; }
.card-trofeu.desbloqueado .nome-trofeu { color: var(--legendary-gold); }
.card-trofeu.desbloqueado .desc-trofeu { color: var(--text-secondary); }

.btn-fechar-trofeus {
    display: block;
    margin: 22px auto 0 auto;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
}

/* Item #2: sistema de toast removido — a interface não exibe mais
   nenhum aviso pop-up (a função exibirToast agora é um no-op silencioso). */

/* =========================================================================
   PILAR 7 — MOBILE / TOUCH (a Arena precisa parecer um app nativo)
   ========================================================================= */
@media (max-width: 600px) {
    body { padding-top: 64px; }
    .barra-topo { padding: 0 16px; height: 60px; }
    .contador-comunidade { display: none; }
    .titulo-principal { font-size: 2.6rem; }
    .frase-efeito { font-size: 1.2rem; }
    .botoes-jogar-container { flex-direction: column; }
    .btn-jogar { width: 100%; padding: 16px 20px; }

    .layout-jogo { grid-template-columns: 1fr; }
    .campo-futebol { max-width: 100%; aspect-ratio: 3/4; margin-top: 10px; }
    .posicao-campo { width: 46px; height: 46px; }

    .painel-preparacao-container { padding: 18px; }
    .grid-opcoes { grid-template-columns: repeat(2, 1fr); }

    .modal-trofeus-caixa { padding: 20px; }
    .grid-trofeus { grid-template-columns: repeat(2, 1fr); }

    .cabecalho-ao-vivo { top: 60px; }
    .controles-velocidade { justify-content: center; width: 100%; }
}

/* Feedback tátil imediato ao toque (antes mesmo do JS/haptics responder) */
.btn-jogar:active,
.btn-opcao:active,
.item-jogador:active,
.posicao-campo:active,
.btn-resorteio:active,
.tocado-ativo {
    filter: brightness(0.92);
}
/* =========================================================================
   PILAR 3 — FIM DOS ALERTAS AMADORES
   Ação inválida nunca trava a tela: apenas pisca a borda em vermelho suave.
   ========================================================================= */
.erro-piscar {
    animation: piscarErroBorda 0.6s ease-in-out;
}
@keyframes piscarErroBorda {
    0%, 100% { box-shadow: none; border-color: var(--border-subtle); }
    25% { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.45); border-color: var(--danger); }
    50% { box-shadow: none; border-color: var(--border-subtle); }
    75% { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3); border-color: var(--danger); }
}

/* Modal de confirmação customizado — substitui o confirm() nativo do navegador */
.modal-confirm-fundo {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 10, 0.72);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10050;
    animation: fadeInModal 0.2s ease-out;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
.modal-confirm-caixa {
    background: var(--bg-panel);
    border: 1px solid var(--accent-tension);
    border-radius: 14px;
    padding: 26px 24px;
    max-width: 360px;
    width: 90%;
    box-shadow: var(--shadow-elevacao);
    animation: popRevelar 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-confirm-caixa h4 { font-size: 16px; color: var(--text-primary); margin-bottom: 10px; }
.modal-confirm-caixa p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 20px; }
.modal-confirm-botoes { display: flex; gap: 10px; }
.modal-confirm-botoes button {
    flex: 1;
    padding: 11px 14px;
    border-radius: 8px;
    border: none;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.modal-confirm-botoes button:active { transform: scale(0.96); }
.modal-confirm-cancelar { background: rgba(36, 31, 22, 0.08); color: var(--text-secondary); }
.modal-confirm-cancelar:hover { filter: brightness(1.2); }
.modal-confirm-confirmar { background: var(--accent-tension); color: #fff; }
.modal-confirm-confirmar:hover { filter: brightness(1.1); }

/* =========================================================================
   PILAR 4 — HISTÓRICO DE PARTIDAS (campanha) E TABELA DE CLASSIFICAÇÃO
   ========================================================================= */
.historico-partidas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.linha-historico-wrapper {
    display: flex;
    flex-direction: column;
}

/* Linha principal — fase pequena, adversário em destaque (fonte forte),
   placar à direita, e um resumo discreto de quem marcou logo abaixo. */
.item-historico {
    display: block;
    width: 100%;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 20px;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    animation: entradaEvento 0.3s ease-out both;
}
.item-historico:hover {
    background: var(--bg-panel-alt);
}
.item-historico.expandido {
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}

.item-historico-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.item-historico-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.fase-historico {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.adversario-historico {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.4px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-historico-placar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.placar-historico {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.icone-historico {
    font-weight: 900;
    font-size: 0.85rem;
}
.item-historico.status-vitoria .icone-historico { color: var(--success); }
.item-historico.status-derrota .icone-historico { color: var(--danger); }
.item-historico.status-empate .icone-historico { color: var(--text-muted); }
.item-historico.status-vitoria { border-left: 3px solid var(--success); }
.item-historico.status-derrota { border-left: 3px solid var(--danger); }
.item-historico.status-empate { border-left: 3px solid var(--text-muted); }

.seta-historico {
    font-size: 9px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}
.item-historico.expandido .seta-historico {
    transform: rotate(180deg);
}

/* Resumo discreto — quem fez o gol e quem deu a assistência, já visível
   com a linha fechada (referência: "GOLES X, Y · RECIBIÓ Z" do 7 a 0). */
.resumo-gols-historico {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Painel expandido — slide-down suave via max-height (nunca display:none,
   pra transição não ser um "corte seco"). */
.detalhes-historico {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 10px 10px;
    transition: max-height 0.35s cubic-bezier(0.22, 0.9, 0.3, 1), opacity 0.3s ease;
}
.detalhes-historico.aberto {
    max-height: 400px;
    opacity: 1;
}
.detalhes-historico-conteudo {
    padding: 14px 20px;
}

.linha-evento-historico {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-secondary);
    opacity: 0;
    animation: entradaEvento 0.3s ease-out both;
}
.detalhes-historico.aberto .linha-evento-historico {
    opacity: 1;
}
.linha-evento-historico + .linha-evento-historico {
    border-top: 1px solid var(--border-subtle);
}
.minuto-evento-historico {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 32px;
}
.ponto-evento-historico {
    color: var(--accent-primary);
}
.nome-evento-historico {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

/* Item #1: diferencia visualmente quem marcou — nosso time fica na cor
   escura padrão (acima), o gol sofrido do adversário fica destacado em
   vermelho/laranja escuro, minuto e nome inclusive. */
.linha-evento-historico.gol-sofrido .minuto-evento-historico,
.linha-evento-historico.gol-sofrido .ponto-evento-historico,
.linha-evento-historico.gol-sofrido .nome-evento-historico {
    color: var(--danger);
}
.tag-cartao {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--danger);
}

/* =========================================================================
   LINHA AO VIVO — a simulação acontece direto aqui, sem tela separada.
   ========================================================================= */
.item-historico.ao-vivo {
    cursor: default;
    border-color: var(--accent-primary-soft);
    animation: respiroAoVivo 2.4s ease-in-out infinite;
}
.item-historico.ao-vivo:hover {
    background: var(--bg-panel);
}
@keyframes respiroAoVivo {
    0%, 100% { border-color: var(--border-subtle); }
    50% { border-color: var(--accent-primary-soft); }
}
.item-historico.ao-vivo.final-match {
    animation: respiroAoVivoFinal 2.4s ease-in-out infinite;
}
@keyframes respiroAoVivoFinal {
    0%, 100% { border-color: #3a3016; }
    50% { border-color: #e5b80b; }
}

.badge-ao-vivo {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--accent-tension);
    white-space: nowrap;
}
.item-historico.ao-vivo.em-intervalo .badge-ao-vivo {
    color: var(--legendary-gold);
    animation: respiroIntervalo 1.6s ease-in-out infinite;
}
@keyframes respiroIntervalo {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

/* O painel de detalhes da linha ao vivo já nasce aberto (sem precisar
   clicar) e tem scroll próprio, já que os eventos vão se acumulando ao
   longo da partida. */
#detalhes-ao-vivo.aberto {
    max-height: 260px;
}
#detalhes-ao-vivo .detalhes-historico-conteudo {
    max-height: 260px;
    overflow-y: auto;
}

/* Avisos de sistema (intervalo/acréscimo) — discretos, itálico, sem
   competir visualmente com os gols. */
.linha-evento-historico.linha-evento-sistema {
    padding: 6px 0;
}
.texto-sistema-historico {
    font-style: italic;
    color: var(--text-muted);
    font-size: 11.5px;
}

/* Mecânica #4: "Quase Gol" (trave, VAR, milagre do goleiro) — tom âmbar,
   claramente diferente do verde/vermelho dos gols de verdade, pra nunca
   ser confundido com um gol de fato. */
.linha-evento-historico.linha-evento-quase-gol .minuto-evento-historico,
.linha-evento-historico.linha-evento-quase-gol .ponto-evento-historico {
    color: var(--legendary-gold);
}
.texto-quase-gol {
    font-family: var(--font-body);
    font-weight: 600;
    font-style: italic;
    color: var(--legendary-gold);
    letter-spacing: 0.2px;
}

@media (max-width: 600px) {
    .item-historico { padding: 12px 14px; }
    .adversario-historico { font-size: 1.05rem; }
    .placar-historico { font-size: 1.2rem; }
    .resumo-gols-historico { font-size: 10px; }
    .item-historico-info { gap: 8px; }
}

.tabela-classificacao {
    max-width: 620px;
    margin: 0 auto 24px auto;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 18px 20px;
    text-align: left;
}
.titulo-classificacao {
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}
.linha-classificacao {
    display: grid;
    grid-template-columns: 30px 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.pos-classificacao { font-weight: 900; color: var(--text-muted); }
.nome-classificacao { font-weight: 700; color: var(--text-primary); }
.pts-classificacao { font-weight: 800; color: var(--text-primary); }
.saldo-classificacao { color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.linha-classificacao.sua-equipe {
    background: var(--accent-tension-bg);
    border-radius: 6px;
    padding: 8px 10px;
    margin: 0 -10px;
}
.linha-classificacao.sua-equipe .nome-classificacao { color: var(--accent-tension-light); }
.tag-classificacao {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 10px;
    text-align: center;
}
.tag-classificacao.avanca { background: rgba(52, 211, 153, 0.18); color: var(--success); }
.tag-classificacao.eliminado { background: rgba(248, 113, 113, 0.18); color: var(--danger); }

@media (max-width: 600px) {
    .item-historico { grid-template-columns: 70px 1fr auto 20px 16px; font-size: 11.5px; padding: 8px 10px; }
    .linha-classificacao { grid-template-columns: 22px 1fr auto auto; font-size: 12px; }
    .tag-classificacao { grid-column: 1 / -1; margin-top: 4px; }
}

/* =========================================================================
   RODAPÉ DO SITE
   ========================================================================= */
.rodape-site {
    margin-top: 60px;
    padding: 40px 20px 30px 20px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.rodape-conteudo {
    max-width: 560px;
    margin: 0 auto;
}

.rodape-marca {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-primary);
}
.rodape-marca span { color: var(--accent-primary); }

.rodape-frase {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 10px 0 20px 0;
}

.rodape-linha {
    height: 1px;
    background: var(--border-subtle);
    margin: 0 auto 16px auto;
    max-width: 200px;
}

.rodape-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =========================================================================
   BOTÃO DE MUTAR ÁUDIO — minimalista, canto da tela, ícone 100% CSS
   ========================================================================= */
.btn-audio-toggle {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-elevacao);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 500;
    padding: 0;
    transition: transform 0.15s ease, background-color 0.2s ease;
}
.btn-audio-toggle:hover { transform: scale(1.08); background: var(--bg-elevated); }
.btn-audio-toggle:active { transform: scale(0.94); }

.icone-audio {
    position: relative;
    width: 20px;
    height: 16px;
    display: block;
}
/* Corpo do alto-falante (trapézio via clip-path) */
.icone-audio::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 9px;
    height: 10px;
    background: var(--text-primary);
    clip-path: polygon(0% 30%, 40% 30%, 100% 0%, 100% 100%, 40% 70%, 0% 70%);
}
/* Ondas sonoras: dois arcos concêntricos à direita do alto-falante */
.onda {
    position: absolute;
    top: 50%;
    border: 2px solid var(--text-primary);
    border-left: none;
    border-radius: 0 999px 999px 0;
    transform: translateY(-50%);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.onda-1 { left: 11px; width: 5px; height: 8px; }
.onda-2 { left: 13px; width: 9px; height: 14px; opacity: 0.5; }

/* Estado mutado: ondas somem, aparece um traço diagonal discreto */
.btn-audio-toggle.mutado .onda { opacity: 0; }
.btn-audio-toggle.mutado .icone-audio::after {
    content: "";
    position: absolute;
    top: -1px;
    left: -2px;
    width: 25px;
    height: 2px;
    background: var(--danger);
    border-radius: 2px;
    transform: rotate(45deg);
    transform-origin: left center;
}

@media (max-width: 600px) {
    .btn-audio-toggle { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

/* =========================================================================
   TELA "COMO JOGAR" — tutorial rápido entre a home e o draft
   ========================================================================= */
.tela-como-jogar {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    animation: entradaCard 0.4s ease-out;
}

.como-jogar-cabecalho {
    margin-bottom: 36px;
}

.titulo-como-jogar {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 12px 0 8px 0;
}

.subtitulo-como-jogar {
    color: var(--text-secondary);
    font-size: 1rem;
}

.passos-como-jogar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.passo-como-jogar {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 28px 22px;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-elevacao);
}

.numero-como-jogar {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--border-strong);
}

.icone-como-jogar {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.passo-como-jogar h3 {
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.passo-como-jogar p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.btn-jogar-tutorial {
    max-width: 320px;
    margin: 0 auto;
    font-size: 1.1rem;
    padding: 18px;
}

@media (max-width: 800px) {
    .passos-como-jogar {
        grid-template-columns: 1fr;
    }
    .titulo-como-jogar {
        font-size: 1.9rem;
    }
}

/* =========================================================================
   DARK MODE — tema escuro verde/preto, ativado via [data-tema="escuro"]
   no <html>. Mesmas variáveis do Light Mode, valores diferentes — o resto
   do CSS não muda nada, porque tudo já usa var(--...).
   ========================================================================= */
[data-tema="escuro"] {
    --bg-page: #0a120d;
    --bg-panel: #101a12;
    --bg-panel-alt: #16211a;
    --bg-elevated: #1c2a20;
    --bg-pitch: #14261a;

    --border-subtle: rgba(244, 236, 214, 0.10);
    --border-strong: rgba(244, 236, 214, 0.22);

    --text-primary: #f2ede0;
    --text-secondary: #b7ae9c;
    --text-muted: #7d7666;

    --accent-primary: #d9713f;
    --accent-primary-light: #e8935f;
    --accent-primary-soft: rgba(217, 113, 63, 0.24);

    --accent-cyan: #d9502c;
    --accent-cyan-light: #ef7042;
    --accent-cyan-soft: rgba(217, 80, 44, 0.28);

    --accent-tension: #e2661f;
    --accent-tension-light: #f2874a;
    --accent-tension-soft: rgba(226, 102, 31, 0.3);
    --accent-tension-bg: rgba(226, 102, 31, 0.14);

    --legendary-gold: #d4a72c;
    --legendary-glow: rgba(212, 167, 44, 0.45);
    --rare-silver: #9d9686;
    --rare-silver-glow: rgba(157, 150, 134, 0.32);

    --danger: #e35b52;
    --success: #5fac5f;

    --shadow-elevacao: 0 16px 38px rgba(0, 0, 0, 0.55);
}

[data-tema="escuro"] body {
    background-image:
        radial-gradient(circle at 15% 0%, rgba(217, 113, 63, 0.06), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(212, 167, 44, 0.05), transparent 40%);
}

[data-tema="escuro"] .barra-topo {
    background-color: rgba(10, 18, 13, 0.92);
}

/* =========================================================================
   MENU DE AJUSTES (dropdown) — Tema + Idiomas
   ========================================================================= */
.ajustes-wrapper {
    position: relative;
}

.menu-ajustes {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: var(--shadow-elevacao);
    padding: 16px;
    z-index: 600;
    animation: entradaMenuAjustes 0.18s ease-out;
}

@keyframes entradaMenuAjustes {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.secao-menu-ajustes + .secao-menu-ajustes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.rotulo-menu-ajustes {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.grid-tema {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn-tema {
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-tema:hover { border-color: var(--accent-primary); }
.btn-tema.ativo {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fffaf0;
}

.grid-idiomas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.btn-idioma {
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 8px 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-idioma:hover { border-color: var(--accent-primary); transform: translateY(-1px); }
.btn-idioma.ativo {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fffaf0;
}
.btn-idioma:active { transform: scale(0.94); }

@media (max-width: 700px) {
    .menu-ajustes { right: -60px; width: 220px; }
}

/* Grid de formações — 8 opções agora, 4 colunas em telas maiores */
.grid-opcoes-formacoes {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 700px) {
    .grid-opcoes-formacoes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================================
   ESTÉTICA PREMIUM DA GRANDE FINAL — só o jogo da final ganha esse visual
   invertido (fundo quase preto, texto e placar em dourado), reforçando a
   sensação de "jogo decisivo".
   ========================================================================= */
.item-historico.final-match {
    background: #1a1a1a;
    border-color: #3a3016;
}
.item-historico.final-match .fase-historico,
.item-historico.final-match .adversario-historico,
.item-historico.final-match .placar-historico,
.item-historico.final-match .seta-historico,
.item-historico.final-match .resumo-gols-historico {
    color: #e5b80b;
}
.item-historico.final-match .icone-historico {
    color: #e5b80b !important;
}
.item-historico.final-match:hover {
    background: #232323;
}

.detalhes-historico.final-match {
    background: #1a1a1a;
    border-color: #3a3016;
    color: #d9c98a;
}
.detalhes-historico.final-match .linha-evento-historico + .linha-evento-historico {
    border-top-color: rgba(229, 184, 11, 0.18);
}
.detalhes-historico.final-match .linha-evento-historico.gol-sofrido .minuto-evento-historico,
.detalhes-historico.final-match .linha-evento-historico.gol-sofrido .ponto-evento-historico,
.detalhes-historico.final-match .linha-evento-historico.gol-sofrido .nome-evento-historico {
    color: #ff6b5e;
}

/* =========================================================================
   CARD DE CAMPANHA (Tela Final) — Retenção e Viralização
   ========================================================================= */
.card-campanha-caixa {
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-elevacao);
    position: relative;
}

.fechar-card-campanha {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-panel-alt);
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.fechar-card-campanha:hover { background: var(--bg-elevated); }

.cabecalho-card-campanha {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.marca-card-campanha {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.nome-time-card-campanha {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.status-final-card {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.status-final-card.status-selo-invicto,
.status-final-card.status-selo-artilheiro { color: var(--accent-primary); }

.selo-card-campanha {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.selo-invicto { background: rgba(37, 99, 235, 0.14); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.35); }
.selo-defesa { background: rgba(63, 107, 63, 0.14); color: var(--success); border: 1px solid rgba(63, 107, 63, 0.35); }
.selo-artilheiro { background: var(--accent-tension-bg); color: var(--accent-tension); border: 1px solid var(--accent-tension-soft); }
.selo-neutro { background: var(--bg-panel-alt); color: var(--text-muted); border: 1px solid var(--border-subtle); }

.grid-stats-card-campanha {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.stat-card-campanha {
    background: var(--bg-panel-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px 6px;
    text-align: center;
}
.stat-card-campanha.destaque-overall {
    background: var(--accent-primary-soft);
    border-color: var(--accent-primary);
}

.valor-stat-card {
    display: block;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}
.stat-card-campanha.destaque-overall .valor-stat-card { color: var(--accent-primary); }

.label-stat-card {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
}

.lista-elenco-card-campanha h3 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.linha-jogador-card-campanha {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.88rem;
}
.linha-jogador-card-campanha:last-child { border-bottom: none; }

.numero-jogador-card {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-muted);
    min-width: 22px;
    text-align: center;
}

.nome-jogador-card {
    flex: 1;
    color: var(--text-primary);
    font-weight: 700;
}

.posicao-jogador-card {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.botoes-card-campanha {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.botoes-card-campanha .btn-jogar {
    width: auto;
    flex: 1;
    padding: 12px;
    font-size: 0.82rem;
}

@media (max-width: 520px) {
    .card-campanha-caixa { padding: 22px 18px; }
    .status-final-card { font-size: 1.6rem; }
    .valor-stat-card { font-size: 1.4rem; }
}
