/* ========================================================
   LOOPHOLE CASINO - LUXURY HIGH ROLLER STYLING
   Authentic Obsidian Felt • Neon Accents • Cyber Vegas Theme
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --bg-deep: #08090d;
  --bg-surface: #10121a;
  --bg-card: #171b26;
  --bg-card-hover: #1f2433;
  --bg-felt: #06382b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-gold: #f59e0b;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-cyan: #38bdf8;
  --accent-purple: #c084fc;
  --accent-pink: #ec4899;

  --font-display: 'Fredoka', 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.25);
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(1200px 600px at 50% 0px, rgba(245, 158, 11, 0.06), transparent 80%),
    radial-gradient(800px 400px at 80% 80%, rgba(56, 189, 248, 0.04), transparent 70%);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= CASINO SHELL ================= */
.casino-app-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 60px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
.casino-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.casino-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

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

.casino-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Chip Balance Pill */
.chips-balance-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.chips-icon {
  font-size: 16px;
}

.chips-val-display {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold);
}

.btn-refill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-refill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
}

.btn-hub-link {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-hub-link:hover {
  color: #fff;
  border-color: var(--border-strong);
}

/* ================= SUB-NAVIGATION TABS ================= */
.casino-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.casino-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.casino-tab-btn:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: var(--bg-card);
}

