/* Minimal reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1 {
  margin: 0;
  padding: 0;
}

h1 {
  font: inherit;
}

/* Page */
html,
body {
  overflow: hidden;
  height: 100%;
}

body {
  background: #02030a;
  line-height: 1;
  /* No bounce, no scroll */
  overscroll-behavior: none;
  touch-action: none;
}

/*
 * Running under the browser bars on iOS Safari (26+):
 * Safari only draws page content under its status bar and toolbar when the
 * document actually has content there, i.e. when it is scrolled. So the
 * page is made taller than the screen by --overscan at the top and bottom,
 * and main.js scrolls down by --overscan. User scrolling stays disabled.
 */
:root {
  --overscan: 100px;
  --neon: #ff3d9a;
}

#content {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: calc(100vh + 2 * var(--overscan));
  height: calc(100lvh + 2 * var(--overscan));
}

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Shown only without JavaScript */
#fallbackLogo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45vmin;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 12px var(--neon));
}

/* Site title: for screen readers and search engines only, the sign says it all */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
