/* ===========================
   Casino – Global Styles
   Dark/Clandestino Theme
   =========================== */
:root {
  --bg:        #05060a;   /* page background */
  --surface:   #0d0f18;   /* header, game container */
  --surface2:  #151828;   /* cards, panels */
  --surface3:  #1e2238;   /* inputs, deeper UI */
  --gold:      #f0c040;
  --gold2:     #e0a820;
  --neon-red:  #ff2244;
  --neon-red2: #cc1133;
  --red:       #e03030;
  --green:     #24a35a;
  --green2:    #1c8047;
  --text:      #e8e8f0;
  --muted:     #7878a0;
  --radius:    12px;
  --shadow:    0 8px 32px rgba(0,0,0,.7);
  --transition: .25s ease;
}

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

html { font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Ambient background ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 60%, rgba(255,34,68,.03) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(240,192,64,.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 90%, rgba(255,34,68,.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: ambientShift 12s ease-in-out infinite alternate;
}
@keyframes ambientShift {
  0%   { opacity: .6; }
  100% { opacity: 1; }
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }

/* ─── Header ─── */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid rgba(255,34,68,.15);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
  box-shadow: 0 2px 20px rgba(255,34,68,.06);
}
#header .logo {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(240,192,64,.4);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: text-shadow .3s ease;
}
#header .logo:hover {
  text-shadow: 0 0 28px rgba(240,192,64,.7), 0 0 60px rgba(240,192,64,.2);
}
#header .logo span { color: var(--text); }

#balance-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid rgba(240,192,64,.22);
  border-radius: 40px;
  padding: 6px 18px 6px 10px;
}
#balance-wrap .coin { font-size: 1.3rem; }
#balance-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
#balance-amount {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 80px;
  text-align: right;
  transition: transform .25s ease, color .3s ease;
}
#balance-amount.bump-up {
  animation: balanceBumpUp .5s ease;
  color: var(--green);
}
#balance-amount.bump-down {
  animation: balanceBumpDown .5s ease;
  color: var(--red);
}
@keyframes balanceBumpUp {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes balanceBumpDown {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}

/* ─── Lobby ─── */
#lobby {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.game-card {
  background: linear-gradient(135deg, rgba(17,19,32,.95), rgba(26,29,46,.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: cardEntrance .5s ease forwards;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(240,192,64,.06) 45%, transparent 50%);
  background-size: 250% 100%;
  z-index: 2;
  pointer-events: none;
  transition: background-position .6s ease;
}
.game-card:hover::before {
  background-position: -100% 0;
}
@keyframes cardEntrance {
  to { opacity: 1; transform: translateY(0); }
}
.game-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 30px rgba(255,34,68,.1);
  border-color: rgba(255,34,68,.4);
}
.game-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}
.game-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.game-card .info { padding: 12px 14px 14px; }
.game-card .name { font-weight: 700; font-size: 1rem; }
.game-card .meta { font-size: .8rem; color: var(--muted); margin-top: 3px; }

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: #1a1200;
  font-size: .7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Game Overlay ─── */
