/* css/cards.css — Shared playing card component
   Used by: games/higher-or-lower/index.html, games/memory-match/index.html
   Requires: theme.css loaded first (provides CSS custom properties)
   No external images — Unicode suit symbols only: ♠ ♥ ♦ ♣ */

/* ── Base card ── */
.card {
  background: #f0ede8;
  color: #1a1a1a;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-primary);
  user-select: none;
  -webkit-user-select: none;
}

/* ── Red suits (♥ ♦) ── */
.card--red .card-suit,
.card--red .card-value {
  color: var(--color-accent-red);
}

/* ── Face-down card (Memory Match) ── */
.card--face-down {
  background: var(--color-surface);
  cursor: pointer;
}

.card--face-down .card-suit,
.card--face-down .card-value {
  display: none;
}

/* ── Flash feedback (Higher or Lower) ── */
.card--flash-green {
  background: var(--color-accent-teal);
  transition: background 300ms ease;
}

.card--flash-red {
  background: var(--color-accent-red);
  transition: background 300ms ease;
}

/* ── Card inner elements ── */
.card-value {
  font-size: 1.4em;
  line-height: 1;
  font-weight: bold;
}

.card-suit {
  font-size: 1.2em;
  line-height: 1;
}
