:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark: #8a6a2a;
  --gold-glow: rgba(201,168,76,0.25);
  --bg: #0d0a05;
  --panel: linear-gradient(160deg, #1e1508, #120e04);
  --panel2: linear-gradient(160deg, #261c09, #160f04);
  --border: #5a4018;
  --border-bright: #8a6a2a;
  --felt: #0a2a12;
  --felt2: #0d3316;
  --red: #c0392b;
  --red-light: #e74c3c;
  --text: #d4a843;
  --text-dim: #7a5820;
  --success: #27ae60;
  --danger: #c0392b;
  --info: #2980b9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse at 20% 10%, #1a1005 0%, transparent 60%),
    radial-gradient(ellipse at 80% 90%, #0f0a03 0%, transparent 60%);
  min-height: 100vh;
  font-family: 'Rajdhani', sans-serif;
  color: var(--gold-light);
  padding-bottom: 60px;
}

/* ─── HEADER ─── */
.header {
  text-align: center;
  padding: 22px 20px 14px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #1a1208 0%, transparent 100%);
  position: relative;
}
.header::after {
  content: '♠ ♥ ♦ ♣';
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.5em; color: var(--gold-dark);
}
h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(201,168,76,0.5), 0 0 60px rgba(201,168,76,0.2);
  letter-spacing: 0.08em;
}
.subtitle {
  font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--gold-dark); text-transform: uppercase; margin-top: 4px;
}

