/* EwrekaGames — the shared playing-card deck (assets/js/lib/cards.js). Only the art inside a card: every game keeps
 * its own card boxes, sizes and table. Tokens are scoped to .cd (the card SVGs) and .cd-host (a game's table, for
 * card boxes that paint the face colour themselves). A host with .cd-sm shows the compact art (cards under ~44 px). */
.cd-host, .cd {
  --cd-face: #fffdf8; --cd-edge: #cdc5b5; --cd-red: #d4372f; --cd-black: #1e2636;
  --cd-tint-r: #fde6df; --cd-tint-b: #e2e8f4;
}
:root[data-theme="dark"] .cd-host, :root[data-theme="dark"] .cd { --cd-face: #ebe5d9; --cd-edge: #9a9282; --cd-red: #c5302a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cd-host, :root:not([data-theme="light"]) .cd { --cd-face: #ebe5d9; --cd-edge: #9a9282; --cd-red: #c5302a; }
}
.cd-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.cd { display: block; width: 100%; height: 100%; color: var(--cd-black); }
.cd.cd-r { color: var(--cd-red); }
.cd-fc { fill: var(--cd-face); stroke: var(--cd-edge); stroke-width: 1.4; }
.cd-i { font-family: var(--sans, system-ui, sans-serif); font-weight: 800; fill: currentColor; letter-spacing: -1px; }
.cd-cf { fill: var(--cd-tint-b); stroke: currentColor; stroke-width: 1.8; }
.cd-r .cd-cf { fill: var(--cd-tint-r); }
.cd-g { fill: #e8b73a; stroke: #a9801c; stroke-width: 1; }
.cd-sk { fill: #f2d4b6; }
.cd-e { fill: #1e2636; }
.cd-w { color: #fff; }
/* full art by default, compact art on small cards */
.cd-cmp { display: none; }
.cd-sm .cd-full { display: none; }
.cd-sm .cd-cmp { display: inline; }
