/* ==========================================================================
   Levqoro Slots: Social Casino - Ultra-Luxury Vegas Royal Design System
   Optimized for 60 FPS Performance on Mobile & Android WebView
   ========================================================================== */

:root {
  /* Royal 24K Vegas Gold Palette */
  --gold-primary: #FFD700;
  --gold-light: #FFF5B8;
  --gold-deep: #C79100;
  --gold-dark: #8A6400;
  --gold-gradient: linear-gradient(135deg, #FFF6D5 0%, #FFD700 25%, #E5A910 50%, #B8860B 75%, #FFE27D 100%);
  --gold-gradient-v: linear-gradient(180deg, #FFF9E0 0%, #FFD700 35%, #D48800 75%, #FFDF66 100%);
  --gold-bevel-border: 1.5px solid #FFD700;
  --gold-glow: 0 0 15px rgba(255, 215, 0, 0.45);
  --gold-glow-intense: 0 0 25px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 170, 0, 0.4);

  /* Vegas Jewel Accents */
  --ruby-gradient: linear-gradient(135deg, #FF2A6D 0%, #D30045 50%, #90002A 100%);
  --emerald-gradient: linear-gradient(135deg, #00FF88 0%, #00BD65 50%, #006633 100%);
  --sapphire-gradient: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
  --fire-gradient: linear-gradient(135deg, #FF8C00 0%, #E52D27 100%);

  /* Rich Obsidian Backgrounds */
  --bg-deep: #070812;
  --bg-dark: #0B0E1E;
  --bg-panel: rgba(14, 18, 38, 0.94);
  --bg-card: rgba(20, 25, 52, 0.88);
  --panel-border: rgba(255, 215, 0, 0.3);
  --panel-border-subtle: rgba(255, 255, 255, 0.12);

  /* Typography */
  --text-main: #FFFFFF;
  --text-gold: #FFEAA0;
  --text-muted: #8E96BF;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Cinzel', Georgia, serif;
}

/* Base Reset & Hardware Accelerated Baseline */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  font-family: var(--font-main);
  color: var(--text-main);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #060812 url('lobby_bg.png') center center / cover no-repeat fixed;
}

/* Ambient Radial Aura (Static, 0 CPU Cost) */
.ambient-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 25%, rgba(95, 30, 210, 0.22) 0%, rgba(7, 8, 18, 0.85) 75%, #05060d 100%);
  pointer-events: none;
  z-index: 1;
}

/* Main Mobile Application Container */
.app-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: rgba(9, 12, 26, 0.94);
  border-left: 1px solid rgba(255, 215, 0, 0.25);
  border-right: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), 0 0 100px rgba(255, 215, 0, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 2;
  overflow: hidden;
  box-sizing: border-box;
}

/* ==========================================================================
   TOP HEADER BAR - Luxury VIP Gold Trim (Safe Area Aware for Notches & Dynamic Island)
   ========================================================================== */
.top-header {
  padding-top: calc(max(env(safe-area-inset-top, 0px), 16px) + 6px);
  padding-bottom: 8px;
  padding-left: max(env(safe-area-inset-left, 0px), 12px);
  padding-right: max(env(safe-area-inset-right, 0px), 12px);
  min-height: calc(62px + max(env(safe-area-inset-top, 0px), 16px));
  height: auto;
  box-sizing: border-box;
  flex-shrink: 0;
  background: linear-gradient(180deg, #181d38 0%, #0d1024 100%);
  border-bottom: 2px solid #b8860b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 15;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.header-profile {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #ffd700;
  padding: 1px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.level-badge {
  position: absolute;
  bottom: -3px;
  right: -5px;
  background: var(--ruby-gradient);
  border: 1px solid #ffd700;
  border-radius: 9px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 900;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.header-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.xp-bar-container {
  width: 120px;
  height: 9px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.xp-bar-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, #00ff88, #00c6ff);
  box-shadow: 0 0 6px #00ff88;
  transition: width 0.3s ease;
}

.xp-text {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  font-size: 7px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
}

/* 3D Gold Coin Balance Pill */
.coin-pill {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #1b203c 0%, #0d1020 100%);
  border: 1.5px solid #ffd700;
  border-radius: 20px;
  padding: 3px 6px 3px 6px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 0 10px rgba(255, 215, 0, 0.2);
  gap: 5px;
}

.header-coin-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.coin-amount {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.add-coin-btn {
  background: var(--gold-gradient);
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #000;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.1s;
}

.add-coin-btn:active {
  transform: scale(0.9);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 215, 0, 0.2);
}

/* ==========================================================================
   MAIN SCREENS SYSTEM
   ========================================================================== */
.main-content {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 20px;
  display: none;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: block;
}

/* Custom Scrollbar */
.screen::-webkit-scrollbar {
  width: 4px;
}
.screen::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 4px;
}

/* ==========================================================================
   LOBBY: GRAND PROGRESSIVE JACKPOT MARQUEE
   ========================================================================== */
.jackpot-ticker-lux {
  position: relative;
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #ffd700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8), var(--gold-glow);
}

.jackpot-ticker-art {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 18px 14px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1a0f30;
}

.jackpot-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(16, 12, 38, 0.75) 0%, rgba(6, 8, 20, 0.92) 100%);
}

.jackpot-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.jackpot-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.jackpot-badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #000;
  background: var(--gold-gradient);
  padding: 3px 14px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.jackpot-value {
  font-family: var(--font-accent);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF399 40%, #FFB800 80%, #E68A00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
  margin: 4px 0 2px;
  white-space: nowrap;
}

.jackpot-sub-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.mini-jackpot-pill {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 215, 0, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  color: #ffd700;
}

/* ==========================================================================
   QUICK BONUSES ACTION ROW
   ========================================================================== */
.bonus-quick-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.bonus-card-btn {
  background: linear-gradient(180deg, rgba(28, 34, 68, 0.9) 0%, rgba(13, 17, 36, 0.95) 100%);
  border: 1.5px solid var(--panel-border);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.12s, border-color 0.15s;
}

.bonus-card-btn:active {
  transform: scale(0.96);
  border-color: #ffd700;
}

.bonus-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
}