#game-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  overflow-y: auto;
  padding: 24px 16px;
}
#game-overlay.active { display: flex; align-items: flex-start; justify-content: center; animation: overlayIn .35s ease; }
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#game-container {
  background: var(--surface);
  border: 1px solid rgba(240,192,64,.2);
  border-radius: 18px;
  width: 100%;
  max-width: 900px;
  min-height: 500px;
  box-shadow: var(--shadow), 0 0 60px rgba(240,192,64,.05);
  overflow: hidden;
  position: relative;
  animation: containerIn .4s cubic-bezier(.22,.61,.36,1);
}
@keyframes containerIn {
  from { opacity: 0; transform: scale(.92) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.game-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface2);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.game-header .game-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  flex: 1;
}
.game-header .close-btn {
  background: rgba(255,255,255,.1);
  border: none;
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.game-header .close-btn:hover { background: rgba(255,80,80,.35); }

#game-body { padding: 24px 20px; }

/* ─── Bet Controls ─── */
.bet-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.bet-area label { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.bet-input {
  background: var(--surface3);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  padding: 8px 12px;
  width: 110px;
  outline: none;
  transition: border-color var(--transition);
}
.bet-input:focus { border-color: var(--gold); }
.chip-btn {
  background: var(--surface3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  color: var(--text);
  font-size: .82rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--transition);
}
.chip-btn:hover { background: var(--gold); color: #1a1200; border-color: var(--gold); }

/* ─── Buttons ─── */
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .3s;
}
.btn:hover:not(:disabled)::after { opacity: 1; animation: btnSheen .6s ease forwards; }
@keyframes btnSheen {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn-gold { background: var(--gold); color: #1a1200; }
.btn-gold:hover:not(:disabled) { background: var(--gold2); box-shadow: 0 4px 20px rgba(240,192,64,.35); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover:not(:disabled) { background: var(--green2); box-shadow: 0 4px 20px rgba(36,163,90,.35); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover:not(:disabled) { background: #b52020; box-shadow: 0 4px 20px rgba(224,48,48,.35); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
}
.btn-outline:hover:not(:disabled) { background: rgba(255,255,255,.08); }

/* ─── Cards ─── */
.card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 62px;
  height: 90px;
  background: #fff;
  border-radius: 8px;
  color: #111;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  position: relative;
  user-select: none;
  transition: transform .3s ease;
  flex-shrink: 0;
  animation: dealCard .35s cubic-bezier(.22,.61,.36,1) backwards;
}
@keyframes dealCard {
  from { opacity: 0; transform: translateY(-30px) rotate(-8deg) scale(.7); }
  to   { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
.card.red { color: #c62020; }
.card.facedown {
  background: linear-gradient(135deg, #1a3a6a 25%, #0e2246 25%, #0e2246 50%, #1a3a6a 50%, #1a3a6a 75%, #0e2246 75%);
  background-size: 12px 12px;
  color: transparent;
}
.card .rank { font-size: 1rem; line-height: 1; }
.card .suit { font-size: .85rem; line-height: 1; }
.card-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 100px; }

/* ─── Message ─── */
.result-msg {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 12px 0 4px;
  min-height: 2.4rem;
  transition: opacity .3s;
}
.result-msg.win { color: var(--green); animation: resultPop .5s cubic-bezier(.22,.61,.36,1); }
.result-msg.lose { color: var(--red); animation: resultPop .5s cubic-bezier(.22,.61,.36,1); }
.result-msg.push { color: var(--gold); animation: resultPop .5s cubic-bezier(.22,.61,.36,1); }
@keyframes resultPop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── Score badge ─── */
.score-badge {
  display: inline-block;
  background: var(--surface3);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: .85rem;
  color: var(--muted);
  margin-left: 8px;
}

/* ─── Roulette ─── */
#roulette-wheel-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}
#roulette-canvas { border-radius: 50%; }

.roulette-table {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}
.r-row { display: flex; gap: 4px; flex-wrap: wrap; }
.r-cell {
  flex: 1;
  min-width: 36px;
  height: 38px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  user-select: none;
}
.r-cell:hover { transform: scale(1.06); box-shadow: 0 0 10px rgba(240,192,64,.5); border-color: var(--gold); }
.r-cell.selected { border-color: var(--gold); box-shadow: 0 0 10px rgba(240,192,64,.7); }
.r-cell.num-red { background: #c01818; color: #fff; }
.r-cell.num-black { background: #1a1a1a; color: #fff; }
.r-cell.num-green { background: #186030; color: #fff; }
.r-cell.outside { background: var(--surface3); color: var(--text); }

/* ─── Slots ─── */
.slots-machine {
  background: linear-gradient(180deg, var(--surface2) 0%, rgba(17,19,32,.95) 100%);
  border: 2px solid rgba(240,192,64,.25);
  border-radius: 18px;
  padding: 24px;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: inset 0 0 40px rgba(0,0,0,.3), 0 8px 32px rgba(0,0,0,.5);
}
.reels-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 10px 0 20px;
}
.reel-window {
  width: 90px;
  height: 90px;
  background: #08090f;
  border: 2px solid rgba(240,192,64,.3);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 2.8rem;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,.6);
}
.reel-inner {
  display: flex;
  flex-direction: column;
  transition: transform .4s ease-in-out;
  line-height: 90px;
}
.reel-symbol { height: 90px; display: flex; align-items: center; justify-content: center; }

.payline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(240,192,64,.5);
  pointer-events: none;
  transform: translateY(-50%);
}

/* ─── Poker ─── */
.poker-hand {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0;
}
.poker-card {
  cursor: pointer;
  position: relative;
  transition: transform .2s;
}
.poker-card.held { transform: translateY(-14px); }
.poker-card .hold-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a1200;
  font-size: .7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ─── Crash ─── */
#crash-canvas {
  width: 100%;
  height: 260px;
  background: #0a0b12;
  border-radius: 12px;
  display: block;
}
.crash-multiplier {
  text-align: center;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: .04em;
  margin: 8px 0;
  transition: color .2s;
  text-shadow: 0 0 30px rgba(36,163,90,.3);
}
.crash-multiplier.crashed { color: var(--red); text-shadow: 0 0 30px rgba(224,48,48,.4); animation: crashShake .5s ease; }
@keyframes crashShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ─── Mines ─── */
.mines-grid {
  display: grid;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}
.mine-cell {
  aspect-ratio: 1;
  background: var(--surface3);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.mine-cell:hover:not(.revealed) { background: var(--surface2); border-color: var(--gold); transform: scale(1.06); box-shadow: 0 0 12px rgba(240,192,64,.2); }
.mine-cell.revealed.safe { background: var(--green2); border-color: var(--green); cursor: default; animation: mineReveal .3s ease; }
.mine-cell.revealed.bomb { background: #7a1010; border-color: var(--red); cursor: default; animation: mineExplode .4s ease; }
.mine-cell.revealed.gem { background: var(--green2); animation: mineReveal .3s ease; }
@keyframes mineReveal {
  from { transform: scale(.5) rotate(10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes mineExplode {
  0%   { transform: scale(.5); opacity: 0; }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── Plinko ─── */
#plinko-canvas {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 12px;
  background: #0a0b12;
}

/* ─── Dice ─── */
.dice-container {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 20px 0;
}
.die.rolling { animation: roll .5s ease; }
@keyframes roll {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(90deg) scale(.8); }
  50%  { transform: rotate(180deg) scale(1.1); }
  75%  { transform: rotate(270deg) scale(.9); }
  100% { transform: rotate(360deg) scale(1); }
}
.dot {
  width: 12px;
  height: 12px;
  background: var(--text);
  border-radius: 50%;
  align-self: center;
  justify-self: center;
}

/* ─── Baccarat ─── */
.bac-side {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
  flex: 1;
  min-width: 180px;
}
.bac-side h3 { font-size: .95rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.bac-sides { display: flex; gap: 12px; flex-wrap: wrap; }

.bac-bet-btn {
  flex: 1;
  min-width: 100px;
  border: 2px solid rgba(255,255,255,.12);
  background: var(--surface2);
  border-radius: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 8px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.bac-bet-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.bac-bet-btn.active { border-color: var(--gold); background: rgba(240,192,64,.1); color: var(--gold); }

/* ─── Payout table ─── */
.payout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-top: 10px;
}
.payout-table th {
  background: var(--surface3);
  color: var(--muted);
  text-align: left;
  padding: 7px 10px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.payout-table td { padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.05); }
.payout-table tr:hover td { background: rgba(255,255,255,.03); }
.payout-table .highlight td { color: var(--gold); font-weight: 700; }

/* ─── Notification toast ─── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(26,29,46,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240,192,64,.3);
  border-radius: 10px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 1rem;
  z-index: 999;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
  white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.win { color: var(--green); border-color: var(--green); }
#toast.lose { color: var(--red); border-color: var(--red); }
#toast.info { color: var(--gold); }

/* ─── Responsive ─── */
@media (max-width: 600px) {
  #header { padding: 10px 14px; }
  #header .logo { font-size: 1.2rem; }
  #balance-amount { min-width: 60px; font-size: 1rem; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  #game-body { padding: 16px 14px; }
  .card { width: 52px; height: 76px; font-size: .85rem; }
}

/* ─── Confetti ─── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
}

/* ─── Chip buttons glow ─── */
.chip-btn:active { transform: scale(.93); }

/* ─── Add chips pulse ─── */
#add-chips-btn {
  background: var(--gold);
  color: #1a1200;
  border: none;
  border-radius: 22px;
  padding: 6px 16px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
#add-chips-btn:hover { background: var(--gold2); box-shadow: 0 4px 18px rgba(240,192,64,.4); transform: scale(1.04); }
#add-chips-btn:active { transform: scale(.96); }

/* ─── Section titles ─── */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface2);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ─── Dice enhanced ─── */
.die {
  width: 80px;
  height: 80px;
  background: var(--surface3);
  border: 2px solid rgba(255,255,255,.15);
  border-radius: 14px;
  display: grid;
  grid-template-areas:
    "a . b"
    "c d e"
    "f . g";
  padding: 10px;
  gap: 4px;
  transition: transform .3s;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}

/* ─── Poker held card glow ─── */
.poker-card.held .card { box-shadow: 0 0 16px rgba(240,192,64,.5), 0 4px 12px rgba(0,0,0,.4); }

/* ─── Roulette cell pop ─── */
.r-cell { transition: all .15s ease; }
.r-cell:active:not(:disabled) { transform: scale(.94); }

/* ─── Info Button ─── */
.info-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,34,68,.3);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.info-btn:hover { background: rgba(255,34,68,.2); border-color: var(--neon-red); box-shadow: 0 0 12px rgba(255,34,68,.3); }

/* ─── Info Panel ─── */
#game-info-panel {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 20px;
  animation: infoPanelIn .25s ease;
}
@keyframes infoPanelIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.info-panel-content {
  background: var(--surface2);
  border: 1px solid rgba(255,34,68,.2);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 20px rgba(255,34,68,.05);
  max-height: 60vh;
  overflow-y: auto;
}
.info-panel-content b { color: var(--gold); }

/* ─── Stats Grid ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.stat-card:hover { border-color: rgba(255,34,68,.3); box-shadow: 0 0 16px rgba(255,34,68,.08); }
.stat-card-total { border-color: rgba(240,192,64,.2); background: linear-gradient(135deg, var(--surface2), rgba(240,192,64,.05)); }
.stat-card-total:hover { border-color: rgba(240,192,64,.4); box-shadow: 0 0 16px rgba(240,192,64,.1); }
.stat-emoji { font-size: 1.5rem; margin-bottom: 6px; }
.stat-label { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.stat-row { display: flex; justify-content: space-between; font-size: .82rem; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.stat-row:last-child { border-bottom: none; }
.stat-row span:first-child { color: var(--muted); }
.stat-row span:last-child { font-weight: 700; }
.stat-positive { color: var(--green); }
.stat-negative { color: var(--red); }
.stat-highlight { color: var(--gold); }
.stat-muted { color: var(--muted); font-size: .9rem; }

/* ─── Disabled add chips ─── */
#add-chips-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  background: var(--surface3);
  color: var(--muted);
}
#add-chips-btn:disabled:hover { background: var(--surface3); box-shadow: none; transform: none; }

/* ─── Neon red accent for game container ─── */
#game-container {
  border-color: rgba(255,34,68,.15);
  box-shadow: var(--shadow), 0 0 60px rgba(255,34,68,.04);
}
.game-header {
  border-bottom-color: rgba(255,34,68,.1);
}