/* ─── SETUP SCREEN ─── */
#setup-screen {
  max-width: 700px; margin: 40px auto; padding: 0 16px;
}
.setup-card {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 0 60px rgba(201,168,76,0.08), inset 0 0 40px rgba(0,0,0,0.5);
}
.setup-title {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem; letter-spacing: 0.15em;
  color: var(--gold); text-align: center; margin-bottom: 28px;
  text-transform: uppercase;
}
.setup-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px;
}
.setup-group { display: flex; flex-direction: column; gap: 8px; }
.setup-group.full { grid-column: 1 / -1; }
.setup-label {
  font-size: 0.72rem; letter-spacing: 0.25em; color: var(--gold-dark);
  text-transform: uppercase; font-weight: 600;
}
.setup-select, .setup-input {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--gold-light);
  padding: 10px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  appearance: none; cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.setup-select:focus, .setup-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201,168,76,0.2);
}
.setup-select option { background: #1a1208; }

.player-count-grid {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.player-btn {
  flex: 1; min-width: 44px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  font-size: 1rem; font-weight: 700;
  padding: 10px 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.player-btn:hover { border-color: var(--gold-dark); color: var(--gold-light); }
.player-btn.active {
  background: linear-gradient(135deg, #3d2c0e, #1e1508);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 16px rgba(201,168,76,0.2);
}

.btn-start {
  width: 100%;
  background: linear-gradient(135deg, #c9a84c, #8a6a2a);
  border: none; border-radius: 12px;
  color: #0d0a05;
  font-family: 'Cinzel', serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-start:hover {
  background: linear-gradient(135deg, #e8c97a, #c9a84c);
  box-shadow: 0 6px 30px rgba(201,168,76,0.5);
  transform: translateY(-1px);
}

/* ─── GAME SCREEN ─── */
#game-screen { display: none; padding: 16px; max-width: 1400px; margin: 0 auto; }

.game-layout { display: flex; gap: 16px; align-items: flex-start; }

/* ─── TABLE ─── */
.table-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Felt Table */
.felt-table {
  background: radial-gradient(ellipse at center, var(--felt2) 0%, var(--felt) 70%, #061a0a 100%);
  border: 3px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.8), inset 0 0 60px rgba(0,0,0,0.3);
  min-height: 260px;
}
.felt-table::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 18px; pointer-events: none;
}

.pot-display {
  text-align: center; margin-bottom: 16px;
}
.pot-label { font-size: 0.65rem; letter-spacing: 0.3em; color: var(--gold-dark); text-transform: uppercase; }
.pot-amount {
  font-family: 'Cinzel', serif; font-size: 1.5rem; font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

/* Community cards */
.community-area { margin-bottom: 16px; }
.community-label { font-size: 0.65rem; letter-spacing: 0.3em; color: rgba(201,168,76,0.5); text-transform: uppercase; text-align: center; margin-bottom: 8px; }
.community-cards {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}

/* AI players row */
.ai-players-row {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 12px;
}
.ai-player {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  min-width: 80px;
  transition: all 0.3s;
}
.ai-player.active-turn {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.05);
}
.ai-player.folded { opacity: 0.35; }
.ai-player.dealer-mark { position: relative; }
.ai-player.dealer-mark::after {
  content: 'D';
  position: absolute; top: -8px; right: -8px;
  background: var(--gold); color: #0d0a05;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 0.6rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif;
}
.ai-name { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--gold-dark); text-transform: uppercase; }
.ai-chips { font-family: 'Cinzel', serif; font-size: 0.85rem; color: var(--gold-light); font-weight: 700; }
.ai-action {
  font-size: 0.65rem; letter-spacing: 0.1em;
  margin-top: 2px;
  min-height: 14px;
}
.ai-action.fold { color: var(--red-light); }
.ai-action.call { color: #3498db; }
.ai-action.raise { color: var(--gold); }
.ai-action.check { color: var(--success); }
.ai-action.allin { color: #e74c3c; font-weight: 700; }
.ai-cards-back {
  display: flex; gap: 3px; justify-content: center; margin-top: 4px;
}
.card-back-mini {
  width: 14px; height: 20px; border-radius: 2px;
  background: linear-gradient(135deg, #1a3a8f, #0d2060);
  border: 1px solid #2a4ab0;
}

/* CARD styles */
.card {
  width: 64px; height: 92px;
  background: #fff;
  border-radius: 8px;
  border: 2px solid #ddd;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
  user-select: none;
}
.card.large { width: 76px; height: 108px; font-size: 1.7rem; }
.card.red { color: #c0392b; }
.card.black { color: #1a1a1a; }
.card.hidden {
  background: linear-gradient(135deg, #1a3a8f, #0d2060);
  border-color: #2a4ab0;
}
.card .rank { font-family: 'Cinzel', serif; font-size: 1rem; line-height: 1; }
.card .suit { font-size: 1.3rem; line-height: 1; }
.card .corner-tl {
  position: absolute; top: 4px; left: 5px;
  font-size: 0.65rem; line-height: 1.1; text-align: center;
  font-family: 'Cinzel', serif; font-weight: 700;
}
.card .corner-br {
  position: absolute; bottom: 4px; right: 5px;
  font-size: 0.65rem; line-height: 1.1; text-align: center;
  transform: rotate(180deg);
  font-family: 'Cinzel', serif; font-weight: 700;
}
.card.deal-anim { animation: dealCard 0.4s ease-out; }
@keyframes dealCard {
  from { transform: scale(0.5) translateY(-30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ─── PLAYER HAND ─── */
.player-area {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 30px rgba(201,168,76,0.06);
}
.player-info-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.player-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem; letter-spacing: 0.15em; color: var(--gold);
}
.player-chips-big {
  font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--gold-light);
}
.player-cards-row { display: flex; gap: 10px; margin-bottom: 14px; }
.hand-strength {
  text-align: center; margin-bottom: 12px;
  padding: 8px; border-radius: 8px;
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
}
.hand-name {
  font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 700;
  color: var(--gold-light); text-shadow: 0 0 12px rgba(201,168,76,0.4);
}
.hand-rank-stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; margin-top: 2px; }

/* ACTION BUTTONS */
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn {
  flex: 1; min-width: 70px;
  border: none; border-radius: 10px;
  font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-fold { background: linear-gradient(135deg, #4a1010, #2a0808); color: #e74c3c; border: 1px solid #6a1515; }
.btn-fold:hover { background: linear-gradient(135deg, #6a1515, #3a0a0a); box-shadow: 0 0 12px rgba(231,76,60,0.3); }
.btn-check { background: linear-gradient(135deg, #0a3a18, #052010); color: #27ae60; border: 1px solid #0f5a28; }
.btn-check:hover { background: linear-gradient(135deg, #0f5a28, #082a15); box-shadow: 0 0 12px rgba(39,174,96,0.3); }
.btn-call { background: linear-gradient(135deg, #0a1e3a, #051025); color: #3498db; border: 1px solid #0f2d60; }
.btn-call:hover { background: linear-gradient(135deg, #0f2d60, #082040); box-shadow: 0 0 12px rgba(52,152,219,0.3); }
.btn-raise { background: linear-gradient(135deg, #3d2c0e, #1e1508); color: var(--gold-light); border: 1px solid var(--gold-dark); }
.btn-raise:hover { background: linear-gradient(135deg, #5a4018, #2a1a08); box-shadow: 0 0 12px rgba(201,168,76,0.3); }
.btn-allin { background: linear-gradient(135deg, #5a1010, #3a0808); color: #ff6b6b; border: 1px solid #8a1515; }
.btn-allin:hover { box-shadow: 0 0 16px rgba(255,107,107,0.4); }
.action-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.raise-slider-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.raise-slider {
  flex: 1;
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  outline: none;
}
.raise-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); cursor: pointer;
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}
.raise-amount {
  font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 700;
  color: var(--gold-light); min-width: 60px; text-align: right;
}

/* ─── RIGHT COLUMN: Analysis ─── */
.analysis-col {
  flex: 0 0 320px;
  display: flex; flex-direction: column; gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 0 30px rgba(201,168,76,0.05);
}
.panel-title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 12px;
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.panel-title .icon { font-size: 0.9rem; }

/* RECOMMENDATION */
.recommendation-box {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid;
  margin-bottom: 10px;
}
.rec-fold { background: rgba(192,57,43,0.1); border-color: var(--red); }
.rec-call { background: rgba(41,128,185,0.1); border-color: #2980b9; }
.rec-raise { background: rgba(201,168,76,0.1); border-color: var(--gold); }
.rec-check { background: rgba(39,174,96,0.1); border-color: var(--success); }
.rec-label { font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.rec-action {
  font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.rec-fold .rec-action { color: #e74c3c; }
.rec-call .rec-action { color: #3498db; }
.rec-raise .rec-action { color: var(--gold-light); }
.rec-check .rec-action { color: var(--success); }
.rec-reason { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }

/* EV display */
.ev-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.ev-label { font-size: 0.72rem; color: var(--text-dim); }
.ev-value { font-family: 'Cinzel', serif; font-size: 0.82rem; font-weight: 700; }
.ev-pos { color: var(--success); }
.ev-neg { color: var(--red-light); }
.ev-neu { color: var(--gold); }

/* PROBABILITIES */
.prob-bars { display: flex; flex-direction: column; gap: 6px; }
.prob-row { display: flex; align-items: center; gap: 8px; }
.prob-name { font-size: 0.72rem; color: var(--text-dim); min-width: 100px; }
.prob-bar-wrap { flex: 1; height: 6px; background: rgba(0,0,0,0.4); border-radius: 3px; overflow: hidden; }
.prob-bar { height: 100%; border-radius: 3px; background: var(--gold); transition: width 0.6s ease; }
.prob-bar.high { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.prob-bar.med { background: linear-gradient(90deg, #5a4018, var(--gold-dark)); }
.prob-bar.low { background: linear-gradient(90deg, #2a1808, #5a3015); }
.prob-pct { font-size: 0.72rem; color: var(--gold-light); font-weight: 700; min-width: 36px; text-align: right; font-family: 'Cinzel', serif; }

/* ACHIEVED HAND BAR */
.prob-bar.achieved {
  background: linear-gradient(90deg, #1a6b35, #27ae60) !important;
  box-shadow: 0 0 6px rgba(39,174,96,0.5);
}
.prob-row.achieved-row .prob-name { color: #2ecc71; font-weight: 700; }
.prob-row.achieved-row .prob-pct { color: #2ecc71; }
.achieved-badge {
  font-size: 0.55rem; background: rgba(39,174,96,0.2); color: #2ecc71;
  border: 1px solid #27ae60; border-radius: 3px; padding: 1px 4px;
  margin-left: 4px; letter-spacing: 0.08em; vertical-align: middle;
  font-weight: 700;
}

/* ODDS TABLE */
.odds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.odds-item {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 8px;
}
.odds-item-label { font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.odds-item-value { font-family: 'Cinzel', serif; font-size: 0.9rem; font-weight: 700; color: var(--gold-light); margin-top: 2px; }
.odds-item.win-item { border-color: var(--gold-dark); background: rgba(201,168,76,0.06); }
.odds-item.win-item .odds-item-label { color: var(--gold-dark); }
.odds-item.win-item .odds-item-value { color: var(--gold-light); font-size: 1.1rem; }

/* WIN PROBABILITY BAR */
.win-prob-wrap { margin-top: 8px; }
.win-prob-track {
  height: 8px; background: rgba(0,0,0,0.4); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--border); margin-top: 4px; position: relative;
}
.win-prob-fill {
  height: 100%; border-radius: 4px; transition: width 0.8s ease;
  background: linear-gradient(90deg, #8a6a2a, #27ae60);
  position: relative;
}
.win-prob-label { font-size: 0.62rem; color: var(--text-dim); display: flex; justify-content: space-between; margin-top: 3px; }

/* EV CHART PANEL */
.ev-chart-container { position: relative; width: 100%; }
canvas#ev-chart {
  width: 100% !important; height: 160px !important;
  border-radius: 8px; display: block;
}
.ev-chart-legend {
  display: flex; gap: 12px; margin-top: 6px; flex-wrap: wrap;
}
.ev-legend-item { display: flex; align-items: center; gap: 4px; font-size: 0.65rem; color: var(--text-dim); }
.ev-legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.ev-optimal-label {
  font-size: 0.72rem; color: var(--gold); text-align: center; margin-top: 6px;
  font-family: 'Cinzel', serif; letter-spacing: 0.05em;
}

/* HAND HISTORY LOG */
.log-area { max-height: 140px; overflow-y: auto; }
.log-area::-webkit-scrollbar { width: 4px; }
.log-area::-webkit-scrollbar-track { background: transparent; }
.log-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.log-entry { font-size: 0.72rem; color: var(--text-dim); padding: 3px 0; border-bottom: 1px solid rgba(90,64,24,0.2); line-height: 1.4; }
.log-entry .player-tag { color: var(--gold); font-weight: 600; }
.log-entry .amount-tag { color: var(--gold-light); }

/* PHASE INDICATOR */
.phase-row { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.phase-dot {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); padding: 4px 8px; border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  transition: all 0.3s;
}
.phase-dot.active {
  color: var(--gold-light); border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  box-shadow: 0 0 10px rgba(201,168,76,0.2);
}
.phase-dot.done { color: var(--gold-dark); border-color: var(--gold-dark); }

/* BLINDS INFO */
.blinds-info { text-align: center; font-size: 0.7rem; color: var(--text-dim); margin-bottom: 8px; }

/* RESULT MODAL */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 100;
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: linear-gradient(160deg, #2a1f0a, #140e04);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 36px;
  max-width: 480px; width: 90%;
  text-align: center;
  box-shadow: 0 0 80px rgba(201,168,76,0.3);
  animation: modalIn 0.4s ease-out;
}
@keyframes modalIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-family: 'Cinzel Decorative', serif; font-size: 1.5rem; margin-bottom: 8px; }
.modal-win { color: var(--gold-light); text-shadow: 0 0 30px rgba(201,168,76,0.6); }
.modal-lose { color: #e74c3c; text-shadow: 0 0 30px rgba(231,76,60,0.4); }
.modal-hands-reveal { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
.modal-hand-group { text-align: center; }
.modal-hand-name { font-family: 'Cinzel', serif; font-size: 0.75rem; color: var(--gold-dark); margin-bottom: 6px; letter-spacing: 0.1em; text-transform: uppercase; }
.modal-cards { display: flex; gap: 4px; justify-content: center; }
.modal-amount { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; margin: 12px 0; }
.modal-amount.win-amt { color: var(--success); }
.modal-amount.lose-amt { color: var(--red-light); }
.modal-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.modal-btn {
  background: linear-gradient(135deg, var(--gold-dark), #5a4018);
  border: none; border-radius: 10px;
  color: #0d0a05; font-family: 'Cinzel', serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 10px 22px; cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}
.modal-btn:hover { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); transform: translateY(-1px); }
.modal-btn.secondary { background: rgba(0,0,0,0.4); color: var(--gold-dark); border: 1px solid var(--border); }

/* TOOLTIP for math */
.math-note {
  font-size: 0.68rem; color: var(--text-dim); font-style: italic;
  margin-top: 6px; line-height: 1.5;
  border-left: 2px solid var(--border); padding-left: 8px;
}
.formula-display {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 10px; margin-top: 6px;
  font-size: 0.7rem; color: var(--gold-dark); font-style: italic;
  text-align: center;
}

/* chips animation */
@keyframes chipFly {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-40px) scale(0.5); opacity: 0; }
}

/* Nav back */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold-dark);
  text-decoration: none; text-transform: uppercase;
  transition: color 0.2s; padding: 8px 16px;
}
.back-link:hover { color: var(--gold); }

/* Responsive */
@media (max-width: 900px) {
  .game-layout { flex-direction: column; }
  .analysis-col { flex: none; width: 100%; }
  .setup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .card { width: 52px; height: 74px; }
  .card .rank { font-size: 0.8rem; }
  .card .suit { font-size: 1rem; }
}

.badge {
  display: inline-block; font-size: 0.6rem; padding: 2px 6px;
  border-radius: 4px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; margin-left: 6px;
}
.badge-sb { background: rgba(41,128,185,0.2); color: #3498db; border: 1px solid #2980b9; }
.badge-bb { background: rgba(201,168,76,0.2); color: var(--gold); border: 1px solid var(--gold-dark); }

.current-bet-row {
  display: flex; justify-content: space-between; margin-bottom: 8px;
  padding: 6px 10px; background: rgba(0,0,0,0.3); border-radius: 8px;
  border: 1px solid var(--border);
}
.current-bet-label { font-size: 0.7rem; color: var(--text-dim); }
.current-bet-val { font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 700; color: var(--gold-light); }
@media(max-width:768px){.game-layout{flex-direction:column!important;}.analysis-col{flex:1!important;width:100%!important;max-height:40vh;overflow-y:auto;}}
