/* ============================================================
   CrackJack — style casino vert/doré
   ============================================================ */

:root {
  --bg-deep: #0c1a14;
  --bg-felt: #115e3a;
  --bg-felt-dark: #0a3d27;
  --bg-felt-shadow: #062818;
  --gold: #d4af37;
  --gold-bright: #f5d76e;
  --gold-dark: #8a6d12;
  --cream: #f7f3e3;
  --red: #c33c2c;
  --red-light: #e25a4a;
  --black-card: #1a1a1a;
  --shadow: rgba(0, 0, 0, 0.5);
  --text: #f1f0e7;
  --muted: #9aa39e;
  --warning: #e08e3a;
  --success: #4caf50;
  --danger: #c33c2c;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

/* ─── Page lobby ─────────────────────────────────────────────── */

.page-lobby {
  background: radial-gradient(ellipse at top, #1a3a2a 0%, var(--bg-deep) 70%);
  min-height: 100vh;
  padding: 1rem;
  padding-bottom: 4rem;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.6) 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1rem 0;
}

.brand {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 30px rgba(212, 175, 55, 0.3);
}

.brand span {
  color: var(--gold);
}

/* ─── Logo CrackJack (lobby) ─── */
/* Affiche /img/logo.png en priorit\u00e9. Si le fichier est absent, le SVG
   fallback prend le relais via l'onerror du <img>. */
.brand-logo {
  width: 360px;
  max-width: 80vw;
  margin: 0 auto;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.35));
}
.brand-logo .brand-logo-img,
.brand-logo .brand-logo-svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 600px) {
  .brand-logo { width: 280px; max-width: 88vw; }
}
@media (max-width: 400px) {
  .brand-logo { width: 240px; max-width: 92vw; }
}

.brand-sub {
  margin: 0.2rem 0 0;
  color: rgba(245, 235, 200, 0.7);
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
}
.topbar { flex-direction: column; align-items: center; }

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.card {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--gold-dark);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 12px 40px var(--shadow);
  backdrop-filter: blur(8px);
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--gold-dark);
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.auth-form, .form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

label.row {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

label.row small { width: 100%; }

label small {
  color: var(--muted);
  font-size: 0.8rem;
}

input[type="text"], input[type="password"], input[type="number"] {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--cream);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--gold);
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:not(:disabled):active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}
.btn-primary:not(:disabled):hover {
  background: linear-gradient(180deg, #fde79b, var(--gold-bright));
}

.btn-large { padding: 1rem 1.5rem; font-size: 1.05rem; width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.btn-ghost:not(:disabled):hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-warning {
  background: var(--warning);
  color: #1a1a1a;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:not(:disabled):hover {
  background: #66c46e;
}
.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-action {
  background: linear-gradient(180deg, #2c5740, #1a3d28);
  color: var(--cream);
  border: 1px solid var(--gold-dark);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}
.btn-action:not(:disabled):hover {
  background: linear-gradient(180deg, #3d7355, #265237);
  border-color: var(--gold);
}

.error-msg {
  color: var(--red-light);
  font-size: 0.9rem;
  min-height: 1.2em;
  margin: 0;
}

.muted { color: var(--muted); font-size: 0.9rem; }
.hidden { display: none !important; }

/* Liste de tables */

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.lobby-header h2 { margin: 0; color: var(--gold); }

.tables-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  max-height: 50vh;
  overflow-y: auto;
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.3);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  cursor: pointer;
  transition: background 0.2s;
}
.table-row:hover { background: rgba(212, 175, 55, 0.1); }

.table-row-info { display: flex; flex-direction: column; }
.table-row-name { font-weight: 700; color: var(--cream); }
.table-row-meta { font-size: 0.85rem; color: var(--muted); }
.table-row-count {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-content {
  max-width: 500px;
  width: 100%;
  margin: 0;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

/* ─── Page table de jeu (premium casino) ─────────────────────── */

.page-table {
  background:
    radial-gradient(ellipse at center top, #143a26 0%, #061a10 65%, #020a06 100%);
  min-height: 100vh;
  padding-bottom: 1rem;
}

.table-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, rgba(20,10,5,0.85), rgba(0,0,0,0.5));
  border-bottom: 2px solid var(--gold-dark);
  gap: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.table-info {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.table-name {
  font-weight: 800;
  color: var(--gold);
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}
.table-settings { font-size: 0.78rem; color: var(--muted); }

.state-banner {
  text-align: center;
  padding: 0.6rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.25));
  color: var(--gold-bright);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gold-dark);
  min-height: 2.2rem;
  font-family: Georgia, serif;
}

/* ════════════════════════════════════════════════════════════════
   PAGE TABLE — Vue casino classique (top-down) avec 7 sièges en arc
   ════════════════════════════════════════════════════════════════ */

.game-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* ─── La table de blackjack (image photographique + zones overlay) ─── */
.table-arena {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  max-height: 70vh;
  margin: 0 auto;
  perspective: 1400px;
  background: url('/img/table-bg.png') center/contain no-repeat;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.7);
}
/* SVG legacy : on neutralise (image utilisée comme fond CSS) */
.table-arena .table-bg-svg { display: none; }

/* Sabot de cartes (haut-droite) */
.deal-shoe {
  position: absolute;
  top: 7%;
  right: 6%;
  width: 60px;
  height: 80px;
  border-radius: 6px;
  background: linear-gradient(135deg, #5a3820 0%, #2a1810 100%);
  border: 2px solid var(--gold-dark);
  box-shadow: 0 6px 14px rgba(0,0,0,0.6), inset 0 0 8px rgba(0,0,0,0.5);
  z-index: 5;
}
.deal-shoe::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 3px;
}
.deal-shoe::after {
  content: '🂠';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 1.3rem;
}

/* ─── Croupier / Banker (haut centre de la table) ──────────────── */
.dealer-zone {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
  min-width: 220px;
}
.dealer-label {
  display: inline-block;
  background: linear-gradient(180deg, #fbe28b, var(--gold) 50%, var(--gold-dark));
  color: #2a1a08;
  font-weight: 900;
  font-family: Georgia, serif;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  padding: 4px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--gold-bright);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.4);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}
