/* ===== THE LIFE OF MIKE — STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Oswald:wght@400;700&family=Rajdhani:wght@400;600;700&display=swap');

:root {
  --gold:    #ffd700;
  --amber:   #e8a000;
  --red:     #e03030;
  --green:   #22c55e;
  --blue:    #3b82f6;
  --purple:  #8b5cf6;
  --bg-dark: #0a0a0f;
  --bg-mid:  #14141e;
  --panel:   rgba(10,10,20,0.92);
  --border:  rgba(255,215,0,0.4);
  --text:    #f0e8cc;
  --muted:   #8a8060;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  color: var(--text);
  user-select: none;
}

/* ===== SCREENS ===== */
.screen {
  position: absolute; inset: 0;
  display: none;
  z-index: 10;
}
.screen.active { display: flex; }

/* ===== MAIN MENU ===== */
.menu-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(139,92,246,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,215,0,0.15) 0%, transparent 50%),
    linear-gradient(160deg, #0a0a1a 0%, #0f1a0a 40%, #1a0a0a 70%, #0a0a1a 100%);
  z-index: 0;
}
/* Cityscape silhouette via CSS */
.menu-bg::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(to top, #0d0d15 0%, transparent 100%);
  z-index: 1;
}
.menu-bg::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background:
    repeating-linear-gradient(90deg,
      #0d0d20 0px, #0d0d20 24px,
      #111128 24px, #111128 26px,
      #0d0d20 26px, #0d0d20 50px,
      #111128 50px, #111128 52px,
      #0d0d20 52px, #0d0d20 90px,
      #111128 90px, #111128 92px,
      #0d0d20 92px, #0d0d20 130px,
      #111128 130px, #111128 132px,
      #0d0d20 132px, #0d0d20 180px
    );
  clip-path: polygon(
    0% 80%, 4% 80%, 4% 40%, 5% 40%, 5% 30%, 8% 30%, 8% 45%,
    10% 45%, 10% 20%, 12% 20%, 12% 45%, 14% 45%, 14% 35%, 16% 35%,
    16% 55%, 18% 55%, 18% 25%, 20% 25%, 20% 55%, 22% 55%, 22% 45%,
    25% 45%, 25% 15%, 27% 15%, 27% 45%, 29% 45%, 29% 60%,
    32% 60%, 32% 35%, 34% 35%, 34% 10%, 36% 10%, 36% 35%,
    38% 35%, 38% 50%, 40% 50%, 40% 30%, 42% 30%, 42% 50%,
    44% 50%, 44% 40%, 46% 40%, 46% 60%, 48% 60%, 48% 25%,
    50% 25%, 50% 60%, 52% 60%, 52% 45%, 55% 45%, 55% 20%,
    57% 20%, 57% 45%, 59% 45%, 59% 35%, 61% 35%, 61% 55%,
    63% 55%, 63% 30%, 65% 30%, 65% 50%, 67% 50%, 67% 40%,
    70% 40%, 70% 15%, 72% 15%, 72% 40%, 74% 40%, 74% 55%,
    76% 55%, 76% 30%, 78% 30%, 78% 45%, 80% 45%, 80% 25%,
    82% 25%, 82% 50%, 84% 50%, 84% 40%, 87% 40%, 87% 60%,
    90% 60%, 90% 35%, 92% 35%, 92% 55%, 94% 55%, 94% 45%,
    96% 45%, 96% 65%, 100% 65%, 100% 100%, 0% 100%
  );
  z-index: 2;
}

.menu-content {
  position: relative; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  gap: 0;
}

.game-logo {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.logo-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(52px, 8vw, 110px);
  letter-spacing: 6px;
  color: var(--gold);
  text-shadow:
    0 0 30px rgba(255,215,0,0.8),
    0 0 60px rgba(255,215,0,0.4),
    4px 4px 0 #4a3000,
    8px 8px 0 #2a1800;
  line-height: 1;
}
.logo-sub {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(14px, 2.5vw, 22px);
  letter-spacing: 14px;
  color: var(--amber);
  text-transform: uppercase;
  margin-top: 6px;
  text-shadow: 0 0 10px rgba(232,160,0,0.6);
}
.logo-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 16px;
}

