.memory-game {
    text-align: center;
    padding: 2rem 0;
}

.memory-game h2 {
    margin-bottom: 0.5rem;
}

.memory-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
    color: var(--text);
}

.memory-stats strong {
    font-weight: 700;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 400px;
    margin: 1rem auto;
}

.memory-card {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.memory-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.memory-card.flipped {
    background: rgba(255, 255, 255, 0.15);
}

.memory-start {
    background: linear-gradient(135deg, #FF6B35, #004E89);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: transform 0.2s;
}

.memory-start:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .memory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.375rem;
    }
    
    .memory-card {
        font-size: 1.25rem;
    }
}