.fireworks-stage-1 {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.fireworks-venue {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background: #02040d;
}

.fireworks-venue--active {
  opacity: 1;
  visibility: visible;
  display: block;
}

.fireworks-venue--fading { opacity: 0; visibility: hidden; }

.fireworks-venue__sky,
.fireworks-venue__distant-landscape,
.fireworks-venue__near-landscape,
.fireworks-venue__buildings {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
}

.fireworks-venue__sky {
  inset: 0;
  z-index: 0;
  background: #000 url("../assets/fireworks-stage-1/bg.jpg") center bottom / cover no-repeat;
}

.fireworks-venue__distant-landscape,
.fireworks-venue__near-landscape,
.fireworks-venue__buildings {
  bottom: 0;
  top: auto;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
}

.fireworks-venue__distant-landscape {
  z-index: 1;
  height: min(40vh, 250px);
  background-image: url("../assets/fireworks-stage-1/mountains2.png");
  background-position: 30% bottom;
}

.fireworks-venue__near-landscape {
  z-index: 2;
  height: min(32vh, 200px);
  background-image: url("../assets/fireworks-stage-1/mountains1.png");
  background-position: 40% bottom;
}

.fireworks-venue__buildings {
  z-index: 3;
  height: min(22vh, 135px);
  background-image: url("../assets/fireworks-stage-1/skyline.png");
  background-position: 50% bottom;
}

/* The skyline sits in front on desktop and behind the canvases on phones. */
.fireworks-effects__buildings {
  position: absolute;
  z-index: 50;
  pointer-events: none;
}

@media (max-width: 700px) {
  .fireworks-effects__buildings {
    z-index: -1;
    height: min(12dvh, 86px);
  }
}

.fireworks-effects {
  position: fixed;
  inset: 0;
  z-index: 10;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.fireworks-effects--fading {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.fireworks-effects--hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

#fireworks-start-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;
  padding: 0.75rem 1.4rem;
  border: 1px solid rgba(229, 206, 129, 0.65);
  border-radius: 999px;
  background: rgba(8, 16, 42, 0.84);
  color: #f2e6c0;
  font: inherit;
  transform: translate(-50%, -50%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

#fireworks-start-button.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fireworks-stage-1.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.fireworks-stage-1-active #theme-toggle,
body.fireworks-stage-1-active #music-toggle {
  opacity: 0;
  pointer-events: none;
}

.fireworks-stage-1__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fireworks-stage-1__canvas {
  display: block;
  cursor: crosshair;
  touch-action: none;
  transition: opacity 0.65s ease;
}

.fireworks-stage-1__canvas.is-faded {
  opacity: 0;
  pointer-events: none;
}

.fireworks-stage-1__canvas:active {
  cursor: crosshair;
}
