/* =========================================================
   RR EDUCAÇÃO | JORNADA DO MILIONÁRIO
   SISTEMA DE DESIGN UNIFICADO E 100% FIEL (CENÁRIOS 1 A 7)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;800;900&family=Fira+Code:wght@400;600;700&family=Lora:ital,wght@0,500;0,700;1,400&family=Orbitron:wght@400;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Rajdhani:wght@500;600;700&family=Space+Grotesk:wght@500;700&family=Space+Mono:wght@400;700&display=swap');

/* --- VARIÁVEIS BASE DA APLICAÇÃO --- */
:root {
    --bg-color: #0b132b;
    --panel-bg: rgba(17, 30, 64, 0.85);
    --panel-border: rgba(255, 215, 0, 0.3);
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.5);
    --cyan: #00ffff;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --wrong-red: #ff3333;
    --wrong-glow: rgba(255, 51, 51, 0.6);
    --correct-green: #00cc44;
    --correct-glow: rgba(0, 204, 68, 0.6);
    --blink-orange: #ff8c00;
    
    --hud-font: 'Segoe UI', sans-serif;
    --main-font: 'Segoe UI', sans-serif;
    --mono-font: monospace;
}

/* =========================================================
   CENÁRIO 1: CLÁSSICO DOURADO (theme-classic / 1)
   ========================================================= */
body[data-theme="1"], body[data-theme="classic"], body[data-theme="theme-classic"] {
    --bg-color: #0b132b;
    --panel-bg: rgba(17, 30, 64, 0.85);
    --panel-border: #ffd700;
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.4);
    --cyan: #00f0ff;
    --hud-font: 'Segoe UI', sans-serif;
    --main-font: 'Segoe UI', sans-serif;
}

body[data-theme="1"][data-phase="2"], body[data-theme="classic"][data-phase="2"] {
    --bg-color: #021a12;
    --panel-bg: rgba(7, 46, 33, 0.85);
    --gold: #2ecc71;
    --gold-glow: rgba(46, 204, 113, 0.4);
    --panel-border: #00ff88;
}

body[data-theme="1"][data-phase="3"], body[data-theme="classic"][data-phase="3"] {
    --bg-color: #0d0614;
    --panel-bg: rgba(26, 9, 43, 0.85);
    --gold: #00ffff;
    --gold-glow: rgba(0, 255, 255, 0.5);
    --panel-border: #ff007f;
}

body[data-theme="1"][data-phase="4"], body[data-theme="classic"][data-phase="4"] {
    --bg-color: #050505;
    --panel-bg: rgba(25, 25, 25, 0.9);
    --gold: #ffb703;
    --gold-glow: rgba(255, 183, 3, 0.7);
    --panel-border: #ffffff;
}

/* =========================================================
   CENÁRIO 2: NEON CYBER & HACKER MATRIX (EVOLUÇÃO 4 FASES)
   ========================================================= */
body[data-theme="2"], body[data-theme="neon"], body[data-theme="theme-pro-neon"] {
    --bg-color: #030208;
    --panel-bg: rgba(6, 15, 30, 0.92);
    --panel-border: rgba(0, 243, 255, 0.4);
    --gold: #ff007f;
    --gold-glow: rgba(255, 0, 127, 0.5);
    --cyan: #00f3ff;
    --hud-font: 'Fira Code', 'Space Grotesk', monospace;
    --main-font: 'Space Grotesk', sans-serif;
    --mono-font: 'Fira Code', monospace;
}

/* FASE 1: CIANO NEON */
body[data-theme="2"][data-phase="1"], body[data-theme="neon"][data-phase="1"] {
    --cyan: #00ffff;
    --panel-border: rgba(0, 255, 255, 0.4);
}

/* FASE 2: MAGENTA OVERDRIVE */
body[data-theme="2"][data-phase="2"], body[data-theme="neon"][data-phase="2"] {
    --cyan: #ff007f;
    --panel-border: rgba(255, 0, 127, 0.45);
    --gold: #ff007f;
}

/* FASE 3: SYNTHWAVE ROXO / MAGENTA */
body[data-theme="2"][data-phase="3"], body[data-theme="neon"][data-phase="3"] {
    --cyan: #a855f7;
    --panel-border: rgba(168, 85, 247, 0.45);
    --gold: #ff007f;
}

/* FASE 4: HACKER MATRIX GREEN (PERGUNTA DO MILHÃO / VIP LEVEL 15) */
body[data-theme="2"][data-phase="4"], body[data-theme="neon"][data-phase="4"] {
    --bg-color: #020803;
    --panel-bg: rgba(3, 18, 6, 0.94);
    --panel-border: #39ff14;
    --cyan: #39ff14;
    --gold: #39ff14;
    --gold-glow: rgba(57, 255, 20, 0.6);
}

/*  1. PAINEL SUPERIOR DO HUD */
body[data-theme="2"] .header,
body[data-theme="neon"] .header {
    background: linear-gradient(180deg, rgba(6, 15, 30, 0.95) 0%, rgba(3, 8, 20, 0.98) 100%);
    border: 1.5px solid var(--cyan);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: all 0.5s ease;
}

body[data-theme="2"] .lifeline-btn,
body[data-theme="neon"] .lifeline-btn {
    background: rgba(0, 243, 255, 0.08);
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all 0.3s ease;
}

body[data-theme="2"] .lifeline-btn:hover:not(:disabled) {
    background: var(--cyan);
    color: #030208;
    box-shadow: 0 0 15px var(--cyan);
}

body[data-theme="2"] .control-btn,
body[data-theme="neon"] .control-btn {
    background: rgba(255, 0, 127, 0.08);
    border: 1.5px solid var(--cyan);
    color: var(--cyan);
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

body[data-theme="2"] .control-btn:hover {
    background: var(--cyan);
    color: #030208;
    box-shadow: 0 0 15px var(--cyan);
}

body[data-theme="2"] .timer-container,
body[data-theme="neon"] .timer-container {
    font-family: 'Fira Code', 'Orbitron', monospace;
    font-size: 2.7rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: 0 0 15px var(--cyan);
}

/*  2. TERMINAL DE VALORES (BARRA LATERAL FUTURISTA) */
body[data-theme="2"] .right-panel,
body[data-theme="neon"] .right-panel {
    background: linear-gradient(180deg, rgba(3, 8, 20, 0.96) 0%, rgba(6, 15, 30, 0.98) 100%);
    border-left: 2px dashed var(--cyan);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.6);
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
    transition: all 0.5s ease;
}

body[data-theme="2"] .ladder-header {
    border-bottom: 1.5px dashed var(--cyan);
    padding-bottom: 12px;
}

body[data-theme="2"] .ladder-title {
    font-family: 'Fira Code', monospace;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan);
    letter-spacing: 2px;
}

body[data-theme="2"] .ladder-item {
    font-family: 'Fira Code', monospace;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    border: 1px dashed rgba(0, 243, 255, 0.25);
    background: rgba(6, 15, 30, 0.85);
    color: #e2e8f0;
    position: relative;
    padding: 6px 14px;
}

/* QUESTÕES JÁ RESPONDIDAS / PASSED: COR VIBRANTE NEON */
.ladder-item.passed,
body[data-theme="2"] .ladder-item.passed {
    opacity: 1 !important;
    color: #00ffcc !important;
    border: 1px solid rgba(0, 255, 204, 0.6) !important;
    background: linear-gradient(90deg, rgba(0, 255, 204, 0.2), rgba(0, 255, 204, 0.05)) !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px #00ffcc !important;
}

body[data-theme="2"] .ladder-item.active,
body[data-theme="neon"] .ladder-item.active,
body[data-theme="theme-pro-neon"] .ladder-item.active {
    background: linear-gradient(90deg, var(--cyan, #00f3ff), var(--gold, #ff007f)) !important;
    border: 2.2px solid var(--cyan, #00f3ff) !important;
    box-shadow: 0 0 30px var(--cyan, #00f3ff), inset 0 0 12px rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    transform: scale(1.06) translateX(-4px) !important;
    opacity: 1 !important;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important;
}

body[data-theme="2"] .ladder-item.active *,
body[data-theme="neon"] .ladder-item.active *,
body[data-theme="theme-pro-neon"] .ladder-item.active * {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px #ffffff, 0 0 18px var(--cyan, #00f3ff) !important;
    opacity: 1 !important;
}

/*  3. CAIXA DE PERGUNTA E ALTERNATIVAS */
body[data-theme="2"] .question-box,
body[data-theme="neon"] .question-box {
    position: relative;
    border: 1.5px dashed var(--cyan);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(6, 15, 30, 0.95) 0%, rgba(3, 8, 20, 0.98) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 243, 255, 0.05);
    transition: all 0.5s ease;
}

body[data-theme="2"] .question-box::before {
    display: none !important;
}

body[data-theme="2"] .option-btn,
body[data-theme="neon"] .option-btn {
    border-radius: 8px;
    border: 1.5px solid var(--cyan);
    background: linear-gradient(135deg, rgba(6, 15, 30, 0.95) 0%, rgba(12, 5, 25, 0.95) 100%);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: all 0.25s ease;
}

body[data-theme="2"] .option-btn:hover:not(:disabled) {
    border-color: #ffffff;
    box-shadow: 0 0 18px var(--cyan);
    transform: translateY(-2px);
}

body[data-theme="2"][data-phase="1"] .option-btn .letter {
    background: #00ffff;
    color: #030208;
    box-shadow: 0 0 10px #00ffff;
}

body[data-theme="2"][data-phase="2"] .option-btn {
    border-color: #ff007f;
}
body[data-theme="2"][data-phase="2"] .option-btn .letter {
    background: #ff007f;
    color: #ffffff;
    box-shadow: 0 0 10px #ff007f;
}

body[data-theme="2"][data-phase="3"] .option-btn {
    border-color: #a855f7;
}
body[data-theme="2"][data-phase="3"] .option-btn .letter {
    background: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 10px #a855f7;
}

body[data-theme="2"][data-phase="4"] .option-btn {
    background: linear-gradient(135deg, rgba(3, 20, 6, 0.95) 0%, rgba(1, 10, 3, 0.95) 100%);
    border: 1.5px solid #39ff14;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
body[data-theme="2"][data-phase="4"] .option-btn .letter {
    background: #39ff14;
    color: #030802;
    font-weight: 900;
    box-shadow: 0 0 10px #39ff14;
    font-family: 'Fira Code', monospace;
}
body[data-theme="2"][data-phase="4"] .option-btn:hover:not(:disabled) {
    border-color: #ffffff;
    box-shadow: 0 0 20px #39ff14;
}

/* =========================================================
   ESTADO DE SELEÇÃO DE RESPOSTA (PISCA INTERNO CIANO NEON) - EXCLUSIVO CENÁRIO 2
   ========================================================= */
body[data-theme="2"] .option-btn.selected,
body[data-theme="neon"] .option-btn.selected,
body[data-theme="theme-pro-neon"] .option-btn.selected,
body[data-theme="2"] .option-btn:active,
body[data-theme="neon"] .option-btn:active,
body[data-theme="theme-pro-neon"] .option-btn:active {
    background-image: none !important;
    border: 2.2px solid #00f3ff !important;
    color: #ffffff !important;
    transform: scale(1.02) !important;
    animation: cyberInsideCyanBlink 0.3s infinite alternate ease-in-out !important;
}

body[data-theme="2"] .option-btn.selected .letter,
body[data-theme="neon"] .option-btn.selected .letter,
body[data-theme="theme-pro-neon"] .option-btn.selected .letter {
    border: 1.5px solid #00f3ff !important;
    font-weight: 900 !important;
    animation: cyberLetterCyanBlink 0.3s infinite alternate ease-in-out !important;
}

body[data-theme="2"] .option-btn.selected .text,
body[data-theme="neon"] .option-btn.selected .text,
body[data-theme="theme-pro-neon"] .option-btn.selected .text,
body[data-theme="2"] .option-btn.selected span,
body[data-theme="neon"] .option-btn.selected span,
body[data-theme="theme-pro-neon"] .option-btn.selected span {
    color: #ffffff !important;
    text-shadow: 0 0 10px #ffffff, 0 0 16px #00f3ff !important;
    font-weight: 900 !important;
}

/* PISCA-PISCA DO PREENCHIMENTO INTERNO EM CIANO NEON VIA BACKGROUND-COLOR ANIMÁVEL VELOZ */
@keyframes cyberInsideCyanBlink {
    0% {
        background-color: rgba(0, 243, 255, 0.7);
        box-shadow: inset 0 0 26px rgba(0, 243, 255, 0.85), 0 0 22px rgba(0, 243, 255, 0.75);
    }
    100% {
        background-color: rgba(6, 15, 30, 0.95);
        box-shadow: inset 0 0 4px rgba(0, 243, 255, 0.1), 0 0 8px rgba(0, 243, 255, 0.25);
    }
}

@keyframes cyberLetterCyanBlink {
    0% {
        background-color: #00f3ff;
        color: #030208;
        box-shadow: 0 0 16px #00f3ff;
    }
    100% {
        background-color: rgba(0, 243, 255, 0.18);
        color: #ffffff;
        box-shadow: 0 0 4px rgba(0, 243, 255, 0.2);
    }
}

/* INTERROMPER A PISCADA NO RESULTADO E APLICAR VERDE (CORRETO) OU VERMELHO (ERRO) */
body[data-theme="2"] .option-btn.correct,
body[data-theme="neon"] .option-btn.correct,
body[data-theme="theme-pro-neon"] .option-btn.correct {
    animation: none !important;
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.95) 0%, rgba(10, 80, 40, 0.95) 100%) !important;
    border: 2.5px solid #2ed573 !important;
    box-shadow: 0 0 35px #2ed573, inset 0 0 15px rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    transform: scale(1.03) !important;
}

body[data-theme="2"] .option-btn.correct .letter,
body[data-theme="neon"] .option-btn.correct .letter,
body[data-theme="theme-pro-neon"] .option-btn.correct .letter {
    animation: none !important;
    background: #ffffff !important;
    color: #052e16 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px #2ed573 !important;
}

body[data-theme="2"] .option-btn.wrong,
body[data-theme="neon"] .option-btn.wrong,
body[data-theme="theme-pro-neon"] .option-btn.wrong {
    animation: none !important;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.95) 0%, rgba(90, 15, 25, 0.95) 100%) !important;
    border: 2.5px solid #ff4757 !important;
    box-shadow: 0 0 35px #ff4757, inset 0 0 15px rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
}

body[data-theme="2"] .option-btn.wrong .letter,
body[data-theme="neon"] .option-btn.wrong .letter,
body[data-theme="theme-pro-neon"] .option-btn.wrong .letter {
    animation: none !important;
    background: #ffffff !important;
    color: #450a0a !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px #ff4757 !important;
}

/* =========================================================
   CENÁRIO 3: BIBLIOTECA CLÁSSICA & CORREDORES DA SABEDORIA
   ========================================================= */
body[data-theme="3"], body[data-theme="emerald"], body[data-theme="theme-pro-emerald"] {
    --bg-color: #0f0905;
    --panel-bg: rgba(244, 232, 193, 0.94);
    --panel-border: #8c6d3f;
    --gold: #b8860b;
    --gold-glow: rgba(184, 134, 11, 0.3);
    --cyan: #6e471b;
    --text-light: #2b1810;
    --text-muted: #5c4228;
    --hud-font: 'Cinzel', serif;
    --main-font: 'Lora', serif;
    --mono-font: 'Cinzel', serif;
}

/* TRANSIÇÃO FLUIDA GLOBAL DA UI (0.8s ESCALONADO POR FASE) */
body[data-theme="3"] .header,
body[data-theme="3"] .question-box,
body[data-theme="3"] .option-btn,
body[data-theme="3"] .right-panel,
body[data-theme="3"] .ladder-item {
    transition: background-color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease, color 0.8s ease, transform 0.25s ease !important;
}

