/* ============================================================
   Lustre — Games: play pages layout & game table UI
   Requires tokens.css and components.css
   ============================================================ */

/* ── Coin balance in header ──────────────────────────────── */
.coin-balance-wrap {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--primary);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 110px;
}

.coin-balance-wrap svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px var(--primary-dim));
}

.coin-balance-wrap svg circle {
  fill: oklch(0.78 0.13 82 / 0.12);
  stroke-width: 1.8px;
}

.coin-balance-wrap svg text {
  font-weight: 800;
  font-size: 10px;
}

.coin-balance-wrap [data-coin-balance] {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ── Game table wrapper ──────────────────────────────────── */
.game-table {
  max-width: 900px;
  margin-inline: auto;
  padding-block: var(--sp-4);
}

/* ── Balance + bet strip ─────────────────────────────────── */
.game-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
}

.game-hud__stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 80px;
}

.game-hud__label {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.game-hud__value {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--primary);
}

.game-hud__bet-ctrl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bet-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.bet-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--surface-2);
}
.bet-btn:disabled { opacity: 0.35; cursor: default; }

/* ── Chip betting ─────────────────────────────────────────── */
.chip-stack {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}

.chip {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px dashed var(--primary);
  background: var(--surface-2);
  color: var(--primary);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: var(--t-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
}
.chip::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.chip:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}
.chip.is-active {
  background: var(--accent);
  color: oklch(0.98 0.008 85);
  border-color: var(--accent-hover);
  box-shadow: var(--glow-accent);
}

/* ── Claim free coins ────────────────────────────────────── */
.claim-coins-wrap {
  text-align: center;
  margin-bottom: var(--sp-2);
}

/* ── Action bar ──────────────────────────────────────────── */
.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-bottom: var(--sp-2);
  justify-content: center;
}
.game-actions .btn { flex: 1; min-width: 100px; max-width: 180px; }

/* ── Message area ────────────────────────────────────────── */
.game-msg {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  text-align: center;
  padding: 0.5rem;
  margin-bottom: var(--sp-2);
  transition: opacity 0.3s;
}
.game-msg.is-win  { color: var(--accent); }
.game-msg.is-lose { color: var(--muted); }

/* ── Card display ────────────────────────────────────────── */
.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--sp-1);
  min-height: 90px;
}

.card-label {
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.35rem;
  text-align: center;
}

