
.game-container { text-align: center; }
.controls { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.moves { font-weight: bold; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 auto; perspective: 1000px; }
.card { aspect-ratio: 1; position: relative; transform-style: preserve-3d; transition: transform 0.5s; cursor: pointer; border: none; background: transparent; padding: 0; }
.card.flipped { transform: rotateY(180deg); }
.card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.card-back { background: #333; background-image: radial-gradient(#444 10%, transparent 11%), radial-gradient(#444 10%, transparent 11%); background-size: 10px 10px; background-position: 0 0, 5px 5px; }
.card-front { background: #fff; color: #111; transform: rotateY(180deg); border: 2px solid #ddd; font-weight: bold; font-size: 0.8rem; text-align: center; padding: 5px; box-sizing: border-box; line-height: 1.2; }
.msg { margin-top: 20px; font-size: 1.1rem; font-weight: bold; color: #4ad48a; min-height: 28px; }

.card.matched { cursor: default; }
.card.matched .card-front { border-color: #1F7A4D; }