/* PAINEL SUPERIOR DO HUD */
body[data-theme="3"] .header,
body[data-theme="emerald"] .header {
    background: linear-gradient(135deg, rgba(244, 232, 193, 0.96), rgba(230, 212, 165, 0.98));
    border: 2px double #8c6d3f;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body[data-theme="3"] .lifeline-btn,
body[data-theme="emerald"] .lifeline-btn {
    background: #8c6d3f;
    color: #f4e8c1;
    border: 1px solid #5c4228;
    font-family: 'Cinzel', serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

body[data-theme="3"] .lifeline-btn:hover:not(:disabled) {
    background: #b8860b;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(184, 134, 11, 0.4);
}

body[data-theme="3"] .control-btn,
body[data-theme="emerald"] .control-btn {
    background: transparent;
    border: 1.5px solid #8c6d3f;
    color: #2b1810;
    font-family: 'Cinzel', serif;
}

body[data-theme="3"] .timer-container,
body[data-theme="emerald"] .timer-container {
    font-family: 'Cinzel', serif;
    color: #b8860b;
    text-shadow: none;
}

/* CAIXA DE PERGUNTA & ALTERNATIVAS Base */
body[data-theme="3"] .question-box,
body[data-theme="emerald"] .question-box {
    background: linear-gradient(135deg, rgba(244, 232, 193, 0.96) 0%, rgba(230, 212, 165, 0.98) 100%);
    color: #2b1810;
    border: 3px double #8c6d3f;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
}

body[data-theme="3"] .question-box::before {
    display: none !important;
}

body[data-theme="3"] .question-tag {
    background: #2b1810;
    color: #f4e8c1;
    border-color: #8c6d3f;
    font-family: 'Cinzel', serif;
}

body[data-theme="3"] .option-btn,
body[data-theme="emerald"] .option-btn {
    background: linear-gradient(135deg, rgba(255, 252, 242, 0.96) 0%, rgba(244, 232, 193, 0.96) 100%);
    color: #2b1810;
    border: 1.8px solid #8c6d3f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-family: 'Lora', serif;
}

body[data-theme="3"] .option-btn .letter,
body[data-theme="emerald"] .option-btn .letter {
    background: #8c6d3f;
    color: #f4e8c1;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    box-shadow: none;
}

body[data-theme="3"] .option-btn:hover:not(:disabled) {
    background: #ffffff;
    border-color: #b8860b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* TERMINAL DE VALORES EM PERGAMINHO / DIRETÓRIO DE BIBLIOTECA */
body[data-theme="3"] .right-panel,
body[data-theme="emerald"] .right-panel {
    background: linear-gradient(180deg, rgba(244, 232, 193, 0.96) 0%, rgba(225, 205, 155, 0.98) 100%);
    border-left: 3px double #8c6d3f;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.5);
    clip-path: none !important;
}

body[data-theme="3"] .ladder-title {
    font-family: 'Cinzel', serif;
    color: #2b1810;
    letter-spacing: 2px;
}

body[data-theme="3"] .ladder-item {
    font-family: 'Cinzel', serif;
    border: 1px solid rgba(140, 109, 63, 0.3);
    background: rgba(255, 255, 255, 0.5);
    color: #2b1810;
    clip-path: none !important;
    border-radius: 6px !important;
}

body[data-theme="3"] .ladder-item.active {
    background: linear-gradient(90deg, #b8860b, #8c6d3f) !important;
    border: 2px solid #5c4228 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

body[data-theme="3"] .ladder-item.passed {
    background: rgba(140, 109, 63, 0.18) !important;
    border-color: #8c6d3f !important;
    color: #5c4228 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* =========================================================
   MODAIS DE AJUDA NO CENÁRIO 3 (BIBLIOTECA) - ALTO CONTRASTE E LEGIBILIDADE
   ========================================================= */
body[data-theme="3"] .modal-content:not([data-result-tier]),
body[data-theme="emerald"] .modal-content:not([data-result-tier]),
body[data-theme="theme-pro-emerald"] .modal-content:not([data-result-tier]) {
    background: linear-gradient(135deg, rgba(20, 12, 6, 0.96) 0%, rgba(10, 6, 3, 0.98) 100%) !important;
    border: 2.5px double #b8860b !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(184, 134, 11, 0.15) !important;
    color: #f4e8c1 !important;
}

body[data-theme="3"] .modal-content:not([data-result-tier]) .modal-title,
body[data-theme="emerald"] .modal-content:not([data-result-tier]) .modal-title {
    color: #ffd700 !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6) !important;
    font-family: 'Cinzel', serif !important;
}

body[data-theme="3"] .modal-content:not([data-result-tier]) p,
body[data-theme="emerald"] .modal-content:not([data-result-tier]) p {
    color: #f4e8c1 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
}

body[data-theme="3"] .expert-name,
body[data-theme="emerald"] .expert-name {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6) !important;
    font-weight: 800 !important;
    font-family: 'Cinzel', serif !important;
}

body[data-theme="3"] .expert-card,
body[data-theme="emerald"] .expert-card {
    background: linear-gradient(135deg, rgba(43, 24, 16, 0.9) 0%, rgba(20, 10, 6, 0.95) 100%) !important;
    border: 1.5px solid #8c6d3f !important;
    color: #f4e8c1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    font-family: 'Lora', serif !important;
}

/* =========================================================
   CENÁRIO 4: JORNADA DAS ARTES (DO ESBOÇO À OBRA-PRIMA)
   EVOLUÇÃO EM 4 FASES DA UI DA DISCIPLINA DE ARTES
   ========================================================= */
body[data-theme="4"], body[data-theme="sunset"], body[data-theme="theme-pro-sunset"] {
    --bg-color: #040914;
    --panel-bg: rgba(255, 255, 255, 0.94);
    --panel-border: rgba(2, 132, 199, 0.35);
    --gold: #0284c7;
    --gold-glow: rgba(2, 132, 199, 0.4);
    --cyan: #00f0ff;
    --text-light: #0f172a;
    --text-muted: #475569;
    --hud-font: 'Space Grotesk', sans-serif;
    --main-font: 'Space Grotesk', sans-serif;
    --mono-font: 'JetBrains Mono', monospace;
}

/* TRANSIÇÃO DE COR DA UI ENTRE AS FASES DA ARTE (0.8s) */
body[data-theme="4"] .header,
body[data-theme="4"] .question-box,
body[data-theme="4"] .option-btn,
body[data-theme="4"] .right-panel,
body[data-theme="4"] .ladder-item,
body[data-theme="4"] .question-tag {
    transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease, color 0.8s ease, transform 0.25s ease !important;
}

/* ---------------------------------------------------------
    FASE 1: O ESBOÇO / STORYBOARD (GRAFITE, PAPEL CROQUI & TEXTURA DE RASCUNHO EXCLUSIVA EM ESCALA DE CINZA)
   --------------------------------------------------------- */
body[data-theme="4"][data-phase="1"] .header {
    background: 
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.15), rgba(148, 163, 184, 0.15) 2px, transparent 2px, transparent 8px),
        linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    border: 2px dashed #475569 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    border-radius: 16px !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .lifeline-btn,
body[data-theme="4"][data-phase="1"] .control-btn {
    background: 
        repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.12) 1.5px, transparent 1.5px, transparent 6px),
        #e2e8f0 !important;
    border: 1.5px dashed #475569 !important;
    color: #334155 !important;
    border-radius: 20px !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .exit-btn,
body[data-theme="4"][data-phase="1"] .control-btn.exit-btn {
    background: #0f172a !important;
    border: 1.5px dashed #ffffff !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    filter: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    opacity: 1 !important;
}

body[data-theme="4"][data-phase="1"] .exit-btn:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #0f172a !important;
}

body[data-theme="4"][data-phase="1"] .timer-container {
    color: #334155 !important;
    text-shadow: none !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .question-box {
    background: 
        repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.18) 2px, transparent 2px, transparent 9px),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    color: #0f172a !important;
    border: 2.5px dashed #475569 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 16px !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .question-tag {
    background: #334155 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background: 
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.16) 2px, transparent 2px, transparent 8px),
        linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    color: #0f172a !important;
    border: 2px dashed #64748b !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .option-btn .letter {
    background: #334155 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .right-panel {
    background: 
        repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.14) 2px, transparent 2px, transparent 8px),
        linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border-left: 2px dashed #475569 !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .ladder-title {
    color: #334155 !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .ladder-item {
    background: 
        repeating-linear-gradient(45deg, rgba(203, 213, 225, 0.25), rgba(203, 213, 225, 0.25) 1.5px, transparent 1.5px, transparent 6px),
        rgba(255, 255, 255, 0.75) !important;
    color: #334155 !important;
    border-bottom: 1px dashed #94a3b8 !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .ladder-item.passed {
    background: rgba(148, 163, 184, 0.3) !important;
    border: 1px dashed #475569 !important;
    color: #0f172a !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .ladder-item.passed span {
    color: #0f172a !important;
}

body[data-theme="4"][data-phase="1"] .ladder-item.safe-zone {
    background: rgba(100, 116, 139, 0.22) !important;
    border: 1.5px dashed #334155 !important;
    color: #0f172a !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .ladder-item.safe-zone span {
    color: #0f172a !important;
}

body[data-theme="4"][data-phase="1"] .ladder-item.active {
    background: #334155 !important;
    border: 2px dashed #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .ladder-item.active span {
    color: #ffffff !important;
    text-shadow: none !important;
}

/* ---------------------------------------------------------
    FASE 2: A ENTRADA DA COR (AQUARELA TRADICIONAL & PASTÉIS)
   --------------------------------------------------------- */
body[data-theme="4"][data-phase="2"] .header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 249, 255, 0.96)) !important;
    border: 2px solid #38bdf8 !important;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.2) !important;
}

body[data-theme="4"][data-phase="2"] .lifeline-btn {
    background: rgba(56, 189, 248, 0.1) !important;
    border: 1.5px solid #38bdf8 !important;
    color: #0284c7 !important;
}

body[data-theme="4"][data-phase="2"] .question-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 249, 255, 0.98) 100%) !important;
    color: #0f172a !important;
    border: 2px solid #38bdf8 !important;
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.25) !important;
}

body[data-theme="4"][data-phase="2"] .question-tag {
    background: linear-gradient(90deg, #38bdf8, #c084fc) !important;
    color: #ffffff !important;
}

body[data-theme="4"][data-phase="2"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 249, 255, 0.96) 100%) !important;
    border: 1.8px solid #7dd3fc !important;
    color: #0f172a !important;
}

body[data-theme="4"][data-phase="2"] .option-btn .letter {
    background: linear-gradient(135deg, #38bdf8, #c084fc) !important;
    color: #ffffff !important;
}

body[data-theme="4"][data-phase="2"] .right-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.98) 100%) !important;
    border-left: 2px solid #38bdf8 !important;
}

/* ---------------------------------------------------------
    FASE 3: ARTE MODERNA & EXPRESSIONISMO (TINTAS VIBRANTES)
   --------------------------------------------------------- */
body[data-theme="4"][data-phase="3"] .header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 245, 255, 0.98)) !important;
    border: 2px solid #ff007f !important;
    box-shadow: 0 8px 30px rgba(255, 0, 127, 0.25) !important;
}

body[data-theme="4"][data-phase="3"] .lifeline-btn {
    background: rgba(255, 0, 127, 0.08) !important;
    border: 1.5px solid #ff007f !important;
    color: #ff007f !important;
}

body[data-theme="4"][data-phase="3"] .question-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(253, 242, 248, 0.98) 100%) !important;
    color: #0f172a !important;
    border: 2.5px solid #ff007f !important;
    box-shadow: inset 0 0 20px rgba(255, 0, 127, 0.08), 0 10px 35px rgba(0, 240, 255, 0.25) !important;
}

body[data-theme="4"][data-phase="3"] .question-tag {
    background: linear-gradient(90deg, #ff007f, #00f0ff) !important;
    color: #ffffff !important;
}

body[data-theme="4"][data-phase="3"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 245, 255, 0.98) 100%) !important;
    border: 2px solid #ff007f !important;
    box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.1), 0 4px 15px rgba(255, 0, 127, 0.15) !important;
}

body[data-theme="4"][data-phase="3"] .option-btn .letter {
    background: linear-gradient(135deg, #ff007f, #00f0ff) !important;
    color: #ffffff !important;
}

body[data-theme="4"][data-phase="3"] .right-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(253, 242, 248, 0.98) 100%) !important;
    border-left: 2.5px solid #ff007f !important;
}

/* ---------------------------------------------------------
    FASE 4: A OBRA-PRIMA (MOLDURA DE ARTE CLÁSSICA E BRILHO VIP)
   --------------------------------------------------------- */
body[data-theme="4"][data-phase="4"] .header,
body[data-theme="4"].pergunta-milhao .header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 243, 199, 0.99)) !important;
    border: 2.5px double #ffd700 !important;
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.45) !important;
}

body[data-theme="4"][data-phase="4"] .question-box,
body[data-theme="4"].pergunta-milhao .question-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(254, 243, 199, 0.99) 100%) !important;
    color: #0f172a !important;
    border: 3.5px double #ffd700 !important;
    box-shadow: inset 0 0 25px rgba(255, 215, 0, 0.25), 0 0 45px rgba(255, 215, 0, 0.5) !important;
}

body[data-theme="4"][data-phase="4"] .question-tag,
body[data-theme="4"].pergunta-milhao .question-tag {
    background: linear-gradient(90deg, #ffd700, #ff007f) !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    box-shadow: 0 0 15px #ffd700 !important;
}

body[data-theme="4"][data-phase="4"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="4"].pergunta-milhao .option-btn:not(.selected):not(.correct):not(.wrong) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(254, 243, 199, 0.98) 100%) !important;
    border: 2px solid #ffd700 !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3) !important;
}

body[data-theme="4"][data-phase="4"] .option-btn .letter,
body[data-theme="4"].pergunta-milhao .option-btn .letter {
    background: linear-gradient(135deg, #ffd700, #b8860b) !important;
    color: #000000 !important;
    font-weight: 900 !important;
}

body[data-theme="4"][data-phase="4"] .right-panel,
body[data-theme="4"].pergunta-milhao .right-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 243, 199, 0.99) 100%) !important;
    border-left: 3px double #ffd700 !important;
    box-shadow: -8px 0 35px rgba(255, 215, 0, 0.4) !important;
}

/* TERMINAL DE VALORES NO TEMA 4 */
body[data-theme="4"] .ladder-title {
    font-family: 'Space Grotesk', sans-serif !important;
    color: #0284c7 !important;
    letter-spacing: 2px !important;
    font-weight: 800 !important;
}

body[data-theme="4"] .ladder-item {
    font-family: 'Space Grotesk', sans-serif !important;
    color: #334155 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    font-weight: 600 !important;
    opacity: 0.75 !important;
}

body[data-theme="4"] .ladder-item.passed {
    background: rgba(2, 132, 199, 0.12) !important;
    border: 1px solid rgba(2, 132, 199, 0.35) !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

body[data-theme="4"] .ladder-item.passed span {
    color: #0f172a !important;
}

body[data-theme="4"] .ladder-item.safe-zone {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08)) !important;
    border: 1.5px solid #d97706 !important;
    color: #92400e !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}

body[data-theme="4"] .ladder-item.safe-zone span {
    color: #78350f !important;
    font-weight: 900 !important;
}

body[data-theme="4"] .ladder-item.safe-zone.passed {
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.22), rgba(2, 132, 199, 0.10)) !important;
    border: 1.5px solid #0284c7 !important;
    color: #0369a1 !important;
}

body[data-theme="4"] .ladder-item.safe-zone.passed span {
    color: #0369a1 !important;
    font-weight: 900 !important;
}

body[data-theme="4"] .ladder-item.active {
    background: linear-gradient(90deg, #0284c7, #7c3aed) !important;
    border: 2px solid #00f0ff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45) !important;
    font-weight: 900 !important;
    transform: scale(1.05) translateX(-4px) !important;
}

body[data-theme="4"] .ladder-item.active span {
    color: #ffffff !important;
    text-shadow: 0 0 10px #00f0ff !important;
}

/* =========================================================
   MODAIS DE AJUDA NO CENÁRIO 4 (ARTES) - ESTILIZAÇÃO E TEXTURA INTEGRADA POR FASE
   ========================================================= */
body[data-theme="4"] .modal-content:not([data-result-tier]),
body[data-theme="sunset"] .modal-content:not([data-result-tier]),
body[data-theme="theme-pro-sunset"] .modal-content:not([data-result-tier]) {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.97) 100%) !important;
    border: 2px dashed rgba(2, 132, 199, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    color: #ffffff !important;
}

