/* css/table.css */

/* ── Header table ────────────────────────────────────────────── */
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  flex-shrink: 0;
}
.table-code-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold);
  background: rgba(255,203,91,.1);
  border: 1px solid rgba(255,203,91,.3);
  padding: 5px 10px;
  border-radius: 20px;
}
.bankroll-mini {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

/* ── Zone dealer — dans le feutre, centré verticalement ─────── */
.dealer-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 4px 10px;
  border-radius: 10px;
  flex-shrink: 0;
  z-index: 5;
  margin-top: auto;  /* distribue l'espace : dealer centré dans le haut */
}

/* ── Shoe (card source for deal animations) ──────────────────── */
.shoe-source {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 42px;
  height: 62px;
  background: linear-gradient(160deg, #18181F 0%, #0D0D12 100%);
  border: 1.5px solid #2A2A35;
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
  box-shadow: 2px 4px 14px rgba(0,0,0,.8);
}
/* ◆ logo watermark */
.shoe-source::before {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: rgba(255, 203, 91, 0.28);
  line-height: 1;
}
/* Bottom shadow */
.shoe-source::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 4px;
  right: 4px;
  height: 6px;
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 4px 4px;
  filter: blur(4px);
}
.dealer-cards { display: flex; gap: 6px; min-height: 88px; align-items: center; }
.zone-label   { font-size: 10px; color: var(--text2); text-transform: uppercase; letter-spacing: .1em; }
.dealer-score { font-size: 13px; font-weight: 700; color: var(--text); min-height: 16px; }

/* ── Sièges ──────────────────────────────────────────────────── */
.seats-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  flex-shrink: 0;
}
.seat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.seat__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.seat--player .seat__dot { background: var(--accent); border-color: var(--accent); }
.seat__btn-add {
  font-size: 16px; font-weight: 700;
  color: var(--text2);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.seat__btn-add:hover { color: var(--accent); border-color: var(--accent); }

/* Mains du joueur par box */
.box-hands {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  padding: 4px;
  transition: box-shadow .2s ease;
}
/* Surbrillance de la main active lors d'un split */
.box-hands--active {
  box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(255,203,91,.35);
}

/* Tour du dealer : même format que .box-hands--active autour des cartes du joueur */
.dealer-zone {
  transition: box-shadow 0.35s ease;
}
.dealer-zone.dealer-turn {
  box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(255,203,91,.35);
}

/* ── Multiseat : arc de cercle (vraie table) ───────────────────── */
.seats-row { padding: 4px 8px 6px; }

/* Conteneur arc : 5 sièges positionnés en absolu sur une courbe ∪ */
.seats-row--arc {
  position: relative;
  display: block;
  width: 100%;
  max-width: 360px;
  height: 170px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;          /* ne pas couper les cartes qui arrivent du sabot */
}
.arc-curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.arc-box { position: absolute; width: 46px; height: 46px; z-index: 1; }
.arc-circle {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,203,91,.35);
  background: rgba(8,12,22,.55);
  display: flex; align-items: center; justify-content: center;
}
.arc-box--empty { cursor: pointer; }
.arc-circle--empty { border-style: dashed; border-color: rgba(255,203,91,.3); background: rgba(255,203,91,.04); }
.arc-box--empty:hover .arc-circle--empty { border-color: var(--gold); background: rgba(255,203,91,.1); }
.arc-sit { font-size: 18px; font-weight: 700; line-height: 1; color: rgba(255,203,91,.55); }
.arc-circle--awaiting { border-style: dashed; }
.arc-box--active .arc-circle { border-color: var(--accent); box-shadow: 0 0 12px rgba(55,230,182,.45); }

/* Table en réseau : le siège d'un autre joueur n'est jamais interactif pour moi. */
.arc-box--readonly { pointer-events: none; }

/* Petit badge nom EN DESSOUS du siège, pour identifier qui joue où en réseau — jamais
   au-dessus : cette zone est déjà occupée par les cartes/le total de la main (.arc-cards),
   où le nom se superposait au score. Placé sous la croix "quitter"/le badge assurance
   (top: 100%+38px, ~16-18px de haut) pour ne jamais les chevaucher. */
