html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #090a0f;
  overscroll-behavior: none;
}

body {
  color: #e6e6e6;
  overflow: hidden;
  font-family: "Times New Roman", serif;
}

#scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#blackhole {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: none;
  z-index: 1;
}

body[data-state="stars"] #blackhole {
  pointer-events: none;
  touch-action: auto;
}

#starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 0;
  will-change: opacity;
  transform: translateZ(0);
}

#morph {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

#letter-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

#scroll-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  background: transparent;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  z-index: 4;
}

body.letter-scroll #scroll-container {
  pointer-events: auto;
}

#letter-scroll {
  width: 1px;
  height: 0;
  pointer-events: none;
}
