/* ==========================================
   AMERICAN NEXO
   AI WORD CHALLENGE #001
   Game Styles
========================================== */

.an-brain-word {
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    background: #DFEBFA;
    border: 1px solid #cbd9e9;
    border-radius: 18px;
    font-family: Arial, sans-serif;
    text-align: center;
    color: #0A3161;
}

/* Game header */

.an-brain-word-header {
    margin-bottom: 12px;
}

.an-brain-word-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #52738e;
}

.an-brain-word-title {
    margin: 10px 0 6px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #0A3161;
}

.an-brain-word-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #40566c;
}

/* Timer */

.an-brain-word-timer {
    margin: 12px auto;
    font-size: 22px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #0A3161;
}

/* Word board */

.an-brain-word-board {
    width: 100%;
    margin: 12px auto;
}

.an-brain-word-group {
    margin-bottom: 16px;
}

.an-brain-word-clue {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #30465c;
}

.an-brain-word-row {
    display: flex;
    justify-content: center;
    gap: 5px;
}

/* Letter cells */

.an-brain-word-cell {
    box-sizing: border-box;
    width: 36px;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #9fb5cc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: #0A3161;
    outline: none;
    box-shadow: none;
    caret-color: #0A3161;
}

.an-brain-word-cell:focus {
    border-color: #0A3161;
    outline: 2px solid #0A3161;
    outline-offset: 1px;
}

.an-brain-word-cell.is-hint {
    background: #cbd9eb;
    cursor: default;
}

.an-brain-word-cell.is-highlighted {
    background: #F4C542;
    border-color: #cba135;
}

/* Answer feedback */

.an-brain-word-cell.is-correct {
    border-color: #258B72;
    color: #165B33;
}

.an-brain-word-cell.is-incorrect {
    border-color: #b84636;
    color: #b84636;
}

/* Secret word */

.an-brain-word-secret {
    margin: 18px auto 10px;
}

.an-brain-word-secret-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0A3161;
}

.an-brain-word-secret-row {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.an-brain-word-secret-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0A3161;
    border-radius: 6px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

/* Game status */

.an-brain-word-status {
    min-height: 20px;
    margin: 10px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.an-brain-word-status.is-success {
    color: #165B33;
}

.an-brain-word-status.is-error {
    color: #b84636;
}

/* Replay button */

.an-brain-word-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.an-brain-word-actions[hidden] {
    display: none !important;
}

.an-brain-word-replay {
    min-width: 150px;
    min-height: 44px;
    padding: 12px 24px;
    background: #0A3161;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.an-brain-word-replay:hover {
    background: #164b80;
}

.an-brain-word-replay:focus-visible {
    outline: 3px solid #52738e;
    outline-offset: 3px;
}

/* Game footer */

.an-brain-word-footer {
    margin: 14px 0 0;
    font-size: 12px;
    color: #52738e;
}

/* Mobile adaptation */

@media (max-width: 480px) {

    .an-brain-word {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .an-brain-word-title {
        font-size: 26px;
    }

    .an-brain-word-cell {
        width: 34px;
        height: 36px;
        font-size: 18px;
    }

    .an-brain-word-clue {
        font-size: 12px;
    }

    .an-brain-word-row {
        gap: 4px;
    }

}




