
.lagoon-sky {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  max-height: 170px;
  overflow: clip;
  container-type: size;
}

.lagoon-depth {
  position: absolute;
  inset: calc(-1 * var(--parallax-reach));
  background: url("../art/ui/lagoon-scene.webp") center / cover no-repeat;
}

.lagoon-depth.mid { background-image: url("../art/ui/lagoon-scene-mid.webp"); }
.lagoon-depth.frame { background-image: url("../art/ui/lagoon-scene-frame.webp"); }

.lagoon-shimmer {
  --loop-tile: url("../art/ui/lagoon-shimmer-tile.webp");
  --loop-tile-w: 120px;
  --loop-tile-h: 40px;
  --loop-period: 20s;
  --loop-mask: linear-gradient(transparent 52%, #000 66%);
  opacity: .24;
}

.lagoon-props {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3%;
}

.lagoon-koi,
.lagoon-gap {
  position: relative;
  width: min(92cqh, 34cqw);
  height: min(92cqh, 34cqw);
}

.lagoon-gap {
  flex-shrink: 0;
}

.lagoon-koi {
  --hero-frames: 8;
  --hero-period: 800ms;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6));
  animation: lagoon-swim 3.2s ease-in-out infinite alternate;
}

.lagoon-lantern {
  position: relative;
  width: min(46cqh, 13cqw);
  height: min(46cqh, 13cqw);
  align-self: flex-start;
  margin-top: 4%;
  animation: lagoon-bob 2.6s ease-in-out infinite alternate;
}

.lagoon-lantern.right {
  animation-delay: -1.3s;
}

.lagoon-pad {
  position: relative;
  align-self: flex-end;
  width: min(52cqh, 17cqw);
  height: min(52cqh, 17cqw);
  margin-bottom: 3%;
  background: url("../art/ui/lotus.webp") center / contain no-repeat;
  pointer-events: none;
}

.lagoon-pad.two { transform: scale(1.12); }

@container (max-height: 46px) {
  .lagoon-koi,
  .lagoon-lantern,
  .lagoon-pad,
  .lagoon-gap {
    display: none;
  }
}

html.landscape #app .lagoon-props {
  display: block;
}

html.landscape #app .lagoon-gap {
  display: none;
}

.lagoon-depth.mid { --win-mask: url("../art/ui/lagoon-scene-mid.webp") center / cover no-repeat; }
.lagoon-props { --win-mask: linear-gradient(#0000, #0000); }