body[data-theme="4"][data-phase="1"] .modal-content:not([data-result-tier]),
body[data-theme="4"].fase-1 .modal-content:not([data-result-tier]) {
    background: 
        repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.14), rgba(148, 163, 184, 0.14) 2px, transparent 2px, transparent 9px),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 2.5px dashed #475569 !important;
    color: #0f172a !important;
}

body[data-theme="4"][data-phase="1"] .modal-content:not([data-result-tier]) .modal-title,
body[data-theme="4"].fase-1 .modal-content:not([data-result-tier]) .modal-title {
    color: #334155 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

body[data-theme="4"][data-phase="1"] .modal-content:not([data-result-tier]) p,
body[data-theme="4"].fase-1 .modal-content:not([data-result-tier]) p {
    color: #0f172a !important;
    font-weight: 700 !important;
}

body[data-theme="4"][data-phase="1"] .expert-card,
body[data-theme="4"].fase-1 .expert-card {
    background: 
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.16) 2px, transparent 2px, transparent 8px),
        linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    color: #0f172a !important;
    border: 2px dashed #64748b !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

body[data-theme="4"][data-phase="1"] .expert-name,
body[data-theme="4"].fase-1 .expert-name {
    color: #334155 !important;
    font-weight: 900 !important;
}

body[data-theme="4"]:not([data-phase="1"]) .expert-card,
body[data-theme="sunset"] .expert-card,
body[data-theme="theme-pro-sunset"] .expert-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 1.5px solid rgba(2, 132, 199, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="4"]:not([data-phase="1"]) .expert-name,
body[data-theme="sunset"] .expert-name,
body[data-theme="theme-pro-sunset"] .expert-name {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5) !important;
    font-weight: 800 !important;
}

/* =========================================================
   ESTADOS DE SELEÇÃO, ACERTO E ERRO DAS ALTERNATIVAS (IMPERATIVO GLOBAL)
   ========================================================= */

/*  FASE 1: PISCAR DE SUSPENSE EM ESCALA DE CINZA / GRAFITE */
body[data-theme="4"][data-phase="1"] .option-btn.selected {
    animation: blinkGrayscaleSuspense 0.35s infinite alternate !important;
    transform: scale(1.03) !important;
    opacity: 1 !important;
    filter: grayscale(100%) !important;
}

body[data-theme="4"][data-phase="1"] .option-btn.selected * {
    color: inherit !important;
}

body[data-theme="4"][data-phase="1"] .option-btn.selected .letter {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px #ffffff !important;
}

/*  FASES 2, 3 E 4 E DEMAIS CENÁRIOS: PISCAR DE SUSPENSE EM AMARELO / LARANJA */
body[data-theme="4"][data-phase="2"] .option-btn.selected,
body[data-theme="4"][data-phase="3"] .option-btn.selected,
body[data-theme="4"][data-phase="4"] .option-btn.selected,
body[data-theme="4"] .option-btn.selected,
body[data-theme="3"] .option-btn.selected,
body[data-theme="2"] .option-btn.selected,
body[data-theme="1"] .option-btn.selected,
body .option-btn.selected {
    animation: blinkYellowSuspense 0.35s infinite alternate !important;
    transform: scale(1.03) !important;
    opacity: 1 !important;
    filter: none !important;
}

body[data-theme="4"][data-phase="2"] .option-btn.selected *,
body[data-theme="4"][data-phase="3"] .option-btn.selected *,
body[data-theme="4"][data-phase="4"] .option-btn.selected *,
body[data-theme="4"] .option-btn.selected *,
body[data-theme="3"] .option-btn.selected *,
body .option-btn.selected * {
    color: #000000 !important;
}

body[data-theme="4"][data-phase="2"] .option-btn.selected .letter,
body[data-theme="4"][data-phase="3"] .option-btn.selected .letter,
body[data-theme="4"][data-phase="4"] .option-btn.selected .letter,
body[data-theme="4"] .option-btn.selected .letter,
body[data-theme="3"] .option-btn.selected .letter,
body .option-btn.selected .letter {
    background: #ffffff !important;
    color: #000000 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px #ffffff !important;
    filter: none !important;
}

/* SINTAXE VÁLIDA W3C: ZERO !IMPORTANT DENTRO DE @KEYFRAMES */
@keyframes blinkGrayscaleSuspense {
    0% {
        background-color: #334155;
        border-color: #ffffff;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), inset 0 0 10px #334155;
        color: #ffffff;
    }
    100% {
        background-color: #e2e8f0;
        border-color: #0f172a;
        box-shadow: 0 0 35px #ffffff, 0 0 20px #94a3b8;
        color: #0f172a;
    }
}

@keyframes blinkYellowSuspense {
    0% {
        background-color: #ffd700;
        border-color: #ffffff;
        box-shadow: 0 0 25px #ffd700, inset 0 0 10px #ffffff;
        color: #000000;
    }
    100% {
        background-color: #ff8c00;
        border-color: #ffffff;
        box-shadow: 0 0 45px #ffffff, 0 0 25px #ff8c00, inset 0 0 15px #ffffff;
        color: #000000;
    }
}

/* RESPOSTA CORRETA (VERDE DE ACERTO) */
body .option-btn.correct,
body[data-theme="4"][data-phase="1"] .option-btn.correct,
body[data-theme="4"][data-phase="2"] .option-btn.correct,
body[data-theme="4"][data-phase="3"] .option-btn.correct,
body[data-theme="4"][data-phase="4"] .option-btn.correct,
body[data-theme="4"] .option-btn.correct {
    background: #00cc44 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    filter: none !important;
    box-shadow: 0 0 30px #00cc44, inset 0 0 10px rgba(255, 255, 255, 0.4) !important;
}

body .option-btn.correct .letter,
body[data-theme="4"][data-phase="1"] .option-btn.correct .letter,
body[data-theme="4"][data-phase="2"] .option-btn.correct .letter,
body[data-theme="4"][data-phase="3"] .option-btn.correct .letter,
body[data-theme="4"][data-phase="4"] .option-btn.correct .letter,
body[data-theme="4"] .option-btn.correct .letter {
    background: #ffffff !important;
    color: #00cc44 !important;
    filter: none !important;
}

/* RESPOSTA INCORRETA (VERMELHO DE ERRO) */
body .option-btn.wrong,
body[data-theme="4"][data-phase="1"] .option-btn.wrong,
body[data-theme="4"][data-phase="2"] .option-btn.wrong,
body[data-theme="4"][data-phase="3"] .option-btn.wrong,
body[data-theme="4"][data-phase="4"] .option-btn.wrong,
body[data-theme="4"] .option-btn.wrong {
    background: #ff3333 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    filter: none !important;
    box-shadow: 0 0 30px #ff3333, inset 0 0 10px rgba(255, 255, 255, 0.4) !important;
}

body .option-btn.wrong .letter,
body[data-theme="4"][data-phase="1"] .option-btn.wrong .letter,
body[data-theme="4"][data-phase="2"] .option-btn.wrong .letter,
body[data-theme="4"][data-phase="3"] .option-btn.wrong .letter,
body[data-theme="4"][data-phase="4"] .option-btn.wrong .letter,
body[data-theme="4"] .option-btn.wrong .letter {
    background: #ffffff !important;
    color: #ff3333 !important;
    filter: none !important;
}

/* =========================================================
   CENÁRIO 5: ASTROFÍSICA & COSMOLOGIA (theme-pro-arcade / 5 / arcade)
   EVOLUÇÃO EM 4 FASES DA UI DE ASTROFÍSICA
   ========================================================= */
body[data-theme="5"], body[data-theme="arcade"], body[data-theme="theme-pro-arcade"] {
    --bg-color: #030712;
    --panel-bg: rgba(10, 18, 42, 0.85);
    --panel-border: rgba(0, 240, 255, 0.35);
    --gold: #ffd700;
    --gold-glow: rgba(255, 215, 0, 0.7);
    --cyan: #00f0ff;
    --hud-font: 'Orbitron', sans-serif;
    --main-font: 'Rajdhani', sans-serif;
    --mono-font: 'Orbitron', monospace;
}

body[data-theme="5"] .header,
body[data-theme="5"] .question-box,
body[data-theme="5"] .option-btn,
body[data-theme="5"] .right-panel,
body[data-theme="5"] .ladder-item,
body[data-theme="5"] .question-tag {
    transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease, color 0.8s ease, transform 0.25s ease !important;
}

/* ---------------------------------------------------------
    TEXTURAS E ESTILOS GERAIS DA UI (VIDRO CÓSMICO / TITÂNIO FUMÊ)
   --------------------------------------------------------- */
body[data-theme="5"] .question-box,
body[data-theme="5"] .card-pergunta,
body[data-theme="5"] .right-panel,
body[data-theme="5"] .escada-valores-container,
body[data-theme="5"] .header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.70) 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
    border-radius: 16px !important;
}

/* =========================================================
   MODAIS DE AJUDA NO CENÁRIO 5 (UNIVERSO) - ESTILIZAÇÃO CÓSMICA / ESTELAR INTEGRADA
   ========================================================= */
body[data-theme="5"] .modal-content:not([data-result-tier]),
body[data-theme="arcade"] .modal-content:not([data-result-tier]),
body[data-theme="theme-pro-arcade"] .modal-content:not([data-result-tier]) {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.96) 100%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.8px solid rgba(0, 240, 255, 0.5) !important;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
}

body[data-theme="5"] .modal-content:not([data-result-tier]) .modal-title,
body[data-theme="arcade"] .modal-content:not([data-result-tier]) .modal-title {
    color: #ffd700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
    font-family: 'Orbitron', sans-serif !important;
}

body[data-theme="5"] .modal-content:not([data-result-tier]) p,
body[data-theme="arcade"] .modal-content:not([data-result-tier]) p {
    color: #e2e8f0 !important;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4) !important;
    font-weight: 700 !important;
}

body[data-theme="5"] .expert-card,
body[data-theme="arcade"] .expert-card,
body[data-theme="theme-pro-arcade"] .expert-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    backdrop-filter: blur(8px) !important;
    border: 1.5px solid rgba(0, 240, 255, 0.4) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-family: 'Rajdhani', sans-serif !important;
}

body[data-theme="5"] .expert-name,
body[data-theme="arcade"] .expert-name,
body[data-theme="theme-pro-arcade"] .expert-name {
    color: #00f0ff !important;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.7) !important;
    font-weight: 800 !important;
    font-family: 'Orbitron', sans-serif !important;
}

body[data-theme="5"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="5"] .btn-alternativa {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    border-radius: 12px !important;
}

body[data-theme="5"] .option-btn:hover:not(.selected):not(.correct):not(.wrong),
body[data-theme="5"] .btn-alternativa:hover {
    background: linear-gradient(180deg, rgba(51, 65, 85, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 15px rgba(56, 189, 248, 0.4) !important;
}

/* ---------------------------------------------------------
    FASE 1: CÉU PROFUNDO & INSTRUMENTOS DE OBSERVAÇÃO
   --------------------------------------------------------- */
/* ---------------------------------------------------------
    FASE 1: CÉU PROFUNDO & OBSERVATÓRIO (TEXTURA DE BLUEPRINT E GRAFITE MILITAR)
   --------------------------------------------------------- */
body[data-theme="5"][data-phase="1"] .header {
    background: 
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.08), rgba(148, 163, 184, 0.08) 2px, transparent 2px, transparent 10px),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.98)) !important;
    border: 1.5px solid #64748b !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    border-radius: 16px !important;
}

body[data-theme="5"][data-phase="1"] .lifeline-btn,
body[data-theme="5"][data-phase="1"] .control-btn {
    background: 
        repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.06) 1.5px, transparent 1.5px, transparent 6px),
        rgba(30, 41, 59, 0.8) !important;
    border: 1.5px solid #475569 !important;
    color: #e2e8f0 !important;
    border-radius: 12px !important;
    font-family: 'Orbitron', sans-serif !important;
}

body[data-theme="5"][data-phase="1"] .question-box {
    background: 
        repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.07), rgba(148, 163, 184, 0.07) 2px, transparent 2px, transparent 12px),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(3, 7, 18, 0.98) 100%) !important;
    color: #f8fafc !important;
    border: 1.5px solid #64748b !important;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.12), 0 8px 30px rgba(0, 0, 0, 0.6) !important;
    border-radius: 16px !important;
}

body[data-theme="5"][data-phase="1"] .question-tag {
    background: #334155 !important;
    color: #e2e8f0 !important;
    border: 1px solid #64748b !important;
    font-family: 'Orbitron', sans-serif !important;
}

body[data-theme="5"][data-phase="1"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background: 
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.06) 2px, transparent 2px, transparent 8px),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(3, 7, 18, 0.95) 100%) !important;
    color: #f8fafc !important;
    border: 1.5px solid #475569 !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    border-radius: 12px !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 1.1rem !important;
}

body[data-theme="5"][data-phase="1"] .option-btn .letter {
    background: #334155 !important;
    color: #ffffff !important;
    border: 1px solid #64748b !important;
    border-radius: 8px !important;
    font-family: 'Orbitron', sans-serif !important;
}

body[data-theme="5"][data-phase="1"] .right-panel {
    background: 
        repeating-linear-gradient(-45deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.06) 2px, transparent 2px, transparent 10px),
        linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(3, 7, 18, 0.98) 100%) !important;
    border-left: 1.5px solid #64748b !important;
}

/* ---------------------------------------------------------
    FASE 2: CAMPO ESTELAR ATIVO & ESTAÇÃO ESPACIAL (TEXTURA DE COLMEIA SCI-FI & VIDRO NEON CIANO)
   --------------------------------------------------------- */
body[data-theme="5"][data-phase="2"] .header {
    background: 
        radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12), transparent 70%),
        repeating-linear-gradient(60deg, rgba(0, 240, 255, 0.05) 0px, rgba(0, 240, 255, 0.05) 1px, transparent 1px, transparent 12px),
        linear-gradient(135deg, rgba(6, 18, 38, 0.96), rgba(3, 10, 24, 0.98)) !important;
    border: 1.8px solid #00f0ff !important;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.1) !important;
}

body[data-theme="5"][data-phase="2"] .lifeline-btn,
body[data-theme="5"][data-phase="2"] .control-btn {
    background: 
        repeating-linear-gradient(-60deg, rgba(0, 240, 255, 0.06), rgba(0, 240, 255, 0.06) 1.5px, transparent 1.5px, transparent 8px),
        rgba(0, 240, 255, 0.1) !important;
    border: 1.5px solid #00f0ff !important;
    color: #00f0ff !important;
    font-family: 'Orbitron', sans-serif !important;
}

body[data-theme="5"][data-phase="2"] .question-box {
    background: 
        radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.15), transparent 75%),
        repeating-linear-gradient(60deg, rgba(0, 240, 255, 0.06) 0px, rgba(0, 240, 255, 0.06) 1px, transparent 1px, transparent 14px),
        linear-gradient(135deg, rgba(6, 18, 38, 0.97) 0%, rgba(3, 10, 24, 0.99) 100%) !important;
    color: #ffffff !important;
    border: 1.8px solid #00f0ff !important;
    box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.15), 0 8px 32px rgba(0, 240, 255, 0.28) !important;
}

