/* ═══════════════════════════════════════════════════════
   ESTILOS GLOBAIS — Jogos SeniorVirtual
   ═══════════════════════════════════════════════════════ */

/* ── Variaveis ── */
:root {
    --verde-escuro: #1a4731;
    --verde: #2c6e49;
    --verde-medio: #3d8c5f;
    --dourado: #d4a017;
    --dourado-claro: #e8b828;
    --ouro: #ffd700;
    --fonte-titulo: 'Quicksand', 'Segoe UI', Arial, sans-serif;
    --fonte-corpo: 'Coustard', Georgia, serif;
    --sidebar-largura: 200px;
    --sombra: 0 2px 8px rgba(0,0,0,0.25);
    --transicao: 0.25s;
}

/* ── Reset e Base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--fonte-corpo);
    background: linear-gradient(135deg, var(--verde-escuro) 0%, var(--verde) 100%);
    min-height: 100vh;
    display: flex;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
}

h1, h2, h3, h4 { font-family: var(--fonte-titulo); font-weight: 700; }
p, span, button, li, div, small { font-family: var(--fonte-corpo); }

/* ═══════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════ */

.sidebar {
    width: var(--sidebar-largura);
    min-width: var(--sidebar-largura);
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 8px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo { margin-bottom: 16px; padding: 0 12px; }

.sidebar-logo img {
    width: 110px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: var(--sombra);
    display: block;
}

.sidebar-jogos {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 8px;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: var(--fonte-titulo);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-item.ativo { background: var(--dourado); color: var(--verde-escuro); font-weight: 700; }
.nav-item span { font-family: inherit; }

.sidebar-toggle {
    margin-top: auto;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
    display: none;
}

.sidebar-toggle:hover { background: rgba(255,255,255,0.2); }

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 45;
}

.sidebar-overlay.mostrar { display: block; }

/* ═══════════════════════════════════════════════════════
   CONTEUDO PRINCIPAL
   ═══════════════════════════════════════════════════════ */

.conteudo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px 40px;
    min-height: 100vh;
}

