:root {
  --bg-obsidian: #070b0a;
  --bg-card: #0e1513;
  --bg-card-elevated: #141e1b;
  --felt-light: #176844;
  --felt-mid: #0e472e;
  --felt-dark: #072819;
  --rail-leather: #1b1512;
  --gold-bright: #f5d97e;
  --gold-main: #d4af37;
  --gold-deep: #967318;
  --text-ivory: #f7f3e8;
  --text-muted: #9aa8a1;
  --crimson: #c9303b;
  --emerald: #1ea368;
  --royal: #2d6cdf;
  --border-gold: rgba(212, 175, 55, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-lux: 0 14px 36px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 50% 0%, #111d19 0%, var(--bg-obsidian) 70%);
  color: var(--text-ivory);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100dvh;
  overflow-x: hidden;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}

/* ==================== TOPBAR ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: rgba(9, 14, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-gold);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}

.brand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-main);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--gold-main);
}

.brand-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.icon-pill.active {
  border-color: var(--gold-main);
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-bright);
}

@media (max-width: 430px) {
  .hide-xs { display: none; }
}

/* ==================== LAYOUT & CARDS ==================== */
.main-stage {
  flex: 1;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 960px) {
  .cockpit-grid {
    grid-template-columns: 430px minmax(0, 1fr);
    align-items: stretch;
  }
}

.card {
  background: linear-gradient(180deg, rgba(21, 31, 28, 0.95) 0%, rgba(12, 18, 16, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lux);
  min-width: 0;
  max-width: 100%;
}

/* ==================== HORLOGE DES BLINDES ==================== */
.blind-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.blind-card.warn-minute {
  border-color: #e89b2d;
  box-shadow: 0 0 24px rgba(232, 155, 45, 0.24);
}

.blind-card.is-break {
  border-color: #3da5d9;
}

.blind-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.level-badge {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(150, 115, 24, 0.14));
  border: 1px solid var(--gold-main);
  color: var(--gold-bright);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.meta-pills {
  display: flex;
  gap: 6px;
}

.meta-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.meta-pill.gold {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
}

.clock-wrap {
  text-align: center;
  padding: 4px 0 2px;
}

.clock-time {
  font-variant-numeric: tabular-nums;
  font-size: clamp(50px, 11vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--text-ivory);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.blind-card.warn-minute .clock-time {
  color: #ffb347;
  animation: pulseClock 1s infinite alternate;
}

@keyframes pulseClock {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.82; transform: scale(1.02); }
}

.clock-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.clock-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold-main));
  border-radius: 999px;
  transition: width 0.35s linear;
}

.clock-controls {
  display: grid;
  grid-template-columns: 42px 48px 1fr 48px 42px;
  gap: 6px;
}

.ctrl-btn {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 10px;
  font-weight: 700;
  font-size: 13px;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.ctrl-btn:active {
  transform: scale(0.97);
}

.ctrl-btn.primary-play {
  background: linear-gradient(135deg, #e5c158 0%, #b5891d 100%);
  color: #0b0e0d;
  border: none;
  font-weight: 900;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.ctrl-btn.primary-play.running {
  background: linear-gradient(135deg, #25855a 0%, #175c3d 100%);
  color: #ffffff;
}

.ctrl-btn.gold-btn {
  background: linear-gradient(135deg, #e5c158, #b5891d);
  color: #0a0d0c;
  border: none;
  font-weight: 800;
}

.ctrl-btn.danger {
  border-color: rgba(201, 48, 59, 0.5);
  color: #ff8b94;
}

/* Cartes SB & BB */
.blinds-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.blind-box {
  background: rgba(7, 12, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bb-box {
  border-color: rgba(212, 175, 55, 0.42);
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.11), rgba(7, 12, 11, 0.8));
}

.blind-box-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.ante-tag {
  background: rgba(212, 175, 55, 0.22);
  color: var(--gold-bright);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 3px;
}

.blind-box-val {
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 5.5vw, 36px);
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1.05;
}

.blind-box-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
}

.blind-box-chips .dg-chip-svg {
  margin-left: -8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}
.blind-box-chips .dg-chip-svg:first-child {
  margin-left: 0;
}

.blind-box-who {
  font-size: 11.5px;
  font-weight: 700;
  color: #d6dfd9;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-blind-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 7px 10px;
  border-radius: 9px;
}

.avg-stack-tag {
  color: var(--gold-bright);
  font-weight: 700;
}

/* Mini bandeau des jetons DG */
.mini-chipset-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 9px;
}

.mini-chipset-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.9px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold-main);
  font-size: 11.5px;
  font-weight: 700;
  padding: 0;
}

.mini-chipset-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-chip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mini-chip-item:hover {
  transform: translateY(-2px);
}

.mini-chip-item span {
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-ivory);
}

