/* ================================================
   NEON CASINO — Complete Stylesheet (Phase 2)
   ================================================ */

/* ============ CSS VARIABLES ============ */
:root {
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00aa;
  --neon-purple: #8b5cf6;
  --neon-lime: #39ff14;
  --neon-gold: #ffd700;
  --neon-orange: #ff6b2b;

  --bg-dark: #0a0a1a;
  --bg-darker: #06060f;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(15, 15, 40, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);

  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --text-dim: #555568;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-neon-cyan: 0 0 15px rgba(0, 240, 255, 0.3), 0 0 40px rgba(0, 240, 255, 0.1);
  --shadow-neon-magenta: 0 0 15px rgba(255, 0, 170, 0.3), 0 0 40px rgba(255, 0, 170, 0.1);
  --shadow-neon-purple: 0 0 15px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.1);

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Cascadia Code", "Fira Code", "SF Mono", Consolas, monospace;

  --nav-height: 70px;
  --symbol-size: 72px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 0, 170, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 10%, rgba(57, 255, 20, 0.04) 0%, transparent 40%);
  animation: bgShift 20s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

@keyframes bgShift {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; }
  100% { opacity: 0.6; transform: scale(1.1); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* ============ DEMO BADGE ============ */
.demo-badge {
  position: fixed;
  top: 80px;
  left: 16px;
  z-index: 150;
  padding: 4px 14px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 43, 0.15));
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-sm);
  color: var(--neon-gold);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  animation: demoPulse 2s ease-in-out infinite alternate;
}

@keyframes demoPulse {
  from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
  to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
}

/* ============ GLASS PANEL ============ */
.glass-panel {
  background: linear-gradient(135deg, rgba(15, 15, 40, 0.75), rgba(10, 10, 30, 0.65));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ============ NAVBAR ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 24px;
  background: linear-gradient(180deg, rgba(8, 8, 20, 0.95), rgba(6, 6, 15, 0.9));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(139, 92, 246, 0.08);
  gap: 16px;
  flex-wrap: wrap;
}

.nav-left { flex-shrink: 0; }

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.2);
  user-select: none;
  animation: logoGlow 3s ease-in-out infinite alternate;
  cursor: default;
}

@keyframes logoGlow {
  0% { text-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.2); }
  33% { text-shadow: 0 0 15px rgba(0, 240, 255, 0.7), 0 0 40px rgba(0, 240, 255, 0.3), 0 0 60px rgba(139, 92, 246, 0.15); }
  66% { text-shadow: 0 0 12px rgba(255, 0, 170, 0.4), 0 0 35px rgba(0, 240, 255, 0.25); }
  100% { text-shadow: 0 0 18px rgba(0, 240, 255, 0.8), 0 0 50px rgba(0, 240, 255, 0.35), 0 0 80px rgba(139, 92, 246, 0.2); }
}

.logo-icon {
  color: var(--neon-magenta);
  text-shadow: 0 0 10px rgba(255, 0, 170, 0.6);
}

.logo-highlight { color: var(--neon-cyan); }

.nav-center {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.balance-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 20px;
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.06), rgba(57, 255, 20, 0.02));
  min-width: 120px;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.06), inset 0 0 15px rgba(57, 255, 20, 0.03);
  position: relative;
  overflow: hidden;
}

.balance-display::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(57, 255, 20, 0.04), transparent 60%);
  animation: balancePulse 3s ease-in-out infinite;
}

@keyframes balancePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.balance-label {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.balance-amount {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--neon-lime);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 25px rgba(57, 255, 20, 0.15);
  position: relative;
  z-index: 1;
}

.balance-amount.flash-win { animation: flashGreen 0.6s ease; }
.balance-amount.flash-lose { animation: flashRed 0.6s ease; }

@keyframes flashGreen {
  0%, 100% { color: var(--neon-lime); }
  30% { color: #fff; text-shadow: 0 0 25px var(--neon-lime), 0 0 60px rgba(57, 255, 20, 0.3); transform: scale(1.2); }
  60% { color: var(--neon-lime); transform: scale(1.05); }
}

@keyframes flashRed {
  0%, 100% { color: var(--neon-lime); }
  30% { color: #ff4444; text-shadow: 0 0 25px #ff4444; transform: scale(0.95); }
  60% { color: #ff8888; }
}

.bet-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

#bet-input {
  width: 70px;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#bet-input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
  outline: none;
}

.quick-chips { display: flex; gap: 4px; }

.chip {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px dashed var(--neon-purple);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.08));
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 0 8px rgba(139, 92, 246, 0.1);
}

