/* =================================================================
   FUTI VÁRZEA — Biro-Biro_014
   v014: layout sem header — 3 colunas puras agrupadas por similaridade.
   Grid: 270px | 1fr | 320px  ×  1fr | 70px
   Col1 span 2 rows: identidade+tática+escalação
   Col2 row1: partida   Col2 row2: promo-slot
   Col3 span 2 rows: economia+loja
   3 temas: crt-green (default), amber, modern via [data-theme].
   ================================================================= */

/* ====== TEMA: Verde (default) ====== */
:root,
[data-theme="verde"] {
    --bg-dark: #0a0f0d;
    --panel-bg: #111a14;
    --panel-bg-soft: #1a2620;
    --panel-bg-rgb: 17, 26, 20;
    --text-main: #e0f2e9;
    --text-soft: #88a392;
    --accent-primary: #6ecf87;
    --accent-primary-dim: #3d9457;
    --accent-blue: #00e5ff;
    --accent-red: #ff3366;
    --accent-yellow: #ffeb3b;
    --accent-orange: #ff9d00;
    --border-color: #1a2f22;
    --font-stack: 'Share Tech Mono', 'Courier New', monospace;
    --font-stack-mod: 'Share Tech Mono', 'Courier New', monospace;
    --pos-gk: #ffeb3b;
    --pos-def: #00e5ff;
    --pos-mid: #6ecf87;
    --pos-atk: #ff9d00;
}

/* Bordas estilo cal de campo — só no tema Verde */
[data-theme="verde"] .identity-panel,
[data-theme="verde"] .match-panel,
[data-theme="verde"] .shop-panel {
    border: 2px solid rgba(245, 255, 238, 0.42);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 12px rgba(200, 235, 180, 0.10);
}

/* ====== TEMA: Amber CRT ====== */
[data-theme="amber"] {
    --bg-dark: #1a0e00;
    --panel-bg: #2a1a04;
    --panel-bg-soft: #3a260a;
    --panel-bg-rgb: 42, 26, 4;
    --text-main: #ffe6b8;
    --text-soft: #b89060;
    --accent-primary: #ffb000;
    --accent-primary-dim: #cc8800;
    --accent-blue: #ffd060;
    --accent-red: #ff5520;
    --accent-yellow: #ffdf40;
    --accent-orange: #ff8000;
    --border-color: #4a2e0a;
    --pos-gk: #ffdf40;
    --pos-def: #ffd060;
    --pos-mid: #ffb000;
    --pos-atk: #ff8000;
    color-scheme: dark;
}

/* ====== TEMA: Moderno (GitHub-dark) ====== */
[data-theme="modern"] {
    --bg-dark: #080b12;
    --panel-bg: #0f1320;
    --panel-bg-soft: #161c2e;
    --panel-bg-rgb: 15, 19, 32;
    --text-main: #dde4f0;
    --text-soft: #5a6a8a;
    --accent-primary: #60a5fa;
    --accent-primary-dim: #3b82f6;
    --accent-blue: #38bdf8;
    --accent-red: #f87171;
    --accent-yellow: #fbbf24;
    --accent-orange: #fb923c;
    --border-color: #1e2845;
    --font-stack-mod: 'Share Tech Mono', 'Courier New', monospace;
    --pos-gk: #fbbf24;
    --pos-def: #38bdf8;
    --pos-mid: #60a5fa;
    --pos-atk: #fb923c;
    color-scheme: dark;
}

/* Painéis do tema moderno: borda sutil azul estilo glass */
[data-theme="modern"] .identity-panel,
[data-theme="modern"] .match-panel,
[data-theme="modern"] .shop-panel {
    border: 1px solid rgba(96, 165, 250, 0.18);
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 32px rgba(0, 0, 0, 0.45);
}

:root {
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 0.95rem;
    --fs-md: 1.1rem;
    --fs-lg: 1.4rem;
    --fs-xl: 1.8rem;
    /* altura da bottom-nav mobile */
    --mobile-nav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

/* ================================================================
   SCROLLBARS — cores do tema (v014)
   ================================================================ */
/* Firefox */
* { scrollbar-width: thin; scrollbar-color: var(--accent-primary-dim) transparent; }
/* WebKit (Chrome/Edge/Safari) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.22); border-radius: 6px; }
::-webkit-scrollbar-thumb {
    background: var(--accent-primary-dim);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* ================================================================
   BACKGROUND DE PARTIDA — casa / fora (v021)
   Pseudo-elemento fixo, z-index abaixo de tudo.
   JS seta body[data-bg="home|away-dusty|away-grass|away-urban"]
   ================================================================ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.4s ease;
    pointer-events: none;
}
body[data-bg]::before      { opacity: 1; }
body[data-bg="home"]::before       { background-image: url('../img/varzea_bg.png'); }
body[data-bg="away-dusty"]::before { background-image: url('../img/bg_away_dusty.png'); }
body[data-bg="away-grass"]::before { background-image: url('../img/bg_away_grass.png'); }
body[data-bg="away-urban"]::before { background-image: url('../img/bg_away_urban.png'); }

/* Painéis: semi-transparentes quando há imagem de fundo ativa */
body[data-bg] .panel {
    background-color: rgba(var(--panel-bg-rgb), 0.92);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
body[data-bg] .promo-panel-top,
body[data-bg] .footer-menu {
    background-color: rgba(var(--panel-bg-rgb), 0.88);
}

/* tema modern: monospace em tudo — sem override de fonte */

/* Desktop: sem scroll no body */
@media (min-width: 1024px) {
    html, body { height: 100vh; overflow: hidden; }
}

.text-green  { color: var(--accent-primary); }
.text-blue   { color: var(--accent-blue); }
.text-red    { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-soft   { color: var(--text-soft); }

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .blinking { animation: none !important; opacity: 1 !important; }
    .confetti-container { display: none !important; }
}

/* ================================================================
   GAME CONTAINER + MAIN GRID
   Mobile:   coluna única, bottom-nav fixa
   Tablet:   2 colunas
   Desktop:  3 colunas × 2 linhas (sem header)
   ================================================================ */

.game-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Desktop: container = altura total da viewport */
@media (min-width: 1024px) {
    .game-container {
        height: 100vh;
        padding: 10px;
        display: flex;
        flex-direction: column;
    }
}

/* MAIN GRID — mobile: coluna única (sem main-grid real) */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 8px;
    /* Espaço para o mobile-nav no rodapé */
    padding-bottom: calc(var(--mobile-nav-h) + 12px);
}

/* Tablet (720–1023px): 2 colunas — identity | clube+partida+loja */
@media (min-width: 720px) {
    .main-grid {
        grid-template-columns: 290px 1fr;
        grid-template-rows: 1fr auto;
        padding: 12px;
        padding-bottom: 12px;
    }
    .identity-panel  { grid-column: 1; grid-row: 1 / 3; }
    .promo-panel-top    { display: none; }
    .news-panel      { display: none; }
    .match-panel     { grid-column: 2; grid-row: 1; }
    .footer-menu     { display: none; }
    .shop-panel      { grid-column: 2; grid-row: 2; }
}

/* Desktop (≥1024px): 3 colunas × 3 linhas, tudo em 100vh */
@media (min-width: 1024px) {
    :root {
        --fs-xs: 0.78rem;
        --fs-sm: 0.9rem;
        --fs-base: 0.95rem;
        --fs-md: 1.15rem;
        --fs-lg: 1.4rem;
        --fs-xl: 1.8rem;
    }
    .main-grid {
        flex: 1;
        min-height: 0;
        /* Coluna direita fixa (maior); esquerda + central dividem o resto na proporção áurea */
        grid-template-columns: 1fr 1.618fr 360px;
        /* ads (90px) | notícias (32px) | partida (1fr) | menu de rodapé (40px) */
        grid-template-rows: 90px 32px 1fr 40px;
        gap: 10px;
        padding: 0;
        padding-bottom: 0;
    }
    /* Col 1: span todas as 4 linhas */
    .identity-panel { grid-column: 1; grid-row: 1 / 5; overflow: hidden; }
    /* Col 2: ad-top | notícias | partida (com serviço mesclado) | menu de rodapé */
    .promo-panel-top   { grid-column: 2; grid-row: 1; }
    .news-panel     { grid-column: 2; grid-row: 2; display: flex; }
    .match-panel    { grid-column: 2; grid-row: 3; overflow: hidden; }
    .footer-menu    { grid-column: 2; grid-row: 4; }
    /* Col 3: span todas as 4 linhas */
    .shop-panel     { grid-column: 3; grid-row: 1 / 5; overflow: hidden; }
    .mobile-nav     { display: none; }
    /* Feed preenche todo espaço vertical restante */
    .feed-container { max-height: none; flex: 1; min-height: 0; }
    /* Roster sem altura máxima, sem scrollbar visível */
    .roster-list    { max-height: none; scrollbar-width: none; }
    .roster-list::-webkit-scrollbar { display: none; }
    /* shop-tab-content como flex-column para shop-list crescer corretamente */
    .shop-tab-content.active {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
    /* Shop-list: scrollbar fina visível para indicar conteúdo rolável */
    .shop-list { flex: 1; max-height: none; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; }
    .shop-list::-webkit-scrollbar { width: 4px; }
    .shop-list::-webkit-scrollbar-track { background: transparent; }
    .shop-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
    /* Botão treinar: linha horizontal no desktop */
    .shop-panel .retro-btn {
        flex-shrink: 0;
        flex-direction: row;
        min-height: 44px;
        padding: 10px 14px;
        justify-content: center;
        gap: 8px;
    }
    .shop-panel .retro-btn .icon { font-size: var(--fs-base); }
}

/* ================================================================
   PANEL BASE
   ================================================================ */
.panel {
    background-color: var(--panel-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.panel h2 {
    color: var(--accent-blue);
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
    font-size: var(--fs-md);
    text-transform: uppercase;
}
[data-theme="modern"] .panel h2 { text-transform: none; }

/* ================================================================
   MATCH INFO BAR — serviço da partida mesclado ao box da transmissão
   ================================================================ */
.match-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 8px;
    margin-bottom: 8px;
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
}
.club-info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: var(--fs-xs);
    color: var(--text-soft);
    line-height: 1.4;
}
.club-info-row .lbl { opacity: 0.75; }
.club-info-row .sep { color: var(--border-color); margin: 0 2px; }

/* Match date box */
.match-date-box {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-xs);
    flex-shrink: 0;
}
.match-date-val {
    font-weight: bold;
    letter-spacing: 0.3px;
}

/* ================================================================
   IDENTITY PANEL — Coluna 1
   ================================================================ */
.identity-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    flex-shrink: 0;
    min-height: 40px;
}
/* Logo de bola — container fixo 40×40 (não rouba a proporção do título) */
.title-ball {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--text-soft);
    opacity: 0.78;
    display: flex;
    align-items: center;
    justify-content: center;
}
.title-ball svg,
.title-ball img { width: 40px; height: 40px; display: block; object-fit: contain; }
/* Ícone de apito inline no botão "APITA, SEU JUIZ!" */
.whistle-ic { width: 1.25em; height: 0.78em; vertical-align: -0.08em; margin-right: 3px; }
/* Wrapper do título: ocupa a largura restante; é ele que o fitTitle mede.
   Altura fixa = 40px (= a bola); empilha título + faixa em coluna. */
