/* Atout — a two-player trick game on a card table. The card art is the shared
   Vector Playing Cards SVGs, rendered whole (the black outline is the card's
   die-cut: never cropped, never boxed). */

.at-root {
  padding: clamp(10px, 3vw, 22px); max-inline-size: 640px; margin: 0 auto; color: #f4f1ea;
  background: radial-gradient(120% 100% at 50% 0%, #2f7d4f 0%, #206040 60%, #184e34 100%);
  border-radius: var(--radius-lg, 12px);
  display: flex; flex-direction: column; gap: clamp(8px, 2vw, 16px);
}

.at-opp { display: flex; justify-content: center; min-block-size: 1px; }
.at-opp .at-back { margin-inline-start: -34px; }
.at-opp .at-back:first-child { margin-inline-start: 0; }

.at-mid { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 32px); min-block-size: clamp(80px, 20vw, 130px); }
.at-slot { inline-size: clamp(56px, 14vw, 90px); display: flex; justify-content: center; }

.at-info { text-align: center; font-family: var(--font-body); }
.at-trumplabel { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
.at-trump { font-size: 20px; vertical-align: -2px; }
.at-suit-H, .at-suit-D { color: #ff6a5a; }
.at-suit-C, .at-suit-S { color: #f4f1ea; }
.at-scores { margin-block-start: 4px; display: flex; gap: 14px; justify-content: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }

.at-status { text-align: center; font-family: var(--font-heading); font-size: clamp(15px, 3.5vw, 20px); min-block-size: 1.4em; }

.at-hand { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.at-cardwrap { line-height: 0; }

.at-card { inline-size: clamp(40px, 9vw, 62px); block-size: auto; display: block; border-radius: 5px; }
.at-slot .at-card { inline-size: 100%; }
.at-card.at-back { inline-size: clamp(36px, 8vw, 56px); }
.at-card.playable { cursor: pointer; transition: transform 0.12s; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.at-card.playable:hover { transform: translateY(-8px); }
.at-card.muted { opacity: 0.4; }

.at-root.mode-dark { background: radial-gradient(120% 100% at 50% 0%, #245c3c 0%, #1a4830 60%, #123522 100%); }