.card {
  width: 60px;
  height: 88px;
  background: #fff;
  border-radius: var(--r-sm);
  border: 1px solid oklch(0.85 0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #222;
  flex-direction: column;
  gap: 0.1rem;
  position: relative;
  user-select: none;
  cursor: default;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  box-shadow: 0 2px 6px oklch(0 0 0 / 0.3);
}
.card.is-red { color: #c62828; }
.card.is-back {
  background: oklch(0.22 0.06 250);
  border-color: oklch(0.35 0.06 250);
  color: oklch(0.45 0.08 250);
  font-size: 1.5rem;
}
.card.is-held {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 4px 12px oklch(0 0 0 / 0.4);
  transform: translateY(-6px);
}
.card.deal-in {
  animation: cardDealIn 0.4s var(--ease-out) forwards;
}
@keyframes cardDealIn {
  from { opacity: 0; transform: translateY(-30px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card__rank { line-height: 1; font-size: 1rem; }
.card__suit { line-height: 1; font-size: 0.8rem; }

/* ── Blackjack ───────────────────────────────────────────── */
.blackjack-table {
  background: oklch(0.18 0.04 150);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}
.blackjack-table::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: radial-gradient(ellipse 80% 60% at 50% 30%, oklch(0.22 0.05 150), oklch(0.18 0.04 150));
  pointer-events: none;
}
.blackjack-table > * {
  position: relative;
  z-index: 1;
}

.bj-area {
  margin-bottom: var(--sp-3);
}
.bj-area__score {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: var(--sp-1);
}

.bj-actions {
  display: flex;
  gap: var(--sp-1);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Slots ───────────────────────────────────────────────── */
.slots-machine {
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  max-width: 600px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
}
.slots-machine::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary), var(--accent), var(--primary), var(--primary-deep));
}

.slots-reels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: var(--sp-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.75rem;
  overflow: hidden;
}

.reel-cell {
  aspect-ratio: 1 / 1.2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  overflow: hidden;
}

.reel-cell .symbol {
  width: 70%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.reel-cell.is-win {
  border-color: var(--accent);
  box-shadow: 0 0 16px oklch(0.69 0.16 38 / 0.4);
  animation: winPulse 0.6s ease-in-out 3;
}

@keyframes winPulse {
  0%, 100% { box-shadow: 0 0 16px oklch(0.69 0.16 38 / 0.4); }
  50%      { box-shadow: 0 0 32px oklch(0.69 0.16 38 / 0.7); }
}

.reel-cell.is-spinning .symbol {
  transition: opacity 0.05s ease-in-out;
}

.reel-cell.is-stopped .symbol {
  animation: reelStop 0.35s ease-out;
}

@keyframes reelStop {
  0%   { transform: scale(1.1); opacity: 0.7; }
  50%  { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.slots-paytable {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.5rem;
  font-size: var(--t-xs);
  margin-bottom: var(--sp-2);
}

.slots-paytable__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
}
.slots-paytable__item .sym { font-size: 1rem; }
.slots-paytable__item .mult { color: var(--primary); font-weight: 700; margin-left: auto; }

.slots-lines {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.slots-line-btn {
  padding: 0.25rem 0.75rem;
  font-size: var(--t-xs);
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.slots-line-btn:hover { border-color: var(--primary); color: var(--primary); }
.slots-line-btn.is-active { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* ── Roulette ──────────────────────────────────────────────── */
.roulette-wrap {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--sp-2);
}

/* Wheel */
.roulette-wheel-display {
  width: 220px;
  height: 220px;
  margin: 0 auto var(--sp-2);
  position: relative;
}

.roulette-wheel-display svg {
  width: 100%;
  height: 100%;
  transition: transform 4s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.roulette-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: top 0.5s ease-out, left 0.5s ease-out;
}

/* Table */
.roulette-table {
  display: grid;
  gap: 2px;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--sp-2);
  background: var(--bg);
  padding: 1rem;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
}

.roulette-table__row {
  display: grid;
  grid-template-columns: 40px repeat(12, 1fr) 50px;
  gap: 2px;
}

.roulette-table__row-outer {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}

.roulette-table__row-outer:first-of-type {
  grid-template-columns: repeat(3, 1fr);
}

.roulette-table__row-outer:last-of-type {
  grid-template-columns: repeat(6, 1fr);
}

.roulette-bet-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-xs);
  font-weight: 700;
  border: 1px solid oklch(0.4 0.01 300);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--dur-fast);
  position: relative;
  min-height: 40px;
  padding: 0.25rem;
}

.roulette-bet-cell.is-red {
  background: oklch(0.4 0.15 25);
  color: #fff;
  border-color: oklch(0.5 0.15 25);
}
.roulette-bet-cell.is-black {
  background: oklch(0.2 0.01 300);
  color: var(--ink);
  border-color: oklch(0.35 0.01 300);
}
.roulette-bet-cell.is-zero {
  background: oklch(0.35 0.12 145);
  color: #fff;
  border-color: oklch(0.45 0.12 145);
}
.roulette-bet-cell.is-column {
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  border-color: var(--line);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.05em;
}

.roulette-bet-cell:hover {
  box-shadow: 0 0 8px var(--primary-dim);
  transform: scale(1.05);
  z-index: 2;
}
.roulette-bet-cell.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 0 12px oklch(0.69 0.16 38 / 0.4);
  z-index: 2;
}

.roulette-bet-cell .chip-on-cell {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid var(--accent-hover);
  z-index: 3;
}

.roulette-outer-bet {
  padding: 0.5rem;
  font-size: var(--t-xs);
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.roulette-outer-bet:hover { border-color: var(--primary); color: var(--primary); }
.roulette-outer-bet.is-active { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }
.roulette-outer-bet.is-red { background: oklch(0.4 0.15 25); color: #fff; border-color: oklch(0.5 0.15 25); }
.roulette-outer-bet.is-black { background: oklch(0.2 0.01 300); color: var(--ink); border-color: oklch(0.35 0.01 300); }

.roulette-history {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}

.roulette-history__ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid var(--line);
}
.roulette-history__ball.is-red {
  background: oklch(0.4 0.15 25);
  color: #fff;
  border-color: oklch(0.5 0.15 25);
}
.roulette-history__ball.is-black {
  background: oklch(0.2 0.01 300);
  color: var(--ink);
}
.roulette-history__ball.is-zero {
  background: oklch(0.35 0.12 145);
  color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
  .roulette-table__row {
    grid-template-columns: 32px repeat(12, 1fr) 40px;
  }
  .roulette-bet-cell {
    font-size: 10px;
    min-height: 32px;
  }
  .roulette-bet-cell.is-column {
    font-size: 8px;
  }
  .roulette-wheel-display {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 480px) {
  .roulette-table__row {
    grid-template-columns: 28px repeat(12, 1fr) 36px;
  }
  .roulette-bet-cell {
    font-size: 9px;
    min-height: 28px;
  }
  .roulette-bet-cell.is-column {
    font-size: 7px;
  }
}

/* ── Video Poker ─────────────────────────────────────────── */
.videopoker-terminal {
  max-width: 600px;
  margin-inline: auto;
  background: var(--surface-2);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  position: relative;
}

.videopoker-paytable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-xs);
  margin-bottom: var(--sp-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.videopoker-paytable th,
.videopoker-paytable td {
  padding: 0.35rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.videopoker-paytable th {
  background: var(--surface);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-size: 10px;
}

.videopoker-paytable td {
  color: var(--muted);
  font-weight: 600;
}

.videopoker-paytable tr.is-hit td {
  color: var(--accent);
  background: oklch(0.69 0.16 38 / 0.08);
}

.videopoker-paytable tr.is-hit td:first-child {
  font-weight: 700;
  color: var(--accent);
}

.videopoker-hold-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.hold-btn {
  width: 60px;
  padding: 0.3rem 0;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.hold-btn:hover { border-color: var(--primary); color: var(--primary); }
.hold-btn.is-held { border-color: var(--accent); color: var(--accent); background: var(--surface-2); box-shadow: 0 0 8px oklch(0.69 0.16 38 / 0.3); }
.hold-btn:disabled { opacity: 0.35; cursor: default; }

/* Card flip */
.card.flip {
  transform: rotateY(90deg);
  transition: transform 0.15s;
}

/* ── Baccarat ──────────────────────────────────────────────── */
.baccarat-table {
  max-width: 720px;
  margin-inline: auto;
  background: oklch(0.18 0.04 150);
  border: 2px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  position: relative;
}

.baccarat-table::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: radial-gradient(ellipse 80% 60% at 50% 30%, oklch(0.22 0.05 150), oklch(0.18 0.04 150));
  pointer-events: none;
}
.baccarat-table > * { position: relative; z-index: 1; }

.baccarat-bets {
  display: flex;
  gap: var(--sp-1);
  justify-content: center;
  margin-bottom: var(--sp-2);
}

.baccarat-bet-btn {
  flex: 1;
  max-width: 160px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: var(--t-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast);
  position: relative;
}
.baccarat-bet-btn:hover { border-color: var(--primary); color: var(--primary); }
.baccarat-bet-btn.is-active { border-color: var(--accent); color: var(--accent); background: var(--surface-2); box-shadow: var(--glow-accent); }
.baccarat-bet-btn:disabled { opacity: 0.35; cursor: default; }

.baccarat-bet-btn .bet-chip {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-hover);
}

.baccarat-hands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.baccarat-hand__label {
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--sp-1);
}

.baccarat-hand__score {
  text-align: center;
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--t-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-1);
}

.baccarat-roadmap {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--sp-2);
  max-height: 60px;
  overflow: hidden;
}

