html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0014;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior: none;
}

#map {
  position: fixed;
  inset: 0;
  background: #0a0014;
}

.leaflet-container {
  background: #0a0014;
}

#locate, #satellite, #overlay-toggle {
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#locate {
  bottom: max(24px, env(safe-area-inset-bottom));
  right: 20px;
  background: #ff2ea6;
  font-size: 28px;
}

#satellite, #overlay-toggle {
  right: 20px;
  background: rgba(20, 10, 40, 0.85);
  font-size: 22px;
  backdrop-filter: blur(8px);
}

#satellite {
  bottom: max(92px, calc(env(safe-area-inset-bottom) + 68px));
}

#overlay-toggle {
  bottom: max(160px, calc(env(safe-area-inset-bottom) + 136px));
}

#satellite[aria-pressed="true"] {
  background: #2e7dff;
}

#overlay-toggle[aria-pressed="true"] {
  background: #ff2ea6;
}

#locate:active, #satellite:active, #overlay-toggle:active {
  transform: scale(0.95);
}

#status {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

#status.show {
  opacity: 1;
}

.user-marker {
  position: relative;
  width: 120px;
  height: 120px;
  pointer-events: none;
}

.user-cone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transition: transform 0.12s linear;
  will-change: transform;
}

.user-cone.hidden {
  display: none;
}

.user-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: #2e7dff;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(46, 125, 255, 0.25);
}
