:root {
  color-scheme: dark;
  --bg-top: #081611;
  --bg-bottom: #020705;
  --frame: rgba(168, 255, 213, 0.22);
  --glass: rgba(201, 255, 240, 0.08);
  --glass-edge: rgba(227, 255, 246, 0.34);
  --ink: #f4ffe8;
  --muted: rgba(236, 255, 242, 0.72);
  --gold: #f4d684;
  --lime: #9ef0b3;
  --mint: #6ff2d8;
  --teal: #4bbebf;
  --deep: #062921;
  --water: #0b4b50;
  --water-2: #0d6e66;
  --fog: rgba(214, 255, 230, 0.2);
  --touch-x: 50%;
  --touch-y: 42%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(117, 255, 195, 0.22), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(112, 207, 255, 0.16), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(32, 92, 70, 0.3), transparent 38%),
    linear-gradient(180deg, #0d241d 0%, var(--bg-top) 34%, var(--bg-bottom) 100%);
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--touch-x) var(--touch-y), rgba(178, 255, 202, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%, rgba(255, 255, 255, 0.02) 58%, transparent 100%);
}

.backdrop,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop-a {
  background:
    radial-gradient(circle at 20% 20%, rgba(142, 255, 195, 0.13), transparent 25%),
    radial-gradient(circle at 78% 18%, rgba(127, 209, 255, 0.1), transparent 22%);
  filter: blur(28px);
  animation: driftBackdrop 14s ease-in-out infinite alternate;
}

.backdrop-b {
  background:
    radial-gradient(circle at 30% 76%, rgba(56, 143, 117, 0.18), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(255, 216, 130, 0.08), transparent 18%);
  filter: blur(38px);
  animation: driftBackdrop 18s ease-in-out infinite alternate-reverse;
}

.grain {
  opacity: 0.12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.42'/></svg>");
  mix-blend-mode: soft-light;
}

.back-link {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  background: rgba(5, 16, 13, 0.5);
  border: 1px solid rgba(226, 255, 239, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.24);
}

.back-link:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(76px, calc(env(safe-area-inset-top) + 76px)) 14px max(16px, calc(env(safe-area-inset-bottom) + 16px));
}

.scene-card {
  position: relative;
  width: min(100%, 460px);
  height: min(100%, calc(100svh - max(92px, env(safe-area-inset-top) + 92px) - max(18px, env(safe-area-inset-bottom) + 18px)));
  min-height: 660px;
  max-height: 920px;
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(9, 22, 18, 0.82), rgba(3, 12, 10, 0.92)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 255, 228, 0.14);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hud {
  display: grid;
  gap: 0.4rem;
  padding: 8px 6px 0;
}

.eyebrow,
.caption-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: rgba(227, 255, 237, 0.62);
}

h1 {
  margin: 0.2rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 0.92;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 0 30px rgba(111, 242, 216, 0.16);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
  max-width: 28rem;
}

.paludarium {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--frame);
  background:
    radial-gradient(circle at 50% 6%, rgba(206, 255, 210, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(38, 102, 72, 0.3) 0%, rgba(12, 41, 31, 0.14) 32%, rgba(2, 18, 16, 0.3) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -60px 120px rgba(0, 0, 0, 0.22),
    0 30px 70px rgba(0, 0, 0, 0.24);
  transform: perspective(1200px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.paludarium::before,
.paludarium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paludarium::before {
  border-radius: inherit;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.11), transparent 14%, transparent 78%, rgba(255, 255, 255, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%);
  mix-blend-mode: screen;
}

.paludarium::after {
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(224, 255, 232, 0.08);
}

.glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glass-highlight {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.14), transparent 13%, transparent 84%, rgba(255, 255, 255, 0.05));
  mix-blend-mode: screen;
  opacity: 0.75;
}

.glass-shadow {
  background: linear-gradient(180deg, transparent 0%, transparent 74%, rgba(0, 0, 0, 0.18) 100%);
}

.sunbeams,
.canopy-glow,
.glints,
.mist,
.flora,
.frog-group,
.fish-school,
.ripple-layer,
.habitat,
.waterline {
  position: absolute;
  inset: 0;
}

