/* ==========================================
   AMERICAN NEXO
   BRAIN CHALLENGE
   Visual Challenge Styles
========================================== */

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

/* Game header */

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

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

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

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

/* Timer */

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

/* Visual game grid */

.an-brain-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 240px;
    margin: 12px auto;
}

.an-brain-visual-grid[hidden] {
    display: none;
}

/* Interactive figures */

.an-brain-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 4px;
    background: #ffffff;
    border: 2px solid #dce8f2;
    border-radius: 12px;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.15s ease,
                background 0.15s ease;
}

.an-brain-figure svg {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

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



@media (hover: hover) {
    .an-brain-figure:hover:not(:disabled) {
        border-color: #32A9DF;
    }
}

.an-brain-figure:focus-visible {
    outline: 3px solid #0A3161;
    outline-offset: 2px;
}

.an-brain-figure:disabled {
    cursor: default;
}

/* Answer feedback */

.an-brain-figure.is-correct {
    background: #dcfce7;
    border-color: #258B72;
}

.an-brain-figure.is-incorrect {
    background: #fff0ed;
    border-color: #dc6655;
}

/* Game status */

.an-brain-game-status {
    min-height: 24px;
    margin: 10px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.an-brain-game-status.is-success {
    color: #18765f;
}

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

/* Game actions */

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

.an-brain-start-button {
    min-width: 150px;
    min-height: 44px;
    padding: 12px 24px;
    background: #165B33;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.an-brain-start-button:hover {
    background: #164b80;
}

.an-brain-start-button:focus-visible {
    outline: 3px solid #32A9DF;
    outline-offset: 3px;
}

.an-brain-start-button[hidden] {
    display: none;
}

/* Game footer */

.an-brain-game-footer {
    margin: 14px 0 0;
    font-size: 12px;
    color: #111;
    font-weight: 600;
    opacity: 0.9;
}

/* Mobile adaptation */

@media (max-width: 480px) {

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

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

    .an-brain-visual-grid {
        max-width: 225px;
        gap: 6px;
    }

}








