/* =========================================================================================
   🧠 ARQUIVO: /games/jogo_velha/style.css
   ========================================================================================= */

.game-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f2f5;
    font-family: Arial, sans-serif;
    margin: 0;
}

.game-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    width: 100%;
    max-width: 380px;
}

.game-header h2 {
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 10px;
}

#statusTexto {
    font-size: 1.1rem;
    font-weight: bold;
    color: #475569;
    margin-bottom: 20px;
}

.color-x { color: #38bdf8; } /* Azul claro do seu SaaS */
.color-o { color: #ef4444; } /* Vermelho */

/* O Tabuleiro em Grid 3x3 */
.tabuleiro {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 8px;
    justify-content: center;
    margin-bottom: 25px;
}

.celula {
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.celula:hover {
    background: #e2e8f0;
}

/* Estado de vitória ou empate */
.celula.vencedora {
    background: #dcfce7;
    border-color: #22c55e;
    color: #16a34a;
    transform: scale(1.05);
}

.game-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-game {
    background: #38bdf8;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-game:hover { background: #0284c7; }

.btn-voltar {
    background: #94a3b8;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-voltar:hover { background: #64748b; }
/* Estilos para o Seletor de Modo de Jogo */
.modo-jogo-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-modo {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modo:hover {
    background: #e2e8f0;
}

.btn-modo.ativo {
    background: #38bdf8;
    color: white;
    border-color: #38bdf8;
}