/* =====================================================================================
 * hud.css — Padrão visual ÚNICO da partida (desktop/tablet do game.html).
 * Mesma linguagem da Sala de Guerra (public/comando/comando.css): superfícies escuras,
 * linhas finas, Space Grotesk nos títulos, Inter no texto, JetBrains Mono nos números,
 * raio 10px, âmbar = ação principal, uma cor por fase.
 *
 * Carregado POR ÚLTIMO no game.html: sobrepõe style.css, match-ux.css e product-tokens.css
 * sem apagá-los (rollback = tirar o <link>). O jogo mobile (game-mobile.html) não usa.
 * ===================================================================================== */

:root {
    /* superfícies e texto */
    --hud-bg: #0B0F17;
    --hud-bg-2: #111827;
    --hud-panel: rgba(17, 24, 39, 0.78);
    --hud-panel-solid: #121a29;
    --hud-raise: rgba(30, 41, 59, 0.55);
    --hud-sunk: rgba(2, 6, 14, 0.45);
    --hud-line: rgba(148, 163, 184, 0.16);
    --hud-line-strong: rgba(148, 163, 184, 0.32);
    --hud-text: #E5E7EB;
    --hud-muted: #8A97AD;

    /* cores de ação (as cores de jogador/ideologia continuam as de style.css) */
    --hud-amber: #F59E0B;
    --hud-blue: #3B82F6;
    --hud-red: #EF4444;
    --hud-green: #22C55E;
    --hud-sky: #38BDF8;

    /* uma cor por fase — topo, painel lateral e seletor de tropas falam a mesma língua */
    --ph-draft: var(--hud-blue);
    --ph-attack: var(--hud-red);
    --ph-occupy: var(--hud-amber);
    --ph-fortify: var(--hud-green);

    /* tipografia */
    --hud-head: "Space Grotesk", "Inter", system-ui, sans-serif;
    --hud-body: "Inter", system-ui, sans-serif;
    --hud-mono: "JetBrains Mono", ui-monospace, monospace;

    /* forma */
    --hud-r-sm: 6px;
    --hud-r: 10px;
    --hud-r-lg: 14px;
    --hud-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);

    /* camadas (uma escala só) */
    --z-drawer: 100;
    --z-overlay: 150;
    --z-banner: 300;
    --z-picker: 450;
    --z-dialog: 600;
    --z-notice: 9500;

    /* variáveis antigas: algumas eram usadas sem nunca terem sido definidas */
    --bg-dark: var(--hud-bg);
    --bg-dark-panel: var(--hud-panel);
    --border-glass: var(--hud-line-strong);
    --border-color: var(--hud-line-strong);
    --text-light: var(--hud-text);
    --text-muted: var(--hud-muted);
    --color-cyan: var(--hud-sky);
    --glow-cyan: 0 0 10px rgba(56, 189, 248, 0.45);
    --font-heading: var(--hud-head);
    --font-body: var(--hud-body);
    --font-main: var(--hud-body);
}

#game-screen, #game-screen button, #game-screen select, #game-screen input,
.troop-picker, .ux-dialog, .modal, .dice-overlay, #floating-chat-window, #hud-notices {
    font-family: var(--hud-body);
}
#game-screen { background: var(--hud-bg); color: var(--hud-text); }

/* ------------------------------------------------------------------ botões ----------- */
#game-screen .btn, .troop-picker .btn, .ux-dialog .btn, .modal .btn, #floating-chat-window .btn {
    font-family: var(--hud-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    text-transform: none;
    border-radius: var(--hud-r-sm);
    border: 1px solid var(--hud-line-strong);
    background: var(--hud-raise);
    color: var(--hud-text);
    box-shadow: none;
    text-shadow: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.08s;
}
#game-screen .btn:hover:not(:disabled), .troop-picker .btn:hover:not(:disabled),
.ux-dialog .btn:hover:not(:disabled), .modal .btn:hover:not(:disabled) {
    border-color: var(--hud-muted);
    background: rgba(51, 65, 85, 0.7);
}
#game-screen .btn:active:not(:disabled) { transform: translateY(1px); }
#game-screen .btn:disabled, .ux-dialog .btn:disabled { opacity: 0.45; cursor: not-allowed; }
#game-screen .btn:focus-visible, .troop-picker .btn:focus-visible, .ux-dialog .btn:focus-visible {
    outline: 2px solid var(--hud-sky); outline-offset: 2px;
}

/* ação principal: âmbar, texto escuro — a mesma do "Lançar operação" */
#game-screen .btn-primary, .ux-dialog .btn-primary, .modal .btn-primary, #btn-finish-turn {
    background: var(--hud-amber);
    border-color: var(--hud-amber);
    color: #1a1204;
    font-weight: 700;
}
#game-screen .btn-primary:hover:not(:disabled), .ux-dialog .btn-primary:hover:not(:disabled),
.modal .btn-primary:hover:not(:disabled), #btn-finish-turn:hover:not(:disabled) {
    background: #fbbf24; border-color: #fbbf24; color: #1a1204;
}
#game-screen .btn-secondary, .ux-dialog .btn-secondary { background: transparent; }
#game-screen .btn-danger {
    background: transparent;
    border-color: rgba(239, 68, 68, 0.55);
    color: #fca5a5;
}
#game-screen .btn-danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.12); border-color: var(--hud-red); color: #fecaca; }
#game-screen .btn-block { width: 100%; justify-content: center; }

/* "Encerrar turno" deixa de ser gradiente laranja: é a ação principal da fase */
#btn-finish-turn { min-height: 44px; font-size: 0.86rem; margin-top: auto; animation: none; }
#btn-finish-turn::before { display: none; }