.casino-tab-btn.active {
  background: #ffffff;
  color: #0b0c10;
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* ================= SHARED CHIP BETTING TRAY ================= */
.chip-betting-tray {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.chips-selector-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.chip-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.chip-btn.active {
  transform: translateY(-4px) scale(1.1);
  border: 2px solid #fff;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
}

/* Chip Colors */
.chip-5 { background: #38bdf8; color: #0b0f19; }
.chip-25 { background: #10b981; color: #0b0f19; }
.chip-100 { background: #ef4444; color: #fff; }
.chip-500 { background: #8b5cf6; color: #fff; }
.chip-1000 { background: #f59e0b; color: #0b0f19; }
.chip-5000 { background: #ec4899; color: #fff; }

.bet-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-bet-action {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-bet-action:hover {
  color: #fff;
  border-color: var(--border-strong);
}

/* ================= GAME VIEW PANES ================= */
.casino-game-view {
  display: none;
}

.casino-game-view.active {
  display: block;
}

/* ================= 1. LOUNGE VIEW ================= */
.lounge-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(56, 189, 248, 0.05)), var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .lounge-hero { grid-template-columns: 1fr; }
}

.lounge-hero-text h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.lounge-hero-text p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 600px;
}

.lounge-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lounge-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.lounge-stat-label {
  color: var(--text-dim);
}

.lounge-stat-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.lounge-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.lounge-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.lounge-game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lounge-card-media {
  height: 140px;
  overflow: hidden;
  position: relative;
  background: #0f121a;
}

.lounge-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.lounge-game-card:hover .lounge-card-media img {
  transform: scale(1.05);
}

.lounge-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.lounge-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.lounge-card-sub {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* ================= 2. BLACKJACK 21 ================= */
.bj-table-felt {
  background: radial-gradient(circle at 50% 30%, #064e3b 0%, #022c22 80%, #011812 100%);
  border: 3px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), var(--shadow-lg);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.bj-dealer-area, .bj-player-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.bj-area-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fde68a;
  text-transform: uppercase;
}

.bj-cards-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 110px;
}

.bj-status-banner {
  background: rgba(10, 15, 25, 0.8);
  border: 1px solid var(--accent-gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  margin: 12px 0;
  text-align: center;
}

/* Playing Cards */
.card-face {
  width: 74px;
  height: 105px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  font-weight: 800;
  font-family: var(--font-body);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-face.card-red { color: #dc2626; }
.card-face.card-black { color: #0f172a; }

.card-face.card-back {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  border: 2px solid #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #93c5fd;
}

.card-face.is-held {
  transform: translateY(-12px);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
  border: 2px solid #10b981;
}

.card-face.card-winning {
  transform: translateY(-8px);
  border: 2px solid #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.9);
  animation: pulseCard 1.2s infinite alternate;
}

@keyframes pulseCard {
  0% { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(-10px) scale(1.06); }
}

.poker-held-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-val { font-size: 16px; line-height: 1; }
.card-suit { font-size: 24px; align-self: flex-end; line-height: 1; }

.hidden {
  display: none !important;
}

.bj-actions-bar {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-bj {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-bj:hover { transform: translateY(-2px); }

.btn-bj-deal { background: linear-gradient(135deg, #f59e0b, #d97706); color: #0b0f19; }
.btn-bj-hit { background: #38bdf8; color: #0b0f19; }
.btn-bj-stand { background: #ef4444; color: #fff; }
.btn-bj-double { background: #10b981; color: #fff; }

/* ================= 3. EUROPEAN ROULETTE ================= */
.roulette-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

@media (max-width: 900px) {
  .roulette-layout { grid-template-columns: 1fr; }
}

.roulette-wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.roulette-history-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.num-history-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  color: #fff;
}

.roulette-board-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roulette-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  background: #064e3b;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid #f59e0b;
}

.r-cell {
  background: #181b22;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.r-cell:hover { transform: scale(1.08); z-index: 2; }
.r-cell.r-red { background: #b91c1c; }
.r-cell.r-black { background: #1e2433; }
.r-cell.r-zero { grid-column: 1 / -1; background: #059669; }

.roulette-outside-bets {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.r-out-btn {
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 4px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.r-out-btn:hover { background: #334155; }
.r-out-btn.out-red { background: #b91c1c; }
.r-out-btn.out-black { background: #0f172a; }

.roulette-bet-tag {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #fde68a;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

/* ================= 4. CYBER 777 SLOTS ================= */
.slots-cabinet {
  max-width: 900px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(236, 72, 153, 0.18), transparent 60%),
    linear-gradient(180deg, #2a1146 0%, #150a26 55%, #0b0614 100%);
  border: 3px solid transparent;
  border-radius: 28px;
  background-clip: padding-box;
  padding: 18px 20px 20px;
  position: relative;
  box-shadow:
    0 0 0 3px #f59e0b,
    0 0 0 7px #2a1146,
    0 0 0 9px rgba(245, 158, 11, 0.6),
    0 0 50px rgba(236, 72, 153, 0.35),
    var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Topper --- */
.slots-topper {
  position: relative;
  border-radius: 18px;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #4c1d95, #1e0b3a);
  border: 2px solid #f472b6;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(244, 114, 182, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  overflow: hidden;
}

/* Chasing marquee bulbs along the top and bottom edge */
.slots-bulbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --bulb-a: radial-gradient(circle, #fff7c2 0 2px, #facc15 3px, rgba(250, 204, 21, 0) 5px);
  --bulb-b: radial-gradient(circle, #6b21a8 0 2px, rgba(107, 33, 168, 0) 4px);
  background:
    var(--bulb-a) 0 3px / 28px 10px repeat-x,
    var(--bulb-b) 14px 3px / 28px 10px repeat-x,
    var(--bulb-a) 14px calc(100% - 3px) / 28px 10px repeat-x,
    var(--bulb-b) 0 calc(100% - 3px) / 28px 10px repeat-x;
  animation: slotsBulbs 0.9s steps(2) infinite;
}

@keyframes slotsBulbs {
  0% { background-position: 0 3px, 14px 3px, 14px calc(100% - 3px), 0 calc(100% - 3px); }
  100% { background-position: 28px 3px, 42px 3px, -14px calc(100% - 3px), -28px calc(100% - 3px); }
}

.slots-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 3px;
  color: #fde047;
  text-shadow: 0 0 6px #f59e0b, 0 0 18px rgba(245, 158, 11, 0.7), 0 3px 0 #7c2d12;
  line-height: 1;
}

.slots-title span {
  color: #fb7185;
  text-shadow: 0 0 6px #e11d48, 0 0 18px rgba(225, 29, 72, 0.8), 0 3px 0 #4c0519;
}

.slots-jackpot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: #050208;
  border: 2px solid #22c55e;
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: inset 0 0 14px rgba(34, 197, 94, 0.25), 0 0 14px rgba(34, 197, 94, 0.25);
}

.slots-jackpot-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #86efac;
}

.slots-jackpot-val {
  font-family: var(--font-mono);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  animation: slotsJackpotGlow 1.6s ease-in-out infinite;
}

.slots-jackpot-note {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

@keyframes slotsJackpotGlow {
  50% { text-shadow: 0 0 18px rgba(74, 222, 128, 1), 0 0 4px #fff; }
}

/* --- Reel window --- */
.slots-window {
  position: relative;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(180deg, #fde68a, #b45309 50%, #fde68a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.slots-canvas-wrap {
  border-radius: 14px;
  background: radial-gradient(ellipse at center, #1a0f2e, #07040d);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  line-height: 0;
}

#slots-canvas {
  display: block;
  width: 100%;
}

.slots-fs-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 2px solid #fde047;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.7);
  white-space: nowrap;
}

/* --- Messages --- */
.slots-status {
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  min-height: 1.4em;
}

.slots-status-win { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); }
.slots-status-gold { color: #fde047; border-color: rgba(253, 224, 71, 0.5); text-shadow: 0 0 10px rgba(253, 224, 71, 0.5); }

.slots-line-info {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #fde68a;
  min-height: 1.2em;
  margin-top: -6px;
}

/* --- Console: bet, spin, win --- */
.slots-console {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #1c1030, #0d0718);
  border: 1px solid rgba(244, 114, 182, 0.3);
  border-radius: 18px;
  padding: 12px 14px;
}

.slots-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #050208;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 0;
}

.slots-meter-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #f9a8d4;
}

.slots-meter-val {
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.slots-win-val {
  color: #fde047;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.6);
}

.slots-meter-sub {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.slots-bet-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slots-bet-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(244, 114, 182, 0.5);
  background: #2a1146;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.slots-bet-btn:hover:not(:disabled) { background: #4c1d95; }
.slots-bet-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-slot-spin {
  width: clamp(104px, 18vw, 132px);
  height: clamp(104px, 18vw, 132px);
  border-radius: 50%;
  border: 4px solid #fde047;
  background: radial-gradient(circle at 35% 30%, #fb7185, #e11d48 45%, #881337 100%);
  color: #fff;
  font-family: var(--font-display);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 #4c0519, 0 10px 26px rgba(225, 29, 72, 0.55), inset 0 -6px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.2s;
}

.btn-slot-spin .spin-main {
  font-size: clamp(20px, 3.6vw, 26px);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.btn-slot-spin .spin-sub {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.8;
}

.btn-slot-spin:hover:not(:disabled) { filter: brightness(1.1); }
.btn-slot-spin:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 #4c0519, 0 4px 12px rgba(225, 29, 72, 0.5), inset 0 -4px 10px rgba(0, 0, 0, 0.35); }
.btn-slot-spin:disabled { cursor: default; filter: saturate(0.6) brightness(0.85); }
.btn-slot-spin.is-free { background: radial-gradient(circle at 35% 30%, #f0abfc, #c026d3 45%, #581c87 100%); filter: none; animation: slotsFreePulse 1s ease-in-out infinite; }

@keyframes slotsFreePulse {
  50% { box-shadow: 0 6px 0 #3b0764, 0 0 34px rgba(217, 70, 239, 0.9), inset 0 -6px 12px rgba(0, 0, 0, 0.35); }
}

/* --- Toolbar & paytable --- */
.slots-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slots-tool {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.slots-tool:hover { background: rgba(255, 255, 255, 0.1); }
.slots-tool.active { background: #f59e0b; border-color: #fde047; color: #1c1917; }

.slots-paytable-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 14px;
}

.slots-paytable-box summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: #f9a8d4;
  padding: 10px 0;
}

.slots-paytable {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding-bottom: 14px;
}

.pt-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 6px 10px;
}

.pt-item img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #fffdf8;
  border-radius: 8px;
  padding: 3px;
}

.pt-pays {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #cbd5e1;
  font-family: var(--font-mono);
}

.pt-pays b {
  font-family: var(--font-body);
  color: #fff;
  font-size: 13px;
}

.pt-star { grid-column: 1 / -1; }

.pt-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 4px 0 0;
}

@media (max-width: 560px) {
  .slots-cabinet { padding: 10px 8px; border-radius: 20px; }
  .slots-window { padding: 6px; border-radius: 16px; }
  .slots-topper { justify-content: center; text-align: center; }
  .slots-jackpot { align-items: center; }
  .slots-console { gap: 8px; padding: 10px; }
  .slots-meter { padding: 6px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .slots-bulbs, .slots-jackpot-val, .btn-slot-spin.is-free { animation: none; }
}

/* ================= 5. ROCKET CRASH ================= */
.crash-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

@media (max-width: 850px) {
  .crash-layout { grid-template-columns: 1fr; }
}

.crash-controls-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crash-canvas-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#crash-canvas {
  width: 100%;
  height: 340px;
  background: #090e17;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.crash-history-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crash-history-pill {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.crash-history-pill.high { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid #10b981; }
.crash-history-pill.low { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid #ef4444; }

.btn-crash-action {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s;
}

.btn-crash-launch { background: #38bdf8; color: #0b0f19; }
.btn-crash-cashout { background: #10b981; color: #0b0f19; }

/* ================= 6. MINES VAULT ================= */
.mines-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

@media (max-width: 850px) {
  .mines-layout { grid-template-columns: 1fr; }
}

.mines-board-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0b0e14;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-subtle);
}

.mines-grid-board {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  gap: 10px;
}

.mines-tile {
  width: 60px;
  height: 60px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.mines-tile:hover {
  background: #334155;
  transform: scale(1.05);
}

.mines-tile.tile-gem {
  background: #065f46;
  border-color: #10b981;
  animation: popGem 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mines-tile.tile-mine {
  background: #7f1d1d;
  border-color: #ef4444;
}

@keyframes popGem {
  0% { transform: scale(0.6); }
  100% { transform: scale(1); }
}

/* ================= 7. PLINKO DELUXE ================= */
.plinko-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

@media (max-width: 850px) {
  .plinko-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* the board is limited by width on phones, so don't leave empty space under it */
  .plinko-layout #plinko-canvas { height: auto; aspect-ratio: 5 / 6; }
}

.plinko-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.plinko-volume-icon {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  width: 24px;
}

.plinko-volume input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: #38bdf8;
  cursor: pointer;
}

.plinko-volume-val {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#plinko-canvas {
  display: block;
  width: 100%;
  height: 500px;
  background: #08050e;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* ================= 8. VIDEO POKER ================= */
.poker-stage {
  background: radial-gradient(circle at 50% 30%, #1e3a8a 0%, #0f172a 100%);
  border: 2px solid #38bdf8;
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}

.poker-paytable-box {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  font-size: 11px;
}

.paytable-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.paytable-row.highlight {
  background: #f59e0b;
  color: #0b0f19;
  font-weight: 800;
}

/* ================= TOAST NOTIFICATIONS ================= */
.casino-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.casino-toast {
  background: #171b26;
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideInToast 0.3s ease-out;
}

.toast-success { border-color: #10b981; color: #34d399; }
.toast-gold { border-color: #f59e0b; color: #fbbf24; }
.toast-danger { border-color: #ef4444; color: #f87171; }
.toast-warning { border-color: #f59e0b; color: #fde68a; }

@keyframes slideInToast {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.casino-toast.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s;
}