.game-title-wrap {
    flex: 1;
    min-width: 0;
    height: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}
/* Título do jogo — escalado por JS (fitTitle) para preencher a largura restante.
   scaleY com stretch reduzido p/ abrir espaço à faixa abaixo. */
.game-title-line {
    font-size: 1.6rem;          /* fallback; JS recalcula para preencher a largura */
    line-height: 0.9;
    color: var(--text-soft);
    letter-spacing: 0;
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap;
    display: block;
    opacity: 0.7;
    transform: scaleY(1.08);
    transform-origin: center;
}
/* Linha do domínio: barrinha amarela à esquerda (preenche até o texto) + FUTI.COM.BR amarelo à direita */
.title-stripe {
    flex: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}
/* Barra amarela canarinho — cresce p/ preencher do início até onde começa o domínio */
.title-bar {
    flex: 1;
    min-width: 0;
    height: 9px;
    background: #FFDF00;
    border-radius: 2px;
}
/* Domínio em amarelo (mesma cor da barra), Impact, à direita */
.title-domain {
    flex-shrink: 0;
    color: #FFDF00;
    font-family: Impact, 'Haettenschweiler', 'Arial Narrow Bold', 'Franklin Gothic Bold', sans-serif;
    font-size: 14px;
    line-height: 12px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
/* game-title-line: monospace em todos os temas */
/* v013: nome do clube + Escritório na mesma linha */
.club-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;          /* v019: agora dentro do box do esquema (flex column centrado) */
    margin-bottom: 0;
    flex-shrink: 0;
}
/* Nome do clube */
.club-name {
    font-size: var(--fs-md);
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* club-name: monospace em todos os temas */

.identity-tools {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
    align-items: center;
}

/* Info de temporada — uma linha compacta */
.identity-info {
    font-size: var(--fs-xs);
    color: var(--text-soft);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 8px;
    flex-shrink: 0;
    line-height: 1.4;
}
.identity-info .sep { color: var(--border-color); margin: 0 1px; }
.identity-info .lbl { opacity: 0.7; }

/* ================================================================
   PANEL KPI — Fôlego (col1) e Reais (col3)
   ================================================================ */
.panel-kpi {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 5px 10px;
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 8px;
    flex-shrink: 0;
}
.panel-kpi-label {
    font-size: var(--fs-xs);
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.panel-kpi-value {
    font-size: var(--fs-md);
    font-weight: bold;
}

/* SECTION LABEL */
.section-label {
    font-size: var(--fs-xs);
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    margin-top: 2px;
    opacity: 0.8;
    flex-shrink: 0;
}

#btn-escritorio {
    padding: 5px 8px;
    min-height: 28px;
    font-size: 0.66rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* v013: MOTIVAR TIME — botão + barra (dentro da box do esquema tático) */
.motivate-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border-color);
    flex-shrink: 0;
}
.motivate-btn {
    width: 100%;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--bg-dark);
    background: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    user-select: none;
    transition: filter 0.12s, transform 0.05s;
}
.motivate-btn:hover:not(:disabled) { filter: brightness(1.12); }
.motivate-btn:active:not(:disabled) { transform: scale(0.97); }
/* Esmaecido quando a bola não está rolando (intervalo / entre partidas) */
.motivate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.5);
}
.motivate-area.disabled .motivate-bar { opacity: 0.4; }
.motivate-btn .motivate-key {
    font-size: 0.7rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0 4px;
    opacity: 0.8;
}
.motivate-btn.pulse { animation: motivate-pulse 0.25s ease-out; }
/* v015: badge da tecla de atalho no botão de juntar grana */
.train-key {
    font-size: 0.62rem;
    font-weight: bold;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0 5px;
    margin-left: 8px;
    opacity: 0.7;
}
/* v015: indicador A/D nas cartas de opção (dilema + jogada tática) */
#btn-opt1::before, #tp-opt1::before { content: "(A) "; font-weight: bold; opacity: 0.7; }
#btn-opt2::before, #tp-opt2::before { content: "(D) "; font-weight: bold; opacity: 0.7; }
@keyframes motivate-pulse {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,157,0,0.6); }
    50%  { transform: scale(1.03); box-shadow: 0 0 10px 3px rgba(255,157,0,0.5); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,157,0,0); }
}
.motivate-bar {
    width: 100%;
    height: 9px;
    background: rgba(0,0,0,0.30);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}
.motivate-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-primary);
    border-radius: 5px 0 0 5px;
    /* v014: cor muda conforme o esforço (setada via JS) — transição suave */
    transition: width 0.12s linear, background-color 0.3s ease, background 0.3s ease;
}

/* v014: número do Fôlego turbinado pela Motivação — brilha em laranja */
#team-power.folego-boost {
    color: var(--accent-orange) !important;
    text-shadow: 0 0 8px var(--accent-orange);
    transition: color 0.2s, text-shadow 0.2s;
}

/* ================================================================
   SHOP HEADER — Col 3 topo: login premium + ferramentas de config
   ================================================================ */
.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 6px;
    border-bottom: 1px dashed var(--border-color);
    flex-shrink: 0;
}
.login-area {
    flex: 1;
    min-width: 0;
}

/* v031: os cards de compra são <div role="button"> — clicar (ou segurar Enter/Espaço)
   selecionava o texto do card, sujando a tela. Como o card inteiro É o botão, nada
   dentro dele precisa ser selecionável. Não afeta texto de leitura fora dos cards. */
.upgrade-item, .upgrade-item * {
    -webkit-user-select: none;
    user-select: none;
}

/* ---- Briefing do olheiro (v031): listas do modal de início de temporada ---- */
.briefing-list { margin: 6px 0 10px; padding-left: 18px; }
.briefing-list li { margin-bottom: 4px; line-height: 1.45; }

/* ---- CTA do GUEST (v031): convite contínuo pra criar conta ----------------
   Antes, o único convite era o gate no fim da 1ª temporada. Visibilidade é
   só CSS: o <a> existe sempre no HTML e aparece apenas com data-tier="guest"
   (injetado pelo router). Pulsa de leve — no Futi, piscar = ação disponível. */
