html,
body {
  margin: 0;
  min-height: 100%;
  color: #f5f7fb;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #05070a;
}

body {
  overflow-x: hidden;
}

#map {
  position: fixed;
  inset: 0 16px 0 0;
  z-index: 1;
}

#hud {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: grid;
  gap: 0.75rem;
  pointer-events: none;
}

.hud-button {
  pointer-events: auto;
  border: 0;
  cursor: pointer;
  color: #f5f7fb;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.hud-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hud-button:focus-visible {
  outline: 2px solid rgba(107, 213, 255, 0.9);
  outline-offset: 2px;
}

#story {
  position: relative;
  z-index: 0;
  width: 100%;
}

.scroll-spacer {
  height: 20000px;
}

.hud {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hud span {
  color: rgba(245, 247, 251, 0.72);
}

.hud strong {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.hud-subtle {
  background: rgba(10, 14, 22, 0.72);
}
