/* ===== Design tokens ===== */
:root {
  --felt-1: #0b4d3a;
  --felt-2: #0a3d2e;
  --felt-3: #073023;
  --felt-edge: #3a1f12;
  --wood: #5c3a21;
  --wood-dark: #3e2716;
  --gold: #d4af5a;
  --gold-bright: #f1cd7c;
  --cream: #f4ead9;
  --ink: #0d1410;
  --red: #c0392b;
  --red-bright: #e74c3c;
  --green-win: #35c26b;
  --amber-push: #e0a83c;
  --panel-bg: rgba(8, 20, 15, 0.72);
  --panel-border: rgba(212, 175, 90, 0.35);
  --shadow-deep: 0 20px 50px rgba(0, 0, 0, 0.55);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--felt-3);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button { font-family: inherit; cursor: pointer; }

/* ===== Room / table backdrop ===== */
.table-room {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 140% 90% at 50% -10%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(ellipse 120% 80% at 50% 45%, var(--felt-1) 0%, var(--felt-2) 55%, var(--felt-3) 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  box-shadow: inset 0 0 18vw rgba(0,0,0,0.65);
}

/* subtle felt texture */
.felt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}

/* ===== Topbar ===== */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.brand-icon {
  color: var(--gold-bright);
  font-size: 1.5rem;
  line-height: 1;
}
.accent { color: var(--gold-bright); }

.topbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.players-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  backdrop-filter: blur(6px);
}
.players-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 6px var(--red-bright);
  flex-shrink: 0;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.players-dot.online { background: var(--green-win); box-shadow: 0 0 6px var(--green-win); }
.players-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }

.bankroll-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease;
}
.bankroll-pill.bump { animation: bump 0.35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.12)} 100%{transform:scale(1)} }

.chip-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 55%, #9c7a2f 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15) inset;
  flex-shrink: 0;
}
.currency { font-size: 0.72rem; font-weight: 500; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.06em; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.icon-btn:hover { background: rgba(212,175,90,0.18); transform: scale(1.06); }

.back-link { opacity: 0.85; }

/* ===== Menu inter-jeux (identique sur les 4 pages du site) ===== */
.game-menu { position: relative; }
.game-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  background: linear-gradient(160deg, #12261d, #0b1a13);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: var(--shadow-deep);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 150;
  transform-origin: top right;
  animation: gameMenuIn 0.16s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes gameMenuIn {
  from { opacity: 0; transform: scale(0.94) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.game-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
a.game-menu-item:hover { background: rgba(212,175,90,0.14); }
.game-menu-item .gm-icon { font-size: 1.15rem; width: 22px; text-align: center; flex-shrink: 0; }
.game-menu-item.current { color: var(--gold-bright); background: rgba(212,175,90,0.08); cursor: default; }
.game-menu-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 6px; }

/* ===== Felt / table surface ===== */
.felt {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 4px;
  overflow: hidden;
  min-height: 0;
}

.felt-arc-text {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  letter-spacing: 0.15em;
  color: rgba(212, 175, 90, 0.5);
  text-align: center;
  white-space: nowrap;
}
.felt-sub-text {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(244, 234, 217, 0.35);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ===== Card shoe (sabot) ===== */
.shoe-rack {
  position: absolute;
  top: 48px;
  right: 14px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.5s ease both;
}

.shoe-box {
  width: 46px;
  height: 62px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(160deg, var(--wood) 0%, var(--wood-dark) 100%);
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}

.shoe-box::before {
  /* slot opening where cards are drawn from */
  content: "";
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.55);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
  z-index: 3;
}

.shoe-stack {
  width: 34px;
  height: 100%;
  max-height: 46px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to top,
    #7a1f2b 0px, #7a1f2b 2px,
    #8f2534 2px, #8f2534 4px
  );
  border: 1.5px solid var(--cream);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: height 0.35s cubic-bezier(.3,.7,.3,1);
  transform-origin: bottom;
}

.shoe-slot-glow {
  position: absolute;
  top: 0; left: 0; right: 0; height: 10px;
  background: linear-gradient(180deg, rgba(212,175,90,0.25), transparent);
  pointer-events: none;
}

.shoe-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 3px 8px;
}
.shoe-count {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.shoe-count.low { color: var(--red-bright); }
.shoe-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
}
.shoe-decks {
  font-size: 0.6rem;
  opacity: 0.55;
  margin-top: 1px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 118px;
  justify-content: center;
  width: 100%;
}

.dealer-seat { padding-top: 46px; }
.player-seat { padding-bottom: 4px; }

.seat-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244,234,217,0.75);
}

.dealer-name { display: flex; align-items: center; gap: 5px; }

