/* Crazy Eights identity: "kitchen table pop". Violet-charcoal room, yellow laminate table with chrome trim, coral and teal accents, Rubik. */
:root {
  --bg: #1b1a2e; --surface: #262440; --surface-2: #33305a; --ink: #fff8ea; --ink-2: #b9b4d6; --line: #3f3b6b;
  --accent: #ff6b57; --accent-ink: #fff; --teal: #2ec4b6; --yellow: #f2c94c; --ok: #7ee2a8; --warn: #f2c94c; --bad: #ff6b57; --info: #2ec4b6;
  --felt: #3a3357; --felt-2: #2e2848; --rim: #f2c94c; --chrome: #c7ceda; --table-radius: 26px;
  --back-1: #2ec4b6; --back-2: #f2c94c;
  --font-display: "Rubik Mono One", "Arial Black", sans-serif; --font-ui: "Rubik", system-ui, sans-serif;
}
:root[data-theme="light"] { --bg: #fff3d6; --surface: #fffaf0; --surface-2: #ffe6a8; --ink: #23213a; --ink-2: #6a6690; --line: #ead9a8; --accent: #e5533f; --felt: #f2c94c; --felt-2: #e0b63a; --rim: #c7ceda; }
:root[data-colorblind="1"] { --accent: #e69f00; --teal: #56b4e9; --yellow: #f0e442; --back-1: #56b4e9; --back-2: #f0e442; }
:root[data-contrast="1"] { --ink-2: #e6e2ff; --felt: #2a2444; }
body { background: radial-gradient(circle at 50% 120%, #4a4275 0%, var(--bg) 55%), repeating-radial-gradient(circle at 20% 10%, transparent 0 18px, rgb(255 255 255 / .02) 18px 20px); }
:root[data-theme="light"] body { background: radial-gradient(circle at 50% 120%, #fff 0%, var(--bg) 60%); }
h1, h2, .title, .sheet-title, .mode b, .cta, .ctl-main { font-family: var(--font-display); font-weight: 400; }
.title { color: var(--yellow); text-shadow: 3px 3px 0 var(--accent), 0 0 30px color-mix(in oklab, var(--yellow) 40%, transparent); letter-spacing: 0; }
.title .eight { color: var(--accent); text-shadow: 3px 3px 0 var(--teal); display: inline-block; transform: rotate(-8deg); }
.tagline { font-weight: 500; }
.mode b { font-size: .95rem; letter-spacing: .02em; }
.mode[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 0 18px color-mix(in oklab, var(--teal) 35%, transparent); }
.seg-line [aria-checked="true"] { background: var(--teal); color: #10302d; }
/* seats get pop colours */
.seat-row[data-seat="1"], .seat-tag[data-seat="1"] { --pc: #2ec4b6; } .seat-row[data-seat="2"], .seat-tag[data-seat="2"] { --pc: #ff6b57; } .seat-row[data-seat="3"], .seat-tag[data-seat="3"] { --pc: #a06cd5; } .seat-row[data-seat="0"], .seat-tag[data-seat="0"] { --pc: #f2c94c; }
.seat-tag .name { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.seat-tag[data-last="true"] .avatar { animation: pulse 1.2s infinite; }
/* laminate table: chrome trim drawn as a double ring around the canvas */
.play .stage-canvas { box-shadow: 0 0 0 4px var(--chrome), 0 0 0 5px #7d8899, 0 0 0 9px var(--rim), 0 24px 50px rgb(0 0 0 / .5); }
/* house rules toggles grouped in settings */
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.rules-grid .set-row { min-height: 40px; font-size: .9rem; }
.rules-grid .pcard { --w: 26px; margin-right: 6px; }
/* current suit badge and direction ring live on canvas; the wild sheet uses .suit-picker */
.suit-picker button { border-radius: 18px; background: var(--card-face); box-shadow: 0 4px 0 rgb(0 0 0 / .25); }
.suit-picker button:active { box-shadow: 0 1px 0 rgb(0 0 0 / .25); transform: translateY(3px); }
.suit-picker button small { color: #6a6690; }
.ctl-main { font-size: .95rem; letter-spacing: .04em; }
#btn-pass { background: var(--surface-2); color: var(--ink); }
.one-badge { display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: .78rem; animation: pop .5s var(--ease-spring); }
.result-verdict { font-family: var(--font-display); font-size: 1rem; color: var(--yellow); }
.ledger tfoot td { color: var(--yellow); }
