html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
  position: relative;
}

#stage {
  position: absolute;
  inset: 0;
  background: #000;
}

#stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#metrics-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#attribution {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 10;
  width: min(620px, calc(100vw - 24px));
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 6px #000;
  transform: translateX(-50%);
  pointer-events: none;
}

#hud {
  position: absolute;
  left: 20px;
  top: 18px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
  font-size: 12px;
  letter-spacing: 0.04em;
  user-select: none;
  z-index: 10;
}

#hud-controls {
  margin-top: 10px;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

#hud-door {
  display: flex;
  justify-content: flex-start;
  width: 180px;
  margin-top: 24px;
}

#hud-door[hidden] {
  display: none;
}

#hud-door a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

#speed-slider {
  width: 180px;
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

#speed-slider:focus {
  outline: none;
}

#speed-slider::-webkit-slider-runnable-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
}

#speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1px;
  height: 18px;
  margin-top: -8.5px;
  background: #fff;
  border: 0;
}

#speed-slider::-moz-range-track {
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
}

#speed-slider::-moz-range-thumb {
  width: 1px;
  height: 18px;
  background: #fff;
  border: 0;
  border-radius: 0;
}

#hud-stats {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  min-height: 1.45em;
  white-space: nowrap;
}

#hud-help {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.03em;
}

#telemetry {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.82);
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 10;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.telemetry-label {
  color: rgba(255, 255, 255, 0.62);
}