.chip:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.2));
  box-shadow: var(--shadow-neon-purple), 0 2px 8px rgba(0,0,0,0.2);
  transform: translateY(-3px) scale(1.1);
  border-style: solid;
}

.chip:active { transform: translateY(0) scale(0.95); }

.nav-right {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  color: var(--text-primary);
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  transform: translateY(-1px);
}

.icon-btn:active { transform: translateY(1px) scale(0.95); }

.icon-btn.demo-active {
  border-color: var(--neon-gold);
  background: rgba(255, 215, 0, 0.1);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* ============ BUTTONS ============ */
.btn-primary {
  padding: 12px 32px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 50%);
  pointer-events: none;
}

.btn-primary:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5), 0 0 40px rgba(255, 0, 170, 0.15);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.95);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.1), 0 4px 15px rgba(0,0,0,0.3);
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.1), 0 4px 15px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 35px rgba(139, 92, 246, 0.65), 0 0 100px rgba(139, 92, 246, 0.2), 0 4px 15px rgba(0,0,0,0.3); }
}

.btn-glow:hover {
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.7), 0 0 120px rgba(139, 92, 246, 0.25), 0 6px 25px rgba(0,0,0,0.4);
  animation: none;
}

.btn-secondary {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
}

.btn-secondary:active { transform: scale(0.97); }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-text {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}

.btn-text:hover { color: var(--neon-cyan); }

.btn-danger {
  padding: 10px 24px;
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 50, 50, 0.15);
  color: #ff6666;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: rgba(255, 50, 50, 0.25);
  box-shadow: 0 0 15px rgba(255, 50, 50, 0.2);
}

/* ============ MAIN LAYOUT ============ */
.main-content {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.game-column { min-width: 0; }

/* ============ GAME TABS ============ */
.game-tabs {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(15, 15, 40, 0.6), rgba(10, 10, 30, 0.5));
  border-radius: var(--radius-lg);
  padding: 5px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  overflow-x: auto;
}

.tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.tab.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(0, 240, 255, 0.2));
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
  animation: tabActivate 0.3s ease;
}

@keyframes tabActivate {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ============ GAME PANELS ============ */
.game-panel {
  background: linear-gradient(145deg, rgba(15, 15, 45, 0.75), rgba(8, 8, 25, 0.7));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-xl);
  padding: 28px;
  min-height: 400px;
  animation: panelEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.game-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), rgba(0, 240, 255, 0.3), rgba(255, 0, 170, 0.2), transparent);
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% { opacity: 0.5; background-position: 0% 50%; }
  100% { opacity: 1; background-position: 100% 50%; }
}

@keyframes panelEnter {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ SLOT MACHINE ============ */
.slots-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.paylines-indicator {
  font-size: 0.78rem;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  font-weight: 700;
  padding: 4px 16px;
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.04);
}

.reels-frame {
  position: relative;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.6), rgba(5, 2, 20, 0.7));
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(139, 92, 246, 0.15),
    0 0 80px rgba(139, 92, 246, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.reels-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), transparent, rgba(0, 240, 255, 0.1));
  z-index: -1;
  filter: blur(1px);
}

.reels-wrapper { display: flex; gap: 8px; }

.reel {
  width: var(--symbol-size);
  height: calc(var(--symbol-size) * 3);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(5, 5, 15, 0.3), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.reel::before, .reel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 2;
  pointer-events: none;
}

.reel::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 26, 0.8), transparent);
}

.reel::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 10, 26, 0.8), transparent);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0s linear;
}

.reel-strip.spinning {
  transition: transform 2s cubic-bezier(0.15, 0.85, 0.3, 1);
}

.symbol-cell {
  width: var(--symbol-size);
  height: var(--symbol-size);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.payline-overlay {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 3;
}

@keyframes paylineFlash {
  0%, 100% { opacity: 0; }
  20%, 80% { opacity: 0.8; }
}

.slots-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

#spin-btn {
  padding: 16px 56px;
  font-size: 1.2rem;
  letter-spacing: 3px;
}

