* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #06060c; color: #e0e0e8; font-family: 'Exo 2', sans-serif; overflow-x: hidden; }

:root {
  --crime: #ff3333;
  --crime-glow: #ff333366;
  --city: #00ccff;
  --city-glow: #00ccff66;
  --science: #00ff88;
  --science-glow: #00ff8866;
  --bg: #06060c;
  --card: #0d0d18;
  --card-hover: #121220;
  --border: #1a1a2e;
}

@keyframes neonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 5px var(--glow-color), 0 0 10px var(--glow-color); }
  50% { box-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 30px var(--glow-color); }
}

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

@keyframes cashFlash {
  0% { color: #00ff88; transform: scale(1.15); }
  100% { color: inherit; transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

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

@keyframes liveDot {
  0%, 100% { background: #00ff88; box-shadow: 0 0 4px #00ff88; }
  50% { background: #00ff8866; box-shadow: 0 0 8px #00ff88; }
}

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  animation: liveDot 1.5s ease-in-out infinite;
  display: inline-block;
}

.card-crime { border-color: #ff333330; }
.card-crime:hover { border-color: #ff333360; box-shadow: 0 0 15px #ff333320; }
.card-city { border-color: #00ccff30; }
.card-city:hover { border-color: #00ccff60; box-shadow: 0 0 15px #00ccff20; }
.card-science { border-color: #00ff8830; }
.card-science:hover { border-color: #00ff8860; box-shadow: 0 0 15px #00ff8820; }

.tab-active-crime { border-bottom: 2px solid var(--crime); color: var(--crime); text-shadow: 0 0 10px var(--crime-glow); }
.tab-active-city { border-bottom: 2px solid var(--city); color: var(--city); text-shadow: 0 0 10px var(--city-glow); }
.tab-active-science { border-bottom: 2px solid var(--science); color: var(--science); text-shadow: 0 0 10px var(--science-glow); }

.progress-bar { height: 6px; border-radius: 3px; background: #1a1a2e; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; }
.progress-crime { background: linear-gradient(90deg, #ff3333, #ff6644); }
.progress-city { background: linear-gradient(90deg, #00ccff, #0088ff); }
.progress-science { background: linear-gradient(90deg, #00ff88, #00cc66); }

.btn-assign {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid #2a2a3e;
  background: #14141f; color: #e0e0e8; cursor: pointer; font-family: 'Share Tech Mono';
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.btn-assign:hover { background: #1e1e30; border-color: #3a3a5e; }
.btn-assign:active { transform: scale(0.9); }

.btn-crime:hover { border-color: var(--crime); color: var(--crime); }
.btn-city:hover { border-color: var(--city); color: var(--city); }
.btn-science:hover { border-color: var(--science); color: var(--science); }

.ticker-container {
  overflow: hidden; white-space: nowrap; background: #0a0a14;
  border-top: 1px solid #1a1a2e; border-bottom: 1px solid #1a1a2e;
}

.ticker-text {
  display: inline-block; animation: tickerScroll 30s linear infinite;
  font-family: 'Share Tech Mono', monospace; font-size: 13px; color: #8888aa;
}

.skyline-container { height: 60px; position: relative; overflow: hidden; }

.building-silhouette {
  position: absolute; bottom: 0; background: #0a0a14;
  border: 1px solid #00ccff20; border-bottom: none;
  transition: all 0.5s ease;
}

.tutorial-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6,6,12,0.95); z-index: 100;
  display: flex; align-items: center; justify-content: center;
}

.number-mono { font-family: 'Share Tech Mono', monospace; }
.title-font { font-family: 'Orbitron', sans-serif; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #06060c; }
::-webkit-scrollbar-thumb { background: #1a1a2e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a3e; }

@keyframes policeFlash {
  0%, 100% { border-color: #ff444430; }
  50% { border-color: #ff444480; box-shadow: 0 0 20px #ff444415; }
}

/* Arrested overlay */
.arrested-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(6, 6, 12, 0.97);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}

.arrested-content {
  text-align: center;
  max-width: 480px;
  width: 90%;
}

.arrested-inner {
  padding: 2rem 1.5rem;
}

.arrested-bars-top, .arrested-bars-bottom {
  display: flex;
  justify-content: space-around;
  padding: 0 2rem;
}

.arrested-bar {
  width: 6px;
  height: 60px;
  background: linear-gradient(180deg, #ff4444, #881111);
  border-radius: 3px;
  box-shadow: 0 0 10px #ff444444;
  animation: arrestBarPulse 2s ease-in-out infinite;
}

.arrested-bars-bottom .arrested-bar {
  animation-delay: 1s;
}

@keyframes arrestBarPulse {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 5px #ff444422; }
  50% { opacity: 1; box-shadow: 0 0 15px #ff444466; }
}

@keyframes jailShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-2px) rotate(-0.5deg); }
  30% { transform: translateX(2px) rotate(0.5deg); }
  50% { transform: translateX(-1px); }
  70% { transform: translateX(1px); }
}

@media (max-width: 768px) {
  .ticker-text { font-size: 11px; }
  .arrested-bar { height: 40px; width: 4px; }
}