/* 카드 짝 맞추기 전용 스타일 */
.mm-level span { padding: 6px 12px; font-size: 13px; }
.mm-board { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 12px); max-width: calc(var(--cols) * 118px); margin: 0 auto; padding: clamp(8px, 2vw, 16px); border-radius: var(--r-lg); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.mm-card { aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; animation: mm-in .4s var(--ease) both; touch-action: manipulation; }
@keyframes mm-in { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.mm-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .4s var(--ease); transform-style: preserve-3d; }
.mm-card.up .mm-inner { transform: rotateY(180deg); }
.mm-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: calc(var(--radius) * .7); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mm-back {
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), var(--sh-sm);
}
.mm-back::after { content: '?'; color: rgba(255, 255, 255, .85); font: 800 clamp(20px, 5vw, 32px) / 1 system-ui, sans-serif; }
.mm-card:hover:not(.up) .mm-back { filter: brightness(1.08); }
.mm-front { transform: rotateY(180deg); background: var(--surface); border: 2px solid var(--line); font-size: clamp(28px, 7vw, 46px); }
.mm-card.done .mm-front { border-color: color-mix(in srgb, var(--primary) 55%, transparent); background: var(--soft); }
.mm-card.done { animation: mm-hit .5s var(--ease); }
@keyframes mm-hit { 50% { transform: scale(1.07); } }
.mm-board.won .mm-card { animation: mm-hit .6s var(--ease); }
.mm-msg { margin: 12px 0 0; text-align: center; font-weight: 650; }
@media (max-width: 520px) { .game-bar .mm-level { order: 10; width: 100%; justify-content: center; } }