.guest-cta { display: none; }
[data-tier="guest"] .guest-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 10px;
    min-height: 30px;            /* casa com a altura do #btn-help / #btn-audio ao lado */
    box-sizing: border-box;
    border: 1px solid var(--accent-primary);
    border-radius: 4px;
    background: transparent;
    color: var(--accent-primary);
    font-family: inherit;
    font-size: var(--fs-xs);
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    animation: guestCtaPulse 2.4s ease-in-out infinite;
}
[data-tier="guest"] .guest-cta:hover,
[data-tier="guest"] .guest-cta:focus-visible {
    background: var(--accent-primary);
    color: var(--bg-dark);
    animation: none;
}
.guest-cta-free { font-weight: normal; opacity: .85; }
@keyframes guestCtaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
    50%      { box-shadow: 0 0 8px 0 var(--accent-primary); }
}
/* Tela estreita: encurta pra caber ao lado do ? e do 🔊 sem empurrar nada. */
@media (max-width: 420px) {
    [data-tier="guest"] .guest-cta { padding: 5px 8px; }
    .guest-cta-free { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    [data-tier="guest"] .guest-cta { animation: none; }
}
.login-input {
    width: 100%;
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-soft);
    font-family: inherit;
    font-size: var(--fs-xs);
    padding: 5px 8px;
    outline: none;
    transition: border-color 0.15s, color 0.15s;
}
.login-input::placeholder { color: var(--text-soft); opacity: 0.6; }
.login-input:focus {
    border-color: var(--accent-blue);
    color: var(--text-main);
}
.shop-tools {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

/* ================================================================
   AD PANEL TOPO — banner de anúncios da coluna central
   ================================================================ */
.promo-panel-top {
    display: flex;
    align-items: stretch;
}
.promo-panel-top .promo-slot {
    flex: 1;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    background: var(--panel-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.4;
}

/* ================================================================
   NEWS PANEL — placar retrô de "breaking news da várzea"
   (box próprio, logo abaixo do banner de ads)
   ================================================================ */
.news-panel {
    /* display controlado por media query (none em tablet/mobile, flex no desktop) */
    align-items: stretch;
}

/* Placar retrô — caixa principal */
.news-board {
    width: 100%;
    height: 100%;
    background: #0a0a06;
    /* Off-dots sutis: grade de pontos "apagados" SÓ no fundo (não sobre o texto) */
    background-image: radial-gradient(circle at center, rgba(120,108,0,0.10) 0.5px, transparent 0.6px);
    background-size: 5px 5px;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
}

/* Trilha de rolagem */
.news-ticker-track {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer; /* vai virar link p/ notícia completa */
}
/* Hover: pausa (via JS) + realce p/ indicar que é clicável */
.news-ticker-track.news-hover .news-ticker-text {
    color: #ffe08a;
    text-shadow:
        0 0 6px rgba(255,200,60,0.95),
        0 0 14px rgba(255,150,0,0.55);
}

/* Runner — elemento que se move */
.news-ticker-runner {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    z-index: 2;
}

/* Texto do ticker — LED âmbar sólido e legível.
   font-size é definido por JS (escala com a altura do banner). */
.news-ticker-text {
    white-space: nowrap;
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 15px; /* fallback; sobrescrito por news.js */
    font-weight: 400;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffcb3d;
    text-shadow:
        0 0 5px rgba(255,176,0,0.85),
        0 0 12px rgba(255,140,0,0.40);
    user-select: none;
    padding: 0 14px;
}
/* Selo PUBLI — anúncio patrocinado dentro do ticker de notícias */
.news-ticker-text .news-publi {
    display: inline-block;
    background: #f0a800;
    color: #1a1206;
    font-weight: 700;
    font-size: 0.78em;
    letter-spacing: 1px;
    padding: 0 5px;
    margin-right: 7px;
    border-radius: 3px;
    vertical-align: middle;
    text-shadow: none;
}
.news-ticker-text .news-ad   { color: #ffd98a; }   /* anúncio: tom levemente distinto */
.news-ticker-text .news-sep  { margin: 0 16px; opacity: 0.5; }

/* ================================================================
   FOOTER MENU — menu de rodapé da coluna central (era ad-bottom)
   ================================================================ */
.footer-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 3px;
    padding: 0 6px;
    background-color: var(--panel-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: var(--fs-xs);
    overflow: hidden;
}
.footer-link {
    background: none;
    border: none;
    color: var(--text-soft);
    font-family: inherit;
    font-size: var(--fs-xs);
    cursor: pointer;
    text-decoration: none;
    padding: 2px 2px;
    transition: color 0.15s;
    white-space: nowrap;
}
.footer-link:hover { color: var(--accent-primary); }
.footer-sep { color: var(--border-color); user-select: none; }
.footer-version {
    color: var(--text-soft);
    opacity: 0.7;
    white-space: nowrap;
    font-size: 0.68rem;
    letter-spacing: 0.2px;
    /* Coluna estreita: encolhe com reticências em vez de cortar seco (overflow do menu) */
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botão de versão no rodapé: herda o visual do .footer-version, mantém cursor de link */
button.footer-version { cursor: pointer; }
button.footer-version:hover { color: var(--accent-primary); opacity: 1; }

/* ================================================================
   MODAIS DO RODAPÉ — Sobre o jogo + Versão/Patch notes
   ================================================================ */
.sobre-body .sobre-espirito {
    border: 1px dashed var(--accent-primary-dim);
    border-radius: 6px;
    padding: 10px 12px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.sobre-features {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.sobre-features li {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.88rem;
}

.sobre-nota,
.modal-intro {
    color: var(--text-soft);
    font-size: 0.82rem;
    margin-bottom: 12px;
}

.versao-ficha {
    border: 1px dashed var(--accent-yellow);
    border-radius: 6px;
    padding: 10px 12px;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.88rem;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.changelog-item {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.changelog-item .ver {
    color: var(--accent-yellow);
    margin-right: 6px;
    white-space: nowrap;
}

/* Modal Apoie-nos: botão de compartilhar em bloco */
.apoie-share-btn {
    display: block;
    width: 100%;
    margin: 4px 0 12px;
    padding: 10px;
}

/* Modal Contato: form compacto dentro do modal */
.ct-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden; opacity: 0;
    pointer-events: none;
}

.ct-label {
    display: block;
    color: var(--text-soft);
    font-size: 0.78rem;
    margin: 10px 0 4px;
}

.ct-input {
    width: 100%;
    box-sizing: border-box;
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    padding: 8px 10px;
    font-family: var(--font-stack);
    font-size: 0.85rem;
}

.ct-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

select.ct-input { cursor: pointer; }
textarea.ct-input { resize: vertical; min-height: 90px; }

.ct-submit {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px;
}

.ct-error {
    color: var(--accent-red);
    font-size: 0.8rem;
    margin: 10px 0 0;
}

.ct-success { text-align: center; padding: 10px 0; }
.ct-success-title { color: var(--accent-primary); font-size: 1rem; margin-bottom: 6px; }

/* ================================================================
   ECONOMIA 2.0 — Estádio & Receitas (aba Clube do Escritório)
   ================================================================ */
.estadio-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.estadio-atual {
    border: 1px dashed var(--accent-primary-dim);
    border-radius: 6px;
    padding: 10px 12px;
}

.estadio-nome {
    color: var(--text-main);
    font-weight: bold;
    font-size: 0.92rem;
}

.estadio-cap {
    color: var(--accent-yellow);
    font-weight: normal;
    font-size: 0.8rem;
}

.estadio-desc {
    color: var(--text-soft);
    font-size: 0.8rem;
    margin: 4px 0 0;
    line-height: 1.4;
}

.eco-resumo {
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
}

.eco-linha {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    padding: 3px 0;
    color: var(--text-soft);
}

.eco-linha .text-green { color: var(--accent-primary); }
.eco-linha .text-red   { color: var(--accent-red); }

.eco-saldo {
    border-top: 1px dashed var(--border-color);
    margin-top: 4px;
    padding-top: 6px;
    color: var(--text-main);
    font-weight: bold;
}

/* ================================================================
   SIMULAR — botão de pular pro apito final (junto da velocidade).
   Visual de .speed-btn replicado SEM a classe (que ligaria o setSpeed).
   ================================================================ */
.btn-simular {
    background-color: transparent;
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
    padding: 5px 9px;
    font-family: inherit;
    font-size: var(--fs-xs);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    min-height: 30px;
}

.btn-simular:not(:disabled):hover {
    background-color: var(--accent-yellow);
    color: var(--bg-dark);
}

.btn-simular:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ================================================================
   ANTI AUTO-CLICKER — botão em "cãibra" (limite de cliques estourado)
   ================================================================ */
.caibra {
    filter: grayscale(0.8) brightness(0.7);
    cursor: not-allowed !important;
    animation: caibra-shake 0.4s ease;
}

@keyframes caibra-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-4px); }
    50%      { transform: translateX(4px); }
    75%      { transform: translateX(-2px); }
}

/* Mobile: ad topo, notícias e menu de rodapé ocultos (usa bottom-nav) */
@media (max-width: 719px) {
    .promo-panel-top, .news-panel, .footer-menu { display: none !important; }
}

/* ================================================================
   TOOLBAR ICONS (ferramentas — agora no shop-header)
   ================================================================ */
.retro-btn-icon {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    width: 30px; height: 30px;
    font-family: inherit;
    font-size: var(--fs-sm);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-symbol { line-height: 1; font-size: 0.85rem; }
.retro-btn-icon:hover { background: var(--accent-primary-dim); color: var(--bg-dark); }
.retro-btn-icon:active { transform: scale(0.95); }
.retro-btn-icon[data-on="true"] { background: var(--accent-primary-dim); color: var(--bg-dark); }

/* ================================================================
   SCHEMA PICKER
   ================================================================ */
.schema-picker {
    padding: 6px 5px 5px;
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 0;
}
/* Label "Esquema Tático" dentro da box, sem margens próprias */
.schema-picker .schema-label {
    margin: 0;
    text-align: center;
}
/* Linha dos três botões de esquema */
.schema-btns {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
}
.schema-btn {
    background-color: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border-color);
    padding: 4px 6px;
    font-family: inherit;
    font-size: var(--fs-xs);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    min-height: 28px;
    font-weight: bold;
    letter-spacing: 0.5px;
    flex: 1;
    max-width: 80px;
}
.schema-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.schema-btn.active {
    background-color: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
}

/* ================================================================
   ESCALAÇÃO / ROSTER (col1 — preenche espaço restante)
   ================================================================ */
.lineup-section {
    margin-top: 10px;
    width: 100%;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100px;
    overflow: hidden;
}
.lineup-title {
    font-size: var(--fs-sm);
    color: var(--accent-primary);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
}
.lineup-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.lineup-actions .retro-btn-small {
    padding: 3px 8px;
    min-height: 26px;
    font-size: 0.65rem;
}
.roster-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 80px;
}
.roster-group-title {
    font-size: 0.7rem;
    font-weight: bold;
    margin-top: 4px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 1px;
}
.roster-item {
    display: flex;
    align-items: center;
    gap: 3px;
    background-color: rgba(255,255,255,0.02);
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.1s;
    min-height: 26px;
}
.roster-item:hover { background-color: rgba(255,255,255,0.05); }
.roster-item.selected { border-color: var(--accent-blue); background-color: rgba(0,229,255,0.1); }
.roster-item.injured  { border-color: var(--accent-red); color: var(--accent-red); }
.roster-item.bench    { opacity: 0.78; }

/* Badge de número */
.p-number {
    background: var(--panel-bg-soft);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
    min-width: 23px;
    text-align: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}
.p-name  { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 0.66rem; }
/* v012: badge de posição preferencial (1 caractere: G/Z/M/A) */
.p-pos {
    flex-shrink: 0;
    min-width: 20px;
    text-align: center;
    font-size: 0.66rem;
    font-weight: bold;
    padding: 2px 3px;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: rgba(255,255,255,0.04);
}
.p-pos.out-of-pos { animation: blink-pos 1.4s ease-in-out infinite; }
@keyframes blink-pos { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
/* v030: pisca de ATENÇÃO no status (🚑 lesionado / 🟥 expulso) — vale no banco também.
   Mesmo ritmo do out-of-pos: pisca = "esse jogador requer ação sua". */
.p-status.attn { animation: blink-pos 1.4s ease-in-out infinite; }
/* Tag de posição nas tabelas (Olheiro/Elenco) */
.pos-tag {
    display: inline-block;
    min-width: 18px;
    text-align: center;
    font-size: 0.66rem;
    font-weight: bold;
    padding: 1px 3px;
    border: 1px solid currentColor;
    border-radius: 3px;
}
/* Linha de posição no card de hover */
.player-card-tip .pc-posline { margin-top: 4px; font-size: var(--fs-xs); color: var(--text-main); }
.player-card-tip .pc-pos {
    display: inline-block;
    font-weight: bold;
    font-size: 0.62rem;
    padding: 1px 4px;
    border: 1px solid currentColor;
    border-radius: 3px;
    margin-right: 2px;
}
.p-status {
    flex-shrink: 0;
    font-size: 0.72rem;
    line-height: 1;
    margin-right: 1px;
}
/* Estrela do craque no roster — compacta p/ não comer o espaço do nome */
.p-star {
    flex-shrink: 0;
    font-size: 0.62rem;
    line-height: 1;
    margin-right: 2px;
}
.p-goals { font-size: 0.65rem; color: var(--accent-yellow); margin-left: 4px; flex-shrink: 0; }
/* v017: badge de overall no roster */
.p-ovr {
    flex-shrink: 0;
    min-width: 22px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: bold;
    color: var(--accent-blue);
    background: rgba(0,229,255,0.10);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 1px 3px;
    margin-left: 2px;
}
.p-stam  { width: 26px; height: 7px; background-color: rgba(0,0,0,0.4); border-radius: 4px; overflow: hidden; margin-left: 2px; flex-shrink: 0; transition: box-shadow 0.2s; }
.stam-bar { height: 100%; transition: width 0.18s ease, background 0.3s, background-color 0.3s; }
/* v014: barra de pique turbinada pela Motivação — leve brilho */
.roster-item.stam-boosted .p-stam { box-shadow: 0 0 6px rgba(255,255,255,0.55); }
.heal-btn {
    background: var(--accent-red); color: #fff;
    border: none; border-radius: 3px;
    padding: 3px 6px; font-size: 0.7rem;
    cursor: pointer; margin-left: 4px;
    font-family: inherit;
    min-height: 26px;
    flex-shrink: 0;
}

/* ================================================================
   MATCH PANEL (col2 row1)
   ================================================================ */
.match-panel { min-height: 300px; }

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
/* Título + botão de narração lado a lado */
.match-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Botão de narração ao vivo (TTS) */
.narration-btn {
    position: relative;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-soft);
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.narration-btn .narration-icon { font-size: 0.9rem; line-height: 1; }
.narration-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
/* Estado ativo — pulsa para indicar transmissão de áudio ao vivo */
.narration-btn.active {
    border-color: var(--accent-red);
    background: rgba(255,51,102,0.12);
    animation: narration-pulse 1.4s ease-in-out infinite;
}
@keyframes narration-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,51,102,0.4); }
    50%      { box-shadow: 0 0 0 5px rgba(255,51,102,0); }
}
/* "ondinha" de áudio ao vivo no canto do botão quando ativo */
.narration-wave {
    display: none;
    position: absolute;
    top: -3px; right: -3px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-red);
}
.narration-btn.active .narration-wave {
    display: block;
    animation: narration-blink 1s steps(2, start) infinite;
}
@keyframes narration-blink { 50% { opacity: 0.2; } }
.match-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    padding: 7px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}
.speed-controls { display: flex; align-items: center; gap: 4px; }
.lbl-speed { font-size: var(--fs-xs); color: var(--text-soft); margin-right: 4px; }
.speed-btn {
    background-color: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border-color);
    padding: 5px 9px;
    font-family: inherit;
    font-size: var(--fs-xs);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    min-height: 30px;
}
.speed-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.speed-btn.active {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
    border-color: var(--accent-blue);
    font-weight: bold;
}