/* pulso único de "há algo a fazer aqui" (cartas com troca disponível etc.) */
#game-screen .combo-alert { animation: hudNudge 2.2s ease-in-out infinite; }
@keyframes hudNudge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22); }
}

/* ------------------------------------------------------------------ barra superior --- */
#game-screen .game-dashboard {
    height: 60px;
    background: rgba(11, 15, 23, 0.92);
    border-bottom: 1px solid var(--hud-line);
    box-shadow: none;
    backdrop-filter: blur(10px);
    gap: 12px;
}
#game-screen .dash-left { gap: 8px; min-width: 0; }
#game-screen .dash-right { gap: 6px; }

#game-screen .active-badge {
    --pc: var(--hud-muted);
    gap: 8px;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    background: var(--hud-raise);
    border: 1px solid color-mix(in srgb, var(--pc) 55%, transparent);
    box-shadow: none;
    font-size: 0.86rem;
    min-width: 0;
}
#game-screen .player-color-dot { width: 10px; height: 10px; background: var(--pc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 25%, transparent); }
#active-player-name { color: var(--hud-text) !important; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
#game-screen .ideology-label {
    font-family: var(--hud-head);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent) !important;
    background: color-mix(in srgb, var(--pc) 14%, transparent) !important;
    color: var(--hud-text) !important;
}

/* status da conexão: mesma pílula da Sala de Guerra */
.hud-conn {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--hud-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.04em;
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid var(--hud-line-strong); color: var(--hud-muted);
    cursor: help; user-select: none; white-space: nowrap;
}
.hud-conn .hud-conn-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hud-muted); }
.hud-conn.is-online { color: #86efac; border-color: rgba(34, 197, 94, 0.45); }
.hud-conn.is-online .hud-conn-dot { background: var(--hud-green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.hud-conn.is-lost { color: #fcd34d; border-color: rgba(245, 158, 11, 0.5); }
.hud-conn.is-lost .hud-conn-dot { background: var(--hud-amber); }
.hud-conn.is-local .hud-conn-dot { background: var(--hud-muted); }

/* dicas flutuantes do topo (jogador, conexão/regras) */
.hud-pop {
    display: none;
    position: absolute; top: 100%; left: 0; margin-top: 10px;
    width: 300px; z-index: 10000;
    background: var(--hud-panel-solid);
    border: 1px solid var(--hud-line-strong);
    border-radius: var(--hud-r);
    padding: 12px 14px;
    font-size: 0.74rem; line-height: 1.45; color: var(--hud-text);
    box-shadow: var(--hud-shadow);
}
.hud-pop .hud-pop-title { font-family: var(--hud-head); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hud-muted); margin: 0 0 6px; }
.hud-pop .hud-pop-row { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.hud-pop .hud-pop-row span { color: var(--hud-muted); }
.hud-pop .hud-pop-row strong { text-align: right; font-weight: 600; }
.hud-pop .hud-pop-status { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--hud-line); }
.hud-pop .hud-pop-status strong { display: block; font-family: var(--hud-head); letter-spacing: 0.04em; margin-bottom: 2px; }

/* fases: cada passo acende na cor da sua fase */
#game-screen .phase-stepper {
    background: var(--hud-sunk);
    border: 1px solid var(--hud-line);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}
#game-screen .phase-step {
    font-family: var(--hud-head);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--hud-muted);
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: none;
    background: transparent;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s;
}
#game-screen .phase-step.active { color: #fff; box-shadow: none; }
#phase-draft.active { background: var(--ph-draft); }
#phase-attack.active { background: var(--ph-attack); }
#phase-fortify.active { background: var(--ph-fortify); color: #052e14; }
#draft-armies-left { font-family: var(--hud-mono); }

#game-screen .neon-timer {
    font-family: var(--hud-mono); font-size: 0.86rem; font-weight: 700;
    color: var(--hud-text); text-shadow: none;
    background: var(--hud-sunk); border: 1px solid var(--hud-line-strong);
    border-radius: 999px; padding: 4px 12px; animation: none;
}

#game-screen .turn-counter {
    font-family: var(--hud-head); font-size: 0.74rem; font-weight: 600;
    color: var(--hud-muted); background: transparent; border: 0; padding: 0 6px;
    white-space: nowrap;
}
#game-screen .turn-counter #round-num { font-family: var(--hud-mono); font-size: 0.9rem; color: var(--hud-text); margin-left: 2px; }

/* botões do topo: ícone + rótulo curto, mesmo tamanho */
#game-screen .btn-hud, #game-screen .dash-right .btn-danger {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 12px;
    font-size: 0.76rem; font-weight: 600;
    background: transparent; border-color: var(--hud-line);
    white-space: nowrap;
}
#game-screen .btn-hud:hover:not(:disabled) { background: var(--hud-raise); border-color: var(--hud-line-strong); }
#game-screen .btn-hud svg, #game-screen .dash-right .btn-danger svg { flex: none; opacity: 0.85; }
.hud-count {
    font-family: var(--hud-mono); font-size: 0.7rem; font-weight: 700;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hud-raise); color: var(--hud-text);
}
#btn-show-cards.combo-alert .hud-count { background: var(--hud-amber); color: #1a1204; }
#btn-toggle-music.is-on { color: #fcd34d; border-color: rgba(245, 158, 11, 0.45); }
#btn-show-chat .chat-unread-badge, #btn-show-chat [class*="badge"] { font-family: var(--hud-mono); }

/* ------------------------------------------------------------------ colunas ---------- */
#game-screen .game-layout { gap: 12px; padding: 12px; }
#game-screen .glass-panel { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
#game-screen .sidebar-left { gap: 10px; border-left: 0 !important; box-shadow: none !important; }
#game-screen .panel-section {
    background: var(--hud-panel);
    border: 1px solid var(--hud-line);
    border-radius: var(--hud-r);
    padding: 12px 14px;
}
#game-screen .panel-section h3, #game-screen .objective-sidebar-head {
    font-family: var(--hud-head);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hud-muted);
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 10px;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
/* a faixa da vez: uma linha fina no topo da coluna na cor de quem joga */
#game-screen .sidebar-left::before {
    content: ""; display: block; height: 3px; border-radius: 3px; flex: none;
    background: var(--turn-color, var(--hud-line-strong));
}