.menu-buttons {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.menu-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 14px 52px;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  cursor: pointer;
  min-width: 280px;
  position: relative;
  transition: all 0.15s ease;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.menu-btn:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--gold);
  color: var(--gold);
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
  transform: scale(1.03);
}
.menu-btn.primary {
  background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(232,160,0,0.1));
  border-color: var(--gold);
  color: var(--gold);
}
.menu-btn.warn {
  border-color: rgba(224,48,48,0.5);
  color: #f87171;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 8px 20px;
  min-width: unset;
}
.menu-btn.small {
  font-size: 13px;
  padding: 8px 20px;
  min-width: unset;
  letter-spacing: 2px;
}

/* ===== HOW TO PLAY / CREDITS ===== */
.howto-content, .credits-content {
  justify-content: flex-start;
  padding: 40px;
  overflow-y: auto;
  max-height: 100vh;
}
.howto-content h2, .credits-content h2 {
  font-family: 'Bangers', cursive;
  font-size: 56px;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 #4a3000;
  margin-bottom: 28px;
}
.howto-content h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px; color: var(--amber);
  letter-spacing: 4px; margin: 24px 0 12px;
}
.howto-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px; margin-bottom: 8px;
}
.howto-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 15px;
}
.key {
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  color: var(--gold);
  padding: 2px 8px; border-radius: 3px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px; letter-spacing: 1px;
  margin-right: 8px;
}
.tips-list {
  padding-left: 20px;
  list-style: disc;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 6px; color: var(--text);
  font-size: 15px; margin-bottom: 28px;
}
.credits-block {
  margin-bottom: 20px; text-align: center;
}
.credits-role { color: var(--muted); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.credits-name { color: var(--gold); font-family: 'Oswald', sans-serif; font-size: 22px; letter-spacing: 2px; }
.credits-name.big { font-size: 28px; }

/* ===== GAME SCREEN ===== */
#game-screen { background: #000; }
#gameCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  cursor: crosshair;
  image-rendering: pixelated;
}

/* ===== HUD ===== */
#game-ui { position: absolute; inset: 0; pointer-events: none; z-index: 20; }

#hud-bar {
  pointer-events: all;
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
  border-bottom: 1px solid rgba(255,215,0,0.25);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  flex-wrap: wrap;
}
#hud-money {
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
  min-width: 110px;
}
#hud-stats { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.stat-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 2px 10px; font-size: 13px;
  white-space: nowrap;
}
#hud-day { color: var(--muted); font-size: 13px; margin-left: auto; }
.hud-btn {
  pointer-events: all;
  font-family: 'Oswald', sans-serif;
  font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.1s;
}
.hud-btn:hover { background: rgba(255,255,255,0.15); border-color: var(--gold); color: var(--gold); }
.hud-btn.warn { border-color: rgba(224,48,48,0.4); color: #f87171; }

/* ===== PANELS ===== */
.panel {
  pointer-events: all;
  position: absolute;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  backdrop-filter: blur(12px);
}
.panel.hidden { display: none !important; }

.panel-header {
  font-family: 'Oswald', sans-serif;
  font-size: 16px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid var(--border);
  padding-bottom: 10px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.close-btn {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted); cursor: pointer; padding: 2px 8px;
  border-radius: 3px; font-size: 14px;
  transition: all 0.1s;
}
.close-btn:hover { border-color: var(--red); color: var(--red); }

/* INVENTORY */
#inventory-panel {
  top: 60px; right: 16px;
  width: 360px; max-height: calc(100vh - 80px);
  overflow-y: auto;
}
#inventory-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.inv-slot {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 8px 4px; text-align: center;
  cursor: pointer; min-height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; transition: all 0.1s;
  font-size: 11px; color: var(--muted);
}
.inv-slot:hover { border-color: var(--gold); background: rgba(255,215,0,0.08); }
.inv-slot .item-icon { font-size: 28px; line-height: 1; display:flex; align-items:center; justify-content:center; }
.inv-slot .item-icon svg { display:block; }
.inv-slot .item-qty { color: var(--amber); font-weight: 700; }