.blinking { animation: blinker 1.5s linear infinite; }
@keyframes blinker { 50% { opacity: 0.3; } }
#match-status { color: var(--accent-primary); font-size: var(--fs-sm); }

.scoreboard {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 12px 10px;
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: var(--fs-md);
    flex-shrink: 0;
}
.sb-team {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    gap: 2px;
}
/* CASA (padrão): Biro-Biro à esquerda, adversário à direita.
   Ambos os nomes "abraçam" o placar central:
   bloco da esquerda alinha à direita, bloco da direita alinha à esquerda. */
.sb-us  { order: 1; align-items: flex-end;   text-align: right; }
.sb-opp { order: 3; align-items: flex-start; text-align: left;  }
.sb-scores { order: 2; display: flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 0 4px; }

/* CASA (padrão): gols do Biro-Biro (score-home) à esquerda, adversário (score-away) à direita */
.sb-scores #score-home    { order: 1; }
.sb-scores .score-divider { order: 2; }
.sb-scores #score-away    { order: 3; }

/* FORA: inverter posições — Biro-Biro à direita, adversário à esquerda */
#scoreboard[data-location="away"] .sb-us  { order: 3; align-items: flex-start; text-align: left;  }
#scoreboard[data-location="away"] .sb-opp { order: 1; align-items: flex-end;   text-align: right; }
/* FORA: o placar também troca — gols do Biro-Biro vão pra direita, do adversário pra esquerda */
#scoreboard[data-location="away"] #score-home { order: 3; }
#scoreboard[data-location="away"] #score-away { order: 1; }

.team-name {
    font-size: var(--fs-md);
    font-weight: bold;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--text-main);
}
.sb-folego { font-size: 0.7rem; color: var(--text-soft); white-space: nowrap; letter-spacing: 0.5px; }
.sb-folego span { font-weight: bold; }
.sb-location {
    font-size: 0.6rem;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 2px;
}
.sb-location.home { background: rgba(0,255,102,0.15); color: var(--accent-primary); border: 1px solid var(--accent-primary); }
.sb-location.away { background: rgba(255,157,0,0.15); color: var(--accent-orange); border: 1px solid var(--accent-orange); }
.score { color: var(--accent-primary); font-weight: bold; font-size: 2.2rem; }
.scoreboard.scored-home .score { animation: pulse-green 0.6s ease; }
.scoreboard.scored-away .score { animation: pulse-red 0.6s ease; }

