/* OmahaSolve — solver-workspace design system
   Layered charcoal + a single gold accent. Cards are the hero of the
   layout (big, readable); the table is a compact arena, not a casino
   oval. All text >= 4.5:1 contrast on its background. */

:root {
  --bg0: #0c0f14;      /* page */
  --bg1: #12161d;      /* panel */
  --bg2: #1a212c;      /* raised */
  --bg3: #222b39;      /* hover/raised-2 */
  --edge: #242d3b;
  --edge2: #334054;
  --text: #e9eef5;
  --muted: #9aa8bb;
  --gold: #f0b445;     /* brand accent — used sparingly */
  --mint: #3ddc97;     /* good / call / profit */
  --coral: #ff7070;    /* fold / blunder / loss */
  --sky: #5aa9ff;      /* info / pending */
  --amber: #e8a33d;    /* warn / bets */
  --card-w: 44px;      /* villain/default cards */
  --card-h: 62px;
  --bigcard-w: 60px;   /* board + hero cards: the decision objects */
  --bigcard-h: 84px;
  --arena-tint: #1b2634;   /* themable table glow */
  --cardback1: #2b3a52;    /* themable card back */
  --cardback2: #1f2c40;
  --fs: 15px;              /* themable base text size */
  --radius-lg: 12px;       /* themable corner rounding */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(900px 500px at 70% -20%, #171e2a 0%, transparent 60%),
    var(--bg0);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--fs);
  display: flex; flex-direction: column;
  overflow: hidden;
}
b, .stat b, .rankscore b { font-variant-numeric: tabular-nums; }

/* ---------------- header ---------------- */
html, body { overflow-x: hidden; }
header {
  display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap;
  padding: 8px 18px;
  background: var(--bg1);
  border-bottom: 1px solid var(--edge);
}
.header-right { margin-left: auto; flex-wrap: wrap; }
.brand { font-size: 19px; font-weight: 800; letter-spacing: .5px; color: var(--gold); }
.brand span { color: var(--text); font-weight: 300; }

.statbar { display: flex; gap: 20px; flex: 1; align-items: center; }
.stat { text-align: center; }
.stat label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); }
.stat b { font-size: 16px; }