/* jogadores */
#game-screen .pcard { border-radius: var(--hud-r-sm); border: 1px solid var(--hud-line); border-left: 3px solid var(--pc); background: var(--hud-sunk); }
#game-screen .pcard.is-turn { background: var(--hud-raise); border-color: color-mix(in srgb, var(--pc) 60%, transparent); box-shadow: none; }
#game-screen .pcard-dot { box-shadow: none; }
#game-screen .pcard-turn { font-family: var(--hud-head); font-size: 0.58rem; letter-spacing: 0.04em; border-radius: 999px; animation: none; }
#game-screen .pcard-you { color: var(--hud-sky); border-color: rgba(56, 189, 248, 0.5); }
#game-screen .pcard-meta, #game-screen .pchip-nums { font-family: var(--hud-mono); }
#game-screen .pcard-stats b { font-family: var(--hud-mono); }
#game-screen .pcard-stats div { background: rgba(2, 6, 14, 0.5); border-radius: 4px; }

/* placar parcial (antes "Pontos em N rodadas" no topo) */
.hud-score-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--hud-head); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.02em; text-transform: none;
    color: var(--hud-muted); background: transparent;
    border: 1px solid var(--hud-line); border-radius: 999px; padding: 3px 9px; cursor: pointer;
}
.hud-score-btn:hover, .hud-score-btn[aria-expanded="true"] { color: var(--hud-text); border-color: var(--hud-line-strong); }
.hud-score-btn b { font-family: var(--hud-mono); font-weight: 700; color: var(--hud-text); }
#live-score-tooltip.live-score-tooltip {
    position: static; display: none; margin: 0 0 10px;
    background: var(--hud-sunk); border: 1px solid var(--hud-line); border-radius: var(--hud-r-sm);
    padding: 8px 10px; box-shadow: none; min-width: 0; width: auto; transform: none;
    font-size: 0.74rem; text-transform: none; letter-spacing: 0; font-family: var(--hud-body); color: var(--hud-text);
}
#live-score-tooltip .lst-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--hud-line); }
#live-score-tooltip .lst-row b { font-family: var(--hud-mono); }
#live-score-tooltip .lst-note { margin-top: 6px; font-size: 0.66rem; color: var(--hud-muted); line-height: 1.4; }

/* objetivo, revoltas */
#game-screen .objective-mask-btn { font-family: var(--hud-body); font-size: 0.66rem; text-transform: none; letter-spacing: 0; border-radius: 999px; border: 1px solid var(--hud-line); background: transparent; color: var(--hud-muted); padding: 3px 9px; }
#game-screen .objective-mask-btn:hover { color: var(--hud-text); border-color: var(--hud-line-strong); }
#game-screen .objective-sidebar-mask { border-radius: var(--hud-r-sm); border-color: var(--hud-line-strong); background: var(--hud-sunk); color: var(--hud-muted); font-family: var(--hud-body); }
#objective-sidebar-text { border-left: 3px solid var(--obj-color, var(--hud-amber)) !important; padding-left: 10px !important; font-size: 0.82rem !important; color: var(--hud-text) !important; }
#game-screen .revolt-sidebar-container .empty-msg { color: #86efac !important; font-size: 0.74rem !important; text-align: left !important; padding: 0 !important; }