.sunbeams {
  background:
    linear-gradient(114deg, transparent 12%, rgba(220, 255, 208, 0.08) 20%, transparent 30%),
    linear-gradient(96deg, transparent 20%, rgba(255, 243, 186, 0.08) 31%, transparent 41%),
    linear-gradient(84deg, transparent 54%, rgba(146, 255, 201, 0.08) 63%, transparent 74%);
  mix-blend-mode: screen;
  opacity: 0.75;
  transform: translate3d(calc(var(--shift-x) * 0.12), calc(var(--shift-y) * 0.12), 0);
}

.canopy-glow {
  background:
    radial-gradient(circle at calc(50% + (var(--shift-x) * 0.1)) 12%, rgba(165, 255, 188, 0.2), transparent 22%),
    radial-gradient(circle at 72% 10%, rgba(255, 222, 134, 0.12), transparent 16%);
  filter: blur(16px);
}

.habitat-land {
  inset: 0 0 36% 0;
  overflow: hidden;
}

.habitat-water {
  inset: 58% 0 0 0;
  overflow: hidden;
}

.water-gradient,
.depth-glow {
  position: absolute;
  inset: 0;
}

.water-gradient {
  background:
    linear-gradient(180deg, rgba(99, 225, 206, 0.22) 0%, rgba(10, 94, 96, 0.65) 22%, rgba(6, 51, 51, 0.9) 100%),
    radial-gradient(circle at 50% -10%, rgba(214, 255, 230, 0.2), transparent 22%);
}

.depth-glow {
  background:
    radial-gradient(circle at 50% 18%, rgba(165, 255, 214, 0.08), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.22), transparent 48%);
}

.waterline {
  inset: 56% 0 auto;
  height: 18px;
  z-index: 4;
}

.waterline::before,
.waterline::after,
.waterline-glow {
  content: "";
  position: absolute;
  inset: 0;
}

.waterline::before {
  height: 3px;
  top: 8px;
  background: linear-gradient(90deg, transparent, rgba(218, 255, 240, 0.92) 16%, rgba(255, 244, 188, 0.82) 48%, rgba(198, 255, 223, 0.88) 84%, transparent);
  filter: blur(0.4px);
}

.waterline::after {
  top: 10px;
  height: 12px;
  background: linear-gradient(180deg, rgba(209, 255, 231, 0.1), transparent);
}

.waterline-glow {
  top: 5px;
  height: 10px;
  background: radial-gradient(circle at 50% 50%, rgba(213, 255, 237, 0.24), transparent 68%);
  filter: blur(8px);
}

.ledge,
.moss,
.vine {
  position: absolute;
}

.ledge {
  background:
    linear-gradient(180deg, rgba(29, 52, 33, 0.76), rgba(11, 24, 19, 0.96)),
    linear-gradient(90deg, rgba(118, 152, 106, 0.24), transparent 44%);
  border: 1px solid rgba(176, 226, 181, 0.08);
  box-shadow: inset 0 6px 14px rgba(255, 255, 255, 0.05), 0 18px 24px rgba(0, 0, 0, 0.16);
}

.ledge-a {
  left: 4%;
  right: 32%;
  top: 52%;
  height: 15%;
  border-radius: 48% 52% 24% 26% / 46% 44% 30% 28%;
  transform: rotate(-8deg);
}

.ledge-b {
  right: 8%;
  width: 34%;
  top: 26%;
  height: 18%;
  border-radius: 54% 46% 38% 42% / 42% 54% 28% 36%;
  transform: rotate(12deg);
}

.moss {
  background: radial-gradient(circle at 50% 40%, rgba(148, 255, 154, 0.58), rgba(47, 104, 55, 0.8) 60%, transparent 78%);
  filter: blur(2px);
}

.moss-a {
  left: 9%;
  top: 46%;
  width: 38%;
  height: 16%;
}

.moss-b {
  right: 10%;
  top: 21%;
  width: 18%;
  height: 10%;
}

.vine {
  top: -8%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(78, 173, 110, 0.96), rgba(17, 73, 48, 0.85));
  box-shadow: 0 0 0 1px rgba(190, 255, 201, 0.08);
  transform-origin: top center;
}

.vine::before,
.vine::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 16px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(163, 255, 186, 0.9), rgba(50, 125, 71, 0.96));
  box-shadow: 0 0 12px rgba(126, 255, 186, 0.18);
}

