@keyframes float-bubble {
  0% {
    transform: translate3d(0, 20px, 0);
    opacity: 0;
  }
  12% {
    opacity: 0.65;
  }
  80% {
    opacity: 0.45;
  }
  100% {
    transform: translate3d(var(--bubble-drift, 20px), -360px, 0);
    opacity: 0;
  }
}
@keyframes elixir-fizz {
  0%,
  100% {
    translate: 0 0;
    opacity: 0.4;
  }
  50% {
    translate: 3px -13px;
    opacity: 1;
  }
}
@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes confetti-fall {
  0% {
    transform: translateY(-25px) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(500px) rotate(380deg);
    opacity: 0;
  }
}
.bubble-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bubble {
  position: absolute;
  bottom: 0;
  left: var(--bubble-left, 20%);
  width: var(--bubble-size, 18px);
  height: var(--bubble-size, 18px);
  border: 1px solid #79bcd596;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 25%,
    #ffffffb0 0 10%,
    #ffffff15 30%,
    #64c5e82b 75%
  );
  box-shadow: inset -2px -2px 3px #73bcd42b;
  animation: float-bubble var(--bubble-duration, 12s) var(--bubble-delay, 0s)
    linear infinite;
  opacity: 0;
}
.hero-bubbles {
  inset: 20% 1% 0;
  z-index: 1;
}
.hero-bubbles .bubble:nth-child(even) {
  border-color: #9bcfc3;
}
.elixir-bubble {
  animation: elixir-fizz 3s ease-in-out infinite;
}
.elixir-bubble-two {
  animation-delay: -1.5s;
}
.is-submitting .button-spinner {
  animation: button-spin 0.7s linear infinite;
}
.confetti-piece {
  position: absolute;
  width: 7px;
  height: 12px;
  left: var(--confetti-left);
  top: 0;
  background: var(--confetti-color);
  border-radius: 2px;
  animation: confetti-fall 2.8s var(--confetti-delay) ease-out both;
  pointer-events: none;
}
.title-letter {
  display: inline-block;
}
.title-space {
  display: inline-block;
  width: 0.24em;
}
.motion-paused *,
.motion-paused *::before,
.motion-paused *::after {
  animation-play-state: paused !important;
}
.motion-paused {
  scroll-behavior: auto;
}
.scene-layer {
  transform-style: preserve-3d;
}
.activity-card .activity-art img {
  transition: transform 500ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .activity-story:hover .activity-fish {
    transform: translateX(8px) rotate(-5deg);
  }
  .activity-elixir:hover .elixir-glass {
    transform: rotate(-3deg);
  }
  .activity-water:hover .water-duck {
    transform: translateY(-8px) rotate(3deg);
  }
  .activity-water:hover .water-ball {
    transform: translateY(-4px) rotate(25deg);
  }
  .activity-water:hover .water-splash {
    transform: scale(1.04);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .bubble {
    display: none;
  }
  .title-letter {
    opacity: 1 !important;
    transform: none !important;
  }
  .scene-layer {
    transform: none !important;
  }
  .button:hover,
  .button:active {
    translate: none;
  }
  .activity-card .activity-art img {
    transform: none !important;
  }
}
