/* ============================================================ */
/* DESIGN TOKENS                                                 */
/* ============================================================ */

:root {
    --primary: #2563eb;
    --primary-rgb: 37, 99, 235;
    --primary-dark: #1d4ed8;
    --primary-light: #e8f0fe;
    --primary-light-hover: #dbe4fe;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --purple: #7c3aed;
    --purple-light: #ede9fe;

    --bg: #f4f6fb;
    --bg-suave: #eef3fe;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-faint: #94a3b8;
    --border: #e5e9f2;

    --surface-muted: #f1f5f9;
    --surface-muted-hover: #e2e8f0;
    --track-bg: #eef1f7;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 12px 28px -10px rgba(15, 23, 42, 0.18);
}

/* ============================================================ */
/* TEMAS (cor de destaque + modo claro/escuro, escolhidos pelo   */
/* usuário e salvos no dispositivo)                              */
/* ============================================================ */

/* --- Verde (claro) --- */
[data-tema="verde-claro"] {
    --primary: #059669;
    --primary-rgb: 5, 150, 105;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --primary-light-hover: #a7f3d0;
    --bg-suave: #eafbf3;
}

/* --- Roxo (claro) --- */
[data-tema="roxo-claro"] {
    --primary: #7c3aed;
    --primary-rgb: 124, 58, 237;
    --primary-dark: #6d28d9;
    --primary-light: #ede9fe;
    --primary-light-hover: #ddd6fe;
    --bg-suave: #f5f0fe;
}

/* --- Rosa (claro) --- */
[data-tema="rosa-claro"] {
    --primary: #db2777;
    --primary-rgb: 219, 39, 119;
    --primary-dark: #be185d;
    --primary-light: #fce7f3;
    --primary-light-hover: #fbcfe8;
    --bg-suave: #fdf0f6;
}

/* --- Escuro (azul / verde / rosa) --- */
[data-tema="escuro-azul"],
[data-tema="escuro-verde"],
[data-tema="escuro-rosa"] {
    --bg: #0f172a;
    --bg-suave: #0f172a;
    --card: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --border: #334155;

    --surface-muted: #273449;
    --surface-muted-hover: #334155;
    --track-bg: #273449;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
}

[data-tema="escuro-azul"] {
    --primary: #3b82f6;
    --primary-rgb: 59, 130, 246;
    --primary-dark: #60a5fa;
    --primary-light: #1e3a5f;
    --primary-light-hover: #24466f;
    --bg-suave: #101c33;
}

/* --- Escuro (verde) --- */
[data-tema="escuro-verde"] {
    --primary: #22c55e;
    --primary-rgb: 34, 197, 94;
    --primary-dark: #4ade80;
    --primary-light: #14532d;
    --primary-light-hover: #1b6b3a;
    --bg-suave: #0f2018;
}

/* --- Escuro (rosa) --- */
[data-tema="escuro-rosa"] {
    --primary: #f472b6;
    --primary-rgb: 244, 114, 182;
    --primary-dark: #f9a8d4;
    --primary-light: #831843;
    --primary-light-hover: #9d174d;
    --bg-suave: #1f1420;
}

/* --- Fundo de tela: por padrão, um tom bem clarinho da cor do tema   --- */
/* (--bg-suave); quem preferir o fundo neutro de sempre pode trocar no --- */
/* menu "Fundo" da barra lateral (data-fundo="neutro").                --- */
[data-fundo="neutro"] {
    --bg-suave: var(--bg);
}
html:not([data-fundo="neutro"]) {
    --bg: var(--bg-suave);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0 0 40px 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: inherit; }

/* ============================================================ */
/* LAYOUT GERAL: BARRA LATERAL (desktop) / TOPO (mobile)          */
/* ============================================================ */

.layout {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-sm);
}

.sidebar-planos-label {
    display: none;
}

.content {
    min-width: 0;
}

.app-bar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Marca "Direto à Posse" (logo em SVG + parte em destaque no nome) --- */
.brand-mark {
    display: block;
    flex-shrink: 0;
}

.brand-acento {
    color: #c9962b;
}

[data-tema^="escuro"] .brand-acento {
    color: #f6d365;
}

.app-bar-logo {
    width: 26px;
    height: 26px;
}

