/* Memory Match — Game-specific styles */

.mm-shell {
    max-width: 650px;
}

.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 90px);
    gap: 12px;
    justify-content: center;
    margin-top: 1rem;
}

.card {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 2.2, 0.35, 1);
}

.card:active,
.card.flipped {
    transform: rotateY(180deg);
}

.card.matched {
    background: rgba(72, 187, 120, 0.2);
    border-color: var(--gb-success);
    cursor: default;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    border-radius: var(--gb-radius-sm);
}

.front {
    color: var(--gb-text-muted);
    font-size: 1.4rem;
}

.back {
    transform: rotateY(180deg);
    background: var(--gb-accent);
    color: var(--gb-bg);
    font-weight: 700;
    font-size: 1.2rem;
}