.dealer-callout {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dealer-callout span {
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--panel-border);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-style: italic;
  padding: 3px 12px;
  border-radius: 999px;
  animation: calloutIn 0.3s ease both;
}
@keyframes calloutIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hand-score {
  min-width: 30px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--panel-border);
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.8rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.hand-score.bust { color: var(--red-bright); border-color: var(--red-bright); }
.hand-score.blackjack { color: var(--green-win); border-color: var(--green-win); }
.hand-score:empty { display: none; }

.cards {
  display: flex;
  gap: -20px;
  min-height: 108px;
  align-items: flex-start;
  justify-content: center;
}

/* ===== Playing cards ===== */
.card-slot {
  width: 74px;
  height: 104px;
  margin-left: -24px;
  perspective: 800px;
  position: relative;
  animation: dealIn 0.38s cubic-bezier(.2,.9,.3,1.2) both;
}
.card-slot:first-child { margin-left: 0; }

@keyframes dealIn {
  from { opacity: 0; transform: translateY(-60px) translateX(40px) rotate(12deg) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) translateX(0) rotate(0) scale(1); }
}

.card-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(.4,.2,.2,1);
}
.card-slot.flipped .card-inner { transform: rotateY(180deg); }

.card-face {
  position: absolute; inset: 0;
  border-radius: 8px;
  backface-visibility: hidden;
  display: flex;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.4) inset;
}