/* registro tático: uma marca de cor por tipo, texto sempre legível */
#game-screen .log-container { gap: 0; }
#game-screen .log-entry {
    font-size: 0.74rem; line-height: 1.45; color: var(--hud-text);
    border: 0; border-left: 2px solid var(--log-c, var(--hud-line-strong)); border-radius: 0;
    background: transparent; padding: 5px 0 5px 9px; margin: 0 0 4px;
}
#game-screen .log-entry .time { font-family: var(--hud-mono); font-size: 0.64rem; color: var(--hud-muted) !important; margin-right: 2px; }
#game-screen .log-entry.log-action-system { --log-c: var(--hud-line-strong); }
#game-screen .log-entry.log-action-draft { --log-c: var(--ph-draft); }
#game-screen .log-entry.log-action-battle { --log-c: var(--ph-occupy); }
#game-screen .log-entry.log-action-battle-loss, #game-screen .log-entry.log-action-revolt { --log-c: var(--hud-red); }
#game-screen .log-entry.log-action-conquest { --log-c: var(--hud-green); }
#game-screen .log-entry.log-action-fortify { --log-c: var(--ph-fortify); }
#game-screen .log-entry.log-action-victory { --log-c: var(--hud-amber); }
/* aviso do maior arsenal: pisca até o clique (ou até o próximo turno); o link leva o mapa até lá */
#game-screen .log-entry.log-action-arsenal { --log-c: var(--hud-amber); }
#game-screen .log-entry.log-blink { animation: logBlink 1.1s ease-in-out infinite; border-radius: 4px; }
@keyframes logBlink { 0%, 100% { background: transparent; } 50% { background: rgba(245, 158, 11, 0.24); } }
#game-screen .log-entry .arsenal-link { color: var(--hud-amber); font-weight: 700; text-decoration: underline dotted; cursor: pointer; }
#map-canvas .arsenal-pulse { animation: arsenalPulse 0.8s ease-in-out 4; }
@keyframes arsenalPulse { 0%, 100% { filter: none; } 50% { filter: brightness(1.9) drop-shadow(0 0 7px #ffd54f); } }
/* acúmulo de cartas: modal de descarte no fim do turno (fica fora do #game-screen: estilo próprio) */
#discard-modal .discard-content { max-width: 620px; }
#discard-modal .discard-desc { font-size: 0.84rem; color: var(--hud-text, #e6ecff); margin: 6px 0 12px; line-height: 1.45; }
#discard-modal .cards-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible !important; margin-bottom: 12px; padding: 0; }
#discard-modal .card-item {
    flex: none; width: auto; height: auto; min-height: 112px; padding: 10px 6px 8px; gap: 4px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    background: var(--hud-sunk, rgba(255,255,255,0.04)); border: 1px solid var(--hud-line-strong, rgba(255,255,255,0.18)); border-radius: 10px;
    box-shadow: none; transform: none; position: relative;
}
#discard-modal .card-item:hover { border-color: var(--hud-muted, #9aa7c7); transform: none; box-shadow: none; }
#discard-modal .card-item.selected { border-color: var(--hud-red, #ff3344); box-shadow: 0 0 0 2px rgba(255, 51, 68, 0.35); }
#discard-modal .card-item .symbol { width: 40px; height: 40px; margin: 2px 0; font-size: 1.35rem; display: flex; align-items: center; justify-content: center; background: var(--hud-raise, rgba(255,255,255,0.08)); border-radius: 8px; }
#discard-modal .card-item .cname { font-family: var(--hud-head, inherit); font-size: 0.7rem; font-weight: 600; color: var(--hud-text, #e6ecff); text-align: center; }
#discard-modal .card-item .ctype { font-family: var(--hud-mono, monospace); font-size: 0.58rem; color: var(--hud-muted, #9aa7c7); margin-top: auto; }
#discard-modal .card-item.card-new { border-color: var(--hud-amber, #f59e0b); }
#discard-modal .card-passive-indicator { position: absolute; top: 4px; right: 4px; font-size: 0.55rem; padding: 1px 5px; border-radius: 6px; background: rgba(0, 230, 118, 0.2); color: #9ef5c4; }
#discard-modal .card-passive-indicator.card-new-badge { background: var(--hud-amber, #f59e0b); color: #0b0f1a; }

/* ------------------------------------------------------------------ mapa ------------- */
#game-screen .map-viewport { background: radial-gradient(ellipse at 50% 40%, #0f1726 0%, var(--hud-bg) 70%); border: 1px solid var(--hud-line); border-radius: var(--hud-r); }
#game-screen .map-controls { gap: 6px; }
#game-screen .map-controls .btn-icon {
    width: 32px; height: 32px; border-radius: var(--hud-r-sm);
    background: var(--hud-panel); border: 1px solid var(--hud-line); color: var(--hud-text);
    font-family: var(--hud-mono); font-size: 0.95rem;
}
#game-screen .map-guide {
    font-family: var(--hud-body); font-size: 0.74rem; font-weight: 500; text-transform: none; letter-spacing: 0;
    background: var(--hud-panel); border: 1px solid var(--hud-line); border-radius: 999px; color: var(--hud-text);
    padding: 6px 12px; box-shadow: none;
}
#game-screen .map-view-select, #game-screen .map-names-btn {
    font-family: var(--hud-body); font-size: 0.72rem; font-weight: 600; text-transform: none; letter-spacing: 0;
    height: 32px; padding: 0 12px; border-radius: 999px;
    background: var(--hud-panel); border: 1px solid var(--hud-line); color: var(--hud-text); box-shadow: none;
}
#game-screen .map-names-btn[aria-pressed="true"] { background: rgba(34, 197, 94, 0.14); border-color: rgba(34, 197, 94, 0.55); color: #bbf7d0; box-shadow: none; text-shadow: none; }

.hud-legend {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px;
    padding: 6px 14px; max-width: calc(100% - 24px);
    background: var(--hud-panel); border: 1px solid var(--hud-line); border-radius: 999px;
    font-size: 0.7rem; color: var(--hud-text); pointer-events: none; z-index: 10;
    backdrop-filter: blur(6px);
}
.hud-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hud-legend-item i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.hud-legend-item b { font-family: var(--hud-mono); font-weight: 600; color: var(--hud-muted); }
/* quantos países faltam por continente (viewer); "quase" (≤ 2) pulsa em âmbar, dominado em verde */
.hud-legend-item .leg-missing { font-family: var(--hud-mono); font-style: normal; font-size: 0.6rem; color: var(--hud-muted); padding: 0 5px; border-radius: 999px; border: 1px solid transparent; }
.hud-legend-item .leg-missing:empty { display: none; }
.hud-legend-item.leg-mine .leg-missing { color: var(--hud-green); border-color: color-mix(in srgb, var(--hud-green) 45%, transparent); }
.hud-legend-item.leg-near { color: var(--hud-amber); }
.hud-legend-item.leg-near .leg-missing { color: #0b0f1a; background: var(--hud-amber); border-color: var(--hud-amber); font-weight: 700; animation: legNear 1.4s ease-in-out infinite; }
.hud-legend-item.leg-near i { box-shadow: 0 0 0 2px color-mix(in srgb, var(--hud-amber) 60%, transparent); }
@keyframes legNear { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hud-amber) 60%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }

#game-screen .last-combat { background: var(--hud-panel-solid); border: 1px solid var(--hud-line); border-radius: var(--hud-r); box-shadow: var(--hud-shadow); }
#game-screen .lc-title, #game-screen .lc-summary { font-family: var(--hud-head); }
#game-screen .lc-loss, #game-screen .lc-die { font-family: var(--hud-mono); }

