@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Dark premium palette */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.80);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  
  /* Accent colors */
  --accent-gold: #fbbf24;
  --accent-gold-dim: rgba(251, 191, 36, 0.15);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.15);
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-pink: #ec4899;
  --accent-red: #ef4444;
  
  /* Text */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(251, 191, 36, 0.3);
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #6366f1);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #a855f7);
  --gradient-fire: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
  --gradient-surface: linear-gradient(180deg, rgba(17,24,39,0.9), rgba(10,14,23,0.95));
  
  /* Roulette */
  --reel-item-size: 80px;
  --reel-gap: 8px;
  
  /* Layout */
  --dock-height: 72px;
  --header-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  
  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow-gold: 0 0 20px rgba(251,191,36,0.3);
  --shadow-glow-blue: 0 0 20px rgba(59,130,246,0.3);
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(ellipse at 20% 0%, rgba(59,130,246,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(139,92,246,0.06) 0%, transparent 50%),
    var(--bg-primary);
}

/* ============================================================
   Header — Balances
   ============================================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.balance-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.balance-badge:hover {
  background: var(--bg-glass-hover);
}

.balance-badge:active {
  transform: scale(0.95);
}

.balance-badge.stars {
  color: var(--accent-gold);
}

.balance-badge.fish {
  color: var(--accent-blue);
}

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

.balance-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 2px;
}

.balance-add:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ============================================================
   Admin Trigger Button (visible only in header for admins)
   ============================================================ */
.admin-trigger {
  display: none; /* shown via JS only for admins */
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.1);
  color: var(--accent-red);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.admin-trigger.shown {
  display: flex;
}

.admin-trigger:hover {
  background: rgba(239,68,68,0.2);
  border-color: var(--accent-red);
}

.admin-trigger:active {
  transform: scale(0.9);
}

/* ============================================================
   Admin Panel (floating dropdown)
   ============================================================ */
.admin-panel {
  display: none;
  position: fixed;
  top: calc(var(--header-height) + 8px);
  right: 12px;
  z-index: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-red);
  border-radius: 16px;
  padding: 14px 16px;
  gap: 10px;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 32px rgba(239,68,68,0.25);
  min-width: 200px;
}

.admin-panel.visible {
  display: flex;
  animation: slideDown 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.admin-panel h4 {
  color: var(--accent-red);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.admin-inputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.admin-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 12px;
  font-family: 'Inter', sans-serif;
}

.admin-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.admin-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.admin-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-red);
}

.admin-btn.danger {
  border-color: rgba(239,68,68,0.3);
  color: var(--accent-red);
}


/* ============================================================
   Main Content Area
   ============================================================ */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 16px);
  scroll-behavior: smooth;
}

.main-content::-webkit-scrollbar {
  display: none;
}

/* Section visibility */
.section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: center;
}

/* ============================================================
   Game Cards (Игры menu)
   ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.game-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(251,191,36,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.game-card:active {
  transform: scale(0.98);
}

.game-card-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.game-card-info {
  flex: 1;
}

.game-card-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.game-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.game-card-arrow {
  color: var(--text-muted);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-arrow {
  transform: translateX(4px);
  color: var(--accent-gold);
}

/* ============================================================
   Roulette Sub-mode Selection
   ============================================================ */
.submode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.submode-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submode-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
}

.submode-card-icon {
  font-size: 36px;
}

.submode-card-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.submode-card-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.badge-soon {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(139,92,246,0.15);
  color: var(--accent-purple);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.back-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ============================================================
   Roulette
   ============================================================ */
.roulette-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Mode toggle */
.mode-toggle {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 3px;
  gap: 2px;
}

.mode-toggle-btn {
  padding: 8px 20px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.mode-toggle-btn.active {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 2px 12px rgba(251,191,36,0.3);
}

.mode-toggle-btn:not(.active):hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

/* Reel viewport */
.reel-viewport {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: calc(var(--reel-item-size) + 24px);
  overflow: hidden;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
}

/* Center indicator */
.reel-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(var(--reel-item-size) + 8px);
  border: 2px solid var(--accent-gold);
  border-radius: 16px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 
    0 0 20px rgba(251,191,36,0.2),
    inset 0 0 20px rgba(251,191,36,0.05);
}

.reel-indicator::before {
  content: '▼';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--accent-gold);
}

/* Fade edges */
.reel-viewport::before,
.reel-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none;
}

.reel-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-card), transparent);
}

.reel-viewport::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-card), transparent);
}

/* Reel strip */
.reel-strip {
  display: flex;
  gap: var(--reel-gap);
  padding: 12px 0;
  will-change: transform;
}

/* Reel items */
.reel-item {
  flex-shrink: 0;
  width: var(--reel-item-size);
  height: var(--reel-item-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  gap: 2px;
}

.reel-item.winner {
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
  box-shadow: var(--shadow-glow-gold);
  animation: winPulse 0.6s ease infinite alternate;
}

.reel-item-emoji {
  font-size: 28px;
  line-height: 1;
}

.reel-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  pointer-events: none;
}