.app-bar-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.streak-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-muted);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-faint);
    transition: background 0.2s, color 0.2s;
}

.streak-badge.streak-ativa {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c;
}

.streak-icone {
    font-size: 15px;
    filter: grayscale(1);
    opacity: 0.5;
}

.streak-badge.streak-ativa .streak-icone {
    filter: none;
    opacity: 1;
}

/* ============================================================ */
/* ABAS DE PLANO                                                 */
/* ============================================================ */

.planos-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.plano-tab {
    background: var(--card);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.plano-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.plano-tab.ativo {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.plano-tab-novo {
    background: transparent;
    color: var(--text-faint);
    border: 1px dashed #cbd5e1;
}

/* ============================================================ */
/* SELETOR DE TEMA (cor de destaque + claro/escuro)              */
/* ============================================================ */

.sidebar-tema {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.tema-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 8px;
}

.tema-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tema-swatch {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid var(--card);
    box-shadow: 0 0 0 1.5px var(--border);
    cursor: pointer;
    padding: 0;
    transition: box-shadow 0.15s, transform 0.15s;
}

.tema-swatch:hover {
    transform: translateY(-1px);
}

.tema-swatch.ativo {
    box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text);
}

.sidebar-fundo {
    margin-top: 14px;
}

.fundo-opcoes {
    display: flex;
    gap: 6px;
}

.fundo-opcao {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fundo-opcao:hover {
    background: var(--surface-muted);
}

.fundo-opcao.ativo {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================ */
/* LOGIN (Google) E USUÁRIO LOGADO                                */
/* ============================================================ */

.login-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px 32px;
    max-width: 360px;
    width: 100%;
    text-align: center;
}

.login-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
}

.login-card h1 {
    font-size: 20px;
    margin: 0 0 10px;
    color: var(--text);
}

.login-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

.login-google-btn {
    display: flex;
    justify-content: center;
    min-height: 40px;
}

.login-erro {
    color: var(--danger, #ef4444);
    font-size: 12px;
    margin-top: 14px;
}

.sidebar-usuario {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.usuario-foto {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-muted);
}

.usuario-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.usuario-nome {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.usuario-sair {
    background: none;
    border: none;
    padding: 0;
    font-size: 11px;
    color: var(--text-faint);
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
}

.usuario-sair:hover {
    color: var(--primary);
}

.edital-arquivo-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.edital-arquivo-linha {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.arquivo-input-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.arquivo-botao-bonito {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.arquivo-botao-bonito:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.arquivo-botao-icone {
    font-size: 20px;
    flex-shrink: 0;
}

.arquivo-botao-textos {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.arquivo-botao-titulo {
    font-size: 13px;
    font-weight: 700;
}

.arquivo-botao-nome {
    font-size: 11.5px;
    color: var(--text-faint);
}

/* ============================================================ */
/* CRONÔMETRO DE ESTUDO                                          */
/* ============================================================ */
/* Fica como uma bolha flutuante pequena no canto da tela (não ocupa
   espaço fixo no topo da página); clicar nela abre o painel completo
   com os controles (modo, config do pomodoro, iniciar/pausar/finalizar). */

.timer-bolha {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease, transform 0.15s ease;
}

.timer-bolha:hover {
    transform: translateY(-1px);
}

.timer-bolha.timer-rodando {
    background: linear-gradient(135deg, #14532d 0%, var(--success) 55%, #15803d 100%);
}

.timer-bolha.timer-pausado {
    background: linear-gradient(135deg, #78350f 0%, var(--warning) 55%, #b45309 100%);
}

.timer-bolha-icone {
    font-size: 15px;
}

.timer-bolha-tempo {
    font-family: 'Consolas', 'SF Mono', monospace;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.timer-card {
    position: fixed;
    right: 18px;
    bottom: 76px;
    z-index: 1041;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    transition: background 0.3s ease;
}

.timer-card.timer-rodando {
    background: linear-gradient(135deg, #14532d 0%, var(--success) 55%, #15803d 100%);
}

.timer-card.timer-pausado {
    background: linear-gradient(135deg, #78350f 0%, var(--warning) 55%, #b45309 100%);
}

.timer-card-fechar {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.timer-card-fechar:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
    .timer-card {
        right: 16px;
        left: 16px;
        width: auto;
        bottom: 72px;
    }
}

.timer-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timer-display {
    font-family: 'Consolas', 'SF Mono', monospace;
    font-size: 3.1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.timer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.timer-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.96);
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.timer-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.timer-btn-stop {
    background: rgba(15, 23, 42, 0.88);
    color: white;
}

.timer-modo-row {
    display: flex;
    gap: 8px;
}

.timer-modo-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.timer-modo-btn:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.timer-modo-btn.ativo {
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-dark);
    border-color: transparent;
}

.pomodoro-config {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
}

.pomodoro-config label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pomodoro-config input {
    width: 52px;
    text-align: center;
    border: none;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
}

.pomodoro-ciclo {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.pomodoro-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    z-index: 1100;
    max-width: 90vw;
}

/* ============================================================ */
/* NAVEGAÇÃO ENTRE SEÇÕES (painel de toggle)                      */
/* ============================================================ */

.view-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background: var(--card);
    padding: 5px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.view-tab {
    flex: 1;
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 10px 8px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.view-tab-icone {
    font-size: 14px;
}

.view-tab:hover {
    color: var(--text);
}

.view-tab.ativo {
    background: var(--primary);
    color: white;
}

/* ============================================================ */
/* CARDS / SEÇÕES GENÉRICAS                                      */
/* ============================================================ */

.painel-bloco {
    margin-bottom: 26px;
}

.painel-bloco-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.painel-bloco-header h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.painel-bloco-sub {
    font-size: 12px;
    color: var(--text-faint);
}

.secao-titulo {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--text);
}

.lista-vazia {
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* --- Progresso do edital --- */
.progress-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.progress-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar {
    background: var(--track-bg);
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

#progress-fill {
    background: linear-gradient(90deg, var(--success), #22c55e);
    height: 100%;
    width: 0%;
    transition: 0.5s ease;
    border-radius: 10px;
}

.add-section {
    background: var(--card);
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

/* ============================================================ */
/* CAMPOS DE FORMULÁRIO                                          */
/* ============================================================ */

input,
textarea,
select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background: var(--card);
    color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 14px;
    transition: background 0.15s ease, transform 0.1s ease;
}

button:hover {
    background: var(--primary-dark);
}

button:active {
    transform: scale(0.98);
}

.link-btn {
    background: none;
    color: var(--primary);
    border: none;
    padding: 2px 0;
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
    align-self: flex-start;
    cursor: pointer;
}

.link-btn:hover { background: none; text-decoration: underline; }

/* ============================================================ */
/* CHECKBOXES DE PLANO (importação / edição de tópico)            */
/* ============================================================ */

.planos-check-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.planos-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.plano-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.plano-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.badge-compartilhado {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--purple-light);
    color: var(--purple);
    font-size: 10.5px;
    font-weight: 700;
    vertical-align: middle;
}

/* ============================================================ */
/* LISTA DO EDITAL                                                */
/* ============================================================ */

.materia-group {
    margin-top: 16px;
}

.materia-header {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.materia-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.seta {
    color: var(--text-faint);
    font-size: 11px;
}

.materia-title {
    font-size: 0.95rem;
    color: var(--text);
}

.stats-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.materia-content {
    padding-top: 4px;
}

.item-check {
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.materia-content .item-check:last-child {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.item-check.done {
    background: var(--surface-muted);
}

.item-check.done .topico-texto {
    opacity: 0.55;
    text-decoration: line-through;
}

.item-check.selecionado {
    background: var(--primary-light);
}

.checkbox-selecao-item {
    accent-color: var(--purple);
}

.edital-selecao-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.edital-selecao-acoes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    box-shadow: var(--shadow-sm);
}

.edital-selecao-contador {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.edital-selecao-planos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.topico-texto {
    flex: 1;
    font-size: 14px;
    cursor: pointer;
}

.actions,
.historico-item-acoes {
    display: flex;
    gap: 6px;
}

.btn-edit {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}

.btn-edit:hover {
    background-color: var(--primary-light-hover);
}

.btn-delete {
    background-color: var(--danger-light);
    color: #b91c1c;
    border: none;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}

.btn-delete:hover {
    background-color: #fecaca;
}

/* ============================================================ */
/* MODAIS                                                        */
/* ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(2px);
}

.modal {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 22px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.modal-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 6px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.btn-cancelar {
    background: var(--surface-muted);
    color: var(--text);
}

.btn-cancelar:hover {
    background: var(--surface-muted-hover);
}

/* ============================================================ */
/* MODAL: SESSÃO DE ESTUDO                                       */
/* ============================================================ */

.modal-sessao {
    max-width: 480px;
}

.sessao-duracao-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-light);
    border-radius: 10px;
    padding: 12px 16px;
}

.sessao-duracao-label {
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 700;
}

.sessao-duracao-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary-dark);
}

.sessao-duracao-inputs input {
    width: 56px;
    text-align: center;
    font-family: 'Consolas', 'SF Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 6px 4px;
}

.tipos-estudo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tipo-chip {
    background: var(--surface-muted);
    color: var(--text);
    border: 1.5px solid transparent;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.tipo-chip:hover {
    background: var(--surface-muted-hover);
}

.tipo-chip.ativo {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.busca-topicos {
    width: 100%;
}

.sessao-topicos-lista {
    height: 320px;
    max-height: 45vh;
    flex-shrink: 0;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--surface-muted);
}

.sessao-topicos-vazio {
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px;
    text-align: center;
}

.sessao-materia-grupo {
    margin-bottom: 10px;
}

.sessao-materia-titulo {
    font-weight: 800;
    font-size: 12.5px;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 8px 0 4px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

.sessao-topico-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    padding: 7px 4px;
    cursor: pointer;
    border-radius: 6px;
}

.sessao-topico-item:hover {
    background: var(--primary-light);
}

.sessao-topico-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sessao-topico-item-fixo {
    color: var(--text-faint);
    cursor: default;
}

.sessao-topico-materia-extra {
    font-size: 11px;
    color: var(--text-faint);
}

.campo-extra {
    background: var(--surface-muted);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--border);
}

.questoes-inputs {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.questoes-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.questoes-input-group label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
}

.questoes-input-group input {
    width: 70px;
}

.questoes-resultado {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    padding-bottom: 10px;
}

.ritmo-leitura {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--purple);
    min-height: 16px;
}

.revisao-box {
    background: var(--purple-light);
    border-radius: 10px;
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.revisao-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #5b21b6;
    cursor: pointer;
}

.revisao-dias-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #5b21b6;
}

.revisao-dias-row input {
    width: 56px;
}

.revisao-preview {
    margin-left: auto;
    font-weight: 800;
    color: var(--purple);
}

/* ============================================================ */
/* GERENCIAR TIPOS DE ESTUDO                                     */
/* ============================================================ */

.lista-tipos-estudo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.tipo-estudo-linha {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center;
}

.tipo-estudo-linha input[type="text"] {
    min-width: 0;
}

/* ============================================================ */
/* PAINEL "ESTUDOS": REVISÕES E HISTÓRICO                        */
/* ============================================================ */

.lista-revisoes,
.lista-historico {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.revisao-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-left: 4px solid var(--purple);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.revisao-card.revisao-atrasada {
    border-left-color: var(--danger);
    background: #fffaf9;
}

.revisao-card-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.revisao-card-tipo {
    font-weight: 800;
    color: var(--purple);
    font-size: 12px;
    background: var(--purple-light);
    padding: 3px 10px;
    border-radius: 999px;
}

.revisao-card-data {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

.revisao-atrasada .revisao-card-data {
    color: var(--danger);
}

.revisao-card-topicos {
    font-size: 14px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.revisao-concluir-btn {
    align-self: flex-start;
    background: var(--success);
    padding: 8px 16px;
    font-size: 13px;
}

.revisao-concluir-btn:hover {
    background: #15803d;
}

.historico-item {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.historico-item-topo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.historico-tipo {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 12px;
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 999px;
}

.historico-duracao {
    font-weight: 700;
    color: var(--text);
    font-size: 13px;
}

.historico-data {
    color: var(--text-faint);
    font-size: 12px;
}

.historico-item-acoes {
    margin-left: auto;
}

.historico-editar,
.historico-excluir {
    padding: 5px 9px;
    font-size: 11px;
}

.historico-topicos {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.historico-badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    background: var(--surface-muted);
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--text);
}

.historico-obs {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================ */
/* RESUMO: DASHBOARD                                              */
/* ============================================================ */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 26px;
}

.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card-destaque {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--purple-light), #ddd6fe);
    border-color: transparent;
}

.stat-card-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card-valor {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-card-valor-texto {
    font-size: 1.2rem;
    color: var(--purple);
}

.stat-card-extra {
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
}

/* --- Gráfico de 30 dias --- */

.chart-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 14px 10px 14px;
    box-shadow: var(--shadow-sm);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 110px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.chart-bar-wrap {
    flex: 1;
    min-width: 6px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    cursor: default;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #60a5fa, var(--primary));
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: filter 0.15s ease;
}

.chart-bar-wrap:hover .chart-bar {
    filter: brightness(1.15);
}

.chart-bar-hoje {
    background: linear-gradient(180deg, #4ade80, var(--success));
}

/* --- Foguinhos de ofensiva, alinhados como "eixo x" do gráfico --- */

.chart-flames {
    display: flex;
    gap: 3px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.chart-flame-wrap {
    flex: 1;
    min-width: 6px;
    display: flex;
    justify-content: center;
}

.chart-flame {
    font-size: 11px;
    filter: grayscale(1);
    opacity: 0.25;
    line-height: 1;
}

.chart-flame-ativo {
    filter: none;
    opacity: 1;
}

/* --- Gráficos empilhados (matéria / tipo de estudo por dia) --- */

.painel-bloco-duas-colunas {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.painel-bloco-coluna {
    min-width: 0;
}

.chart-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 3px 3px 0 0;
    overflow: hidden;
    min-height: 2px;
}

.chart-stack-hoje {
    box-shadow: 0 0 0 2px var(--success) inset;
}

.chart-stack-seg {
    width: 100%;
}

.chart-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.chart-legenda-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.chart-legenda-cor {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    flex-shrink: 0;
}

.chart-legenda-vazia {
    font-size: 12px;
    color: var(--text-faint);
}

/* --- Indicadores por matéria --- */

.materias-indicadores {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.materia-indicador {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.materia-cor-swatch {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid white;
    box-shadow: 0 0 0 1.5px var(--border);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.materia-cor-swatch:hover {
    box-shadow: 0 0 0 1.5px var(--text-faint);
}

.materia-indicador-corpo {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.materia-indicador-topo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.materia-indicador-nome {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.materia-indicador-tempo {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.materia-indicador-barra-fundo {
    background: var(--track-bg);
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
}

.materia-indicador-barra {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
}

.materia-indicador-seta {
    display: inline-block;
    width: 10px;
    color: var(--text-faint);
    font-size: 11px;
}

.materia-indicador-topicos {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topico-indicador-linha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 60px;
    align-items: center;
    gap: 10px;
}

.topico-indicador-nome {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topico-indicador-barra-fundo {
    background: var(--track-bg);
    height: 5px;
    border-radius: 5px;
    overflow: hidden;
}

.topico-indicador-barra {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
}

.topico-indicador-tempo {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
}

.lista-vazia-topicos {
    font-size: 12px;
    color: var(--text-faint);
}

/* ============================================================ */
/* MAPA DE DIFICULDADES (tópicos com maior taxa de erro)         */
/* ============================================================ */

.mapa-dificuldades {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dificuldade-linha {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    align-items: center;
    gap: 10px;
}

.dificuldade-nomes {
    min-width: 0;
    overflow: hidden;
}

.dificuldade-topico {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dificuldade-materia {
    font-size: 11px;
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dificuldade-barra-fundo {
    background: var(--track-bg);
    height: 6px;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 4px;
}

.dificuldade-barra {
    height: 100%;
    border-radius: 6px;
    background: var(--danger);
    transition: width 0.4s ease;
}

.dificuldade-taxa {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--danger);
    text-align: right;
}

/* ============================================================ */
/* CONQUISTAS / MEDALHAS                                         */
/* ============================================================ */

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

.conquista-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s;
}

.conquista-card.conquistada {
    border-color: var(--primary);
    background: var(--primary-light);
}

.conquista-card.bloqueada {
    opacity: 0.45;
    filter: grayscale(1);
}

.conquista-emoji {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.conquista-nome {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.conquista-desc {
    font-size: 10.5px;
    color: var(--text-faint);
    line-height: 1.3;
}

/* ============================================================ */
/* RESPONSIVIDADE                                                */
/* ============================================================ */

@media (max-width: 480px) {
    .timer-display {
        font-size: 2.4rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .tipo-estudo-linha {
        grid-template-columns: 1fr;
    }

    .view-tab {
        font-size: 12px;
        padding: 9px 4px;
    }

    .app-bar-title {
        font-size: 0.95rem;
    }

    .topico-indicador-linha {
        grid-template-columns: minmax(0, 1fr) 50px;
        row-gap: 4px;
    }

    .topico-indicador-barra-fundo {
        display: none;
    }
}

/* --- A partir daqui, o app deixa de ser "só mobile": a navegação vira uma
   barra lateral fixa e o conteúdo se distribui em mais colunas. --- */
@media (min-width: 901px) {
    .layout {
        max-width: 1200px;
        display: flex;
        align-items: flex-start;
        gap: 28px;
        padding: 28px 28px 60px;
    }

    .sidebar {
        width: 240px;
        flex-shrink: 0;
        position: sticky;
        top: 28px;
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 20px 16px;
        box-shadow: var(--shadow-sm);
        gap: 22px;
        margin-bottom: 0;
    }

    .sidebar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        background: none;
        border: none;
        padding: 0 4px;
        box-shadow: none;
    }

    .streak-badge {
        align-self: flex-start;
    }

    .view-tabs {
        flex-direction: column;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 3px;
        margin-bottom: 0;
    }

    .view-tab {
        justify-content: flex-start;
        padding: 11px 12px;
    }

    .sidebar-planos-label {
        display: block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-faint);
        margin: 6px 0 -6px 4px;
    }

    .planos-tabs {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 0;
    }

    .plano-tab {
        text-align: left;
    }

    .content {
        flex: 1;
    }

    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .painel-bloco-duas-colunas {
        flex-direction: row;
    }

    .painel-bloco-duas-colunas .painel-bloco-coluna {
        flex: 1;
    }

    .materias-indicadores {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .chart-bars {
        height: 150px;
    }

    .lista-edital-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0 20px;
        align-items: start;
    }

    .lista-revisoes,
    .lista-historico {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1300px) {
    .layout {
        max-width: 1360px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===================== VIEW: JOGO (gamificação embutida) ===================== */
/* Sem "quadro" extra ao redor do jogo — a barra de pontuação e o iframe
   ocupam o espaço direto, pra sobrar o máximo de área pros jogos em si. */

.jogo-bloco {
    height: calc(100vh - 170px);
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

.jogo-pontuacao-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 8px 14px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.jogo-pontuacao-texto {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.7;
}

.jogo-pontuacao-acoes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-secundario {
    background: var(--primary-light);
    color: var(--primary-dark);
    border: none;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.btn-secundario:hover {
    background: var(--primary-light-hover);
}

.jogo-frame-wrap {
    flex: 1;
    /* Sem borda/sombra própria — o jogo já tem a identidade visual dele lá
       dentro (cores do tema, cards, abas); uma segunda moldura aqui só
       encolhia o espaço útil sem ganho nenhum. */
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 0;
}

.jogo-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Tela de seleção de jogo: a pessoa escolhe 1 dos 3 jogos e vai direto pra
   ele, sem ver os outros dois "acumulados" na mesma tela. */
.jogo-selecao-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 4px 2px 2px;
}

.jogo-selecao-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.jogo-selecao-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.jogo-selecao-card .jogo-seletor-icone {
    font-size: 2.1rem;
    line-height: 1;
}

.jogo-selecao-card .jogo-seletor-nome {
    font-weight: 800;
    font-size: 14.5px;
    color: var(--text);
}

.jogo-selecao-card .jogo-seletor-desc {
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .jogo-selecao-cards {
        grid-template-columns: 1fr;
    }
}

.modal-confirm-cronometro {
    max-width: 380px;
    text-align: center;
}

.modal-confirm-texto {
    color: var(--text-muted);
    font-size: 14px;
    margin: 4px 0 4px;
}

@media (min-width: 901px) {
    .jogo-bloco {
        height: calc(100vh - 40px);
    }
}