.menu-hamburger {
    display: none;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px; height: 40px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Cabecalho ── */
.cabecalho {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 900px;
}

.cabecalho .logo-topo {
    width: 120px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #fff;
    padding: 6px;
    box-shadow: var(--sombra);
}

.cabecalho h1 { font-size: 2.2rem; margin-bottom: 0; text-align: center; }

.subtitulo {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 20px;
    text-align: center;
}

/* ── Container jogo ── */
.jogo-container {
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════════
   COMPONENTES PARTILHADOS
   ═══════════════════════════════════════════════════════ */

/* Progresso */
.progresso {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ponto {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.ponto.ativo { background: var(--ouro); }
.ponto.acerto { background: #4caf50; }
.ponto.erro { background: #e57373; }

/* Stats */
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stats span {
    background: rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 20px;
}

/* Botoes base */
.btn {
    background: var(--dourado);
    color: var(--verde-escuro);
    border: none;
    padding: 14px 32px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
    margin-top: 20px;
    font-family: inherit;
}

.btn:hover { transform: scale(1.05); background: var(--dourado-claro); }

/* Botoes de nivel/modo */
.btn-nivel, .modo-btn {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transicao);
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.btn-nivel:hover, .modo-btn:hover { background: rgba(255,255,255,0.25); }
.btn-nivel.ativo, .modo-btn.ativo { background: var(--dourado); border-color: var(--dourado); color: var(--verde-escuro); font-weight: bold; }

.niveis-selector, .seletor-modos {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Loading */
.loading {
    display: inline-block;
    width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid var(--ouro);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal.mostrar { display: flex; }

.modal-content {
    background: #fff;
    color: var(--verde-escuro);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 { font-size: 2rem; margin-bottom: 10px; }
.modal-content p { font-size: 1.15rem; margin-bottom: 20px; line-height: 1.5; }
.pontuacao-grande { font-size: 3.5rem; font-weight: bold; color: var(--verde); }

/* Labels */
.dificuldade-label {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pergunta-num { font-size: 0.95rem; opacity: 0.7; margin-bottom: 8px; }

.pergunta-texto {
    font-size: 1.45rem;
    font-weight: bold;
    margin-bottom: 25px;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════
   QUIZ
   ═══════════════════════════════════════════════════════ */

.opcoes { display: flex; flex-direction: column; gap: 12px; }

.opcao {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 16px 20px;
    font-size: 1.15rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transicao);
    text-align: left;
    font-family: inherit;
}

.opcao:hover:not(.desabilitado) { background: rgba(255,255,255,0.25); transform: translateX(6px); }
.opcao.correta { background: #2e7d32; border-color: #4caf50; }
.opcao.errada { background: #c62828; border-color: #e57373; }
.opcao.desabilitado { cursor: default; opacity: 0.6; }

.feedback {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    display: none;
}

.feedback.mostrar { display: block; }
.feedback.acerto { background: #1b5e20; border: 1px solid #4caf50; }
.feedback.erro { background: #b71c1c; border: 1px solid #e57373; }

/* Revisao final */
.revisao-item {
    background: rgba(0,0,0,0.06);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: left;
}

.revisao-item .pergunta-r { font-weight: bold; font-size: 1.05rem; margin-bottom: 6px; }
.revisao-item .resposta-r { font-size: 0.95rem; opacity: 0.8; }
.revisao-item .resposta-r.certa { color: #2e7d32; font-weight: bold; }
.revisao-item .resposta-r.errada { color: #c62828; font-weight: bold; }

/* ═══════════════════════════════════════════════════════
   JOGO DA MEMORIA
   ═══════════════════════════════════════════════════════ */

.tabuleiro {
    display: grid;
    gap: 14px;
    max-width: 640px;
    width: 100%;
    margin-bottom: 24px;
}

.carta {
    aspect-ratio: 1;
    perspective: 600px;
    cursor: pointer;
}

.carta-inner {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.carta.virada .carta-inner { transform: rotateY(180deg); }

.carta-front, .carta-back {
    position: absolute;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--dourado);
}

.carta-front { background: #fff; color: var(--verde); }
.carta-back {
    background: var(--dourado);
    transform: rotateY(180deg);
    overflow: hidden;
    padding: 4px;
    flex-direction: column;
    gap: 2px;
}

.carta-back small {
    font-size: 0.65em;
    line-height: 1.1;
    text-align: center;
    color: var(--verde-escuro);
    display: block;
    max-width: 100%;
    word-break: break-word;
    padding: 0 2px;
}

.cartaCombinada .carta-inner { animation: pulse 0.4s ease; }

@keyframes pulse {
    0% { transform: rotateY(180deg) scale(1); }
    50% { transform: rotateY(180deg) scale(1.1); }
    100% { transform: rotateY(180deg) scale(1); }
}

.nivel-btn {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 10px 18px;
    font-size: 1.1rem;
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transicao);
    font-family: inherit;
}

.nivel-btn:hover { background: rgba(255,255,255,0.28); }
.nivel-btn.ativo { background: var(--dourado); border-color: var(--dourado); color: var(--verde-escuro); font-weight: bold; }

.niveis { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.nivel-info { font-size: 1rem; opacity: 0.75; margin-bottom: 15px; text-align: center; }

.mensagem { font-size: 1.5rem; min-height: 44px; margin-bottom: 16px; text-align: center; font-weight: bold; }
.mensagem.acerto { color: var(--ouro); animation: fadeIn 0.3s; }

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

.stats + .stats { margin-top: 10px; }

.progresso-niveis {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: center;
}

.progresso-niveis span { font-size: 1rem; opacity: 0.7; }
.barra-nivel { display: flex; gap: 6px; }

.barra-nivel div {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center; justify-content: center;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.barra-nivel div.feito { background: #2e7d32; border-color: #4caf50; }
.barra-nivel div.atual { background: var(--dourado); border-color: var(--ouro); transform: scale(1.15); }

.btn-iniciar { background: #fff; color: var(--verde); border: 3px solid var(--dourado); }

.nivel-concluido {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center; justify-content: center;
    z-index: 50;
}

.nivel-concluido.mostrar { display: flex; }

.nivel-card {
    background: #fff;
    color: var(--verde-escuro);
    padding: 36px 44px;
    border-radius: 24px;
    text-align: center;
    max-width: 480px;
    width: 90%;
}

.nivel-card h2 { font-size: 2rem; margin-bottom: 10px; }
.nivel-card p { font-size: 1.2rem; margin-bottom: 8px; }
.nivel-card .emoji-grande { font-size: 4rem; margin-bottom: 14px; }

.proximo-nivel { background: var(--verde); color: #fff; border: none; }
.proximo-nivel:hover { background: var(--verde-medio); }

.modal-vitoria {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    align-items: center; justify-content: center;
    z-index: 100;
}

.modal-vitoria.mostrar { display: flex; }

/* Tamanhos de carta por nivel (gerados inline via PHP, mas defaults aqui) */
.nivel-1 .tabuleiro { grid-template-columns: repeat(4, 1fr); max-width: 420px; }
.nivel-2 .tabuleiro { grid-template-columns: repeat(4, 1fr); max-width: 460px; }
.nivel-3 .tabuleiro { grid-template-columns: repeat(4, 1fr); max-width: 500px; }
.nivel-4 .tabuleiro { grid-template-columns: repeat(5, 1fr); max-width: 540px; }
.nivel-5 .tabuleiro { grid-template-columns: repeat(6, 1fr); max-width: 580px; }

.nivel-1 .carta-front { font-size: 3.2rem; }
.nivel-2 .carta-front { font-size: 2.8rem; }
.nivel-3 .carta-front { font-size: 2.4rem; }
.nivel-4 .carta-front { font-size: 2.1rem; }
.nivel-5 .carta-front { font-size: 1.9rem; }

.nivel-1 .carta-back { font-size: 2.6rem; }
.nivel-2 .carta-back { font-size: 2.2rem; }
.nivel-3 .carta-back { font-size: 1.9rem; }
.nivel-4 .carta-back { font-size: 2.4rem; }
.nivel-5 .carta-back { font-size: 2.6rem; }

/* ═══════════════════════════════════════════════════════
   CACA-PALAVRAS
   ═══════════════════════════════════════════════════════ */

.tabuleiro-cp {
    display: inline-grid;
    gap: 2px;
    margin: 0 auto;
    border: 3px solid var(--dourado);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.3);
}

.celula-cp {
    width: 42px; height: 42px;
    background: #fff;
    color: var(--verde-escuro);
    display: flex;
    align-items: center; justify-content: center;
    font-family: var(--fonte-titulo);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.celula-cp:hover { background: #e8f5e9; }
.celula-cp.selecionada { background: var(--ouro) !important; color: var(--verde-escuro); }
.celula-cp.encontrada { background: #4caf50 !important; color: #fff; }
.celula-cp.destaque { animation: pulseCp 0.5s ease; }

@keyframes pulseCp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.lista-palavras {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.palavra-item {
    background: rgba(255,255,255,0.12);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-family: var(--fonte-titulo);
    transition: all 0.3s;
    white-space: nowrap;
}

.palavra-item.encontrada { background: #2e7d32; text-decoration: line-through; opacity: 0.7; }
.instrucao-cp { text-align: center; font-size: 1rem; opacity: 0.7; margin-bottom: 12px; min-height: 28px; }
.tema-label { text-align: center; font-size: 1.1rem; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════════════
   XADREZ
   ═══════════════════════════════════════════════════════ */

.xadrez-info { text-align: center; margin-bottom: 10px; font-size: 1rem; }
.xadrez-info strong { color: var(--ouro); }

.seletor-cor {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.seletor-cor button {
    padding: 12px 24px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transicao);
    font-family: inherit;
}

.seletor-cor button:hover { background: rgba(255,255,255,0.25); }
.seletor-cor button.ativo { background: var(--dourado); border-color: var(--dourado); color: var(--verde-escuro); font-weight: bold; }

.casa-clara { background: #e8dcc8; }

/* Xadrez: casas escuras */
.tabuleiro-jogo .casa-escura { background: #7a9a6e; }

.historico-mov {
    margin-top: 16px;
    max-height: 120px;
    overflow-y: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.85rem;
    font-family: monospace;
}

/* ═══════════════════════════════════════════════════════
   DAMAS
   ═══════════════════════════════════════════════════════ */

.damas-info { text-align: center; margin-bottom: 10px; font-size: 1.1rem; }
.damas-info strong { color: var(--ouro); }

/* Damas: casas escuras (tom mais claro que xadrez) */
.damas .tabuleiro-jogo .casa-escura { background: #b58863; }

.peca-branca { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.peca-preta { color: #222; }

/* ═══════════════════════════════════════════════════════
   TABULEIRO GENERICO (Xadrez + Damas)
   ═══════════════════════════════════════════════════════ */

.tabuleiro-jogo {
    display: grid;
    gap: 0;
    margin: 0 auto;
    border: 3px solid var(--dourado);
    border-radius: 8px;
    overflow: hidden;
    max-width: 480px;
    width: 100%;
}

.tabuleiro-jogo .casa {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.tabuleiro-jogo .casa:hover { opacity: 0.85; }
.tabuleiro-jogo .casa.selecionada { box-shadow: inset 0 0 0 3px var(--ouro); }
.tabuleiro-jogo .casa.disponivel::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    background: rgba(255,215,0,0.4);
    border-radius: 50%;
}

.tabuleiro-jogo .casa.ultima-jogada { background: rgba(255,215,0,0.2) !important; }

/* ═══════════════════════════════════════════════════════
   SUDOKU
   ═══════════════════════════════════════════════════════ */

.sudoku-info { text-align: center; margin-bottom: 10px; font-size: 1.05rem; }
.sudoku-info strong { color: var(--ouro); }

.sudoku-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.3);
    border: 3px solid var(--dourado);
    border-radius: 8px;
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.sudoku-cell {
    aspect-ratio: 1;
    background: #fff;
    color: var(--verde-escuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: var(--fonte-titulo);
    cursor: pointer;
    transition: background 0.15s;
}

.sudoku-cell.dado { color: #333; font-weight: 700; }
.sudoku-cell.preenchido { color: var(--verde); font-weight: 600; }
.sudoku-cell.selecionado { background: var(--dourado) !important; color: #fff; }
.sudoku-cell.relacionado { background: #e8f5e9; }
.sudoku-cell.erro { color: #c62828 !important; background: #ffebee !important; }
.sudoku-cell.hint { animation: hintPulse 0.6s ease; }
.sudoku-cell.borda-direita { border-right: 2px solid var(--dourado); }
.sudoku-cell.borda-inferior { border-bottom: 2px solid var(--dourado); }

@keyframes hintPulse {
    0%, 100% { background: #fff; }
    50% { background: #fff9c4; }
}

.sudoku-numpad {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}

.sudoku-numpad button {
    width: 44px; height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: var(--fonte-titulo);
    cursor: pointer;
    transition: all 0.2s;
}

.sudoku-numpad button:hover { background: rgba(255,255,255,0.3); }
.sudoku-numpad button.apagar { font-size: 0.9rem; }

.acoes-sudoku {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.acoes-sudoku button {
    padding: 10px 20px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transicao);
    font-family: inherit;
}

.acoes-sudoku button:hover { background: rgba(255,255,255,0.25); }

.nivel-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.erro-count { color: #e57373; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVO
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0;
        transform: translateX(-100%);
        height: 100vh;
        z-index: 60;
    }
    .sidebar.aberta { transform: translateX(0); }
    .sidebar-toggle { display: block; }
    .menu-hamburger { display: block; }
    .cabecalho .logo-topo { display: none; }
    .cabecalho h1 { font-size: 1.5rem; }
    .jogo-container { padding: 20px; }
    .conteudo { padding: 16px; }
}

@media (max-width: 480px) {
    .pergunta-texto { font-size: 1.2rem; }
    .opcao { font-size: 1rem; padding: 13px 16px; }
    .cabecalho h1 { font-size: 1.3rem; }
    .jogo-container { padding: 14px; }
    .btn { padding: 12px 24px; font-size: 1.1rem; }
    .casa { font-size: 1.6rem; }
    .sudoku-cell { font-size: 1.1rem; }
    .celula-cp { width: 34px; height: 34px; font-size: 0.9rem; }
    .nivel-1 .carta-front { font-size: 2.8rem; }
    .nivel-2 .carta-front { font-size: 2.4rem; }
    .nivel-3 .carta-front { font-size: 2rem; }
    .nivel-4 .carta-front { font-size: 1.7rem; }
    .nivel-5 .carta-front { font-size: 1.5rem; }
    .nivel-1 .carta-back { font-size: 2.2rem; }
    .nivel-2 .carta-back { font-size: 1.9rem; }
    .nivel-3 .carta-back { font-size: 1.6rem; }
    .nivel-4 .carta-back { font-size: 1.9rem; }
    .nivel-5 .carta-back { font-size: 2rem; }
}