/* ------------------------------------------------------------------ painel de ação --- */
#game-screen .sidebar-right { background: var(--hud-panel); border: 1px solid var(--hud-line); border-radius: var(--hud-r); padding: 14px; }
#game-screen .action-card { gap: 12px; }
#game-screen .action-card > h3 {
    font-family: var(--hud-head); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
    color: var(--hud-text); text-transform: none;
    border-bottom: 0; padding: 0 0 0 12px; margin: 0;
    border-left: 3px solid var(--phase-c, var(--hud-line-strong));
}
#action-panel-draft { --phase-c: var(--ph-draft); }
#action-panel-attack { --phase-c: var(--ph-attack); }
#action-panel-fortify { --phase-c: var(--ph-fortify); }
#game-screen .action-description { font-size: 0.78rem; color: var(--hud-muted); line-height: 1.5; }
#game-screen .stat-row {
    background: var(--hud-sunk); border: 1px solid var(--hud-line); border-radius: var(--hud-r-sm);
    padding: 10px 12px; font-size: 0.82rem; color: var(--hud-muted);
}
#game-screen .neon-text, #draft-count {
    font-family: var(--hud-mono); font-size: 1.35rem; font-weight: 700; text-shadow: none;
    color: var(--phase-c, var(--hud-text));
}
#game-screen .draft-income-breakdown table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
#game-screen .draft-income-breakdown td { padding: 4px 0; color: var(--hud-muted); border: 0; }
#game-screen .draft-income-breakdown td:last-child { text-align: right; font-family: var(--hud-mono); color: var(--hud-text); }
#game-screen .draft-income-breakdown .draft-income-total td { border-top: 1px solid var(--hud-line); padding-top: 6px; color: var(--hud-text); }
#game-screen .draft-income-breakdown .draft-income-total td:last-child { color: #86efac; }

#game-screen .wait-turn-title { font-family: var(--hud-head); font-size: 1rem; letter-spacing: 0.04em; color: var(--hud-text); }
#game-screen .wait-skip-btn { text-transform: none; letter-spacing: 0; color: var(--hud-text); border-color: var(--hud-line-strong); }
#game-screen .wait-skip-btn.is-fast { color: var(--hud-sky); border-color: rgba(56, 189, 248, 0.5); }

/* ataque: fichas de atacante × defensor */
.hud-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.hud-side {
    min-width: 0; padding: 10px; border-radius: var(--hud-r-sm);
    background: var(--hud-sunk); border: 1px solid var(--hud-line); border-left: 3px solid var(--hud-line-strong);
}
.hud-side-label { font-family: var(--hud-head); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hud-muted); margin-bottom: 4px; }
.hud-side.attacker .hud-side-label { color: #fca5a5; }
.hud-side.defender .hud-side-label { color: #93c5fd; }
.hud-side-name { font-family: var(--hud-head); font-size: 0.86rem; font-weight: 700; color: var(--hud-text); overflow-wrap: anywhere; }
.hud-side-details { font-size: 0.68rem; color: var(--hud-muted); line-height: 1.5; margin-top: 4px; }
.hud-side-details .val-country, .hud-side-details .val-garrison { color: var(--hud-text); font-weight: 600; }
.hud-side-garrison { margin-top: 6px; display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--hud-raise); }
.hud-vs { align-self: center; font-family: var(--hud-mono); font-size: 0.72rem; color: var(--hud-muted); }
.hud-subtitle { font-family: var(--hud-head); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hud-muted); margin-bottom: 6px; }
#attack-targets-list > * { border-radius: var(--hud-r-sm) !important; font-family: var(--hud-body) !important; }
#game-screen .btn-end-attack { color: var(--hud-text); border-color: var(--hud-line-strong); background: transparent; }
#game-screen .btn-end-attack:hover:not(:disabled) { border-color: var(--hud-red); background: rgba(239, 68, 68, 0.1); }
#game-screen .card-chance { border-radius: var(--hud-r-sm); font-family: var(--hud-body); }

/* manobra */
#game-screen .fortify-setup { gap: 8px; }
#game-screen .maneuver-node { background: var(--hud-sunk); border: 1px solid var(--hud-line); border-radius: var(--hud-r-sm); }
#game-screen .maneuver-node .label { font-family: var(--hud-head); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--hud-muted); }
#game-screen .maneuver-node .name { font-family: var(--hud-head); font-weight: 700; color: var(--hud-text); }
#game-screen .maneuver-arrow { color: var(--ph-fortify); }

#game-screen .ux-toggle input, .ux-dialog .ux-toggle input { accent-color: var(--hud-amber); }

/* ------------------------------------------------------------------ cartas ----------- */
#game-screen .sub-overlay-panel {
    background: var(--hud-panel-solid);
    border: 1px solid var(--hud-line-strong);
    border-radius: var(--hud-r);
    padding: 14px;
    gap: 12px;
    box-shadow: var(--hud-shadow);
}
#game-screen .sub-overlay-panel .panel-header { border-bottom: 0; padding-bottom: 0; }
#game-screen .sub-overlay-panel .panel-header h4 {
    font-family: var(--hud-head); font-size: 1.05rem; font-weight: 700; color: var(--hud-text); text-shadow: none;
    padding-left: 12px; border-left: 3px solid var(--hud-amber);
}
#game-screen .btn-close { width: 30px; height: 30px; border-radius: var(--hud-r-sm); border: 1px solid var(--hud-line); color: var(--hud-muted); font-size: 1.1rem; }
#game-screen .btn-close:hover { color: var(--hud-text); border-color: var(--hud-line-strong); }
#game-screen .sub-overlay-panel .instructions { font-size: 0.76rem !important; color: var(--hud-muted) !important; margin: 0 !important; }

