/* Hafıza Kartları — board and cards. The page layout comes from play-page.css. */
body[data-game='hafiza'] { --frame: #6a3dc2; --title: #6a3dc2; --title-shadow: #3f2185; }

.board { --columns: 4; display: grid; width: min(100%, calc(100svh - 340px)); grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: clamp(6px, 1.5vw, 12px); margin-inline: auto; }
.card { aspect-ratio: 1; min-width: 0; display: grid; place-items: center; border: 0; border-radius: 14px; background: repeating-linear-gradient(45deg, transparent 0 9px, rgb(255 255 255 / .08) 9px 18px), linear-gradient(145deg, #9a6cf0, #7a4bd6); color: #fff; font: 700 clamp(24px, 3vw, 40px) / 1 'Fredoka', sans-serif; cursor: pointer; box-shadow: 0 5px 0 rgb(0 0 0 / .18); transition: transform .16s, background .16s; }
.card:hover:not(.matched) { transform: translateY(-3px); }
.card.revealed { background: var(--surface); color: var(--ink); font-size: clamp(28px, 3.6vw, 46px); }
.card.matched { background: #fff3c7; box-shadow: inset 0 0 0 4px #fecf40, 0 5px 0 rgb(0 0 0 / .12); cursor: default; }
.goal-equation .goal-card-face { background: repeating-linear-gradient(45deg, transparent 0 7px, rgb(255 255 255 / .12) 7px 14px), linear-gradient(145deg, #9a6cf0, #6a3dc2); }

@media (max-width: 760px) {
  .board { gap: 8px; }
  .card { border-radius: 10px; font-size: clamp(20px, 7vw, 32px); }
  .card.revealed { font-size: clamp(22px, 8vw, 36px); }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover:not(.matched) { transform: none; } }

/* Tam ekran: tahta çerçeve genişliğinden boyutlanır; game-shell.js çerçeveyi ekrana sığdırır. */
.play-panel.is-fullscreen .board { width: 100%; }
