.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  grid-template-rows: repeat(4, 64px);
  gap: 8px;
}

@media (max-width: 480px) {
  .memory-board { grid-template-columns: repeat(4, 18vw); grid-template-rows: repeat(4, 18vw); }
}

.memory-card {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: var(--shadow-card);
}

.memory-card.hidden-face {
  background:
    repeating-linear-gradient(45deg, rgba(212, 176, 108, 0.12) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, var(--wine-600), var(--wine-900));
  border: 2px solid var(--brass-600);
}

.memory-card.matched {
  opacity: 0.55;
}

.memory-card:disabled {
  cursor: default;
}

.memory-symbol-0 { background: linear-gradient(160deg, #c24b4b, var(--wine-800)); color: var(--parchment-100); }
.memory-symbol-1 { background: linear-gradient(160deg, #4f9463, var(--felt-800)); color: var(--parchment-100); }
.memory-symbol-2 { background: linear-gradient(160deg, #4a76b0, #1c3252); color: var(--parchment-100); }
.memory-symbol-3 { background: linear-gradient(160deg, #d8ad4d, #7a5a1e); color: var(--ink-900); }
.memory-symbol-4 { background: linear-gradient(160deg, #8a6a2f, #3a2418); color: var(--parchment-100); }
.memory-symbol-5 { background: linear-gradient(160deg, #a8a297, #4a382a); color: var(--parchment-100); }
.memory-symbol-6 { background: linear-gradient(160deg, #b23a4d, #400f18); color: var(--parchment-100); }
.memory-symbol-7 { background: linear-gradient(160deg, #366745, #10261c); color: var(--parchment-100); }
