/* --- Game 2: Grid Memory --- */
.memory-grid {
    display: grid;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
}

.cell {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.cell:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cell.active {
    background: var(--accent);
    transform: scale(0.95);
}

.cell.correct {
    background: var(--success);
    transform: scale(1.05);
}

.cell.wrong {
    background: var(--error);
    animation: shake 0.4s;
}

.cell.revealed {
    background: var(--primary);
}

/* Helper animation for shake reuse if needed, or import from main */
@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}