#game-screen .card-figures-rule { background: var(--hud-sunk); border: 1px solid var(--hud-line); border-radius: var(--hud-r-sm); padding: 8px 10px; }
#game-screen .cfr-title, #game-screen .tt-head { font-family: var(--hud-head); color: var(--hud-muted); letter-spacing: 0.08em; }
#game-screen .trade-table { background: var(--hud-sunk); border: 1px solid var(--hud-line); border-radius: var(--hud-r-sm); }
#game-screen .tt-next { color: #fcd34d; }
#game-screen .tt-v { font-family: var(--hud-mono); }
#game-screen .tt-cell { background: transparent; border-color: var(--hud-line); }
#game-screen .tt-cell.next { background: rgba(245, 158, 11, 0.14); border-color: var(--hud-amber); box-shadow: none; }
#game-screen .tt-arrow { color: var(--hud-amber); }

/* cartas em grade (3 por linha), sem carrossel e sem rolagem lateral */
#game-screen .cards-scroll-bar { display: none !important; }
#game-screen .cards-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
    overflow: visible; padding: 0;
}
#game-screen .cards-grid .empty-msg { grid-column: 1 / -1 !important; color: var(--hud-muted); font-size: 0.78rem; }
#game-screen .card-item {
    width: auto; height: auto; min-height: 112px; padding: 10px 6px 8px; gap: 4px;
    background: var(--hud-sunk); border: 1px solid var(--hud-line-strong); border-radius: var(--hud-r-sm);
    box-shadow: none; justify-content: flex-start;
}
#game-screen .card-item:hover { border-color: var(--hud-muted); transform: none; box-shadow: none; }
#game-screen .card-item .symbol { width: 40px; height: 40px; margin: 2px 0; font-size: 1.35rem; background: var(--hud-raise); border: 0; box-shadow: none; }
#game-screen .card-item .cname { font-family: var(--hud-head); font-size: 0.7rem; font-weight: 600; color: var(--hud-text); }
#game-screen .card-item .ctype { font-family: var(--hud-mono); font-size: 0.58rem; font-weight: 500; color: var(--hud-muted); margin-top: auto; }
#game-screen .card-item.combo-possible { animation: none; box-shadow: none; border-color: rgba(245, 158, 11, 0.45); }
#game-screen .card-item.selected {
    background: rgba(245, 158, 11, 0.12); border-color: var(--hud-amber);
    box-shadow: 0 0 0 1px var(--hud-amber) inset; transform: none;
}
#game-screen .card-item.selected .symbol { background: rgba(245, 158, 11, 0.2); }
#game-screen .card-item.selected::after {
    content: "✓"; position: absolute; top: 5px; left: 6px;
    width: 16px; height: 16px; border-radius: 50%; background: var(--hud-amber); color: #1a1204;
    font-size: 0.62rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
#game-screen .card-item.is-own { border-color: rgba(34, 197, 94, 0.5); }
.card-own-badge {
    position: absolute; top: 5px; right: 5px;
    font-family: var(--hud-mono); font-size: 0.52rem; font-weight: 700;
    padding: 1px 5px; border-radius: 999px;
    background: rgba(34, 197, 94, 0.16); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.45);
}
#btn-exchange-cards { min-height: 44px; position: sticky; bottom: 0; }
#game-screen .card-rules-extra { font-size: 0.68rem; color: var(--hud-muted); }