.bonus-icon.pulse {
  animation: pulseIcon 1.8s infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.bonus-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.b-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.b-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.b-status.active-status {
  color: #00ff88;
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.6);
}

/* ==========================================================================
   LOBBY: FEATURED SLOTS GRID
   ========================================================================== */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 2px;
}

.section-title h2 {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #ffd700;
  font-weight: 800;
}

.badge-tag {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #ffd700;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.slots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.slot-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1326;
  border: 1.5px solid rgba(255, 215, 0, 0.28);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.slot-card:active {
  transform: scale(0.97);
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.slot-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slot-card-poster {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.slot-card:active .slot-card-poster {
  transform: scale(1.05);
}

.slot-card-gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(6, 8, 20, 0.95) 100%);
  z-index: 1;
}

.slot-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  background: var(--ruby-gradient);
  color: #fff;
}

.slot-badge.gold {
  background: var(--gold-gradient);
  color: #000;
}

.slot-badge.fire {
  background: var(--fire-gradient);
  color: #fff;
}

.slot-card-meta {
  position: relative;
  z-index: 2;
  padding: 6px 8px;
}

.slot-card-meta h3 {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 800;
  color: #ffd700;
  line-height: 1.2;
}

.slot-card-meta p {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.slot-card-footer {
  position: relative;
  z-index: 2;
  padding: 0 8px 8px;
}

.play-slot-btn {
  width: 100%;
  background: var(--gold-gradient);
  border: none;
  padding: 6px 0;
  border-radius: 8px;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 11px;
  color: #000;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lobby-disclaimer {
  margin-top: 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.lobby-disclaimer p {
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SLOT MACHINE SCREEN: 60 FPS OPTIMIZED REELS CABINET
   ========================================================================== */
.slot-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  height: 38px;
}

.back-lobby-btn {
  background: linear-gradient(180deg, rgba(40, 48, 88, 0.9) 0%, rgba(18, 22, 44, 0.9) 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}

.slot-title-wrap {
  text-align: center;
}

.slot-title-wrap h2 {
  font-family: var(--font-accent);
  font-size: 15px;
  color: #ffd700;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.free-spins-indicator {
  display: none;
  font-size: 10px;
  color: #00ff88;
  font-weight: 900;
  text-shadow: 0 0 6px #00ff88;
  letter-spacing: 0.5px;
}

.paytable-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
}

/* The Grand 5x3 Reel Cabinet */
.slot-stage-frame {
  position: relative;
  background: linear-gradient(180deg, #151936 0%, #0a0d20 100%);
  border: 2.5px solid #d4af37;
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.85), inset 0 0 15px rgba(0,0,0,0.8), var(--gold-glow);
  margin-bottom: 10px;
  overflow: hidden;
}

.payline-canvas-container {
  position: absolute;
  top: 6px; left: 6px; right: 6px; bottom: 6px;
  pointer-events: none;
  z-index: 8;
}

#paylineCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* 5x3 Reels Grid */
.reels-machine {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  background: rgba(4, 6, 14, 0.85);
  border-radius: 10px;
  overflow: hidden;
  height: 240px;
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.reel {
  position: relative;
  background: linear-gradient(180deg, #101428 0%, #171c38 50%, #101428 100%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9);
  height: 240px;
  contain: strict;
}

/* 60 FPS Hardware-Accelerated Strip */
.reel-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reel-symbol {
  height: 80px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px;
}

/* Clean, Fast Symbol Graphics (No CPU-taxing SVG Drop-Shadow) */
.symbol-3d-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.reel-symbol.win-highlight {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
}

.reel-symbol.win-highlight .symbol-3d-img {
  transform: scale(1.12);
  filter: brightness(1.2);
}

/* Win Banner Celebration Overlay */
.win-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle at center, #1b2046 0%, #0a0d22 100%);
  border: 2.5px solid #ffd700;
  padding: 16px 22px;
  border-radius: 18px;
  text-align: center;
  z-index: 25;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 215, 0, 0.6);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: 90%;
  pointer-events: auto;
  cursor: pointer;
}

.win-banner.active {
  transform: translate(-50%, -50%) scale(1);
}

.win-banner-title-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.win-banner-title-img {
  max-width: 200px;
  height: auto;
  display: block;
}

.win-banner-coins {
  font-family: var(--font-accent);
  font-size: 26px;
  font-weight: 900;
  color: #ffd700;
  margin-top: 4px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

.win-banner-tap-hint {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SLOT CONTROL DECK - Tactile Vegas Pushbuttons
   ========================================================================== */
.slot-controls {
  background: linear-gradient(180deg, #131730 0%, #0a0d20 100%);
  border: 1.5px solid var(--panel-border);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-pill {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 10px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  min-width: 85px;
  text-align: center;
}

.info-pill .label, .bet-display .label {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.info-pill .val, .bet-display .val {
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 800;
  color: #00ff88;
  letter-spacing: 0.5px;
}

.bet-selector {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 2px 4px;
}

.bet-adj-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.bet-adj-btn:active {
  transform: scale(0.9);
  background: rgba(255, 215, 0, 0.25);
}

.bet-display {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  text-align: center;
}

.bet-display .val {
  color: #ffd700;
}

.max-bet-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-max-art {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: transform 0.1s;
}

.max-bet-btn:active .btn-max-art {
  transform: scale(0.9);
}

/* Bottom Action Row with The Big Spin Button */
.action-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 10px;
  align-items: center;
}

.turbo-btn, .auto-spin-btn {
  background: linear-gradient(180deg, #242c58 0%, #121632 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  color: #fff;
  border-radius: 14px;
  height: 48px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.1s, border-color 0.15s, background 0.15s;
}

.turbo-btn:active, .auto-spin-btn:active {
  transform: scale(0.95);
}

.turbo-btn.active {
  background: linear-gradient(180deg, #00bd65 0%, #006633 100%);
  border-color: #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

.auto-spin-btn.active {
  background: linear-gradient(180deg, #ff2a6d 0%, #90002a 100%);
  border-color: #ff2a6d;
  box-shadow: 0 0 12px rgba(255, 42, 109, 0.5);
}

/* Master 3D Spin Button */
.spin-master-btn {
  height: 72px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.1s ease;
}

.spin-master-btn:active {
  transform: scale(0.92);
}

.spin-btn-art {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.45));
  transition: transform 0.1s ease, filter 0.1s ease;
}

.spin-master-btn:active .spin-btn-art {
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.25));
}

/* ==========================================================================
   SHOP / COIN STORE SCREEN
   ========================================================================== */
.shop-hero {
  position: relative;
  background: linear-gradient(180deg, #231b48 0%, #120e28 100%);
  border: 2px solid #ffd700;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), var(--gold-glow);
}

.shop-hero-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ruby-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 14px;
  border-radius: 12px;
  border: 1px solid #ffd700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.shop-hero-img-wrap {
  margin: 6px 0;
}

.shop-pack-art-hero {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.shop-hero h3 {
  font-family: var(--font-accent);
  font-size: 16px;
  color: #ffd700;
  font-weight: 800;
}

.coins-huge {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 2px 0;
}

.coins-bonus {
  font-size: 10px;
  font-weight: 800;
  color: #00ff88;
  margin-bottom: 10px;
}

.buy-pack-btn {
  background: var(--gold-gradient);
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
  transition: transform 0.1s;
}

.buy-pack-btn.mega {
  width: 80%;
  padding: 10px 0;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-pack-btn:active {
  transform: scale(0.95);
}

.packages-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.package-item {
  position: relative;
  background: linear-gradient(180deg, #181d38 0%, #0e1226 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.package-item.popular {
  border-color: #ffd700;
  background: linear-gradient(180deg, #222248 0%, #12142e 100%);
}

.pack-badge {
  position: absolute;
  top: -7px;
  left: 12px;
  background: var(--ruby-gradient);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 8px;
}

.pack-art-sm {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.pack-details {
  flex: 1;
  padding: 0 12px;
}

.pack-details h4 {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.pack-details p {
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
}

.shop-disclaimer {
  padding: 10px;
  text-align: center;
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   WHEEL OF FORTUNE BONUS SCREEN
   ========================================================================== */
.wheel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 20px;
}

.wheel-header-banner {
  margin-bottom: 12px;
}

.wheel-title-img {
  max-width: 220px;
  height: auto;
  display: block;
}

.wheel-pointer-lux {
  position: relative;
  z-index: 10;
  margin-bottom: -16px;
}

.pointer-arrow {
  color: #ffd700;
  font-size: 32px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.8));
  line-height: 1;
}

.wheel-disc-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), var(--gold-glow);
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-img-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wheel-center-pin {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 3px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 12px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.wheel-center-pin:active {
  transform: scale(0.92);
}

.wheel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.primary-gold-btn {
  background: var(--gold-gradient);
  border: none;
  padding: 12px 28px;
  border-radius: 14px;
  font-family: var(--font-accent);
  font-weight: 900;
  font-size: 14px;
  color: #000;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.45);
  transition: transform 0.1s;
}

.primary-gold-btn:active {
  transform: scale(0.95);
}

.wheel-timer-notice {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   BOTTOM NAVIGATION BAR
   ========================================================================== */
.bottom-nav {
  height: auto;
  min-height: calc(56px + max(env(safe-area-inset-bottom, 0px), 0px));
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
  padding-left: max(env(safe-area-inset-left, 0px), 8px);
  padding-right: max(env(safe-area-inset-right, 0px), 8px);
  box-sizing: border-box;
  flex-shrink: 0;
  background: linear-gradient(180deg, #10142c 0%, #080a18 100%);
  border-top: 1.5px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 15;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.6);
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 16px;
  border-radius: 12px;
  transition: color 0.15s, transform 0.1s;
}

.nav-item:active {
  transform: scale(0.92);
}

.nav-icon {
  font-size: 20px;
}

.nav-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-item.active {
  color: #ffd700;
}

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
}

.nav-item.highlight {
  color: #00ff88;
}

/* ==========================================================================
   MODAL WINDOWS SYSTEM
   ========================================================================== */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 6, 14, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(env(safe-area-inset-top, 0px), 16px) 16px max(env(safe-area-inset-bottom, 0px), 16px) 16px;
  z-index: 50;
  box-sizing: border-box;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, #181d3c 0%, #0d1024 100%);
  border: 2px solid #ffd700;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), var(--gold-glow);
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-card.scrollable {
  text-align: left;
}

.modal-card.scrollable .compliance-text,
.modal-card.scrollable .paytable-content {
  overflow-y: auto;
  max-height: 55vh;
  margin: 12px 0 16px;
  padding-right: 6px;
}

.modal-close-x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-icon-badge {
  font-size: 40px;
  margin-bottom: 6px;
}

.modal-card h3 {
  font-family: var(--font-accent);
  font-size: 17px;
  color: #ffd700;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 12px;
  color: #c4c9e2;
  line-height: 1.5;
  margin-bottom: 14px;
}

.modal-rules-bullet {
  text-align: left;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 11px;
  color: #e2e8f0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.welcome-promo-wrap {
  margin: -10px -10px 10px -10px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.welcome-promo-img {
  width: 100%;
  height: auto;
  display: block;
}

.coins-highlight {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 900;
  color: #ffd700;
  margin: 6px 0 12px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.7);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}
