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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0a0a1a;
  color: #fff;
  overflow: hidden;
  height: 100vh;
}

#city {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#city:active {
  cursor: grabbing;
}

#stats {
  position: fixed;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#stats span {
  color: #f4a261;
  font-weight: bold;
}

#fps {
  position: fixed;
  top: 16px;
  right: 200px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: monospace;
  color: #7ec8e3;
  z-index: 10;
}

#sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 180px;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 20, 40, 0.95) 0%, rgba(10, 10, 30, 0.95) 100%);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar h2 {
  font-size: 20px;
  color: #f4a261;
  margin-bottom: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

#sidebar button {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

#sidebar button:hover {
  background: rgba(244, 162, 97, 0.3);
  border-color: #f4a261;
}

#sidebar button:active {
  transform: scale(0.98);
}

#controls-legend {
  position: fixed;
  bottom: 16px;
  right: 200px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  z-index: 10;
}

#earthquake-badge {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #e74c3c;
  color: #fff;
  padding: 16px 32px;
  font-size: 24px;
  font-weight: bold;
  border-radius: 8px;
  z-index: 100;
  animation: pulse 0.3s infinite;
}

#earthquake-badge.hidden {
  display: none;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