/* ------------------------------------------------------------------ seletor de tropas  */
.troop-picker {
    background: var(--hud-panel-solid);
    border: 1px solid var(--hud-line-strong);
    border-top: 3px solid var(--tp-accent);
    border-radius: var(--hud-r-lg);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
    z-index: var(--z-picker);
}
.troop-picker, .troop-picker[data-kind="draft"] { --tp-accent: var(--ph-draft); }
.troop-picker[data-kind="attack"] { --tp-accent: var(--ph-attack); }
.troop-picker[data-kind="occupation"] { --tp-accent: var(--ph-occupy); }
.troop-picker[data-kind="fortify"] { --tp-accent: var(--ph-fortify); }
.troop-picker .tp-title { font-family: var(--hud-head); font-size: 0.92rem; color: var(--hud-text); letter-spacing: 0; }
.troop-picker .tp-sub { color: var(--hud-muted); }
.troop-picker .tp-btn { border-radius: var(--hud-r); border: 1px solid var(--hud-line-strong); background: var(--hud-raise); font-family: var(--hud-mono); }
.troop-picker .tp-btn:hover:not(:disabled) { border-color: var(--tp-accent); }
.troop-picker .tp-minmax { font-family: var(--hud-head); font-size: 0.64rem; }
.troop-picker .tp-value, .troop-picker .tp-input { font-family: var(--hud-mono); font-weight: 700; text-shadow: none; }
.troop-picker .tp-value { border-bottom-color: var(--hud-line-strong); }
.troop-picker .tp-unit, .troop-picker .tp-range { font-family: var(--hud-body); text-transform: none; letter-spacing: 0; }
.troop-picker .tp-confirm { background: var(--tp-accent); border-color: var(--tp-accent); color: #fff; font-weight: 700; box-shadow: none; }
.troop-picker[data-kind="occupation"] .tp-confirm, .troop-picker[data-kind="fortify"] .tp-confirm { color: #0b1220; }
.troop-picker .tp-confirm:hover:not(:disabled) { filter: brightness(1.08); background: var(--tp-accent); border-color: var(--tp-accent); }
.troop-picker .tp-extra { background: transparent; border: 1px solid rgba(239, 68, 68, 0.6); color: #fca5a5; font-family: var(--hud-body); }
.troop-picker .tp-extra:hover:not(:disabled) { background: rgba(239, 68, 68, 0.14); }

/* ------------------------------------------------------------------ diálogos --------- */
.ux-dialog { background: rgba(2, 6, 14, 0.62); backdrop-filter: blur(4px); z-index: var(--z-dialog); }
.ux-dialog-card, #game-screen ~ .modal .modal-content, .modal .modal-content {
    background: var(--hud-panel-solid);
    border: 1px solid var(--hud-line-strong);
    border-top: 3px solid var(--dlg-accent, var(--hud-sky));
    border-radius: var(--hud-r-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.ux-dialog-card h3, .modal .modal-content h3 { font-family: var(--hud-head); font-weight: 700; letter-spacing: -0.01em; color: var(--hud-text); text-shadow: none; }
.ux-dialog-body, .ux-dialog-body b { color: var(--hud-text); }
.ux-tip-kicker { font-family: var(--hud-head); color: var(--hud-sky); }
#ux-confirm { --dlg-accent: var(--hud-amber); }
#ux-confirm[data-tone="danger"] { --dlg-accent: var(--hud-red); }
#ux-confirm .ux-dialog-card { border-color: var(--hud-line-strong); border-top-color: var(--dlg-accent); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); }
#ux-confirm-yes { border: 1px solid var(--hud-line-strong); color: var(--hud-text); background: transparent; }
#ux-confirm[data-tone="danger"] #ux-confirm-yes { border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }
#ux-confirm[data-tone="danger"] #ux-confirm-yes:hover { background: rgba(239, 68, 68, 0.12); }

/* dados: atacante vermelho, defensor azul — as mesmas cores dos títulos */
.dice-overlay .dice-container { background: var(--hud-panel-solid); border: 1px solid var(--hud-line-strong); border-radius: var(--hud-r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65); }
.dice-overlay .dice-container h3 { font-family: var(--hud-head); }
.dice-group.attacker .die { background: #7f1d1d; border-color: #f87171; color: #fff; box-shadow: none; }
.dice-group.defender .die { background: #1e3a8a; border-color: #93c5fd; color: #fff; box-shadow: none; }
.dice-overlay .die { font-family: var(--hud-mono); border-radius: 8px; }
.dice-overlay .dice-result { font-family: var(--hud-head); }

/* ------------------------------------------------------------------ avisos ----------- */
/* Um componente para tudo que "avisa": toasts, eventos (troca de cartas, eliminação,
 * revolta) e erros. Empilham no topo, abaixo da barra; clique dispensa. */
#hud-notices {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
    z-index: var(--z-notice);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: min(460px, calc(100vw - 24px));
    pointer-events: none;
}
.hud-notice {
    --accent: var(--hud-sky);
    pointer-events: auto; cursor: pointer;
    display: flex; align-items: flex-start; gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: rgba(18, 26, 41, 0.97);
    border: 1px solid var(--hud-line-strong);
    border-left: 3px solid var(--accent);
    border-radius: var(--hud-r);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    font-family: var(--hud-body); font-size: 0.82rem; line-height: 1.45; color: var(--hud-text);
    opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hud-notice.show { opacity: 1; transform: translateY(0); }
.hud-notice.tone-success { --accent: var(--hud-green); }
.hud-notice.tone-error { --accent: var(--hud-red); }
.hud-notice.tone-warn { --accent: var(--hud-amber); }
.hud-notice-ic {
    flex: none; width: 20px; height: 20px; margin-top: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent);
}
.hud-notice.tone-event .hud-notice-ic { background: var(--accent); width: 8px; height: 8px; margin-top: 6px; }
.hud-notice-body { min-width: 0; flex: 1; }
.hud-notice-body b { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .hud-notice { transition: none; } }

/* início de turno: cartão central breve, na cor do jogador */
#turn-banner {
    --pc: var(--hud-sky);
    position: fixed; top: 38%; left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    z-index: var(--z-banner);
    display: flex; align-items: center; gap: 12px;
    padding: 14px 26px;
    background: rgba(18, 26, 41, 0.96);
    border: 1px solid var(--hud-line-strong);
    border-top: 3px solid var(--pc);
    border-radius: var(--hud-r-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    font-family: var(--hud-head); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
    color: var(--hud-text) !important; text-shadow: none !important;
    pointer-events: none; opacity: 0;
}
#turn-banner .tb-kicker { font-family: var(--hud-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hud-muted); display: block; }
#turn-banner .tb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); flex: none; }
#turn-banner.show { animation: hudTurn 1.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes hudTurn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
    12%, 75% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

/* ------------------------------------------------------------------ chat flutuante --- */
#floating-chat-window { background: var(--hud-panel-solid); border: 1px solid var(--hud-line-strong); border-radius: var(--hud-r-lg); box-shadow: var(--hud-shadow); }
#floating-chat-window .floating-header { background: transparent; border-bottom: 1px solid var(--hud-line); }
#floating-chat-window .floating-header span { font-family: var(--hud-head) !important; color: var(--hud-text) !important; text-shadow: none !important; }

/* ------------------------------------------------------------------ telas menores ----- */
@media (max-width: 1280px) {
    #game-screen .btn-hud .hud-label { display: none; }
    #game-screen .btn-hud { padding: 0 9px; }
    /* "Rodada 3" vira "R3" para caber ao lado das fases */
    #game-screen .turn-counter { font-size: 0; padding: 0 2px; }
    #game-screen .turn-counter #round-num::before { content: "R"; font-family: var(--hud-head); font-size: 0.7rem; color: var(--hud-muted); margin-right: 1px; }
}
@media (max-width: 900px) and (orientation: portrait), (orientation: landscape) and (max-height: 540px) {
    #game-screen .phase-step { font-size: 0.62rem; padding: 5px 4px; }
    #game-screen .game-dashboard { height: auto; }
    .hud-legend { border-radius: var(--hud-r); }
    /* gaveta de jogadores e painel de ação viram camadas sobre o mapa: fundo sólido */
    #game-screen .sidebar-left { background: var(--hud-bg); padding: 10px; }
    #game-screen .sidebar-right { background: var(--hud-panel-solid); }
}

/* ---------------------------------------------------------------------------
   Mapa Mundo (168 países, 16/out/2026): países pequenos ganham badge deslocado com
   linha tracejada até o país. Sem zoom só os grandes aparecem; a partir de 200%
   (map-zoomed) entram os pequenos, com a linha e o nome.
   --------------------------------------------------------------------------- */
#map-canvas.map-mode-mundo:not(.map-zoomed) .army-badge-group.badge-small { display: none; }
#map-canvas.map-mode-mundo:not(.names-small-zoomed) .terr-name-label.name-small { display: none; }
/* nome do badge mini: metade do tamanho (inclusive quando o painel de cartas força os nomes) */
#map-canvas.map-mode-mundo .terr-name-label.name-mini { font-size: calc(var(--name-fs, 7px) * 0.5); stroke-width: 0.25em; }
#map-canvas.map-mode-mundo.names-on:not(.names-zoomed) .terr-name-label.name-mini,
#map-canvas.map-mode-mundo.show-names:not(.names-zoomed) .terr-name-label.name-mini { font-size: calc(var(--name-fs-forced, 8px) * 0.5); }
#map-canvas .badge-leader { stroke: rgba(255, 255, 255, 0.78); stroke-dasharray: 2 1.5; }
#map-canvas .badge-leader-dot { fill: #ffffff; }
/* Nome + bônus do bloco como marca-d'água sobre o bloco: só com "Nomes" ligado; tamanho
   fixo em unidades do mapa (acompanha o zoom), transparente */
#map-canvas .continent-labels-layer.watermark { display: none; }
#map-canvas.names-on .continent-labels-layer.watermark { display: block; }
#map-canvas .continent-labels-layer.watermark .continent-label {
    /* claro com contorno escuro e sombra: legível sobre a cor do próprio bloco */
    fill: #f3f6ff; opacity: 0.6; font-weight: 900; letter-spacing: 0.08em;
    paint-order: stroke; stroke: rgba(4, 8, 18, 0.92); stroke-width: 0.16em; stroke-linejoin: round;
    filter: drop-shadow(0 0 1.2px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
}
#map-canvas .continent-labels-layer.watermark .continent-label .cl-bonus { fill: var(--cc, #f3f6ff); }
#map-canvas .continent-labels-layer.watermark .continent-label .cl-name { font-size: 0.62em; }
#map-canvas .continent-labels-layer.watermark .continent-label .cl-bonus { font-size: 1.15em; }
#map-canvas .continent-labels-layer.watermark .continent-label .cl-owner { font-size: 0.5em; letter-spacing: 0; }
#map-canvas .continent-labels-layer.watermark .continent-label.controlled { opacity: 0.85; }
/* Pontes intercontinentais: só com "Nomes" ligado, ou as do país sob o mouse / selecionado */
#map-canvas:not(.names-on) .inter-bridge { display: none; }
#map-canvas .inter-bridge.bridge-active { display: inline; stroke-opacity: 1; stroke-width: 1.8; }
/* fronteira entre blocos (subcontinentes) do Mundo: linha sombreada */
#map-canvas .continent-borders-halo { fill: none; stroke: rgba(0, 0, 0, 0.6); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
#map-canvas .continent-borders { fill: none; stroke: rgba(255, 255, 255, 0.9); stroke-width: 0.8; stroke-linejoin: round; stroke-linecap: round; }
#map-canvas.focus-mode .continent-borders-halo, #map-canvas.focus-mode .continent-borders { opacity: 0.35; }
#map-canvas.map-mode-mundo .army-badge-group.badge-small:not(.badge-mini) .army-badge-circle { stroke-dasharray: 1.5 1; }
/* badge mini (metade, sobre o próprio país): contorno cheio um pouco mais forte para ler no zoom */
#map-canvas.map-mode-mundo .army-badge-group.badge-mini .army-badge-circle { stroke-width: 1.1; }

/* ------------------------------------------------------------------ relatório de guerra */
/* Movido para war-report.css (compartilhado com o mobile): botão #btn-war-report.is-async e janela #war-report. */


/* ------------------------------------------------------------------ avisos e app ------ */
/* caixa "Avisos de sua vez / ícone de acesso / favoritos" (telas online e lobby) */
.notif-box { margin-top: 8px; padding: 8px 10px; border: 1px dashed rgba(255, 193, 7, 0.35); border-radius: 10px; background: rgba(255, 193, 7, 0.05); font-size: 0.7rem; display: flex; flex-direction: column; gap: 5px; }
.notif-box .notif-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notif-box .notif-k { color: #ffc107; font-weight: 700; }
.notif-box .notif-st { font-size: 0.64rem; color: var(--text-muted, #8A97AD); text-align: right; }
.notif-box .notif-st.on { color: #22C55E; }
.notif-box .notif-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.notif-box .notif-btns .btn { font-size: 0.66rem; padding: 4px 9px; }
.notif-box .notif-hint { font-size: 0.64rem; color: var(--text-muted, #8A97AD); margin-left: auto; }

/* --- Modo visitante (assistindo uma partida em andamento, 17/out/2026) --- */
.hud-spectator {
    position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 8000;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 12px 8px 14px;
    background: rgba(18, 26, 41, 0.97);
    border: 1px solid var(--hud-line-strong);
    border-left: 3px solid var(--hud-amber);
    border-radius: var(--hud-r);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    font-family: var(--hud-body); font-size: 0.82rem; color: var(--hud-text);
    white-space: nowrap;
}
.hud-spectator b { font-family: var(--hud-head); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hud-amber); }
.hud-spectator-eye { font-size: 1rem; line-height: 1; }
.hud-spectator .btn { margin-left: 4px; }
@media (max-width: 720px) { .hud-spectator { bottom: 8px; font-size: 0.76rem; gap: 6px; } }
