@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
/* Midnight Felt, noir: emerald light over near-black, one metallic gold accent */
:root {
  --bg: #040806; --panel: #0c1511; --line: #1b2a22; --ink: #f1e9d8; --quiet: #93a89a; --cream: #f1e9d8;
  --win: #1f9d55; --lose: #c0392b; --post: #7a1f1f; --pass: #4a5560; --accent: #d9b15c; --on-accent: #1a1405; --gold: linear-gradient(180deg, #f5e0a3, #d9b15c 52%, #a87a2e); --emerald: #0f5a3a; --b2b: #6c4bb4; --split: #2a6fb0;
  --felt-1: #17603f; --felt-2: #061a11; --felt-edge: #24533c;
  --font-display: "Instrument Serif", "Didot", Georgia, serif;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, .logo, .pot, .strip .pot, .codein, .top .code { font-family: var(--font-display); font-weight: 400; }
button, input, select { font-family: inherit; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100dvh; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
#app { max-width: 560px; margin: 0 auto; padding: 12px 16px 96px; }
h1 { font-size: 28px; margin: 24px 0 8px; }
h2 { font-size: 18px; margin: 20px 0 8px; color: var(--quiet); font-weight: 600; }
p { color: var(--quiet); line-height: 1.4; }
input, select { width: 100%; font-size: 18px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
label { display: block; margin: 12px 0 6px; color: var(--quiet); font-size: 14px; }
button { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; touch-action: manipulation; user-select: none; }
button:disabled { opacity: .35; cursor: default; }
button.primary { background: var(--accent); color: var(--on-accent); border: 0; font-weight: 700; }
button.sel { outline: 3px solid var(--accent); outline-offset: -3px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.grow { flex: 1; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 10px 0; }
.muted { color: var(--quiet); }
.small { font-size: 13px; }
.big { font-size: 44px; font-weight: 800; letter-spacing: -1px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 22%, var(--panel)); color: var(--accent); margin-left: 6px; vertical-align: middle; }
.tag.keep { background: #10334a; color: #7cc4ff; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 0 6px; }
.code { font-size: 22px; font-weight: 800; letter-spacing: 3px; }
.unitbtn { padding: 8px 12px; font-weight: 700; }
.strip { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; background: var(--panel); border-radius: 16px; padding: 10px 14px; border: 1px solid var(--line); }
.strip .who { font-size: 26px; font-weight: 800; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--quiet); }
.strip .pot { font-size: 34px; font-weight: 800; color: var(--accent); text-align: right; }
.strip .max { text-align: right; color: var(--quiet); }
.turnnav { display: flex; gap: 8px; margin-top: 8px; }
.turnnav button { flex: 1; padding: 8px; }

/* scorekeeper pad */
.bets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.bets button { min-height: 54px; font-size: 22px; font-weight: 800; }
.outs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.outs button { min-height: 80px; font-size: 28px; font-weight: 900; border: 0; letter-spacing: 1px; }
.win { background: var(--win) !important; } .lose { background: var(--lose) !important; }
.post { background: var(--post) !important; } .pass { background: var(--pass) !important; }
.b2b { background: var(--b2b) !important; } .split { background: var(--split) !important; }
.specials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.specials button { min-height: 58px; font-size: 18px; font-weight: 800; border: 0; }
.banner { background: #23301f; border: 1px solid #3c5a2f; color: #cfe8c0; border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.banner.warn { background: #3a2a0d; border-color: #6b4f12; color: #ffd98a; }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #0b100d; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 5; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--quiet); padding: 10px 2px; font-size: 14px; font-weight: 600; }
.tabs { gap: 4px; }
.tabs button { border-radius: 12px; transition: background .15s, color .15s; }
.tabs button { position: relative; z-index: 1; min-width: 0; }
.tabs button.on { color: var(--on-accent); font-weight: 800; }
.tabpill { --i: 0; --n: 6; position: absolute; top: 6px; left: calc(6px + var(--i) * (100% - 12px + 4px) / var(--n)); width: calc((100% - 12px - 4px * (var(--n) - 1)) / var(--n)); height: calc(100% - 12px - env(safe-area-inset-bottom)); border-radius: 12px; background: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: left .22s cubic-bezier(.3,.7,.3,1); z-index: 0; pointer-events: none; }

/* seat circle */
.circle { position: relative; width: 100%; aspect-ratio: 1 / 1.05; margin: 8px 0; }
.circle .felt { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(var(--felt-1), var(--felt-2)); border: 2px solid var(--felt-edge); box-shadow: var(--felt-glow, none); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.circle .felt .pot { font-size: 30px; font-weight: 900; color: var(--accent); }
.seatbtn { position: absolute; transform: translate(-50%, -50%); width: 27%; padding: 8px 4px; border-radius: 14px; text-align: center; line-height: 1.15; }
.seatbtn .nm { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.seatbtn .bal { font-size: 14px; }
.circle.many { aspect-ratio: 1 / 1.3; } .circle.lots { aspect-ratio: 1 / 1.8; }
.circle.many .felt, .circle.lots .felt { inset: 14% 26%; border-radius: 120px; }
.circle.many .seatbtn { width: 24%; padding: 5px 2px; } .circle.lots .seatbtn { width: 22%; padding: 5px 2px; border-radius: 11px; }
.circle.many .seatbtn .nm, .circle.lots .seatbtn .nm { font-size: 13px; } .circle.many .seatbtn .bal, .circle.lots .seatbtn .bal { font-size: 12px; }
.circle.lots .seatbtn .small { font-size: 10.5px; }
.seatbtn.turn { outline: 3px solid var(--accent); outline-offset: 0; background: color-mix(in srgb, var(--accent) 20%, var(--panel)); }
.seatbtn.out { opacity: .45; }
.pos { color: #6fdc9b; } .neg { color: #ff8f80; }

/* lists */
.log .l { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; }
.log .l.void .tx { text-decoration: line-through; opacity: .5; }
.log .l.flag { background: #3a2f0f; }
.log .tx { flex: 1; }
.seatrow { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.seatrow button { padding: 8px 10px; }
.xfer { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.xfer .amt { font-size: 22px; font-weight: 800; }

#undo { position: fixed; left: 12px; right: 12px; top: calc(8px + env(safe-area-inset-top)); max-width: 536px; margin: 0 auto; display: flex; gap: 8px; align-items: center; background: #26302a; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; z-index: 6; }
#undo button { flex: 0 0 auto; background: var(--accent); color: var(--on-accent); font-weight: 800; border: 0; }
#toast { position: fixed; top: 12px; left: 12px; right: 12px; max-width: 536px; margin: 0 auto; background: #5a1c16; color: #fff; padding: 12px 14px; border-radius: 12px; z-index: 9; font-weight: 600; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; z-index: 8; }
.modal .sheet { background: var(--panel); width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.modal .sheet .outs button { min-height: 80px; }
.offline { background: #5a1c16; color: #fff; text-align: center; padding: 6px; border-radius: 8px; margin-bottom: 8px; font-size: 14px; }

/* back-to-back pair of buttons + house rules line */
.specials button { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.specials button .sub { font-size: 14px; font-weight: 700; opacity: .85; }
.b2b.suited { background: #8a3fa8 !important; }
.house { margin-top: 10px; }
.houseline { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; padding: 10px 12px; }
.houseline .hl { font-weight: 800; flex: 0 0 auto; }
.houseline .hs { flex: 1; color: var(--quiet); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.house .specials { margin-top: 8px; }
.rule { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule b { text-align: right; }

/* invite */
button.code { background: transparent; border: 0; padding: 0; display: flex; align-items: center; gap: 8px; }
.qrhint { font-size: 11px; letter-spacing: 1px; font-weight: 800; background: var(--accent); color: var(--on-accent); border-radius: 6px; padding: 2px 5px; }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: min(78vw, 300px); margin: 0 auto; }
.qr svg { display: block; width: 100%; height: auto; }

/* seat picker */
.whobtn { background: transparent; border: 0; padding: 0; color: var(--ink); text-align: left; max-width: 100%; }
.whobtn .caret { font-size: 16px; color: var(--accent); margin-left: 6px; }
.pickgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 60vh; overflow-y: auto; }
.pickgrid button { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; }
.pickgrid b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* your turn (players) */
.yourturn { background: var(--accent); color: var(--on-accent); border-radius: 14px; padding: 12px 14px; margin: 8px 0; font-size: 24px; font-weight: 900; display: flex; justify-content: space-between; align-items: center; animation: pulse 1.4s ease-in-out infinite; }
.yourturn .small { font-weight: 700; }
.upnext { background: color-mix(in srgb, var(--accent) 20%, var(--panel)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--panel)); border-radius: 12px; padding: 8px 12px; margin: 8px 0; font-weight: 800; }
@keyframes pulse { 50% { filter: brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { .yourturn { animation: none; } }

/* chart + recap */
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 12px; color: var(--quiet); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.recap .stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin-bottom: 6px; }
.recap .stats b { display: block; font-size: 24px; }
.recap .stats span { font-size: 12px; color: var(--quiet); }
#toast.ok { background: #1f5a36; }

/* home */
.brand { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 14px; }
.logo { font-size: 34px; font-weight: 900; letter-spacing: -1px; }
.logo i { font-style: normal; color: var(--accent); }
.namein { font-size: 20px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: #0b100d; border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin: 16px 0 14px; }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--accent); transition: transform .22s cubic-bezier(.3,.7,.3,1); }
.seg[data-mode="host"]::before { transform: translateX(100%); }
.seg button { position: relative; z-index: 1; background: transparent; border: 0; font-weight: 800; font-size: 17px; padding: 14px 6px; color: var(--quiet); transition: color .2s; }
.seg button.on { color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .seg::before, .seg button { transition: none; } }
.pane { animation: fadein .18s ease-out; }
@keyframes fadein { from { opacity: .4; transform: translateY(4px); } }
.codein { text-transform: uppercase; letter-spacing: 14px; font-size: 44px; font-weight: 900; text-align: center; padding: 14px 0 14px 14px; border-radius: 16px; }
.codein::placeholder { color: #3a4a40; letter-spacing: 14px; }
button.big { width: 100%; min-height: 58px; font-size: 19px; margin-top: 12px; }
.center { text-align: center; }
.recent { display: grid; gap: 8px; }
.recent button { display: flex; justify-content: space-between; align-items: center; padding: 14px; }
.recent b { letter-spacing: 3px; font-size: 20px; }
.recent span { color: var(--quiet); font-size: 14px; }
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 14px; min-height: 108px; border-radius: 16px; }
.game .gi { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.game b { font-size: 17px; }
.game .small { color: var(--quiet); line-height: 1.25; }
.game.sel { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: -3px; background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
.game.soon:disabled { opacity: .45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { flex: 1 0 22%; min-height: 50px; font-size: 18px; font-weight: 800; }
.homebtn { flex: 0 0 auto !important; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); text-decoration: none; font-size: 26px; line-height: 1; }
.tname { font-size: 15px; font-weight: 800; color: var(--accent); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.recent .rl { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.recent .rn { letter-spacing: 0 !important; font-size: 16px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.codein.small-code { font-size: 26px; letter-spacing: 6px; padding: 10px 0 10px 6px; border-radius: 12px; }
.codein.small-code::placeholder { letter-spacing: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6fdc9b; margin-right: 4px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(111,220,155,.25); }
.claim { border-color: color-mix(in srgb, var(--accent) 45%, var(--panel)); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); }
/* rules */
.key { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--quiet); margin: 0 0 4px; }
.key .k { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.key .k.std { background: var(--panel); border: 1px solid var(--line); }
.key .k.house { background: var(--accent); }
.rules { padding: 4px 12px; }
.rrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.rrow .rt { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.rrow .rn { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--quiet); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.rrow .rd { color: var(--ink); opacity: .9; margin: 4px 0 0 30px; line-height: 1.4; }
.rrow.house { border-left: 3px solid var(--accent); margin-left: -12px; padding-left: 9px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); }
.rrow.house .rt, .rrow.house .rd { color: var(--accent); }
.rrow.house .rn { background: var(--accent); color: var(--on-accent); }
.rrow .rw { margin: 4px 0 0 30px; font-size: 13px; color: var(--quiet); text-decoration: line-through; text-decoration-color: rgba(159,176,166,.5); }
.tabs button { font-size: 13px; }
.unitbtn { white-space: nowrap; flex: 0 0 auto; font-size: 14px; }

/* whose turn: seat color */
.strip { border-left: 6px solid var(--seat, var(--line)); }
.strip .who { color: var(--seat, var(--ink)); }
.whobtn.big { font-size: 36px; font-weight: 900; line-height: 1.05; }
.nextup { font-size: 13px; color: var(--quiet); margin-top: 3px; font-weight: 600; }
.outs.tinted button { box-shadow: inset 0 -8px 0 var(--seat, transparent); }

/* entry confirmation flash */
#flash { position: fixed; left: 50%; z-index: 7; transform: translate(-50%, 0); pointer-events: none; background: #0b100d; border: 2px solid var(--seat); border-radius: 16px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: opacity .3s, transform .3s; animation: flashin .15s ease-out; }
#flash.keeper { top: 38%; width: min(86vw, 420px); padding: 16px 18px; }
#flash.keeper .ft { font-size: 22px; font-weight: 900; color: var(--seat); }
#flash.viewer { top: calc(10px + env(safe-area-inset-top)); width: min(92vw, 460px); padding: 8px 12px; }
#flash.viewer .ft { font-size: 15px; font-weight: 800; color: var(--seat); }
#flash .fp { font-size: 14px; color: var(--quiet); margin-top: 2px; }
#flash.out { opacity: 0; transform: translate(-50%, -6px); }
@keyframes flashin { from { opacity: 0; transform: translate(-50%, 6px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { #flash { animation: none; transition: none; } }
.seg[data-mode="b"]::before { transform: translateX(100%); }
.seg.two { margin: 6px 0 14px; }
.seg.two button { font-size: 15px; padding: 12px 4px; }
.card.you { border-color: var(--accent); margin-top: 10px; }

/* ---- offline queue ---- */
.offline.queued { background: #3a2a0d; color: #ffd98a; border: 1px solid #6b4f12; text-align: left; padding: 8px 10px; }
.log .l.pending { background: color-mix(in srgb, var(--accent) 8%, transparent); border-radius: 8px; }
.log .l.pending .tx { font-style: italic; }
#flash.queued { --seat: #ffd98a; }

/* ---- sit out ---- */
.seatbtn.sitout { opacity: .55; border-style: dashed; }
.sitlbl { color: #7cc4ff; font-weight: 700; }
.tag.sit { background: #10334a; color: #7cc4ff; }
.pickgrid button.sitout { border-style: dashed; }
.upnext.sitbar { display: flex; justify-content: space-between; align-items: center; background: #10334a; color: #7cc4ff; border-color: #1d5a80; }
.upnext.sitbar button { flex: 0 0 auto; background: #7cc4ff; color: #04141f; border: 0; font-weight: 800; }

/* ---- setup sections ---- */
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 6px; padding-bottom: 2px; scrollbar-width: none; }
.subtabs button { flex: 1 0 auto; padding: 10px 12px; border-radius: 99px; font-weight: 700; font-size: 15px; color: var(--quiet); }
.subtabs button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.seatrow.phone.gone b { text-decoration: line-through; color: var(--quiet); }
.retain { margin-top: 18px; }

/* ---- help ---- */
.helpbtn { flex: 0 0 auto; width: 40px; height: 40px; padding: 0; border-radius: 50%; font-weight: 800; font-size: 18px; }
.linkbtn { background: transparent; border: 0; color: var(--accent); font-weight: 700; padding: 8px 6px; }
.homefoot { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 0; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent); }

/* ---- themes ---- */
:root[data-theme="night"] {
  --felt-1: #0f2419; --felt-2: #08140e; --felt-edge: #1b3b2a; --on-accent: #120d02;
  --bg: #000; --panel: #0a0c0b; --line: #1d2320; --ink: #c8cfcb; --quiet: #77837c;
  --accent: #c9a043; --win: #17733f; --lose: #8f2a20; --post: #5a1717; --pass: #343c44; --b2b: #4d3685; --split: #1f4f80;
}
:root[data-theme="night"] .tabs { background: #000; }
:root[data-theme="light"] {
  --bg: #f4f1ea; --panel: #ffffff; --line: #d8d2c4; --ink: #18201b; --quiet: #5b6a61;
  --accent: #d39b17; --win: #1f9d55; --lose: #c0392b; --post: #8e2a2a; --pass: #6b7682; --b2b: #6c4bb4; --split: #2a6fb0;
}
:root[data-theme="light"] .tabs { background: #fbfaf6; }
:root[data-theme="light"] .seg { background: #e9e4d8; }
:root[data-theme="light"] .banner { background: #e7f3e2; border-color: #b7d7a8; color: #24451a; }
:root[data-theme="light"] .banner.warn, :root[data-theme="light"] .offline.queued, :root[data-theme="light"] .upnext { background: #fdf1d3; border-color: #e5c46b; color: #6b4a00; }
:root[data-theme="light"] .tag { background: #fbe8b5; color: #7a5600; }
:root[data-theme="light"] .tag.keep, :root[data-theme="light"] .tag.sit { background: #dcecfa; color: #1d5a80; }
:root[data-theme="light"] .sitlbl { color: #1d5a80; }
:root[data-theme="light"] .upnext.sitbar { background: #dcecfa; color: #1d5a80; border-color: #9cc6e8; }
:root[data-theme="light"] .seatbtn.turn, :root[data-theme="light"] .game.sel { background: #fdf1d3; }
:root[data-theme="light"] #undo { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
:root[data-theme="light"] .codein::placeholder { color: #c9c2b2; }
:root[data-theme="light"] .pos { color: #13804a; }
:root[data-theme="light"] .neg { color: #b3261e; }
:root[data-theme="light"] .modal { background: rgba(0,0,0,.35); }
:root[data-theme="light"] .circle .felt .muted { color: #cfe8c0; }
.outs button, .specials button { color: #fff; }
:root[data-theme="night"] .outs button, :root[data-theme="night"] .specials button { color: #e6e6e6; }
/* seats out of the pot: keep the tile solid so the felt doesn't show through, fade the contents */
.seatbtn.out, .seatbtn.sitout { opacity: 1; }
.seatbtn.out > *, .seatbtn.sitout > :not(.sitlbl) { opacity: .5; }
.offline.failed { text-align: left; padding: 10px 12px; }
.offline.failed button { background: #fff; color: #5a1c16; border: 0; font-weight: 800; }

/* ---- log colour key ---- */
:root { --k-win: #6fdc9b; --k-lose: #ff8f80; --k-pass: #7f8c85; --k-rule: #c39bff; --k-seat: #7cc4ff; --k-undo: #ffb86b; --k-settle: var(--accent); --k-info: #3a4a40; }
:root[data-theme="light"] { --k-win: #13804a; --k-lose: #b3261e; --k-pass: #8a958e; --k-rule: #7b4bc9; --k-seat: #1d6fb0; --k-undo: #c46a00; --k-settle: #a87800; --k-info: #cfc8b8; }
.log .l { border-left: 4px solid var(--k-info); padding-left: 8px; }
.log .l.k-win { border-left-color: var(--k-win); } .log .l.k-lose { border-left-color: var(--k-lose); } .log .l.k-pass { border-left-color: var(--k-pass); }
.log .l.k-rule { border-left-color: var(--k-rule); } .log .l.k-rule .tx { color: var(--k-rule); font-weight: 600; }
.log .l.k-seat { border-left-color: var(--k-seat); }
.log .l.k-undo, .log .l.k-fix, .log .l.k-skip { border-left-color: var(--k-undo); } .log .l.k-undo .tx, .log .l.k-fix .tx { color: var(--k-undo); }
.log .l.k-settle { border-left-color: var(--k-settle); }
.log .l.potwon { background: color-mix(in srgb, var(--accent) 10%, transparent); } .log .l.potwon .tx { font-weight: 700; }
.log .l.pending { border-left-color: var(--accent); border-left-style: dashed; }
.logf button { font-size: 13px; padding: 8px 10px; flex: 0 0 auto; }
.kd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.kd.k-win { background: var(--k-win); } .kd.k-rule { background: var(--k-rule); } .kd.k-undo { background: var(--k-undo); } .kd.k-seat { background: var(--k-seat); }
#flash.rule { border-width: 3px; }
#flash .fk { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--seat); opacity: .85; }
#flash.viewer.rule { top: 38%; padding: 14px 16px; }
#flash.viewer.rule .ft { font-size: 19px; }

/* undo: a slim bar above the tabs, never over the header or the pad's top */
#undo { top: auto; bottom: calc(64px + env(safe-area-inset-bottom)); padding: 6px 8px 6px 12px; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
#undo button { padding: 8px 14px; }
#app { padding-bottom: 150px; }
.lastrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.lastrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--quiet); }
.lastrow b { color: var(--ink); font-weight: 700; }
.lastrow button { flex: 0 0 auto; padding: 6px 14px; font-weight: 800; color: var(--accent); }

/* ---- money rounds ---- */
:root { --money: #f5c542; }
.moneybar { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 8px; border-radius: 14px; padding: 8px 10px; text-align: left; }
.moneybar .mb1 { display: block; font-weight: 900; letter-spacing: .5px; }
.moneybar .mb2 { display: block; font-size: 13px; opacity: .9; }
.moneybar.deck { background: #2b230c; border: 2px dashed var(--money); color: var(--money); }
.moneybar.deck .mbtext { flex: 1; background: transparent; border: 0; padding: 0; color: inherit; text-align: left; }
.moneybar.deck > button.small { flex: 0 0 auto; padding: 8px 12px; }
.moneybar.now { background: linear-gradient(90deg, #f5c542, #ffdf7e); color: #2a1d00; border: 0; box-shadow: 0 0 0 3px rgba(245,197,66,.25); animation: moneyglow 2.4s ease-in-out infinite; }
@keyframes moneyglow { 50% { box-shadow: 0 0 0 6px rgba(245,197,66,.12); } }
@media (prefers-reduced-motion: reduce) { .moneybar.now { animation: none; } }
.tag.money { background: #f5c542; color: #2a1d00; font-weight: 800; }
.feltmoney { font-size: 12px; font-weight: 800; color: #2a1d00; background: var(--money); border-radius: 99px; padding: 2px 8px; margin-top: 2px; }
#flash.money { --seat: var(--money); border-width: 3px; }
#flash.money .ft { font-size: 26px; }
.moneybtn { font-weight: 800; color: var(--money); border: 1px dashed var(--money); background: transparent; }
.moneybtn.on { background: #2b230c; }
:root[data-theme="light"] .moneybar.deck, :root[data-theme="light"] .moneybtn.on { background: #fff4d0; color: #7a5600; border-color: #d39b17; }
:root[data-theme="light"] .moneybtn { color: #7a5600; border-color: #d39b17; }
.moneybar.now { flex-direction: column; align-items: flex-start; gap: 2px; }

/* ---- type-in numbers (no pop-ups) ---- */
.numbox { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 10px; border-radius: 12px; border: 2px solid var(--accent); background: var(--panel); color: var(--ink); font-weight: 800; margin: 0; }
.numbox input.numin { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; padding: 8px 0; font-size: 20px; font-weight: 800; color: var(--ink); outline: none; }
.numbox span { color: var(--quiet); font-size: 16px; flex: 0 0 auto; }
.bets .custom { grid-column: span 2; }
.bets .numbox.custom { min-height: 54px; }
.bets .custom.cust2 { display: flex; gap: 6px; }
.bets .custom.cust2 > button:first-child { flex: 1; }
.bets .custom.cust2 .pen { flex: 0 0 52px; font-size: 20px; padding: 0; }
.bets button.two { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.chipsub { font-size: 13px; font-weight: 700; color: var(--quiet); }
.chips .numbox { min-height: 44px; min-width: 120px; }
.row .numbox { width: 56px; min-height: 40px; }

/* balances table */
.btable { padding: 4px 14px; }
.btr { display: grid; grid-template-columns: 1fr auto 76px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.btable.dollars .btr { grid-template-columns: 1fr auto; }
.btr:first-child { border-top: 0; }
.btr.bth { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; padding: 8px 0 6px; }
.btr.bth span:not(:first-child) { text-align: right; }
.btnm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.btu { font-weight: 700; font-size: 17px; text-align: right; font-variant-numeric: tabular-nums; }
.btd { text-align: right; font-variant-numeric: tabular-nums; opacity: .7; }
.btable.dollars .btd { opacity: 1; font-weight: 700; font-size: 17px; }
.btu.zero, .btd.zero { opacity: .6; }
.btr.left { opacity: .55; }
/* swipe between tabs */
#app.swl > :not(nav):not(.top) { animation: swl .18s ease-out; }
#app.swr > :not(nav):not(.top) { animation: swr .18s ease-out; }
@keyframes swl { from { transform: translateX(28px); opacity: .4; } }
@keyframes swr { from { transform: translateX(-28px); opacity: .4; } }

/* home: remove a table from "Jump back in" */
.recentrow { display: flex; gap: 6px; align-items: stretch; }
.recentrow > button:first-child { flex: 1; min-width: 0; }
.recent button.rx { flex: 0 0 52px; justify-content: center; padding: 0; font-size: 18px; color: var(--quiet); }
button.danger { background: transparent; border: 1px solid var(--lose); color: #ff8a80; font-weight: 700; }

/* drag to reorder seats */
.grip { font-size: 22px; color: var(--quiet); padding: 8px 10px 8px 2px; cursor: grab; user-select: none; }
.seatrow.drag { grid-template-columns: auto 1fr auto; background: var(--panel); }
.seatrow.dragging { position: relative; }
.dragging { z-index: 20; box-shadow: 0 10px 28px rgba(0,0,0,.5); opacity: .95; transition: none !important; }
.seatrow.dragging { border-radius: 10px; outline: 2px solid var(--accent); }
.dropto { outline: 3px dashed var(--accent) !important; outline-offset: 2px; }
.editbar { align-items: center; gap: 10px; margin: 4px 0; }
.editbar button { flex: 0 0 auto; padding: 10px 14px; }
.circle.editing .seatbtn { animation: wiggle .5s ease-in-out infinite alternate; cursor: grab; touch-action: none; }
.circle.editing .seatbtn.dragging { animation: none; }
.seatbtn.dragging { translate: -50% -50%; }
.seatedit { position: absolute; top: -8px; right: -8px; background: var(--accent); color: var(--on-accent); border-radius: 99px; width: 22px; height: 22px; font-size: 13px; line-height: 22px; text-align: center; }
@keyframes wiggle { from { rotate: -1.2deg; } to { rotate: 1.2deg; } }
.addseat { margin: 6px 0 10px; }

/* ---- brand: Midnight Felt, noir ---- */
/* emerald light falling from above, fading into near-black, with a soft vignette */
body { background: radial-gradient(110% 55% at 50% -8%, color-mix(in srgb, var(--emerald) 70%, transparent), transparent 62%), radial-gradient(140% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.65)), var(--bg); background-attachment: fixed; }
:root[data-theme="light"] body, :root[data-theme="night"] body { background: var(--bg); }
.gold { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { display: inline-flex; align-items: baseline; font-family: var(--font-display); font-size: 46px; font-weight: 400; letter-spacing: .04em; line-height: 1; text-transform: uppercase; }
.logo .mark { height: .7em; width: .78em; margin-right: .02em; align-self: baseline; overflow: visible; }
.logo i { font-style: normal; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand { flex-direction: column; align-items: flex-start; gap: 8px; margin: 26px 0 22px; }
.tagline { font-size: 11px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--quiet); }
h2 { font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--quiet); margin: 24px 0 10px; }
h1 { font-size: 40px; letter-spacing: .01em; }
.suit { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; }
.suit.heart, .suit.diamond { color: #c9443e; }
.suit.spade, .suit.club { color: var(--ink); }
.suitrow { display: flex; gap: 14px; justify-content: center; font-size: 22px; opacity: .5; margin: 8px 0; }
.empty { text-align: center; padding: 34px 0 10px; }
.loading { min-height: 60dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.mark.big { width: 72px; height: 72px; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.94); } }
button.primary { background: var(--gold); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 24px rgba(217,177,92,.18); letter-spacing: .02em; }
:root[data-theme="night"] button.primary { box-shadow: none; }
.card { background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #fff 0%), var(--panel)); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
/* the table: a lit felt with a thin gold rail */
.circle .felt { background: radial-gradient(70% 60% at 50% 32%, var(--felt-1), var(--felt-2) 78%); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--felt-edge)); box-shadow: 0 0 0 6px rgba(0,0,0,.35), 0 0 60px color-mix(in srgb, var(--emerald) 45%, transparent), inset 0 -18px 40px rgba(0,0,0,.45); }
.circle .felt .pot { font-family: var(--font-display); font-size: 46px; font-weight: 400; line-height: .95; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.circle .felt .small { letter-spacing: .2em; text-transform: uppercase; font-size: 10px; font-weight: 700; }
.strip .pot { font-family: var(--font-display); font-weight: 400; font-size: 48px; line-height: .95; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip .lbl, .strip .plbl { letter-spacing: .22em; font-size: 10px; font-weight: 800; }
.top .code { font-size: 30px; letter-spacing: .16em; }
.codein { font-family: var(--font-display); font-weight: 400; letter-spacing: .3em; }
.codein::placeholder { color: color-mix(in srgb, var(--ink) 18%, transparent); }

.game .gi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 22px; }
.game.sel .gi { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.game.sel .gi .suit.spade { color: var(--accent); }
label { font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--quiet); }

/* ---- poster layer: grain, deco rays, falling chips ---- */
/* film grain over everything, very light */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="light"] body::after, :root[data-theme="night"] body::after { display: none; }
.hero { position: relative; margin: 0 -16px 8px; padding: 6px 16px 4px; overflow: hidden; }
/* searchlight rays fanning up from below the wordmark, art deco style */
.rays { position: absolute; inset: -40% -20% 0; pointer-events: none;
  background: repeating-conic-gradient(from 160deg at 30% 105%, color-mix(in srgb, var(--emerald) 55%, transparent) 0 3deg, transparent 3deg 11deg);
  -webkit-mask-image: linear-gradient(to top, transparent, #000 35%, #000 55%, transparent 95%); mask-image: linear-gradient(to top, transparent, #000 35%, #000 55%, transparent 95%); opacity: .55; }
.hero .brand { position: relative; }
.chipfall { position: absolute; top: 0; right: 0; width: 46%; height: 100%; pointer-events: none; }
.chip { display: block; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.chipfall .chip { position: absolute; }
.chipfall .c1 { width: 96px; right: -22px; top: 4px; transform: rotate(-16deg); }
.chipfall .c2 { width: 54px; right: 70px; top: 70px; transform: rotate(22deg) scaleY(.86); opacity: .95; }
.chipfall .c3 { width: 34px; right: 30px; top: 100px; transform: rotate(-38deg) scaleY(.8); }
@media (prefers-reduced-motion: no-preference) {
  .chipfall .chip { animation: drift 7s ease-in-out infinite alternate; }
  .chipfall .c2 { animation-duration: 9s; } .chipfall .c3 { animation-duration: 6s; }
}
@keyframes drift { to { translate: 0 6px; } }
.deco { position: relative; display: flex; align-items: center; gap: 8px; color: var(--accent); margin: 2px 0 6px; }
.deco i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent)); }
.deco i:last-child { background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent)); }
.deco .suit { color: var(--accent); }
.deco .dd { width: 7px; height: 7px; } .deco .ds { width: 12px; height: 12px; }
.empty .chip.solo { width: 84px; margin: 0 auto 14px; transform: rotate(-12deg); }
.empty .deco { max-width: 220px; margin: 0 auto 6px; }

/* feedback sheet */
textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); resize: vertical; }
.fbtext { margin: 10px 0 8px; min-height: 120px; }

/* ---------- Blackjack deal pad ---------- */
.bjrest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0 6px; }
.bjrest .small.muted { flex: 1 1 100%; }
.bjrest button { flex: 1 1 0; min-height: 44px; }
.bjrows { display: grid; gap: 8px; }
.bjrow { background: var(--panel); border-radius: 14px; padding: 10px; border-left: 5px solid var(--seat, var(--line)); }
.bjrow.done { background: color-mix(in srgb, var(--seat, var(--accent)) 7%, var(--panel)); }
.bjtop { display: flex; align-items: center; gap: 8px; }
.bjwho { flex: 1 1 auto; min-width: 0; }
.bjwho b { display: block; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bjstake { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.bjstake .pm { width: 44px; min-height: 44px; padding: 0; font-size: 22px; }
.bjbet, .bjstake .numbox { min-width: 76px; min-height: 44px; font-size: 18px; font-weight: 800; color: var(--accent); }
.bjstake .numbox input { width: 64px; }
.bjouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.bjouts button { min-height: 54px; font-size: 17px; font-weight: 900; border: 0; color: #fff; opacity: .55; letter-spacing: .5px; }
.bjouts button.sel { opacity: 1; outline: 3px solid var(--ink); outline-offset: -3px; }
.bjouts .bjbj { background: linear-gradient(180deg, #e9c46f, #b88a37) !important; color: #120d04; }
.bjouts .bjbj .chipsub { color: #2b1f08; }
.bjmods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.bjmods button { min-height: 38px; }
.bjnet { margin-left: auto; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.strip.bjbank .pot.pos { color: var(--pos); } .strip.bjbank .pot.neg { color: var(--warn, #ff8a80); }
.seatbtn.bank { outline: 3px solid var(--accent); outline-offset: 0; background: color-mix(in srgb, var(--accent) 16%, var(--panel)); }
.banklbl { color: var(--accent); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 11px; }
.felt .bjfelt { font-size: 26px; line-height: 1.1; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 auto; }
.bjdealer { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 58px; margin-top: 6px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.bjdealer b { font-size: 18px; color: var(--accent); }
.bjdealer .small { color: var(--quiet); font-weight: 600; }
.bjmods button { padding: 0 12px; }
button.primary .chipsub { display: block; color: color-mix(in srgb, var(--on-accent) 70%, transparent); font-size: 13px; }

/* ---------- Table styles: the host picks one; every phone at the table sees it (on the default Dark theme). ---------- */
/* Neon: after-hours lounge. Violet felt, a cyan rail that glows, hot pink highlights. */
:root[data-style="neon"] {
  --bg: #06040d; --panel: #110b20; --line: #2a1d48; --ink: #f4eeff; --quiet: #a597c9;
  --accent: #ff4fc1; --on-accent: #1a0414; --gold: linear-gradient(180deg, #b8f6ff, #33e0ff 45%, #ff4fc1); --emerald: #3a1470;
  --felt-1: #34126a; --felt-2: #090317; --felt-edge: #33e0ff;
}
:root[data-style="neon"] .circle .felt { border: 2px solid #33e0ff; box-shadow: 0 0 0 5px rgba(0,0,0,.5), 0 0 18px #33e0ffaa, 0 0 60px #ff4fc155, inset 0 0 30px #33e0ff44; }
:root[data-style="neon"] .circle .felt .pot { filter: drop-shadow(0 0 8px #ff4fc199); }
:root[data-style="neon"] .seatbtn { border-color: #3b2a66; }
:root[data-style="neon"] .seatbtn.turn, :root[data-style="neon"] .seatbtn.bank { outline-color: #ff4fc1; box-shadow: 0 0 16px #ff4fc188; }
:root[data-style="neon"] nav.tabs .tabpill { box-shadow: 0 0 14px #ff4fc199; }

/* Casino Classic: bright green baize, a polished wood rail, brass. */
:root[data-style="classic"] {
  --bg: #0b0806; --panel: #19120c; --line: #33261a; --ink: #f6ecd9; --quiet: #b3a184;
  --accent: #e6c25e; --on-accent: #1b1204; --gold: linear-gradient(180deg, #fff1c0, #e6c25e 50%, #a5771c); --emerald: #14532d;
  --felt-1: #2fa05c; --felt-2: #0c4a27; --felt-edge: #6b3e1e;
}
:root[data-style="classic"] .circle .felt { border: 9px solid #5a3317; box-shadow: 0 0 0 2px #c9974f, 0 0 0 8px rgba(0,0,0,.45), inset 0 0 0 2px #e6c25e66, inset 0 -18px 40px rgba(0,0,0,.35); }
:root[data-style="classic"] .circle .felt .muted, :root[data-style="classic"] .circle .felt .small { color: #d7efd9; }

/* Velvet: oxblood felt, brass rail, candlelight. */
:root[data-style="velvet"] {
  --bg: #090304; --panel: #170a0c; --line: #34171b; --ink: #f6e7dc; --quiet: #b8958d;
  --accent: #d6a45a; --on-accent: #1a0f04; --gold: linear-gradient(180deg, #f8dfae, #d6a45a 52%, #94621f); --emerald: #5c1020;
  --felt-1: #7a1a2c; --felt-2: #1c0508; --felt-edge: #b8894a;
}
:root[data-style="velvet"] .circle .felt .muted, :root[data-style="velvet"] .circle .felt .small { color: #e8c3bd; }

/* Clean Deck: a crisp playing card. White table, red and black, no glow. Uses the light theme underneath. */
:root[data-style="deck"] {
  --bg: #f3efe6; --panel: #ffffff; --line: #e2dccf; --ink: #141210; --quiet: #6e675b;
  --accent: #b3261e; --on-accent: #ffffff; --gold: linear-gradient(180deg, #1d1a17, #141210); --emerald: #ffffff;
  --felt-1: #ffffff; --felt-2: #efe9dc; --felt-edge: #b3261e;
}
:root[data-style="deck"] body { background: var(--bg); }
:root[data-style="deck"] .circle .felt { border: 2px solid #141210; box-shadow: 0 0 0 6px #fff, 0 0 0 8px #b3261e, 0 10px 30px rgba(0,0,0,.12); }
:root[data-style="deck"] .circle .felt .muted, :root[data-style="deck"] .circle .felt .small { color: #b3261e; }
:root[data-style="deck"] .seatbtn { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
:root[data-style="deck"] .seatbtn.turn, :root[data-style="deck"] .seatbtn.bank { background: #fdecea; outline-color: #b3261e; }
:root[data-style="deck"] .strip .pot { background: none; color: #141210; }
:root[data-style="deck"] .tag.keep { background: #fdecea; color: #b3261e; }

/* style picker swatches */
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.stylebtn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; min-height: 0; }
.stylebtn .sw { width: 64px; height: 44px; border-radius: 50%; }
.stylebtn b { font-size: 13px; }
.sw.felt { background: radial-gradient(70% 60% at 50% 32%, #17603f, #061a11 78%); border: 2px solid #d9b15c; }
.sw.neon { background: radial-gradient(#34126a, #090317); border: 2px solid #33e0ff; box-shadow: 0 0 10px #33e0ff, 0 0 18px #ff4fc177; }
.sw.classic { background: radial-gradient(#2fa05c, #0c4a27); border: 5px solid #5a3317; box-shadow: 0 0 0 1px #c9974f; }
.sw.velvet { background: radial-gradient(#7a1a2c, #1c0508); border: 2px solid #b8894a; }
.sw.deck { background: #fff; border: 2px solid #141210; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #b3261e; }