/* DIALOGUE */
#dialogue-box {
  bottom: 20px; left: 50%; transform: translateX(-50%);
  width: min(680px, 94vw); min-height: 120px;
  background: linear-gradient(to bottom right, rgba(10,10,25,0.97), rgba(20,20,40,0.97));
}
#dialogue-speaker {
  font-family: 'Oswald', sans-serif; font-size: 18px;
  color: var(--gold); letter-spacing: 2px; margin-bottom: 8px;
}
#dialogue-text { font-size: 15px; line-height: 1.65; color: var(--text); margin-bottom: 12px; }
#dialogue-options { display: flex; flex-direction: column; gap: 6px; }
.dialogue-opt {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 7px 14px; cursor: pointer;
  border-radius: 3px; font-size: 14px; color: var(--text);
  text-align: left; transition: all 0.1s;
}
.dialogue-opt:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,215,0,0.08); }

/* STORE */
#store-panel {
  top: 60px; left: 50%; transform: translateX(-50%);
  width: min(560px, 96vw); max-height: calc(100vh - 80px);
  overflow-y: auto;
}
#store-items { display: flex; flex-direction: column; gap: 8px; }
.store-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 14px; border-radius: 4px;
  transition: all 0.1s;
}
.store-item:hover { border-color: rgba(255,215,0,0.4); background: rgba(255,215,0,0.06); }
.store-item .s-icon { font-size: 32px; width: 44px; text-align: center; }
.store-item .s-info { flex: 1; }
.store-item .s-name { font-family: 'Oswald', sans-serif; font-size: 16px; letter-spacing: 1px; }
.store-item .s-desc { font-size: 12px; color: var(--muted); }
.store-item .s-price { color: var(--gold); font-weight: 700; font-size: 16px; white-space: nowrap; }
.buy-btn {
  font-family: 'Oswald', sans-serif; font-size: 13px;
  padding: 6px 16px; background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4); color: #86efac;
  cursor: pointer; border-radius: 3px; transition: all 0.1s;
}
.buy-btn:hover { background: rgba(34,197,94,0.3); border-color: var(--green); }

/* CASINO */
#casino-panel {
  top: 60px; left: 50%; transform: translateX(-50%);
  width: min(700px, 98vw);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* ── SLOT MACHINE CABINET ── */