/* Plaque joueur : avatar (+ cadre équipé), badge équipé, pseudo. La plaque porte le positionnement et le fond ;
   le pseudo (.arc-player-name) reste un texte seul. Avatar, cadre et badge sont ceux de la boutique
   (js/ui/look.js) — pour les autres joueurs, des ids validés par liste blanche (netValidate.js). */
.arc-player {
  position: absolute;
  top: calc(100% + 58px); left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 3px;
  background: rgba(8,12,22,.7);
  padding: 1px 5px;
  border-radius: 6px;
  max-width: 72px;
  z-index: 4;
  pointer-events: none;
}
.arc-player-name {
  min-width: 0;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.arc-player-name--me { color: var(--accent); }
.arc-player-av {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 12px; height: 12px;
  border-radius: 50%;
  font-size: 7.5px; line-height: 1;
  --frame-glow: 4px;      /* halo du cadre réduit à la taille d'une pastille */
  --frame-width: 1.5px;
  --frame-out: -2px;
}
.arc-player-badge { flex-shrink: 0; font-size: 9px; line-height: 1; }

/* Quitter le siège : petite croix discrète sous le siège (jamais le cercle lui-même, pour
   éviter qu'un mis-clic pendant la mise force à se rasseoir) */
.arc-leave {
  position: absolute;
  top: calc(100% + 38px); left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  border: none;
  background: rgba(166,166,176,.16);
  color: rgba(166,166,176,.7);
  font-size: 11px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}
.arc-leave:hover { background: rgba(166,166,176,.3); color: #fff; }

/* Assurance indépendante par siège (multiseat, dealer As) : même emplacement que la croix
   "quitter" — jamais affichées simultanément (mise vs assurance sont deux phases distinctes) */
.arc-insure {
  position: absolute;
  top: calc(100% + 38px); left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(255,203,91,.12);
  color: rgba(255,203,91,.5);
  font-size: 10px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}
.arc-insure:hover:not(:disabled) { background: rgba(255,203,91,.25); }
.arc-insure:disabled { opacity: .35; cursor: default; }
.arc-insure--active {
  background: var(--gold);
  color: #1a1408;
  box-shadow: 0 0 8px rgba(255,203,91,.5);
}

/* Jeton(s) dans le cercle (mêmes que le box solo) */
.arc-circle .chip-stack { bottom: 2px; }

/* En jeu : on réutilise le composant de mise du box solo, mis à l'échelle du siège */
.arc-bet {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.62);
  transform-origin: center;
}

/* Cartes au-dessus du cercle */
.arc-cards {
  position: absolute;
  left: 50%; bottom: 48px;
  transform: translateX(-50%);
}
.arc-cards .hand-score { font-size: 10px; min-height: 12px; margin-top: 1px; }

/* Side bets : sous le cercle, 21+3 à gauche / PP à droite — vrai jeton (comme la mise
   principale), réduit à l'échelle du siège (pas de chevauchement entre sièges). */
.arc-sb {
  position: absolute; top: calc(100% + 2px);
  width: 32px; height: 32px;
  z-index: 2;
  cursor: pointer;
}
.arc-sb--left  { left: -6px; }
.arc-sb--right { right: -6px; }
.arc-sb .chip-stack { transform: translateX(-50%) scale(0.62); transform-origin: bottom center; }

/* Slot vide pendant la mise : pointillés discrets, cliquable pour miser ce siège */
.arc-sb--empty {
  border: 1.5px dashed rgba(255,203,91,.28);
  border-radius: 50%;
  background: rgba(255,203,91,.04);
  cursor: pointer;
}
.arc-sb--empty:hover { border-color: rgba(255,203,91,.5); background: rgba(255,203,91,.08); }

/* Cartes compactes en mode arc (5 sièges) */
.seats-row--arc .card {
  width: 32px; height: 46px; font-size: 13px; border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,.45);
}
.seats-row--arc .card__corner     { font-size: 8px; }
.seats-row--arc .card__corner--tl { top: 1px; left: 2px; }
.seats-row--arc .card__corner--br { bottom: 1px; right: 2px; }
.seats-row--arc .card__center     { font-size: 14px; }
.seats-row--arc .hand-cards       { gap: 1px; flex-wrap: nowrap; }
.seats-row--arc .hand-cards .card:not(:first-child) { margin-left: -11px; }