.card-back {
  background:
    repeating-linear-gradient(45deg, #7a1f2b 0 6px, #8f2534 6px 12px);
  border: 3px solid var(--cream);
  transform: rotateY(180deg);
}
.card-back::after {
  content: "";
  position: absolute; inset: 6px;
  border: 1.5px solid rgba(244,234,217,0.5);
  border-radius: 4px;
}

.card-front {
  background: linear-gradient(160deg, #fffef9, #f2ede1);
  border: 1px solid rgba(0,0,0,0.08);
  flex-direction: column;
  justify-content: space-between;
  padding: 5px 6px;
  color: var(--ink);
}
.card-front.red { color: var(--red); }

.card-rank-top {
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 0.9;
  font-weight: 800;
  font-size: 1.05rem;
}
.card-rank-bottom {
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 0.9;
  font-weight: 800;
  font-size: 1.05rem;
  transform: rotate(180deg);
  align-self: flex-end;
}
.card-suit-small { font-size: 0.9rem; margin-top: 1px; }
.card-suit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.1rem;
  opacity: 0.92;
}

.card-slot.new-card { animation: dealIn 0.38s cubic-bezier(.2,.9,.3,1.2) both; }

/* ===== Center status ===== */
.center-status {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-message {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  padding: 6px 22px;
  border-radius: 999px;
  color: var(--cream);
  text-align: center;
  transition: all 0.25s ease;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.status-message.win { color: var(--green-win); }
.status-message.lose { color: var(--red-bright); }
.status-message.push { color: var(--amber-push); }
.status-message.pop { animation: popIn 0.4s cubic-bezier(.3,1.6,.4,1) both; }
@keyframes popIn { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.betting-timer {
  margin-top: 4px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.betting-timer.urgent { color: var(--red-bright); }

/* ===== Multi-main : rangée de mains ===== */
.hands-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  min-height: 140px;
  padding: 0 4px 4px;
  overflow-y: auto;
}

.hand-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.16);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 6px 10px 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.hand-pod.mine { background: rgba(212,175,90,0.07); }
.hand-pod.active-turn {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px var(--gold-bright), 0 0 18px rgba(212,175,90,0.35);
  transform: translateY(-4px);
}
.hand-pod.empty { opacity: 0.3; }
.hand-pod .cards { min-height: 90px; }
.hand-pod .card-slot { width: 58px; height: 82px; margin-left: -20px; }

.hand-pod-owner {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  white-space: nowrap;
}
.hand-pod-owner .me-badge { color: var(--gold-bright); font-weight: 800; opacity: 1; }

.hand-pod-footer { display: flex; align-items: center; gap: 6px; }
.hand-pod-bet {
  font-size: 0.68rem;
  opacity: 0.8;
  background: rgba(0,0,0,0.35);
  padding: 1px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.hand-pod-result {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 1px 9px;
  border-radius: 999px;
}
.hand-pod-result.win { color: var(--green-win); }
.hand-pod-result.lose { color: var(--red-bright); }
.hand-pod-result.push { color: var(--amber-push); }

/* ===== Mes mains (zone de mise) ===== */
.own-hands-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.hand-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hand-tab.selected { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright); }
.hand-tab .amount { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.hand-tab .remove-hand {
  opacity: 0.5;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 50%;
}
.hand-tab .remove-hand:hover { opacity: 1; color: var(--red-bright); background: rgba(0,0,0,0.3); }

.waiting-note {
  font-size: 0.88rem;
  opacity: 0.7;
  font-style: italic;
  padding: 12px 0;
  text-align: center;
}

/* ===== Control deck ===== */
.control-deck {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.45) 30%);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bet-zone {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.bet-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 6px 20px;
  border-radius: 999px;
}
.bet-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.65; }
.bet-amount { font-weight: 800; font-size: 1.2rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }

.chip-rack {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.chip {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: none;
  position: relative;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 0 rgba(0,0,0,0.28), 0 8px 16px rgba(0,0,0,0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  background:
    repeating-conic-gradient(from 0deg, var(--c1) 0deg 30deg, var(--c2) 30deg 60deg);
}
.chip::before {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 50%;
  background: var(--c1);
  border: 1.5px dashed rgba(255,255,255,0.55);
}
.chip span { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.chip:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,0.28), 0 4px 8px rgba(0,0,0,0.3); }
.chip:disabled { opacity: 0.4; pointer-events: none; }

.chip-5 { --c1: #2c6e49; --c2: #1f5236; }
.chip-25 { --c1: #1f5fa8; --c2: #164477; }
.chip-100 { --c1: #3a3a3a; --c2: #1c1c1c; }
.chip-500 { --c1: #8e2452; --c2: #641938; }

.bet-actions, .game-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 4px 0 rgba(0,0,0,0.25), 0 6px 14px rgba(0,0,0,0.3);
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,0.25), 0 2px 6px rgba(0,0,0,0.3); }
.btn:disabled { opacity: 0.35; pointer-events: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #2a1c04;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: none;
}
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.15); }

.btn-action {
  background: linear-gradient(180deg, #1f5fa8, #164477);
  color: #fff;
  min-width: 96px;
}
.btn-action:hover:not(:disabled) { filter: brightness(1.12); }
#standBtn { background: linear-gradient(180deg, #c0392b, #922019); }
#doubleBtn { background: linear-gradient(180deg, #2c6e49, #1f5236); }
#splitBtn { background: linear-gradient(180deg, #6a4fa8, #4a3277); }
#nextRoundBtn { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #2a1c04; box-shadow: 0 4px 0 rgba(0,0,0,0.25), 0 6px 14px rgba(0,0,0,0.3); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  background: linear-gradient(160deg, #12261d, #0b1a13);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-deep);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s cubic-bezier(.2,.9,.3,1.1);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--gold-bright); }

.modal-body { padding: 18px 22px 22px; }
.modal-body ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.modal-body li { font-size: 0.92rem; line-height: 1.5; color: rgba(244,234,217,0.9); }
.modal-note {
  margin-top: 16px;
  font-size: 0.8rem;
  opacity: 0.6;
  font-style: italic;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10,20,15,0.95);
  border: 1px solid var(--panel-border);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  /* Sur mobile, la page n'a pas de défilement (hauteur fixe) : le bandeau
     du haut doit impérativement tenir sur une seule ligne, sinon il vole
     de la hauteur à la table de jeu. */
  .topbar { padding: 8px 10px; gap: 6px; flex-wrap: nowrap; }
  .topbar-right { gap: 5px; flex-wrap: nowrap; }
  .brand { gap: 5px; }
  .brand-name { font-size: 0.92rem; }
  .brand-icon { font-size: 1.2rem; }
  .bankroll-pill { font-size: 0.8rem; padding: 5px 9px; gap: 5px; }
  .bankroll-pill .currency { display: none; }
  .players-pill { font-size: 0.75rem; padding: 5px 8px; }
  .players-label { display: none; }
  .hand-pod .card-slot { width: 44px; height: 62px; margin-left: -16px; }
  .card-slot { width: 60px; height: 84px; margin-left: -20px; }
  .chip { width: 50px; height: 50px; font-size: 0.82rem; }
  .btn { padding: 11px 16px; font-size: 0.85rem; }
  .btn-action { min-width: 78px; }
  .felt-arc-text { font-size: 0.75rem; }
  .felt-sub-text { display: none; } /* évite le chevauchement avec le sabot sur très petit écran */
  .shoe-rack { top: 4px; right: 6px; }
  .shoe-box { width: 36px; height: 50px; }
  .shoe-stack { width: 26px; max-height: 36px; }
  .shoe-count { font-size: 0.72rem; }
  .shoe-label, .shoe-decks { font-size: 0.5rem; }
  .dealer-seat { padding-top: 30px; }
  .icon-btn { width: 32px; height: 32px; font-size: 0.95rem; }
  .game-menu-panel { min-width: 200px; right: -6px; }
}

@media (max-height: 680px) {
  .seat { min-height: 96px; }
  .card-slot { width: 62px; height: 88px; }
  .shoe-rack { top: 4px; }
}