body[data-theme="5"][data-phase="2"] .question-tag {
    background: linear-gradient(90deg, #00f0ff, #0284c7) !important;
    color: #030712 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6) !important;
}

body[data-theme="5"][data-phase="2"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background: 
        repeating-linear-gradient(-60deg, rgba(0, 240, 255, 0.05) 0px, rgba(0, 240, 255, 0.05) 1px, transparent 1px, transparent 10px),
        linear-gradient(135deg, rgba(6, 18, 38, 0.95) 0%, rgba(3, 10, 24, 0.96) 100%) !important;
    border: 1.5px solid #00f0ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 1.1rem !important;
}

body[data-theme="5"][data-phase="2"] .option-btn .letter {
    background: #00f0ff !important;
    color: #030712 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5) !important;
}

body[data-theme="5"][data-phase="2"] .right-panel {
    background: 
        repeating-linear-gradient(60deg, rgba(0, 240, 255, 0.05) 0px, rgba(0, 240, 255, 0.05) 1px, transparent 1px, transparent 12px),
        linear-gradient(180deg, rgba(6, 18, 38, 0.96) 0%, rgba(3, 10, 24, 0.98) 100%) !important;
    border-left: 2px solid #00f0ff !important;
    box-shadow: -8px 0 25px rgba(0, 240, 255, 0.25) !important;
}

/* ---------------------------------------------------------
    FASE 3: SISTEMA SOLAR & SOL CENTRAL (TEXTURA DE VIDRO SOLAR DOURADO & POEIRA ESTELAR BRONZE)
   --------------------------------------------------------- */
body[data-theme="5"][data-phase="3"] .header {
    background: 
        radial-gradient(circle at 50% -20%, rgba(245, 158, 11, 0.28), transparent 75%),
        linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.98)) !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.38), inset 0 0 12px rgba(245, 158, 11, 0.15) !important;
}

body[data-theme="5"][data-phase="3"] .lifeline-btn,
body[data-theme="5"][data-phase="3"] .control-btn {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1.5px solid #f59e0b !important;
    color: #fbbf24 !important;
    font-family: 'Orbitron', sans-serif !important;
}

body[data-theme="5"][data-phase="3"] .question-box {
    background: 
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.3), transparent 70%),
        linear-gradient(135deg, rgba(30, 27, 75, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    color: #ffffff !important;
    border: 2px solid #f59e0b !important;
    box-shadow: inset 0 0 25px rgba(245, 158, 11, 0.2), 0 0 35px rgba(245, 158, 11, 0.35) !important;
}

body[data-theme="5"][data-phase="3"] .question-tag {
    background: linear-gradient(90deg, #f59e0b, #d97706) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6) !important;
}

body[data-theme="5"][data-phase="3"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background: 
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.15), transparent 70%),
        linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(15, 23, 42, 0.96) 100%) !important;
    border: 1.8px solid #f59e0b !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25) !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 1.1rem !important;
}

body[data-theme="5"][data-phase="3"] .option-btn .letter {
    background: linear-gradient(135deg, #f59e0b, #b45309) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
}

body[data-theme="5"][data-phase="3"] .right-panel {
    background: 
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.2), transparent 70%),
        linear-gradient(180deg, rgba(30, 27, 75, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border-left: 2px solid #f59e0b !important;
    box-shadow: -8px 0 30px rgba(245, 158, 11, 0.3) !important;
}

/* ---------------------------------------------------------
    FASE 4: BURACO NEGRO GARGANTUA (OBSIDIANA REFRATÁRIA & BORDAS INCANDESCENTES DE PLASMA RELATIVÍSTICO)
   --------------------------------------------------------- */
body[data-theme="5"][data-phase="4"] .header,
body[data-theme="5"].pergunta-milhao .header {
    background: 
        radial-gradient(circle at 50% -20%, rgba(249, 115, 22, 0.25), transparent 75%),
        linear-gradient(135deg, rgba(15, 12, 8, 0.98), rgba(5, 5, 8, 0.99)) !important;
    border: 2.5px solid #f97316 !important;
    box-shadow: 0 0 38px rgba(249, 115, 22, 0.5), inset 0 0 15px rgba(249, 115, 22, 0.2) !important;
}

body[data-theme="5"][data-phase="4"] .lifeline-btn,
body[data-theme="5"][data-phase="4"] .control-btn {
    background: rgba(249, 115, 22, 0.15) !important;
    border: 1.5px solid #f97316 !important;
    color: #ffedd5 !important;
    font-family: 'Orbitron', sans-serif !important;
}

body[data-theme="5"][data-phase="4"] .question-box,
body[data-theme="5"].pergunta-milhao .question-box {
    background: 
        radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.32), transparent 70%),
        linear-gradient(135deg, rgba(15, 12, 8, 0.99) 0%, rgba(5, 5, 8, 0.99) 100%) !important;
    color: #ffffff !important;
    border: 2.5px solid #f97316 !important;
    box-shadow: inset 0 0 30px rgba(249, 115, 22, 0.3), 0 0 50px rgba(249, 115, 22, 0.55), 0 0 20px rgba(255, 255, 255, 0.2) !important;
}

body[data-theme="5"][data-phase="4"] .question-tag,
body[data-theme="5"].pergunta-milhao .question-tag {
    background: linear-gradient(90deg, #f97316, #ef4444) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.8) !important;
}

body[data-theme="5"][data-phase="4"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="5"].pergunta-milhao .option-btn:not(.selected):not(.correct):not(.wrong) {
    background: 
        radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.18), transparent 70%),
        linear-gradient(135deg, rgba(15, 12, 8, 0.98) 0%, rgba(5, 5, 8, 0.98) 100%) !important;
    border: 2px solid #f97316 !important;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.35) !important;
    color: #ffffff !important;
    font-family: 'Rajdhani', sans-serif !important;
    font-size: 1.1rem !important;
}

body[data-theme="5"][data-phase="4"] .option-btn .letter,
body[data-theme="5"].pergunta-milhao .option-btn .letter {
    background: linear-gradient(135deg, #f97316, #c2410c) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.6) !important;
}

body[data-theme="5"][data-phase="4"] .right-panel,
body[data-theme="5"].pergunta-milhao .right-panel {
    background: 
        radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.25), transparent 70%),
        linear-gradient(180deg, rgba(15, 12, 8, 0.98) 0%, rgba(5, 5, 8, 0.99) 100%) !important;
    border-left: 2.5px solid #f97316 !important;
    box-shadow: -8px 0 40px rgba(249, 115, 22, 0.45) !important;
}

/* =========================================================
   CENÁRIO 6: DESAFIO DE MATEMÁTICA (theme-premium-obsidian / 6 / obsidian)
   ========================================================= */
body[data-theme="6"], body[data-theme="obsidian"], body[data-theme="theme-premium-obsidian"] {
    --bg-color: #050b14;
    --panel-bg: rgba(7, 16, 33, 0.88);
    --panel-border: rgba(0, 210, 255, 0.35);
    --gold: #ffb700;
    --gold-glow: rgba(255, 183, 0, 0.7);
    --cyan: #00d2ff;
    --hud-font: 'Space Grotesk', sans-serif;
    --main-font: 'Outfit', sans-serif;
    --mono-font: 'Fira Code', monospace;
}

body[data-theme="6"][data-phase="2"] { --cyan: #00ff9d; }
body[data-theme="6"][data-phase="3"] { --cyan: #b026ff; }
body[data-theme="6"][data-phase="4"] { --cyan: #ffb700; }

body[data-theme="6"] .question-box,
body[data-theme="obsidian"] .question-box {
    border-left: 4px solid var(--cyan);
    font-family: 'Fira Code', monospace;
}

/* TRANSIÇÃO SUAVE DE TEXTURAS E CORES DA UI NO CENÁRIO 6 */
body[data-theme="6"] .header,
body[data-theme="6"] .question-box,
body[data-theme="6"] .option-btn,
body[data-theme="6"] .right-panel,
body[data-theme="6"] .ladder-item,
body[data-theme="obsidian"] .header,
body[data-theme="obsidian"] .question-box,
body[data-theme="obsidian"] .option-btn,
body[data-theme="obsidian"] .right-panel,
body[data-theme="obsidian"] .ladder-item {
    transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease, color 0.8s ease, transform 0.25s ease !important;
}

/*  TEXTURA DE PAPEL MILIMETRADO (GRADE CARTESIANA FINA DE 1PX COM 4% DE OPACIDADE EM CSS) */
body[data-theme="6"] .question-box,
body[data-theme="6"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="obsidian"] .question-box,
body[data-theme="obsidian"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="theme-premium-obsidian"] .question-box,
body[data-theme="theme-premium-obsidian"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
    background-size: 20px 20px, 20px 20px, 4px 4px, 4px 4px !important;
}

/* ---------------------------------------------------------
    FASE 1: ÁLGEBRA & ARITMÉTICA (TEXTURA DE PAPEL QUADRICULADO MILIMETRADO CIANO)
   --------------------------------------------------------- */
body[data-theme="6"][data-phase="1"] .header,
body[data-theme="obsidian"][data-phase="1"] .header {
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(6, 18, 38, 0.96) 0%, rgba(3, 10, 24, 0.98)) !important;
    background-size: 20px 20px, 20px 20px, 100% 100% !important;
    border: 1.8px solid #00d2ff !important;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.25), inset 0 0 10px rgba(0, 210, 255, 0.1) !important;
}

body[data-theme="6"][data-phase="1"] .question-box,
body[data-theme="obsidian"][data-phase="1"] .question-box {
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, rgba(6, 18, 38, 0.97) 0%, rgba(3, 10, 24, 0.99) 100%) !important;
    background-size: 20px 20px, 20px 20px, 100% 100% !important;
    border: 1.8px solid #00d2ff !important;
    border-left: 4.5px solid #00d2ff !important;
    box-shadow: inset 0 0 18px rgba(0, 210, 255, 0.15), 0 8px 32px rgba(0, 210, 255, 0.28) !important;
    color: #ffffff !important;
}

body[data-theme="6"][data-phase="1"] .question-tag,
body[data-theme="obsidian"][data-phase="1"] .question-tag {
    background: linear-gradient(90deg, #00d2ff, #0284c7) !important;
    color: #030712 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.6) !important;
}

body[data-theme="6"][data-phase="1"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="obsidian"][data-phase="1"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.06) 1px, transparent 1px),
        linear-gradient(135deg, rgba(6, 18, 38, 0.95) 0%, rgba(3, 10, 24, 0.96) 100%) !important;
    background-size: 16px 16px, 16px 16px, 100% 100% !important;
    border: 1.5px solid #00d2ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.2) !important;
}

body[data-theme="6"][data-phase="1"] .option-btn .letter,
body[data-theme="obsidian"][data-phase="1"] .option-btn .letter {
    background: #00d2ff !important;
    color: #030712 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5) !important;
}

body[data-theme="6"][data-phase="1"] .right-panel,
body[data-theme="obsidian"][data-phase="1"] .right-panel {
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(6, 18, 38, 0.96) 0%, rgba(3, 10, 24, 0.98) 100%) !important;
    background-size: 16px 16px, 16px 16px, 100% 100% !important;
    border-left: 2px solid #00d2ff !important;
    box-shadow: -8px 0 25px rgba(0, 210, 255, 0.25) !important;
}

/* ---------------------------------------------------------
    FASE 2: GEOMETRIA & TRIGONOMETRIA (TEXTURA DE MALHA ISOMÉTRICA VERDE MATRIZ)
   --------------------------------------------------------- */