/* ══════════════════════════════════════════════════════════════
   FELT SURFACE — dark navy table
══════════════════════════════════════════════════════════════ */
.felt-surface {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 55% 55% 0 0 / 12% 12% 0 0;
  border-top: 2px solid rgba(255,203,91,0.14);
  background: radial-gradient(ellipse 90% 55% at 50% 0%, #141B2C 0%, #0C1018 45%, #060810 100%);
}
/* Diamond micro-texture */
.felt-surface::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M11 1L21 11L11 21L1 11Z' fill='none' stroke='rgba(255,203,91,0.038)' stroke-width='0.6'/%3E%3C/svg%3E");
}

.felt-inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}

/* ── Groupe joueur — poussé vers le bas ── */
.fj-player-group {
  margin-top: auto;   /* avec dealer-zone aussi en auto → espace équitable */
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0;
  padding-bottom: 18px;
}

/* ── FASTJACK divider ── */
.fj-divider {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  opacity: 0.22;
  pointer-events: none; user-select: none;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.fj-diamond { font-size: 13px; color: var(--gold); line-height: 1; }
.fj-text-row { display: flex; align-items: center; gap: 10px; }
.fj-text { font-size: 13px; font-weight: 900; letter-spacing: .26em; color: var(--gold); }
.fj-line { display: block; flex-shrink: 0; }

/* ── Règles du jeu ── */
.rules-line {
  display: flex; align-items: center; gap: 7px;
  opacity: 0.35;
  pointer-events: none; user-select: none;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.rules-line span {
  font-size: 7px; font-weight: 700; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase; white-space: nowrap;
}
.rules-dot { opacity: 0.5; }

/* ── Tapis (zone cercles + payouts) ── */
.felt-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  width: 100%;
}

/* ── Rangée de cercles de mise ── */
.bet-circles-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 0 0;
  overflow: visible;
}
.bet-total {
  font-size: 12px;
  color: rgba(255,203,91,0.5);
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  padding: 3px 0 1px;
  min-height: 18px;
}

/* ── Double bet: two stacks, one behind the other ─────────────── */
.bet-circle--doubled {
  overflow: visible;
}
/* ── Win: mise d'origine + pile de gains, empilées comme le double ── */
.bet-circle--win-stack {
  overflow: visible;
}
/* Inline styles on these elements set bottom/left/z-index (beats chips.css specificity).
   GSAP drives the slide-in animation — no CSS animation needed. */
/* ── Split bet: N stacks side by side, pill-shaped ────────────── */
.bet-circle--split {
  overflow: visible;
  height: 80px;
}

/* ── Bouton retour verrouillé pendant la partie ──────────────────── */
.btn--back--locked {
  opacity: 0.22 !important;
  pointer-events: none;
  cursor: not-allowed;
}

