/* Klondike identity: "walnut desk". Green baize inset in a walnut border with brass corners; brass accent; Caslon numerals. */
:root {
  --bg: #12261a; --surface: #1b3325; --surface-2: #244231; --ink: #f1ead8; --ink-2: #b7c4b0; --line: #2f4a3a;
  --accent: #d4a545; --accent-ink: #1e1607; --ok: #8fd9a0; --warn: #f2d38a; --bad: #f0958a; --info: #d9c48a;
  --felt: #1f5a3a; --felt-2: #17452c; --rim: #5a3a22; --rim-2: #3d2614; --brass: #d4a545; --table-radius: 14px;
  --back-1: #1f5a3a; --back-2: #d4a545;
  --font-display: "Libre Caslon Text", Georgia, serif; --font-ui: "Source Sans 3", system-ui, sans-serif; --font-card: "Libre Caslon Text", "Merriweather", Georgia, serif;
}
:root[data-theme="light"] { --bg: #e9e2cf; --surface: #fbf7ec; --surface-2: #e4dcc6; --ink: #1d2a20; --ink-2: #5e6b5a; --line: #d3cab0; --accent: #a6791f; --accent-ink: #fff; --felt: #2c6b47; --felt-2: #235739; --rim: #7a5334; }
:root[data-contrast="1"] { --ink-2: #dce5d6; --felt: #164a2e; --brass: #ffd27a; --accent: #ffd27a; }
body { background: radial-gradient(ellipse at 50% -10%, #234a32 0%, var(--bg) 60%); }
:root[data-theme="light"] body { background: radial-gradient(ellipse at 50% -10%, #fbf7ec 0%, var(--bg) 60%); }
h1, h2, .title, .sheet-title, .mode b, .cta, .ctl-main { font-family: var(--font-display); }
.title { font-weight: 700; letter-spacing: .01em; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; }
.modes { grid-template-columns: 1fr 1fr; }
.mode b { font-family: var(--font-display); }
/* the stage is a walnut frame around the canvas */
.play .stage { padding: 6px 8px 4px; }
.play .stage-canvas { box-shadow: 0 0 0 6px var(--rim), 0 0 0 7px var(--brass), 0 0 0 12px var(--rim-2), 0 22px 60px rgb(0 0 0 / .55); border-radius: 8px; }
.hud-pill { font-family: var(--font-display); }
.hud-pill .tnum { font-variant-numeric: tabular-nums lining-nums; }
hg-timer { font-family: var(--font-display); }
.controls { gap: 6px; }
.ctl { padding: 0 12px; font-weight: 700; }
#btn-finish { animation: ctl-glow 1.6s ease-in-out infinite, pop .5s var(--ease-spring); }
/* deal picker: draw 1 / draw 3 with small card stacks */
.draw-pick [role="radio"] { display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.draw-pick .pcard { --w: 16px; box-shadow: 0 0 0 1px var(--card-edge); }
/* win: baize glow */
.play[data-won="true"] .stage-canvas { box-shadow: 0 0 0 6px var(--rim), 0 0 0 7px var(--brass), 0 0 0 12px var(--rim-2), 0 0 60px color-mix(in oklab, var(--brass) 55%, transparent); transition: box-shadow var(--t-slow); }
.result-verdict { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--ink); }
.daily-line { display: flex; justify-content: center; gap: 8px; align-items: center; color: var(--ink-2); font-size: .85rem; }
.daily-line .streak { color: var(--accent); font-family: var(--font-display); font-weight: 700; }
@media (min-width: 900px) and (min-aspect-ratio: 5/4) { .play { grid-template-columns: minmax(0, 1fr) minmax(0, 170dvh) minmax(0, 1fr); } .play .stage { padding: 12px 16px; } }