.baccarat-roadmap__cell {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.baccarat-roadmap__cell.is-player { background: oklch(0.35 0.1 220); color: oklch(0.95 0.01 220); }
.baccarat-roadmap__cell.is-banker { background: oklch(0.35 0.14 30); color: oklch(0.95 0.01 30); }
.baccarat-roadmap__cell.is-tie { background: oklch(0.35 0.12 145); color: oklch(0.95 0.01 145); }

/* ── Texas Hold'em ───────────────────────────────────────── */
.holdem-table {
  max-width: 800px;
  margin-inline: auto;
  background: oklch(0.18 0.04 150);
  border: 2px solid var(--line-strong);
  border-radius: 50% / 30%;
  padding: var(--sp-4) var(--sp-3);
  position: relative;
  min-height: 500px;
}

.holdem-table::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50% / 30%;
  border: 1px solid var(--line);
  pointer-events: none;
}

.holdem-table > * { position: relative; z-index: 1; }

.holdem-pot-area {
  text-align: center;
  margin-bottom: var(--sp-2);
  margin-top: var(--sp-2);
}

.holdem-pot {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: var(--t-xl);
  color: var(--primary);
  font-weight: 700;
}

.holdem-pot small {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.holdem-community {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--sp-2);
  min-height: 90px;
}