/* ── Stratégie de base ───────────────────────────────────────────── */
.strategy-btn {
  /* Positionné en absolu sur le tapis, HORS de felt-surface (pas de clip overflow).
     Un enfant en absolu ignore le padding-top de .view (safe-area) : on le réintègre ici. */
  position: absolute;
  top: calc(var(--safe-top) + 58px);   /* juste sous le header (~52px) + 6px dans le tapis */
  left: 14px;
  z-index: 20;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(55,230,182,.12);
  border: 1px solid rgba(55,230,182,.28);
  color: rgba(255,255,255,.72);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.strategy-btn:hover,
.strategy-btn:focus-visible {
  background: rgba(55,230,182,.22);
  border-color: rgba(55,230,182,.5);
}
.strategy-btn:hover,
.strategy-btn:focus-visible {
  background: rgba(55,230,182,.2);
  border-color: rgba(55,230,182,.45);
}   /* (plus d'`outline: none` : l'anneau clavier global de base.css s'ajoute au changement de fond) */
.strategy-panel {
  position: absolute;
  top: calc(var(--safe-top) + 94px);   /* 58px (btn top) + 30px (btn height) + 6px gap */
  left: 10px;
  width: 268px;
  max-height: 72vh;
  overflow-y: auto;
  background: rgba(8,8,14,.97);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  z-index: 300;
  backdrop-filter: blur(14px);
  transform-origin: top left;
  transform: scale(0.88) translateY(-8px);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
}
.strategy-panel.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.st-inner { padding: 8px 8px 10px; }
.st-legend {
  display: flex; align-items: center; gap: 5px;
  font-size: 9px; color: rgba(255,255,255,.4);
  margin-bottom: 6px; flex-wrap: wrap;
  line-height: 1.8;
}
.st-leg {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border-radius: 2px;
  font-size: 8px; font-weight: 800; color: #fff;
  vertical-align: middle;
}
.st-section-label {
  font-size: 8px; font-weight: 700;
  color: rgba(255,255,255,.35); text-transform: uppercase;
  letter-spacing: .1em; margin: 5px 0 2px;
}
.st-table {
  width: 100%; border-collapse: collapse;
}
.st-col-hd {
  font-size: 7px; font-weight: 700;
  color: rgba(255,255,255,.35);
  text-align: center; padding: 1px 0 2px;
}
.st-row-label {
  font-size: 8px; font-weight: 700;
  color: rgba(255,255,255,.45);
  padding: 1px 4px 1px 0;
  white-space: nowrap;
}
.st-cell {
  text-align: center;
  width: 22px; height: 15px;
  font-size: 8px; font-weight: 800;
  color: #fff; border-radius: 2px;
  line-height: 15px;
}
.st-H { background: rgba(90,90,110,.6); }
.st-S { background: rgba(20,120,60,.75); }
.st-D { background: rgba(180,110,0,.75); }
.st-P { background: rgba(20,80,160,.75); }

/* ── Bet circles — style v4 ── */
.bet-circle {
  position: relative;
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(255,203,91,0.58);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,203,91,0.7);
  box-shadow: 0 0 22px rgba(255,203,91,0.1), inset 0 0 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: box-shadow .15s;
}
.bet-circle--side {
  width: 60px; height: 60px;
  border: 1.5px solid rgba(255,203,91,0.3);
  font-size: 9px;
  color: rgba(255,203,91,0.38);
  box-shadow: 0 0 14px rgba(255,203,91,0.05), inset 0 0 10px rgba(0,0,0,0.3);
}

/* ── Bouton info "?" sur les side-bets ── */
.sidebet-info-btn {
  position: absolute;
  bottom: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(18,18,26,0.95);
  border: 1px solid rgba(255,203,91,0.35);
  color: rgba(255,203,91,0.75);
  font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: border-color .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  line-height: 1;
}
.sidebet-info-btn--left  { left:  -2px; }
.sidebet-info-btn--right { right: -2px; }
.sidebet-info-btn:active { border-color: rgba(255,203,91,.7); color: rgba(255,203,91,1); }

/* ── Panneaux info side-bets (mêmes anim que strategy-panel) ── */
.sidebet-info-panel {
  position: fixed;
  bottom: 160px;
  width: 185px;
  background: rgba(8,8,14,.97);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  z-index: 300;
  backdrop-filter: blur(14px);
  transform: scale(0.88);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
}
#panel-21-3 { left: 10px;  transform-origin: bottom left;  }
#panel-pp   { right: 10px; transform-origin: bottom right; }
.sidebet-info-panel.is-open { transform: scale(1); opacity: 1; pointer-events: auto; }
.sbi-inner { padding: 10px 12px 12px; }
.sbi-desc {
  font-size: 9.5px;
  color: rgba(255,255,255,.45);
  line-height: 1.45;
  margin: 0 0 8px;
}
.sbi-table { width: 100%; border-collapse: collapse; }
.sbi-table td {
  font-size: 9px; font-weight: 700;
  padding: 2px 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sbi-table td:first-child { color: rgba(255,255,255,.3); }
.sbi-table td:last-child  { color: rgba(255,203,91,.65); text-align: right; }

/* ── Séparateur table/bas ── */
.table-edge {
  flex-shrink: 0; height: 6px;
  background: linear-gradient(180deg, #181420 0%, #0C0A10 100%);
  border-top: 1px solid rgba(255,203,91,0.1);
}

/* ── Chip tray grisé hors phase de mise ── */
.chip-tray-wrap--locked {
  pointer-events: none;
  position: relative;
}
.chip-tray-wrap--locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 10;
  border-radius: 8px;
}

/* ── Bankroll bas-gauche (au-dessus du chip tray) ── */
.bankroll-table-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 14px 3px;
}

