:root {
  --charcoal: #1a1a2e;
  --midnight: #16213e;
  --blood: #e94560;
  --gold: #f5c518;
  --deep-blue: #0f3460;
  --dark-surface: #1e2a3a;
  --text-primary: #e8e8e8;
  --text-secondary: #8899aa;
  --green: #2ecc71;
  --orange: #f39c12;
}

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

body {
  background: var(--charcoal);
  color: var(--text-primary);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

#root { min-height: 100vh; }

@keyframes neonFlicker {
  0%, 100% { text-shadow: 0 0 10px rgba(233,69,96,0.8), 0 0 40px rgba(233,69,96,0.4), 0 0 80px rgba(233,69,96,0.2); }
  50% { text-shadow: 0 0 5px rgba(233,69,96,0.6), 0 0 20px rgba(233,69,96,0.3), 0 0 60px rgba(233,69,96,0.1); }
  70% { text-shadow: 0 0 15px rgba(233,69,96,1), 0 0 50px rgba(233,69,96,0.5), 0 0 100px rgba(233,69,96,0.3); }
}

@keyframes pulseRed {
  0%, 100% { box-shadow: 0 0 5px rgba(233,69,96,0.3); }
  50% { box-shadow: 0 0 20px rgba(233,69,96,0.8), 0 0 40px rgba(233,69,96,0.4); }
}

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

@keyframes cashTick {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); color: var(--gold); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shakeIt {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

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

.neon-title {
  font-family: 'Bebas Neue', sans-serif;
  animation: neonFlicker 3s infinite;
}

.pulse-danger { animation: pulseRed 1s infinite; }
.slide-in { animation: slideIn 0.4s ease-out forwards; }
.cash-tick { animation: cashTick 0.3s ease-out; }
.fade-in { animation: fadeIn 0.5s ease-out; }
.shake { animation: shakeIt 0.3s ease-out; }

.suspicion-bar {
  transition: width 0.5s ease-out, background-color 0.5s ease-out;
}

.tab-btn {
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}
.tab-btn:hover { border-bottom-color: var(--blood); }
.tab-btn.active { border-bottom-color: var(--gold); color: var(--gold); }

.card-glow-common { box-shadow: 0 0 8px rgba(136,153,170,0.3); }
.card-glow-rare { box-shadow: 0 0 12px rgba(66,133,244,0.5); }
.card-glow-legendary { box-shadow: 0 0 16px rgba(245,197,24,0.6); }

.city-tile {
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
}
.city-tile:hover { transform: scale(1.1); z-index: 10; border-color: rgba(255,255,255,0.3); }

.advance-btn {
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.advance-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(233,69,96,0.4); }
.advance-btn:active { transform: translateY(0); }

.operative-card {
  transition: all 0.2s ease;
}
.operative-card:hover { transform: translateY(-4px); }

.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-track { background: var(--charcoal); }
.scrollbar-thin::-webkit-scrollbar-thumb { background: var(--deep-blue); border-radius: 3px; }

@media (max-width: 768px) {
  .mobile-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--midnight);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

.confetti-piece {
  position: fixed;
  animation: confetti 3s ease-in forwards;
}