.vine::before {
  left: -26px;
  top: 28%;
  transform: rotate(-24deg);
}

.vine::after {
  left: 4px;
  top: 52%;
  transform: rotate(18deg);
}

.vine-a {
  left: 14%;
  height: 54%;
  animation: sway 9s ease-in-out infinite;
}

.vine-b {
  left: 72%;
  height: 46%;
  animation: sway 11s ease-in-out infinite reverse;
}

.vine-c {
  left: 86%;
  height: 34%;
  animation: sway 8s ease-in-out infinite;
}

.plant {
  position: absolute;
  bottom: var(--plant-bottom, 0%);
  left: var(--plant-left, 50%);
  width: var(--plant-width, 84px);
  height: var(--plant-height, 180px);
  transform: translateX(-50%) translate3d(calc(var(--shift-x) * var(--depth, 0.12)), calc(var(--shift-y) * var(--depth, 0.08)), 0);
  animation: sway var(--sway, 9s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.plant .stem {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 8px;
  height: 100%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(130, 245, 150, 0.2), rgba(47, 124, 76, 0.96) 40%, rgba(19, 62, 42, 0.98));
  box-shadow: 0 0 0 1px rgba(208, 255, 219, 0.06);
}

.plant .leaf {
  position: absolute;
  left: 50%;
  bottom: var(--leaf-bottom, 14%);
  width: var(--leaf-width, 34px);
  height: var(--leaf-height, 96px);
  transform-origin: bottom center;
  border-radius: 100% 0 100% 0;
  background:
    linear-gradient(145deg, rgba(192, 255, 180, 0.92), rgba(93, 196, 122, 0.82) 34%, rgba(28, 101, 59, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(228, 255, 223, 0.06),
    0 10px 20px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(111, 242, 172, 0.08);
}

.plant .leaf::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(235, 255, 231, 0.28);
  border-radius: 999px;
}

.plant .leaf.left {
  transform: translateX(-98%) rotate(-36deg);
}

.plant .leaf.right {
  transform: translateX(-2%) scaleX(-1) rotate(-36deg);
}

.plant .leaf.wide {
  border-radius: 50% 18% 44% 18%;
}

.frog {
  position: absolute;
  left: var(--frog-left, 50%);
  top: var(--frog-top, 50%);
  width: var(--frog-size, 84px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) translate3d(calc(var(--shift-x) * 0.08), calc(var(--shift-y) * 0.08), 0) scale(var(--frog-scale, 1));
  animation: frogBreathe var(--frog-breathe, 4.2s) ease-in-out infinite;
}

.frog-body,
.frog-belly,
.frog-head,
.frog-leg,
.frog-arm,
.frog-eye,
.frog-eye::after,
.frog-throat {
  position: absolute;
}

.frog-body {
  left: 18%;
  right: 18%;
  top: 36%;
  bottom: 14%;
  border-radius: 46% 46% 38% 38%;
  background:
    radial-gradient(circle at 50% 25%, rgba(170, 255, 142, 0.86), transparent 32%),
    linear-gradient(180deg, rgba(146, 236, 96, 0.96), rgba(63, 139, 44, 0.96));
  box-shadow: inset 0 -10px 14px rgba(0, 0, 0, 0.14), 0 12px 22px rgba(0, 0, 0, 0.22);
}

.frog-belly {
  left: 30%;
  right: 30%;
  top: 50%;
  bottom: 18%;
  border-radius: 44% 44% 36% 36%;
  background: linear-gradient(180deg, rgba(255, 248, 205, 0.9), rgba(228, 215, 144, 0.9));
}

.frog-head {
  left: 23%;
  right: 23%;
  top: 16%;
  height: 38%;
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 50% 10%, rgba(190, 255, 151, 0.9), transparent 28%),
    linear-gradient(180deg, rgba(126, 235, 95, 0.98), rgba(69, 151, 54, 0.96));
}

.frog-eye {
  top: 13%;
  width: 24%;
  height: 24%;
  border-radius: 50%;
  background: linear-gradient(180deg, #f9d86e, #9f7b1d);
  box-shadow: 0 0 0 3px rgba(68, 130, 38, 0.96);
}

.frog-eye.left {
  left: 20%;
}

.frog-eye.right {
  right: 20%;
}

.frog-eye::after {
  content: "";
  left: 43%;
  top: 16%;
  width: 14%;
  height: 52%;
  border-radius: 999px;
  background: #12150c;
}

.frog-throat {
  left: 41%;
  right: 41%;
  bottom: 28%;
  height: 10%;
  border-radius: 999px;
  background: rgba(248, 236, 178, 0.9);
  transform-origin: center top;
}

.frog-arm,
.frog-leg {
  background: linear-gradient(180deg, rgba(98, 188, 67, 0.98), rgba(46, 111, 38, 0.98));
  border-radius: 999px;
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.14);
}

.frog-arm {
  top: 46%;
  width: 16%;
  height: 30%;
}

.frog-arm.left {
  left: 18%;
  transform: rotate(26deg);
}

.frog-arm.right {
  right: 18%;
  transform: rotate(-26deg);
}

.frog-leg {
  bottom: 6%;
  width: 18%;
  height: 34%;
}

.frog-leg.left {
  left: 16%;
  transform: rotate(28deg);
}

.frog-leg.right {
  right: 16%;
  transform: rotate(-28deg);
}

.frog.is-calling .frog-throat {
  animation: callPulse 800ms ease-in-out 4;
}

.frog.is-calling .frog-eye::after {
  transform: scaleY(0.45);
}

.fish {
  position: absolute;
  left: var(--fish-left, 50%);
  top: var(--fish-top, 50%);
  width: var(--fish-size, 54px);
  height: calc(var(--fish-size, 54px) * 0.56);
  transform: translate(-50%, -50%) scaleX(var(--fish-flip, 1));
  animation: swimX var(--swim-duration, 16s) linear infinite, swimY var(--bob-duration, 4.8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s), calc(var(--delay, 0s) * -1.1);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.18));
}

