.screen--launch,
.screen--menu {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.landing-garden-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #55b6ef url("../../assets/landing-garden/garden-background.png") center / cover no-repeat;
  pointer-events: none;
}

.landing-garden-scene img {
  display: block;
  object-fit: contain;
  user-select: none;
}

.launch-logo {
  position: relative;
  z-index: 2;
}

.screen--menu .menu-heading,
.screen--menu .mode-grid {
  position: relative;
  z-index: 1;
}

.landing-sun {
  position: absolute;
  top: 4%;
  right: 17%;
  width: clamp(100px, 10vw, 155px);
  filter:
    drop-shadow(0 0 8px rgba(255, 251, 218, .95))
    drop-shadow(0 0 24px rgba(255, 223, 115, .8))
    drop-shadow(0 0 48px rgba(255, 183, 58, .55));
  animation: landing-sun-breathe 8s ease-in-out infinite;
}

.landing-sun-halo {
  position: absolute;
  top: -8%;
  right: calc(16% - 80px);
  width: min(25vw, 350px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 250, 197, .48) 0%, rgba(255, 230, 125, .3) 29%, rgba(255, 195, 74, .14) 52%, transparent 72%);
  border-radius: 50%;
  animation: landing-halo-breathe 7s ease-in-out infinite;
}

.landing-butterfly-track {
  position: absolute;
  top: 28%;
  right: 4%;
  width: 94px;
  height: 80px;
  --butterfly-flower-two-x: 54px;
  --butterfly-flower-two-y: 72px;
  --butterfly-flower-three-x: -72px;
  --butterfly-flower-three-y: 230px;
  transform-origin: center;
  animation: landing-butterfly-route 18s ease-in-out infinite;
}

.landing-butterfly,
.landing-bee,
.landing-snail {
  width: 100%;
  height: 100%;
}

.landing-bee-track {
  position: absolute;
  top: 49%;
  left: 5%;
  width: 75px;
  height: 78px;
  --bee-flower-two-x: -28px;
  --bee-flower-two-y: -118px;
  --bee-flower-three-x: 112px;
  --bee-flower-three-y: 70px;
  transform-origin: center;
  animation: landing-bee-route 16s ease-in-out infinite;
}

.landing-bee {
  animation: landing-bee-bob 1.5s ease-in-out infinite alternate;
}

.landing-snail-track {
  position: absolute;
  bottom: 14%;
  left: 30.7%;
  width: 108px;
  height: 78px;
  --snail-route-distance: 31.5vw;
  isolation: isolate;
  animation: landing-snail-crawl 27s ease-in-out infinite;
}

.landing-snail-track::before {
  content: "";
  position: absolute;
  right: 72%;
  bottom: 8px;
  z-index: 0;
  width: 94px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(206, 255, 184, .22) 22%, rgba(230, 255, 211, .58));
  box-shadow: 0 2px 5px rgba(143, 202, 126, .28), inset 0 1px rgba(255, 255, 255, .35);
  filter: blur(.7px);
  transform: skewX(-16deg);
  animation: landing-slime-glimmer 2.8s ease-in-out infinite alternate;
}

.landing-snail {
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 0 40%, rgba(0, 0, 0, .9) 60%, rgba(0, 0, 0, .48) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 40%, rgba(0, 0, 0, .9) 60%, rgba(0, 0, 0, .48) 82%, transparent 100%);
  animation: landing-snail-rock 2.6s ease-in-out infinite alternate;
}

.landing-mole-station {
  position: absolute;
  bottom: 2%;
  width: clamp(115px, 12vw, 180px);
  height: clamp(125px, 16vw, 210px);
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
}

.landing-mole-station--brown {
  left: 19%;
  bottom: 32%;
}

.landing-mole-station--grey {
  right: auto;
  left: 67%;
  bottom: 28%;
}

.landing-mole-station::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse 22% 9% at 50% 86%, rgba(116, 73, 42, .7) 0%, rgba(116, 73, 42, .5) 56%, transparent 100%);
  pointer-events: none;
}

.landing-mole-pocket {
  position: absolute;
  right: 0;
  bottom: 16%;
  left: 0;
  z-index: 1;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 10px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 10px), transparent 100%);
}