.dealer-label.is-banker {
  background: linear-gradient(180deg, #fff0a8, #f5d76e 40%, #b08813);
}
.dealer-label .banker-prefix {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #4a3a08;
  margin-right: 4px;
}
.dealer-hand {
  display: flex;
  gap: 0;
  justify-content: center;
  min-height: 100px;
  perspective: 1200px;
  align-items: flex-end;
}
.dealer-hand .card-piece {
  width: 70px;
  height: 98px;
  margin-left: -48px; /* fort chevauchement style casino */
}
.dealer-hand .card-piece:first-child { margin-left: 0; }
/* Cascade DIAGONALE : chaque carte est décalée vers le bas en plus du décalage gauche.
   On voit l'index ET la couleur de la carte précédente — pile comme dans un vrai casino. */
.dealer-hand .card-piece:nth-child(2) { transform: translateY(10px) rotate(2deg); }
.dealer-hand .card-piece:nth-child(3) { transform: translateY(20px) rotate(4deg); }
.dealer-hand .card-piece:nth-child(4) { transform: translateY(30px) rotate(6deg); }
.dealer-hand .card-piece:nth-child(5) { transform: translateY(40px) rotate(8deg); }
.dealer-hand .card-piece:nth-child(6) { transform: translateY(50px) rotate(10deg); }
.dealer-hand .card-piece:nth-child(7) { transform: translateY(60px) rotate(12deg); }
/* La cascade diagonale est désactivée pendant l'animation de distribution
   (sinon le translate(Y) écraserait le slide depuis le sabot). */
.dealer-hand .card-piece.deal-anim { transform: none; }
.hand-total {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--gold-bright);
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  font-family: Georgia, serif;
  background: rgba(0,0,0,0.5);
  padding: 1px 10px;
  border-radius: 10px;
  display: inline-block;
}

/* ─── 7 sièges en arc autour de la table ───────────────────────── */
.seats-arc {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.seat {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 0;
  pointer-events: auto;
}
/* Positions v12 — alignées au pixel sur les 7 rectangles dorés de table-bg.png
   (image 1536×1024, courbe en U : sièges 1 et 7 plus haut, siège 4 plus bas) */
.seat[data-seat="0"] { left: 18.5%; top: 52.0%; }
.seat[data-seat="1"] { left: 29.0%; top: 53.2%; }
.seat[data-seat="2"] { left: 39.9%; top: 54.8%; }
.seat[data-seat="3"] { left: 49.5%; top: 56.0%; }
.seat[data-seat="4"] { left: 60.4%; top: 54.9%; }
.seat[data-seat="5"] { left: 70.9%; top: 53.5%; }
.seat[data-seat="6"] { left: 81.3%; top: 52.0%; }

/* ─── Carte d'identité du joueur (sous le bet spot) ─────────── */
.seat-plate {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(180deg, rgba(0,0,0,0.78), rgba(0,0,0,0.55));
  border: 1.5px solid var(--gold-dark);
  border-radius: 10px;
  padding: 5px 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.seat-pseudo {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.seat-stack {
  font-size: 0.72rem;
  color: var(--cream);
}
.seat-stack strong { color: var(--gold); }

.seat-banker-tag {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: 1px;
}

.seat-bot-tag {
  font-size: 0.55rem;
  color: #b9c5d8;
  background: rgba(70, 90, 130, 0.55);
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* ─── Cartes du joueur (au-dessus du bet spot) ──────────────── */
/* La pile de cartes est rendue dans des `.hand-pile` distincts.
   Une main normale = 1 pile. Un split = 2 piles côte-à-côte avec un
   espace visible entre elles, chacune ayant ses cartes en cascade. */
.seat-cards {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px; /* espace entre les 2 piles d'un split */
  perspective: 900px;
  height: 78px;
  align-items: flex-end;
}
.seat-cards.is-split { gap: 30px; } /* split visible + marqué */
.seat-cards .hand-pile {
  display: flex;
  align-items: flex-end;
  position: relative;
  height: 78px;
}
.seat-cards .hand-pile.is-current::after {
  /* Marque la main en cours pendant un split */
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 3px;
  opacity: 0.9;
}
.seat-cards .card-piece {
  width: 52px;
  height: 72px;
  margin-left: -36px; /* chevauchement gauche : on voit l'index de la carte précédente */
}
.seat-cards .hand-pile .card-piece:first-child { margin-left: 0; }
/* Cascade DIAGONALE pour les cartes du joueur : chaque carte descend d'un cran
   et tourne légèrement → effet "main qui s'ouvre" plutôt qu'empilement plat. */
.seat-cards .hand-pile .card-piece:nth-child(2) { transform: translateY(8px) rotate(2deg); }
.seat-cards .hand-pile .card-piece:nth-child(3) { transform: translateY(16px) rotate(4deg); }
.seat-cards .hand-pile .card-piece:nth-child(4) { transform: translateY(24px) rotate(6deg); }
.seat-cards .hand-pile .card-piece:nth-child(5) { transform: translateY(32px) rotate(8deg); }
.seat-cards .hand-pile .card-piece:nth-child(6) { transform: translateY(40px) rotate(10deg); }
.seat-cards .hand-pile .card-piece:nth-child(7) { transform: translateY(48px) rotate(12deg); }
/* Animation de distribution : on neutralise le translate(Y) — l'animation deal-anim
   gère le slide depuis le sabot. La diagonale s'applique à l'arrivée. */
.seat-cards .hand-pile .card-piece.deal-anim { transform: none; }

/* ─── Mise en jetons sur le bet spot ─────────────────────────── */
.seat-bet {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 18px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #1a1a1a;
  background: radial-gradient(circle at 50% 30%, var(--gold-bright), var(--gold-dark));
  border: 2px solid rgba(0,0,0,0.4);
  border-radius: 22px / 9px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.7), inset 0 1px 2px rgba(255,255,255,0.3);
  z-index: 2;
}
.seat-bet.is-empty { display: none; }

/* ─── Bouton "S'asseoir" sur les sièges libres ──────────────── */
.seat-empty-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  background: linear-gradient(180deg, rgba(212,175,55,0.92), rgba(138,109,18,0.95));
  color: #111;
  border: 2px solid var(--gold-bright);
  border-radius: 18px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: Georgia, serif;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.3);
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.seat-empty-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 4px 14px rgba(245,215,110,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.seat-empty-btn:active {
  transform: translate(-50%, -50%) scale(0.97);
}

/* ─── Mode modération créateur ──────────────────────────────────
   Le créateur peut cliquer sur la plaque d'un joueur pour ouvrir un
   menu : « Changer de place » ou « Virer de la table ». */
.seat-plate.is-creator-actionable {
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.seat-plate.is-creator-actionable:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px rgba(245,215,110,0.4), 0 4px 12px rgba(0,0,0,0.6);
}

/* En mode "déplacer un joueur", on met les sièges vides en surbrillance */
body.is-move-mode .seat-empty-btn {
  animation: seatBlink 0.9s ease-in-out infinite;
  background: linear-gradient(180deg, #fdf3a8, #d4af37);
}
@keyframes seatBlink {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   box-shadow: 0 0 6px rgba(245,215,110,0.4); }
  50%      { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 18px rgba(245,215,110,0.9); }
}

/* Popover modération — attaché à document.body avec position:fixed pour
   passer au-dessus de TOUTES les cartes/sièges (z-index 9999). */
.creator-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  padding: 8px;
  background: linear-gradient(180deg, #1f1308, #0d0703);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.9);
  z-index: 9999;
  pointer-events: auto;
}
/* Flèche pointant vers la plaque (sous le menu si arrow-down, au-dessus si arrow-up) */
.creator-menu.menu-arrow-down::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gold);
}
.creator-menu.menu-arrow-up::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--gold);
}
.creator-menu-title {
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--gold-bright);
  text-align: center;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  padding-bottom: 4px;
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}
.creator-menu-btn {
  background: rgba(212,175,55,0.15);
  color: var(--cream);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s;
}
.creator-menu-btn:hover {
  background: rgba(212,175,55,0.32);
  border-color: var(--gold);
}
.creator-menu-btn-danger {
  background: rgba(180, 40, 40, 0.18);
  border-color: rgba(220, 80, 80, 0.5);
  color: #ffd6d6;
}
.creator-menu-btn-danger:hover {
  background: rgba(220, 60, 60, 0.4);
  border-color: #f08080;
}
.creator-menu-btn-cancel {
  background: transparent;
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  text-align: center;
  font-size: 0.72rem;
  margin-top: 2px;
}

