:root {
  --bg: #0b1220;
  --bg-elev: #121a2b;
  --bg-elev-2: #1a2438;
  --border: #2a3650;
  --text: #e8eefc;
  --muted: #8b9bb8;
  --player: #3b82f6;
  --player-soft: rgba(59, 130, 246, 0.15);
  --banker: #ef4444;
  --banker-soft: rgba(239, 68, 68, 0.15);
  --tie: #22c55e;
  --tie-soft: rgba(34, 197, 94, 0.15);
  --accent: #f59e0b;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; }

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(48px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.brand h1 { margin: 0; font-size: 1.55rem; letter-spacing: 0.02em; }
.tagline { margin: 4px 0 0; color: var(--muted); font-size: 0.85rem; }
.shoe-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 64px;
  text-align: center;
}
.meta-item.balance { border-color: var(--accent); }
.meta-label { display: block; color: var(--muted); font-size: 0.7rem; }
.meta-value {
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.meta-value.pos { color: var(--ok); }
.meta-value.neg { color: var(--danger); }

/* 主概率 */
.probs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.prob-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.prob-card.player { border-top: 3px solid var(--player); }
.prob-card.banker { border-top: 3px solid var(--banker); }
.prob-card.tie { border-top: 3px solid var(--tie); }
.prob-card.side { border-top: 3px solid var(--accent); }
.prob-name {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prob-pct {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.prob-pct.small { font-size: 1.05rem; }
.prob-ev, .side-ev {
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.prob-ev.pos, .side-ev.pos { color: var(--ok); }
.prob-ev.neg, .side-ev.neg { color: var(--danger); }

/* 边注概率 */
.side-probs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.side-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}
.side-name { font-size: 0.68rem; color: var(--muted); }
.side-pct {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.compute-status {
  font-size: 0.75rem;
  color: var(--muted);
  min-height: 1em;
  margin-top: -6px;
}
.compute-status.busy { color: var(--accent); }

.ev-help {
  margin: -4px 0 0;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}
.ev-help strong { color: var(--accent); margin-right: 4px; }
.ev-help.collapsed {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.ev-help.collapsed .linkish { display: none; }
.linkish {
  appearance: none;
  border: 0;
  background: none;
  color: var(--player);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 6px;
}

/* 下注 */
.betting-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  touch-action: pan-y;
}
.chips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.actions-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.actions-primary .btn {
  flex: 1 1 auto;
  min-width: 96px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
.actions-primary .btn.accent {
  flex: 1.4 1 auto;
  min-width: 120px;
}
.chips-label { color: var(--muted); font-size: 0.85rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bet-hint {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--muted);
}
.chip {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,0.4);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.35), transparent 45%),
    var(--chip-bg, #334155);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: grab;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(0,0,0,0.15);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  position: relative;
  z-index: 1;
  padding: 0;
  box-sizing: border-box;
}
.chip:hover { filter: brightness(1.12); }
.chip.active {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  transform: scale(1.08);
}
.chip:active { cursor: grabbing; }
.chip.dragging-source { opacity: 0.35; }
.chip[data-val="10"] { --chip-bg: #64748b; }
.chip[data-val="25"] { --chip-bg: #16a34a; }
.chip[data-val="50"] { --chip-bg: #2563eb; }
.chip[data-val="100"] { --chip-bg: #b45309; }
.chip[data-val="500"] { --chip-bg: #7c3aed; }
.chip[data-val="1000"] { --chip-bg: #be123c; }

/* 跟随指针的幽灵筹码 */
.chip-ghost {
  position: fixed;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px dashed rgba(255,255,255,0.5);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.35), transparent 45%),
    var(--chip-bg, #334155);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 0.95;
  padding: 0;
  box-sizing: border-box;
}

.bet-table { display: flex; flex-direction: column; gap: 8px; }
.bet-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bet-spot {
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 8px 8px;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  position: relative;
}
.bet-spot:hover { background: #24314a; }
.bet-spot.locked {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.bet-spot.has-bet { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bet-spot.drop-target {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.12);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.45), inset 0 0 20px rgba(245, 158, 11, 0.08);
}
.bet-spot.player { border-top: 3px solid var(--player); }
.bet-spot.banker { border-top: 3px solid var(--banker); }
.bet-spot.tie { border-top: 3px solid var(--tie); }
.spot-label { display: block; font-weight: 700; font-size: 1rem; }
.spot-odds { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.spot-stack {
  flex: 1;
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  margin-top: 4px;
}
.stack-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,0.35);
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.3), transparent 45%),
    var(--chip-bg, #334155);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  margin-left: -10px;
  padding: 0;
  box-sizing: border-box;
}
.stack-chip:first-child { margin-left: 0; }
.stack-more {
  margin-left: 4px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.spot-amt {
  display: block;
  margin-top: 4px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.spot-amt.zero { color: var(--muted); font-weight: 500; }

body.is-dragging { cursor: grabbing; }
body.is-dragging .chip { cursor: grabbing; }

.settle-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.settle-banner.win { background: rgba(34, 197, 94, 0.15); color: var(--ok); border-color: #166534; }
.settle-banner.lose { background: rgba(239, 68, 68, 0.12); color: var(--danger); border-color: #7f1d1d; }

/* 手牌 */
.hand-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.hand-side h2 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}
.hand-side:first-child h2 { color: var(--player); }
.hand-side:last-child h2 { color: var(--banker); text-align: right; }
.hand-side:last-child .cards { justify-content: flex-end; }
.hand-side:last-child .total,
.hand-side:last-child .hand-flags { text-align: right; }
.cards {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 56px;
}
.card {
  width: 42px;
  height: 58px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border: 1px solid #cbd5e1;
}
.card.zero { color: #64748b; }
.total {
  margin-top: 8px;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hand-flags {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--accent);
  min-height: 1.1em;
}
.hand-result {
  align-self: center;
  min-width: 72px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--bg-elev-2);
  color: var(--muted);
}
.hand-result.player { background: var(--player-soft); color: var(--player); }
.hand-result.banker { background: var(--banker-soft); color: var(--banker); }
.hand-result.tie { background: var(--tie-soft); color: var(--tie); }

/* 录牌 */
.pad {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.pad-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.rank-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.rank-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, opacity 0.15s;
}
.rank-btn:hover:not(:disabled) { background: #24314a; }
.rank-btn:active:not(:disabled) { transform: scale(0.96); }
.rank-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.rank-btn .count {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
}
.btn.small { min-height: 36px; padding: 6px 10px; font-size: 0.8rem; }
.btn:hover:not(:disabled) { background: #24314a; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
}
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.danger {
  background: transparent;
  border-color: #7f1d1d;
  color: var(--danger);
}

.remaining-panel,
.history-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.remaining-panel h2,
.history-panel h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}
.remaining-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.rem-cell {
  background: var(--bg-elev-2);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}
.rem-cell .v { display: block; font-size: 0.7rem; color: var(--muted); }
.rem-cell .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.rem-cell.low .n { color: var(--danger); }
.rem-cell.empty { opacity: 0.4; }

.bead-road {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
  min-height: 28px;
}
.bead {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
}
.bead.player { background: var(--player); }
.bead.banker { background: var(--banker); }
.bead.tie { background: var(--tie); }

.history-list, .ledger {
  max-height: 160px;
  overflow: auto;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.history-list .row, .ledger .row {
  padding: 4px 0;
  border-bottom: 1px solid rgba(42, 54, 80, 0.5);
}
.ledger .row.win { color: var(--ok); }
.ledger .row.lose { color: var(--danger); }
.ledger { margin-top: 8px; }

/* 连模拟 */
.batch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.batch-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.batch-input {
  width: 72px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.batch-unit { color: var(--muted); font-size: 0.85rem; margin-right: 4px; }
.batch-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.batch-check input { accent-color: var(--accent); }
.btn.accent {
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: transparent;
  color: #fff;
}
.btn.accent:hover:not(:disabled) { filter: brightness(1.08); }
.btn.accent:disabled { opacity: 0.5; cursor: not-allowed; }
.batch-progress {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.batch-progress .bar {
  height: 6px;
  background: var(--bg-elev-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.batch-progress .bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d97706, #f59e0b);
  border-radius: 999px;
  transition: width 0.12s linear;
}
.batch-progress.done { color: var(--ok); }

/* 复盘 */
.review-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.review-head h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.variance-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}
.variance-box .hl { color: var(--accent); font-weight: 700; }
.variance-box .warn { color: var(--danger); font-weight: 600; }
.variance-box .ok { color: var(--ok); font-weight: 600; }
.variance-box ul { margin: 8px 0 0; padding-left: 1.2em; }
.review-table-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.review-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.review-table th,
.review-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(42, 54, 80, 0.5);
  text-align: left;
  white-space: nowrap;
}
.review-table th {
  position: sticky;
  top: 0;
  background: var(--bg-elev-2);
  color: var(--muted);
  font-weight: 600;
  z-index: 1;
}
.review-table tr.result-banker td:nth-child(3) { color: var(--banker); font-weight: 700; }
.review-table tr.result-player td:nth-child(3) { color: var(--player); font-weight: 700; }
.review-table tr.result-tie td:nth-child(3) { color: var(--tie); font-weight: 700; }
.review-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.5;
}
.footer p { margin: 0; }

@media (max-width: 720px) {
  .app {
    gap: 10px;
    padding: max(12px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      max(32px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }
  .header { align-items: stretch; }
  .brand { width: 100%; }
  .shoe-meta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .meta-item {
    min-width: 0;
    border-radius: 8px;
    padding: 7px 6px;
  }
  .meta-value { font-size: 1rem; }
  .probs { grid-template-columns: repeat(2, 1fr); }
  .side-probs { grid-template-columns: repeat(3, 1fr); }
  .prob-card {
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  }
  .prob-pct { font-size: 1.3rem; }
  .side-card {
    min-height: 68px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .ev-help { line-height: 1.65; }
  .betting-panel, .pad, .remaining-panel, .history-panel, .review-panel {
    border-radius: 8px;
    padding: 10px;
  }
  .chips-row { gap: 7px; }
  .actions-primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    border-radius: 8px;
    padding: 8px;
  }
  .actions-primary .btn,
  .actions-primary .btn.accent {
    min-width: 0;
    padding: 11px 8px;
  }
  .bet-hint { line-height: 1.55; }
  .bet-row { gap: 7px; }
  .bet-spot {
    min-width: 0;
    min-height: 100px;
    border-radius: 8px;
  }
  .btn.small { min-height: 44px; }
  .rank-grid { grid-template-columns: repeat(4, 1fr); }
  .rank-btn {
    min-height: 56px;
    border-radius: 8px;
    padding: 10px 0;
  }
  .remaining-grid { grid-template-columns: repeat(5, 1fr); }
  .hand-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    border-radius: 8px;
    padding: 10px;
  }
  .hand-side:first-child { grid-column: 1; grid-row: 1; }
  .hand-side:last-child { grid-column: 2; grid-row: 1; }
  .hand-result {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    min-width: 88px;
  }
  .batch-row { gap: 7px; }
  .batch-check {
    min-height: 44px;
    padding: 6px 2px;
  }
  .batch-check input {
    width: 20px;
    height: 20px;
  }
  #btnBatchSim { flex: 1 1 100%; }
  #btnExport, #btnImport { flex: 1 1 calc(50% - 4px); }
  .variance-box { padding: 10px; }
  .review-table th, .review-table td { padding: 8px; }
}

@media (max-width: 420px) {
  .app {
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
  }
  .brand h1 { font-size: 1.35rem; }
  .tagline { line-height: 1.45; }
  .side-probs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prob-name { font-size: 0.68rem; line-height: 1.35; }
  .prob-pct { font-size: 1.2rem; }
  .chips-label { flex-basis: 100%; }
  .chips { gap: 6px; }
  .chip { width: 48px; height: 48px; }
  .chips-row > .btn { flex: 1 1 calc(50% - 4px); }
  .bet-row { gap: 5px; }
  .bet-spot {
    min-height: 96px;
    padding: 8px 3px 7px;
  }
  .spot-label { font-size: 0.92rem; }
  .spot-odds { font-size: 0.66rem; }
  .card { width: 38px; height: 54px; }
  .rank-grid { gap: 6px; }
  .remaining-grid { gap: 5px; }
  .batch-input { width: 68px; }
}