body[data-theme="6"][data-phase="2"] .header,
body[data-theme="obsidian"][data-phase="2"] .header {
    background-image: 
        repeating-linear-gradient(60deg, rgba(0, 255, 157, 0.07) 0px, rgba(0, 255, 157, 0.07) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(-60deg, rgba(0, 255, 157, 0.07) 0px, rgba(0, 255, 157, 0.07) 1px, transparent 1px, transparent 14px),
        linear-gradient(135deg, rgba(4, 24, 18, 0.96) 0%, rgba(2, 12, 9, 0.98) 100%) !important;
    background-size: 100% 100% !important;
    border: 1.8px solid #00ff9d !important;
    box-shadow: 0 0 22px rgba(0, 255, 157, 0.3), inset 0 0 12px rgba(0, 255, 157, 0.1) !important;
}

body[data-theme="6"][data-phase="2"] .question-box,
body[data-theme="obsidian"][data-phase="2"] .question-box {
    background-image: 
        repeating-linear-gradient(60deg, rgba(0, 255, 157, 0.07) 0px, rgba(0, 255, 157, 0.07) 1px, transparent 1px, transparent 14px),
        repeating-linear-gradient(-60deg, rgba(0, 255, 157, 0.07) 0px, rgba(0, 255, 157, 0.07) 1px, transparent 1px, transparent 14px),
        linear-gradient(135deg, rgba(4, 24, 18, 0.97) 0%, rgba(2, 12, 9, 0.99) 100%) !important;
    background-size: 100% 100% !important;
    border: 1.8px solid #00ff9d !important;
    border-left: 4.5px solid #00ff9d !important;
    box-shadow: inset 0 0 18px rgba(0, 255, 157, 0.15), 0 8px 32px rgba(0, 255, 157, 0.28) !important;
    color: #ffffff !important;
}

body[data-theme="6"][data-phase="2"] .question-tag,
body[data-theme="obsidian"][data-phase="2"] .question-tag {
    background: linear-gradient(90deg, #00ff9d, #059669) !important;
    color: #020c09 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.6) !important;
}

body[data-theme="6"][data-phase="2"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="obsidian"][data-phase="2"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background-image: 
        repeating-linear-gradient(60deg, rgba(0, 255, 157, 0.05) 0px, rgba(0, 255, 157, 0.05) 1px, transparent 1px, transparent 12px),
        repeating-linear-gradient(-60deg, rgba(0, 255, 157, 0.05) 0px, rgba(0, 255, 157, 0.05) 1px, transparent 1px, transparent 12px),
        linear-gradient(135deg, rgba(4, 24, 18, 0.95) 0%, rgba(2, 12, 9, 0.96) 100%) !important;
    background-size: 100% 100% !important;
    border: 1.5px solid #00ff9d !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.2) !important;
}

body[data-theme="6"][data-phase="2"] .option-btn .letter,
body[data-theme="obsidian"][data-phase="2"] .option-btn .letter {
    background: #00ff9d !important;
    color: #020c09 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.5) !important;
}

body[data-theme="6"][data-phase="2"] .right-panel,
body[data-theme="obsidian"][data-phase="2"] .right-panel {
    background-image: 
        repeating-linear-gradient(60deg, rgba(0, 255, 157, 0.06) 0px, rgba(0, 255, 157, 0.06) 1px, transparent 1px, transparent 12px),
        repeating-linear-gradient(-60deg, rgba(0, 255, 157, 0.06) 0px, rgba(0, 255, 157, 0.06) 1px, transparent 1px, transparent 12px),
        linear-gradient(180deg, rgba(4, 24, 18, 0.96) 0%, rgba(2, 12, 9, 0.98) 100%) !important;
    background-size: 100% 100% !important;
    border-left: 2px solid #00ff9d !important;
    box-shadow: -8px 0 25px rgba(0, 255, 157, 0.25) !important;
}

/* ---------------------------------------------------------
    FASE 3: ANÁLISE MATEMÁTICA & CÁLCULO (TEXTURA MARCA D'ÁGUA MICRO-GEOMÉTRICA VETORIAL ROXA 3.5%)
   --------------------------------------------------------- */
body[data-theme="6"][data-phase="3"] .header,
body[data-theme="obsidian"][data-phase="3"] .header {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23b026ff' stroke-width='1' stroke-opacity='0.15'%3E%3Cpolygon points='18,1 35,10 35,30 18,39 1,30 1,10'/%3E%3Cpolygon points='18,9 27,14 27,25 18,30 9,25 9,14'/%3E%3Cline x1='18' y1='1' x2='18' y2='39'/%3E%3Cline x1='1' y1='10' x2='35' y2='30'/%3E%3Cline x1='35' y1='10' x2='1' y2='30'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 0%, rgba(176, 38, 255, 0.22), transparent 75%),
        linear-gradient(135deg, rgba(20, 10, 35, 0.96) 0%, rgba(8, 4, 16, 0.98) 100%) !important;
    background-size: 36px 36px, 100% 100%, 100% 100% !important;
    border: 2px solid #b026ff !important;
    box-shadow: 0 0 26px rgba(176, 38, 255, 0.35), inset 0 0 12px rgba(176, 38, 255, 0.15) !important;
}

body[data-theme="6"][data-phase="3"] .question-box,
body[data-theme="obsidian"][data-phase="3"] .question-box {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23b026ff' stroke-width='1' stroke-opacity='0.15'%3E%3Cpolygon points='18,1 35,10 35,30 18,39 1,30 1,10'/%3E%3Cpolygon points='18,9 27,14 27,25 18,30 9,25 9,14'/%3E%3Cline x1='18' y1='1' x2='18' y2='39'/%3E%3Cline x1='1' y1='10' x2='35' y2='30'/%3E%3Cline x1='35' y1='10' x2='1' y2='30'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(20, 10, 35, 0.97) 0%, rgba(8, 4, 16, 0.99) 100%) !important;
    background-size: 36px 36px, 100% 100% !important;
    border: 2px solid #b026ff !important;
    border-left: 4.5px solid #b026ff !important;
    box-shadow: inset 0 0 20px rgba(176, 38, 255, 0.18), 0 8px 35px rgba(176, 38, 255, 0.3) !important;
    color: #ffffff !important;
}

body[data-theme="6"][data-phase="3"] .question-tag,
body[data-theme="obsidian"][data-phase="3"] .question-tag {
    background: linear-gradient(90deg, #b026ff, #7c3aed) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.6) !important;
}

body[data-theme="6"][data-phase="3"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="obsidian"][data-phase="3"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23b026ff' stroke-width='1' stroke-opacity='0.12'%3E%3Cpolygon points='18,1 35,10 35,30 18,39 1,30 1,10'/%3E%3Cpolygon points='18,9 27,14 27,25 18,30 9,25 9,14'/%3E%3Cline x1='18' y1='1' x2='18' y2='39'/%3E%3Cline x1='1' y1='10' x2='35' y2='30'/%3E%3Cline x1='35' y1='10' x2='1' y2='30'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(20, 10, 35, 0.95) 0%, rgba(8, 4, 16, 0.96) 100%) !important;
    background-size: 32px 32px, 100% 100% !important;
    border: 1.8px solid #b026ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.25) !important;
}

body[data-theme="6"][data-phase="3"] .option-btn .letter,
body[data-theme="obsidian"][data-phase="3"] .option-btn .letter {
    background: linear-gradient(135deg, #b026ff, #7c3aed) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px rgba(176, 38, 255, 0.5) !important;
}

body[data-theme="6"][data-phase="3"] .right-panel,
body[data-theme="obsidian"][data-phase="3"] .right-panel {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23b026ff' stroke-width='1' stroke-opacity='0.14'%3E%3Cpolygon points='18,1 35,10 35,30 18,39 1,30 1,10'/%3E%3Cpolygon points='18,9 27,14 27,25 18,30 9,25 9,14'/%3E%3Cline x1='18' y1='1' x2='18' y2='39'/%3E%3Cline x1='1' y1='10' x2='35' y2='30'/%3E%3Cline x1='35' y1='10' x2='1' y2='30'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, rgba(20, 10, 35, 0.96) 0%, rgba(8, 4, 16, 0.98) 100%) !important;
    background-size: 32px 32px, 100% 100% !important;
    border-left: 2px solid #b026ff !important;
    box-shadow: -8px 0 30px rgba(176, 38, 255, 0.3) !important;
}

/* ---------------------------------------------------------
    FASE 4: TEOREMA DA PROPORÇÃO ÁUREA & FIBONACCI (TEXTURA MARCA D'ÁGUA MICRO-GEOMÉTRICA VETORIAL DOURADA 3.5%)
   --------------------------------------------------------- */
body[data-theme="6"][data-phase="4"] .header,
body[data-theme="obsidian"][data-phase="4"] .header {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23ffb700' stroke-width='1' stroke-opacity='0.16'%3E%3Cpolygon points='18,1 35,10 35,30 18,39 1,30 1,10'/%3E%3Cpolygon points='18,9 27,14 27,25 18,30 9,25 9,14'/%3E%3Cline x1='18' y1='1' x2='18' y2='39'/%3E%3Cline x1='1' y1='10' x2='35' y2='30'/%3E%3Cline x1='35' y1='10' x2='1' y2='30'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 50% -20%, rgba(255, 183, 0, 0.3), transparent 75%),
        linear-gradient(135deg, rgba(25, 18, 5, 0.98) 0%, rgba(10, 7, 2, 0.99) 100%) !important;
    background-size: 36px 36px, 100% 100%, 100% 100% !important;
    border: 2.5px solid #ffb700 !important;
    box-shadow: 0 0 35px rgba(255, 183, 0, 0.45), inset 0 0 15px rgba(255, 183, 0, 0.2) !important;
}

body[data-theme="6"][data-phase="4"] .question-box,
body[data-theme="obsidian"][data-phase="4"] .question-box {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23ffb700' stroke-width='1' stroke-opacity='0.16'%3E%3Cpolygon points='18,1 35,10 35,30 18,39 1,30 1,10'/%3E%3Cpolygon points='18,9 27,14 27,25 18,30 9,25 9,14'/%3E%3Cline x1='18' y1='1' x2='18' y2='39'/%3E%3Cline x1='1' y1='10' x2='35' y2='30'/%3E%3Cline x1='35' y1='10' x2='1' y2='30'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 0%, rgba(255, 183, 0, 0.3), transparent 70%),
        linear-gradient(135deg, rgba(25, 18, 5, 0.98) 0%, rgba(10, 7, 2, 0.99) 100%) !important;
    background-size: 36px 36px, 100% 100%, 100% 100% !important;
    border: 2.5px solid #ffb700 !important;
    border-left: 5px solid #ffb700 !important;
    box-shadow: inset 0 0 25px rgba(255, 183, 0, 0.2), 0 0 45px rgba(255, 183, 0, 0.5) !important;
    color: #ffffff !important;
}

body[data-theme="6"][data-phase="4"] .question-tag,
body[data-theme="obsidian"][data-phase="4"] .question-tag {
    background: linear-gradient(90deg, #ffb700, #d97706) !important;
    color: #030712 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 18px rgba(255, 183, 0, 0.8) !important;
}

body[data-theme="6"][data-phase="4"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="obsidian"][data-phase="4"] .option-btn:not(.selected):not(.correct):not(.wrong) {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23ffb700' stroke-width='1' stroke-opacity='0.12'%3E%3Cpolygon points='18,1 35,10 35,30 18,39 1,30 1,10'/%3E%3Cpolygon points='18,9 27,14 27,25 18,30 9,25 9,14'/%3E%3Cline x1='18' y1='1' x2='18' y2='39'/%3E%3Cline x1='1' y1='10' x2='35' y2='30'/%3E%3Cline x1='35' y1='10' x2='1' y2='30'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(25, 18, 5, 0.97) 0%, rgba(10, 7, 2, 0.98) 100%) !important;
    background-size: 32px 32px, 100% 100% !important;
    border: 2px solid #ffb700 !important;
    color: #ffffff !important;
    box-shadow: 0 0 22px rgba(255, 183, 0, 0.35) !important;
}

body[data-theme="6"][data-phase="4"] .option-btn .letter,
body[data-theme="obsidian"][data-phase="4"] .option-btn .letter {
    background: linear-gradient(135deg, #ffb700, #d97706) !important;
    color: #030712 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.6) !important;
}

body[data-theme="6"][data-phase="4"] .right-panel,
body[data-theme="obsidian"][data-phase="4"] .right-panel {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23ffb700' stroke-width='1' stroke-opacity='0.14'%3E%3Cpolygon points='18,1 35,10 35,30 18,39 1,30 1,10'/%3E%3Cpolygon points='18,9 27,14 27,25 18,30 9,25 9,14'/%3E%3Cline x1='18' y1='1' x2='18' y2='39'/%3E%3Cline x1='1' y1='10' x2='35' y2='30'/%3E%3Cline x1='35' y1='10' x2='1' y2='30'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle at 50% 0%, rgba(255, 183, 0, 0.22), transparent 70%),
        linear-gradient(180deg, rgba(25, 18, 5, 0.98) 0%, rgba(10, 7, 2, 0.99) 100%) !important;
    background-size: 32px 32px, 100% 100%, 100% 100% !important;
    border-left: 2.5px solid #ffb700 !important;
    box-shadow: -8px 0 35px rgba(255, 183, 0, 0.4) !important;
}

/*  CORREÇÃO DA ESCADA DE VALORES NO CENÁRIO 6 (PURGA DO VERDE & 40% DE OPACIDADE NOS ULTRAPASSADOS) */
body[data-theme="6"] .ladder-item.passed,
body[data-theme="obsidian"] .ladder-item.passed,
body[data-theme="theme-premium-obsidian"] .ladder-item.passed {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
    background-image: none !important;
}

body[data-theme="6"] .ladder-item.passed *,
body[data-theme="obsidian"] .ladder-item.passed *,
body[data-theme="theme-premium-obsidian"] .ladder-item.passed * {
    color: inherit !important;
    text-shadow: none !important;
}

body[data-theme="6"][data-phase="1"] .ladder-item.passed,
body[data-theme="obsidian"][data-phase="1"] .ladder-item.passed {
    background: rgba(0, 210, 255, 0.08) !important;
    border: 1px solid rgba(0, 210, 255, 0.25) !important;
    color: rgba(0, 210, 255, 0.65) !important;
    font-weight: 700 !important;
    opacity: 0.65 !important;
}

body[data-theme="6"][data-phase="2"] .ladder-item.passed,
body[data-theme="obsidian"][data-phase="2"] .ladder-item.passed {
    background: rgba(0, 255, 157, 0.08) !important;
    border: 1px solid rgba(0, 255, 157, 0.25) !important;
    color: rgba(0, 255, 157, 0.65) !important;
    font-weight: 700 !important;
    opacity: 0.65 !important;
}

body[data-theme="6"][data-phase="3"] .ladder-item.passed,
body[data-theme="obsidian"][data-phase="3"] .ladder-item.passed {
    background: rgba(176, 38, 255, 0.08) !important;
    border: 1px solid rgba(176, 38, 255, 0.25) !important;
    color: rgba(233, 213, 255, 0.65) !important;
    font-weight: 700 !important;
    opacity: 0.65 !important;
}

body[data-theme="6"][data-phase="4"] .ladder-item.passed,
body[data-theme="obsidian"][data-phase="4"] .ladder-item.passed {
    background: rgba(255, 183, 0, 0.08) !important;
    border: 1px solid rgba(255, 183, 0, 0.25) !important;
    color: rgba(255, 234, 138, 0.65) !important;
    font-weight: 700 !important;
    opacity: 0.65 !important;
}

/* DEGRAU ATUAL EM DESTAQUE BRILHANTE IMPRESSIONANTE */
body[data-theme="6"] .ladder-item.active,
body[data-theme="obsidian"] .ladder-item.active {
    background: linear-gradient(90deg, rgba(255, 183, 0, 0.35), rgba(255, 183, 0, 0.15)) !important;
    border: 2px solid var(--cyan) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 25px var(--cyan), inset 0 0 12px rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05) translateX(-4px) !important;
}

/*  PADRONIZAÇÃO DOS BOTÕES DE AJUDA & MODAIS (UNIVERSITÁRIOS / CARTAS) NO CENÁRIO 6 */
body[data-theme="6"] .lifeline-btn,
body[data-theme="obsidian"] .lifeline-btn {
    background: rgba(7, 16, 33, 0.75) !important;
    border: 1.8px solid var(--cyan) !important;
    color: var(--cyan) !important;
    font-family: var(--hud-font) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4) !important;
}

body[data-theme="6"] .lifeline-btn:hover:not(:disabled),
body[data-theme="obsidian"] .lifeline-btn:hover:not(:disabled) {
    background: var(--cyan) !important;
    color: #030712 !important;
    box-shadow: 0 0 20px var(--cyan) !important;
    transform: translateY(-2px) !important;
}

body[data-theme="6"] .control-btn,
body[data-theme="obsidian"] .control-btn {
    background: rgba(7, 16, 33, 0.75) !important;
    border: 1.8px solid var(--gold) !important;
    color: var(--gold) !important;
    font-family: var(--hud-font) !important;
    backdrop-filter: blur(8px) !important;
}

body[data-theme="6"] .modal-content,
body[data-theme="obsidian"] .modal-content {
    background: linear-gradient(135deg, rgba(7, 16, 33, 0.95), rgba(3, 8, 20, 0.98)) !important;
    border: 2px solid var(--cyan) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 0 45px var(--cyan), inset 0 0 15px rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    font-family: var(--main-font) !important;
}

body[data-theme="6"] .modal-title,
body[data-theme="obsidian"] .modal-title {
    font-family: var(--hud-font) !important;
    color: var(--cyan) !important;
    text-shadow: 0 0 15px var(--cyan) !important;
    letter-spacing: 2px !important;
}

body[data-theme="6"] .modal-btn,
body[data-theme="obsidian"] .modal-btn {
    background: var(--cyan) !important;
    color: #030712 !important;
    border: none !important;
    font-family: var(--hud-font) !important;
    font-weight: 900 !important;
    letter-spacing: 1.5px !important;
    border-radius: 25px !important;
    padding: 12px 32px !important;
    box-shadow: 0 0 20px var(--cyan) !important;
    transition: all 0.3s ease !important;
}

body[data-theme="6"] .modal-btn:hover,
body[data-theme="obsidian"] .modal-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 0 0 30px #ffffff !important;
    transform: translateY(-2px) scale(1.03) !important;
}

/* ESTILIZAR CARDS INTERNOS DO POPUP (UNIVERSITÁRIOS E CARTAS) */
body[data-theme="6"] #modal-body div[style*="border"],
body[data-theme="obsidian"] #modal-body div[style*="border"] {
    border-color: var(--cyan) !important;
    font-family: var(--main-font) !important;
}

body[data-theme="6"] #modal-body div[style*="background:linear-gradient"],
body[data-theme="obsidian"] #modal-body div[style*="background:linear-gradient"] {
    background: linear-gradient(180deg, var(--cyan), rgba(0, 100, 180, 0.8)) !important;
}

/* =========================================================
   CENÁRIO 7: DESAFIO DE QUÍMICA & ESCALA DE pH REAL (theme-premium-cosmic / 7 / cosmic)
   ========================================================= */
#bg-canvas, #blueprintCanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

body[data-theme="7"], body[data-theme="cosmic"], body[data-theme="theme-premium-cosmic"] {
    --bg-color: #031219;
    --panel-bg: rgba(4, 20, 28, 0.9);
    --panel-border: rgba(0, 245, 212, 0.35);
    --gold: #ffb703;
    --gold-glow: rgba(255, 183, 3, 0.7);
    --cyan: #00f5d4;
    --hud-font: 'Rajdhani', sans-serif;
    --main-font: 'Outfit', sans-serif;
    --mono-font: 'Space Mono', monospace;
    --ph-accent: #00f5d4;
    --ph-glow: rgba(0, 245, 212, 0.35);
}

/* TRANSIÇÃO DE CORES DINÂMICAS DE pH POR FASE / DEGRAU NO CENÁRIO 7 */
body[data-theme="7"][data-phase="1"], body[data-theme="7"].fase-1,
body[data-theme="cosmic"][data-phase="1"], body[data-theme="cosmic"].fase-1,
body[data-theme="theme-premium-cosmic"][data-phase="1"], body[data-theme="theme-premium-cosmic"].fase-1 {
    --ph-accent: #00f5d4;
    --ph-glow: rgba(0, 245, 212, 0.35);
    --cyan: #00f5d4;
}

body[data-theme="7"][data-phase="2"], body[data-theme="7"].fase-2,
body[data-theme="cosmic"][data-phase="2"], body[data-theme="cosmic"].fase-2,
body[data-theme="theme-premium-cosmic"][data-phase="2"], body[data-theme="theme-premium-cosmic"].fase-2 {
    --ph-accent: #ffb703;
    --ph-glow: rgba(255, 183, 3, 0.35);
    --cyan: #ffb703;
}

body[data-theme="7"][data-phase="3"], body[data-theme="7"].fase-3,
body[data-theme="cosmic"][data-phase="3"], body[data-theme="cosmic"].fase-3,
body[data-theme="theme-premium-cosmic"][data-phase="3"], body[data-theme="theme-premium-cosmic"].fase-3 {
    --ph-accent: #0077ff;
    --ph-glow: rgba(0, 119, 255, 0.35);
    --cyan: #0077ff;
}

body[data-theme="7"][data-phase="4"], body[data-theme="7"].fase-4,
body[data-theme="cosmic"][data-phase="4"], body[data-theme="cosmic"].fase-4,
body[data-theme="theme-premium-cosmic"][data-phase="4"], body[data-theme="theme-premium-cosmic"].fase-4 {
    --ph-accent: #d946ef;
    --ph-glow: rgba(217, 70, 239, 0.4);
    --cyan: #d946ef;
}

/* ---------------------------------------------------------
    FASE 1 (pH 0 a 3 - QUÍMICA GERAL E ÁCIDOS): FÓRMULAS QUÍMICAS & ESTRUTURAS DE LEWIS
   ========================================================= */
body[data-theme="7"][data-phase="1"] .header,
body[data-theme="7"][data-phase="1"] .question-box,
body[data-theme="7"][data-phase="1"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="7"][data-phase="1"] .lifeline-btn,
body[data-theme="7"][data-phase="1"] .timer-container,
body[data-theme="7"][data-phase="1"] .control-btn,
body[data-theme="7"][data-phase="1"] .exit-btn,
body[data-theme="7"][data-phase="1"] .modal-content:not([data-result-tier]),
body[data-theme="7"][data-phase="1"] .expert-card,
body[data-theme="7"][data-phase="1"] .audience-container,
body[data-theme="7"][data-phase="1"] .card-option,
body[data-theme="7"].fase-1 .header,
body[data-theme="7"].fase-1 .question-box,
body[data-theme="7"].fase-1 .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="7"].fase-1 .lifeline-btn,
body[data-theme="7"].fase-1 .timer-container,
body[data-theme="7"].fase-1 .control-btn,
body[data-theme="7"].fase-1 .exit-btn,
body[data-theme="7"].fase-1 .modal-content:not([data-result-tier]),
body[data-theme="7"].fase-1 .expert-card,
body[data-theme="7"].fase-1 .audience-container,
body[data-theme="7"].fase-1 .card-option,
body[data-theme="cosmic"][data-phase="1"] .header,
body[data-theme="cosmic"][data-phase="1"] .question-box,
body[data-theme="cosmic"][data-phase="1"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="cosmic"][data-phase="1"] .lifeline-btn,
body[data-theme="cosmic"][data-phase="1"] .timer-container,
body[data-theme="cosmic"][data-phase="1"] .control-btn,
body[data-theme="cosmic"][data-phase="1"] .exit-btn,
body[data-theme="cosmic"][data-phase="1"] .modal-content:not([data-result-tier]),
body[data-theme="cosmic"][data-phase="1"] .expert-card,
body[data-theme="cosmic"][data-phase="1"] .audience-container,
body[data-theme="cosmic"][data-phase="1"] .card-option,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .header,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .question-box,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="theme-premium-cosmic"][data-phase="1"] .lifeline-btn,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .timer-container,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .control-btn,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .exit-btn,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .modal-content:not([data-result-tier]),
body[data-theme="theme-premium-cosmic"][data-phase="1"] .expert-card,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .audience-container,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .card-option {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23a3e635' stroke-width='1' stroke-opacity='0.15'%3E%3Ctext x='5' y='18' font-family='sans-serif' font-size='10' fill='%23a3e635' fill-opacity='0.15'%3EH%2B%3C/text%3E%3Ctext x='32' y='48' font-family='sans-serif' font-size='9' fill='%23a3e635' fill-opacity='0.15'%3EH2O%3C/text%3E%3Ccircle cx='15' cy='40' r='3'/%3E%3Ccircle cx='45' cy='15' r='3'/%3E%3Cline x1='15' y1='40' x2='30' y2='25' stroke-dasharray='2,2'/%3E%3Cline x1='30' y1='25' x2='45' y2='15'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(6, 26, 18, 0.94) 0%, rgba(3, 14, 10, 0.97) 100%) !important;
    background-size: 60px 60px, 100% 100% !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.5px solid #a3e635 !important;
    box-shadow: 0 0 16px rgba(163, 230, 53, 0.28), inset 0 0 10px rgba(163, 230, 53, 0.08) !important;
    color: #ffffff !important;
}

