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

body {
  background: #0a0618;
  min-height: 100vh;
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

/* Background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(120, 0, 255, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 0, 120, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 200, 255, 0.08) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 98px, rgba(255,255,255,0.02) 98px, rgba(255,255,255,0.02) 100px),
    repeating-linear-gradient(90deg, transparent, transparent 98px, rgba(255,255,255,0.02) 98px, rgba(255,255,255,0.02) 100px);
  pointer-events: none;
  z-index: 0;
}

#root { position: relative; z-index: 1; }

/* Neon title animation */
@keyframes neonPulse {
  0%, 100% { 
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 0 80px #ff00ff;
    filter: brightness(1);
  }
  50% { 
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    filter: brightness(0.9);
  }
}

.neon-title {
  font-family: 'Bungee Shade', cursive;
  animation: neonPulse 2s ease-in-out infinite;
  color: #ff44ff;
}

.neon-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 100, 255, 0.6);
}

/* Reel styling */
.reel-container {
  background: linear-gradient(145deg, #1a0f2e, #0d0720);
  border: 3px solid #2a1a4a;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.5), 0 0 20px rgba(100, 0, 255, 0.2);
}

.reel-container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

.reel-window {
  height: 100px;
  overflow: hidden;
  position: relative;
}

.reel-strip {
  display: flex;
  flex-direction: column;
  transition: none;
}

.reel-strip.spinning {
  animation: reelSpin 0.1s linear infinite;
}

@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

.reel-item {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}

/* Rarity glow borders */
.glow-common { box-shadow: 0 0 15px rgba(150,150,150,0.3), inset 0 0 15px rgba(150,150,150,0.1); border-color: #666 !important; }
.glow-uncommon { box-shadow: 0 0 15px rgba(50,200,50,0.4), inset 0 0 15px rgba(50,200,50,0.1); border-color: #32c832 !important; }
.glow-rare { box-shadow: 0 0 20px rgba(50,100,255,0.5), inset 0 0 15px rgba(50,100,255,0.1); border-color: #3264ff !important; }
.glow-epic { box-shadow: 0 0 25px rgba(160,50,255,0.5), inset 0 0 20px rgba(160,50,255,0.15); border-color: #a032ff !important; }
.glow-legendary { box-shadow: 0 0 30px rgba(255,160,0,0.6), inset 0 0 20px rgba(255,160,0,0.15); border-color: #ffa000 !important; }
.glow-mythic { 
  box-shadow: 0 0 40px rgba(255,0,50,0.6), inset 0 0 25px rgba(255,0,50,0.15); 
  border-color: #ff0032 !important;
  animation: mythicBorder 2s linear infinite;
}

@keyframes mythicBorder {
  0% { border-color: #ff0032 !important; box-shadow: 0 0 40px rgba(255,0,50,0.6); }
  33% { border-color: #ff6600 !important; box-shadow: 0 0 40px rgba(255,100,0,0.6); }
  66% { border-color: #ff00ff !important; box-shadow: 0 0 40px rgba(255,0,255,0.6); }
  100% { border-color: #ff0032 !important; box-shadow: 0 0 40px rgba(255,0,50,0.6); }
}

/* PULL button */
.pull-btn {
  font-family: 'Bungee', cursive;
  background: linear-gradient(180deg, #ff2a6d, #d1002e);
  color: white;
  border: none;
  padding: 18px 60px;
  font-size: 28px;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 3px;
  box-shadow: 0 6px 0 #8b0020, 0 8px 30px rgba(255,42,109,0.4);
  transition: all 0.15s ease;
  position: relative;
  text-transform: uppercase;
}

.pull-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #8b0020, 0 12px 40px rgba(255,42,109,0.5);
  animation: wobble 0.5s ease;
}

.pull-btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #8b0020, 0 4px 15px rgba(255,42,109,0.3);
}

.pull-btn:disabled {
  background: linear-gradient(180deg, #444, #333);
  box-shadow: 0 4px 0 #222;
  cursor: not-allowed;
  opacity: 0.7;
}

.pull-btn.ultra {
  background: linear-gradient(180deg, #ffd700, #ff8c00, #ff4500);
  box-shadow: 0 6px 0 #8b4500, 0 8px 30px rgba(255,200,0,0.5);
  animation: ultraPulse 1.5s ease-in-out infinite;
}

@keyframes ultraPulse {
  0%, 100% { box-shadow: 0 6px 0 #8b4500, 0 8px 30px rgba(255,200,0,0.5); }
  50% { box-shadow: 0 6px 0 #8b4500, 0 8px 50px rgba(255,200,0,0.8); }
}

@keyframes wobble {
  0%, 100% { transform: translateY(-2px) rotate(0); }
  25% { transform: translateY(-2px) rotate(-2deg); }
  75% { transform: translateY(-2px) rotate(2deg); }
}

/* Rarity badges */
.badge-common { background: linear-gradient(135deg, #555, #777); color: #ccc; }
.badge-uncommon { background: linear-gradient(135deg, #1a6b1a, #2ecc40); color: #e0ffe0; }
.badge-rare { background: linear-gradient(135deg, #1a3a8b, #4a8bff); color: #d0e0ff; }
.badge-epic { background: linear-gradient(135deg, #5a1a8b, #9b59b6); color: #e8d0ff; }
.badge-legendary { background: linear-gradient(135deg, #8b5a00, #f39c12); color: #fff5d0; }
.badge-mythic { 
  background: linear-gradient(135deg, #8b0000, #ff0040, #ff6600, #ffaa00);
  background-size: 200% 200%;
  animation: mythicBadge 2s linear infinite;
  color: #fff;
}

@keyframes mythicBadge {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gold variant shimmer */
.variant-gold {
  background: linear-gradient(135deg, #8b6914, #ffd700, #daa520);
  background-size: 200% 200%;
  animation: goldShimmer 2s ease-in-out infinite;
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Diamond variant sparkle */
.variant-diamond {
  background: linear-gradient(135deg, #4a90d9, #87ceeb, #e0f0ff, #4a90d9);
  background-size: 200% 200%;
  animation: diamondSparkle 1.5s ease-in-out infinite;
}

@keyframes diamondSparkle {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Confetti */
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 9999;
  animation: confettiFall linear forwards;
  pointer-events: none;
}

/* Screen shake */
@keyframes screenShake {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-5px, -3px); }
  20% { transform: translate(5px, 3px); }
  30% { transform: translate(-3px, 5px); }
  40% { transform: translate(3px, -5px); }
  50% { transform: translate(-5px, 3px); }
  60% { transform: translate(5px, -3px); }
  70% { transform: translate(-3px, -5px); }
  80% { transform: translate(3px, 5px); }
  90% { transform: translate(-5px, -3px); }
}

.shake { animation: screenShake 0.5s ease; }

/* Rainbow flash */
@keyframes rainbowFlash {
  0% { opacity: 0.6; background: #ff0000; }
  16% { opacity: 0.5; background: #ff8800; }
  33% { opacity: 0.4; background: #ffff00; }
  50% { opacity: 0.5; background: #00ff00; }
  66% { opacity: 0.4; background: #0088ff; }
  83% { opacity: 0.5; background: #8800ff; }
  100% { opacity: 0; background: #ff0000; }
}

.rainbow-flash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  animation: rainbowFlash 1s ease-out forwards;
}

/* Prize reveal */
@keyframes prizeReveal {
  0% { transform: scale(0) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.2) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.prize-reveal {
  animation: prizeReveal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Trophy card */
.trophy-card {
  background: linear-gradient(145deg, #1a1030, #120a22);
  border: 2px solid #2a1a4a;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.trophy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

/* Luck-O-Meter */
@keyframes luckPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.luck-meter {
  animation: luckPulse 3s ease-in-out infinite;
}

/* Sparkle overlay */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.sparkle-overlay {
  position: absolute;
  pointer-events: none;
  font-size: 20px;
  animation: sparkle 1s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0618; }
::-webkit-scrollbar-thumb { background: #2a1a4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a2a5a; }

/* Token counter */
.token-counter {
  background: linear-gradient(135deg, #1a0f2e, #2a1a4a);
  border: 2px solid #3a2a5a;
  border-radius: 30px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Daily bonus button */
@keyframes dailyGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0,255,150,0.3); }
  50% { box-shadow: 0 0 25px rgba(0,255,150,0.6); }
}

.daily-bonus-btn {
  animation: dailyGlow 2s ease-in-out infinite;
}

/* Collect button */
.collect-btn {
  background: linear-gradient(135deg, #00b894, #00cec9);
  border: none;
  color: white;
  font-family: 'Bungee', cursive;
  font-size: 16px;
  padding: 12px 32px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 #008060, 0 6px 20px rgba(0,184,148,0.3);
}

.collect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #008060, 0 8px 25px rgba(0,184,148,0.4);
}

.collect-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #008060;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 15, 0.92);
  z-index: 100;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

/* Progress bar */
.progress-bar-bg {
  background: #1a0f2e;
  border-radius: 10px;
  height: 12px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff00ff, #00ccff, #ff00ff);
  background-size: 200% 100%;
  animation: progressShimmer 3s linear infinite;
  transition: width 0.5s ease;
}

@keyframes progressShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Stats bar */
.stat-item {
  background: linear-gradient(145deg, #150d28, #1e1338);
  border: 1px solid #2a1a4a;
  border-radius: 10px;
  padding: 12px 16px;
}

/* Empty trophy slot */
.empty-slot {
  background: linear-gradient(145deg, #0d0820, #0a0618);
  border: 2px dashed #1a1030;
  border-radius: 12px;
  padding: 16px;
  opacity: 0.4;
}

/* Spin counter animation */
@keyframes spinCount {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.spin-count-anim {
  animation: spinCount 0.3s ease;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.float-anim {
  animation: float 3s ease-in-out infinite;
}