/* ── VARIÁVEIS ESPECÍFICAS ───────────────────────────────────────────────── */
:root {
    --correct: #6aaa64;
    --present: #c9b458;
    --absent:  #787c7e;
}

/* hint-container usa .info-banner de game-shared.css */

/* Nota: .hidden está definido em game-shared.css */

/* Tabuleiro */
#board-container {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    grid-gap: 5px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%; /* Ajuste para mobile */
    max-width: 350px; /* Limite para desktop */
    margin: 20px auto;
}

.row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 5px;
}

.tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none; /* Evita seleção de texto ao clicar rápido */
}

.correct { background-color: var(--correct); color: white; border-color: var(--correct); }
.present { background-color: var(--present); color: white; border-color: var(--present); }
.absent { background-color: var(--absent); color: white; border-color: var(--absent); }

/* Teclado */
#keyboard-container {
    margin-top: auto;
    padding: 10px;
    padding-bottom: 30px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    touch-action: manipulation;
}

.key {
    background-color: #d3d6da;
    border-radius: 4px;
    margin: 0 2px;
    height: 58px;
    flex: 1; /* As teclas ocupam espaço igual */
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* Remove flash de toque no iOS */
}

.key-wide { flex: 1.5; font-size: 0.8rem; }

/* Animação de erro (Shake) */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(1px); }
    10% { transform: translateX(-1px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-2px); }
    40% { transform: translateX(4px); }
    50% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    70% { transform: translateX(-4px); }
    80% { transform: translateX(2px); }
    90% { transform: translateX(-2px); }
    100% { transform: translateX(1px); }
}