/* ========================================================
   DESAFIO SNO — pele do site novo (Educore). Carrega por ÚLTIMO.
   Fundo branco, faixas cinza, roxo da marca (#7046A6), Google Sans,
   cantos grandes, cartões brancos com borda fina. Só aparência:
   nenhuma lógica nem estrutura muda. A classe html.dark-theme continua
   no <html> (o JS a usa), mas aqui ela vale como o tema claro único.
   ======================================================== */

@font-face { font-family: "Google Sans SNO"; font-weight: 400; font-display: swap; src: url("../fonts/GoogleSans-400.woff2") format("woff2"); }
@font-face { font-family: "Google Sans SNO"; font-weight: 500; font-display: swap; src: url("../fonts/GoogleSans-500.woff2") format("woff2"); }
@font-face { font-family: "Google Sans SNO"; font-weight: 600; font-display: swap; src: url("../fonts/GoogleSans-600.woff2") format("woff2"); }
@font-face { font-family: "Google Sans SNO"; font-weight: 700; font-display: swap; src: url("../fonts/GoogleSans-700.woff2") format("woff2"); }

:root,
html.dark-theme {
    --font-ui: "Google Sans SNO", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-modern-display: var(--font-ui);

    --e-branco: #ffffff;
    --e-cinza-claro: #f1f2f4;
    --e-cinza-escuro: #b5b6b3;
    --e-grafite: #2b2d33;
    --e-grafite-2: #363840;
    --e-roxo: #7046A6;
    --e-roxo-escuro: #2D1B41;
    --e-borda: #e9ebee;
    --e-texto: #0f0f0f;
    --e-apoio: #595959;

    --ice-0: #ffffff; --ice-1: #f1f2f4; --ice-2: #e9ebee; --ice-3: #d6d8dc; --ice-4: #7046A6;
    --ink-0: #0f0f0f; --ink-1: #2b2d33; --ink-2: #595959;
    --fire-0: #f3ecfa; --fire-1: #d9c6ef; --fire-2: #8a60bd; --fire-3: #7046A6; --fire-4: #2D1B41;
    --blood-1: #C1121F; --blood-2: #C1121F;

    --bg: #ffffff;
    --card: #ffffff;
    --card-surface: #ffffff;
    --header: #ffffff;
    --text: #0f0f0f;
    --muted: #595959;
    --line: #e9ebee;
    --hint: #ffffff;
    --hint-border: #e9ebee;
    --hint-num-side: #7046A6;
    --accent: #7046A6;
    --accent-dark: #2D1B41;
    --shadow: 0 10px 30px rgba(15, 15, 15, .07);
    --cold-shadow: 0 10px 30px rgba(15, 15, 15, .07);
    --warm-shadow: 0 10px 30px rgba(112, 70, 166, .18);
    --ring-cold: 0 0 0 3px rgba(112, 70, 166, .22);
    --ring-warm: 0 0 0 3px rgba(112, 70, 166, .22);
    --success: #e6f4ec; --success-border: #2e7d4f;
    --error: #fbeaec; --error-border: #C1121F;
    --warning: #f7f0dc; --warning-border: #9a7b1c;

    --vidro-fundo: #ffffff;
    --vidro-fundo-opaco: #ffffff;
    --vidro-borda: #e9ebee;
    --vidro-brilho: 0 0 0 0 transparent;
    --vidro-sombra: 0 10px 30px rgba(15, 15, 15, .07);
}

html.dark-theme { color-scheme: light; }

html, html.dark-theme body {
    background: #ffffff;
    color: #0f0f0f;
}
html.dark-theme body::before,
html.dark-theme body::after { display: none; background: none; }

html.dark-theme body,
html.dark-theme button,
html.dark-theme input,
html.dark-theme select,
html.dark-theme textarea { font-family: var(--font-ui); }

html.dark-theme h1, html.dark-theme h2, html.dark-theme h3, html.dark-theme h4,
html.dark-theme .start-hero-title, html.dark-theme .question-title,
html.dark-theme .screen-title, html.dark-theme .summary-title {
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: -.035em;
    color: #0f0f0f;
    text-shadow: none;
}
html.dark-theme .start-hero-title { letter-spacing: -.045em; }