body[data-theme="7"][data-phase="1"] .question-box,
body[data-theme="7"].fase-1 .question-box,
body[data-theme="cosmic"][data-phase="1"] .question-box,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .question-box {
    border-left: 4.5px solid #a3e635 !important;
}

body[data-theme="7"][data-phase="1"] .question-tag,
body[data-theme="7"].fase-1 .question-tag,
body[data-theme="cosmic"][data-phase="1"] .question-tag,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .question-tag {
    background: linear-gradient(90deg, #a3e635, #65a30d) !important;
    color: #03140a !important;
    font-weight: 900 !important;
    box-shadow: 0 0 14px rgba(163, 230, 53, 0.6) !important;
}

body[data-theme="7"][data-phase="1"] .option-btn .letter,
body[data-theme="7"].fase-1 .option-btn .letter,
body[data-theme="cosmic"][data-phase="1"] .option-btn .letter,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .option-btn .letter {
    background: #a3e635 !important;
    color: #03140a !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(163, 230, 53, 0.5) !important;
}

/* ---------------------------------------------------------
    FASE 2 (pH 4 a 8 - QUÍMICA ORGÂNICA E NEUTRO): MALHA DE ANÉIS AROMÁTICOS BENZÊNICOS
   ========================================================= */
body[data-theme="7"][data-phase="2"] .header,
body[data-theme="7"][data-phase="2"] .question-box,
body[data-theme="7"][data-phase="2"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="7"][data-phase="2"] .lifeline-btn,
body[data-theme="7"][data-phase="2"] .timer-container,
body[data-theme="7"][data-phase="2"] .control-btn,
body[data-theme="7"][data-phase="2"] .exit-btn,
body[data-theme="7"][data-phase="2"] .modal-content:not([data-result-tier]),
body[data-theme="7"][data-phase="2"] .expert-card,
body[data-theme="7"][data-phase="2"] .audience-container,
body[data-theme="7"][data-phase="2"] .card-option,
body[data-theme="7"].fase-2 .header,
body[data-theme="7"].fase-2 .question-box,
body[data-theme="7"].fase-2 .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="7"].fase-2 .lifeline-btn,
body[data-theme="7"].fase-2 .timer-container,
body[data-theme="7"].fase-2 .control-btn,
body[data-theme="7"].fase-2 .exit-btn,
body[data-theme="7"].fase-2 .modal-content:not([data-result-tier]),
body[data-theme="7"].fase-2 .expert-card,
body[data-theme="7"].fase-2 .audience-container,
body[data-theme="7"].fase-2 .card-option,
body[data-theme="cosmic"][data-phase="2"] .header,
body[data-theme="cosmic"][data-phase="2"] .question-box,
body[data-theme="cosmic"][data-phase="2"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="cosmic"][data-phase="2"] .lifeline-btn,
body[data-theme="cosmic"][data-phase="2"] .timer-container,
body[data-theme="cosmic"][data-phase="2"] .control-btn,
body[data-theme="cosmic"][data-phase="2"] .exit-btn,
body[data-theme="cosmic"][data-phase="2"] .modal-content:not([data-result-tier]),
body[data-theme="cosmic"][data-phase="2"] .expert-card,
body[data-theme="cosmic"][data-phase="2"] .audience-container,
body[data-theme="cosmic"][data-phase="2"] .card-option,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .header,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .question-box,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="theme-premium-cosmic"][data-phase="2"] .lifeline-btn,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .timer-container,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .control-btn,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .exit-btn,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .modal-content:not([data-result-tier]),
body[data-theme="theme-premium-cosmic"][data-phase="2"] .expert-card,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .audience-container,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .card-option {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cg fill='none' stroke='%2300f5d4' stroke-width='1.2' stroke-opacity='0.15'%3E%3Cpolygon points='25,5 42,15 42,35 25,45 8,35 8,15'/%3E%3Ccircle cx='25' cy='25' r='11'/%3E%3Cline x1='25' y1='5' x2='25' y2='0'/%3E%3Cline x1='42' y1='35' x2='47' y2='38'/%3E%3Cline x1='8' y1='35' x2='3' y2='38'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(4, 24, 28, 0.94) 0%, rgba(2, 12, 16, 0.97) 100%) !important;
    background-size: 50px 50px, 100% 100% !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.5px solid #00f5d4 !important;
    box-shadow: 0 0 16px rgba(0, 245, 212, 0.28), inset 0 0 10px rgba(0, 245, 212, 0.08) !important;
    color: #ffffff !important;
}

body[data-theme="7"][data-phase="2"] .question-box,
body[data-theme="7"].fase-2 .question-box,
body[data-theme="cosmic"][data-phase="2"] .question-box,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .question-box {
    border-left: 4.5px solid #00f5d4 !important;
}

body[data-theme="7"][data-phase="2"] .question-tag,
body[data-theme="7"].fase-2 .question-tag,
body[data-theme="cosmic"][data-phase="2"] .question-tag,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .question-tag {
    background: linear-gradient(90deg, #00f5d4, #0d9488) !important;
    color: #031219 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 14px rgba(0, 245, 212, 0.6) !important;
}

body[data-theme="7"][data-phase="2"] .option-btn .letter,
body[data-theme="7"].fase-2 .option-btn .letter,
body[data-theme="cosmic"][data-phase="2"] .option-btn .letter,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .option-btn .letter {
    background: #00f5d4 !important;
    color: #031219 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.5) !important;
}

/* ---------------------------------------------------------
    FASE 3 (pH 9 a 13 - FÍSICO-QUÍMICA E BÁSICO): DIAGRAMAS DE ORBITAIS ATÔMICOS & DENSIDADE ELETRÔNICA
   ========================================================= */
body[data-theme="7"][data-phase="3"] .header,
body[data-theme="7"][data-phase="3"] .question-box,
body[data-theme="7"][data-phase="3"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="7"][data-phase="3"] .lifeline-btn,
body[data-theme="7"][data-phase="3"] .timer-container,
body[data-theme="7"][data-phase="3"] .control-btn,
body[data-theme="7"][data-phase="3"] .exit-btn,
body[data-theme="7"][data-phase="3"] .modal-content:not([data-result-tier]),
body[data-theme="7"][data-phase="3"] .expert-card,
body[data-theme="7"][data-phase="3"] .audience-container,
body[data-theme="7"][data-phase="3"] .card-option,
body[data-theme="7"].fase-3 .header,
body[data-theme="7"].fase-3 .question-box,
body[data-theme="7"].fase-3 .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="7"].fase-3 .lifeline-btn,
body[data-theme="7"].fase-3 .timer-container,
body[data-theme="7"].fase-3 .control-btn,
body[data-theme="7"].fase-3 .exit-btn,
body[data-theme="7"].fase-3 .modal-content:not([data-result-tier]),
body[data-theme="7"].fase-3 .expert-card,
body[data-theme="7"].fase-3 .audience-container,
body[data-theme="7"].fase-3 .card-option,
body[data-theme="cosmic"][data-phase="3"] .header,
body[data-theme="cosmic"][data-phase="3"] .question-box,
body[data-theme="cosmic"][data-phase="3"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="cosmic"][data-phase="3"] .lifeline-btn,
body[data-theme="cosmic"][data-phase="3"] .timer-container,
body[data-theme="cosmic"][data-phase="3"] .control-btn,
body[data-theme="cosmic"][data-phase="3"] .exit-btn,
body[data-theme="cosmic"][data-phase="3"] .modal-content:not([data-result-tier]),
body[data-theme="cosmic"][data-phase="3"] .expert-card,
body[data-theme="cosmic"][data-phase="3"] .audience-container,
body[data-theme="cosmic"][data-phase="3"] .card-option,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .header,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .question-box,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="theme-premium-cosmic"][data-phase="3"] .lifeline-btn,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .timer-container,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .control-btn,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .exit-btn,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .modal-content:not([data-result-tier]),
body[data-theme="theme-premium-cosmic"][data-phase="3"] .expert-card,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .audience-container,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .card-option {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%233b82f6' stroke-width='1.1' stroke-opacity='0.15'%3E%3Cellipse cx='30' cy='30' rx='25' ry='10' transform='rotate(30 30 30)'/%3E%3Cellipse cx='30' cy='30' rx='25' ry='10' transform='rotate(-30 30 30)'/%3E%3Cellipse cx='30' cy='30' rx='25' ry='10' transform='rotate(90 30 30)'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%238b5cf6' fill-opacity='0.15'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(10, 18, 38, 0.94) 0%, rgba(4, 8, 20, 0.97) 100%) !important;
    background-size: 60px 60px, 100% 100% !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.5px solid #3b82f6 !important;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.28), inset 0 0 10px rgba(59, 130, 246, 0.08) !important;
    color: #ffffff !important;
}

body[data-theme="7"][data-phase="3"] .question-box,
body[data-theme="7"].fase-3 .question-box,
body[data-theme="cosmic"][data-phase="3"] .question-box,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .question-box {
    border-left: 4.5px solid #3b82f6 !important;
}

body[data-theme="7"][data-phase="3"] .question-tag,
body[data-theme="7"].fase-3 .question-tag,
body[data-theme="cosmic"][data-phase="3"] .question-tag,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .question-tag {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.6) !important;
}

body[data-theme="7"][data-phase="3"] .option-btn .letter,
body[data-theme="7"].fase-3 .option-btn .letter,
body[data-theme="cosmic"][data-phase="3"] .option-btn .letter,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .option-btn .letter {
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5) !important;
}

/* ---------------------------------------------------------
    FASE 4 (pH 14 / $1 MILHÃO - QUÍMICA QUÂNTICA E PUREZA): DINÂMICA MOLECULAR & TRAJETÓRIAS DOURADAS
   ========================================================= */
body[data-theme="7"][data-phase="4"] .header,
body[data-theme="7"][data-phase="4"] .question-box,
body[data-theme="7"][data-phase="4"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="7"][data-phase="4"] .lifeline-btn,
body[data-theme="7"][data-phase="4"] .timer-container,
body[data-theme="7"][data-phase="4"] .control-btn,
body[data-theme="7"][data-phase="4"] .exit-btn,
body[data-theme="7"][data-phase="4"] .modal-content:not([data-result-tier]),
body[data-theme="7"][data-phase="4"] .expert-card,
body[data-theme="7"][data-phase="4"] .audience-container,
body[data-theme="7"][data-phase="4"] .card-option,
body[data-theme="7"].fase-4 .header,
body[data-theme="7"].fase-4 .question-box,
body[data-theme="7"].fase-4 .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="7"].fase-4 .lifeline-btn,
body[data-theme="7"].fase-4 .timer-container,
body[data-theme="7"].fase-4 .control-btn,
body[data-theme="7"].fase-4 .exit-btn,
body[data-theme="7"].fase-4 .modal-content:not([data-result-tier]),
body[data-theme="7"].fase-4 .expert-card,
body[data-theme="7"].fase-4 .audience-container,
body[data-theme="7"].fase-4 .card-option,
body[data-theme="cosmic"][data-phase="4"] .header,
body[data-theme="cosmic"][data-phase="4"] .question-box,
body[data-theme="cosmic"][data-phase="4"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="cosmic"][data-phase="4"] .lifeline-btn,
body[data-theme="cosmic"][data-phase="4"] .timer-container,
body[data-theme="cosmic"][data-phase="4"] .control-btn,
body[data-theme="cosmic"][data-phase="4"] .exit-btn,
body[data-theme="cosmic"][data-phase="4"] .modal-content:not([data-result-tier]),
body[data-theme="cosmic"][data-phase="4"] .expert-card,
body[data-theme="cosmic"][data-phase="4"] .audience-container,
body[data-theme="cosmic"][data-phase="4"] .card-option,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .header,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .question-box,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .option-btn:not(.selected):not(.correct):not(.wrong),
body[data-theme="theme-premium-cosmic"][data-phase="4"] .lifeline-btn,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .timer-container,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .control-btn,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .exit-btn,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .modal-content:not([data-result-tier]),
body[data-theme="theme-premium-cosmic"][data-phase="4"] .expert-card,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .audience-container,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .card-option {
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffd700' stroke-width='1.2' stroke-opacity='0.16'%3E%3Cpath d='M0,30 Q15,5 30,30 T60,30'/%3E%3Cpath d='M0,30 Q15,55 30,30 T60,30'/%3E%3Ccircle cx='30' cy='30' r='4' fill='%23ffd700' fill-opacity='0.2'/%3E%3Ccircle cx='15' cy='18' r='2' fill='%23ffd700' fill-opacity='0.25'/%3E%3Ccircle cx='45' cy='42' r='2' fill='%23ffd700' fill-opacity='0.25'/%3E%3Cline x1='15' y1='18' x2='30' y2='30'/%3E%3Cline x1='30' y1='30' x2='45' y2='42'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(30, 10, 48, 0.95) 0%, rgba(12, 4, 20, 0.98) 100%) !important;
    background-size: 60px 60px, 100% 100% !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.8px solid #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.32), inset 0 0 10px rgba(255, 215, 0, 0.1) !important;
    color: #ffffff !important;
}