.holdem-hand-area {
  margin-bottom: var(--sp-2);
}

.holdem-hand-area__label {
  text-align: center;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--sp-1);
}

.holdem-actions {
  display: flex;
  gap: var(--sp-1);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-2);
}

.holdem-actions .btn { min-width: 90px; }

.raise-row {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-1);
  justify-content: center;
}

.raise-row label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.raise-row input[type="range"] {
  flex: 1;
  max-width: 200px;
  accent-color: var(--accent);
}

.raise-row output {
  font-weight: 700;
  color: var(--primary);
  min-width: 4ch;
  text-align: right;
}

/* ── Back link ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: var(--sp-2);
  transition: color var(--dur-fast);
}
.back-link:hover { color: var(--primary); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .card { width: 48px; height: 72px; font-size: 0.9rem; }
  .card__rank { font-size: 0.85rem; }
  .card__suit { font-size: 0.65rem; }
  .chip { width: 40px; height: 40px; font-size: 10px; }
  .reel-cell { font-size: 1.5rem; }
  .slots-reels { gap: 0.3rem; padding: 0.5rem; }
  .roulette-bets { grid-template-columns: repeat(7, 1fr); }
  .roulette-bet-cell { font-size: 9px; min-height: 28px; }
  .roulette-outer-bets { grid-template-columns: repeat(3, 1fr); }
  .baccarat-hands { grid-template-columns: 1fr; gap: var(--sp-2); }
  .holdem-table { border-radius: var(--r-lg); padding: var(--sp-2); min-height: auto; }
  .holdem-table::before { border-radius: var(--r-lg); inset: 4px; }
  .game-actions .btn { max-width: 140px; }
}

@media (max-width: 480px) {
  .game-table { padding-inline: var(--sp-1); }
  .blackjack-table { padding: var(--sp-2); }
  .slots-machine { padding: var(--sp-2); }
  .card { width: 40px; height: 60px; }
  .card__rank { font-size: 0.75rem; }
  .card__suit { font-size: 0.55rem; }
  .chip { width: 36px; height: 36px; font-size: 9px; }
  .reel-cell { font-size: 1.25rem; }
  .roulette-wheel-display { width: 120px; height: 120px; }
  .baccarat-table { padding: var(--sp-2); }
}