/* ==================== TABLE DE POKER OVALE (5-6 JOUEURS) ==================== */
.table-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.seat-count-switch {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.seg-btn {
  background: transparent;
  border: none;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.seg-btn.active {
  background: rgba(212, 175, 55, 0.22);
  color: var(--gold-bright);
}

.table-quick-tools {
  display: flex;
  gap: 6px;
}

.tool-chip-btn {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.tool-chip-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.table-arena {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: clamp(360px, 52vw, 470px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 34px;
  user-select: none;
}

.poker-felt {
  width: 100%;
  height: 100%;
  max-width: 720px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, var(--felt-light) 0%, var(--felt-mid) 62%, var(--felt-dark) 100%);
  border: 13px solid var(--rail-leather);
  box-shadow:
    inset 0 0 38px rgba(0, 0, 0, 0.65),
    0 0 0 2px var(--gold-deep),
    0 16px 36px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  position: relative;
}

.felt-inner-ring {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 175, 55, 0.34);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  text-align: center;
}

.felt-watermark {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.felt-dg {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  letter-spacing: 3px;
  color: rgba(245, 217, 126, 0.32);
  line-height: 1;
}

.felt-sub {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: rgba(245, 217, 126, 0.28);
}

.street-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.street-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent;
  cursor: pointer;
}

.street-pill.active {
  background: rgba(212, 175, 55, 0.28);
  color: var(--gold-bright);
  border-color: var(--gold-main);
}

.board-cards {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

.board-card {
  width: 24px;
  height: 33px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(9, 18, 14, 0.55);
  color: rgba(212, 175, 55, 0.45);
  transition: all 0.2s ease;
}

.board-card.dealt {
  background: linear-gradient(160deg, #ffffff 0%, #eae2d0 100%);
  color: #141817;
  border-color: var(--gold-main);
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.board-card.dealt.red-suit {
  color: #b9252f;
}

.turn-spotlight {
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(8, 12, 11, 0.78);
  border: 1px solid var(--gold-main);
  color: var(--gold-bright);
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sièges autour de l'ovale */
.seats-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.seat-node {
  position: absolute;
  left: clamp(52px, calc(var(--sx) * 1%), calc(100% - 52px));
  top: clamp(38px, calc(var(--sy) * 1%), calc(100% - 38px));
  transform: translate(-50%, -50%);
  width: clamp(94px, 19vw, 128px);
  background: rgba(12, 18, 16, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  padding: 6px 8px;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: transform 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.seat-node:hover {
  transform: translate(-50%, -52%);
}

.seat-node.is-acting {
  border-color: var(--gold-bright);
  box-shadow:
    0 0 0 3px rgba(245, 217, 126, 0.28),
    0 8px 24px rgba(212, 175, 55, 0.45);
  z-index: 6;
}

.seat-node.is-folded {
  opacity: 0.48;
  filter: grayscale(0.5);
}

.seat-node.is-out {
  opacity: 0.34;
  border-style: dashed;
}

.seat-node.is-allin {
  border-color: #ff5b67;
  box-shadow: 0 0 16px rgba(255, 91, 103, 0.45);
}

.seat-top-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
}

.pos-badge {
  font-size: 9.5px;
  font-weight: 900;
  padding: 1.5px 6px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.12);
  color: #dfe6e2;
}

.pos-badge.dealer, .pos-badge.dealer-sb {
  background: linear-gradient(135deg, #fff6dc, #d9b650);
  color: #111514;
}

.pos-badge.sb {
  background: #2358a8;
  color: #ffffff;
}

.pos-badge.bb {
  background: #b57c16;
  color: #ffffff;
}

.seat-name {
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-status-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 1px;
}

.seat-node.is-acting .seat-status-sub {
  color: var(--gold-bright);
}

.seat-node.is-allin .seat-status-sub {
  color: #ff8b94;
}

/* Petit jeton DG posé devant le joueur (Dealer / SB / BB) */
.seat-chip-puck {
  position: absolute;
  left: calc(50% + var(--puck-dx, 0px));
  top: calc(50% + var(--puck-dy, 36px));
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

/* Commandes de tour sous la table */
.turn-controls-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.street-action-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

@media (max-width: 560px) {
  .main-stage {
    padding: 8px;
  }
  .card {
    padding: 11px;
  }
  .topbar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .icon-pill {
    padding: 6px 9px;
  }
  .clock-controls {
    grid-template-columns: 38px 44px minmax(0, 1fr) 44px 38px;
    gap: 5px;
  }
  .ctrl-btn {
    padding: 9px 6px;
    font-size: 12px;
  }
  .table-arena {
    padding: 40px 14px;
    min-height: 340px;
  }
  .poker-felt {
    border-width: 9px;
    padding: 10px 14px;
  }
  .seat-node {
    left: clamp(50px, calc(var(--sx) * 1%), calc(100% - 50px));
    width: 98px;
    padding: 5px 6px;
  }
  .seat-name {
    font-size: 11.5px;
  }
  .street-action-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hand-master-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }
}

.act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card-elevated);
}

.act-btn.fold { border-color: rgba(201, 48, 59, 0.45); color: #ff9ba3; }
.act-btn.call { border-color: rgba(30, 163, 104, 0.55); background: rgba(30, 163, 104, 0.16); color: #8bf0c1; }
.act-btn.raise { border-color: rgba(212, 175, 55, 0.5); color: var(--gold-bright); }
.act-btn.allin { border-color: rgba(220, 68, 55, 0.6); color: #ffd166; }

.hand-master-row {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 8px;
}

.next-street-btn {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 11px 10px;
  font-weight: 800;
  font-size: 13px;
  color: var(--gold-bright);
}

.next-hand-btn {
  background: linear-gradient(135deg, #f0cf6e 0%, #bd8f1f 100%);
  color: #0b0e0d;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.next-hand-btn small {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
}

/* ==================== ONGLET JETONS DG & CAVE ==================== */
.chips-hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  margin-bottom: 14px;
  min-height: 195px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lux);
}

.chips-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.chips-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px 18px 16px;
  background: linear-gradient(0deg, rgba(7, 11, 10, 0.95) 12%, rgba(7, 11, 10, 0.35) 75%, transparent 100%);
}

.gold-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--gold-main);
}

.chips-hero-overlay h2 {
  margin: 4px 0 5px;
  font-family: Georgia, serif;
  font-size: clamp(19px, 3.5vw, 26px);
}

.chips-hero-overlay p {
  margin: 0;
  font-size: 13px;
  color: #d6dfd9;
  max-width: 680px;
}

.section-grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 920px) {
  .section-grid-two {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.card-head-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head-flex.wrap { flex-wrap: wrap; }

.card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.muted {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.lux-select, .lux-input {
  background: #090e0d;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-ivory);
}

.dg-chips-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 12px;
}

.chip-card {
  background: rgba(7, 12, 11, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease;
}

.chip-card.inactive {
  opacity: 0.42;
}

.chip-card:hover {
  border-color: var(--gold-main);
}

.chip-preview-btn {
  background: none;
  border: none;
  padding: 0;
}

.chip-edit-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chip-edit-controls input,
.chip-edit-controls select {
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  padding: 5px 6px;
}

.chip-card-foot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
}

.special-tokens-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.stack-input-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 120px;
}

.stack-input-group label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
}

.stack-dist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 12px;
}

.dist-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dist-qty {
  font-size: 18px;
  font-weight: 900;
  color: var(--gold-bright);
}

.dist-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.stack-dist-summary {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.11);
  border: 1px solid var(--border-gold);
  font-size: 13px;
  line-height: 1.45;
}

/* ==================== ONGLET BLINDES ==================== */
.structure-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.quick-duration-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mini-pill-btn {
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.levels-table-wrap {
  overflow-x: auto;
}

.levels-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.levels-table th,
.levels-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.levels-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
}

.levels-table tr.current-row {
  background: rgba(212, 175, 55, 0.14);
}

.levels-table input {
  width: 74px;
  background: #080c0b;
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 5px 6px;
  font-weight: 700;
}

.levels-footer-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==================== ONGLET JOUEURS & CAGNOTTE ==================== */
.seat-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
}