/* Crédit "+XXX ✦" — affiché inline à côté de la bankroll, compte à rebours */
.bankroll-credit {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: .02em;
  display: inline-block;
  transform-origin: left center;
}

/* ── Slot de contrôle — entre le dealer et le tapis, en flux normal ──
   Les 3 phases (pré-deal / assurance / décision) sont mutuellement
   exclusives (toggle via [hidden]) donc empilées au même endroit. ── */
.control-slot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 10px;
  padding: 4px 10px;
}

/* ── Groupe centré pré-deal (ANNULER/RÉPÉTER + DEAL) ─────────── */
.pre-deal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: calc(100% - 20px);
  max-width: 400px;
}
.pre-deal-actions {
  display: flex;
  gap: 10px;
  padding: 0;
  justify-content: center;
  align-items: center;
}
.pre-deal-actions .btn {
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px 8px;
  border-radius: 8px;
  border: none;
  border-bottom: 3px solid rgba(0,0,0,0.35);
  transition: transform .08s, box-shadow .08s;
}
.pre-deal-actions .btn:active:not(:disabled) {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: none !important;
}
.pre-deal-actions .btn:disabled { opacity: .4; pointer-events: none; }
.pre-deal-actions #btn-undo {
  background: rgba(255,255,255,0.07);
  color: var(--text2);
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow: none;
  border-bottom: 1.5px solid rgba(0,0,0,0.2);
}
/* RÉPÉTER mode */
.pre-deal-actions #btn-rebet[data-mode="rebet"] {
  background: linear-gradient(180deg, #D4A020 0%, #B8850C 100%);
  color: #fff;
  box-shadow: 0 4px 0 #7A5200, inset 0 1px 0 rgba(255,255,255,0.25);
  border-bottom-color: #6A4600;
}
/* ×2 / DOUBLER mode */
.pre-deal-actions #btn-rebet[data-mode="double"] {
  background: linear-gradient(180deg, #2D5FA8 0%, #1E3F7A 100%);
  color: #fff;
  box-shadow: 0 4px 0 #0F2248, inset 0 1px 0 rgba(255,255,255,0.2);
  border-bottom-color: #0C1C3C;
}