/* ---------- Barra do topo: reta, branca, fixa (como a do site) ---------- */
html.dark-theme .topbar {
    background: rgba(255, 255, 255, .96);
    border: 0;
    border-bottom: 1px solid #e3e5e8;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #0f0f0f;
}
html.dark-theme .brand-ship-img { display: none; }
html.dark-theme .brand::before {
    content: "";
    display: block;
    width: 150px;
    height: 34px;
    background: url("/marca/sno-logo-horizontal-roxo.png") center / contain no-repeat;
}
html.dark-theme .brand-fallback,
html.dark-theme .brand-med,
html.dark-theme .brand-termo { color: #2D1B41; }
html.dark-theme .brand.brand-img-missing::before { display: none; }

/* sol/lua: tema único, botão fora */
html.dark-theme #themeToggle,
html.dark-theme .theme-toggle { display: none !important; }

/* Menu e itens do menu */
html.dark-theme .menu-toggle,
html.dark-theme .nav-item {
    background: #ffffff;
    border: 1px solid #e3e5e8;
    border-radius: 1rem;
    box-shadow: none;
    color: #2D1B41;
    font-weight: 500;
    min-height: 44px;
}
html.dark-theme .menu-toggle:hover,
html.dark-theme .nav-item:hover { background: #f1f2f4; border-color: #d6d8dc; }
html.dark-theme .nav-item.active { background: #f3ecfa; border-color: #7046A6; color: #2D1B41; }
html.dark-theme .nav-item-cta,
html.dark-theme .bottom-nav .nav-item-cta {
    background: #7046A6;
    border: 1px solid #7046A6;
    color: #fff;
    box-shadow: none;
}
html.dark-theme .nav-item-cta:hover { background: #2D1B41; border-color: #2D1B41; }
html.dark-theme .topbar-nav,
html.dark-theme .topbar-menu { background: transparent; }
html.dark-theme .bottom-nav {
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #e3e5e8;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* ---------- Botões ---------- */
html.dark-theme .start-cta,
html.dark-theme .btn.primary,
html.dark-theme .onb-next,
html.dark-theme .fase-start,
html.dark-theme #submitGuess,
html.dark-theme #onbNext,
html.dark-theme .trophy-pop-btn,
html.dark-theme .season-modal-cta {
    background: #7046A6 !important;
    background-image: none !important;
    color: #fff !important;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    animation: none;
    min-height: 48px;
    text-shadow: none;
}
html.dark-theme .start-cta:hover,
html.dark-theme .btn.primary:hover:not(:disabled),
html.dark-theme .onb-next:hover,
html.dark-theme .fase-start:hover,
html.dark-theme #submitGuess:hover { background: #2D1B41 !important; }
html.dark-theme .start-cta-shine { display: none; }
html.dark-theme .btn,
html.dark-theme .btn.secondary,
html.dark-theme .modal-share-btn {
    background: #ffffff;
    color: #2D1B41;
    border: 1px solid #d6d8dc;
    border-radius: 999px;
    box-shadow: none;
    font-weight: 600;
    letter-spacing: .02em;
    min-height: 44px;
}
html.dark-theme .btn.secondary:hover:not(:disabled),
html.dark-theme .modal-share-btn:hover { background: #f1f2f4; border-color: #7046A6; }
html.dark-theme :focus-visible { outline: 2px solid #7046A6; outline-offset: 2px; }

/* ---------- Tela inicial: faixa cinza clara com hero ---------- */
html.dark-theme .start-thumb {
    background: #f1f2f4;
    border: 1px solid #e9ebee;
    border-radius: 1.75rem;
    box-shadow: none;
}
html.dark-theme .start-thumb-bg { display: none; }
html.dark-theme .start-hero-kicker { color: #7046A6; font-weight: 600; letter-spacing: .22em; }
html.dark-theme .start-hero-title { color: #0f0f0f; }
html.dark-theme .start-hero-title em {
    color: #7046A6;
    text-decoration: none;
}
html.dark-theme .start-today { color: #595959; }

/* ---------- Onboarding e troféu ---------- */
html.dark-theme .onb-backdrop,
html.dark-theme .trophy-backdrop,
html.dark-theme .modal-backdrop { background: rgba(15, 15, 15, .5); -webkit-backdrop-filter: none; backdrop-filter: none; }
html.dark-theme .onb-card,
html.dark-theme .trophy-pop,
html.dark-theme .result-modal,
html.dark-theme .season-modal,
html.dark-theme .rinha-modal {
    background: #ffffff;
    border: 1px solid #e9ebee;
    border-radius: 1.75rem;
    box-shadow: 0 24px 60px rgba(15, 15, 15, .22);
    color: #0f0f0f;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
html.dark-theme .onb-skip { color: #595959; font-weight: 600; }
html.dark-theme .onb-skip:hover { color: #2D1B41; }
html.dark-theme .onb-slide h3,
html.dark-theme .onb-slide p b { color: #0f0f0f; }
html.dark-theme .onb-slide p { color: #595959; font-size: 14px; }
html.dark-theme .onb-ico { filter: none; }
html.dark-theme .onb-dot { background: #d6d8dc; }
html.dark-theme .onb-dot.on { background: #7046A6; }
/* "Pular" ficava coberto pela área dos slides: sobe acima e ganha área de toque de 44px */
html.dark-theme .onb-skip { z-index: 2; min-width: 44px; min-height: 44px; top: 6px; right: 8px; font-size: 14px; }

/* ---------- Tela inicial ---------- */
html.dark-theme .start-thumb { background: #f1f2f4 !important; }
html.dark-theme .start-thumb::before,
html.dark-theme .start-thumb::after,
html.dark-theme .start-thumb-inner::before,
html.dark-theme .start-thumb-inner::after { display: none !important; }
html.dark-theme .start-hero-mark { background: #ffffff; border: 1px solid #e9ebee; box-shadow: none; border-radius: 1.5rem; }

/* ---------- Fases SNO ---------- */
html.dark-theme .wk-hero {
    background: #121212 url('../assets/fases-banner.webp') center / cover no-repeat;
    border: 0;
    border-radius: 1.75rem;
    box-shadow: none;
}
html.dark-theme .wk-hero-watermark { display: none; color: #363840; opacity: 1; -webkit-text-stroke: 0; text-shadow: none; }
html.dark-theme .wk-hero-title { color: #ffffff; text-shadow: none; }
html.dark-theme .wk-hero-title span { color: #d9c6ef; text-shadow: none; }

html.dark-theme .pilar-rail { background: #ffffff; border: 1px solid #e9ebee; border-radius: 1.25rem; box-shadow: none; }
html.dark-theme .pilar-rail-title { color: #595959; }
html.dark-theme .pilar-chip {
    background: #f1f2f4; border: 1px solid #e9ebee; color: #2b2d33; border-radius: 999px; box-shadow: none; font-weight: 500;
    min-height: 44px;
}
html.dark-theme .pilar-chip:hover:not([disabled]) { background: #e9ebee; }
html.dark-theme .pilar-chip.on { background: #7046A6; border-color: #7046A6; color: #fff; }
html.dark-theme .pilar-chip-count { background: #ffffff; color: #2b2d33; }
html.dark-theme .pilar-chip.on .pilar-chip-count { background: rgba(255, 255, 255, .22); color: #fff; }

html.dark-theme .trophy-slot { background: #ffffff; border: 1px solid #e9ebee; color: #595959; box-shadow: none; border-radius: 999px; }
html.dark-theme .trophy-slot.won { background: #f3ecfa; border-color: #7046A6; color: #2D1B41; }
html.dark-theme .trophy-slot.next { border-color: #7046A6; color: #2D1B41; }
html.dark-theme .trophy-name { color: inherit; }

html.dark-theme .trophy-progress { background: #f1f2f4; border: 1px solid #e9ebee; border-radius: 1.25rem; box-shadow: none; }
html.dark-theme .trophy-progress-top { color: #2b2d33; }
html.dark-theme .trophy-progress-top b { color: #2D1B41; }
html.dark-theme .trophy-progress-bar { background: #d6d8dc; }
html.dark-theme .trophy-progress-bar i { background: #7046A6; box-shadow: none; }
html.dark-theme .trophy-progress-sub { color: #595959; }
html.dark-theme .trophy-progress-sub b { color: #2b2d33; }

html.dark-theme .fase-tile {
    background: #ffffff; border: 1px solid #e9ebee; border-radius: 1.25rem; box-shadow: 0 6px 18px rgba(15, 15, 15, .06);
    color: #0f0f0f; backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.dark-theme .fase-tile::after { display: none; }
html.dark-theme .fase-tile:hover:not(.locked) { border-color: #7046A6; filter: none; transform: translateY(-2px); }
html.dark-theme .fase-tile.selected { border-color: #7046A6; outline: 3px solid rgba(112, 70, 166, .3); outline-offset: 0; box-shadow: none; }
html.dark-theme .fase-tile.cleared { background: #f3ecfa; border-color: #7046A6; }
html.dark-theme .fase-tile.progress { background: #f1f2f4; }
html.dark-theme .fase-tile-num { color: #2D1B41; text-shadow: none; font-weight: 600; letter-spacing: -.03em; }
html.dark-theme .fase-tile-stars .star { color: #d6d8dc; }
html.dark-theme .fase-tile-stars .star.on { color: #7046A6; text-shadow: none; }
html.dark-theme .fase-tile-prog { color: #595959; background: transparent; }
html.dark-theme .fase-tile-check { color: #fff; background: #7046A6; }
html.dark-theme .fase-tile-novo { background: #2D1B41; color: #fff; box-shadow: none; animation: none; }

html.dark-theme .fase-panel { background: #ffffff; border: 1px solid #e9ebee; border-radius: 1.5rem; box-shadow: 0 10px 30px rgba(15, 15, 15, .08); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.dark-theme .fase-panel-title { color: #0f0f0f; font-weight: 600; letter-spacing: .02em; }
html.dark-theme .fase-panel-stars { color: #2D1B41; font-weight: 600; }
html.dark-theme .fase-case { background: #f1f2f4; border: 1px solid #e9ebee; color: #0f0f0f; border-radius: 1rem; }
html.dark-theme .fase-case small { color: #2b2d33; }
html.dark-theme .fase-case[data-key]:hover { border-color: #7046A6; }
html.dark-theme .fase-case-badge { color: #2D1B41; }
html.dark-theme .fase-case-badge .star { color: #d6d8dc; }
html.dark-theme .fase-case-badge .star.on { color: #7046A6; }
html.dark-theme .fase-case.won { background: #e6f4ec; border-color: #2e7d4f; }
html.dark-theme .fase-case.lost { background: #fbeaec; border-color: #C1121F; }
html.dark-theme .fase-summary { background: #f1f2f4; border: 1px solid #e9ebee; color: #2b2d33; border-radius: 1rem; }
html.dark-theme .fase-summary b { color: #0f0f0f; }
html.dark-theme .fase-review { background: #ffffff; color: #2D1B41; border: 1px solid #7046A6; border-radius: 999px; box-shadow: none; min-height: 48px; font-weight: 600; }
html.dark-theme .fase-locked-note { color: #595959; }
html.dark-theme .fase-block-name { color: #0f0f0f; }

/* ---------- Tela do caso ---------- */
html.dark-theme .back-to-fases { background: #ffffff; color: #2D1B41; border: 1px solid #d6d8dc; border-radius: 999px; box-shadow: none; min-height: 44px; font-weight: 600; }
html.dark-theme .promo-callout { background: #f1f2f4; border: 1px solid #e9ebee; border-radius: 1.5rem; box-shadow: none; color: #2b2d33; }
html.dark-theme .promo-callout-badge { background: #7046A6; box-shadow: none; }
html.dark-theme .promo-callout-text strong { color: #0f0f0f; }
html.dark-theme .promo-callout-text span { color: #2b2d33; }
html.dark-theme .promo-callout-text b { color: #2D1B41; }
html.dark-theme .promo-callout-text i { color: #2D1B41; font-style: normal; font-weight: 600; }
html.dark-theme .archive-meta,
html.dark-theme .archive-jump-center,
html.dark-theme .screen-subtitle { color: #595959; }
html.dark-theme .archive-jump-btn { background: #ffffff; border: 1px solid #d6d8dc; color: #2D1B41; border-radius: 999px; box-shadow: none; min-width: 44px; min-height: 44px; }
html.dark-theme .archive-jump-btn:hover:not(:disabled) { background: #f1f2f4; border-color: #7046A6; }
html.dark-theme .archive-jump-icon { color: #2D1B41; border-color: #2D1B41; }

html.dark-theme .case-card,
html.dark-theme .hint {
    --hint-bg: #ffffff;
    --hint-locked-bg: #f1f2f4;
    --hint-border: #e9ebee;
    --hint-locked-border: #d6d8dc;
    --hint-text-color: #0f0f0f;
    --hint-num-center: #595959;
    --hint-shadow: 0 6px 18px rgba(15, 15, 15, .06);
    --hint-radius: 1.25rem;
}
html.dark-theme .case-card { background: #ffffff; border: 1px solid #e9ebee; border-radius: 1.5rem; box-shadow: 0 8px 24px rgba(15, 15, 15, .07); color: #0f0f0f; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.dark-theme .hint { background: var(--hint-bg); border: 1px solid var(--hint-border); box-shadow: var(--hint-shadow); color: #0f0f0f; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.dark-theme .hint.hidden { background: #f1f2f4; border-color: #d6d8dc; box-shadow: none; }
html.dark-theme .hint-text { color: #0f0f0f; }
html.dark-theme .hint-number-side { color: #7046A6; }
html.dark-theme .hint-label-dica,
html.dark-theme .hint-label-num { color: #7046A6; }
html.dark-theme .hint-number-center { color: #595959; }
html.dark-theme .skeleton-line { background: #e9ebee; }

html.dark-theme .input-row { background: #ffffff; border: 1px solid #d6d8dc; border-radius: 999px; box-shadow: 0 8px 24px rgba(15, 15, 15, .08); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.dark-theme .input-row:focus-within { border-color: #7046A6; box-shadow: 0 0 0 3px rgba(112, 70, 166, .22); }
html.dark-theme .input-row input[type="search"] { color: #0f0f0f; background: transparent; }
html.dark-theme .input-row input[type="search"]::placeholder { color: #595959; opacity: 1; }
html.dark-theme #skipGuess { background: #f1f2f4; color: #2D1B41; border: 1px solid #d6d8dc; min-height: 44px; }
html.dark-theme #submitGuess { min-height: 44px; }
html.dark-theme .autocomplete { background: #ffffff; border: 1px solid #e9ebee; border-radius: 1.25rem; box-shadow: 0 16px 40px rgba(15, 15, 15, .16); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.dark-theme .autocomplete-item { color: #0f0f0f; background: transparent; border-color: #e9ebee; }
html.dark-theme .autocomplete-item:hover,
html.dark-theme .autocomplete-item.active,
html.dark-theme .autocomplete-item.selected,
html.dark-theme .autocomplete-item[aria-selected="true"] { background: #f3ecfa; color: #2D1B41; }

/* ---------- Campo, aviso, resultado ---------- */
html.dark-theme .input-row input[type="search"],
html.dark-theme .input-row input[type="search"]:focus { border: 0; outline: 0; box-shadow: none; background: transparent; }
html.dark-theme .promo-callout *,
html.dark-theme .archive-meta,
html.dark-theme .question-title { text-shadow: none; }
html.dark-theme .notice,
html.dark-theme .notice-flip { background: #fbeaec; color: #7a0c15; border: 1px solid #C1121F; border-radius: 999px; box-shadow: none; text-shadow: none; }

/* ---------- Avisos (acertou / errou / dica) ---------- */
html.dark-theme .notice,
html.dark-theme .notice.warning { background: #f1f2f4; color: #2b2d33; border: 1px solid #d6d8dc; border-radius: 999px; box-shadow: none; text-shadow: none; }
html.dark-theme .notice.success,
html.dark-theme .notice.success.compact-status { background: #e6f4ec; color: #14452a; border: 1px solid #2e7d4f; box-shadow: none; text-shadow: none; }
html.dark-theme .notice.error,
html.dark-theme .notice.error.compact-status { background: #fbeaec; color: #7a0c15; border: 1px solid #C1121F; box-shadow: none; text-shadow: none; }
html.dark-theme .week-toast { background: #2b2d33; color: #ffffff; border: 0; border-radius: 1.25rem; box-shadow: 0 16px 40px rgba(15, 15, 15, .28); }
html.dark-theme .week-toast * { color: inherit; text-shadow: none; }
html.dark-theme .week-toast-xp { color: #d9c6ef; }
html.dark-theme .week-toast b { color: #ffffff; }

/* ---------- Resultado ---------- */
html.dark-theme .result-card { background: #ffffff; border: 1px solid #e9ebee; border-radius: 1.5rem; box-shadow: 0 8px 24px rgba(15, 15, 15, .07); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.dark-theme .result-card-actions { background: transparent; border: 0; box-shadow: none; }
html.dark-theme .result-card-label,
html.dark-theme .result-card-answer-prefix { color: #595959; font-weight: 500; letter-spacing: .12em; text-shadow: none; }
html.dark-theme .result-card-answer,
html.dark-theme .resolved-answer-text { color: #2D1B41; font-weight: 600; letter-spacing: -.03em; text-shadow: none; }
html.dark-theme .result-countdown { color: #595959; }
html.dark-theme .result-archive-link,
html.dark-theme .result-toggle-btn,
html.dark-theme .heatmap-stats-link { color: #7046A6; text-decoration: underline; text-underline-offset: .2em; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; }
html.dark-theme .result-toggle-btn { width: 100%; }
html.dark-theme .summary-inline-btn,
html.dark-theme .result-archive-btn { background: #ffffff; color: #2D1B41; border: 1px solid #d6d8dc; }
html.dark-theme .modal-share-btn,
html.dark-theme .result-share-btn,
html.dark-theme .share-split-main {
    background: #7046A6 !important; background-image: none !important; color: #fff !important; border: 0; box-shadow: none; text-shadow: none;
}
html.dark-theme .share-split-main:hover { background: #2D1B41 !important; }
html.dark-theme .share-split-copy { background: #ffffff; border: 1px solid #7046A6; color: #7046A6; box-shadow: none; }
html.dark-theme .share-split-copy .copy-chip { background: transparent; color: inherit; }
html.dark-theme .share-split-copy:hover { background: #f3ecfa; }

html.dark-theme .guess-list-header { color: #595959; }
html.dark-theme .guess-list.has-items,
html.dark-theme .guess-list-body { background: transparent; border-color: #e9ebee; box-shadow: none; }
html.dark-theme .guess-item { background: #ffffff; color: #0f0f0f; border: 1px solid #e9ebee; border-radius: 1rem; box-shadow: none; }
html.dark-theme .guess-item-index { color: #595959; }
html.dark-theme .guess-item.wrong { background: #fbeaec; border-color: #C1121F; color: #7a0c15; }
html.dark-theme .guess-item.skip { background: #f1f2f4; border-color: #d6d8dc; color: #2b2d33; }
html.dark-theme .guess-item.correct { background: #e6f4ec; border-color: #2e7d4f; color: #14452a; }
html.dark-theme .disclosure-banner { background: #f1f2f4; color: #2b2d33; border: 1px solid #e9ebee; }

/* Resumo / explicação */
html.dark-theme .summary-card,
html.dark-theme .summary-box { background: #ffffff; color: #0f0f0f; border: 1px solid #e9ebee; border-radius: 1.5rem; box-shadow: 0 8px 24px rgba(15, 15, 15, .07); backdrop-filter: none; -webkit-backdrop-filter: none; }
html.dark-theme .summary-title { color: #0f0f0f; }

/* ---------- Estatísticas ---------- */
html.dark-theme .screen-title { color: #0f0f0f; font-weight: 600; letter-spacing: -.035em; }
html.dark-theme .stat-card { background: #ffffff; border: 1px solid #e9ebee; border-radius: 1.25rem; box-shadow: none; color: #0f0f0f; }
html.dark-theme .stat-card * { text-shadow: none; }
html.dark-theme .dist { background: #f1f2f4; border: 1px solid #e9ebee; border-radius: 1.5rem; box-shadow: none; color: #0f0f0f; }
html.dark-theme .dist h4 { color: #0f0f0f; }
html.dark-theme .bar-wrap { background: #d6d8dc; }
html.dark-theme .bar { background: #7046A6; box-shadow: none; }
html.dark-theme .small-muted { color: #595959; }
html.dark-theme .rpg-card { background: #2b2d33; color: #ffffff; border: 0; border-radius: 1.75rem; box-shadow: none; }
html.dark-theme .rpg-card * { text-shadow: none; }
html.dark-theme .about-box,
html.dark-theme .about-panel { background: #ffffff; border: 1px solid #e9ebee; color: #2b2d33; }

/* ---------- Modais ---------- */
html.dark-theme .result-modal-head h3 { color: #0f0f0f; }
html.dark-theme .result-modal-x { background: #f1f2f4; color: #2b2d33; border: 1px solid #e9ebee; min-width: 44px; min-height: 44px; border-radius: 999px; }
html.dark-theme .result-modal p,
html.dark-theme .result-modal-head p { color: #595959; }
html.dark-theme .trophy-pop-name { color: #2D1B41; }
html.dark-theme .trophy-pop-kicker { color: #7046A6; }
html.dark-theme .trophy-pop-sub { color: #595959; }
html.dark-theme .trophy-pop-burst { display: none; }

/* ---------- Rodapé: faixa grafite ---------- */
html.dark-theme .site-footer { background: #2b2d33; color: #ffffff; border: 0; border-radius: 1.75rem 1.75rem 0 0; }
html.dark-theme .site-footer a,
html.dark-theme .site-footer-desc,
html.dark-theme .site-footer-bottom { color: #e9ebee; }
html.dark-theme .site-footer h3,
html.dark-theme .site-footer-tagline,
html.dark-theme .site-footer-logo span { color: #ffffff; }

/* ---------- Passo de refino: o que o legado ainda pintava escuro ---------- */
html.dark-theme .topbar-nav .nav-item,
html.dark-theme .bottom-nav .nav-item {
    background: #ffffff !important;
    background-image: none !important;
    border: 1px solid #e3e5e8 !important;
    color: #2D1B41 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
html.dark-theme .topbar-nav .nav-item:hover { background: #f1f2f4 !important; }
html.dark-theme .topbar-nav .nav-item.active,
html.dark-theme .bottom-nav .nav-item.active { background: #f3ecfa !important; border-color: #7046A6 !important; }
html.dark-theme .topbar-nav .nav-item .nav-label,
html.dark-theme .bottom-nav .nav-item span { color: inherit !important; text-shadow: none !important; }
html.dark-theme .topbar-nav .nav-item-cta,
html.dark-theme .bottom-nav .nav-item-cta { background: #7046A6 !important; border-color: #7046A6 !important; color: #ffffff !important; }
html.dark-theme .topbar-nav .nav-item-cta:hover { background: #2D1B41 !important; }
html.dark-theme .menu-toggle { background: #ffffff !important; background-image: none !important; color: #2D1B41 !important; border: 1px solid #d6d8dc !important; box-shadow: none !important; }

html.dark-theme .resolved-answer-text,
html.dark-theme .result-card-answer,
html.dark-theme .result-card-answer * { color: #2D1B41 !important; text-shadow: none !important; }
html.dark-theme .result-card-label { color: #595959 !important; }
html.dark-theme .summary-inline-btn,
html.dark-theme .btn.secondary.summary-inline-btn {
    background: #ffffff !important; background-image: none !important; color: #2D1B41 !important;
    border: 1px solid #d6d8dc !important; box-shadow: none !important; text-shadow: none !important; border-radius: 999px;
}
html.dark-theme .summary-inline-btn:hover { background: #f1f2f4 !important; border-color: #7046A6 !important; }
html.dark-theme .share-split-main,
html.dark-theme .result-share-btn,
html.dark-theme .modal-share-btn { box-shadow: none !important; filter: none !important; }
html.dark-theme .share-split-copy { background: #ffffff !important; background-image: none !important; color: #7046A6 !important; border: 1px solid #7046A6 !important; box-shadow: none !important; }

/* Estatísticas */
html.dark-theme .stat-card { background: #ffffff !important; background-image: none !important; border: 1px solid #e9ebee !important; box-shadow: none !important; }
html.dark-theme .stat-card strong { color: #2D1B41 !important; text-shadow: none !important; font-weight: 600; letter-spacing: -.035em; }
html.dark-theme .stat-card span { color: #595959 !important; }
html.dark-theme .pf-card,
html.dark-theme .profile-panel .pf-card { background: #f1f2f4 !important; background-image: none !important; border: 1px solid #e9ebee !important; border-radius: 1.5rem; box-shadow: none !important; }
html.dark-theme .pf-title { color: #0f0f0f; }
html.dark-theme .pf-sub,
html.dark-theme .pf-label,
html.dark-theme .pf-empty { color: #595959; }
html.dark-theme .pf-shirt { background: #ffffff; border: 1px solid #e9ebee; color: #2b2d33; border-radius: 1rem; }
html.dark-theme .pf-shirt.selected { border-color: #7046A6; box-shadow: 0 0 0 2px rgba(112, 70, 166, .3); }
html.dark-theme .pf-trophy { background: #ffffff; border: 1px solid #e9ebee; color: #2b2d33; }
html.dark-theme .pf-trophy.selected { border-color: #7046A6; box-shadow: none; color: #2D1B41; }
html.dark-theme .rpg-card { background: #2b2d33 !important; background-image: none !important; color: #ffffff; }
html.dark-theme .rpg-card .rpg-title { color: #d9c6ef; }
html.dark-theme .rpg-card .rpg-level-badge { color: #ffffff; }
html.dark-theme .guess-item { background-image: none !important; }

/* ---------- Detalhes de contraste e alvos de toque ---------- */
html.dark-theme .pilar-chip.on .pilar-chip-count { background: #2D1B41; color: #ffffff; }
html.dark-theme .rpg-xptext,
html.dark-theme .rpg-card .small-muted,
html.dark-theme .rpg-card span { color: #e9ebee; }
html.dark-theme .rpg-xpgain,
html.dark-theme .rpg-card [class*="gain"] { color: #d9c6ef; }
html.dark-theme .notice-flip { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
html.dark-theme #annualPrevBtn,
html.dark-theme #annualNextBtn { min-width: 44px; min-height: 44px; }
html.dark-theme .brand { min-height: 44px; display: flex; align-items: center; }
html.dark-theme .brand::before { height: 44px; }

/* ---------- Histórico semanal e anual: claros ---------- */
html.dark-theme .weekly-heatmap,
html.dark-theme .annual-heatmap { background: #f1f2f4; border: 1px solid #e9ebee; border-radius: 1.5rem; box-shadow: none; }
html.dark-theme .weekly-heatmap h4,
html.dark-theme .annual-heatmap-title,
html.dark-theme .annual-month-label,
html.dark-theme .heatmap-daynum { color: #0f0f0f; }
html.dark-theme .heatmap-weekday,
html.dark-theme .annual-cal-header-cell { color: #595959; }
html.dark-theme .annual-nav-btn { color: #2D1B41; }
html.dark-theme .annual-nav-btn:hover:not(:disabled) { background: #e9ebee; color: #2D1B41; }

/* ---------- Modal do resultado ---------- */
html.dark-theme .result-modal.modal-won { border: 1px solid #e9ebee; box-shadow: 0 24px 60px rgba(15, 15, 15, .22); }
html.dark-theme .result-modal.modal-lost { border: 1px solid #e9ebee; box-shadow: 0 24px 60px rgba(15, 15, 15, .22); }
html.dark-theme .result-modal-head { background: #f1f2f4 !important; background-image: none !important; border-bottom: 1px solid #e9ebee; }
html.dark-theme .result-modal-head h3 { color: #0f0f0f !important; }
html.dark-theme .result-modal-head p { color: #595959 !important; }
html.dark-theme .result-modal-head .result-modal-stat { color: #2D1B41 !important; }
html.dark-theme .result-modal-head p a { color: #7046A6; }
html.dark-theme .modal-countdown { color: #2D1B41 !important; }
html.dark-theme .highlight-diagnosis { color: #2D1B41; }
html.dark-theme .result-modal-body { background: #ffffff; }
html.dark-theme .result-modal-x { position: absolute; }
html.dark-theme .trophy-pop * { text-shadow: none !important; }
html.dark-theme .trophy-pop-ico { filter: none; }

/* ---------- Botões no padrão do site: pílula, 44px de toque, Google Sans 600 ---------- */
html.dark-theme .menu-toggle,
html.dark-theme .nav-item,
html.dark-theme .pilar-chip,
html.dark-theme .trophy-slot,
html.dark-theme .btn,
html.dark-theme .trophy-pop-btn,
html.dark-theme .onb-skip {
  min-height: 44px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}
html.dark-theme .menu-toggle { padding: 0 1.1rem; background: #fff; border: 1px solid #d6d8dc; color: #0f0f0f; }
html.dark-theme .menu-toggle:hover { background: #f1f2f4; }
html.dark-theme .nav-item { padding: 0 1.1rem; }
html.dark-theme .nav-item-cta,
html.dark-theme .btn-primary,
html.dark-theme .trophy-pop-btn { background: #7046A6; border: 1px solid #7046A6; color: #fff; box-shadow: none; }
html.dark-theme .nav-item-cta:hover,
html.dark-theme .btn-primary:hover,
html.dark-theme .trophy-pop-btn:hover { background: #2D1B41; border-color: #2D1B41; }
html.dark-theme .pilar-chip { padding: 0 1rem; }
html.dark-theme .trophy-slot { padding: 0 1rem; }
html.dark-theme .brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