.fish-body,
.fish-tail,
.fish-fin,
.fish-eye {
  position: absolute;
}

.fish-body {
  left: 0;
  top: 12%;
  width: 72%;
  height: 76%;
  border-radius: 58% 42% 44% 56%;
  background:
    radial-gradient(circle at 30% 34%, rgba(255, 240, 194, 0.88), transparent 18%),
    linear-gradient(180deg, var(--fish-color-a), var(--fish-color-b));
  box-shadow: inset 0 -6px 10px rgba(0, 0, 0, 0.16);
}

.fish-tail {
  right: 0;
  top: 18%;
  width: 38%;
  height: 62%;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  background: linear-gradient(180deg, var(--fish-color-b), var(--fish-color-c));
  transform-origin: left center;
  animation: tailFlick 900ms ease-in-out infinite;
}

.fish-fin {
  left: 38%;
  top: -2%;
  width: 18%;
  height: 28%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 240, 196, 0.8), var(--fish-color-a));
  opacity: 0.86;
}

.fish-eye {
  left: 16%;
  top: 38%;
  width: 8%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #10130d;
  box-shadow: 0 0 0 2px rgba(255, 245, 222, 0.86);
}

.bubble-column {
  position: absolute;
  width: 1px;
  bottom: 0;
  top: 12%;
}

.bubble-column::before,
.bubble-column::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 0;
  width: 22px;
  height: 100%;
  background-image: radial-gradient(circle, rgba(221, 255, 255, 0.75) 0 12%, transparent 13% 100%);
  background-size: 16px 48px;
  background-repeat: repeat-y;
  opacity: 0.42;
  animation: bubblesRise 9s linear infinite;
}

.bubble-column::after {
  left: -6px;
  opacity: 0.22;
  animation-duration: 11s;
  animation-delay: -4s;
}

.bubble-column-a {
  left: 18%;
}

.bubble-column-b {
  left: 54%;
}

.bubble-column-c {
  left: 82%;
}

.mist {
  z-index: 5;
  filter: blur(14px);
  mix-blend-mode: screen;
}

.mist-puff,
.glint,
.ripple {
  position: absolute;
  border-radius: 50%;
}

.mist-puff {
  width: var(--mist-size, 140px);
  height: calc(var(--mist-size, 140px) * 0.54);
  left: var(--mist-left, 50%);
  top: var(--mist-top, 50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(225, 255, 230, 0.34), rgba(196, 255, 212, 0.12) 52%, transparent 76%);
  opacity: var(--mist-opacity, 0.42);
  animation: driftMist var(--mist-duration, 12s) ease-in-out infinite;
  animation-delay: var(--mist-delay, 0s);
  transform: translate(-50%, -50%) translate3d(calc(var(--shift-x) * var(--mist-depth, 0.12)), calc(var(--shift-y) * var(--mist-depth, 0.08)), 0);
}