/* ── Bouton DEAL NOW — style Evolution Gaming ────────────────── */
.deal-now-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.waiting-host {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text2);
  padding: 12px 0;
}
.network-timer {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text2);
  padding: 4px 0 8px;
  font-variant-numeric: tabular-nums;
}
.network-timer--urgent { color: var(--danger); }
.deal-now-btn {
  width: 100%;
  max-width: 340px;
  padding: 14px 28px;
  background: linear-gradient(180deg, #2ECC5A 0%, #1CA544 100%);
  border: none;
  border-radius: 32px;
  border-bottom: 4px solid #0A5E25;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(46,204,90,0.28), 0 2px 8px rgba(0,0,0,0.6);
  transition: transform .08s, box-shadow .08s, border-bottom-width .08s;
}
.deal-now-btn:active:not(:disabled) {
  transform: translateY(3px);
  border-bottom-width: 1px;
  box-shadow: 0 1px 6px rgba(46,204,90,0.15);
}
.deal-now-btn:disabled {
  opacity: 0.38;
  pointer-events: none;
  box-shadow: none;
}
.deal-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Réseau : bouton DEAL devenu bascule "prêt" individuelle — état activé une fois cliqué,
   en attente que les autres joueurs assis fassent de même (cf. #waiting-host). */
.deal-now-btn--ready {
  background: linear-gradient(180deg, #FFCB5B 0%, #E0A82E 100%);
  border-bottom-color: #7A5A0E;
  box-shadow: 0 4px 24px rgba(255,203,91,0.28), 0 2px 8px rgba(0,0,0,0.6);
}

/* ── Insurance phase ─────────────────────────────────────────── */
.insurance-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: rgba(12, 12, 18, 0.94);
  border: 1.5px solid rgba(255, 200, 80, 0.4);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}
.insurance-label {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  text-align: center;
}
.insurance-hint {
  font-size: 10.5px;
  color: rgba(255, 203, 91, 0.55);
  text-align: center;
}
.insurance-btns {
  display: flex;
  gap: 10px;
}
.insurance-btns .btn { min-width: 80px; }

/* ── Play actions (icon + label) ────────────────────────────── */
.play-actions {
  display: flex;
  gap: 6px;
  padding: 0 10px;
  justify-content: center;
  width: calc(100% - 20px);
  max-width: 400px;
  flex-shrink: 0;
}
.play-actions .btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 4px 9px;
  border-radius: 8px;
  border: none;
  border-bottom: 3px solid rgba(0,0,0,0.35);
  transition: transform .08s, box-shadow .08s;
}
.play-actions .btn:active:not(:disabled) {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: none !important;
}

/* Full-color per-button — couleurs fidèles à la référence */
.play-actions #btn-dbl {
  flex: 1;
  background: linear-gradient(180deg, #D4A020 0%, #B8850C 100%);
  color: #fff;
  box-shadow: 0 4px 0 #7A5200, inset 0 1px 0 rgba(255,255,255,0.25);
  border-bottom-color: #6A4600;
}
.play-actions #btn-hit {
  flex: 1.45;
  background: linear-gradient(180deg, #2ECC5A 0%, #1FA846 100%);
  color: #fff;
  box-shadow: 0 4px 0 #0F6B2B, inset 0 1px 0 rgba(255,255,255,0.25);
  border-bottom-color: #0D5C24;
}
.play-actions #btn-stand {
  flex: 1.45;
  background: linear-gradient(180deg, #E53935 0%, #C0302D 100%);
  color: #fff;
  box-shadow: 0 4px 0 #7B1A18, inset 0 1px 0 rgba(255,255,255,0.22);
  border-bottom-color: #6A1614;
}
.play-actions #btn-spl {
  flex: 1;
  background: linear-gradient(180deg, #2D5FA8 0%, #1E3F7A 100%);
  color: #fff;
  box-shadow: 0 4px 0 #0F2248, inset 0 1px 0 rgba(255,255,255,0.2);
  border-bottom-color: #0C1C3C;
}

.play-actions .btn:disabled { opacity: .4; pointer-events: none; }
.btn-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.btn-icon-text {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}
.btn-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ── Side bet ratio indicator ────────────────────────────────── */
.sidebet-ratio {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(0,0,0,.7);
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
  animation: popIn .3s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes popIn {
  from { transform: translateX(-50%) scale(0.5); opacity: 0; }
  to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}
.bet-circle { position: relative; }
.bet-circle--win { animation: winPulse .4s ease; }
@keyframes winPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,200,80,.6); }
  70%  { box-shadow: 0 0 0 12px rgba(255,200,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,200,80,0); }
}

/* ── Loss cross indicator (above the circle, like the ratio bubble) ── */
.bet-circle__loss-cross {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: popIn .25s cubic-bezier(.18,.89,.32,1.28) forwards;
}
.bet-circle__loss-cross::before { content: '✕'; line-height: 1; }

/* ── Win check / push arrows (above the circle, like the loss cross) ── */
.bet-circle__win-check {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent, #37E6B6);
  color: #0B0B0E;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: popIn .25s cubic-bezier(.18,.89,.32,1.28) forwards;
}
.bet-circle__win-check::before { content: '✓'; line-height: 1; }

.bet-circle__push-arrows {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text2, #A6A6B0);
  color: #0B0B0E;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: popIn .25s cubic-bezier(.18,.89,.32,1.28) forwards;
}
.bet-circle__push-arrows::before { content: '⇅'; line-height: 1; }

/* ── Overlay résultat ────────────────────────────────────────── */
.result-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  /* dealer reveal already provides the pause; just a short fade-in */
  animation: fadeIn .35s ease 0.15s both;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.result-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.result-label  { font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.result-amount { font-size: 22px; font-weight: 700; color: var(--gold); }

.result-label--win       { color: var(--accent); }
.result-label--blackjack { color: var(--gold); }
.result-label--loss,
.result-label--bust      { color: var(--danger); }
.result-label--push      { color: var(--text2); }
