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

html,
body {
  width: 100%;
  min-height: 100%;
  background: #050607;
  color: #c8c4bc;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

body {
  position: relative;
}

#scroll-space {
  height: 420vh;
  pointer-events: none;
}

.stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: grab;
}

.stage canvas:active {
  cursor: grabbing;
}

.label {
  position: fixed;
  top: 1.1rem;
  left: 1.2rem;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 196, 188, 0.55);
  pointer-events: none;
}

.label b {
  color: rgba(220, 216, 208, 0.88);
  font-weight: 500;
}

.telemetry {
  position: fixed;
  top: 1.1rem;
  right: 1.2rem;
  z-index: 2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(180, 190, 188, 0.45);
  pointer-events: none;
}

.hint {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: rgba(200, 196, 188, 0.42);
  pointer-events: none;
}

/* Ohne diese Regel schlägt `display: grid` das hidden-Attribut und das
   Overlay verdeckt den ganzen Canvas — die Seite bliebe schwarz. */
.fallback[hidden] {
  display: none;
}

.fallback {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #050607;
  color: rgba(200, 196, 188, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .label,
  .telemetry,
  .hint {
    font-size: 0.62rem;
  }

  .hint {
    bottom: 0.9rem;
    left: 0.9rem;
    max-width: 70%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #scroll-space {
    height: 220vh;
  }
}