.glint {
  left: var(--glint-left, 50%);
  top: var(--glint-top, 50%);
  width: var(--glint-size, 5px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 247, 201, 0.9), rgba(180, 255, 214, 0.12));
  box-shadow: 0 0 18px rgba(240, 255, 186, 0.3);
  animation: sparkle var(--glint-duration, 4s) ease-in-out infinite;
  animation-delay: var(--glint-delay, 0s);
}

.ripple-layer {
  overflow: hidden;
}

.ripple {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(218, 255, 239, 0.54);
  transform: translate(-50%, -50%);
  animation: rippleExpand 1.9s ease-out forwards;
}

.caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 0;
}

.caption-copy p {
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cta {
  flex: 0 0 auto;
  border: 1px solid rgba(227, 255, 238, 0.12);
  background: linear-gradient(135deg, rgba(223, 255, 175, 0.92), rgba(108, 241, 206, 0.92));
  color: #082117;
  padding: 0.9rem 1.05rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.24);
}

@media (max-width: 640px) {
  .scene-card {
    min-height: 0;
    height: calc(100svh - max(92px, env(safe-area-inset-top) + 92px) - max(16px, env(safe-area-inset-bottom) + 16px));
    border-radius: 28px;
    padding: 12px;
  }

  .subtitle {
    font-size: 0.9rem;
  }

  .caption-bar {
    align-items: flex-end;
  }

  .caption-copy p {
    font-size: 0.88rem;
  }

  .cta {
    padding: 0.84rem 0.95rem;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 10px;
  }

  .scene-card {
    gap: 10px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.4rem);
  }

  .caption-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    width: 100%;
  }
}

@keyframes sway {
  0%,
  100% {
    transform: translateX(-50%) translate3d(calc(var(--shift-x) * var(--depth, 0.12)), calc(var(--shift-y) * var(--depth, 0.08)), 0) rotate(-2deg);
  }
  50% {
    transform: translateX(-50%) translate3d(calc(var(--shift-x) * var(--depth, 0.12)), calc(var(--shift-y) * var(--depth, 0.08)), 0) rotate(3deg);
  }
}

@keyframes frogBreathe {
  0%,
  100% {
    transform: translate(-50%, -50%) translate3d(calc(var(--shift-x) * 0.08), calc(var(--shift-y) * 0.08), 0) scale(var(--frog-scale, 1));
  }
  50% {
    transform: translate(-50%, -50%) translate3d(calc(var(--shift-x) * 0.08), calc(var(--shift-y) * 0.08), 0) scale(calc(var(--frog-scale, 1) * 1.03));
  }
}

@keyframes callPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.9, 1.55);
  }
}

@keyframes swimX {
  0% {
    left: -16%;
  }
  100% {
    left: 116%;
  }
}

@keyframes swimY {
  0%,
  100% {
    transform: translate(-50%, -50%) scaleX(var(--fish-flip, 1)) translateY(-4px);
  }
  50% {
    transform: translate(-50%, -50%) scaleX(var(--fish-flip, 1)) translateY(5px);
  }
}

@keyframes tailFlick {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(12deg);
  }
}

@keyframes bubblesRise {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes driftMist {
  0%,
  100% {
    transform: translate(-50%, -50%) translate3d(calc(var(--shift-x) * var(--mist-depth, 0.12)), calc(var(--shift-y) * var(--mist-depth, 0.08)), 0) scale(0.96);
  }
  50% {
    transform: translate(-50%, -50%) translate3d(calc(var(--shift-x) * var(--mist-depth, 0.12) + 14px), calc(var(--shift-y) * var(--mist-depth, 0.08) - 8px), 0) scale(1.08);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.35);
  }
}

@keyframes rippleExpand {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(10.5);
  }
}

@keyframes driftBackdrop {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }
  100% {
    transform: translate3d(3%, 3%, 0) scale(1.05);
  }
}

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

  .paludarium {
    transform: none !important;
  }
}