body[data-theme="7"][data-phase="4"] .question-box,
body[data-theme="7"].fase-4 .question-box,
body[data-theme="cosmic"][data-phase="4"] .question-box,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .question-box {
    border-left: 5px solid #ffd700 !important;
}

body[data-theme="7"][data-phase="4"] .question-tag,
body[data-theme="7"].fase-4 .question-tag,
body[data-theme="cosmic"][data-phase="4"] .question-tag,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .question-tag {
    background: linear-gradient(90deg, #ffd700, #b58a00) !important;
    color: #0d0417 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.8) !important;
}

body[data-theme="7"][data-phase="4"] .option-btn .letter,
body[data-theme="7"].fase-4 .option-btn .letter,
body[data-theme="cosmic"][data-phase="4"] .option-btn .letter,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .option-btn .letter {
    background: #ffd700 !important;
    color: #0d0417 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6) !important;
}

/* BOTÕES DE AJUDA E CONTROLE NO CENÁRIO 7 */
body[data-theme="7"] .lifeline-btn,
body[data-theme="cosmic"] .lifeline-btn,
body[data-theme="theme-premium-cosmic"] .lifeline-btn {
    background: rgba(4, 20, 28, 0.75) !important;
    border: 1.8px solid var(--ph-accent) !important;
    color: var(--ph-accent) !important;
    font-family: var(--hud-font) !important;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 0 12px var(--ph-glow) !important;
    transition: border-color 0.6s ease, color 0.6s ease, box-shadow 0.6s ease !important;
}

body[data-theme="7"] .lifeline-btn:hover:not(:disabled),
body[data-theme="cosmic"] .lifeline-btn:hover:not(:disabled),
body[data-theme="theme-premium-cosmic"] .lifeline-btn:hover:not(:disabled) {
    background: var(--ph-accent) !important;
    color: #031219 !important;
    box-shadow: 0 0 20px var(--ph-accent) !important;
    transform: translateY(-2px) !important;
}

/* =========================================================
   SINCRO DE TÍTULOS DOS MODAIS, TÍTULO DA ESCALA DE pH E NOMES DOS ESPECIALISTAS POR FASE
   ========================================================= */

/* TÍTULO DA ESCALA DE pH DE PUREZA (PAINEL LATERAL DIREITO) */
body[data-theme="7"] .ladder-title,
body[data-theme="7"] #ladder-title,
body[data-theme="cosmic"] .ladder-title,
body[data-theme="theme-premium-cosmic"] .ladder-title {
    color: var(--ph-accent) !important;
    text-shadow: 0 0 14px var(--ph-glow) !important;
    font-family: var(--hud-font) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    transition: color 0.6s ease, text-shadow 0.6s ease !important;
}

/* TÍTULO DOS MODAIS ("VOZ DOS UNIVERSITÁRIOS" E "CONSULTORIA DAS CARTAS") POR FASE */
body[data-theme="7"][data-phase="1"] .modal-title,
body[data-theme="7"].fase-1 .modal-title,
body[data-theme="cosmic"][data-phase="1"] .modal-title,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .modal-title {
    color: #a3e635 !important;
    text-shadow: 0 0 16px rgba(163, 230, 53, 0.75) !important;
    font-family: var(--hud-font) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

body[data-theme="7"][data-phase="2"] .modal-title,
body[data-theme="7"].fase-2 .modal-title,
body[data-theme="cosmic"][data-phase="2"] .modal-title,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .modal-title {
    color: #00f5d4 !important;
    text-shadow: 0 0 16px rgba(0, 245, 212, 0.75) !important;
    font-family: var(--hud-font) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

body[data-theme="7"][data-phase="3"] .modal-title,
body[data-theme="7"].fase-3 .modal-title,
body[data-theme="cosmic"][data-phase="3"] .modal-title,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .modal-title {
    color: #3b82f6 !important;
    text-shadow: 0 0 16px rgba(59, 130, 246, 0.75) !important;
    font-family: var(--hud-font) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

body[data-theme="7"][data-phase="4"] .modal-title,
body[data-theme="7"].fase-4 .modal-title,
body[data-theme="cosmic"][data-phase="4"] .modal-title,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .modal-title {
    color: #ffd700 !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.85) !important;
    font-family: var(--hud-font) !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
}

/* NOMES DOS ESPECIALISTAS NOS CARDS DA CONSULTORIA DAS CARTAS POR FASE */
body[data-theme="7"][data-phase="1"] .expert-name,
body[data-theme="7"].fase-1 .expert-name,
body[data-theme="cosmic"][data-phase="1"] .expert-name,
body[data-theme="theme-premium-cosmic"][data-phase="1"] .expert-name {
    color: #a3e635 !important;
    text-shadow: 0 0 10px rgba(163, 230, 53, 0.65) !important;
}

body[data-theme="7"][data-phase="2"] .expert-name,
body[data-theme="7"].fase-2 .expert-name,
body[data-theme="cosmic"][data-phase="2"] .expert-name,
body[data-theme="theme-premium-cosmic"][data-phase="2"] .expert-name {
    color: #00f5d4 !important;
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.65) !important;
}

body[data-theme="7"][data-phase="3"] .expert-name,
body[data-theme="7"].fase-3 .expert-name,
body[data-theme="cosmic"][data-phase="3"] .expert-name,
body[data-theme="theme-premium-cosmic"][data-phase="3"] .expert-name {
    color: #3b82f6 !important;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.65) !important;
}

body[data-theme="7"][data-phase="4"] .expert-name,
body[data-theme="7"].fase-4 .expert-name,
body[data-theme="cosmic"][data-phase="4"] .expert-name,
body[data-theme="theme-premium-cosmic"][data-phase="4"] .expert-name {
    color: #ffd700 !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.85) !important;
}

/* =========================================================
   PRESERVAÇÃO OBRIGATÓRIA DA ESCALA DE pH DE PUREZA (PAINEL LATERAL DIREITO)
   GRADIENTES E CORES REAIS PREENCHIDAS DO INDICADOR UNIVERSAL (pH 0 A pH 14)
   ========================================================= */
body[data-theme="7"] .ladder-item,
body[data-theme="cosmic"] .ladder-item,
body[data-theme="theme-premium-cosmic"] .ladder-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 5px 12px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* GRADIENTES COLORIDOS PREENCHIDOS E BORDAS NATIVAS DE CADA pH (pH 0 A pH 14) */
body[data-theme="7"] #level-0, body[data-theme="cosmic"] #level-0, body[data-theme="theme-premium-cosmic"] #level-0 { --ph-color: #ef4444; background: linear-gradient(90deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.22)) !important; border: 1.5px solid rgba(239, 68, 68, 0.8) !important; }
body[data-theme="7"] #level-1, body[data-theme="cosmic"] #level-1, body[data-theme="theme-premium-cosmic"] #level-1 { --ph-color: #f97316; background: linear-gradient(90deg, rgba(249, 115, 22, 0.5), rgba(249, 115, 22, 0.22)) !important; border: 1.5px solid rgba(249, 115, 22, 0.8) !important; }
body[data-theme="7"] #level-2, body[data-theme="cosmic"] #level-2, body[data-theme="theme-premium-cosmic"] #level-2 { --ph-color: #ff6b00; background: linear-gradient(90deg, rgba(255, 107, 0, 0.5), rgba(255, 107, 0, 0.22)) !important; border: 1.5px solid rgba(255, 107, 0, 0.8) !important; }
body[data-theme="7"] #level-3, body[data-theme="cosmic"] #level-3, body[data-theme="theme-premium-cosmic"] #level-3 { --ph-color: #ff9100; background: linear-gradient(90deg, rgba(255, 145, 0, 0.5), rgba(255, 145, 0, 0.22)) !important; border: 1.5px solid rgba(255, 145, 0, 0.8) !important; }
body[data-theme="7"] #level-4, body[data-theme="cosmic"] #level-4, body[data-theme="theme-premium-cosmic"] #level-4 { --ph-color: #ffd000; background: linear-gradient(90deg, rgba(255, 208, 0, 0.5), rgba(255, 208, 0, 0.22)) !important; border: 1.5px solid rgba(255, 208, 0, 0.8) !important; }
body[data-theme="7"] #level-5, body[data-theme="cosmic"] #level-5, body[data-theme="theme-premium-cosmic"] #level-5 { --ph-color: #a3e635; background: linear-gradient(90deg, rgba(163, 230, 53, 0.5), rgba(163, 230, 53, 0.22)) !important; border: 1.5px solid rgba(163, 230, 53, 0.8) !important; }
body[data-theme="7"] #level-6, body[data-theme="cosmic"] #level-6, body[data-theme="theme-premium-cosmic"] #level-6 { --ph-color: #84cc16; background: linear-gradient(90deg, rgba(132, 204, 22, 0.5), rgba(132, 204, 22, 0.22)) !important; border: 1.5px solid rgba(132, 204, 22, 0.8) !important; }
body[data-theme="7"] #level-7, body[data-theme="cosmic"] #level-7, body[data-theme="theme-premium-cosmic"] #level-7 { --ph-color: #22c55e; background: linear-gradient(90deg, rgba(34, 197, 94, 0.55), rgba(34, 197, 94, 0.25)) !important; border: 1.5px solid rgba(34, 197, 94, 0.85) !important; }
body[data-theme="7"] #level-8, body[data-theme="cosmic"] #level-8, body[data-theme="theme-premium-cosmic"] #level-8 { --ph-color: #10b981; background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), rgba(16, 185, 129, 0.22)) !important; border: 1.5px solid rgba(16, 185, 129, 0.8) !important; }
body[data-theme="7"] #level-9, body[data-theme="cosmic"] #level-9, body[data-theme="theme-premium-cosmic"] #level-9 { --ph-color: #06b6d4; background: linear-gradient(90deg, rgba(6, 182, 212, 0.5), rgba(6, 182, 212, 0.22)) !important; border: 1.5px solid rgba(6, 182, 212, 0.8) !important; }
body[data-theme="7"] #level-10, body[data-theme="cosmic"] #level-10, body[data-theme="theme-premium-cosmic"] #level-10 { --ph-color: #3b82f6; background: linear-gradient(90deg, rgba(59, 130, 246, 0.55), rgba(59, 130, 246, 0.25)) !important; border: 1.5px solid rgba(59, 130, 246, 0.85) !important; }
body[data-theme="7"] #level-11, body[data-theme="cosmic"] #level-11, body[data-theme="theme-premium-cosmic"] #level-11 { --ph-color: #6366f1; background: linear-gradient(90deg, rgba(99, 102, 241, 0.5), rgba(99, 102, 241, 0.22)) !important; border: 1.5px solid rgba(99, 102, 241, 0.8) !important; }
body[data-theme="7"] #level-12, body[data-theme="cosmic"] #level-12, body[data-theme="theme-premium-cosmic"] #level-12 { --ph-color: #8b5cf6; background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0.22)) !important; border: 1.5px solid rgba(139, 92, 246, 0.8) !important; }
body[data-theme="7"] #level-13, body[data-theme="cosmic"] #level-13, body[data-theme="theme-premium-cosmic"] #level-13 { --ph-color: #a855f7; background: linear-gradient(90deg, rgba(168, 85, 247, 0.5), rgba(168, 85, 247, 0.22)) !important; border: 1.5px solid rgba(168, 85, 247, 0.8) !important; }
body[data-theme="7"] #level-14, body[data-theme="cosmic"] #level-14, body[data-theme="theme-premium-cosmic"] #level-14 { --ph-color: #d946ef; background: linear-gradient(90deg, rgba(217, 70, 239, 0.6), rgba(217, 70, 239, 0.3)) !important; border: 1.5px solid rgba(217, 70, 239, 0.9) !important; }

/* CIRCULAR BADGE PARA OS NÚMEROS DA ESCALA (1 AO 15) E BADGES DO pH MANTENDO SUA COR DE pH */
body[data-theme="7"] .ladder-item .level-num,
body[data-theme="cosmic"] .ladder-item .level-num,
body[data-theme="theme-premium-cosmic"] .ladder-item .level-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 25px !important;
    height: 25px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(4px) !important;
    border: 1.5px solid var(--ph-color) !important;
    color: #ffffff !important;
    font-family: var(--mono-font) !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 6px var(--ph-color) !important;
}

body[data-theme="7"] .ladder-item .ph-badge,
body[data-theme="cosmic"] .ladder-item .ph-badge,
body[data-theme="theme-premium-cosmic"] .ladder-item .ph-badge {
    font-family: var(--mono-font) !important;
    font-size: 0.72rem !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid var(--ph-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

body[data-theme="7"] .ladder-item > span:last-child,
body[data-theme="cosmic"] .ladder-item > span:last-child,
body[data-theme="theme-premium-cosmic"] .ladder-item > span:last-child {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(4px) !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* =========================================================
   ESCADA DE pH DO CENÁRIO 7: DEGRAUS CONCLUÍDOS (.passed) - ASSUMEM A COR DO TEMA/FASE ATIVA (--ph-accent)
   ========================================================= */
body[data-theme="7"] .ladder-item.passed,
body[data-theme="cosmic"] .ladder-item.passed,
body[data-theme="theme-premium-cosmic"] .ladder-item.passed {
    background: linear-gradient(90deg, var(--ph-accent), rgba(2, 10, 16, 0.82)) !important;
    border: 1.5px solid var(--ph-accent) !important;
    opacity: 0.48 !important;
    box-shadow: 0 0 10px var(--ph-glow) !important;
    filter: none !important;
}

body[data-theme="7"] .ladder-item.passed span,
body[data-theme="cosmic"] .ladder-item.passed span,
body[data-theme="theme-premium-cosmic"] .ladder-item.passed span {
    color: #ffffff !important;
    opacity: 0.95 !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px var(--ph-accent) !important;
}

body[data-theme="7"] .ladder-item.passed .ph-badge,
body[data-theme="cosmic"] .ladder-item.passed .ph-badge,
body[data-theme="theme-premium-cosmic"] .ladder-item.passed .ph-badge {
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid var(--ph-accent) !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
}

body[data-theme="7"] .ladder-item.passed .level-num,
body[data-theme="cosmic"] .ladder-item.passed .level-num,
body[data-theme="theme-premium-cosmic"] .ladder-item.passed .level-num {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1.5px solid var(--ph-accent) !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    box-shadow: 0 0 6px var(--ph-glow) !important;
}

/* =========================================================
   RESTAURAÇÃO & ESTILIZAÇÃO DOS DEGRAUS ATIVOS (.ladder-item.active) POR CENÁRIO
   ========================================================= */

/* CENÁRIO 1: CLÁSSICO DOURADO */
body[data-theme="1"] .ladder-item.active,
body[data-theme="classic"] .ladder-item.active,
body[data-theme="theme-classic"] .ladder-item.active {
    background: linear-gradient(90deg, #ffd700 0%, #ffae00 100%) !important;
    border: 2.2px solid #ffffff !important;
    color: #030712 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 28px rgba(255, 215, 0, 0.9), inset 0 0 10px rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.06) translateX(-4px) !important;
    opacity: 1 !important;
}

body[data-theme="1"] .ladder-item.active *,
body[data-theme="classic"] .ladder-item.active *,
body[data-theme="theme-classic"] .ladder-item.active * {
    color: #030712 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8) !important;
}

/* CENÁRIO 5: UNIVERSO / ARCADE */
body[data-theme="5"] .ladder-item.active,
body[data-theme="arcade"] .ladder-item.active,
body[data-theme="theme-pro-arcade"] .ladder-item.active {
    background: linear-gradient(90deg, #9d4edd 0%, #00f0ff 100%) !important;
    border: 2.2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.9), inset 0 0 10px rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.06) translateX(-4px) !important;
    opacity: 1 !important;
}

body[data-theme="5"] .ladder-item.active *,
body[data-theme="arcade"] .ladder-item.active *,
body[data-theme="theme-pro-arcade"] .ladder-item.active * {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px #00f0ff, 0 2px 4px #000000 !important;
}

/* CENÁRIO 3: BIBLIOTECA */
body[data-theme="3"] .ladder-item.active,
body[data-theme="emerald"] .ladder-item.active,
body[data-theme="theme-pro-emerald"] .ladder-item.active {
    background: linear-gradient(90deg, #b8860b 0%, #8c6d3f 100%) !important;
    border: 2.2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: 0 0 25px rgba(184, 134, 11, 0.85) !important;
    transform: scale(1.06) translateX(-4px) !important;
    opacity: 1 !important;
}

/* CENÁRIO 4: ARTES */
body[data-theme="4"] .ladder-item.active,
body[data-theme="sunset"] .ladder-item.active,
body[data-theme="theme-pro-sunset"] .ladder-item.active {
    background: linear-gradient(90deg, #ff6b35 0%, #f7c59f 100%) !important;
    border: 2.2px solid #ffffff !important;
    color: #0d0408 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 25px rgba(255, 107, 53, 0.85) !important;
    transform: scale(1.06) translateX(-4px) !important;
    opacity: 1 !important;
}

/* CENÁRIO 6: MATEMÁTICA E LÓGICA */
body[data-theme="6"] .ladder-item.active,
body[data-theme="obsidian"] .ladder-item.active,
body[data-theme="theme-premium-obsidian"] .ladder-item.active {
    background: linear-gradient(90deg, #00f0ff 0%, #3b82f6 100%) !important;
    border: 2.2px solid #ffffff !important;
    color: #030814 !important;
    font-weight: 900 !important;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.9) !important;
    transform: scale(1.06) translateX(-4px) !important;
    opacity: 1 !important;
}

/* CENÁRIO 7: QUÍMICA GERAL (DEGRAU ATIVO) */
body[data-theme="7"] .ladder-item.active,
body[data-theme="cosmic"] .ladder-item.active,
body[data-theme="theme-premium-cosmic"] .ladder-item.active {
    border: 2.2px solid var(--ph-color) !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    transform: scale(1.06) translateX(-4px) !important;
    box-shadow: 0 0 26px var(--ph-color), inset 0 0 12px var(--ph-color) !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9) !important;
}

body[data-theme="7"] .ladder-item.active span,
body[data-theme="cosmic"] .ladder-item.active span,
body[data-theme="theme-premium-cosmic"] .ladder-item.active span {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 0 10px var(--ph-color), 0 2px 4px #000000 !important;
}

body[data-theme="7"] .ladder-item.active .level-num,
body[data-theme="cosmic"] .ladder-item.active .level-num,
body[data-theme="theme-premium-cosmic"] .ladder-item.active .level-num {
    background: rgba(0, 0, 0, 0.15) !important;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px var(--ph-color) !important;
    backdrop-filter: blur(4px) !important;
}

body[data-theme="7"] .ladder-item.active .ph-badge,
body[data-theme="cosmic"] .ladder-item.active .ph-badge,
body[data-theme="theme-premium-cosmic"] .ladder-item.active .ph-badge {
    background: rgba(0, 0, 0, 0.15) !important;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 8px var(--ph-color) !important;
    backdrop-filter: blur(4px) !important;
}

/* =========================================================
   ESTADO ESPECIAL VIP DA PERGUNTA DO MILHÃO (NÍVEL 15)
   ========================================================= */
body.pergunta-milhao .question-box {
    border: 3px double #ffd700 !important;
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.45), inset 0 0 15px rgba(255, 215, 0, 0.15) !important;
    animation: none !important;
}

body[data-theme="2"].pergunta-milhao .question-box {
    border: 2.5px solid #39ff14 !important;
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.4) !important;
    background: linear-gradient(135deg, rgba(3, 20, 6, 0.98), rgba(1, 10, 3, 0.99)) !important;
}

body[data-theme="3"].pergunta-milhao .question-box {
    border: 3px double #ffd700 !important;
    box-shadow: 0 8px 35px rgba(255, 215, 0, 0.45), inset 0 0 15px rgba(255, 215, 0, 0.15) !important;
    background: linear-gradient(135deg, rgba(250, 232, 168, 0.99), rgba(230, 202, 120, 0.99)) !important;
    animation: none !important;
}

/* =========================================================
   PISCADO DE ALTA TENSÃO DO NÍVEL DE $ 1 MILHÃO NA PERGUNTA FINAL
   ========================================================= */
body.pergunta-milhao .ladder-item.active,
body[data-phase="4"] .ladder-item.active,
body.pergunta-milhao #level-14,
body[data-phase="4"] #level-14 {
    background: linear-gradient(90deg, #ffd700, #b8860b) !important;
    border: 2.5px solid #ffffff !important;
    color: #050814 !important;
    box-shadow: 0 0 35px #ffd700, inset 0 0 15px #ffffff !important;
    animation: goldHighStakesBlink 0.75s infinite alternate !important;
}

body.pergunta-milhao .ladder-item.active span,
body[data-phase="4"] .ladder-item.active span,
body.pergunta-milhao #level-14 span,
body[data-phase="4"] #level-14 span {
    color: #050814 !important;
    font-weight: 900 !important;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8) !important;
}

body.pergunta-milhao .ladder-item.active .level-num,
body[data-phase="4"] .ladder-item.active .level-num,
body.pergunta-milhao #level-14 .level-num,
body[data-phase="4"] #level-14 .level-num,
body.pergunta-milhao .ladder-item.active .ph-badge,
body[data-phase="4"] .ladder-item.active .ph-badge,
body.pergunta-milhao #level-14 .ph-badge,
body[data-phase="4"] #level-14 .ph-badge {
    background: rgba(0, 0, 0, 0.15) !important;
    border: 1.5px solid rgba(5, 8, 20, 0.7) !important;
    color: #050814 !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

@keyframes goldHighStakesBlink {
    0% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.85);
        transform: scale(1.04) translateX(-4px);
        filter: brightness(1);
    }
    100% {
        box-shadow: 0 0 50px #ffffff, 0 0 30px #ffd700, inset 0 0 20px #ffd700;
        transform: scale(1.09) translateX(-6px);
        background: linear-gradient(90deg, #ffffff, #ffd700);
        filter: brightness(1.35);
    }
}

/* =========================================================
   MODAL OVERLAY & FIM DE PARTIDA (ZERO TRAVAMENTO DE JS/UI)
   ========================================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 8, 18, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none !important;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.modal-content {
    --tier-accent: #ffd700;
    --tier-glow: rgba(255, 215, 0, 0.6);
    --tier-bg: linear-gradient(135deg, rgba(20, 25, 40, 0.96), rgba(8, 12, 24, 0.98));
    
    background: var(--tier-bg);
    border: 2px solid var(--tier-accent);
    padding: 32px 36px;
    border-radius: 24px;
    text-align: center;
    max-width: 680px;
    width: 92%;
    box-shadow: 0 0 50px var(--tier-glow), inset 0 0 20px rgba(255,255,255,0.03);
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2001;
    pointer-events: auto;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content[data-result-tier="1"] {
    --tier-accent: #ffd700;
    --tier-glow: rgba(255, 215, 0, 0.7);
    --tier-bg: linear-gradient(135deg, rgba(35, 28, 5, 0.96), rgba(12, 10, 2, 0.98));
}

.modal-content[data-result-tier="2"] {
    --tier-accent: #e2e8f0;
    --tier-glow: rgba(226, 232, 240, 0.6);
    --tier-bg: linear-gradient(135deg, rgba(20, 28, 40, 0.96), rgba(8, 12, 20, 0.98));
}

.modal-content[data-result-tier="3"] {
    --tier-accent: #cd7f32;
    --tier-glow: rgba(205, 127, 50, 0.65);
    --tier-bg: linear-gradient(135deg, rgba(30, 18, 10, 0.96), rgba(12, 7, 3, 0.98));
}

.modal-content[data-result-tier="4"] {
    --tier-accent: #a855f7;
    --tier-glow: rgba(168, 85, 247, 0.65);
    --tier-bg: linear-gradient(135deg, rgba(22, 10, 36, 0.96), rgba(8, 3, 16, 0.98));
}

/* =========================================================
   ESTILIZAÇÃO DINÂMICA DA TELA DE VITÓRIA (POR CENÁRIO E FASE)
   ========================================================= */

/* OVERLAY TRANSLÚCIDO NO CENÁRIO 7 PARA EXIBIR CANVAS ANIMAÇÕES AO FUNDO */
body[data-theme="7"] .modal-overlay,
body[data-theme="cosmic"] .modal-overlay,
body[data-theme="theme-premium-cosmic"] .modal-overlay {
    background: rgba(5, 8, 20, 0.72) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* CENÁRIO 7 - FASE 1 (ÁCIDOS / VERDE CÍTRICO) */
body[data-theme="7"][data-phase="1"] .modal-content[data-result-tier],
body[data-theme="7"].fase-1 .modal-content[data-result-tier] {
    background: linear-gradient(135deg, rgba(6, 26, 18, 0.88) 0%, rgba(3, 14, 10, 0.94) 100%) !important;
    border: 2px solid #a3e635 !important;
    box-shadow: 0 0 45px rgba(163, 230, 53, 0.45), inset 0 0 20px rgba(163, 230, 53, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* CENÁRIO 7 - FASE 2 (ORGÂNICA / CIANO NEUTRO) */
body[data-theme="7"][data-phase="2"] .modal-content[data-result-tier],
body[data-theme="7"].fase-2 .modal-content[data-result-tier] {
    background: linear-gradient(135deg, rgba(4, 24, 28, 0.88) 0%, rgba(2, 12, 16, 0.94) 100%) !important;
    border: 2px solid #00f5d4 !important;
    box-shadow: 0 0 45px rgba(0, 245, 212, 0.45), inset 0 0 20px rgba(0, 245, 212, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* CENÁRIO 7 - FASE 3 (FÍSICO-QUÍMICA / AZUL CHAMA) */
body[data-theme="7"][data-phase="3"] .modal-content[data-result-tier],
body[data-theme="7"].fase-3 .modal-content[data-result-tier] {
    background: linear-gradient(135deg, rgba(10, 18, 38, 0.88) 0%, rgba(4, 8, 20, 0.94) 100%) !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 0 45px rgba(59, 130, 246, 0.45), inset 0 0 20px rgba(59, 130, 246, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

/* CENÁRIO 7 - FASE 4 EXCLUSIVA ($1M / CYBER-BLUEPRINT LABORATORY) */
body[data-theme="7"][data-phase="4"] .modal-content[data-result-tier],
body[data-theme="7"].fase-4 .modal-content[data-result-tier],
body[data-theme="7"].pergunta-milhao .modal-content[data-result-tier] {
    background: linear-gradient(135deg, rgba(5, 8, 20, 0.85) 0%, rgba(12, 6, 24, 0.88) 100%) !important;
    border: 2.5px solid #00f5d4 !important;
    border-top-color: #ffd700 !important;
    border-bottom-color: #ffd700 !important;
    box-shadow: 0 0 55px rgba(0, 245, 212, 0.55), 0 0 25px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.15) !important;
    backdrop-filter: blur(8px) !important;
}

/* TÍTULO E VALOR DO PRÊMIO NA TELA DE VITÓRIA (DOURADO / AMARILLO GOLD) */
.modal-content[data-result-tier="1"] .result-title,
.modal-content[data-result-tier="1"] .prize-amount,
body[data-theme="7"] .modal-content[data-result-tier="1"] .result-title,
body[data-theme="7"] .modal-content[data-result-tier="1"] .prize-amount,
body[data-theme="7"][data-phase="4"] .modal-content[data-result-tier="1"] .result-title,
body[data-theme="7"][data-phase="4"] .modal-content[data-result-tier="1"] .prize-amount {
    color: #fbbf24 !important;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.75), 0 0 28px rgba(234, 179, 8, 0.4) !important;
}

body[data-theme="7"] .modal-content[data-result-tier="1"] .result-prize-box,
body[data-theme="cosmic"] .modal-content[data-result-tier="1"] .result-prize-box,
.modal-content[data-result-tier="1"] .result-prize-box {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1.5px solid #fbbf24 !important;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.5), inset 0 0 12px rgba(251, 191, 36, 0.12) !important;
}

body[data-theme="7"] .modal-content[data-result-tier="1"] .result-prize-box .prize-label,
.modal-content[data-result-tier="1"] .result-prize-box .prize-label {
    color: #fef08a !important;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5) !important;
}

/* OUTROS TIERS E DEMAIS FASES DO CENÁRIO 7 */
body[data-theme="7"] .modal-content:not([data-result-tier="1"]) .result-title,
body[data-theme="cosmic"] .modal-content:not([data-result-tier="1"]) .result-title {
    color: var(--ph-accent) !important;
    text-shadow: 0 0 20px var(--ph-glow) !important;
}

body[data-theme="7"] .modal-content:not([data-result-tier="1"]) .result-prize-box,
body[data-theme="cosmic"] .modal-content:not([data-result-tier="1"]) .result-prize-box {
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1.5px solid var(--ph-accent) !important;
    box-shadow: 0 0 22px var(--ph-glow) !important;
}

body[data-theme="7"] .modal-content:not([data-result-tier="1"]) .result-prize-box .prize-amount,
body[data-theme="cosmic"] .modal-content:not([data-result-tier="1"]) .result-prize-box .prize-amount {
    color: var(--ph-accent) !important;
    text-shadow: 0 0 16px var(--ph-glow) !important;
}

body[data-theme="7"] .modal-content[data-result-tier] .stat-card,
body[data-theme="cosmic"] .modal-content[data-result-tier] .stat-card {
    background: rgba(4, 20, 28, 0.6) !important;
    border: 1px solid rgba(0, 245, 212, 0.25) !important;
    backdrop-filter: blur(6px) !important;
}

body[data-theme="7"] .modal-content[data-result-tier] .restart-btn,
body[data-theme="cosmic"] .modal-content[data-result-tier] .restart-btn {
    background: linear-gradient(90deg, var(--ph-accent), #0284c7) !important;
    color: #031219 !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 0 25px var(--ph-glow) !important;
    font-weight: 900 !important;
}

body[data-theme="7"][data-phase="4"] .modal-content[data-result-tier] .restart-btn,
body[data-theme="7"].fase-4 .modal-content[data-result-tier] .restart-btn {
    background: linear-gradient(90deg, #ffd700, #00f5d4) !important;
    color: #050814 !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7) !important;
}

.result-icon {
    font-size: 3.8rem;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px var(--tier-accent));
    animation: bounceIcon 2s infinite ease-in-out;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.result-title {
    font-family: var(--hud-font);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--tier-accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    text-shadow: 0 0 20px var(--tier-glow);
    margin-bottom: 8px;
}

.result-phrase {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 18px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.result-prize-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--tier-accent);
    padding: 10px 24px;
    border-radius: 16px;
    margin-bottom: 22px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px var(--tier-glow);
}

.result-prize-box .prize-label {
    font-family: var(--mono-font);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.result-prize-box .prize-amount {
    font-family: var(--hud-font);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--tier-accent);
    text-shadow: 0 0 15px var(--tier-glow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--tier-accent);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.stat-card .stat-title {
    font-family: var(--hud-font);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-family: var(--mono-font);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.restart-btn {
    background: var(--tier-accent);
    color: #030712;
    border: none;
    padding: 13px 36px;
    font-family: var(--hud-font);
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px var(--tier-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.restart-btn:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 35px #ffffff;
    transform: translateY(-3px) scale(1.03);
}

.modal-btn {
    pointer-events: auto;
    cursor: pointer;
}

/* =========================================================
   CANVAS E SOBREPOSIÇÃO GLOBAL
   ========================================================= */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

body {
    transition: background-color 0.8s ease, color 0.5s ease;
}
