:root {
  color-scheme: light;
  --scene-overflow: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: #89b3e3;
  font-family: Arial, Helvetica, sans-serif;
}

.site-shell {
  min-height: 100vh;
}

.hero-scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #89b3e3;
}

.hero-scene h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.scene-stage {
  position: absolute;
  inset: calc(var(--scene-overflow) * -1);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: crosshair;
}

.layer {
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  pointer-events: none;
  will-change: transform;
  transform: var(--base-transform) translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  transition: transform 120ms ease-out;
}

.sky {
  --base-transform: translate(-50%, -50%) scale(1.07);
  top: 50%;
  left: 50%;
  width: auto;
  height: 118vh;
  min-width: 160vw;
  filter: hue-rotate(178deg) saturate(1.3) brightness(1.08);
}

.clouds {
  --base-transform: translate(-50%, -50%) scale(1);
  top: 28%;
  left: 51%;
  width: auto;
  height: 78vh;
  min-width: 175vw;
}

.green-block {
  --base-transform: translate(-50%, -50%) scale(1);
  top: 9%;
  left: 2%;
  width: clamp(280px, 30vw, 560px);
}

.red-block {
  --base-transform: translate(-50%, -50%) scale(1);
  top: 20%;
  right: -9%;
  width: clamp(190px, 17vw, 330px);
}

.base {
  --base-transform: translate(-50%, 0) scale(1.03);
  left: 50%;
  bottom: -8%;
  width: 116vw;
  min-width: 1480px;
}

.blue-player {
  --base-transform: translate(-50%, -50%) rotate(-2deg);
  top: 28%;
  left: 11%;
  width: clamp(170px, 15vw, 290px);
}

.green-player {
  --base-transform: translate(-50%, -50%) rotate(2deg);
  top: 24%;
  left: 85%;
  width: clamp(220px, 21vw, 390px);
}

.title-art {
  --base-transform: translate(-50%, -50%) rotate(-3deg);
  top: 41%;
  left: 51%;
  width: clamp(620px, 54vw, 980px);
  z-index: 3;
}

.spear {
  --base-transform: translate(-50%, -50%) rotate(-1deg);
  top: 51%;
  left: 46%;
  width: clamp(340px, 36vw, 640px);
  z-index: 4;
}

.red-player {
  --base-transform: translate(-50%, -50%) rotate(-5deg);
  top: 83%;
  left: 28%;
  width: clamp(300px, 34vw, 610px);
  z-index: 5;
}

.purple-player {
  --base-transform: translate(-50%, -50%) rotate(2deg);
  top: 64%;
  left: 66%;
  width: clamp(880px, 88vw, 1500px);
  z-index: 6;
}

@media (max-aspect-ratio: 4 / 3) {
  :root {
    --scene-overflow: 48px;
  }

  .sky {
    height: 118vh;
    width: auto;
    min-width: 1160px;
  }

  .clouds {
    top: 26%;
    left: 49%;
    height: 76vh;
    width: auto;
    min-width: 1320px;
  }

  .base {
    left: 48%;
    bottom: -4%;
    width: 205vh;
    min-width: 1260px;
  }

  .green-block {
    top: 8%;
    left: -3%;
    width: clamp(260px, 48vw, 430px);
  }

  .red-block {
    top: 17%;
    right: -18%;
    width: clamp(210px, 38vw, 360px);
  }

  .blue-player {
    top: 20%;
    left: 13%;
    width: clamp(170px, 35vw, 300px);
  }

  .green-player {
    top: 21%;
    left: 85%;
    width: clamp(220px, 42vw, 360px);
  }

  .title-art {
    top: 40%;
    left: 51%;
    width: clamp(620px, 118vw, 930px);
  }

  .spear {
    top: 50%;
    left: 48%;
    width: clamp(360px, 70vw, 600px);
  }

  .red-player {
    top: 83%;
    left: 31%;
    width: clamp(330px, 72vw, 580px);
  }

  .purple-player {
    top: 66%;
    left: 68%;
    width: clamp(860px, 170vw, 1180px);
  }
}

@media (max-width: 640px) {
  .blue-player {
    left: 4%;
  }

  .green-player {
    left: 96%;
  }

  .title-art {
    top: 39%;
    width: 132vw;
  }

  .spear {
    top: 50%;
    left: 50%;
    width: 86vw;
  }

  .red-player {
    top: 83%;
    left: 24%;
    width: 84vw;
  }

  .purple-player {
    top: 68%;
    left: 72%;
    width: 196vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .layer {
    transition: none;
  }
}
