/* Hearts identity: "Victorian parlour". Burgundy velvet, mahogany rail, antique gold, Cormorant numerals, cream cards. */
:root {
  --bg: #200a10; --surface: #33111c; --surface-2: #451826; --ink: #f7ecdc; --ink-2: #cdb3a4; --line: #5a2333;
  --accent: #d9b36b; --accent-ink: #2a1208; --ok: #a8d8a0; --warn: #f2d38a; --bad: #f08a8a; --info: #e3c48a;
  --felt: #5e1a2a; --felt-2: #4a1220; --velvet-2: #7a2436; --rim: #3b1a10; --gold: #d9b36b; --table-radius: 20px;
  --back-1: #5e1a2a; --back-2: #d9b36b; --nil: #d9b36b;
  --font-display: "Cormorant Garamond", Georgia, serif; --font-ui: "Lato", system-ui, sans-serif; --font-card: "Merriweather", Georgia, serif; /* Cormorant's small x-height made 13-card hand indices unreadable */
}
:root[data-theme="light"] { --bg: #f3e6e2; --surface: #fff8f4; --surface-2: #eed7d3; --ink: #2a1016; --ink-2: #74535b; --line: #dcc2c0; --accent: #9c7a2f; --accent-ink: #fff; --felt: #7a2436; --felt-2: #661b2c; --rim: #5a3324; }
:root[data-colorblind="1"] { --bad: #e69f00; }
:root[data-contrast="1"] { --ink-2: #f0dfd2; --felt: #4a1220; --gold: #ffe0a0; --accent: #ffe0a0; }
body { background: radial-gradient(ellipse at 50% -10%, #4a1a26 0%, var(--bg) 60%), repeating-linear-gradient(45deg, transparent 0 14px, rgb(255 255 255 / .012) 14px 16px); }
:root[data-theme="light"] body { background: radial-gradient(ellipse at 50% -10%, #fff8f4 0%, var(--bg) 60%); }
h1, h2, .title, .sheet-title, .mode b, .cta, .ctl-main, .seat-tag .score, .panel b { font-family: var(--font-display); }
.title { font-weight: 600; letter-spacing: .04em; text-shadow: 0 2px 0 rgb(0 0 0 / .5), 0 0 30px color-mix(in oklab, var(--gold) 40%, transparent); }
.title::after { content: " ♥"; color: #e0475a; font-size: .6em; vertical-align: .2em; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.mode b { font-size: 1.15rem; font-weight: 600; }
.cta { font-size: 1.3rem; font-weight: 600; letter-spacing: .12em; }
/* opponents: rose, spade and moon personalities */
.seat-row[data-seat="1"], .seat-tag[data-seat="1"] { --pc: #b56576; } .seat-row[data-seat="2"], .seat-tag[data-seat="2"] { --pc: #6d597a; } .seat-row[data-seat="3"], .seat-tag[data-seat="3"] { --pc: #355070; } .seat-row[data-seat="0"], .seat-tag[data-seat="0"] { --pc: #9c6644; }
.seat-tag .avatar { font-family: var(--font-display); font-size: 1.15rem; box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--gold) 60%, transparent), inset 0 -3px 0 rgb(0 0 0 / .25), 0 2px 8px rgb(0 0 0 / .45); }
.seat-tag .name { font-family: var(--font-display); font-size: .85rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.seat-tag .score { font-size: .82rem; font-weight: 700; }
.seat-tag[data-moon="true"] .avatar::after { content: "☾"; position: absolute; right: -10px; top: -8px; color: var(--gold); font-size: 1rem; text-shadow: 0 0 8px var(--gold); animation: pop .6s var(--ease-spring); }
/* mahogany rail with a gold keyline around the velvet */
.play .stage-canvas { box-shadow: 0 0 0 5px var(--rim), 0 0 0 6px var(--gold), 0 0 0 11px var(--rim), 0 22px 60px rgb(0 0 0 / .6); }
.strip { background: color-mix(in oklab, var(--felt-2) 80%, transparent); box-shadow: 0 0 0 1px color-mix(in oklab, var(--gold) 50%, transparent); }
.strip .lbl { font-family: var(--font-display); font-size: .78rem; letter-spacing: .06em; text-transform: none; font-style: italic; }
/* pass phase */
.pass-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); }
.pass-arrow .icon { width: 20px; height: 20px; animation: pass-nudge 1.2s infinite; }
@keyframes pass-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
#btn-pass { min-width: 150px; }
#btn-pass:disabled { opacity: .5; }
/* ledger sheet with hand-by-hand rows */
.ledger td, .ledger th { font-family: var(--font-display); font-size: 1.05rem; }
.ledger th { font-family: var(--font-ui); }
.ledger td[data-points="0"] { color: var(--ink-2); }
.ledger td[data-queen="true"]::before { content: "♛ "; font-size: .8em; color: var(--ink-2); }
.result-verdict { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.moon-banner { text-align: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); text-shadow: 0 0 20px color-mix(in oklab, var(--gold) 60%, transparent); }