.landing-mole-station .landing-mole {
  position: absolute;
  bottom: -7%;
  left: 30.5%;
  width: 39%;
  transform: translateY(-14%);
  opacity: 1;
  transition: transform 620ms cubic-bezier(.2, 1.25, .35, 1), opacity 120ms ease;
}

.landing-mole-station:hover .landing-mole {
  transform: translateY(115%);
  opacity: 0;
  transition: transform 600ms ease-in-out, opacity 150ms ease 380ms;
}

.landing-mole-station .landing-mole-hole {
  position: absolute;
  bottom: 0;
  left: 10%;
  z-index: 0;
  width: 80%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0, 0, 0, .3) 9%, rgba(0, 0, 0, .75) 18%, #000 29%, #000 71%, rgba(0, 0, 0, .75) 82%, rgba(0, 0, 0, .3) 91%, transparent 100%),
    linear-gradient(to bottom, #000 0 40%, rgba(0, 0, 0, .9) 60%, rgba(0, 0, 0, .48) 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0, 0, 0, .3) 9%, rgba(0, 0, 0, .75) 18%, #000 29%, #000 71%, rgba(0, 0, 0, .75) 82%, rgba(0, 0, 0, .3) 91%, transparent 100%),
    linear-gradient(to bottom, #000 0 40%, rgba(0, 0, 0, .9) 60%, rgba(0, 0, 0, .48) 82%, transparent 100%);
  mask-composite: intersect;
}

.landing-mole-station .landing-mole-hole--front {
  z-index: 2;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, rgba(0, 0, 0, .3) 9%, rgba(0, 0, 0, .75) 18%, #000 29%, #000 71%, rgba(0, 0, 0, .75) 82%, rgba(0, 0, 0, .3) 91%, transparent 100%),
    linear-gradient(to bottom, #000 0 40%, rgba(0, 0, 0, .9) 60%, rgba(0, 0, 0, .48) 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0 52%, rgba(0, 0, 0, .35) 59%, #000 68%);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    linear-gradient(to right, transparent 0, rgba(0, 0, 0, .3) 9%, rgba(0, 0, 0, .75) 18%, #000 29%, #000 71%, rgba(0, 0, 0, .75) 82%, rgba(0, 0, 0, .3) 91%, transparent 100%),
    linear-gradient(to bottom, #000 0 40%, rgba(0, 0, 0, .9) 60%, rgba(0, 0, 0, .48) 82%, transparent 100%),
    linear-gradient(to bottom, transparent 0 52%, rgba(0, 0, 0, .35) 59%, #000 68%);
  mask-composite: intersect;
}

.landing-particles {
  position: absolute;
  inset: 0;
}

.landing-particle {
  position: absolute;
  display: block;
  will-change: transform, opacity;
}

.landing-particle--leaf {
  width: 12px;
  height: 7px;
  background: #679c42;
  border-radius: 90% 0 90% 0;
  box-shadow: inset 1px 1px #aed175;
  opacity: .75;
  animation: landing-leaf-drift var(--landing-duration) linear infinite;
  animation-delay: var(--landing-delay);
}

.landing-particle--firefly {
  width: 5px;
  height: 5px;
  background: #fff3a1;
  border-radius: 50%;
  box-shadow: 0 0 7px 3px rgba(255, 236, 125, .65);
  opacity: .3;
  animation: landing-firefly-wander var(--landing-duration) ease-in-out infinite alternate;
  animation-delay: var(--landing-delay);
}

@keyframes landing-sun-breathe {
  50% { transform: scale(1.04); }
}

@keyframes landing-halo-breathe {
  50% { transform: scale(1.14); opacity: .7; }
}

@keyframes landing-butterfly-route {
  0%, 10% { transform: translate(0, 0) rotate(-7deg) scaleX(1); }
  27%, 37% { transform: translate(var(--butterfly-flower-two-x), var(--butterfly-flower-two-y)) rotate(8deg) scaleX(1); }
  37.1% { transform: translate(var(--butterfly-flower-two-x), var(--butterfly-flower-two-y)) rotate(8deg) scaleX(-1); }
  54%, 64% { transform: translate(var(--butterfly-flower-three-x), var(--butterfly-flower-three-y)) rotate(-5deg) scaleX(-1); }
  64.1% { transform: translate(var(--butterfly-flower-three-x), var(--butterfly-flower-three-y)) rotate(5deg) scaleX(1); }
  81% { transform: translate(var(--butterfly-flower-two-x), var(--butterfly-flower-two-y)) rotate(-8deg) scaleX(1); }
  81.1%, 89% { transform: translate(var(--butterfly-flower-two-x), var(--butterfly-flower-two-y)) rotate(-8deg) scaleX(-1); }
  100% { transform: translate(0, 0) rotate(7deg) scaleX(-1); }
}

@keyframes landing-bee-route {
  0%, 10% { transform: translate(0, 0) scaleX(-1); }
  27% { transform: translate(var(--bee-flower-two-x), var(--bee-flower-two-y)) scaleX(-1); }
  27.1%, 37% { transform: translate(var(--bee-flower-two-x), var(--bee-flower-two-y)) scaleX(1); }
  54%, 64% { transform: translate(var(--bee-flower-three-x), var(--bee-flower-three-y)) scaleX(1); }
  64.1% { transform: translate(var(--bee-flower-three-x), var(--bee-flower-three-y)) scaleX(-1); }
  81% { transform: translate(var(--bee-flower-two-x), var(--bee-flower-two-y)) scaleX(-1); }
  81.1%, 89% { transform: translate(var(--bee-flower-two-x), var(--bee-flower-two-y)) scaleX(1); }
  100% { transform: translate(0, 0) scaleX(1); }
}

@keyframes landing-bee-bob {
  to { transform: translateY(8px) rotate(4deg); }
}

@keyframes landing-snail-crawl {
  0%, 8% { transform: translateX(0) scaleX(1); }
  48% { transform: translateX(var(--snail-route-distance)) scaleX(1); }
  48.1%, 55% { transform: translateX(var(--snail-route-distance)) scaleX(-1); }
  92% { transform: translateX(0) scaleX(-1); }
  92.1%, 100% { transform: translateX(0) scaleX(1); }
}

@keyframes landing-snail-rock {
  to { transform: rotate(2deg); }
}

@keyframes landing-slime-glimmer {
  from { opacity: .48; transform: scaleX(.92) skewX(-16deg); }
  to { opacity: .78; transform: scaleX(1.04) skewX(-16deg); }
}

@keyframes landing-leaf-drift {
  0% { transform: translate(0, -20px) rotate(0); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .7; }
  100% { transform: translate(var(--landing-drift), 72vh) rotate(540deg); opacity: 0; }
}

@keyframes landing-firefly-wander {
  0% { transform: translate(0, 0); opacity: .12; }
  50% { opacity: .85; }
  100% { transform: translate(var(--landing-drift), -35px); opacity: .3; }
}

@media (max-width: 700px) {
  .landing-sun {
    top: 4%;
    right: 13%;
    width: 105px;
  }

  .landing-sun-halo {
    top: 0;
    right: 5%;
    width: 160px;
  }

  .landing-bee-track,
  .landing-butterfly-track {
    width: 52px;
    height: 55px;
  }

  .landing-snail-track {
    bottom: 10%;
    left: 29%;
    width: 70px;
    height: 52px;
    --snail-route-distance: 37vw;
  }

  .landing-mole-station {
    bottom: 1%;
    width: 100px;
    height: 115px;
  }

  .landing-mole-station--brown {
    left: 16%;
    bottom: 24%;
  }
  .landing-mole-station--grey {
    right: auto;
    left: 63%;
    bottom: 22%;
  }
  .landing-bee-track { left: 2%; }
  .landing-bee-track {
    --bee-flower-two-x: 8px;
    --bee-flower-two-y: -82px;
    --bee-flower-three-x: 76px;
    --bee-flower-three-y: 42px;
  }
  .landing-butterfly-track { right: 1%; }
  .landing-butterfly-track {
    --butterfly-flower-two-x: 18px;
    --butterfly-flower-two-y: 58px;
    --butterfly-flower-three-x: -58px;
    --butterfly-flower-three-y: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-garden-scene *,
  .landing-garden-scene *::before,
  .landing-garden-scene *::after {
    animation: none !important;
  }

  .landing-particle {
    display: none;
  }

  .landing-mole-station .landing-mole {
    transition: none;
  }
}