.slot-cabinet {
  background: linear-gradient(160deg, #1a0030 0%, #0e0022 40%, #08001a 100%);
  border: 2px solid rgba(255,215,0,0.5);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(180,0,255,0.2), inset 0 0 30px rgba(0,0,50,0.5);
}
.slot-marquee {
  background: linear-gradient(90deg, #1a0030, #3a0060, #1a0030);
  padding: 10px 16px 6px;
  border-bottom: 2px solid rgba(255,215,0,0.4);
  position: relative;
  overflow: hidden;
}
.slot-marquee-lights {
  display: flex; gap: 10px; justify-content: center; margin-bottom: 6px;
}
.slot-marquee-light {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a2000;
  transition: background 0.1s, box-shadow 0.1s;
}
.slot-marquee-light.on {
  background: #ffd700;
  box-shadow: 0 0 8px #ffd700, 0 0 16px rgba(255,215,0,0.5);
}
.slot-marquee-light.on-pink {
  background: #ff4dc4;
  box-shadow: 0 0 8px #ff4dc4, 0 0 16px rgba(255,77,196,0.5);
}
.slot-title {
  font-family: 'Bangers', cursive;
  font-size: 28px;
  letter-spacing: 4px;
  text-align: center;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 40px rgba(255,215,0,0.4);
}
.slot-jackpot-display {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  text-align: center;
  color: #ff4040;
  text-shadow: 0 0 10px rgba(255,64,64,0.8);
  letter-spacing: 2px;
}
.slot-window-frame {
  background: #040010;
  margin: 12px;
  border: 3px solid rgba(255,215,0,0.6);
  border-radius: 8px;
  padding: 12px 8px;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,40,0.8), 0 0 15px rgba(255,215,0,0.15);
}
.slot-payline-marker {
  position: absolute;
  left: 4px; right: 4px;
  top: 50%; transform: translateY(-50%);
  height: 2px;
  background: rgba(255,60,60,0.5);
  box-shadow: 0 0 6px rgba(255,60,60,0.8);
  z-index: 2;
  pointer-events: none;
}
.slot-display-5 {
  display: flex; justify-content: center; gap: 6px;
}
.slot-reel-5 {
  width: 80px; height: 80px;
  background: linear-gradient(180deg, #08001a 0%, #0a0020 50%, #06001a 100%);
  border: 1.5px solid rgba(255,215,0,0.3);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px;
  transition: transform 0.15s;
  position: relative;
  overflow: hidden;
}
.slot-reel-5::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}
.slot-reel-5.spinning {
  animation: spinReel5 0.1s linear infinite;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(255,215,0,0.4);
}
@keyframes spinReel5 {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0.05); filter: blur(1px); }
  100% { transform: scaleY(1); }
}
.slot-paytable {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 6px 12px;
  font-family: 'Oswald', sans-serif; font-size: 11px;
  color: rgba(255,215,0,0.6); letter-spacing: 1px;
  border-top: 1px solid rgba(255,215,0,0.15);
}
.slot-paytable span b { color: #ffd700; }
.slot-controls {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
  border-top: 1px solid rgba(255,215,0,0.15);
  flex-wrap: wrap;
}
.slot-bet-group {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif;
}
.slot-label {
  font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase;
}
#slot-bet, #rl-bet, #vp-bet {
  width: 70px; text-align: center;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  color: var(--gold); font-family: 'Oswald', sans-serif; font-size: 16px;
  padding: 6px 4px; border-radius: 3px;
}
.slot-adj-btn, .slot-max-btn {
  font-family: 'Oswald', sans-serif; font-size: 14px;
  padding: 5px 10px;
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.35);
  color: var(--gold); cursor: pointer; border-radius: 3px;
  transition: all 0.1s;
}
.slot-adj-btn:hover, .slot-max-btn:hover {
  background: rgba(255,215,0,0.25); border-color: var(--gold);
}
.slot-max-btn { font-size: 11px; letter-spacing: 1px; color: #ff8080; border-color: rgba(255,120,120,0.4); background: rgba(255,50,50,0.1); }
.slot-spin-btn {
  font-family: 'Bangers', cursive;
  font-size: 22px; letter-spacing: 3px;
  padding: 10px 28px;
  background: radial-gradient(ellipse, rgba(200,60,20,0.5) 0%, rgba(120,20,0,0.3) 100%);
  border: 2px solid rgba(255,100,60,0.7);
  color: #ff8060;
  cursor: pointer; border-radius: 6px;
  transition: all 0.12s;
  text-shadow: 0 0 10px rgba(255,80,40,0.8);
  box-shadow: 0 0 15px rgba(200,60,0,0.3);
}
.slot-spin-btn:hover:not(:disabled) {
  background: radial-gradient(ellipse, rgba(255,80,30,0.6) 0%, rgba(160,40,0,0.4) 100%);
  border-color: #ff6040; color: #ffb090;
  box-shadow: 0 0 25px rgba(255,80,0,0.5);
  transform: scale(1.04);
}
.slot-spin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.slot-result-display {
  text-align: center;
  font-family: 'Oswald', sans-serif; font-size: 17px;
  letter-spacing: 2px; min-height: 28px;
  padding: 4px 12px;
}
.slot-credits-row {
  text-align: center; padding: 6px;
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px;
  color: rgba(255,215,0,0.5);
  border-top: 1px solid rgba(255,215,0,0.1);
}

/* ── BLACKJACK TABLE STYLE ── */
#blackjack-table {
  background:
    radial-gradient(ellipse at 50% 30%, #0e5028 0%, #08321a 50%, #041808 100%);
  border: 2px solid rgba(255,215,0,0.35);
  border-radius: 10px; padding: 14px;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}
.bj-felt-header {
  text-align: center; padding: 8px 0 12px;
  border-bottom: 1px solid rgba(255,215,0,0.2);
  margin-bottom: 10px;
}
.bj-felt-rule {
  font-family: 'Oswald', sans-serif; font-size: 16px;
  color: rgba(255,215,0,0.7); letter-spacing: 2px; display: block;
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}
.bj-felt-rule-sm {
  font-size: 10px; color: rgba(255,215,0,0.35); letter-spacing: 1px; display: block; margin-top: 3px;
}
.bj-chip-row {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 10px 0 6px; flex-wrap: wrap;
}
.bj-chip {
  width: 52px; height: 52px; border-radius: 50%;
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.12s;
  background: radial-gradient(circle, #6a6a8a 30%, #3a3a5a 80%, #1a1a2a 100%);
  border: 3px dashed rgba(255,255,255,0.3);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
}
.bj-chip.chip-25  { background: radial-gradient(circle, #2a6aaa 30%, #1a3a6a 80%, #0a1a3a 100%); border-color: rgba(100,160,255,0.4); }
.bj-chip.chip-100 { background: radial-gradient(circle, #aa2a2a 30%, #6a1010 80%, #3a0808 100%); border-color: rgba(255,100,100,0.4); }
.bj-chip.chip-500 { background: radial-gradient(circle, #aa8a00 30%, #6a5000 80%, #3a2800 100%); border-color: rgba(255,215,0,0.6); }
.bj-chip:hover { transform: translateY(-4px) scale(1.08); box-shadow: 0 8px 16px rgba(0,0,0,0.6); }
.bj-chip.active { transform: translateY(-6px) scale(1.12); box-shadow: 0 10px 20px rgba(0,0,0,0.7), 0 0 15px rgba(255,215,0,0.4); }
.bj-bet-label {
  font-family: 'Oswald', sans-serif; font-size: 18px;
  color: var(--gold); letter-spacing: 1px;
  background: rgba(255,215,0,0.08);
  border: 1px solid rgba(255,215,0,0.25);
  padding: 6px 14px; border-radius: 4px;
}
.bj-stats-row {
  display: flex; gap: 20px; justify-content: center;
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px;
  color: var(--muted); padding-top: 8px; border-top: 1px solid rgba(255,215,0,0.1);
  margin-top: 8px;
}
.bj-stats-row b { color: var(--gold); }
/* Card improvements */
.bj-card {
  width: 60px; height: 84px;
  background: linear-gradient(160deg, #fefefe 0%, #f8f4ef 40%, #f0ece6 100%);
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.18);
  box-shadow: 2px 4px 12px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.9), inset -1px -1px 0 rgba(0,0,0,0.05);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 4px 5px; position: relative; font-weight: 900;
  cursor: default; animation: cardDeal 0.22s cubic-bezier(0.34,1.56,0.64,1) both;
}
.bj-card::after {
  content: '';
  position: absolute; inset: 3px;
  border: 0.5px solid rgba(0,0,80,0.08);
  border-radius: 3px;
  pointer-events: none;
}
.bj-rank { font-size: 14px; line-height: 1.1; }
.bj-suit { font-size: 22px; text-align: center; align-self: center; flex: 1; display: flex; align-items: center; justify-content: center; }
.bj-card.back {
  background: linear-gradient(135deg, #0d0040 0%, #200060 30%, #0d0040 60%, #1a0050 100%);
  font-size: 36px; align-items: center; justify-content: center;
  color: rgba(255,215,0,0.35) !important;
  background-image: repeating-linear-gradient(
    45deg, rgba(255,215,0,0.06) 0px, rgba(255,215,0,0.06) 2px, transparent 2px, transparent 10px
  );
}

/* ── ROULETTE ── */
#roulette-game {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.roulette-wheel-container {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0;
}
#roulette-canvas { border-radius: 50%; box-shadow: 0 0 25px rgba(180,120,0,0.4), inset 0 0 10px rgba(0,0,0,0.5); }
.roulette-ball-indicator {
  font-family: 'Bangers', cursive; font-size: 32px; letter-spacing: 2px;
  color: var(--gold); text-shadow: 0 0 12px rgba(255,215,0,0.8);
  min-width: 60px; text-align: center;
}
.roulette-bet-panel { flex: 1; min-width: 200px; }
.roulette-bet-types { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.rl-bet-group {}
.rl-bet-label {
  font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: 2px;
  color: var(--muted); text-transform: uppercase; margin-bottom: 4px;
}
.rl-bets-row { display: flex; flex-wrap: wrap; gap: 5px; }
.rl-bet-btn {
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 1px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  color: var(--text); cursor: pointer; border-radius: 3px; transition: all 0.1s;
}
.rl-bet-btn:hover, .rl-bet-btn.rl-selected {
  background: rgba(255,215,0,0.15); border-color: var(--gold); color: var(--gold);
}
.rl-number-grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 4px;
}
.rl-num-btn {
  font-family: 'Oswald', sans-serif; font-size: 10px;
  padding: 4px 2px; cursor: pointer; border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15); transition: all 0.08s;
  color: #fff;
}
.rl-num-btn.rl-green { background: rgba(0,120,40,0.6); }
.rl-num-btn.rl-red   { background: rgba(180,20,20,0.6); }
.rl-num-btn.rl-black { background: rgba(20,20,20,0.8); }
.rl-num-btn:hover, .rl-num-btn.rl-selected { transform: scale(1.2); border-color: var(--gold); z-index: 1; }
.rl-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rl-amount-row { display: flex; align-items: center; gap: 8px; font-family: 'Oswald', sans-serif; }
.rl-active-bet { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.rl-bet-input { width: 70px; }

/* ── VIDEO POKER ── */
#videopoker-game { }
.vp-paytable {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  margin-bottom: 12px; font-size: 11px; font-family: 'Oswald', sans-serif;
  letter-spacing: 1px; border: 1px solid rgba(255,215,0,0.2); border-radius: 4px;
  overflow: hidden;
}
.vp-pt-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.03); padding: 4px 8px;
  border-bottom: 1px solid rgba(255,215,0,0.08);
}
.vp-pt-pay { color: #22c55e; font-weight: 700; }
.vp-hand {
  display: flex; justify-content: center; gap: 8px; margin: 10px 0;
  min-height: 110px; flex-wrap: wrap;
}
.vp-card {
  width: 72px; height: 100px;
  background: linear-gradient(160deg, #fefefe 0%, #f8f4ef 40%, #f0ece6 100%);
  border-radius: 8px;
  border: 1.5px solid rgba(0,0,0,0.2);
  box-shadow: 2px 4px 12px rgba(0,0,0,0.5), inset 0 1px rgba(255,255,255,0.8);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 5px; font-weight: 900; cursor: pointer;
  animation: cardDeal 0.2s ease-out; position: relative;
  transition: transform 0.12s, box-shadow 0.12s;
}
.vp-card:hover { transform: translateY(-4px); box-shadow: 2px 8px 18px rgba(0,0,0,0.6); }
.vp-card.held {
  transform: translateY(-10px);
  box-shadow: 2px 10px 20px rgba(0,0,0,0.7), 0 0 15px rgba(255,215,0,0.5);
  border-color: #ffd700;
}
.vp-rank-top { font-size: 14px; line-height: 1.2; }
.vp-suit-center { font-size: 28px; text-align: center; }
.vp-rank-bot { font-size: 14px; line-height: 1.2; text-align: right; transform: rotate(180deg); }
.vp-held-label {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  font-family: 'Oswald', sans-serif; font-size: 9px; letter-spacing: 2px;
  color: #ffd700; background: rgba(0,0,0,0.8); padding: 2px 5px; border-radius: 2px;
  white-space: nowrap;
}
.vp-controls { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 24px; }

/* ── SCRATCH TICKET ── */
#scratch-area { padding: 12px; }
.scratch-ticket-wrapper {
  position: relative; display: inline-block;
  border: 2px solid rgba(180,120,0,0.5); border-radius: 6px;
  overflow: hidden; width: 380px; height: 200px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 15px rgba(200,150,0,0.2);
}
#scratch-canvas { display: block; }
.scratch-overlay {
  position: absolute; inset: 0;
  background: rgba(10,5,0,0.7);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.scratch-info {
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 1px;
  color: var(--muted); text-align: center; margin-top: 6px;
}

/* NOTIFICATION */
#notification {
  pointer-events: none;
  position: absolute; top: 75px; left: 50%; transform: translateX(-50%);
  background: rgba(10,10,25,0.95);
  border: 1px solid var(--border);
  color: var(--gold); font-family: 'Oswald', sans-serif;
  font-size: 16px; letter-spacing: 2px;
  padding: 10px 28px; border-radius: 4px;
  opacity: 0; transition: opacity 0.3s;
  text-align: center; white-space: nowrap;
  z-index: 100;
}
#notification.show { opacity: 1; }

/* EFFECT OVERLAY */
#effect-overlay {
  pointer-events: none;
  position: absolute; inset: 0;
  z-index: 50;
  transition: all 0.5s;
}
#effect-overlay.dead {
  background: rgba(200,0,0,0.4);
  animation: none;
}

/* ===== CASINO TABS ===== */
.casino-tabs {
  display: flex; gap: 5px; margin-bottom: 12px; flex-wrap: wrap;
}
.casino-tab {
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,215,0,0.25); color: var(--muted);
  cursor: pointer; border-radius: 3px; flex: 1; transition: all 0.12s; min-width: 80px;
}
.casino-tab:hover, .casino-tab.active {
  background: rgba(255,215,0,0.12); border-color: var(--gold); color: var(--gold);
}
.casino-tab-content { display: block; }
.casino-tab-content.hidden { display: none; }
/* ===== BLACKJACK CONTROLS ===== */
.bj-area { text-align: center; margin-bottom: 6px; }
.bj-label {
  font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: 3px;
  color: rgba(255,215,0,0.5); text-transform: uppercase; margin-bottom: 4px;
}
.bj-hand {
  display: flex; justify-content: center; gap: 6px;
  min-height: 80px; padding: 4px 0; flex-wrap: wrap;
}
.bj-val {
  font-family: 'Oswald', sans-serif; font-size: 13px;
  color: rgba(255,255,255,0.6); margin-top: 4px;
}
.bj-message {
  text-align: center;
  font-family: 'Oswald', sans-serif; font-size: 15px; letter-spacing: 2px;
  color: var(--gold); padding: 8px; min-height: 32px;
}
@keyframes cardDeal {
  from { transform: scale(0.6) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.bj-controls {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-top: 8px; align-items: center;
}
.bj-btn {
  font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; padding: 8px 18px; border-radius: 3px; cursor: pointer;
  border: 1px solid; transition: all 0.1s;
}
.bj-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.bj-btn.deal  { background: rgba(255,215,0,0.15); border-color: var(--gold); color: var(--gold); }
.bj-btn.deal:hover:not(:disabled)  { background: rgba(255,215,0,0.3); }
.bj-btn.hit   { background: rgba(34,197,94,0.15); border-color: #22c55e; color: #86efac; }
.bj-btn.hit:hover:not(:disabled)   { background: rgba(34,197,94,0.3); }
.bj-btn.stand { background: rgba(239,68,68,0.15); border-color: #ef4444; color: #fca5a5; }
.bj-btn.stand:hover:not(:disabled) { background: rgba(239,68,68,0.3); }
.bj-btn.double{ background: rgba(139,92,246,0.15); border-color: #8b5cf6; color: #c4b5fd; }
.bj-btn.double:hover:not(:disabled){ background: rgba(139,92,246,0.3); }

/* scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
::-webkit-scrollbar-thumb { background: rgba(255,215,0,0.3); border-radius: 3px; }