.payout-table-toggle { margin-top: 4px; }

.payout-table {
  margin-top: 8px;
  width: 100%;
  max-width: 500px;
}

.payout-grid {
  display: grid;
  grid-template-columns: 50px repeat(3, 1fr);
  gap: 2px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.payout-grid .payout-header {
  font-weight: 700;
  color: var(--text-primary);
  padding: 4px 8px;
  text-align: center;
}

.payout-grid .payout-cell {
  padding: 4px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.payout-grid .payout-symbol { font-size: 1.3rem; }

/* ============ ROULETTE ============ */
.roulette-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.roulette-top {
  display: flex;
  justify-content: center;
}

.wheel-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-pointer {
  font-size: 1.8rem;
  color: var(--neon-gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.3);
  z-index: 3;
  margin-bottom: -10px;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5));
  animation: pointerGlow 1.5s ease-in-out infinite alternate;
}

@keyframes pointerGlow {
  from { filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5)); }
  to { filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.8)); }
}

.wheel-container {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 4px solid var(--neon-gold);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.35),
    0 0 60px rgba(255, 215, 0, 0.1),
    inset 0 0 30px rgba(0, 0, 0, 0.6),
    0 4px 20px rgba(0,0,0,0.5);
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle, #0f0f20, #060610);
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 0s;
}

.wheel.spinning {
  transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-number {
  position: absolute;
  width: 26px;
  height: 26px;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.last-number {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 900;
  min-height: 48px;
  text-align: center;
  letter-spacing: 2px;
}

.roulette-board {
  display: grid;
  grid-template-columns: 40px repeat(12, 1fr) 40px;
  gap: 3px;
  max-width: 100%;
  overflow-x: auto;
  padding: 12px;
  background: rgba(0, 60, 0, 0.15);
  border: 2px solid rgba(0, 100, 0, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(0,0,0,0.3);
}

.board-cell {
  padding: 10px 4px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  min-width: 34px;
  letter-spacing: 0.3px;
}

.board-cell:hover {
  transform: translateY(-2px) scale(1.05);
  z-index: 2;
  filter: brightness(1.2);
}

.board-cell.selected {
  box-shadow: 0 0 0 2px var(--neon-gold), 0 0 15px rgba(255, 215, 0, 0.5), inset 0 0 8px rgba(255, 215, 0, 0.15);
  transform: scale(1.02);
}

.board-cell.selected::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-gold);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.8);
}

.board-cell:active { transform: scale(0.95); }

