/* Matching Game (renders on a white "paper" sheet) */
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
}

.match-card {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  transition: all 0.2s;
}

.match-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.match-card.selected {
  border-color: var(--primary);
  background: #eef2ff;
}

.match-card.matched {
  border-color: var(--accent);
  background: #d1fae5;
  color: #047857;
}

.match-card.wrong {
  border-color: #ef4444;
  background: #fee2e2;
}

@media print {
  .match-card { background: #fff !important; color: #111 !important; }
}