/* Star value number shown below the ⭐ emoji */
.reel-item-value {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}


/* Inventory images */
.inventory-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Spin button */
.spin-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.spin-btn {
  position: relative;
  padding: 14px 48px;
  border-radius: 16px;
  border: none;
  background: var(--gradient-gold);
  color: #000;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.spin-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.spin-btn:hover::before {
  opacity: 1;
}

.spin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(251,191,36,0.4);
}

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

.spin-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spin-cost {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.modal {
  width: 100%;
  max-width: 340px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-card);
}

.modal-emoji {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounceIn 0.5s ease;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-value {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: 12px;
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.modal-btn:active {
  transform: scale(0.96);
}

.modal-btn.primary {
  background: var(--gradient-gold);
  color: #000;
}

.modal-btn.primary:hover {
  box-shadow: 0 4px 20px rgba(251,191,36,0.4);
}

.modal-btn.secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.modal-btn.secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-gold);
}

/* ============================================================
   Dock Navigation
   ============================================================ */
.dock {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--dock-height);
  padding-bottom: var(--safe-bottom);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
  position: relative;
  z-index: 100;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.25s ease;
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.dock-item:hover {
  color: var(--text-secondary);
}

.dock-item.active {
  color: var(--accent-gold);
}

.dock-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent-gold);
}

.dock-icon {
  font-size: 22px;
  transition: transform 0.25s ease;
}

.dock-item.active .dock-icon {
  transform: scale(1.1);
}

.dock-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============================================================
   Profile Section
   ============================================================ */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
}

.profile-name {
  font-size: 20px;
  font-weight: 700;
}

.profile-username {
  font-size: 14px;
  color: var(--text-secondary);
}

.profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inventory grid */
.inventory-section {
  margin-top: 16px;
}

.inventory-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.inventory-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.inventory-item:hover {
  border-color: var(--border-glow);
  background: var(--bg-glass-hover);
}

.inventory-emoji {
  font-size: 28px;
}

.inventory-name {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
}

.inventory-value {
  font-size: 10px;
  color: var(--accent-gold);
  font-weight: 700;
}

/* ============================================================
   Stubs (Contests, Tasks, Tops)
   ============================================================ */
.stub-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 24px;
  text-align: center;
}

.stub-icon {
  font-size: 56px;
  opacity: 0.5;
}

.stub-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}

.stub-text {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.5;
}

/* ============================================================
   Tops / Leaderboard
   ============================================================ */
.leaderboard-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 3px;
  margin-bottom: 16px;
}

.leaderboard-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.leaderboard-tab.active {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.leaderboard-item:nth-child(1) {
  border-color: rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.05);
}

.leaderboard-item:nth-child(2) {
  border-color: rgba(192,192,192,0.3);
  background: rgba(192,192,192,0.03);
}

.leaderboard-item:nth-child(3) {
  border-color: rgba(205,127,50,0.3);
  background: rgba(205,127,50,0.03);
}

.leaderboard-rank {
  font-size: 14px;
  font-weight: 800;
  min-width: 28px;
  text-align: center;
  color: var(--text-muted);
}

.leaderboard-item:nth-child(1) .leaderboard-rank { color: var(--accent-gold); }
.leaderboard-item:nth-child(2) .leaderboard-rank { color: #c0c0c0; }
.leaderboard-item:nth-child(3) .leaderboard-rank { color: #cd7f32; }

.leaderboard-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.leaderboard-score {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ============================================================
   Deposit Modal
   ============================================================ */
.deposit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.deposit-option {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
}

.deposit-option:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.deposit-option.selected {
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.deposit-amount {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
}

.deposit-label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state-icon {
  font-size: 40px;
  opacity: 0.4;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

@keyframes winPulse {
  from { box-shadow: 0 0 10px rgba(251,191,36,0.2); }
  to { box-shadow: 0 0 25px rgba(251,191,36,0.5); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============================================================
   Toast notifications
   ============================================================ */
.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  white-space: nowrap;
}

.toast.success {
  border-color: rgba(16,185,129,0.3);
  color: var(--accent-green);
}

.toast.error {
  border-color: rgba(239,68,68,0.3);
  color: var(--accent-red);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 360px) {
  :root {
    --reel-item-size: 64px;
  }
  
  .header {
    gap: 10px;
    padding: 10px 14px;
  }
  
  .balance-badge {
    padding: 5px 10px;
    font-size: 13px;
  }
  
  .modal {
    padding: 24px 20px;
  }
  
  .inventory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Scrollbar for desktop */
@media (min-width: 600px) {
  .main-content {
    max-width: 480px;
    margin: 0 auto;
  }
}