.cell-green {
  background: linear-gradient(135deg, #0a8c3e, #06702f);
  color: #fff;
  border-color: rgba(57, 255, 20, 0.25);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cell-red {
  background: linear-gradient(135deg, #d4243b, #a01c2e);
  color: #fff;
  border-color: rgba(255, 80, 80, 0.2);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cell-black {
  background: linear-gradient(135deg, #2a2a3a, #18182a);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cell-outside {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.cell-outside:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.cell-red:hover { background: linear-gradient(135deg, #e83350, #c02040); box-shadow: 0 0 12px rgba(212, 36, 59, 0.4); }
.cell-black:hover { background: linear-gradient(135deg, #3a3a50, #252540); box-shadow: 0 0 12px rgba(100, 100, 150, 0.2); }
.cell-green:hover { background: linear-gradient(135deg, #0da04a, #088038); box-shadow: 0 0 12px rgba(57, 255, 20, 0.25); }

.roulette-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 8px;
}

.roulette-bets-display {
  font-size: 0.88rem;
  color: var(--text-secondary);
  min-width: 130px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============ PLINKO ============ */
.plinko-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.plinko-options {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.risk-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.risk-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 4px;
}

.risk-btn {
  padding: 6px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.risk-btn:hover { background: var(--bg-card-hover); }

.risk-btn.active {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.volatility-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

.plinko-board-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#plinko-canvas {
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(0, 5, 15, 0.6), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(0, 240, 255, 0.1);
  max-width: 100%;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.plinko-multipliers {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.plinko-mult {
  padding: 6px 4px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 4px;
  min-width: 42px;
  transition: all 0.3s;
}

.plinko-mult.highlight {
  transform: scale(1.15);
  z-index: 2;
}

.plinko-controls { display: flex; gap: 12px; }

/* ============ CROSSY ROAD ============ */
.crossy-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.crossy-hud {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.crossy-hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  min-width: 80px;
}

.crossy-hud-label {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.crossy-hud-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.crossy-mode-toggle { flex-direction: row; gap: 8px; }

.crossy-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.crossy-switch input { opacity: 0; width: 0; height: 0; }

.crossy-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  transition: background 0.3s;
}

.crossy-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: transform 0.3s, background 0.3s;
}

.crossy-switch input:checked + .crossy-slider {
  background: rgba(57, 255, 20, 0.25);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.crossy-switch input:checked + .crossy-slider::before {
  transform: translateX(18px);
  background: var(--neon-lime);
}

.crossy-multiplier-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.crossy-mult-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s;
}

.crossy-mult-item.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.crossy-mult-item.reached {
  background: rgba(57, 255, 20, 0.15);
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--neon-lime);
}

.crossy-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 215, 0, 0.15);
  background: #111;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3);
}

#crossy-canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.crossy-game-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 5;
}

.crossy-game-over.hidden { display: none; }

.crossy-go-text {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ff4444;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.6), 0 0 60px rgba(255, 68, 68, 0.2);
  animation: crossyPulse 1s ease infinite alternate;
}

@keyframes crossyPulse {
  from { text-shadow: 0 0 20px rgba(255, 68, 68, 0.6); }
  to { text-shadow: 0 0 30px rgba(255, 68, 68, 0.8), 0 0 60px rgba(255, 68, 68, 0.3); }
}

.crossy-go-score {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-top: 8px;
}

.crossy-go-payout {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-top: 4px;
}

.crossy-go-payout.win { color: var(--neon-lime); text-shadow: 0 0 8px rgba(57, 255, 20, 0.4); }
.crossy-go-payout.loss { color: #ff4444; }

.crossy-controls { display: flex; gap: 12px; }

.crossy-dpad {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.dpad-mid { display: flex; gap: 4px; align-items: center; }

.dpad-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  color: var(--neon-cyan);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.dpad-btn:active {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
  transform: scale(0.93);
}

.dpad-center {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

@media (pointer: coarse) { .crossy-dpad { display: flex; } }
@media (max-width: 600px) { .crossy-dpad { display: flex; } }

/* ============ BLACKJACK ============ */
.blackjack-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.bj-label {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
}

.bj-hand {
  display: flex;
  gap: 10px;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.bj-card {
  width: 80px;
  height: 110px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.2);
  animation: cardDeal 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bj-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%);
  pointer-events: none;
}

@keyframes cardDeal {
  0% { opacity: 0; transform: translateY(-30px) scale(0.7) rotateY(180deg); }
  40% { opacity: 1; transform: translateY(-5px) scale(1.05) rotateY(30deg); }
  70% { transform: translateY(2px) scale(0.98) rotateY(0deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateY(0deg); }
}

.bj-card-red {
  background: linear-gradient(145deg, #1a1028, #0f0820);
  color: #ff4466;
  text-shadow: 0 0 8px rgba(255, 68, 102, 0.4);
}

.bj-card-black {
  background: linear-gradient(145deg, #1a1028, #0f0820);
  color: #e0e0f0;
  text-shadow: 0 0 8px rgba(200, 200, 240, 0.3);
}

.bj-card-back {
  background: linear-gradient(145deg, #1a0a30, #0f0620);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  font-size: 2rem;
}

.bj-card-suit {
  font-size: 0.9rem;
  opacity: 0.7;
}

.bj-score-display {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-cyan);
  min-height: 24px;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.3);
}

.bj-vs {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 4px;
  font-weight: 800;
  padding: 4px 0;
}

.bj-result {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  min-height: 30px;
  letter-spacing: 1px;
}

.bj-result.win { color: var(--neon-lime); text-shadow: 0 0 10px rgba(57, 255, 20, 0.5); }
.bj-result.lose { color: #ff4444; text-shadow: 0 0 10px rgba(255, 68, 68, 0.5); }
.bj-result.push { color: var(--neon-gold); text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

.bj-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ HI-LO ============ */
.hilo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.hilo-streak-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.06);
}

.hilo-streak-label {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
}

.hilo-streak-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--neon-purple);
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.hilo-cards-area {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 180px;
}

.hilo-card-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hilo-card-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  font-weight: 700;
}

.hilo-card {
  width: 100px;
  height: 140px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #1a1028, #0f0820);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.hilo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
}

.hilo-card-hidden {
  background: linear-gradient(145deg, #1a0a30, #0f0620);
  border-color: var(--neon-purple);
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
  font-size: 2.5rem;
}

.hilo-card-red { color: #ff4466; text-shadow: 0 0 10px rgba(255, 68, 102, 0.5); }
.hilo-card-black { color: #e0e0f0; text-shadow: 0 0 10px rgba(200, 200, 240, 0.4); }

.hilo-card-rank {
  font-size: 2.2rem;
  line-height: 1;
}

.hilo-card-suit-big {
  font-size: 1.4rem;
  opacity: 0.8;
}

.hilo-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  min-width: 30px;
  text-align: center;
}

.hilo-arrow.up { color: var(--neon-lime); }
.hilo-arrow.down { color: #ff4444; }
.hilo-arrow.same { color: var(--neon-gold); }

.hilo-deck-info {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.hilo-result {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  min-height: 26px;
}

.hilo-result.win { color: var(--neon-lime); text-shadow: 0 0 8px rgba(57, 255, 20, 0.4); }
.hilo-result.lose { color: #ff4444; text-shadow: 0 0 8px rgba(255, 68, 68, 0.4); }

.hilo-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-hilo {
  padding: 12px 24px;
  border: 2px solid;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
  background: transparent;
}

.btn-hilo-high {
  border-color: rgba(57, 255, 20, 0.3);
  color: var(--neon-lime);
  background: rgba(57, 255, 20, 0.06);
}

.btn-hilo-high:hover {
  background: rgba(57, 255, 20, 0.15);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
  transform: translateY(-2px);
}

.btn-hilo-low {
  border-color: rgba(255, 68, 68, 0.3);
  color: #ff6666;
  background: rgba(255, 68, 68, 0.06);
}

.btn-hilo-low:hover {
  background: rgba(255, 68, 68, 0.15);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
  transform: translateY(-2px);
}

.btn-hilo-same {
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--neon-gold);
  background: rgba(255, 215, 0, 0.06);
}

.btn-hilo-same:hover {
  background: rgba(255, 215, 0, 0.15);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
  transform: translateY(-2px);
}

.btn-hilo:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* ============ WHEEL SPIN ============ */
.wheelspin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.ws-pointer {
  font-size: 2rem;
  color: var(--neon-gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  z-index: 3;
  margin-bottom: -14px;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

#wheelspin-canvas {
  border-radius: 50%;
  border: 4px solid var(--neon-gold);
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.25),
    0 0 60px rgba(255, 215, 0, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.5s ease, filter 0.5s ease;
}

#wheelspin-canvas.spinning {
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.5),
    0 0 80px rgba(255, 215, 0, 0.2),
    0 0 120px rgba(255, 0, 170, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4);
  animation: wheelPulse 0.5s ease-in-out infinite alternate;
}

@keyframes wheelPulse {
  from { box-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 80px rgba(255, 215, 0, 0.2); }
  to { box-shadow: 0 0 60px rgba(255, 215, 0, 0.7), 0 0 100px rgba(139, 92, 246, 0.2); }
}

.ws-result {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  min-height: 40px;
  letter-spacing: 2px;
}

.ws-result.win { color: var(--neon-lime); text-shadow: 0 0 15px rgba(57, 255, 20, 0.5); }
.ws-result.lose { color: #ff4444; text-shadow: 0 0 15px rgba(255, 68, 68, 0.5); }
.ws-result.even { color: var(--neon-gold); text-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }

.ws-history {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.ws-history-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.ws-history-items {
  display: flex;
  gap: 4px;
}

.ws-history-item {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  animation: fadeIn 0.3s ease;
}

.ws-history-item.mult-high {
  border-color: rgba(255, 0, 170, 0.3);
  color: var(--neon-magenta);
  background: rgba(255, 0, 170, 0.08);
}

.ws-history-item.mult-med {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--neon-purple);
  background: rgba(139, 92, 246, 0.08);
}

.ws-history-item.mult-low {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.ws-history-item.mult-zero {
  border-color: rgba(255, 68, 68, 0.2);
  color: #ff5555;
  background: rgba(255, 68, 68, 0.06);
}

.ws-controls { display: flex; gap: 12px; }

/* ============ SIDEBAR ============ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-section { padding: 18px; }

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Stats Tabs */
.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 12px;
}

.stats-tab {
  padding: 4px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}

.stats-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.stats-tab.active {
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.06);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.08);
}

/* History */
.history-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 2px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  font-size: 0.78rem;
  animation: slideIn 0.3s ease;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-left-color: var(--neon-purple);
  transform: translateX(2px);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.history-game {
  color: var(--text-secondary);
  min-width: 60px;
}

.history-result {
  font-family: var(--font-mono);
  font-weight: 700;
}

.history-result.win { color: var(--neon-lime); }
.history-result.lose { color: #ff5555; }

.empty-state {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  padding: 12px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.2);
}

.stat-value.positive { color: var(--neon-lime); }
.stat-value.negative { color: #ff5555; }

/* Achievements */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  opacity: 0.35;
  transition: all 0.4s;
  border: 1px solid transparent;
}

.achievement.unlocked {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.02));
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.05);
  animation: achieveUnlock 0.5s ease;
}

@keyframes achieveUnlock {
  0% { transform: scale(0.95); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

.achievement-icon { font-size: 1.2rem; flex-shrink: 0; }
.achievement-info { display: flex; flex-direction: column; }
.achievement-name { font-weight: 600; font-size: 0.78rem; }
.achievement-desc { font-size: 0.65rem; color: var(--text-dim); }

/* ============ WIN OVERLAY ============ */
.win-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.75));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.win-overlay.visible {
  display: flex;
  animation: overlayIn 0.3s ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.win-content {
  text-align: center;
  animation: winPop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes winPop {
  0% { opacity: 0; transform: scale(0.2) rotate(-8deg); }
  50% { transform: scale(1.15) rotate(2deg); }
  70% { transform: scale(0.95) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.win-amount {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--neon-gold), #fff6c2, var(--neon-gold), #ffa500);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  animation: winGlow 1s ease-in-out infinite alternate, winShimmer 2s linear infinite;
  letter-spacing: 3px;
}

@keyframes winGlow {
  from { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
  to { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1)) drop-shadow(0 0 80px rgba(255, 215, 0, 0.5)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
}

@keyframes winShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.win-label {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 8px;
  background: linear-gradient(135deg, var(--text-primary), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  margin-top: 8px;
  text-transform: uppercase;
}

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: overlayIn 0.2s ease;
  padding: 20px;
}

.modal {
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.9) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-sm { max-width: 420px; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
}

.modal-close:hover { color: var(--text-primary); }

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.modal-body { margin-bottom: 20px; }

.help-section { margin-bottom: 16px; }
.help-section h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text-primary); }
.help-section p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 4px; }

.settings-group { margin-bottom: 20px; }
.settings-group h3 { font-size: 1rem; margin-bottom: 8px; color: var(--text-primary); }
.settings-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }

.confirm-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirm-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* ============ NOTIFICATION TOAST ============ */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 250;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
  pointer-events: none;
}

.toast.toast-error {
  background: rgba(255, 50, 50, 0.9);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.3);
}

.toast.toast-success {
  background: rgba(57, 255, 20, 0.15);
  color: var(--neon-lime);
  border: 1px solid rgba(57, 255, 20, 0.3);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

.toast.toast-info {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.achievement-unlock-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 107, 43, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: var(--radius-md);
  color: var(--neon-gold);
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 250;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15), 0 0 40px rgba(255, 215, 0, 0.05);
  animation: achieveIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), toastOut 0.3s ease 3s forwards;
}

@keyframes achieveIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============ LOSS OVERLAY ============ */
.loss-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.loss-overlay.visible {
  display: flex;
  animation: overlayIn 0.3s ease;
}

.loss-content {
  text-align: center;
  animation: lossPop 0.5s ease;
}

@keyframes lossPop {
  0% { opacity: 0; transform: translateY(-20px) scale(1.1); }
  30% { transform: translateX(-8px); }
  50% { transform: translateX(8px); }
  70% { transform: translateX(-4px); }
  90% { transform: translateX(2px); }
  100% { opacity: 1; transform: translateY(0) translateX(0); }
}

.loss-amount {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  color: #ff4444;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

.loss-label {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============ BALANCE FLOAT ============ */
.balance-float {
  position: fixed;
  z-index: 150;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.4rem;
  pointer-events: none;
  animation: floatUp 1.2s ease-out forwards;
}

.balance-float.positive { color: var(--neon-lime); text-shadow: 0 0 10px rgba(57, 255, 20, 0.5); }
.balance-float.negative { color: #ff4444; text-shadow: 0 0 10px rgba(255, 68, 68, 0.5); }

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-60px); }
}

/* ============ ROULETTE PULSE ============ */
.board-cell.winning-cell {
  animation: cellWinPulse 0.5s ease 4;
}

@keyframes cellWinPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px var(--neon-gold), 0 0 15px rgba(255, 215, 0, 0.4); }
}

/* ============ RESET BALANCE ============ */
.reset-balance-bar {
  text-align: center;
  padding: 12px;
  background: rgba(255, 50, 50, 0.08);
  border: 1px solid rgba(255, 50, 50, 0.15);
  border-radius: var(--radius-md);
  margin-top: 12px;
  display: none;
}

.reset-balance-bar.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.reset-balance-bar p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.btn-reset {
  padding: 8px 24px;
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 50, 50, 0.15);
  color: #ff6666;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-reset:hover {
  background: rgba(255, 50, 50, 0.25);
  box-shadow: 0 0 15px rgba(255, 50, 50, 0.2);
}

/* ============ FOOTER ============ */
.site-footer {
  text-align: center;
  padding: 28px 16px 20px;
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 0.75rem;
  border-top: 1px solid rgba(139, 92, 246, 0.08);
  background: linear-gradient(0deg, rgba(0,0,0,0.2), transparent);
  letter-spacing: 0.5px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), rgba(0, 240, 255, 0.15), transparent);
}

