* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; overflow-x: hidden; background: #1a0a2e; }

:root {
  --pink: #ff6b9d;
  --purple: #c56cf0;
  --blue: #7c6cf0;
  --cyan: #54a0ff;
  --gold: #ffd32a;
  --dark: #1a0a2e;
  --darker: #0f0520;
  --glass: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --text: #f0e6ff;
  --text-dim: #a78bbd;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

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

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255,107,157,0.3); }
  50% { box-shadow: 0 0 40px rgba(255,107,157,0.6); }
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

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

@keyframes noteFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.bg-particles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-particles span {
  position: absolute; display: block; color: rgba(255,255,255,0.15); font-size: 24px;
  animation: noteFloat linear infinite;
}

.glass-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white; border: none; border-radius: 12px; padding: 10px 20px;
  font-family: 'Nunito', sans-serif; font-weight: 700; cursor: pointer;
  transition: all 0.2s; font-size: 14px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,107,157,0.4); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); border-radius: 12px; padding: 10px 20px;
  font-family: 'Nunito', sans-serif; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-size: 14px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); }

.stat-bar-bg {
  background: rgba(0,0,0,0.3); border-radius: 8px; height: 10px; overflow: hidden;
}
.stat-bar-fill {
  height: 100%; border-radius: 8px; transition: width 0.5s ease;
}

.tab-active {
  background: linear-gradient(135deg, var(--pink), var(--purple)) !important;
  color: white !important; box-shadow: 0 4px 15px rgba(255,107,157,0.4);
}

.card-hover { transition: all 0.3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

.gacha-machine { animation: pulse-glow 2s infinite; }
.gacha-reveal-mythic { animation: rainbow 1s infinite linear; }
.gacha-shake { animation: shake 0.3s ease-in-out; }

.animate-in { animation: slideUp 0.4s ease-out; }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.energy-heart { display: inline-block; transition: all 0.3s; }
.energy-heart.empty { opacity: 0.3; filter: grayscale(1); }

.venue-locked { filter: grayscale(0.8); opacity: 0.5; }

.battle-flash { animation: battleFlash 0.3s ease-in-out; }
@keyframes battleFlash {
  0% { background: transparent; }
  50% { background: rgba(231,76,60,0.3); }
  100% { background: transparent; }
}

.boss-glow { animation: bossGlow 2s infinite; }
@keyframes bossGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(231,76,60,0.3); }
  50% { box-shadow: 0 0 30px rgba(231,76,60,0.7); }
}

@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .mobile-nav { display: flex !important; }
}
@media (min-width: 769px) {
  .desktop-nav { display: flex !important; }
  .mobile-nav { display: none !important; }
}

.character-display {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}