:root {
  color-scheme: dark;
  --bg: #0a0e14;
  --surface: #131a24;
  --surface-2: #1c2531;
  --surface-3: #263041;
  --border: #2c3847;
  --text: #f3f6f9;
  --text-dim: #93a3b8;
  --text-faint: #5c6b7f;

  --pot: #8b6cff;
  --pot-dim: #3a2f66;
  --call: #22c55e;
  --call-dim: #133a24;
  --check: #38bdf8;
  --check-dim: #123244;
  --fold: #f0455a;
  --fold-dim: #401820;
  --allin: #f59e0b;
  --highlight: #fbbf24;

  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  color: inherit;
}
button:disabled { cursor: not-allowed; opacity: 0.35; }

input {
  font-family: inherit;
  color: inherit;
}

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
  gap: 10px;
}

/* ---------- Setup screen ---------- */

.setup-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 8px 2px 0;
}
.setup-sub { color: var(--text-dim); margin: 0 2px 8px; font-size: 14px; }

.setup-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.setup-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.hand-history-nav {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.back-link {
  align-self: flex-start;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 2px;
}

.hand-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hand-history-row {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.hh-when { font-size: 12px; color: var(--text-faint); }
.hh-main { font-size: 15px; font-weight: 800; margin-top: 2px; }
.hh-meta { font-size: 13px; color: var(--text-dim); margin-top: 2px; font-variant-numeric: tabular-nums; }

.empty-state {
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  padding: 24px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.field-row { display: flex; gap: 10px; margin-bottom: 10px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.field input[type="text"],
.field input[type="number"],
.player-row input[type="text"],
.player-row input[type="number"] {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 17px;
  color: var(--text);
  width: 100%;
}
.field input::placeholder,
.player-row input::placeholder {
  color: var(--text-faint);
}

.player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.player-row:last-child { border-bottom: none; }
.player-row input[type="text"] { flex: 2; }
.player-row input[type="number"] { flex: 1; }

.dealer-select {
  background: var(--surface-2);
  color: var(--text-faint);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
}
.dealer-select.on {
  background: var(--pot-dim);
  color: var(--highlight);
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pill {
  flex: 1 0 auto;
  min-width: 40px;
  padding: 12px 6px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.pill.active {
  background: var(--pot);
  border-color: var(--pot);
  color: #fff;
}
.pill:disabled { opacity: 0.3; }

.auto-straddle-preview {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.start-btn {
  margin-top: 4px;
  width: 100%;
  padding: 20px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: var(--radius-lg);
  background: var(--call);
  color: #04140b;
}
.start-btn:disabled { background: var(--surface-3); color: var(--text-faint); }

.setup-error {
  color: var(--fold);
  font-size: 14px;
  padding: 0 2px;
  min-height: 18px;
}

.btn-new-game {
  flex: none;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  margin-top: 4px;
  background: var(--fold-dim);
  color: var(--fold);
  border: 1px solid transparent;
}

/* ---------- Table screen ---------- */

.street-bar {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.street-tab {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  background: transparent;
}
.street-tab.active {
  background: var(--pot);
  color: #fff;
}
.street-tab.done { color: var(--text-dim); }

.hand-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -4px;
}
.hand-tag {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.hand-tag-links {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.hand-tag-history-link {
  background: transparent;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: underline;
  padding: 12px 8px;
  min-height: 44px;
}

.pot-block {
  text-align: center;
  padding: 14px 0 6px;
}
.pot-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.pot-value {
  font-size: 62px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--pot);
  font-variant-numeric: tabular-nums;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 6px;
  text-align: center;
}
.stat-tile .stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.stat-tile .stat-value {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.stat-tile.tocall .stat-value { color: var(--fold); }
.stat-tile.maxpot .stat-value { color: var(--pot); }
.stat-tile.betto .stat-value { color: var(--check); }

.stat-tile.tappable {
  width: 100%;
  font-family: inherit;
  min-height: 44px;
}
.stat-tile.tappable:active { background: var(--surface-2); }

.max-pot-explain {
  background: var(--surface);
  border: 1px solid var(--pot-dim);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: -2px;
}
.mpe-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.mpe-row:first-child { border-top: none; }
.mpe-row span:first-child { color: var(--text-dim); }
.mpe-row span:last-child { font-weight: 800; }

/* ---------- Rules / Help ---------- */

.help-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.help-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}
.help-card p:last-child { margin-bottom: 0; }
.help-callout {
  background: var(--pot-dim);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text) !important;
}
.help-math { margin-top: 8px; }
.help-math-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.help-math-row:first-child { border-top: none; }
.help-math-row span:first-child { color: var(--text-dim); }
.help-math-row span:last-child { font-weight: 800; color: var(--text); text-align: right; }

.actor-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 2px solid var(--highlight);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.actor-panel.over {
  border-color: var(--border);
}
.actor-name { font-size: 22px; font-weight: 800; }
.actor-meta { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.actor-position {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--highlight);
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 4px;
}
.your-action-badge {
  background: var(--highlight);
  color: #241a00;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.hand-over-badge {
  background: var(--surface-3);
  color: var(--text-dim);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: right;
}

.player-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}
.player-strip::-webkit-scrollbar { display: none; }

.player-chip {
  flex: 0 0 auto;
  min-width: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  position: relative;
}
.player-chip.acting {
  border-color: var(--highlight);
  box-shadow: 0 0 0 1px var(--highlight);
}
.player-chip.folded { opacity: 0.45; }
.player-chip.allin { border-color: var(--allin); }
.player-chip .pc-name { font-size: 13px; font-weight: 700; white-space: nowrap; }
.player-chip .pc-pos { font-size: 10px; color: var(--text-faint); font-weight: 700; letter-spacing: 0.04em; }
.player-chip .pc-stack { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.player-chip .pc-contrib { font-size: 15px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.player-chip.high .pc-contrib { color: var(--highlight); }
.player-chip .pc-badge {
  position: absolute;
  top: -7px; right: 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
}
.player-chip.folded .pc-badge { background: var(--fold-dim); color: var(--fold); }
.player-chip.allin .pc-badge { background: #402b04; color: var(--allin); }

.spacer { flex: 1; }

.controls-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-primary {
  padding: 26px 8px;
  border-radius: var(--radius-lg);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.03em;
}
.btn-primary .sub { display: block; font-size: 14px; font-weight: 700; opacity: 0.85; margin-top: 3px; }
.btn-pot { background: var(--pot); color: #fff; }
.btn-call { background: var(--call); color: #04140b; }
.btn-check { background: var(--check); color: #041a24; }
.btn-fold { background: var(--fold); color: #2a0006; }

.controls-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.btn-secondary {
  padding: 14px 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.btn-secondary.btn-undo { color: var(--text-dim); }

.history-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.history-toggle {
  width: 100%;
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}
.history-toggle .chev { transition: transform 0.15s ease; }
.history-toggle.open .chev { transform: rotate(180deg); }
.history-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding: 3px 0;
  border-top: 1px solid var(--border);
}
.history-row:first-child { border-top: none; }
.history-row .h-player { color: var(--text-dim); font-weight: 700; }
.history-row .h-action { font-weight: 700; }
.history-row .h-action.fold { color: var(--fold); }
.history-row .h-action.call, .history-row .h-action.check { color: var(--call); }
.history-row .h-action.raise { color: var(--pot); }
.history-street-sep {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  padding-top: 8px;
  font-weight: 800;
}

.footer-actions { display: flex; gap: 10px; }
.btn-next-street, .btn-new-hand {
  flex: 1;
  padding: 16px 8px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.btn-next-street { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn-next-street:not(:disabled) { border-color: var(--pot); color: var(--pot); }
.btn-new-hand { background: var(--fold-dim); color: var(--fold); border: 1px solid transparent; }

/* ---------- Modal / keypad ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.modal-sheet {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  border: 1px solid var(--border);
  border-bottom: none;
}
.modal-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 6px;
}
.modal-amount {
  text-align: center;
  font-size: 46px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--check);
  margin-bottom: 4px;
}
.modal-range {
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.keypad button {
  padding: 16px 0;
  font-size: 22px;
  font-weight: 700;
  border-radius: 12px;
  background: var(--surface-2);
}
.keypad button.wide { font-size: 16px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button {
  flex: 1;
  padding: 16px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
}
.modal-cancel { background: var(--surface-2); color: var(--text-dim); }
.modal-confirm { background: var(--check); color: #041a24; }
.modal-confirm-warn { background: var(--fold); color: #2a0006; }
.modal-sub.warn {
  background: var(--fold-dim);
  color: var(--fold);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ---------- Confirm dialog ---------- */

.confirm-box { text-align: center; }
.confirm-box .modal-title { font-size: 18px; color: var(--text); margin-bottom: 4px; }
.confirm-box .modal-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }

/* ---------- Resolve hand: WIN / REBUY / SPLIT POT ---------- */

.player-actions-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
}
.pap-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.pap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
.pap-row:first-of-type { border-top: none; }
.pap-name { font-size: 14px; font-weight: 700; }
.pap-meta { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.pap-buttons { display: flex; gap: 6px; flex-shrink: 0; }
.pap-win, .pap-rebuy {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.pap-win { background: var(--call-dim); color: var(--call); }
.pap-win:not(:disabled):active { background: var(--call); color: #04140b; }
.pap-rebuy { background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.pap-split-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--pot-dim);
  color: var(--pot);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.spm-layer {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.spm-layer-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.spm-player-row { display: flex; flex-wrap: wrap; gap: 6px; }
.spm-player-btn {
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
}
.spm-player-btn.picked { background: var(--call); color: #04140b; border-color: var(--call); }

/* ---------- Hand result coloring ---------- */

.hh-no-winner { color: var(--text-faint); font-style: italic; }
.hh-net { font-size: 12px; font-variant-numeric: tabular-nums; }

.hr-table { padding: 4px 14px; display: flex; flex-direction: column; gap: 2px; }
.hr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.hr-row:first-child { border-top: none; }
.hr-name { font-weight: 700; color: var(--text-dim); }
.hr-net, .hh-net { font-weight: 800; }
.hr-net.won, .hh-net.won { color: var(--call); font-weight: 800; }
.hr-net.lost, .hh-net.lost { color: var(--fold); }
.hr-net.lost-big, .hh-net.lost-big { color: var(--fold); font-weight: 900; text-shadow: 0 0 1px currentColor; }
.hr-net.even, .hh-net.even { color: var(--text-faint); }

/* ---------- End Session summary ---------- */

.es-card { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.es-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.es-row:first-child { border-top: none; }
.es-name { font-size: 15px; font-weight: 800; flex: 1; }
.es-stack { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--call); }
.es-meta { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--fold-dim);
  color: var(--fold);
  border: 1px solid var(--fold);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  max-width: 90vw;
  z-index: 100;
  text-align: center;
}

.reset-link {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  padding: 4px;
  text-decoration: underline;
}

/* ---------- Live Dealer Mode ---------- */

.dm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dm-street {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.dealer-table {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  background: radial-gradient(ellipse at center, #163524 0%, #0e2419 70%, #0a1a12 100%);
  border: 3px solid #0a1e14;
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px #133026, 0 4px 18px rgba(0, 0, 0, 0.4);
  margin: 4px 0;
}

.dealer-seat {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 64px;
  max-width: 92px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 6px;
}
.dealer-seat.acting {
  border-color: var(--highlight);
  box-shadow: 0 0 0 2px var(--highlight), 0 0 14px rgba(251, 191, 36, 0.5);
  background: var(--surface-2);
}
.dealer-seat.folded { opacity: 0.4; }
.dealer-seat.allin { border-color: var(--allin); }

.ds-name {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-contrib {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ds-contrib.high { color: var(--highlight); }
.dealer-seat.folded .ds-contrib { color: var(--fold); }
.dealer-seat.allin .ds-contrib { color: var(--allin); }

/* The button: unmissable -- gold disc with a hard drop shadow, pinned to
   the corner of whichever seat currently holds it. */
.dealer-button-marker {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--highlight);
  color: #241a00;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 0 2px var(--bg);
}

.dealer-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 62%;
}
.dc-pot-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.dc-pot-value {
  font-size: 34px;
  font-weight: 900;
  color: var(--pot);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.dc-stat-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}
.dc-stat-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.dc-stat-value {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.dc-stat:first-child .dc-stat-value { color: var(--fold); }
.dc-stat:last-child .dc-stat-value { color: var(--pot); }

.dm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.dm-status {
  text-align: center;
  padding: 22px 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.dm-undo {
  width: 100%;
  padding: 20px;
  margin-top: 4px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 2px solid var(--text-faint);
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.dm-undo:not(:disabled):active { border-color: var(--highlight); color: var(--highlight); }

.dm-footer {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}