.site-footer span { color: var(--neon-purple); text-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-section { flex: 1; min-width: 250px; }
  .navbar { height: auto; padding: 10px 12px; gap: 8px; }
  .nav-center { order: 3; width: 100%; justify-content: center; }
  .game-tabs { font-size: 0.8rem; }
  .tab { padding: 8px 6px; font-size: 0.7rem; }
  :root { --symbol-size: 58px; }
  .symbol-cell { font-size: 2rem; }
  .win-amount { font-size: 2.5rem; }
  .hilo-card { width: 80px; height: 110px; }
  .bj-card { width: 65px; height: 90px; font-size: 1.3rem; }
  .game-panel { padding: 20px 16px; }
}

@media (max-width: 600px) {
  .quick-chips { display: none; }
  .roulette-board { font-size: 0.65rem; }
  .board-cell { padding: 6px 2px; min-width: 24px; }
  :root { --symbol-size: 50px; }
  .game-panel { padding: 16px 12px; }
  .sidebar-section { min-width: 100%; }
  .stats-tabs { gap: 2px; }
  .stats-tab { font-size: 0.6rem; padding: 3px 5px; }
  .hilo-cards-area { gap: 12px; }
  .hilo-card { width: 70px; height: 100px; font-size: 1.6rem; }
  .win-amount { font-size: 2rem; }
  .logo { font-size: 1.2rem; letter-spacing: 2px; }
  .balance-amount { font-size: 1.1rem; }
  .nav-right { gap: 4px; }
  .icon-btn { width: 36px; height: 36px; font-size: 1rem; }
}

@media (max-width: 400px) {
  .game-panel { padding: 12px 8px; min-height: 300px; }
  .tab { font-size: 0.62rem; padding: 7px 4px; }
  .bj-card { width: 55px; height: 78px; font-size: 1.1rem; }
  .bj-hand { gap: 6px; min-height: 90px; }
  .btn-primary { padding: 10px 20px; font-size: 0.85rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reel-strip.spinning { transition: transform 0.01ms !important; }
  .wheel.spinning { transition: transform 0.01ms !important; }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }
