html {
  width: 100%;
  height: 100%;
  background: #080612;
}

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

body {
  --scene-size: min(76vmin, 46rem);
  --scene-unit: min(0.76vmin, 0.46rem);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  overflow: hidden;
  overscroll-behavior: none;
  background:
    radial-gradient(circle at 22% 25%, rgba(166, 49, 255, 0.2), transparent 31%),
    radial-gradient(circle at 78% 72%, rgba(46, 201, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #080612 0%, #10091f 48%, #071823 100%);
}

body:before,
body:after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body:before {
  inset: -18%;
  background:
    radial-gradient(circle at 34% 40%, rgba(192, 48, 255, 0.42), transparent 25%),
    radial-gradient(circle at 67% 58%, rgba(54, 202, 255, 0.36), transparent 27%),
    radial-gradient(circle at 52% 78%, rgba(76, 35, 205, 0.34), transparent 24%);
  filter: blur(clamp(2.5rem, 7vmin, 5.5rem)) saturate(125%);
  opacity: 0.88;
  animation: ambient-shift 14s ease-in-out infinite alternate;
}

body:after {
  top: 50%;
  left: 50%;
  width: var(--scene-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 205deg, #6939ff, #dd32ff, #7b3cff, #31cfff, #6939ff);
  filter: blur(clamp(2rem, 5vmin, 4.5rem));
  opacity: 0.46;
  transform: translate(-50%, -50%) scale(1.08);
  animation: ambient-breathe 9s ease-in-out infinite alternate;
}

.scene {
  font-size: var(--scene-unit);
  position: relative;
  z-index: 1;
  display: grid;
  overflow: hidden;
  width: var(--scene-size);
  height: var(--scene-size);
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background-color: #4b2b61;
  box-shadow:
    0 1.5rem 5rem rgba(5, 2, 18, 0.58),
    0 0 2.5rem rgba(187, 55, 255, 0.22),
    0 0 5.5rem rgba(54, 199, 255, 0.16);
}
.scene:before {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 30em;
  left: 0;
  width: 70%;
  height: 35%;
  margin: 0 auto;
  content: "";
  opacity: 0.9;
  background: white;
  -webkit-clip-path: url(#bokeh);
          clip-path: url(#bokeh);
}

.sky {
  position: relative;
  overflow: hidden;
  height: 50em;
  background-image: linear-gradient(to bottom, #33024a, #6700ba 30%, #b140ff);
  grid-row: 1;
  grid-column: 1;
}

.cloud {
  position: absolute;
  background: linear-gradient(to bottom, #e81de2, rgba(212, 96, 255, 0));
}
.cloud:nth-of-type(1) {
  position: absolute;
  top: 24em;
  width: 35em;
  height: 16em;
  background: linear-gradient(to bottom, #e81de2, rgba(212, 96, 255, 0));
  -webkit-clip-path: url(#cloud-1);
          clip-path: url(#cloud-1);
}
.cloud:nth-of-type(2) {
  top: 8em;
  left: 8em;
  width: 40em;
  height: 14.5em;
  -webkit-clip-path: url(#cloud-2);
          clip-path: url(#cloud-2);
}
.cloud:nth-of-type(3) {
  top: 14em;
  right: 0;
  width: 50.4em;
  height: 20em;
  background: linear-gradient(to bottom, #bc00ce, transparent);
  -webkit-clip-path: url(#cloud-3);
          clip-path: url(#cloud-3);
}
.cloud:nth-of-type(4) {
  top: 24em;
  right: 0;
  width: 30em;
  height: 20em;
  -webkit-clip-path: url(#cloud-4);
          clip-path: url(#cloud-4);
}
.cloud:nth-of-type(5) {
  top: 30em;
  right: -8em;
  width: 30em;
  height: 20em;
  background-image: linear-gradient(to bottom, #ff7ee9, #f2c7ff);
  -webkit-clip-path: url(#cloud-5);
          clip-path: url(#cloud-5);
}

.land {
  position: relative;
  overflow: hidden;
  align-self: end;
  height: 30em;
  grid-row: 1;
  grid-column: 1;
}

.mountains {
  position: relative;
  height: 100%;
}

.mountain {
  position: absolute;
  width: 100%;
  height: 100%;
}
.mountain:nth-of-type(1) {
  z-index: 1;
  background: #f1f5f8;
  -webkit-clip-path: url(#mountain-1);
          clip-path: url(#mountain-1);
}
.mountain:nth-of-type(1):before {
  position: absolute;
  right: 0;
  width: 61.5%;
  height: 100%;
  content: "";
  background: linear-gradient(to bottom right, #cda8ee, #b02cfc, #cda8ee);
  -webkit-clip-path: url(#mountain-1-shade);
          clip-path: url(#mountain-1-shade);
}
.mountain:nth-of-type(2) {
  background: #edebff;
  -webkit-clip-path: url(#mountain-2);
          clip-path: url(#mountain-2);
}
.mountain:nth-of-type(2):before {
  position: absolute;
  right: 0;
  width: 52%;
  height: 100%;
  content: "";
  background: linear-gradient(to bottom right, #e80be4, #b02cfc, #e924ff);
  -webkit-clip-path: url(#mountain-2-shade);
          clip-path: url(#mountain-2-shade);
}

.backgrounds {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  filter: url(#filter-trees);
}

.background {
  position: absolute;
  z-index: 1;
  bottom: -1em;
  width: 90em;
  height: 20em;
  -webkit-clip-path: url(#background);
          clip-path: url(#background);
  mix-blend-mode: overlay;
}
.background:nth-of-type(1) {
  background: linear-gradient(to right, #eabdec, #ba35f7);
}
.background:nth-of-type(2) {
  right: -10em;
  height: 18em;
  background: linear-gradient(to bottom, #5f194d, #ba35f7);
}

.foreground {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 100%;
  height: 14em;
  background: #4900d8;
  background-image: radial-gradient(circle at bottom left, #c358e2, transparent 20em), radial-gradient(circle at center, #4d0559, transparent 40em), radial-gradient(circle at center right, #c003b3, transparent 20em);
  -webkit-clip-path: url(#foreground);
          clip-path: url(#foreground);
}

.foreground-trees {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 100%;
}
.foreground-trees .tree {
  position: absolute;
  bottom: 0;
  width: 5em;
  height: 8em;
  background-image: linear-gradient(to bottom, #2a0231, rgba(42, 2, 49, 0.1));
  -webkit-clip-path: url(#tree);
          clip-path: url(#tree);
}
.foreground-trees .tree:nth-child(1) {
  left: 1.5em;
}
.foreground-trees .tree:nth-child(2) {
  left: 8em;
  height: 7.5em;
}
.foreground-trees .tree:nth-child(3) {
  left: 10em;
  height: 9em;
}
.foreground-trees .tree:nth-child(4) {
  left: 16em;
}
.foreground-trees .tree:nth-child(5) {
  left: 20em;
}
.foreground-trees .tree:nth-child(6) {
  left: 22em;
  width: 6em;
  height: 9em;
}
.foreground-trees .tree:nth-child(7) {
  right: 35em;
}
.foreground-trees .tree:nth-child(8) {
  right: 30em;
  width: 8em;
  height: 12em;
  background: linear-gradient(to bottom, rgba(68, 237, 234, 0.5), transparent);
}
.foreground-trees .tree:nth-child(9) {
  right: 28em;
  width: 8em;
  height: 11em;
}
.foreground-trees .tree:nth-child(10) {
  right: 22em;
}
.foreground-trees .tree:nth-child(11) {
  right: 15em;
  width: 7em;
  height: 10em;
  background: linear-gradient(to bottom, rgba(68, 237, 234, 0.5), transparent);
}
.foreground-trees .tree:nth-child(12) {
  right: 10em;
}
.foreground-trees .tree:nth-child(13) {
  right: 5em;
  height: 9em;
}
.foreground-trees .tree:nth-child(14) {
  right: 2em;
}

.sea {
  position: relative;
  overflow: hidden;
  height: 50em;
  margin-top: -1em;
  transform: scale(1.1);
  background-image: radial-gradient(circle at top right, #dbe2d1, #7566f0, #6ac7f8), radial-gradient(circle at 60% 50%, #53e9ea, transparent 10em);
  grid-row: 2;
  filter: url(#filter-ripples);
}

.reflection {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}
.reflection.mountains {
  transform: scaleY(-0.6) translateY(40%);
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.shadow {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  opacity: 0.5;
  -webkit-clip-path: url(#reflection-shadow);
          clip-path: url(#reflection-shadow);
  mix-blend-mode: multiply;
}
.shadow:nth-of-type(1) {
  height: 15em;
  background-image: radial-gradient(circle at center top, #46e0f5, rgba(68, 140, 237, 0.5));
}
.shadow:nth-of-type(2) {
  height: 10em;
  background-image: radial-gradient(circle at center top, #448ced, transparent 60em);
}
.shadow:nth-of-type(3) {
  height: 7em;
  background-image: radial-gradient(circle at 60% 0%, #4524e0, transparent 80em);
}

.ferns {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50em;
}

.fern {
  position: absolute;
  bottom: 0;
  background: #170907;
}
.fern:nth-of-type(1) {
  width: 100em;
  height: 40em;
  background-image: radial-gradient(circle at 20% 0%, #6b1dc1, transparent 20em), radial-gradient(circle at 60% 40%, #6b1dc1, transparent 20em), radial-gradient(circle at 100% 10%, #7d4f53, transparent 20em);
  -webkit-clip-path: url(#ferns-1);
          clip-path: url(#ferns-1);
}
.fern:nth-of-type(2) {
  bottom: -10em;
  left: -10em;
  width: 30em;
  height: 50em;
  transform: rotate(45deg);
  transform-origin: 50% 100%;
  background: #2a1a16;
  background-image: radial-gradient(circle at 80% 20%, #9806a9, transparent 15em);
  -webkit-clip-path: url(#ferns-2);
          clip-path: url(#ferns-2);
}
.fern:nth-of-type(3) {
  right: -10em;
  width: 20em;
  height: 40em;
  transform: rotate(-45deg);
  transform-origin: 50% 100%;
  background: #153d24;
  background-image: radial-gradient(circle at 50% 10%, #181d0e, transparent 20em);
  -webkit-clip-path: url(#ferns-2);
          clip-path: url(#ferns-2);
}

.clips {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@keyframes ambient-shift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1.5%, 0) scale(1.06);
  }
}

@keyframes ambient-breathe {
  0% {
    opacity: 0.38;
    transform: translate(-50%, -50%) scale(1.03) rotate(-4deg);
  }
  100% {
    opacity: 0.56;
    transform: translate(-50%, -50%) scale(1.14) rotate(5deg);
  }
}

@media (max-width: 40rem) {
  body {
    --scene-size: min(88vw, 72svh);
    --scene-unit: min(0.88vw, 0.72svh);
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background:
      radial-gradient(circle at 18% 28%, rgba(166, 49, 255, 0.24), transparent 36%),
      radial-gradient(circle at 82% 68%, rgba(46, 201, 255, 0.2), transparent 39%),
      linear-gradient(160deg, #080612 0%, #10091f 50%, #071823 100%);
  }

  body:before {
    inset: -10% -35%;
    filter: blur(2.8rem) saturate(125%);
  }

  .scene {
    box-shadow:
      0 1.25rem 3.5rem rgba(5, 2, 18, 0.64),
      0 0 2rem rgba(187, 55, 255, 0.24),
      0 0 4rem rgba(54, 199, 255, 0.18);
  }
}

@media (max-height: 35rem) and (orientation: landscape) {
  body {
    --scene-size: min(78svh, 72vw);
    --scene-unit: min(0.78svh, 0.72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:before,
  body:after {
    animation: none;
  }
}
