:root {
  --ink: oklch(0.16 0.055 244);
  --white: oklch(0.99 0.005 200);
  --black: oklch(0.07 0 0);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--white);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
}

a {
  color: inherit;
}

.status-world {
  --ring: oklch(0.88 0.18 95);
  --shadow: oklch(0.18 0.08 244 / 0.78);
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100vw;
  height: 100svh;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
}

.mood-up {
  --ring: oklch(0.9 0.19 95);
  --shadow: oklch(0.22 0.09 242 / 0.72);
}

.mood-down {
  --ring: oklch(0.74 0.21 25);
  --shadow: oklch(0.08 0.04 250 / 0.92);
}

.mood-maybe {
  --ring: oklch(0.88 0.18 95);
  --shadow: oklch(0.2 0.08 290 / 0.78);
}

.scene {
  position: absolute;
  z-index: -4;
  width: 108%;
  height: 108%;
  max-width: none;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.04);
  animation: scene-drift 16s var(--ease-out-expo) infinite alternate;
}

.scene-wash {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 44%,
      oklch(0.1 0.03 250 / 0.06) 0 18%,
      oklch(0.08 0.02 250 / 0.46) 62%,
      oklch(0.06 0.02 250 / 0.72) 100%
    ),
    linear-gradient(
      180deg,
      oklch(0.08 0 0 / 0.2),
      transparent 30%,
      oklch(0.08 0 0 / 0.28)
    );
}

.mood-up .scene-wash {
  background:
    radial-gradient(
      circle at 50% 40%,
      oklch(0.98 0.04 95 / 0.06) 0 20%,
      oklch(0.13 0.05 245 / 0.42) 78%,
      oklch(0.08 0.03 245 / 0.64) 100%
    );
}

.answer-link {
  position: relative;
  z-index: 6;
  display: grid;
  max-width: calc(100vw - 2rem);
  place-items: center;
  border-radius: 2rem;
  outline: none;
  text-decoration: none;
  transition: transform 260ms var(--ease-out-expo);
}

.answer-link:hover {
  transform: scale(1.035);
}

.answer-link:active {
  transform: scale(0.985);
}

.answer-link:focus-visible {
  outline: 0.45rem solid var(--ring);
  outline-offset: 0.65rem;
}

.answer {
  position: relative;
  display: block;
  padding: 0.12em 0.16em 0.2em;
  color: var(--white);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-align: center;
  text-shadow:
    0 0.06em 0 var(--shadow),
    0 0.11em 0.22em var(--shadow),
    -0.022em -0.022em 0 var(--black),
    0.022em -0.022em 0 var(--black),
    -0.022em 0.022em 0 var(--black),
    0.022em 0.022em 0 var(--black);
  text-wrap: balance;
  animation: answer-breathe 2.8s var(--ease-out-expo) infinite alternate;
}

.answer::after {
  position: absolute;
  inset: 0.07em 0.14em auto;
  height: 0.12em;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.55);
  content: "";
  filter: blur(0.025em);
  transform: skewX(-12deg);
}

.portal {
  position: absolute;
  z-index: 2;
  width: clamp(5rem, 12vw, 9rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 0.28rem solid var(--ring);
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    0 0 0 0.35rem oklch(0.98 0.03 95 / 0.78),
    0 1rem 2rem var(--shadow);
}

.portal img {
  width: 175%;
  height: 175%;
  object-fit: cover;
  transform: translate(-22%, -22%);
}

.portal-one {
  top: 4%;
  left: 3%;
  animation: orbit-one 8s var(--ease-out-expo) infinite alternate;
}

.portal-two {
  top: 5%;
  right: 3%;
  animation: orbit-two 10s var(--ease-out-expo) infinite alternate;
}

.portal-three {
  bottom: 4%;
  left: 7%;
  animation: orbit-two 9s var(--ease-out-expo) infinite alternate-reverse;
}

.portal-four {
  right: 7%;
  bottom: 4%;
  animation: orbit-one 11s var(--ease-out-expo) infinite alternate-reverse;
}

.decoration {
  position: absolute;
  z-index: 4;
  display: block;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  filter: drop-shadow(0 0.28rem 0.18rem var(--shadow));
  user-select: none;
}

.decoration-1 {
  top: 11%;
  left: 19%;
  animation: float-a 4.4s var(--ease-out-expo) infinite alternate;
}

.decoration-2 {
  top: 15%;
  right: 18%;
  animation: float-b 5.2s var(--ease-out-expo) infinite alternate;
}

.decoration-3 {
  bottom: 17%;
  left: 21%;
  animation: float-b 4.8s var(--ease-out-expo) infinite alternate-reverse;
}

.decoration-4 {
  right: 21%;
  bottom: 19%;
  animation: float-a 5.6s var(--ease-out-expo) infinite alternate-reverse;
}

.decoration-5 {
  top: 38%;
  left: 5%;
  animation: float-a 6s var(--ease-out-expo) infinite alternate;
}

.decoration-6 {
  top: 38%;
  right: 5%;
  animation: float-b 5.4s var(--ease-out-expo) infinite alternate;
}

.decoration-7 {
  bottom: 4%;
  left: 42%;
  animation: float-b 4.6s var(--ease-out-expo) infinite alternate-reverse;
}

.decoration-8 {
  top: 3%;
  left: 46%;
  animation: float-a 5s var(--ease-out-expo) infinite alternate-reverse;
}

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

@keyframes scene-drift {
  from {
    transform: scale(1.02) translate3d(-0.8%, -0.5%, 0);
  }
  to {
    transform: scale(1.09) translate3d(0.8%, 0.6%, 0);
  }
}

@keyframes answer-breathe {
  from {
    transform: translateY(0) rotate(-0.5deg);
    filter: brightness(1);
  }
  to {
    transform: translateY(-0.08em) rotate(0.5deg);
    filter: brightness(1.14);
  }
}

@keyframes orbit-one {
  from {
    transform: translate3d(0, 0, 0) rotate(-5deg);
  }
  to {
    transform: translate3d(1.2rem, 1rem, 0) rotate(7deg);
  }
}

@keyframes orbit-two {
  from {
    transform: translate3d(0, 0, 0) rotate(5deg);
  }
  to {
    transform: translate3d(-1.1rem, 0.8rem, 0) rotate(-8deg);
  }
}

@keyframes float-a {
  from {
    transform: translate3d(0, 0, 0) rotate(-7deg) scale(0.92);
  }
  to {
    transform: translate3d(0.4rem, -1.2rem, 0) rotate(8deg) scale(1.08);
  }
}

@keyframes float-b {
  from {
    transform: translate3d(0, 0, 0) rotate(8deg) scale(1.05);
  }
  to {
    transform: translate3d(-0.5rem, -1.4rem, 0) rotate(-6deg) scale(0.94);
  }
}

@media (max-width: 42rem) {
  .scene {
    width: 125%;
    height: 125%;
  }

  .portal {
    width: 5.2rem;
  }

  .portal-one,
  .portal-two {
    top: 3%;
  }

  .portal-three,
  .portal-four {
    bottom: 3%;
  }

  .decoration-5,
  .decoration-6 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .scene {
    width: 100%;
    height: 100%;
  }
}