/* ─── Bandeau "tu as été retiré du siège" (joueur viré) ───── */
.kicked-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(80,30,30,0.96), rgba(45,18,18,0.96));
  color: #ffe5e5;
  border: 1px solid rgba(240,128,128,0.45);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  max-width: 92vw;
}
.kicked-banner-icon { font-size: 1.05rem; }
.kicked-banner-text { line-height: 1.3; }
.kicked-banner-close {
  background: transparent;
  border: 0;
  color: #ffd2d2;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* ─── Bandeau mode déplacement (créateur) ────────────────── */
.move-mode-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(20,40,60,0.97), rgba(10,22,38,0.97));
  color: #d8ecff;
  border: 1px solid rgba(120,180,255,0.45);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  max-width: 92vw;
  animation: moveBannerPulse 1.4s ease-in-out infinite;
}
@keyframes moveBannerPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 0 rgba(120,180,255,0); }
  50%      { box-shadow: 0 6px 22px rgba(0,0,0,0.5), 0 0 16px rgba(120,180,255,0.5); }
}
.move-mode-banner-cancel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.move-mode-banner-cancel:hover { background: rgba(255,255,255,0.22); }

/* ─── État "absent" (Page Visibility / time bank) ────────────── */
.seat-plate.is-away {
  opacity: 0.55;
  filter: grayscale(0.4);
}
.seat-away-tag {
  display: inline-block;
  margin-top: 2px;
  padding: 1px 6px;
  background: rgba(80,40,40,0.85);
  color: #ffd2a8;
  border: 1px solid rgba(255,180,120,0.45);
  border-radius: 6px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  animation: awayBlink 1.4s ease-in-out infinite;
}
@keyframes awayBlink {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ─── États : siège actif, mon siège, banker, résultats ─────── */
.seat.is-current .seat-plate {
  border-color: var(--gold-bright);
  box-shadow: 0 0 22px rgba(245,215,110,0.65), 0 4px 12px rgba(0,0,0,0.6);
  animation: seatPulse 1.4s ease-in-out infinite;
}
@keyframes seatPulse {
  0%, 100% { box-shadow: 0 0 18px rgba(245,215,110,0.4), 0 4px 12px rgba(0,0,0,0.6); }
  50%      { box-shadow: 0 0 32px rgba(245,215,110,0.9), 0 4px 12px rgba(0,0,0,0.6); }
}

.seat.is-me .seat-plate {
  background: linear-gradient(180deg, rgba(40,30,8,0.95), rgba(20,14,4,0.85));
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.7), 0 0 16px rgba(212,175,55,0.35);
}
.seat.is-me .seat-pseudo::before { content: '👤 '; }
.seat.is-me .seat-pseudo { color: #fff8d8; }

.seat.is-banker .seat-plate { border-color: var(--gold); }
.seat.is-banker .seat-pseudo::before { content: '🏦 '; }

/* Place réservée au banker (le banker est en haut) */
.seat-banker-reserved {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 0.62rem;
  font-style: italic;
  color: rgba(245,215,110,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: Georgia, serif;
  line-height: 1.15;
  pointer-events: none;
}

/* Totaux par main affichés AU-DESSUS DES CARTES (au lieu du milieu).
   Cartes : bottom 28px + height 78px → top des cartes ≈ 106px.
   On place les totaux à 112px pour les positionner juste au-dessus,
   sans recouvrir les cartes. */
.seat-totals {
  position: absolute;
  bottom: 112px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 6;
  pointer-events: none;
  flex-wrap: nowrap;
}
.seat-total {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(8, 22, 14, 0.92);
  border: 1.4px solid var(--gold-dark);
  color: #f5d76e;
  font-family: Georgia, serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.55);
  white-space: nowrap;
}
.seat-total.is-current {
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(245, 215, 110, 0.85), 0 2px 4px rgba(0,0,0,0.55);
  background: rgba(40, 30, 8, 0.95);
}
.seat-total .t-hand {
  font-size: 0.6rem;
  opacity: 0.7;
  margin-right: 1px;
}
.seat-total .t-num { color: #f5d76e; }
.seat-total .t-soft { color: #fbe28b; }
.seat-total .t-bj {
  color: #fff;
  background: var(--gold);
  padding: 0 5px;
  border-radius: 6px;
  font-weight: 900;
}
.seat-total .t-bust { color: #ff6b6b; }
.seat-total .t-fold { color: var(--warning); font-style: italic; }

.seat-result {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 14px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 4;
  animation: resultPop 0.4s ease-out backwards;
}
@keyframes resultPop {
  from { opacity: 0; transform: translate(-50%, 10px) scale(0.7); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.seat-result.win { background: var(--success); color: #fff; }
.seat-result.lose { background: var(--danger); color: #fff; }
.seat-result.push { background: var(--muted); color: #111; }
.seat-result.bj { background: var(--gold); color: #111; }
.seat-result.surrender { background: var(--warning); color: #111; }

/* ─── Bandeau "mon résumé" sous la table ─────────────────────── */
.my-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(20,40,28,0.85), rgba(8,22,14,0.92));
  border: 1.5px solid var(--gold-dark);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}
.my-summary-pseudo {
  font-weight: 800;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
}
.my-summary-pseudo::before { content: '👤 '; }
.my-summary-stack { color: var(--cream); }
.my-summary-stack strong {
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin: 0 0.2rem;
}
.my-summary-bet {
  background: rgba(212,175,55,0.18);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 3px 12px;
}
.my-summary-bet strong { color: var(--gold-bright); margin: 0 0.2rem; }

.my-summary-result {
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: 12px;
}
.my-summary-result.win { background: var(--success); color: #fff; }
.my-summary-result.lose { background: var(--danger); color: #fff; }
.my-summary-result.push { background: var(--muted); color: #111; }
.my-summary-result.bj { background: var(--gold); color: #111; }
.my-summary-result.surrender { background: var(--warning); color: #111; }

/* ─── Cartes (animation slide depuis le sabot + flip) ──────── */

.hand-row {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  flex-wrap: nowrap;
  align-items: center;
  perspective: 1000px;
}

.card-piece {
  width: 60px;
  height: 84px;
  position: relative;
  transform-style: preserve-3d;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.55));
  flex-shrink: 0;
}
.card-piece.deal-anim {
  animation: dealSlideIn 0.55s cubic-bezier(0.22, 0.7, 0.3, 1.1) backwards;
}
.card-piece.deal-anim.deal-slow {
  /* utilisée pendant la phase DEALING pour un effet "carte par carte" */
  animation-duration: 0.95s;
  animation-timing-function: cubic-bezier(0.18, 0.65, 0.32, 1.05);
}
.card-piece .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.5, 0, 0.5, 1);
}
.card-piece.face-down .card-inner { transform: rotateY(180deg); }
.card-piece .card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}
.card-piece .card-back { transform: rotateY(180deg); }
.card-piece .card-svg { width: 100%; height: 100%; display: block; }

@keyframes dealSlideIn {
  0% {
    opacity: 0;
    transform:
      translate(var(--deal-from-x, 280px), var(--deal-from-y, -160px))
      rotate(var(--deal-from-rot, 18deg))
      scale(0.7);
  }
  60% { opacity: 1; }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

/* ─── Pile de jetons centrale (animation chute, sous le croupier) ─── */
.bet-chip-stack {
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 6;
}
.bet-chip-piece {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 14px;
  margin-left: -23px;
  border-radius: 23px / 7px;
  background: radial-gradient(circle at 50% 30%, #d4af37, #8a6d12);
  border: 1.5px solid rgba(0,0,0,0.5);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: chipDrop 0.55s cubic-bezier(0.5, 0, 0.5, 1.5) backwards;
}
.bet-chip-piece.r { background: radial-gradient(circle at 50% 30%, #e25a4a, #8a2818); }
.bet-chip-piece.g { background: radial-gradient(circle at 50% 30%, #4cba6a, #1a5a30); }
.bet-chip-piece.b { background: radial-gradient(circle at 50% 30%, #9560cc, #3a1862); }
.bet-chip-piece.k { background: radial-gradient(circle at 50% 30%, #555, #0a0a0a); }
@keyframes chipDrop {
  0% {
    opacity: 0;
    transform: translate(var(--from-x, 0), var(--from-y, -200px)) rotate(-30deg) scale(1.3);
  }
  55% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}

/* ─── Panneau d'actions (chips + boutons + insurance) ─────── */

.actions-panel {
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.55));
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  padding: 0.8rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.bet-display { font-size: 1rem; margin-bottom: 0.6rem; text-align: center; color: var(--cream); }
#currentBetValue { font-weight: 800; color: var(--gold-bright); font-size: 1.3rem; }
#betLimits { font-size: 0.8rem; }

.chip-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.chip {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px dashed rgba(255,255,255,0.6);
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.5),
    inset 0 -3px 6px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(255,255,255,0.2);
  transition: transform 0.1s, box-shadow 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  cursor: pointer;
}
.chip:hover:not(:disabled) { transform: translateY(-3px); }
.chip:active { transform: scale(0.92); }
.chip-1 { background: radial-gradient(circle at 35% 30%, #f5efd8, #c8bea0); color: #333; border-color: #fff; }
.chip-5 { background: radial-gradient(circle at 35% 30%, #e25a4a, #8a2818); }
.chip-25 { background: radial-gradient(circle at 35% 30%, #4cba6a, #1a5a30); }
.chip-100 { background: radial-gradient(circle at 35% 30%, #444, #0a0a0a); border-color: #888; }
.chip-500 { background: radial-gradient(circle at 35% 30%, #9560cc, #3a1862); }

.bet-actions, .play-actions, .insurance-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.play-actions .btn { min-width: 90px; }
.play-actions .btn:disabled { display: none; }

.insurance-prompt { text-align: center; font-weight: 600; margin-bottom: 0.5rem; }
.turn-timer {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  min-height: 1.2em;
}

/* ─── Banker tournant (bandeau au-dessus de la table) ─────── */

.banker-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.06));
  border: 1px solid var(--gold-dark);
  border-radius: 8px;
  margin: 0.4rem 0.9rem 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
}
.banker-badge { color: var(--gold); font-weight: 600; }
.banker-badge.is-me { color: var(--gold-bright); text-shadow: 0 0 4px rgba(245, 215, 110, 0.5); }
.banker-timer { color: var(--cream); font-variant-numeric: tabular-nums; }
.banker-timer #bankerTimerVal {
  font-weight: 800;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.banker-timer #bankerTimerVal.expired { color: var(--red-light); }
.banker-bankroll { color: var(--muted); }
.banker-bankroll strong { color: var(--gold); }
.banker-tag {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--gold-dark);
  color: var(--cream);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ─── Demandes de siège (créateur + demandeur) ─────────────── */
.pending-panel {
  margin: 0.4rem 0.9rem 0;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.18), rgba(76, 175, 80, 0.06));
  border: 1.4px solid var(--success);
  border-radius: 8px;
  font-size: 0.9rem;
}
.pending-title {
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}
.pending-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.pending-row:first-of-type { border-top: none; }
.pending-pseudo { font-weight: 700; color: var(--gold); }
.pending-seat { color: var(--muted); font-style: italic; }
.pending-actions { margin-left: auto; display: flex; gap: 0.3rem; }

.my-pending-banner {
  margin: 0.4rem 0.9rem 0;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(90deg, rgba(224, 142, 58, 0.22), rgba(224, 142, 58, 0.05));
  border: 1.4px solid var(--warning);
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.my-pending-banner .pending-icon { font-size: 1.2rem; }
.my-pending-banner strong { color: var(--gold); }
.my-pending-banner .btn { margin-left: auto; }

.seat-pending-mine {
  color: var(--warning);
  font-size: 0.7rem;
  text-align: center;
  font-style: italic;
  font-family: Georgia, serif;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

/* ─── Contrôles créateur (ajout/retrait de bots) ──────────────────── */
.creator-controls {
  margin: 0.4rem 0.9rem 0;
  padding: 0.45rem 0.7rem;
  background: rgba(20, 30, 50, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.creator-controls .bot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
}
.creator-controls .bot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  background: rgba(70, 90, 130, 0.35);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--cream);
}
.creator-controls .bot-remove {
  background: none;
  border: none;
  color: rgba(255, 100, 100, 0.85);
  cursor: pointer;
  font-weight: 700;
  padding: 0 2px;
  font-size: 0.85rem;
  line-height: 1;
}
.creator-controls .bot-remove:hover { color: #ff6464; }

.dealer-mode {
  border: 1px solid #2a4a35;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin: 0;
}
.dealer-mode legend { padding: 0 0.4rem; color: var(--gold); font-weight: 600; }
.dealer-mode .radio-row { margin: 0.3rem 0; align-items: flex-start; }
.dealer-mode small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: 1.6rem;
}
.banker-human-fields {
  margin-top: 0.4rem;
  padding: 0.5rem 0.7rem;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.banker-human-fields label { display: block; }
.banker-human-fields select {
  width: 100%;
  padding: 0.4rem;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--gold-dark);
  color: #f5d76e;
  border-radius: 4px;
  font-family: inherit;
}
.banker-human-fields small {
  display: block;
  margin-left: 0;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--muted);
  font-style: italic;
}

/* ─── Chat & emojis ──────────────────────────────────────────── */

.chat-zone {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--gold-dark);
  border-radius: 12px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chat-feed {
  max-height: 90px;
  min-height: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.chat-bubble {
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 12px;
  align-self: flex-start;
  max-width: 90%;
  animation: bubbleIn 0.2s ease;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-bubble strong { color: var(--gold-bright); margin-right: 0.4rem; font-weight: 700; }
.chat-bubble .emoji { font-size: 1.4rem; vertical-align: middle; }

.emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}
.emoji-btn {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(212,175,55,0.2);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1.3rem;
  transition: transform 0.1s, border-color 0.2s;
}
.emoji-btn:hover { border-color: var(--gold); }
.emoji-btn:active { transform: scale(0.9); }

.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #111;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  z-index: 200;
  animation: toastShow 2.5s ease;
}
@keyframes toastShow {
  0%        { opacity: 0; transform: translate(-50%, 20px); }
  10%, 90%  { opacity: 1; transform: translate(-50%, 0); }
  100%      { opacity: 0; transform: translate(-50%, 20px); }
}

/* ─── Panneau latéral de suivi de la table ───────────────────── */
.stats-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 88vw;
  height: 100vh;
  background: linear-gradient(180deg, #0c1f14 0%, #061309 100%);
  border-left: 2px solid var(--gold-dark);
  box-shadow: -8px 0 24px rgba(0,0,0,0.6);
  z-index: 150;
  padding: 1rem;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  color: #f5e9c4;
}
.stats-panel.hidden {
  display: block;
  transform: translateX(110%);
  pointer-events: none;
}
.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gold-dark);
  padding-bottom: 0.5rem;
  margin-bottom: 0.7rem;
}
.stats-header h3 {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.stats-summary {
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
}
.stats-summary strong { color: var(--gold-bright); font-size: 1.15rem; }
.stats-section h4 {
  font-family: Georgia, serif;
  color: var(--gold);
  margin: 0 0 0.4rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stats-ranking {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  counter-reset: rank;
}
.stats-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,215,110,0.18);
  border-radius: 8px;
  font-size: 0.88rem;
}
.stats-row.is-banker {
  border-color: var(--gold);
  background: rgba(245,215,110,0.08);
}
.stats-row.is-me {
  background: rgba(80, 130, 80, 0.18);
  border-color: rgba(120, 200, 120, 0.5);
}
.stats-rank {
  font-family: Georgia, serif;
  font-weight: 900;
  color: var(--gold-bright);
  text-align: center;
  font-size: 0.95rem;
}
.stats-pseudo {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-pseudo .tag-banker {
  display: inline-block;
  font-size: 0.6rem;
  padding: 1px 5px;
  margin-left: 4px;
  background: var(--gold);
  color: #1a0a04;
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.stats-stack {
  font-weight: 800;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.stats-rebuy {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.74rem;
  color: #ff9f6f;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stats-rebuy.is-zero { color: rgba(255,255,255,0.35); }

/* ─── Overlay PAUSE (couvre la table) ────────────────────────── */
.pause-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 22, 14, 0.78), rgba(0,0,0,0.92));
  z-index: 180;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pauseFadeIn 0.25s ease-out;
}
.pause-overlay.hidden { display: none; }
@keyframes pauseFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pause-card {
  background: rgba(15, 30, 18, 0.95);
  border: 3px solid var(--gold);
  border-radius: 18px;
  padding: 2.4rem 3rem;
  text-align: center;
  box-shadow: 0 0 60px rgba(245,215,110,0.35);
  animation: pausePop 0.4s cubic-bezier(0.18, 1.18, 0.32, 1.05);
}
@keyframes pausePop {
  0%   { transform: scale(0.7); opacity: 0; }
  70%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}
.pause-icon {
  font-size: 3.8rem;
  margin-bottom: 0.3rem;
}
.pause-text {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold-bright);
  letter-spacing: 0.18em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.pause-sub {
  font-size: 0.85rem;
  color: rgba(245,215,110,0.7);
  margin-top: 0.4rem;
  font-style: italic;
}
/* ─── Modal d'entrée joueur (lien partagé, /table/:id) ──────── */
.join-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 22, 14, 0.92), rgba(0,0,0,0.96));
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.join-modal.hidden { display: none; }
.join-card {
  background: rgba(15, 30, 18, 0.96);
  border: 3px solid var(--gold);
  border-radius: 18px;
  padding: 2rem 2.4rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 0 60px rgba(245,215,110,0.35);
  animation: pausePop 0.35s cubic-bezier(0.18, 1.18, 0.32, 1.05);
}
.join-card h2 {
  margin: 0 0 0.4rem;
  color: var(--gold-bright);
  font-family: Georgia, serif;
}
.join-card form { display: flex; flex-direction: column; gap: 1rem; }
.join-card label { display: flex; flex-direction: column; gap: 0.3rem; }
.join-card input {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(245,215,110,0.4);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: var(--cream);
  font-size: 1.05rem;
}
.join-card input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,215,110,0.2);
}
.join-card small { color: rgba(245,235,200,0.55); font-size: 0.8rem; }
.join-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}
.muted.small { font-size: 0.78rem; color: rgba(245,235,200,0.45); }

/* Bouton « ▶ Reprendre la partie » dans la pause-card (créateur seulement) */
.resume-btn {
  margin-top: 1.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(245,215,110,0.45);
  animation: resumePulse 1.6s ease-in-out infinite;
}
.resume-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(245,215,110,0.7);
}
@keyframes resumePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245,215,110,0.45); }
  50%      { box-shadow: 0 0 32px rgba(245,215,110,0.85); }
}

/* ─── Désignation du 1er banker (créateur uniquement) ──────── */
.banker-designate-panel {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(20, 32, 22, 0.96), rgba(8, 18, 12, 0.96));
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  text-align: center;
  z-index: 150;
  max-width: 540px;
  width: calc(100% - 2rem);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 0 4px rgba(245,215,110,0.08);
}
.banker-designate-panel.hidden { display: none; }
.bd-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin-bottom: 0.25rem;
}
.bd-sub {
  font-size: 0.85rem;
  color: rgba(245,215,110,0.75);
  margin-bottom: 0.7rem;
}
.bd-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.bd-player-btn {
  background: rgba(245,215,110,0.15);
  border: 1.5px solid rgba(245,215,110,0.5);
  color: var(--gold-bright);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.bd-player-btn:hover {
  background: rgba(245,215,110,0.3);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ─── Animation des jetons ──────────────────────────────────── */

/* Jeton fantôme qui s'envole du bouton vers la zone de mise */
.flying-chip {
  position: fixed;
  z-index: 1000;
  border-radius: 50%;
  border: 4px dashed rgba(255,255,255,0.6);
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  box-shadow:
    0 6px 14px rgba(0,0,0,0.55),
    inset 0 -3px 6px rgba(0,0,0,0.3),
    inset 0 3px 6px rgba(255,255,255,0.2);
  transition: transform 0.55s cubic-bezier(0.18, 1.18, 0.32, 1.05),
              opacity 0.55s ease-out;
  pointer-events: none;
  will-change: transform, opacity;
}
/* Couleurs réutilisées pour les jetons fantômes (cohérence) */
.flying-chip[data-chip="1"]   { background: radial-gradient(circle at 35% 30%, #f5efd8, #c8bea0); color: #333; border-color: #fff; }
.flying-chip[data-chip="5"]   { background: radial-gradient(circle at 35% 30%, #e25a4a, #8a2818); }
.flying-chip[data-chip="25"]  { background: radial-gradient(circle at 35% 30%, #4cba6a, #1a5a30); }
.flying-chip[data-chip="100"] { background: radial-gradient(circle at 35% 30%, #444, #0a0a0a); border-color: #888; }
.flying-chip[data-chip="500"] { background: radial-gradient(circle at 35% 30%, #9560cc, #3a1862); }

/* Pulse rapide d'un élément (valeur de mise courante en bas) */
@keyframes bumpPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); color: #fbe28b; }
  100% { transform: scale(1); }
}
.bump {
  display: inline-block;
  animation: bumpPulse 0.32s ease-out;
}

/* Pop sur le jeton de mise du bet spot quand la mise augmente */
@keyframes betPop {
  0%   { transform: scale(0.4) translateY(-30px); opacity: 0; }
  60%  { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}
.seat-bet.bet-pop {
  animation: betPop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1) both;
  box-shadow: 0 0 18px 4px rgba(245, 215, 110, 0.55);
}

/* ─── Bouton menu mobile (⋯) — caché sur desktop ─── */
.menu-toggle-btn {
  display: none;
  font-size: 1.4rem;
  padding: 0.3rem 0.7rem;
  line-height: 1;
}

.mobile-menu {
  position: fixed;
  top: 56px;
  right: 8px;
  z-index: 160;
  background: linear-gradient(180deg, #0c1f14 0%, #061309 100%);
  border: 1.5px solid var(--gold-dark);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
  animation: menuSlide 0.18s ease-out;
}
.mobile-menu.hidden { display: none; }
@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--cream);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}
.mobile-menu-item:hover,
.mobile-menu-item:active {
  background: rgba(212,175,55,0.12);
  border-color: var(--gold-dark);
}
.mobile-menu-item.hidden { display: none; }

/* ─── Bouton emoji compact dans my-summary ─── */
.emoji-toggle-btn {
  background: rgba(0,0,0,0.4);
  border: 1.5px solid var(--gold-dark);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.1s, border-color 0.2s;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.emoji-toggle-btn:hover { border-color: var(--gold); }
.emoji-toggle-btn:active { transform: scale(0.92); }

/* Palette emoji affichée en popover au-dessus du bouton */
.emoji-popover {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 170;
  background: linear-gradient(180deg, #0c1f14 0%, #061309 100%);
  border: 1.5px solid var(--gold-dark);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.7);
  max-width: 320px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
  animation: menuSlide 0.18s ease-out;
}
.emoji-popover.hidden { display: none; }

/* ─── Popup « plus de jetons » : Se rassoir / Quitter ─── */
.rebuy-prompt {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.92) 70%);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rngvFadeIn 0.25s ease-out;
}
.rebuy-prompt.hidden { display: none; }
.rebuy-card {
  background: linear-gradient(140deg, #2b1a08 0%, #4a2a10 50%, #2b1a08 100%);
  border: 3px solid var(--gold);
  border-radius: 18px;
  padding: 2rem 2.4rem;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow:
    0 0 40px rgba(220,180,80,0.5),
    0 16px 60px rgba(0,0,0,0.7);
  animation: rngvPop 0.4s cubic-bezier(0.18, 1.3, 0.5, 1.05);
  font-family: Georgia, serif;
}
.rebuy-icon {
  font-size: 3rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 0 12px rgba(220,180,80,0.5));
}
.rebuy-title {
  color: var(--gold-bright);
  font-size: 1.6rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.04em;
}
.rebuy-text {
  color: var(--cream);
  font-size: 1rem;
  margin: 0 0 1.2rem 0;
  line-height: 1.4;
}
.rebuy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rebuy-actions .btn { width: 100%; padding: 0.8rem 1rem; font-size: 0.95rem; }

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 760px) {
  /* La table doit dominer l'écran (~2/3) sur mobile */
  .game-area { padding: 0.4rem; gap: 0.4rem; }

  /* ─── Image de fond portrait dédiée au mobile ───
     L'image table-bg-mobile.webp (1024×1792) reproduit le visuel casino
     en orientation portrait. Le conteneur garde width:100% (sinon les
     enfants en position:absolute le font s'effondrer à 0px) et l'aspect-
     ratio pilote la hauteur — environ 1.75× la largeur. */
  .table-arena {
    background-image: url('/img/table-bg-mobile.webp');
    aspect-ratio: 1024 / 1792;
    width: 100%;
    max-width: 100%;
    max-height: none;
    min-height: 0;
    height: auto;
  }

  /* Sièges repositionnés pour le visuel portrait : espacement horizontal
     régulier (~12-14% entre sièges voisins) et descente progressive vers
     le centre. Les plaques restent sur le feutre, les cartes ne se
     chevauchent plus entre sièges adjacents. */
  .seat[data-seat="0"] { left: 14.0%; top: 56.0%; }
  .seat[data-seat="1"] { left: 22.0%; top: 62.0%; }
  .seat[data-seat="2"] { left: 35.0%; top: 67.0%; }
  .seat[data-seat="3"] { left: 50.0%; top: 69.0%; }
  .seat[data-seat="4"] { left: 65.0%; top: 67.0%; }
  .seat[data-seat="5"] { left: 78.0%; top: 62.0%; }
  .seat[data-seat="6"] { left: 86.0%; top: 56.0%; }

  .deal-shoe { width: 44px; height: 58px; right: 4%; top: 6%; }
  .deal-shoe::after { font-size: 1rem; }
  .dealer-zone { min-width: 160px; top: 3%; gap: 0.25rem; }
  .dealer-label { font-size: 0.72rem; padding: 2px 8px; }
  .dealer-hand { gap: 0; min-height: 70px; }
  .dealer-hand .card-piece { width: 44px; height: 62px; margin-left: -28px; }
  .dealer-hand .card-piece:first-child { margin-left: 0; }
  /* Cascade diagonale réduite pour mobile (cartes plus petites) */
  .dealer-hand .card-piece:nth-child(2) { transform: translateY(6px) rotate(2deg); }
  .dealer-hand .card-piece:nth-child(3) { transform: translateY(12px) rotate(4deg); }
  .dealer-hand .card-piece:nth-child(4) { transform: translateY(18px) rotate(6deg); }
  .dealer-hand .card-piece:nth-child(5) { transform: translateY(24px) rotate(8deg); }
  .dealer-hand .card-piece:nth-child(6) { transform: translateY(30px) rotate(10deg); }
  .dealer-hand .card-piece.deal-anim { transform: none; }
  .hand-total { font-size: 0.72rem; padding: 2px 8px; }
  .state-banner { font-size: 0.7rem; padding: 0.25rem 0.5rem; min-height: auto; letter-spacing: 0.04em; }

  /* ─── HUD haut compact + menu ⋯ ─── */
  .table-topbar { padding: 0.35rem 0.5rem; gap: 0.3rem; }
  .table-info { gap: 0; }
  .table-name { font-size: 0.85rem; }
  .table-settings { display: none; } /* Détails dans le menu Suivi */
  .share-block { display: none; }     /* Remplacé par le bouton ⋯ */
  .menu-toggle-btn { display: inline-flex; }

  /* Plaques compactes (pseudo + stack + tags) */
  .seat { width: 72px; }
  .seat-plate { width: 78px; padding: 2px 3px 3px; top: 22px; gap: 0px; border-radius: 7px; border-width: 1px; }
  .seat-pseudo { font-size: 0.58rem; max-width: 70px; letter-spacing: 0.02em; }
  .seat-stack { font-size: 0.55rem; }
  .seat-banker-tag { font-size: 0.5rem; margin-top: 0; }
  .seat-bot-tag { font-size: 0.45rem; padding: 0 4px; margin-top: 1px; letter-spacing: 0.06em; }

  /* Cartes plus petites + moins de chevauchement avec les sièges voisins */
  .seat-cards { bottom: 18px; height: 50px; gap: 10px; }
  .seat-cards.is-split { gap: 16px; }
  .seat-cards .hand-pile { height: 50px; }
  .seat-cards .card-piece { width: 34px; height: 48px; margin-left: -22px; }
  .seat-cards .hand-pile .card-piece:first-child { margin-left: 0; }
  /* Cascade diagonale réduite pour mobile (cartes plus petites) */
  .seat-cards .hand-pile .card-piece:nth-child(2) { transform: translateY(4px) rotate(2deg); }
  .seat-cards .hand-pile .card-piece:nth-child(3) { transform: translateY(8px) rotate(4deg); }
  .seat-cards .hand-pile .card-piece:nth-child(4) { transform: translateY(12px) rotate(6deg); }
  .seat-cards .hand-pile .card-piece:nth-child(5) { transform: translateY(16px) rotate(8deg); }
  .seat-cards .hand-pile .card-piece:nth-child(6) { transform: translateY(20px) rotate(10deg); }
  .seat-cards .hand-pile .card-piece.deal-anim { transform: none; }

  /* Total juste au-dessus des cartes (cartes top ~= bottom 18 + height 48 = 66px) */
  .seat-totals { bottom: 70px; gap: 3px; }
  .seat-total { font-size: 0.6rem; padding: 1px 5px; }
  .seat-bet { width: 36px; height: 13px; font-size: 0.55rem; }
  .seat-empty-btn { width: 60px; padding: 3px 5px; font-size: 0.55rem; }

  .my-summary { gap: 0.6rem; padding: 0.4rem 0.7rem; font-size: 0.85rem; }
  .my-summary-stack strong { font-size: 1rem; }

  .chip { width: 48px; height: 48px; font-size: 0.85rem; border-width: 3px; }
  .play-actions .btn { min-width: 75px; padding: 0.6rem 0.7rem; font-size: 0.85rem; }

  /* ─── Banker / contrôles compactés ─── */
  .banker-info { padding: 0.4rem 0.6rem; font-size: 0.78rem; gap: 0.4rem; }
  .creator-controls { padding: 0.4rem 0.6rem; gap: 0.4rem; }
  .creator-controls .btn { padding: 0.4rem 0.6rem; font-size: 0.75rem; min-width: auto; }
  .dealer-mode { font-size: 0.72rem; padding: 0.3rem 0.5rem; }

  /* ─── Chat compact : feed seul, emoji-bar en popover ─── */
  .chat-zone {
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.2rem;
    min-height: 0;
  }
  .chat-feed { max-height: 36px; gap: 0.15rem; font-size: 0.78rem; }
  .chat-bubble { font-size: 0.72rem; padding: 3px 8px; }

  /* Le popover emoji s'adapte à la largeur mobile */
  .emoji-popover { bottom: 70px; padding: 0.5rem; max-width: 90vw; }
  .emoji-btn { font-size: 1.1rem; padding: 4px 7px; }

  .emoji-toggle-btn { width: 34px; height: 34px; font-size: 1.05rem; }
}

/* ─── Très petits écrans (iPhone SE / portrait étroit) ─── */
@media (max-width: 500px) {
  .dealer-zone { min-width: 140px; top: 2%; }
  .dealer-hand { min-height: 60px; }
  .dealer-hand .card-piece { width: 38px; height: 54px; margin-left: -24px; }
  .dealer-hand .card-piece:first-child { margin-left: 0; }
  .dealer-label { font-size: 0.66rem; padding: 1px 6px; }
  .hand-total { font-size: 0.66rem; padding: 1px 6px; }
  .state-banner { font-size: 0.7rem; padding: 0.25rem 0.5rem; }

  .chat-feed { max-height: 36px; }
  .chat-bubble { font-size: 0.68rem; padding: 2px 6px; }
  .emoji-btn { font-size: 0.95rem; padding: 3px 5px; min-width: 28px; }

  .banker-info { font-size: 0.72rem; padding: 0.3rem 0.5rem; }
  .creator-controls .btn { font-size: 0.7rem; padding: 0.35rem 0.5rem; }
}

/* ─── Countdown phase de mise ──────────────────────────────────── */
.betting-countdown {
  position: fixed;
  top: 50px;
  right: 18px;
  z-index: 60;
  background: linear-gradient(140deg, rgba(0,0,0,0.78), rgba(20,30,40,0.78));
  border: 2px solid var(--gold);
  border-radius: 28px;
  padding: 0.45rem 1rem;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
  pointer-events: none;
}
.betting-countdown.warn {
  color: #ffb84a;
  border-color: #ffb84a;
  animation: countdownPulse 0.6s ease-in-out infinite alternate;
}
.betting-countdown.danger {
  color: #ff5b5b;
  border-color: #ff5b5b;
  animation: countdownPulse 0.4s ease-in-out infinite alternate;
}
@keyframes countdownPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

/* ─── Overlay « Les jeux sont faits, rien ne va plus » ──────────── */
.rngv-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.85) 70%);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rngvFadeIn 0.25s ease-out;
}
.rngv-overlay.hidden { display: none; }
@keyframes rngvFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.rngv-card {
  background: linear-gradient(140deg, #2b1a08 0%, #4a2a10 50%, #2b1a08 100%);
  border: 3px solid var(--gold);
  border-radius: 18px;
  padding: 2.4rem 3.4rem;
  text-align: center;
  box-shadow:
    0 0 40px rgba(220, 180, 80, 0.5),
    0 16px 60px rgba(0,0,0,0.7);
  animation: rngvPop 0.45s cubic-bezier(0.18, 1.3, 0.5, 1.05);
  font-family: Georgia, serif;
}
@keyframes rngvPop {
  0%   { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
.rngv-icon {
  font-size: 3.5rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 0 12px rgba(255, 100, 100, 0.6));
}
.rngv-text {
  color: var(--cream);
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}
.rngv-text-strong {
  color: var(--gold);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow:
    0 0 18px rgba(220, 180, 80, 0.55),
    0 2px 4px rgba(0,0,0,0.7);
}
@media (max-width: 700px) {
  .rngv-card { padding: 1.6rem 1.6rem; }
  .rngv-icon { font-size: 2.5rem; }
  .rngv-text { font-size: 1rem; }
  .rngv-text-strong { font-size: 1.5rem; letter-spacing: 0.08em; }
  .betting-countdown { top: 50px; right: 8px; font-size: 0.95rem; padding: 0.35rem 0.7rem; }
}