@keyframes pulse-green {
    0%, 100% { transform: scale(1); color: var(--accent-primary); }
    40% { transform: scale(1.6); color: #fff; }
}
@keyframes pulse-red {
    0%, 100% { transform: scale(1); color: var(--accent-primary); }
    40% { transform: scale(1.6); color: var(--accent-red); }
}

/* ================================================================
   MATCH STEPS — indicador de etapas do ritual de pré-jogo (P2)
   Faixa fixa no topo do feed (não rola com as mensagens).
   ================================================================ */
/* v020: uma LINHA só (não cabe tudo) — rola horizontalmente p/ seguir a etapa ativa */
.match-steps {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 5px 8px;
    margin-bottom: 6px;
    background-color: rgba(0,0,0,0.30);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;       /* Firefox: esconde a barra */
    position: relative;
    scroll-behavior: smooth;
}
.match-steps::-webkit-scrollbar { display: none; }  /* WebKit: esconde a barra */
.match-steps .step {
    color: var(--text-soft);
    opacity: 0.45;
    padding: 1px 6px;
    border-radius: 3px;
    transition: color 0.2s, background-color 0.2s, opacity 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Etapa já concluída: discreta mas "acesa" */
.match-steps .step.done {
    color: var(--accent-primary);
    opacity: 0.7;
}
.match-steps .step.done::before {
    content: '✓ ';
}
/* Etapa atual: destacada com pílula */
.match-steps .step.active {
    color: var(--bg-dark);
    background-color: var(--accent-primary);
    opacity: 1;
    font-weight: 700;
}
.match-steps .step-sep {
    color: var(--border-color);
    opacity: 0.6;
    flex-shrink: 0;
}

.feed-container {
    flex: 1;
    min-height: 0;
    background-color: rgba(0,0,0,0.25);
    border: 1px solid var(--border-color);
    padding: 10px;
    overflow-y: auto;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 320px;
}
/* Desktop: feed ocupa todo o espaço vertical restante */
@media (min-width: 1024px) {
    .feed-container { max-height: none; }
}
.feed-msg {
    font-size: var(--fs-sm);
    padding-bottom: 4px;
    border-bottom: 1px dotted var(--border-color);
    animation: slideInTop 0.3s ease-out forwards;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.feed-msg .minute { min-width: 40px; color: var(--accent-blue); font-weight: bold; flex-shrink: 0; }
.feed-msg .text   { flex: 1; word-break: break-word; }

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

.feed-msg.system  { color: var(--text-soft); }
.feed-msg.goal {
    color: var(--accent-primary);
    font-weight: bold;
    font-size: var(--fs-base);
    padding: 7px 8px 7px 10px;
    border-left: 3px solid var(--accent-primary);
    background: rgba(0,255,102,0.05);
    border-radius: 0 4px 4px 0;
    margin: 2px 0;
}
.feed-msg.yellow  { color: var(--accent-yellow); }
.feed-msg.red, .feed-msg.danger { color: var(--accent-red); }
.feed-msg.news {
    color: var(--accent-orange);
    font-style: italic;
    border-left: 3px solid var(--accent-orange);
    padding-left: 8px;
}

/* v024 (Sprint 2): feed como HUB — manchete contextual + notícia/PUBLI clicável */
.feed-msg.varzea {
    color: var(--accent-yellow);
    font-style: italic;
    border-left: 3px solid var(--accent-yellow);
    padding-left: 8px;
}
.feed-msg.publi { color: #ffd98a; }
.feed-publi {
    display: inline-block;
    background: #f0a800;
    color: #1a1206;
    font-weight: 700;
    font-size: 0.72em;
    letter-spacing: 1px;
    padding: 0 5px;
    margin-right: 6px;
    border-radius: 3px;
    vertical-align: middle;
    text-shadow: none;
}
.news-link { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.news-link:hover { filter: brightness(1.25); }
.maint-link { cursor: pointer; color: var(--accent-yellow); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.maint-link:hover { filter: brightness(1.2); }
.maint-link:focus-visible { outline: 2px solid var(--accent-yellow); outline-offset: 2px; }
.scout-link { cursor: pointer; color: var(--accent-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.scout-link:hover { filter: brightness(1.2); }
.scout-link:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }

/* v024: barra de "avançar temporada" acima do feed (modo revisão de fim de temporada) */
.season-advance-bar {
    display: block;
    width: 100%;
    margin: 0 0 8px;
    padding: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: var(--fs-md);
    color: #0a0f0d;
    background: var(--accent-yellow);
    border: 2px solid var(--accent-primary);
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.5px;
    animation: pulse-green 1.2s ease-in-out infinite;
}
.season-advance-bar:hover { filter: brightness(1.1); }

/* v025: Sala de Troféus (trajetória do clube) na aba Clube do Escritório */
.club-history { margin-bottom: 12px; padding: 10px; border: 1px solid var(--border-color); border-radius: 6px; background: rgba(0,0,0,0.12); }
.club-history-title { font-size: var(--fs-sm); color: var(--accent-yellow); margin: 0 0 6px; }
.club-history-sub { font-size: var(--fs-xs); color: var(--accent-primary); margin: 0 0 6px; }
.club-history-list { list-style: none; margin: 0; padding: 0; max-height: 180px; overflow-y: auto; }
.club-history-list li { font-size: var(--fs-xs); padding: 3px 0; border-bottom: 1px dashed var(--border-color); color: var(--text-main); }

/* ================================================================
   AD PANEL (col2 row2)
   ================================================================ */
.promo-panel {
    display: flex;
    align-items: stretch;
}
.promo-slot {
    flex: 1;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    background: var(--panel-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: var(--fs-xs);
    opacity: 0.5;
    min-height: 50px;
}

/* ================================================================
   SHOP PANEL (col3) — Economia + Upgrades
   ================================================================ */
.shop-panel { min-height: 220px; }

.retro-btn {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 12px;
    font-family: inherit;
    font-size: var(--fs-base);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s, color 0.1s;
    width: 100%;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.retro-btn .icon { font-size: 1.5rem; }
.retro-btn:hover { background-color: var(--accent-primary-dim); color: var(--bg-dark); }
.retro-btn:active { transform: scale(0.96); }

/* v013: rótulo rotativo do botão de juntar grana */
.btn-train-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
#btn-train .icon.swap, #btn-train .btn-train-label.swap { animation: sell-swap 0.35s ease-out; }
@keyframes sell-swap {
    0%   { opacity: 0; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.retro-btn-small {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 8px 12px;
    font-family: inherit;
    font-size: var(--fs-sm);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s, color 0.1s;
    min-height: 36px;
}
.retro-btn-small:hover { background-color: var(--accent-primary-dim); color: var(--bg-dark); }
.retro-btn-small:active { transform: scale(0.96); }
.retro-btn-small:disabled {
    opacity: 0.4; cursor: not-allowed;
    border-color: var(--border-color); color: var(--border-color);
}

.click-stats-inline {
    margin-top: 8px;
    width: 100%;
    font-size: var(--fs-xs);
    color: var(--text-soft);
    text-align: center;
    flex-shrink: 0;
}
.click-stats-inline span { color: var(--accent-primary); font-weight: bold; }

/* Shop tabs */
.shop-tabs {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    flex-shrink: 0;
}
.shop-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-soft);
    font-family: inherit;
    font-size: var(--fs-xs);
    padding: 5px 10px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: all 0.15s;
}
.shop-tab:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.shop-tab.active {
    background: var(--accent-primary);
    color: var(--bg-dark);
    border-color: var(--accent-primary);
    font-weight: bold;
}
.shop-tab-content { display: none; }
.shop-tab-content.active { display: block; }
/* Desktop: override AQUI (após base) — flex para shop-list crescer via flex:1 */
@media (min-width: 1024px) {
    .shop-tab-content.active {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 480px;
    padding-right: 4px;
    padding-top: 6px;
}
/* Desktop: override AQUI (após base) — max-height: none para lista crescer via flex:1 */
@media (min-width: 1024px) {
    .shop-list { max-height: none; flex: 1; }
}
.upgrade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    gap: 8px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.upgrade-item:hover:not(.disabled) {
    border-color: var(--accent-blue);
    background-color: rgba(0,229,255,0.06);
}
.upgrade-item.disabled { opacity: 0.5; cursor: not-allowed; }
.upgrade-item.tier-2   { border-left: 3px solid var(--accent-blue); }
.upgrade-item.tier-3   { border-left: 3px solid var(--accent-yellow); }
.upgrade-item.maxed    { opacity: 0.55; cursor: default; pointer-events: none; border-left-color: var(--accent-primary); }
.upgrade-item.maxed .price { color: var(--accent-primary); }
.upgrade-item.maxed .price::before { content: '✓ '; }

.up-info h3 { font-size: var(--fs-sm); color: var(--text-main); margin-bottom: 2px; }
.up-info p  { font-size: var(--fs-xs); color: var(--text-soft); }
.up-cost {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: var(--fs-xs);
    flex-shrink: 0;
}
.up-cost .price { color: var(--accent-primary); font-weight: bold; font-size: var(--fs-sm); }
.up-cost .owned { font-size: 0.7rem; color: var(--text-soft); margin-top: 2px; }

/* ================================================================
   BOTÕES — primário / destrutivo
   ================================================================ */
.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-dark);
    font-weight: bold;
    border-color: var(--accent-primary);
}
.btn-primary:hover { background: var(--accent-primary-dim); color: var(--bg-dark); border-color: var(--accent-primary-dim); }
.btn-destructive { color: var(--accent-red); border-color: var(--accent-red); }
.btn-destructive:hover { background: rgba(255,51,102,0.15); color: var(--accent-red); }

/* ================================================================
   JOGADA TÁTICA AO VIVO
   ================================================================ */
.tactical-play-panel {
    margin-bottom: 8px;
    border: 2px solid var(--accent-yellow);
    border-radius: 6px;
    padding: 9px 11px;
    background-color: rgba(255,235,59,0.05);
    box-shadow: 0 0 14px rgba(255,235,59,0.2);
    animation: tp-appear 0.35s ease-out forwards;
    flex-shrink: 0;
}
@keyframes tp-appear {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tactical-play-panel[hidden] { display: none; }
.tp-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.tp-icon   { font-size: 1rem; }
.tp-title  { color: var(--accent-yellow); font-weight: bold; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 1px; animation: blinker 0.8s linear infinite; }
.tp-text   { font-size: var(--fs-sm); color: var(--text-main); margin-bottom: 7px; line-height: 1.5; }
.tp-bar-container { width: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; margin-bottom: 7px; }
.tp-bar-fill  { height: 100%; width: 100%; background: var(--accent-primary); border-radius: 3px; transition: background-color 0.5s; }
.tp-bar-fill.danger { background: var(--accent-red); }
.tp-options   { display: flex; gap: 8px; }
.tp-btn { flex: 1; font-size: var(--fs-xs); padding: 6px 5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@keyframes tp-disappear {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
}
.tactical-play-panel.tp-closing { animation: tp-disappear 0.3s ease-in forwards; pointer-events: none; }

/* ================================================================
   MOBILE NAV — bottom tab bar
   Base: hidden (desktop-first). Visível apenas em < 720px.
   ================================================================ */
.mobile-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--mobile-nav-h);
    background: var(--panel-bg);
    border-top: 2px solid var(--border-color);
    display: none;   /* oculto por padrão; media query mobile ativa */
    z-index: 500;
}
.mobile-nav-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-soft);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 6px;
}
.mobile-nav-btn.active { color: var(--accent-primary); background: rgba(0,255,102,0.05); }
[data-theme="amber"]  .mobile-nav-btn.active { background: rgba(255,176,0,0.08); }
[data-theme="modern"] .mobile-nav-btn.active { background: rgba(96,165,250,0.10); }
.mobile-nav-btn:hover { color: var(--accent-primary); }
.mnav-icon  { font-size: 1.2rem; line-height: 1; }
.mnav-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Modal "Sobre & mais" (mobile) — acesso aos itens do footer-menu em <720px */
.info-mobile-content { max-width: 420px; }
.info-menu { display: flex; flex-direction: column; gap: 8px; }
.info-menu-item {
    display: block; width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: var(--fs-base);
    text-align: left; text-decoration: none;
    padding: 12px 14px;
    min-height: 44px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.info-menu-item:hover, .info-menu-item:focus-visible { border-color: var(--accent-primary); color: var(--accent-primary); }

/* Mobile: mobile-nav visível; painéis ocultos até JS ativar .panel-active */
@media (max-width: 719px) {
    .mobile-nav { display: flex; }

    /* Carrossel: as 3 colunas lado a lado, deslizáveis (swipe) com snap.
       A bottom-nav rola até o painel e sincroniza ao deslizar (initMobileNav). */
    .main-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0;
        padding-bottom: 0;
        height: calc(100vh - var(--mobile-nav-h));
        height: calc(100dvh - var(--mobile-nav-h));
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .main-grid::-webkit-scrollbar { display: none; }
    .identity-panel, .match-panel, .shop-panel {
        display: flex;
        flex-direction: column;
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        height: 100%;
        overflow-y: auto;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .promo-panel { display: none !important; }
    .retro-btn-small { min-height: 44px; padding: 10px 16px; }
    .heal-btn { min-height: 32px; }
    .scoreboard { font-size: var(--fs-sm); }
    .score { font-size: var(--fs-lg); }
    .team-name { font-size: var(--fs-xs); }
    .speed-btn, .schema-btn { padding: 6px 8px; min-width: 36px; }
    .league-row {
        grid-template-columns: 26px 1fr 36px 28px 28px 28px 28px 36px;
        font-size: 0.65rem;
        padding: 5px 6px;
        gap: 2px;
    }
}

/* ================================================================
   MODAIS
   ================================================================ */
.modal {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    padding: 12px;
}
.modal[hidden] { display: none; }
.modal-content {
    background-color: var(--panel-bg);
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    width: 100%;
    max-width: 720px;
    max-height: 95vh;
    overflow-y: auto;
    padding: 14px 16px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 12px; margin-bottom: 12px;
}
.modal-body h3 {
    margin-top: 12px; margin-bottom: 6px;
    font-size: var(--fs-base);
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 4px;
}
.close-btn {
    background: none; border: none;
    color: var(--accent-red);
    font-size: 1.8rem;
    cursor: pointer; line-height: 1;
    padding: 0 8px;
    min-height: 44px; min-width: 44px;
}

/* Elenco modal tabs */
.elenco-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
/* Escritório: 7 abas → permite quebra de linha */
.escritorio-tabs { flex-wrap: wrap; }
.elenco-tab { background: transparent; border: 1px solid var(--border-color); color: var(--text-soft); font-family: inherit; font-size: var(--fs-xs); padding: 6px 12px; border-radius: 4px 4px 0 0; cursor: pointer; transition: all 0.15s; }
.elenco-tab:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.elenco-tab.active { background: var(--accent-primary); color: var(--bg-dark); border-color: var(--accent-primary); font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Status overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.status-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.status-label { font-size: var(--fs-xs); color: var(--text-soft); line-height: 1.3; }
.status-value { font-size: var(--fs-sm); font-weight: bold; line-height: 1.2; }

/* Tabela Elenco */
.table-elenco { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
.table-elenco th, .table-elenco td { border: 1px solid var(--border-color); padding: 6px; text-align: left; }
.table-elenco th { color: var(--accent-primary); background-color: rgba(255,255,255,0.03); }
.table-elenco th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.table-elenco th.sortable:hover { background-color: rgba(255,255,255,0.08); }
.table-elenco th.sort-active { color: var(--accent-yellow); }
.table-elenco .age-col  { color: var(--text-soft); text-align: center; }
.table-elenco .goals-col{ color: var(--accent-yellow); text-align: center; }
/* v017: colunas de overall e valor */
.table-elenco .ovr-col   { color: var(--accent-blue); text-align: center; }
.table-elenco .valor-col { color: var(--accent-primary); text-align: right; white-space: nowrap; }

/* v018: MERCADO DE JOGADORES */
.btn-mini {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.7rem;
    padding: 3px 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.btn-mini:hover:not(:disabled) { border-color: var(--accent-blue); color: var(--accent-blue); }
.btn-mini:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-mini.btn-buy { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-mini.btn-buy:hover { background: var(--accent-primary); color: var(--bg-dark); }
.btn-mini.btn-sell { border-color: var(--accent-orange); color: var(--accent-orange); }
.btn-mini.btn-listed { background: var(--accent-orange); color: var(--bg-dark); border-color: var(--accent-orange); font-weight: bold; }
.table-elenco .acao-col { text-align: center; white-space: nowrap; }
.table-elenco tr.listed-row td { background: rgba(255,157,0,0.08); }

.proposta-content { max-width: 460px; }
#proposta-info { margin-bottom: 12px; line-height: 1.6; }
.proposta-input {
    width: 100%; box-sizing: border-box;
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px; padding: 8px 10px;
    font-family: inherit; font-size: var(--fs-md);
    margin-top: 4px;
}
#proposta-chance { margin: 8px 0 14px; font-size: var(--fs-sm); }

.mercado-results { margin-bottom: 12px; }
.mercado-line { font-size: var(--fs-sm); margin-bottom: 5px; line-height: 1.4; }
.mercado-offer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap;
    padding: 8px 10px; margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: var(--fs-sm);
}
.mercado-offer-btns { display: flex; gap: 6px; flex-shrink: 0; }
.mercado-offer.mercado-counter { border-color: var(--accent-yellow); background: rgba(255,235,59,0.06); }
.mercado-offer.mercado-welcome { border-color: var(--accent-primary); background: rgba(0,255,102,0.06); }
.mercado-offer .welcome-msg { display: block; font-size: 0.85em; margin-top: 2px; }
#btn-mercado-continuar { margin-top: 10px; }

/* ================================================================
   JANELA DE INTERVALO (v020) — no lugar da carta de dilema
   ================================================================ */
.intervalo-content { max-width: 480px; border-color: var(--accent-blue); }
.ht-score {
    text-align: center;
    font-size: var(--fs-lg);
    margin: 4px 0 10px;
    letter-spacing: 0.5px;
}
.ht-score b { color: var(--accent-primary); }
.ht-folego, .ht-elenco {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    margin-bottom: 6px;
}
.ht-folego b, .ht-elenco b { color: var(--text-main); }
.ht-esquema {
    margin: 12px 0;
    padding: 10px;
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: center;
}
.ht-schema-btns { display: flex; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.ht-hint { font-size: var(--fs-xs); color: var(--text-soft); margin-top: 6px; }
.ht-vestiario {
    text-align: center;
    font-size: var(--fs-base);
    color: var(--accent-yellow);
    margin: 12px 0;
    font-style: italic;
}
.ht-actions { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ht-actions #btn-ht-continuar { flex: 1; min-width: 200px; }

/* ================================================================
   MODAL DE NOTÍCIA (v020) — matéria completa do ticker
   ================================================================ */
.news-modal-content { max-width: 520px; border-color: var(--accent-yellow); }
#news-modal-kicker { color: var(--accent-yellow); font-size: var(--fs-md); }
.news-modal-title {
    font-size: var(--fs-md);
    color: var(--text-main);
    margin: 6px 0 12px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.news-modal-body { font-size: var(--fs-base); line-height: 1.6; color: var(--text-main); }
.news-modal-source { margin-top: 14px; font-size: var(--fs-xs); color: var(--text-soft); font-style: italic; text-align: right; }


/* v019: Banner da janela de transferências */
.market-window {
    font-size: var(--fs-xs);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 6px 0;
    display: inline-block;
}
.market-window.open   { color: var(--accent-primary); border: 1px solid var(--accent-primary); background: rgba(0,255,102,0.08); }
.market-window.closed { color: var(--accent-red); border: 1px solid var(--accent-red); background: rgba(255,51,102,0.08); }
.olheiro-sort { flex: 0 0 auto; min-width: 130px; }

/* v019: vagas livres no elenco */
.roster-item.empty-slot {
    border-style: dashed;
    opacity: 0.7;
    cursor: pointer;
    color: var(--text-soft);
    font-style: italic;
}
.roster-item.empty-slot:hover { opacity: 1; border-color: var(--accent-primary); color: var(--accent-primary); }
.roster-item.empty-slot .p-number { border-style: dashed; color: var(--accent-primary); }
.table-elenco tr.empty-slot-row td {
    color: var(--text-soft);
    font-style: italic;
    background: repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(255,255,255,0.02) 6px, rgba(255,255,255,0.02) 12px);
}

/* v017: OLHEIRO */
.olheiro-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: var(--fs-xs);
    color: var(--text-soft);
    flex-wrap: wrap;
}
/* v014: destaque para o rótulo "Espiar:" */
.olheiro-bar label {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: var(--fs-sm);
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.olheiro-select {
    flex: 1;
    min-width: 140px;
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 4px;
    padding: 6px 8px;
    font-family: inherit;
    font-size: var(--fs-xs);
    cursor: pointer;
}
.olheiro-select:focus { outline: none; border-color: var(--accent-blue); }
/* v014: 1ª dropbox (clubes) mais larga; as outras duas menores */
#olheiro-select { flex: 2.4 1 0; min-width: 150px; }
.olheiro-bar .olheiro-pos,
.olheiro-bar .olheiro-sort { flex: 1 1 0; min-width: 96px; }
.scout-content { font-size: var(--fs-xs); }
.scout-head { margin-bottom: 8px; line-height: 1.5; }

/* v014 (Fase 3): caixa "Dicas do Olheiro" agrupando janela + carências + busca */
.olheiro-tips {
    margin-bottom: 10px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.18);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
/* Cabeçalho da caixa: título à esquerda + status da janela à direita */
.olheiro-tips-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border-color);
}
/* Título no mesmo padrão das outras abas (h3.text-green do modal),
   mas sem o border-bottom próprio (o header já tem a linha) */
.olheiro-tips-title {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    white-space: nowrap;
}
.olheiro-tips-header .market-window { margin: 0; }
/* Resumo do clube espiado (abaixo do título, dentro da caixa de dicas) */
.scout-club-summary { margin-bottom: 8px; line-height: 1.5; font-size: var(--fs-xs); }
.scout-club-summary:empty { display: none; }

/* v014 (Fase 3): resumo de composição + carências do elenco (dentro da caixa) */
.squad-needs {
    margin-bottom: 8px;
    font-size: var(--fs-xs);
}
.squad-needs .needs-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.squad-needs .need-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-weight: bold;
    font-family: inherit;
    font-size: var(--fs-xs);
    padding: 3px 8px;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: background 0.12s, box-shadow 0.12s, filter 0.12s;
}
.squad-needs .need-chip:hover { filter: brightness(1.25); background: rgba(255,255,255,0.06); }
/* badge ativa (filtro aplicado) — realce com glow da própria cor */
.squad-needs .need-chip.active {
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 7px currentColor;
}
.squad-needs .need-chip .need-min { font-size: 0.85em; opacity: 0.6; font-weight: normal; }
.squad-needs .need-chip.lacking { animation: blink-pos 1.4s ease-in-out infinite; }
.squad-needs .needs-msg { font-weight: bold; margin-left: auto; padding-left: 8px; }
.scout-content tr.scout-sep td {
    background: rgba(255,255,255,0.04);
    color: var(--accent-primary);
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
}
.scout-content tr.injured-row td { color: var(--accent-red); opacity: 0.85; }

/* Stats resumo */
.stats-resumo {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 10px;
    font-size: var(--fs-xs);
}
@media (max-width: 480px) { .stats-resumo { grid-template-columns: repeat(3, 1fr); } }
.stats-resumo > div {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 5px 4px; text-align: center;
    min-width: 0; overflow: hidden;
}
.stats-resumo .label {
    font-size: 0.62rem; color: var(--text-soft);
    display: block; margin-bottom: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.stats-resumo .val {
    font-size: var(--fs-sm); font-weight: bold; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* League table */
.league-table { border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; font-size: var(--fs-xs); margin-bottom: 8px; }
.league-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 40px 30px 30px 30px 30px 38px;
    gap: 4px; padding: 5px 8px;
    border-bottom: 1px solid var(--border-color);
    align-items: center; line-height: 1.3;
}
.league-row > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.league-row:last-child { border-bottom: none; }
.league-row.league-head { background: rgba(255,255,255,0.04); color: var(--accent-primary); font-weight: bold; }
.league-row.is-me { background: rgba(0,255,102,0.08); border-left: 3px solid var(--accent-primary); font-weight: bold; }
[data-theme="amber"]  .league-row.is-me { background: rgba(255,176,0,0.10); }
[data-theme="modern"] .league-row.is-me { background: rgba(96,165,250,0.10); }
/* Zonas de acesso (verde) e rebaixamento (vermelho) na tabela do campeonato */
.league-row.promo  { background: rgba(0,200,90,0.10); }
.league-row.releg  { background: rgba(220,50,50,0.12); }
.league-row.promo-edge { border-bottom: 2px solid rgba(0,200,90,0.55); }
.league-row.releg-edge { border-top: 2px solid rgba(220,50,50,0.55); }
/* A linha do próprio time mantém destaque, mas a barra lateral marca a zona */
.league-row.is-me.promo { border-left-color: rgba(0,200,90,0.9); }
.league-row.is-me.releg { border-left-color: rgba(220,50,50,0.9); }
.zone-mark { font-size: 0.78em; margin-right: 3px; }
.zone-mark.up   { color: #2ecc71; }
.zone-mark.down { color: #e74c3c; }
.league-legend { padding: 6px 8px; font-size: var(--fs-xs); color: var(--text-soft); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.league-legend .sep { opacity: 0.5; margin: 0 2px; }
.league-legend .zone-dest { color: var(--text-color); font-weight: 600; }
.league-row .pos  { text-align: left; color: var(--text-soft); }
.league-row .team { text-align: left; }
.league-row .num  { text-align: center; }
.league-row .pts  { text-align: center; color: var(--accent-primary); font-weight: bold; }
.league-row.league-head .pos,
.league-row.league-head .team,
.league-row.league-head .pts { color: var(--accent-primary); }

/* Artilheiros */
/* v020: artilheiros — lista simples de UMA linha por marcador (sem caixas) */
.top-scorers { display: flex; flex-direction: column; }
.scorer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--border-color);
}
.scorer-row:last-child { border-bottom: none; }
.scorer-row .pos-rank { color: var(--accent-yellow); font-weight: bold; min-width: 24px; flex-shrink: 0; }
.scorer-row .name  { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scorer-row .scorer-club { color: var(--text-soft); font-size: 0.85em; }
.scorer-row .scorer-club::before { content: ' · '; }
.scorer-row .goals { color: var(--accent-primary); font-weight: bold; flex-shrink: 0; }
.scorer-row.top { background: rgba(255,235,59,0.06); }
.scorer-row.scorer-me { background: rgba(0,229,255,0.05); }

/* Season chart */
.season-chart { width: 100%; min-height: 100px; overflow-x: auto; }
.season-chart svg { width: 100%; height: 120px; display: block; }
.chart-bar { transition: opacity 0.2s; }
.chart-bar:hover { opacity: 0.7; }
.chart-label { font-size: 10px; fill: var(--text-soft); font-family: 'Share Tech Mono', monospace; }

/* Dilema modal */
.dilema-content { border-color: var(--accent-red); box-shadow: 0 0 20px rgba(255,51,102,0.2); text-align: center; max-width: 520px; }
.dilema-content h2 { color: var(--accent-red); font-size: var(--fs-md); margin-bottom: 12px; }
.dilema-content h3 { font-size: var(--fs-base); margin-bottom: 10px; color: var(--text-main); }
.dilema-content p  { font-size: var(--fs-base); margin-bottom: 18px; }
.dilema-options { display: flex; flex-direction: column; gap: 12px; }
.dilema-options button { padding: 14px; font-size: var(--fs-sm); }
.timeout-warning { margin-top: 16px; font-size: var(--fs-xs); color: var(--text-soft); }

/* Tutorial modal */
.tutorial-content { max-width: 560px; text-align: center; }
.tutorial-text { font-size: var(--fs-base); line-height: 1.7; margin: 16px 0; min-height: 140px; text-align: left; padding: 0 8px; }
.tutorial-progress { display: flex; justify-content: center; gap: 8px; margin: 16px 0; }
.tutorial-progress .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); transition: background 0.2s; }
.tutorial-progress .dot.active { background: var(--accent-primary); }
.tutorial-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }

/* Season end modal */
.season-end-content { text-align: center; max-width: 520px; }
.season-end-content h2 { color: var(--accent-primary); font-size: var(--fs-lg); margin-bottom: 14px; }
.season-end-body { font-size: var(--fs-base); margin: 18px 0; text-align: left; }
.season-end-body p { margin-bottom: 8px; }
.season-end-body .verdict { font-size: var(--fs-md); font-weight: bold; text-align: center; padding: 14px; margin: 14px 0; border: 1px solid var(--border-color); border-radius: 4px; }
.season-end-body .verdict.promoted { color: var(--accent-primary); border-color: var(--accent-primary); }
.season-end-body .verdict.stayed   { color: var(--accent-blue); border-color: var(--accent-blue); }
.season-end-body .verdict.relegated{ color: var(--accent-red); border-color: var(--accent-red); }
.season-end-retirements { margin-top: 10px; padding: 8px 10px; border: 1px dashed rgba(255,235,59,0.4); border-radius: 4px; font-size: var(--fs-xs); color: var(--accent-yellow); }
.season-end-retirements p { margin-bottom: 4px; }

/* Reset modal */
.reset-content { max-width: 480px; text-align: center; }
.reset-content h2 { font-size: var(--fs-md); margin-bottom: 12px; }
.reset-content p  { font-size: var(--fs-base); margin-bottom: 20px; }

/* Legends */
.legends-intro { font-size: var(--fs-xs); margin-bottom: 12px; font-style: italic; }
.legends-list  { display: flex; flex-direction: column; gap: 8px; }
.legend-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,235,59,0.05); border: 1px solid rgba(255,235,59,0.3); border-radius: 6px; font-size: var(--fs-xs); }
.legend-card:hover { background: rgba(255,235,59,0.1); }
.legend-shirt { font-size: 1rem; background: var(--panel-bg-soft); border: 1px solid var(--accent-yellow); border-radius: 4px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent-yellow); font-weight: bold; }
.legend-info { flex: 1; }
.legend-name { color: var(--accent-yellow); font-weight: bold; display: block; margin-bottom: 2px; }
.legend-detail { color: var(--text-soft); }
.legend-stats { text-align: right; color: var(--accent-primary); font-weight: bold; flex-shrink: 0; }
.legend-goals { font-size: 0.7rem; color: var(--text-soft); }
.legend-empty { text-align: center; padding: 24px; color: var(--text-soft); font-style: italic; }

/* ================================================================
   TOOLTIPS
   ================================================================ */
.tooltip-trigger {
    cursor: help; color: var(--text-soft);
    font-size: 0.7em;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; user-select: none;
    transition: all 0.15s; vertical-align: middle; margin-left: 2px;
}
.tooltip-trigger:hover, .tooltip-trigger:focus {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    background: rgba(0,229,255,0.1);
}
.tooltip-floating {
    position: fixed;
    background: var(--panel-bg);
    color: var(--text-main);
    border: 1px solid var(--accent-blue);
    padding: 10px 14px; border-radius: 4px;
    font-size: var(--fs-xs); max-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1100; pointer-events: none; line-height: 1.5;
}

/* ====== CARD DE ATRIBUTOS DO JOGADOR (hover na escalação) — v021 ====== */
.player-card-tip {
    position: fixed;
    z-index: 1100;
    width: 250px;
    background: var(--panel-bg);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: var(--fs-xs);
    box-shadow: 0 6px 24px rgba(0,0,0,0.55);
    pointer-events: none;
    line-height: 1.4;
}
.player-card-tip .pc-head { display: flex; align-items: center; gap: 6px; }
.player-card-tip .pc-num  { color: var(--text-soft); font-weight: bold; }
.player-card-tip .pc-name { flex: 1; min-width: 0; font-weight: bold; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-card-tip .pc-ovr  { color: var(--accent-primary); font-weight: bold; font-size: var(--fs-md); }
.player-card-tip .pc-sub  {
    color: var(--text-soft);
    margin: 4px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border-color);
}
.player-card-tip .pc-skills { display: flex; flex-direction: column; gap: 4px; }
.player-card-tip .pc-skill  { display: flex; align-items: center; gap: 6px; }
.player-card-tip .pc-skill-lbl { width: 46px; color: var(--text-soft); flex-shrink: 0; }
.player-card-tip .pc-skill-bar {
    flex: 1; height: 7px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px; overflow: hidden;
}
.player-card-tip .pc-skill-bar > span { display: block; height: 100%; border-radius: 4px; }
.player-card-tip .pc-skill-val { width: 22px; text-align: right; color: var(--text-main); font-weight: bold; flex-shrink: 0; }
.player-card-tip .pc-stam-row  { margin-top: 4px; }
.player-card-tip .pc-foot {
    margin-top: 8px; padding-top: 6px;
    border-top: 1px dashed var(--border-color);
    display: flex; flex-direction: column; gap: 3px;
}
.player-card-tip .pc-extra { color: var(--text-soft); font-size: 0.7rem; }

/* ================================================================
   FLASH / CONFETTI / EFEITOS
   ================================================================ */
.flash-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: 999; opacity: 0;
}
.flash-overlay.flash-goal    { background: var(--accent-primary); animation: flash-fade 0.6s ease-out forwards; }
.flash-overlay.flash-defeat  { background: var(--accent-red); animation: flash-fade 0.5s ease-out forwards; }
.flash-overlay.flash-victory { background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-yellow) 100%); animation: flash-fade 1.2s ease-out forwards; }
@keyframes flash-fade { 0% { opacity: 0; } 20% { opacity: 0.35; } 100% { opacity: 0; } }

.shake { animation: shake 0.4s ease; }
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

.confetti-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 998; overflow: hidden; }
.confetti-piece {
    position: absolute; top: -20px;
    width: 8px; height: 12px;
    opacity: 0.95;
    animation: confetti-fall var(--duration, 2s) linear forwards;
    will-change: transform, opacity;
}
@keyframes confetti-fall {
    0%   { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate3d(var(--x-drift, 30px), 110vh, 0) rotate(var(--rot, 720deg)); opacity: 0.2; }
}

/* ================================================================
   CALENDÁRIO DE CRUZAMENTOS (v015)
   ================================================================ */
.match-calendar { overflow-x: auto; }
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-xs);
}
.calendar-table th, .calendar-table td {
    border: 1px solid var(--border-color);
    padding: 5px 8px;
    text-align: left;
    white-space: nowrap;
}
.calendar-table th {
    color: var(--accent-primary);
    background: rgba(255,255,255,0.03);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.calendar-table .cal-num  { text-align: center; width: 32px; color: var(--text-soft); }
.calendar-table .cal-date { color: var(--accent-blue); font-weight: bold; }
.calendar-table .cal-opp  { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.calendar-table .cal-folego { text-align: center; color: var(--text-soft); }
.calendar-table .cal-resultado { text-align: center; white-space: nowrap; }

/* v014: resultado da partida (V/E/D) */
.cal-result { font-weight: bold; padding: 1px 5px; border-radius: 3px; }
.cal-result.cal-win  { color: var(--accent-primary); background: rgba(0,255,102,0.10); }
.cal-result.cal-draw { color: var(--accent-yellow); background: rgba(255,235,59,0.10); }
.cal-result.cal-loss { color: var(--accent-red); background: rgba(255,51,102,0.10); }

/* Próxima partida — destaque */
.calendar-table tr.cal-next td { background: rgba(0,255,102,0.06); }
.calendar-table tr.cal-next .cal-num { color: var(--accent-primary); font-weight: bold; font-size: 0.85rem; }

/* Partidas passadas — levemente esmaecidas, mas resultado/fôlego em destaque */
.calendar-table tr.cal-past td { opacity: 0.7; }
.calendar-table tr.cal-past .cal-num { color: var(--accent-primary); }
.calendar-table tr.cal-past .cal-folego, .calendar-table tr.cal-past .cal-resultado { opacity: 1; }

/* Badges CASA / FORA na tabela */
.badge-casa {
    background: rgba(0,255,102,0.12);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: bold;
    white-space: nowrap;
}
.badge-fora {
    background: rgba(255,157,0,0.12);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: bold;
    white-space: nowrap;
}

/* ================================================================
   SPOTLIGHT TUTORIAL (v010)
   ================================================================ */
.tutorial-spotlight { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 8999; }
.spotlight-cutout {
    position: absolute;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5), 0 0 20px rgba(0,255,102,0.5);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: content-box;
    animation: spotlight-pulse 2s ease-in-out infinite;
}
@keyframes spotlight-pulse {
    0%,100% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.5), 0 0 16px rgba(0,255,102,0.5); }
    50%      { box-shadow: 0 0 0 9999px rgba(0,0,0,0.5), 0 0 32px rgba(0,255,102,0.9); }
}
.spotlight-arrow { position: absolute; color: var(--accent-primary); font-size: 1.6rem; animation: bounce-arrow 1s ease-in-out infinite; line-height: 1; }
@keyframes bounce-arrow { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* Backdrop do tutorial TRANSPARENTE — quem escurece a tela é o spotlight (não somar dois véus).
   Mantém o bloqueio de cliques (o modal cobre a tela) e o recorte do spotlight fica nítido. */
.modal-tutorial-v010 { z-index: 9001; background-color: transparent; }
