:root {
  --void: #07040c;
  --moon: #c9a6ff;
  --acid: #b8ff3c;
  --font: "Press Start 2P", ui-monospace, monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--void);
  color: var(--moon);
  font-family: var(--font);
}

.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;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.boot.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot__text {
  margin: 0;
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  text-shadow: 0 0 12px rgba(184, 255, 60, 0.55);
}

.boot__dots::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}

.scene,
.scene__stage {
  position: absolute;
  inset: 0;
}

.scene {
  overflow: hidden;
  background: var(--void);
}

.scene__art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

.flies-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.flies {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.fly {
  position: absolute;
  width: 4.69%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fly::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 600%;
  height: 100%;
  background-image: url("../assets/firefly.png?v=44");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.frog {
  position: absolute;
  left: 75.90%;
  top: 36.83%;
  z-index: 3;
  width: 8.66%;
  aspect-ratio: 125 / 131;
  overflow: visible;
  pointer-events: none;
}

.frog img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.frog__shut {
  opacity: 0;
}

.frog[data-frame="1"] .frog__open {
  opacity: 0;
}

.frog[data-frame="1"] .frog__shut {
  opacity: 1;
}

.copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  user-select: none;
  text-align: center;
}

.copy__title,
.copy__legal {
  position: absolute;
  left: 6%;
  right: 0;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  font-family: var(--font);
}

.copy__title {
  top: 36.8%;
  color: #e8dcff;
  font-size: min(7.2vw, 14vh);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(201, 166, 255, 0.7);
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
  text-rendering: geometricPrecision;
}

.copy__coming {
  position: absolute;
  left: 6%;
  right: 0;
  top: 52.1%;
  margin: 0;
  padding: 14px 28px;
  color: #12141a;
  font-size: min(1.55vh, 1.85vw);
  font-family: var(--font);
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: none;
  text-decoration: none;
  opacity: 0.38;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.45s ease, opacity 0.45s ease, text-shadow 0.45s ease;
}

.copy__coming::before {
  content: "";
  position: absolute;
  inset: -10px -20px;
}

.copy__coming:link,
.copy__coming:visited {
  color: #12141a;
}

.copy__coming:hover,
.copy__coming:focus-visible {
  color: var(--acid);
  opacity: 1;
  text-shadow: 0 0 10px rgba(184, 255, 60, 0.55);
  outline: none;
}

.copy__sep {
  position: absolute;
  left: 53%;
  top: 83.55%;
  margin: 0;
  color: #f4e8ff;
  font-size: min(1.8vh, 2vw);
  line-height: 1;
  transform: translate(-50%, -50%);
  opacity: 0.92;
}

.copy__legal {
  top: 95.6%;
  color: #8a7aa8;
  font-size: min(1.25vh, 1.6vw);
  letter-spacing: 0.16em;
}

.hotspots {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  text-decoration: none;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: filter 0.16s ease;
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.hotspot__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: filter 0.16s ease;
}

#link-x {
  left: 50.15%;
  top: 83.6%;
  width: 3.418%;
  height: 5.903%;
}

#link-network {
  left: 55.85%;
  top: 83.6%;
  width: 3.418%;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
}

#link-network .hotspot__icon {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.hotspot:hover,
.hotspot:focus-visible {
  filter: brightness(1.22);
  outline: none;
}

#link-x:hover,
#link-x:focus-visible,
#link-network:hover,
#link-network:focus-visible {
  filter: brightness(1.22) drop-shadow(0 0 6px rgba(184, 255, 60, 0.7));
}

@keyframes scene-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}

@media (hover: none) {
  .copy__coming:active {
    color: var(--acid);
    opacity: 1;
    text-shadow: 0 0 10px rgba(184, 255, 60, 0.55);
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  html,
  body,
  .scene {
    height: 100%;
    height: 100dvh;
  }

  .scene {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .scene__art,
  .flies-cover {
    object-fit: cover;
    object-position: 58% 40%;
  }

  .copy__title {
    left: 0;
    top: 33.5%;
    font-size: clamp(28px, 10.5vw, 56px);
  }

  .copy__coming {
    left: 0;
    top: 46.5%;
    font-size: clamp(9px, 2.9vw, 13px);
    letter-spacing: 0.12em;
    padding: 18px 12px;
    opacity: 0.5;
  }

  .copy__coming::before {
    inset: -16px -12px;
  }

  .copy__sep {
    top: 81.5%;
    font-size: 14px;
  }

  .copy__legal {
    left: 0;
    top: auto;
    bottom: 10px;
    font-size: 10px;
  }

  .frog {
    left: 79%;
    top: 58%;
    width: 20%;
  }

  .hotspot::before {
    inset: -14px;
  }

  #link-x {
    top: 81.6%;
    width: max(44px, 8.2vw);
    height: max(44px, 8.6vw);
  }

  #link-network {
    top: 81.6%;
    width: max(44px, 8.2vw);
  }
}
