/* ========== BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #000000;
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  scrollbar-gutter: stable;
}
#stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* Prevent layout shifts from canvas resizing */
#sequence, #ctCanvas, #closing-particles {
  will-change: transform;
  background: #000; /* match background to hide any flicker */
}

/* Reserve space for the modal content */
.sound-modal-content {
  min-height: 280px;
}

#visual-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20; /* higher than acts (which are 2) */
}

.visual {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}