.header-right { display: flex; align-items: center; gap: 10px; }
.queue-badge {
  font-size: 11px; padding: 3px 10px; border-radius: 12px;
  background: var(--bg2); color: var(--muted); border: 1px solid var(--edge);
}
.queue-badge.busy { color: var(--sky); border-color: var(--sky); }
.toggle {
  background: var(--bg2); color: var(--text); border: 1px solid var(--edge2);
  padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.toggle:hover { background: var(--bg3); }
.toggle.on { background: #10321f; border-color: var(--mint); color: var(--mint); }
.chk {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px;
  color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none;
}
.chk input { accent-color: var(--gold); cursor: pointer; }
.chk:hover { color: var(--text); }

main { flex: 1; display: flex; min-height: 0; }

/* ---------------- arena (compact — cards over felt) ---------------- */
.table-area { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px 8px; min-width: 0; }
.seat.folded .bet { display: none; }
.table-felt {
  position: relative; flex: 1; margin: 0 auto; width: min(100%, 760px);
  max-height: 470px;
  border-radius: 22px;
  background:
    radial-gradient(60% 55% at 50% 40%, var(--arena-tint) 0%, transparent 75%),
    var(--bg1);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 #ffffff08, 0 14px 40px rgba(0,0,0,.35);
  min-height: 340px;
}

.board {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%);
  display: flex; gap: 8px; min-height: var(--bigcard-h);
}
.board .card { width: var(--bigcard-w); height: var(--bigcard-h); border-radius: 8px; }
.board .card .r { font-size: 26px; }
.board .card .s { font-size: 20px; }

.pot {
  position: absolute; left: 50%; top: 60%; transform: translateX(-50%);
  font-size: 14px; font-weight: 700; color: var(--gold);
  background: #f0b44514; border: 1px solid #f0b44530;
  border-radius: 14px; padding: 3px 16px;
  font-variant-numeric: tabular-nums;
}

/* seats: slim pills; hero's cards are BIG (they're the decision) */
.seat {
  position: absolute; width: 132px; transform: translate(-50%, -50%);
  text-align: center; transition: opacity .3s;
}
.seat.folded { opacity: .28; }
.seat .plate {
  display: inline-block;
  background: var(--bg2);
  border: 1px solid var(--edge2); border-radius: 999px;
  padding: 4px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.seat.to-act .plate { border-color: var(--gold); box-shadow: 0 0 0 3px #f0b44522, 0 4px 14px rgba(0,0,0,.4); }
.seat.hero .plate { border-color: var(--mint); }
.seat .name { font-size: 12.5px; font-weight: 800; display: inline; }
.seat .stack { font-size: 12px; color: var(--muted); display: inline; margin-left: 6px; font-variant-numeric: tabular-nums; }
.seat .cards { display: flex; gap: 4px; justify-content: center; margin-bottom: 5px; }
.seat.hero .cards { gap: 6px; }
.seat.hero .card { width: var(--bigcard-w); height: var(--bigcard-h); border-radius: 8px; }
.seat.hero .card .r { font-size: 26px; }
.seat.hero .card .s { font-size: 20px; }
.seat.hero { width: 300px; }
.seat .bet {
  margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.seat .bet .chip {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd27a, var(--gold));
  margin-right: 4px; vertical-align: middle;
}
.dealer-btn {
  display: inline-block; background: var(--gold); color: #1a1408; font-size: 9px; font-weight: 800;
  border-radius: 50%; width: 16px; height: 16px; line-height: 16px; margin-left: 5px;
  text-align: center;
}

.card {
  width: var(--card-w); height: var(--card-h); border-radius: 6px;
  background: linear-gradient(165deg, #ffffff, #eef1f6);
  color: #14171c; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; box-shadow: 0 3px 10px rgba(0,0,0,.45);
  animation: deal .22s ease-out;
}
.card .r { font-size: 19px; line-height: 1.05; }
.card .s { font-size: 15px; line-height: 1; }
.card.small { width: 22px; height: 32px; border-radius: 4px; }
.card.small .r { font-size: 12px; }
.card.small .s { font-size: 10px; }
.card.back {
  background:
    radial-gradient(circle at 50% 50%, var(--cardback1) 0%, var(--cardback2) 100%);
  border: 1.5px solid #46587466;
}
.suit-s { color: #1c2027; } .suit-h { color: #d63b3b; }
.suit-d { color: #2779d8; } .suit-c { color: #2c8c4b; }
@keyframes deal { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

.banner {
  position: absolute; left: 50%; top: 66%; transform: translateX(-50%);
  font-size: 15px; font-weight: 800; color: var(--text);
  background: var(--bg2); border: 1px solid var(--edge2);
  padding: 6px 20px; border-radius: 999px;
  opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.banner.show { opacity: 1; }

/* ---------------- actions (thumb zone) ---------------- */
.action-bar {
  display: flex; gap: 10px; justify-content: center; padding: 14px 0 6px; min-height: 66px;
}
.abtn {
  min-width: 112px; padding: 13px 20px; border-radius: var(--radius-lg); border: 1px solid transparent;
  font-size: 15px; font-weight: 800; cursor: pointer; color: var(--text);
  background: var(--bg2); position: relative;
  transition: transform .06s, filter .12s;
}
.abtn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.abtn:active { transform: translateY(0); }
.abtn:disabled { opacity: .35; cursor: default; }
.abtn.fold { background: #3a1e22; border-color: #6d3038; color: #ffb3b3; }
.abtn.call, .abtn.check { background: #123526; border-color: #226646; color: #8fecc0; }
.abtn.bet, .abtn.raise { background: #3a2a12; border-color: #7a5a24; color: #ffd489; }
.abtn.next { background: #14273c; border-color: #2c5a8c; color: #a8d2ff; min-width: 170px; }
.abtn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; margin-top: 1px; font-variant-numeric: tabular-nums; }
.abtn kbd {
  position: absolute; top: 4px; right: 6px; font-size: 9px; font-weight: 600;
  background: #ffffff14; border-radius: 4px; padding: 1px 4px; color: #ffffff90;
  font-family: inherit;
}

/* ---------------- side panel ---------------- */
.side {
  width: 440px; border-left: 1px solid var(--edge); background: var(--bg1);
  display: flex; flex-direction: column; min-height: 0;
}
.side-tabs { display: flex; border-bottom: 1px solid var(--edge); }
.tab {
  flex: 1; background: none; border: none; color: var(--muted); padding: 13px 2px;
  font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: .3px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.panel { flex: 1; overflow-y: auto; padding: 14px; }
.panel.hidden { display: none; }
.panel::-webkit-scrollbar { width: 8px; }
.panel::-webkit-scrollbar-thumb { background: var(--edge2); border-radius: 4px; }

.gradecard {
  background: var(--bg2); border: 1px solid var(--edge); border-radius: var(--radius-lg);
  padding: 13px 15px; margin-bottom: 12px; font-size: 14px; line-height: 1.5;
}
.gradecard.fresh { animation: freshpulse 1.6s ease-out; }
@keyframes freshpulse {
  0% { border-color: var(--gold); box-shadow: 0 0 0 3px #f0b44530; }
  100% { border-color: var(--edge); box-shadow: none; }
}
.gradecard .head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 9px;
  padding-bottom: 9px; border-bottom: 1px solid var(--edge);
}
.gradecard .street { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: 1.2px; font-weight: 800; }
.gradecard .chosen-act { font-size: 13px; color: var(--text); font-weight: 700; white-space: nowrap; }
.sev { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 10px; letter-spacing: .3px; }
.sev.ok { background: #0f3320; color: var(--mint); }
.sev.inaccuracy { background: #382e10; color: #ffd35c; }
.sev.mistake { background: #3a2410; color: #ffab5c; }
.sev.blunder { background: #3d1414; color: var(--coral); }
.sev.pending { background: #14293f; color: var(--sky); }
.sev.skipped, .sev.failed { background: #262d38; color: var(--muted); }
.sev.info { background: #14293f; color: var(--sky); }
.sev.off-tree { background: #2e2344; color: #c3aef0; }
.sev.unknown { background: #3b3110; color: #f0b429; }
.spinner {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--sky); border-top-color: transparent;
  animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 5px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.freqrow { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.freqrow .lab { width: 100px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.freqrow .lab.mono, .mono { font-family: "Cascadia Code", Consolas, monospace; }
.freqrow .bar { flex: 1; height: 16px; background: var(--bg0); border-radius: 4px; overflow: hidden; position: relative; }
.freqrow .bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.freqrow .val { min-width: 92px; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.freqrow.chosen .lab { color: var(--text); font-weight: 800; }
.freqrow.herorow { background: #f0b44512; border-radius: 5px; outline: 1px solid #f0b44540; }
.freqrow.herorow .lab { color: var(--gold); font-weight: 800; }
.act-check, .act-call { background: #2c9d6b; }
.act-fold { background: #5d6b7d; }
.act-bet0 { background: #d19a33; } .act-bet1 { background: #dd7328; } .act-bet2 { background: #d24848; }

.evloss { font-size: 13px; margin-top: 7px; }
.evloss b.pos { color: var(--coral); }
.evloss b.zero { color: var(--mint); }

.rangebtn { margin-top: 8px; font-size: 12px; background: none; border: 1px solid var(--edge2);
  color: var(--sky); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.rangeview { margin-top: 8px; max-height: 300px; overflow-y: auto; }
.rangeview .freqrow .lab { width: 76px; font-family: Consolas, monospace; font-size: 11.5px; }

.note { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.empty { color: var(--muted); text-align: center; margin-top: 44px; font-size: 14px; line-height: 1.6; }

.coachtext {
  margin: 9px 0; padding: 10px 12px; font-size: 13.5px; line-height: 1.55;
  color: #d7e6dd; background: #12241b; border-left: 3px solid var(--mint);
  border-radius: 6px;
}
.gradecard .coachtext { color: #dbe4f0; background: #16202e; border-left-color: var(--sky); }
details.coachtext summary {
  cursor: pointer; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--sky); font-weight: 800; user-select: none;
}
details.coachtext[open] summary { margin-bottom: 5px; }

/* ---------------- small components ---------------- */
.minibtn {
  font-size: 12px; background: none; border: 1px solid var(--edge2);
  color: var(--sky); border-radius: 6px; padding: 4px 11px; cursor: pointer;
}
.minibtn:hover { border-color: var(--sky); background: #14293f; }
.btnrow { display: flex; gap: 8px; margin-top: 8px; }
.mixchip {
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 9px;
  background: #2e2344; color: #c3aef0; letter-spacing: .4px;
}
.cardchip {
  display: inline-block; background: linear-gradient(165deg, #ffffff, #eef1f6);
  border-radius: 4px; padding: 1px 5px; margin: 0 1px;
  font-size: 12.5px; font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.cardchip.pick { cursor: pointer; padding: 4px 7px; font-size: 13px; }
.cardchip.pick:hover { outline: 2px solid var(--gold); }
.gradecard .combo .cardchip { font-size: 12px; }
.note.bad { color: var(--coral); }

/* toast (session milestones / feedback) */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--bg3); border: 1px solid var(--gold); color: var(--text);
  border-radius: 12px; padding: 11px 22px; font-size: 14px; font-weight: 700;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- range columns ---------------- */
.rangecols { display: flex; gap: 10px; margin-top: 8px; }
.rangecol { flex: 1; min-width: 0; }
.rangecol-title {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800;
  color: var(--muted); margin-bottom: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--edge);
}
.rangecol .freqrow .lab { width: 78px; font-size: 11.5px; }
.rangecol .freqrow .val { min-width: 44px; font-size: 11px; }
.rangeview2 { margin-top: 8px; max-height: 340px; overflow-y: auto; }

/* ---------------- modal / replayer ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4,6,10,.78); z-index: 40;
  display: flex; align-items: center; justify-content: center;
}
.modal-backdrop.hidden { display: none; }
.modal {
  width: min(580px, 94vw); max-height: 86vh; display: flex; flex-direction: column;
  background: var(--bg1); border: 1px solid var(--edge2); border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.modal-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--edge); font-size: 15px;
}
.modal-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.modal-foot {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-top: 1px solid var(--edge);
}
.xbtn { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.xbtn:hover { color: var(--text); }

.rp-toprow { display: flex; gap: 18px; margin-bottom: 10px; flex-wrap: wrap; }
.rp-block label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin-bottom: 3px; }
.rp-cards .cardchip { font-size: 14px; padding: 3px 6px; }
.rp-timeline { border-top: 1px solid var(--edge); padding-top: 6px; }
.rp-street {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 800;
  color: var(--gold); margin: 10px 0 4px;
}
.rp-street .cardchip { font-size: 12px; margin-left: 4px; }
.rp-act {
  display: flex; align-items: center; gap: 10px; padding: 5px 9px; border-radius: 7px;
  font-size: 13.5px; margin: 1px 0;
}
.rp-act.done { opacity: .85; }
.rp-act.future { opacity: .3; }
.rp-act.current { background: #14293f; outline: 1px solid var(--sky); opacity: 1; }
.rp-act.hero .rp-pos { color: var(--mint); }
.rp-pos { width: 44px; font-weight: 800; font-size: 12.5px; }
.rp-kind { font-weight: 600; }
.rp-kind.fold { color: var(--muted); }
.rp-kind.bet, .rp-kind.raise, .rp-kind.allin { color: var(--amber); }
.rp-kind.call, .rp-kind.check { color: var(--mint); }
.rp-kind.wins { color: var(--gold); }
.rp-result {
  margin-top: 10px; padding: 9px 12px; border-radius: 9px; text-align: center;
  background: #14293f; font-weight: 700; font-size: 14px;
}

/* ---------------- analyse tab ---------------- */
.anform {
  background: var(--bg2); border: 1px solid var(--edge); border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
}
.anrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.anrow label { width: 92px; font-size: 12.5px; color: var(--muted); flex-shrink: 0; }
.anrow select { flex: 1; }
select, .anrow select {
  background: var(--bg1); color: var(--text); border: 1px solid var(--edge2);
  border-radius: 8px; padding: 7px 10px; font-size: 13px;
}
.tinput {
  flex: 1; min-width: 0; background: var(--bg0); color: var(--text);
  border: 1px solid var(--edge2); border-radius: 8px; padding: 8px 11px;
  font-size: 13.5px; font-family: Consolas, monospace;
}
.tinput:focus { outline: none; border-color: var(--gold); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; align-items: center; }
.crumb {
  font-size: 11.5px; padding: 3px 9px; border-radius: 10px; cursor: pointer;
  background: var(--bg3); border: 1px solid var(--edge2); color: var(--text);
}
.crumb:hover { border-color: var(--gold); }
.crumb.root { color: var(--muted); }
.crumb.card-crumb { background: none; border: none; padding: 0 2px; cursor: default; }
.anact { cursor: pointer; padding: 4px 7px; border-radius: 6px; }
.anact:hover { background: #14293f; }
.anact .lab { color: var(--text); font-weight: 600; }
.anact-end { padding: 4px 7px; opacity: .55; }
.cardgrid { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.combodetails { margin-top: 10px; }
.combodetails summary { cursor: pointer; user-select: none; }

/* ---------------- ranks tab ---------------- */
.streakbanner {
  background: linear-gradient(135deg, #241a08, #33240d); border: 1px solid #f0b44540;
  border-radius: 12px; padding: 11px 15px; font-size: 14px; margin-bottom: 12px;
  color: #ffe1a1; line-height: 1.5;
}
.rankhead {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800;
  color: var(--muted); margin: 14px 0 6px;
}
.rankrow {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg2); border: 1px solid var(--edge); border-radius: 12px;
  padding: 10px 13px; margin-bottom: 6px;
}
.rankrow.you { border-color: var(--gold); box-shadow: 0 0 12px #f0b44526; }
.rankrow.dim { opacity: .6; }
.rankrow .medal { font-size: 18px; width: 30px; text-align: center; }
.rankrow .ranknum { width: 30px; text-align: center; font-weight: 800; color: var(--muted); font-size: 13px; }
.rankmain { flex: 1; display: flex; flex-direction: column; }
.rankmain b { font-size: 14px; }
.rankscore { text-align: right; display: flex; flex-direction: column; }
.rankscore b { font-size: 15.5px; color: var(--mint); }

/* ---------------- mobile (PWA) ---------------- */
@media (max-width: 900px) {
  body { font-size: 14px; overflow: auto; }
  header { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .statbar { gap: 12px; order: 3; width: 100%; overflow-x: auto; }
  .header-right { flex-wrap: wrap; gap: 6px; }
  .header-right select, .header-right .toggle { font-size: 12px; padding: 6px 8px; }
  main { flex-direction: column; overflow-y: auto; }
  .table-area { padding: 8px; min-height: 58vh; }
  .table-felt { width: 100%; max-height: none; }
  :root { --card-w: 30px; --card-h: 42px; --bigcard-w: 52px; --bigcard-h: 72px; }
  .board .card .r, .seat.hero .card .r { font-size: 22px; }
  .board .card .s, .seat.hero .card .s { font-size: 16px; }
  .card.small { width: 20px; height: 28px; }
  .seat { width: 100px; }
  .seat.hero { width: 260px; }
  .seat .plate { padding: 3px 10px; }
  .seat .name { font-size: 11.5px; }
  .action-bar { padding: 10px 0 4px; flex-wrap: wrap; gap: 8px; }
  .abtn { min-width: 96px; padding: 14px 14px; font-size: 15px; flex: 1; max-width: 160px; }
  .abtn kbd { display: none; }
  .side { width: 100%; border-left: none; border-top: 1px solid var(--edge); min-height: 46vh; }
  .rangecols { flex-direction: column; }
}
@media (max-width: 520px) {
  .seat { width: 88px; }
  .seat.hero { width: 230px; }
  :root { --bigcard-w: 46px; --bigcard-h: 64px; }
  .brand { font-size: 16px; }
}

/* ---------------- live hand readout + theme toolkit ---------------- */
.handnow {
  margin-top: 6px; display: inline-block;
  font-size: 12.5px; font-weight: 700; color: var(--mint);
  background: #3ddc9714; border: 1px solid #3ddc9733;
  border-radius: 999px; padding: 3px 12px;
}
.themegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.swatch {
  border: 2px solid var(--edge2); border-radius: 10px; padding: 9px 10px;
  cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
}
.swatch:hover { border-color: var(--muted); }
.swatch.active { border-color: var(--gold); }
.swatch .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.themerow { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.themerow label { flex: 1; font-size: 12.5px; color: var(--muted); }
.themerow input[type="color"] {
  width: 42px; height: 26px; border: 1px solid var(--edge2); border-radius: 6px;
  background: none; cursor: pointer; padding: 1px;
}
.themerow input[type="range"] { width: 140px; accent-color: var(--gold); }
.themerow .rangeval { width: 40px; text-align: right; font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }

/* villain action visibility */
.acttag {
  display: inline-block; margin-top: 5px;
  font-size: 13px; font-weight: 800; letter-spacing: .2px;
  padding: 3px 12px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.acttag.aggr { background: #3a2a12; border: 1px solid #7a5a24; color: #ffd489; }
.acttag.pass { background: #123526; border: 1px solid #226646; color: #8fecc0; }
.acttag.quit { background: #2a2f38; border: 1px solid #3a4454; color: #9aa8bb; }
.seat .bet { font-size: 14px; }
.seat .bet .chip { width: 12px; height: 12px; }