.players-edit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.player-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 7px 10px;
}

.seat-num-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.player-edit-row input {
  flex: 1;
  min-width: 0;
}

.players-actions-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.payout-box {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 12px;
  font-size: 13.5px;
}

.subhead {
  margin: 16px 0 8px;
  font-size: 14px;
  color: var(--gold-bright);
}

.elim-log {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==================== BARRE DE NAVIGATION BASSE ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 12, 11, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-gold);
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom, 0px));
}

.nav-tab {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 10px;
}

.nav-tab .nav-ico {
  font-size: 18px;
}

.nav-tab.active {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.13);
}

/* ==================== MODALES & TOAST ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-sheet {
  width: 100%;
  max-width: 420px;
  max-height: 88dvh;
  overflow-y: auto;
  background: #101816;
  border: 1px solid var(--gold-main);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-lux);
}

.modal-sheet.wide-sheet { max-width: 560px; }
.modal-sheet.center-sheet { text-align: center; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-head h3 { margin: 0; }

.close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
}

.inline-input-row {
  display: flex;
  gap: 8px;
}
.inline-input-row input { flex: 1; }

.modal-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.chip-zoom-stage {
  display: flex;
  justify-content: center;
  padding: 12px 0 18px;
}

.hands-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hand-rank-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 11px;
}

.hand-rank-cards {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  color: var(--gold-bright);
  white-space: nowrap;
}

.toast {
  position: fixed;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  background: rgba(16, 25, 22, 0.96);
  border: 1px solid var(--gold-main);
  color: var(--gold-bright);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-lux);
}
