/* =========================================================
   Globe Changers Kidz: Treehouse of Fame
   ========================================================= */

:root {
  --night: #05061a;
  --night-2: #0b0d2e;
  --ink: #f4f6ff;
  --gold: #ffd23f;
  --gold-2: #ff9d1c;
  --slime: #49e72f;
  --neon-blue: #29b6ff;
  --neon-purple: #c04bff;
  --neon-pink: #ff4fd8;
  --neon-green: #3dff6e;
  --neon-orange: #ff8a1f;

  /* Stage = the treehouse scene. Everything in it scales with --u. */
  --sw: min(100vw, 820px);
  --u: calc(var(--sw) / 100);

  --f-logo: "Luckiest Guy", "Bungee", system-ui, sans-serif;
  --f-block: "Bungee", "Luckiest Guy", system-ui, sans-serif;
  --f-body: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --f-script: "Kaushan Script", "Brush Script MT", cursive;

  --chrome: linear-gradient(180deg, #ffffff 0%, #e6ecfb 30%, #9aa3bf 48%, #5d6584 52%, #d9e0f2 70%, #ffffff 100%);
  --chrome-violet: linear-gradient(180deg, #ffffff 0%, #f0d9ff 28%, #b47cff 48%, #6a2bd1 53%, #d4a8ff 72%, #fff3ff 100%);
  --gold-chrome: linear-gradient(180deg, #fff8c7 0%, #ffe066 35%, #ffb31f 52%, #d97a00 56%, #ffd34d 78%, #fff5b8 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
.world { overflow-x: clip; }
html, body { margin: 0; background: var(--night); color: var(--ink); }
body {
  font-family: var(--f-body);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.is-entering { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Visible glow focus state for every interactive element */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(41, 182, 255, 0.55), 0 0 26px 8px rgba(192, 75, 255, 0.6);
  border-radius: 14px;
}

/* ---------------------------------------------------------
   Water canvas
   --------------------------------------------------------- */
#water {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none; display: block;
  opacity: 0; transition: opacity .6s ease;
}
.gl-on #water { opacity: 1; }

/* ---------------------------------------------------------
   Mute button
   --------------------------------------------------------- */
.mute {
  position: fixed; z-index: 80;
  top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(120, 220, 255, .8);
  background: radial-gradient(circle at 50% 35%, rgba(40, 60, 140, .9), rgba(8, 10, 40, .92));
  box-shadow: 0 0 14px rgba(41, 182, 255, .65), inset 0 0 10px rgba(41, 182, 255, .45);
  color: #dff6ff; cursor: pointer; display: grid; place-items: center; padding: 0;
  transition: transform .15s ease, box-shadow .2s ease;
}
.mute:hover { transform: scale(1.07); box-shadow: 0 0 22px rgba(41, 182, 255, .9), inset 0 0 12px rgba(41, 182, 255, .6); }
.mute svg { width: 26px; height: 26px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mute svg path:first-child { stroke-width: 1; }
.mute__off { display: none; }
.mute[aria-pressed="true"] .mute__on { display: none; }
.mute[aria-pressed="true"] .mute__off { display: block; }
.mute[aria-pressed="true"] { border-color: rgba(255, 120, 200, .8); box-shadow: 0 0 12px rgba(255, 79, 216, .55); }
.mute .wave1, .mute .wave2 { animation: speaker 1.6s ease-in-out infinite; }
.mute .wave2 { animation-delay: .3s; }
@keyframes speaker { 50% { opacity: .35; } }

/* ---------------------------------------------------------
   Logo (built by main.js into [data-logo])
   --------------------------------------------------------- */
.logo {
  margin: 0; line-height: .86; text-align: center;
  font-family: var(--f-logo); font-weight: 400;
  font-size: calc(var(--u) * 10.2);
  letter-spacing: .01em; user-select: none;
}
.logo__line1 { display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.logo__chrome, .logo__violet {
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .018em rgba(20, 24, 60, .9);
  filter: drop-shadow(0 .04em 0 #1a1f4a) drop-shadow(0 0 .12em rgba(160, 200, 255, .85));
}
.logo__violet {
  background: var(--chrome-violet); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 .04em 0 #2a0b55) drop-shadow(0 0 .14em rgba(200, 110, 255, .95));
}
.logo__globe {
  position: relative; display: inline-block; width: .92em; height: .92em; margin: 0 .01em; flex: none;
  transform: translateY(-.03em);
}
.logo__globe svg { position: absolute; overflow: visible; }
.logo__globe .splat { width: 2.3em; height: 2.0em; left: -.85em; top: -.62em; }
.logo__globe .globe { width: 100%; height: 100%; inset: 0; filter: drop-shadow(0 0 .12em rgba(80, 180, 255, .9)); }
.globe__land { animation: spinLand 18s linear infinite; }
@keyframes spinLand { from { transform: translateX(0); } to { transform: translateX(-100px); } }
.splat__drip { transform-box: fill-box; transform-origin: 50% 0; animation: drip 3.2s ease-in-out infinite; }
.splat__drip:nth-child(2n) { animation-duration: 4.1s; animation-delay: -1.3s; }
.splat__drip:nth-child(3n) { animation-duration: 3.6s; animation-delay: -2.2s; }
@keyframes drip { 0%, 100% { transform: scaleY(1); } 55% { transform: scaleY(1.28); } }

.kidz-word { display: inline-flex; gap: .02em; font-family: var(--f-logo); }
.kidz-word b {
  font-weight: 400; display: inline-block;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .02em rgba(25, 10, 50, .85);
}
.kidz-word b:nth-child(1) { background-image: linear-gradient(180deg, #ffd0ff, #ff3fd8 45%, #b0129c 55%, #ff7be6); filter: drop-shadow(0 0 .12em #ff3fd8); }
.kidz-word b:nth-child(2) { background-image: linear-gradient(180deg, #eaffc2, #7dff3a 45%, #24a515 55%, #b6ff6b); filter: drop-shadow(0 0 .12em #6dff3a); }
.kidz-word b:nth-child(3) { background-image: linear-gradient(180deg, #d4f6ff, #29c6ff 45%, #0060d6 55%, #7fd9ff); filter: drop-shadow(0 0 .12em #29b6ff); }
.kidz-word b:nth-child(4) { background-image: linear-gradient(180deg, #fff1c2, #ffb21f 45%, #e05a00 55%, #ffcf5c); filter: drop-shadow(0 0 .12em #ff8a1f); }
.logo .kidz-word { font-size: 1.22em; margin-top: -.08em; }
.logo .kidz-word b { animation: kidzHop 3.6s ease-in-out infinite; }
.logo .kidz-word b:nth-child(2) { animation-delay: .15s; }
.logo .kidz-word b:nth-child(3) { animation-delay: .3s; }
.logo .kidz-word b:nth-child(4) { animation-delay: .45s; }
@keyframes kidzHop { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 78% { transform: translateY(-.08em) rotate(-3deg); } 86% { transform: translateY(0) rotate(2deg); } }

/* Gradient ("chrome") lettering only paints inside each element's box, and these
   fonts draw past a tight line box, which slices letter tops and edges. Pad the
   paint area out and pull the layout back in with matching negative margins. */
.logo__chrome, .logo__violet, .kidz-word b, .ribbon__text,
.slime__big, .slime__mid, .slime__small, .finale__title span {
  padding: .14em .06em .1em;
  margin: -.14em -.06em -.1em;
}

/* ---------------------------------------------------------
   1. Entrance
   --------------------------------------------------------- */
.entrance {
  position: fixed; inset: 0; z-index: 60; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 70%, #1b1655 0%, #0a0b2c 45%, #03030f 100%);
  transform-origin: 50% 58%;
}
.entrance__sky {
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 62%, #cfe3ff 50%, transparent 51%),
    radial-gradient(2px 2px at 35% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 22%, #ffe8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 70%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 84% 15%, #dff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 88%, #fff 50%, transparent 51%);
  background-size: 340px 340px;
  animation: twinkleField 6s ease-in-out infinite alternate;
}
.entrance__sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 30% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 55%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 15% 75%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 85%, #fff 50%, transparent 51%);
  background-size: 210px 210px;
  animation: twinkleField 4s ease-in-out -2s infinite alternate;
}
@keyframes twinkleField { from { opacity: .45; } to { opacity: 1; } }

.entrance__inner {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: min(92vw, 560px); padding: 2vh 0;
  --eu: min(1vw, 0.75svh, 5.6px);
}
.logo--entrance { font-size: min(10.6vw, 7.4svh, 66px); }
.entrance__stage {
  position: relative; width: calc(var(--eu) * 70); height: min(46svh, 360px);
  margin: 1.4svh 0 2svh;
}
.arch {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64%; height: 92%; perspective: 900px;
  border-radius: 50% 50% 6px 6px / 34% 34% 6px 6px;
  background: linear-gradient(180deg, #3b2416, #1d120b);
  box-shadow: 0 0 0 10px #5b3a22, 0 0 0 13px #2a1a0f, 0 0 40px 14px rgba(255, 150, 60, .35), inset 0 0 30px rgba(0, 0, 0, .8);
}
.arch__light {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 70%, #fff8de 0%, #ffd66b 25%, #ff7ad8 55%, #4a2bd1 85%);
  opacity: .0; transition: opacity .5s ease;
}
.arch__door {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #5a3a22, #3a2414 60%, #2b1a0e);
  box-shadow: inset 0 0 18px rgba(0,0,0,.75);
  transition: transform .62s cubic-bezier(.6, .05, .3, 1);
  backface-visibility: hidden;
}
.arch__door--l { left: 0; border-radius: 100% 0 0 0 / 34% 0 0 0; transform-origin: 0 50%; }
.arch__door--r { right: 0; border-radius: 0 100% 0 0 / 0 34% 0 0; transform-origin: 100% 50%; }
.arch__knob { position: absolute; top: 58%; width: 9px; height: 9px; border-radius: 50%; background: #ffcf5a; box-shadow: 0 0 10px #ffb31f; }
.arch__door--l .arch__knob { right: 10px; }
.arch__door--r .arch__knob { left: 10px; }
.arch__lamp {
  position: absolute; top: 34%; width: 14px; height: 22px; border-radius: 5px;
  background: radial-gradient(circle, #fff6c9, #ffb31f 55%, #a84a00);
  box-shadow: 0 0 18px 8px rgba(255, 170, 50, .55);
  animation: flicker 2.8s infinite;
}
.arch__lamp--l { left: -34px; }
.arch__lamp--r { right: -34px; animation-delay: -1.1s; }
@keyframes flicker {
  0%, 100% { opacity: 1; } 12% { opacity: .82; } 18% { opacity: .95; } 46% { opacity: .78; } 52% { opacity: 1; } 75% { opacity: .9; }
}

.goofin { position: absolute; padding: 0; border: 0; background: none; }
.goofin img { width: 100%; height: auto; pointer-events: none; }
.goofin__lid {
  position: absolute; width: 11.5%; height: 7.4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #9bd056, #5f9a2a);
  transform: scaleY(0); transform-origin: 50% 0;
  animation: blink 4.6s infinite;
}
.goofin__lid--l { left: 32.4%; top: 19.8%; }
.goofin__lid--r { left: 59.2%; top: 21.6%; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }

.goofin--entrance {
  left: 50%; bottom: -2%; width: 39%;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(120, 80, 255, .45));
}
.goofin--entrance img { animation: idleBounce 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes idleBounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45% { transform: translateY(-4%) scale(.985, 1.015); }
  60% { transform: translateY(-4.4%) scale(.98, 1.02); }
  90% { transform: translateY(0) scale(1.02, .98); }
}

.neon-btn {
  position: relative; cursor: pointer; border: 0; padding: 0;
  font-family: var(--f-logo); font-size: clamp(30px, 8.5vw, 50px); letter-spacing: .03em;
  color: #fff; background: none; min-height: 64px;
  animation: btnPulse 1.8s ease-in-out infinite;
}
.neon-btn span {
  display: block; padding: .32em 1.3em .22em;
  border-radius: 999px;
  border: 3px solid #b8f3ff;
  background: linear-gradient(180deg, rgba(60, 30, 160, .9), rgba(20, 10, 70, .95));
  box-shadow: 0 0 0 3px rgba(255, 79, 216, .9), 0 0 24px 6px rgba(255, 79, 216, .7), 0 0 50px 14px rgba(41, 182, 255, .45), inset 0 0 18px rgba(41, 182, 255, .8);
  text-shadow: 0 0 10px #8fe9ff, 0 0 22px #29b6ff, 0 3px 0 #2a1170;
  transition: transform .15s ease;
}
.neon-btn:hover span { transform: scale(1.05); }
.neon-btn:active span { transform: scale(.94, .9); }
@keyframes btnPulse { 50% { filter: brightness(1.25) saturate(1.2); } }
.entrance__name {
  position: relative; z-index: 2;
  margin: 18px 0 1.6svh; padding-top: .15em; line-height: 1.35;
  font-size: clamp(15px, 4vw, 19px); font-weight: 600; color: rgba(230, 236, 255, .85); text-align: center;
}
.entrance__name b {
  font-family: var(--f-logo); font-weight: 400; font-size: 1.35em; letter-spacing: .03em; color: #ffd23f;
  text-shadow: 0 0 8px rgba(255, 180, 40, .9), 0 2px 0 #4a2300;
}
.entrance.is-opening .entrance__name { opacity: 0; transition: opacity .3s; }
.entrance__hint { margin: 1.6svh 0 0; font-size: 14px; color: rgba(220, 230, 255, .7); text-align: center; }

/* Entrance sequence */
.entrance.is-opening .arch__door--l { transform: rotateY(-108deg); }
.entrance.is-opening .arch__door--r { transform: rotateY(108deg); }
.entrance.is-opening .arch__light { opacity: 1; }
.entrance.is-opening .goofin--entrance img { animation: entranceHop .55s cubic-bezier(.3, .7, .4, 1) forwards; }
.entrance.is-opening .neon-btn { animation: none; transform: scale(.9); opacity: 0; transition: opacity .35s ease, transform .35s ease; }
.entrance.is-opening .entrance__hint { opacity: 0; transition: opacity .3s; }
.entrance.is-zooming { transform: scale(3.4); opacity: 0; transition: transform .95s cubic-bezier(.55, 0, .3, 1), opacity .8s ease .15s; }
@keyframes entranceHop { 40% { transform: translateY(-22%) scale(.95, 1.06); } 100% { transform: translateY(0) scale(1); } }

.world { position: relative; z-index: 1; }
.is-entering .world { transform: scale(1.06); opacity: .0; }
.world { transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .8s ease; }

/* ---------------------------------------------------------
   2. Hero stage
   --------------------------------------------------------- */
.hero { position: relative; display: flex; justify-content: center; }
.stage {
  position: relative; width: var(--sw); aspect-ratio: 661 / 880;
}
.stage__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease; }
.gl-on .stage__backdrop { opacity: 0; }
.stage__fallback-water { display: none; position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 26.2%; }
.no-gl .stage__fallback-water { display: block; }

.title-block {
  position: absolute; left: 4%; right: 4%; top: 2%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.plaque {
  margin: calc(var(--u) * 1.4) 0 0; padding: calc(var(--u) * .9) calc(var(--u) * 3.2) calc(var(--u) * .5);
  font-family: var(--f-block); font-size: calc(var(--u) * 5.4); line-height: 1; letter-spacing: .01em;
  text-transform: uppercase; white-space: nowrap;
  border-radius: calc(var(--u) * 1.2);
  background: linear-gradient(180deg, #1a1c35, #07081a);
  border: calc(var(--u) * .45) solid #c9d2ea;
  box-shadow: 0 0 0 calc(var(--u) * .35) #2b2f55, 0 0 calc(var(--u) * 3) rgba(140, 170, 255, .55), inset 0 0 calc(var(--u) * 2) rgba(0, 0, 0, .8);
  transform: perspective(600px) rotateX(8deg);
}
.plaque, .lifetime { color: #fff; }
.plaque { background-clip: padding-box; }
.plaque { text-shadow: 0 0 calc(var(--u) * .6) rgba(190, 215, 255, .9), 0 calc(var(--u) * .3) 0 #3a4166; }
.plaque__star { color: #e9f1ff; font-size: .8em; vertical-align: .08em; text-shadow: 0 0 8px #9fd4ff, 0 0 16px #29b6ff; display: inline-block; animation: starSpin 5s linear infinite; }
@keyframes starSpin { 0%, 80% { transform: rotate(0) scale(1); } 90% { transform: rotate(180deg) scale(1.3); } 100% { transform: rotate(360deg) scale(1); } }
.lifetime {
  margin: calc(var(--u) * 1.3) 0 0;
  font-family: var(--f-logo); font-size: calc(var(--u) * 4.5); line-height: 1; letter-spacing: .01em;
  text-transform: uppercase; white-space: nowrap;
  background: var(--gold-chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .02em #4a2300;
  filter: drop-shadow(0 .05em 0 #3b1800) drop-shadow(0 0 .2em rgba(255, 180, 40, .7));
}
.ribbon {
  position: relative; margin: calc(var(--u) * 1.6) 0 0; width: 86%;
  padding: calc(var(--u) * 1.4) 0 calc(var(--u) * .9);
  background: linear-gradient(180deg, #ff5a4a 0%, #d6121d 45%, #9a0610 100%);
  border-radius: 50% / 18%;
  box-shadow: inset 0 calc(var(--u) * .5) 0 rgba(255, 200, 180, .45), inset 0 calc(var(--u) * -.6) 0 rgba(60, 0, 0, .45), 0 calc(var(--u) * .8) calc(var(--u) * 2) rgba(0, 0, 0, .55);
  transform-origin: 50% 50%;
  animation: ribbonWave 4s ease-in-out infinite;
}
.ribbon::before, .ribbon::after {
  content: ""; position: absolute; top: 22%; width: 15%; height: 86%; z-index: -1;
  background: linear-gradient(180deg, #e0242b, #8a050d);
}
.ribbon::before { left: -10%; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 26% 50%); transform: skewY(6deg); }
.ribbon::after { right: -10%; clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%); transform: skewY(-6deg); }
@keyframes ribbonWave { 50% { transform: rotate(-.6deg) scale(1.01); } }
.ribbon__text {
  display: block; font-family: var(--f-logo); font-size: calc(var(--u) * 7.4); line-height: 1; letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--gold-chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .022em #5a1a00;
  filter: drop-shadow(0 .05em 0 #4a0d00) drop-shadow(0 0 .14em rgba(255, 220, 90, .9));
}
.honor {
  margin: calc(var(--u) * 1.2) 0 0; width: 78%;
  padding: calc(var(--u) * 1.3) calc(var(--u) * 2.4) calc(var(--u) * 1.3);
  font-size: max(11.5px, calc(var(--u) * 2.7)); line-height: 1.24; font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, rgba(10, 8, 30, .86), rgba(2, 2, 12, .92));
  border: calc(var(--u) * .35) solid #6d7dff;
  border-radius: calc(var(--u) * 3) calc(var(--u) * 3) calc(var(--u) * 5) calc(var(--u) * 5);
  box-shadow: 0 0 calc(var(--u) * 2.2) rgba(130, 90, 255, .8), inset 0 0 calc(var(--u) * 1.6) rgba(80, 120, 255, .35);
  animation: panelGlow 3.4s ease-in-out infinite;
}
@keyframes panelGlow { 50% { box-shadow: 0 0 calc(var(--u) * 3.2) rgba(41, 182, 255, .9), inset 0 0 calc(var(--u) * 2) rgba(160, 80, 255, .4); border-color: #4fc7ff; } }
.honor__line { display: block; }
.honor__gold { display: block; color: var(--gold); font-weight: 700; text-shadow: 0 0 10px rgba(255, 200, 40, .6); }
.honor__gold:first-child { font-size: 1.06em; }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* ABOUT door */
.door {
  position: absolute; left: 43.4%; top: 51.2%; width: 15%; height: 14.2%;
  border-radius: 50% 50% 4% 4% / 30% 30% 4% 4%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8%;
  text-decoration: none;
}
.door__glow {
  position: absolute; inset: -4%; border-radius: inherit; opacity: .25;
  box-shadow: 0 0 calc(var(--u) * 2) calc(var(--u) * .6) rgba(255, 170, 60, .7), inset 0 0 calc(var(--u) * 3) rgba(255, 160, 60, .55);
  transition: opacity .3s ease, box-shadow .3s ease;
}
.door__label {
  position: relative; font-family: var(--f-block); font-size: calc(var(--u) * 3.4); letter-spacing: .02em;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 16px rgba(255, 190, 90, .9), 0 2px 0 #2a1608;
}
.door__play {
  position: relative; width: calc(var(--u) * 6.2); height: calc(var(--u) * 6.2); min-width: 30px; min-height: 30px;
  border-radius: 50%; display: grid; place-items: center;
  border: calc(var(--u) * .5) solid #ff8a1f;
  background: radial-gradient(circle, rgba(60, 20, 0, .7), rgba(10, 4, 0, .8));
  box-shadow: 0 0 calc(var(--u) * 1.6) #ff7a1a, inset 0 0 calc(var(--u) * 1) #ff7a1a;
  animation: playIdle 2.4s ease-in-out infinite;
}
.door__play svg { width: 58%; fill: var(--gold); filter: drop-shadow(0 0 4px #ffb31f); margin-left: 10%; }
@keyframes playIdle { 50% { box-shadow: 0 0 calc(var(--u) * 2.4) #ffb31f, inset 0 0 calc(var(--u) * 1.4) #ff7a1a; } }
.door:hover .door__glow, .door:focus-visible .door__glow {
  opacity: 1;
  box-shadow: 0 0 calc(var(--u) * 4) calc(var(--u) * 1.4) rgba(255, 190, 80, .9), inset 0 0 calc(var(--u) * 4) rgba(255, 200, 90, .85);
}
.door:hover .door__play, .door:focus-visible .door__play { animation: playPulse .7s ease-in-out infinite; }
@keyframes playPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); box-shadow: 0 0 calc(var(--u) * 3.6) #ffd43b, inset 0 0 calc(var(--u) * 1.6) #ffb31f; } }

/* Goofin swims around the lake (position + direction set by main.js) */
.swimmer {
  position: absolute; left: 0; top: 0; z-index: 2;
  width: 9.5%; min-width: 48px; aspect-ratio: 420 / 330;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px;
  transform-origin: 50% 100%; will-change: transform;
  opacity: 0; transition: opacity .7s ease;
}
.swimmer.is-here { opacity: 1; }
.swimmer__dir { position: absolute; inset: 0; transition: transform .35s ease; }
.swimmer.is-left .swimmer__dir { transform: scaleX(-1); }
/* only the bottom edge clips: sink him below it and he's under water */
.swimmer__clip { position: absolute; inset: 0; clip-path: inset(-300% -120% 0 -120%); }

/* Popped-up pose. Hidden (sunk) by default; .is-up pops him out with an overshoot. */
.swimmer__body {
  position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 420 / 704;
  transform-origin: 50% 47%;
  transform: translateY(62%) rotate(0);
  transition: transform .42s cubic-bezier(.5, 0, .75, 0);
}
.swimmer.is-up .swimmer__body { transform: none; transition: transform .6s cubic-bezier(.25, 1.7, .45, 1); }
.swimmer.is-diving .swimmer__body { transform: translateY(66%) rotate(24deg); transition: transform .45s cubic-bezier(.55, 0, .8, .2); }
.swimmer__body img { width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); animation: tread 1.3s ease-in-out infinite; transform-origin: 50% 47%; }
@keyframes tread { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(4%) rotate(3deg); } }

/* Under water: his swimming shape, tinted, blurred and wobbling below the surface.
   main.js drives --dip and --tilt with the stroke rhythm. */
.swimmer__ghost {
  position: absolute; left: -20%; top: 78%; width: 140%; aspect-ratio: 624 / 594; pointer-events: none;
  transform: translateY(var(--dip, 0%)) rotate(calc(var(--tilt, 0deg) + 12deg));
  opacity: 0; transition: opacity .5s ease;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.swimmer__ghost img {
  width: 100%; height: auto; display: block;
  filter: brightness(.18) saturate(.6) sepia(.5) hue-rotate(185deg) blur(1.6px);
  animation: underWobble 1.6s ease-in-out infinite;
}
@keyframes underWobble { 0%, 100% { transform: skewX(0) scaleX(1); } 33% { transform: skewX(5deg) scaleX(1.04); } 66% { transform: skewX(-4deg) scaleX(.97); } }
.swimmer.is-under .swimmer__ghost { opacity: .7; }

.swimmer__line {
  position: absolute; left: -14%; right: -14%; bottom: -7%; height: 16%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(150, 215, 255, .5), rgba(60, 120, 255, .18) 55%, transparent 72%);
  box-shadow: inset 0 2px 0 rgba(200, 240, 255, .55);
  opacity: 0; transition: opacity .3s ease;
}
.swimmer__wake {
  position: absolute; left: -24%; right: -24%; bottom: -12%; height: 26%; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(170, 225, 255, .65);
  opacity: 0;
}
.swimmer.is-up .swimmer__line { opacity: 1; }
.swimmer.is-up .swimmer__wake { animation: wake 1.7s ease-out infinite; }
@keyframes wake { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }

/* splashes, fired by main.js when he pops up or dives */
.swimmer__splash {
  position: absolute; pointer-events: none; opacity: 0;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 60%, #fff 0 9%, transparent 11%),
    radial-gradient(circle at 60% 35%, #e8f8ff 0 8%, transparent 10%),
    radial-gradient(circle at 75% 70%, #fff 0 7%, transparent 9%),
    radial-gradient(circle at 45% 20%, #cdefff 0 6%, transparent 8%),
    radial-gradient(circle, rgba(200, 240, 255, .55), transparent 65%);
}
.swimmer__splash--hand { right: -18%; bottom: -12%; }
.swimmer__splash--kick { left: -18%; bottom: -12%; }

/* tap while up: hop */
.swimmer.is-hopping .swimmer__body img { animation: swimHop .7s cubic-bezier(.3, .7, .4, 1); }
@keyframes swimHop {
  0% { transform: translateY(4%) scale(1.05, .92); }
  40% { transform: translateY(-40%) rotate(-8deg) scale(.95, 1.06); }
  75% { transform: translateY(6%) scale(1.05, .95); }
  100% { transform: none; }
}
.bubble {
  position: absolute; bottom: 118%; left: -10%; width: max-content; max-width: min(46vw, 260px);
  padding: 9px 14px; border-radius: 18px;
  font-family: var(--f-body); font-weight: 700; font-size: max(13px, calc(var(--u) * 2.9)); line-height: 1.15; color: #1a0f3a;
  background: linear-gradient(180deg, #ffffff, #e9f7ff);
  box-shadow: 0 0 0 3px #3dff6e, 0 0 18px rgba(61, 255, 110, .75);
  opacity: 0; transform: translateY(8px) scale(.8); transform-origin: 15% 100%;
  transition: opacity .25s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.bubble::after {
  content: ""; position: absolute; top: 100%; left: 16%;
  border: 9px solid transparent; border-top-color: #e9f7ff; border-bottom: 0;
}
.swimmer.is-right-side .bubble { left: auto; right: -10%; transform-origin: 85% 100%; }
.swimmer.is-right-side .bubble::after { left: auto; right: 16%; }
.bubble.is-shown { opacity: 1; transform: none; }

/* Fireflies + sparkles (injected by main.js) */
.sparkles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.firefly {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #fff9b0; box-shadow: 0 0 6px 2px #ffe95c, 0 0 14px 4px rgba(200, 255, 90, .5);
  animation: fly var(--d) ease-in-out var(--delay) infinite alternate, glowFly calc(var(--d) / 3) ease-in-out infinite alternate;
}
@keyframes fly {
  0% { transform: translate(0, 0); }
  33% { transform: translate(var(--x1), var(--y1)); }
  66% { transform: translate(var(--x2), var(--y2)); }
  100% { transform: translate(var(--x3), var(--y3)); }
}
@keyframes glowFly { from { opacity: .15; } to { opacity: 1; } }
.spark {
  position: absolute; width: 10px; height: 10px;
  background: radial-gradient(circle, #fff 0 18%, transparent 20%),
              linear-gradient(90deg, transparent 45%, #fff 50%, transparent 55%),
              linear-gradient(0deg, transparent 45%, #fff 50%, transparent 55%);
  filter: drop-shadow(0 0 3px #bfe6ff);
  animation: twinkle var(--d) ease-in-out var(--delay) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ---------------------------------------------------------
   4. Slime buttons
   --------------------------------------------------------- */
.actions {
  position: relative; display: flex; justify-content: center; gap: min(4vw, 40px);
  padding: min(3vw, 26px) 12px 0; margin-top: calc(var(--u) * -3);
}
.slime {
  position: relative; width: min(45vw, 330px); aspect-ratio: 1 / .86;
  display: grid; place-items: center; text-decoration: none; border-radius: 40%;
  transition: transform .18s ease;
}
.slime__art { position: absolute; inset: 0; }
.slime__art svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 12px rgba(80, 255, 60, .55)); }
.slime__blob { transform-origin: 50% 50%; animation: wobble 3.4s ease-in-out infinite; }
.slime:nth-child(2) .slime__blob { animation-duration: 3.9s; animation-delay: -1.2s; }
@keyframes wobble {
  0%, 100% { transform: scale(1, 1) rotate(0); }
  30% { transform: scale(1.025, .975) rotate(.6deg); }
  65% { transform: scale(.98, 1.02) rotate(-.5deg); }
}
.slime .splat__drip { animation-name: slimeDrip; }
@keyframes slimeDrip { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.35); } }
.slime__text {
  position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -22%;
  font-family: var(--f-logo); line-height: .9; text-transform: uppercase; text-align: center;
  font-size: min(8vw, 52px); transform: rotate(-4deg);
}
.slime__big, .slime__mid, .slime__small {
  background: var(--gold-chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: .025em #2b4a00; filter: drop-shadow(0 .05em 0 #173000);
}
.slime__mid { font-size: .62em; margin-top: .05em; }
.slime__small { font-size: .5em; margin-top: .05em; }
.slime__text--long { font-size: min(6.6vw, 44px); }
.slime__text--long .slime__big { font-size: .82em; }
.slime .kidz-word { font-size: 1.1em; }
.slime__play {
  position: absolute; left: 50%; bottom: 21%; transform: translateX(-50%);
  width: min(11vw, 64px); height: min(11vw, 64px); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #0a1d6b, #050b33);
  border: 3px solid #4fd2ff; box-shadow: 0 0 14px #29b6ff, inset 0 0 10px #29b6ff;
  animation: playIdleBlue 2s ease-in-out infinite;
}
.slime__play svg { width: 56%; fill: #8fe9ff; margin-left: 10%; filter: drop-shadow(0 0 4px #29b6ff); }
@keyframes playIdleBlue { 50% { box-shadow: 0 0 24px #29e6ff, inset 0 0 14px #29b6ff; } }
.slime:hover { transform: scale(1.04) rotate(-1deg); }
.slime:hover .slime__play { animation-duration: .7s; }
.slime:active, .slime.is-squished { transform: scale(1.1, .86); transition-duration: .08s; }

/* ---------------------------------------------------------
   5. Search + chips
   --------------------------------------------------------- */
.finder { position: relative; width: min(100% - 24px, 880px); margin: min(5vw, 40px) auto 0; }
.search {
  position: relative; display: flex; align-items: center; height: 54px; border-radius: 999px;
  background: rgba(4, 6, 24, .82); border: 2px solid #9ad8ff;
  box-shadow: 0 0 14px rgba(41, 182, 255, .65), inset 0 0 12px rgba(41, 182, 255, .35);
  transition: box-shadow .2s ease;
}
.search:focus-within { box-shadow: 0 0 22px rgba(41, 230, 255, .95), inset 0 0 14px rgba(41, 182, 255, .55); }
.search__icon { width: 24px; height: 24px; margin: 0 6px 0 18px; fill: none; stroke: #dff6ff; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.search input {
  flex: 1; height: 100%; min-width: 0; border: 0; background: none; color: #fff; outline: none;
  font: 600 17px/1 var(--f-body); padding: 0 20px 0 4px;
}
.search input::placeholder { color: rgba(220, 235, 255, .7); }
.search input::-webkit-search-cancel-button { filter: invert(1); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px;
  font: 700 14px/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  background: rgba(4, 6, 24, .8); border: 2px solid var(--c); color: #fff;
  box-shadow: 0 0 10px var(--c), inset 0 0 8px var(--c);
  text-shadow: 0 0 8px var(--c);
  transition: transform .15s ease, box-shadow .2s ease;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 0 20px var(--c), inset 0 0 12px var(--c); }
.chip--orange { --c: #ff8a1f; } .chip--purple { --c: #c04bff; } .chip--green { --c: #3dff6e; } .chip--blue { --c: #29b6ff; }
.toast {
  position: absolute; left: 50%; top: 62px; transform: translate(-50%, -6px); margin: 0;
  padding: 8px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap;
  background: #1b1450; border: 1px solid #c04bff; box-shadow: 0 0 14px rgba(192, 75, 255, .7);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 5;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------
   6. Floating character rings
   --------------------------------------------------------- */
.lake { position: relative; padding: min(9vw, 70px) 0 min(14vw, 120px); }
.lake__title {
  margin: 0 0 min(4vw, 24px); text-align: center; text-transform: uppercase;
  font-family: var(--f-logo); font-weight: 400; font-size: clamp(26px, 6vw, 46px); letter-spacing: .04em;
  color: #fff; text-shadow: 0 0 10px #29e6ff, 0 0 26px #2f8bff, 0 3px 0 #10205a;
}
.rings {
  list-style: none; margin: 0 auto; padding: 0;
  width: min(100% - 12px, 900px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: min(2vw, 26px);
}
.ring { position: relative; display: flex; justify-content: center; --depth: 1; z-index: 3; }
.ring:nth-child(-n+3) { --depth: .78; z-index: 1; }
.ring:nth-child(n+4):nth-child(-n+6) { --depth: .89; z-index: 2; margin-top: max(-4vw, -34px); }
.ring:nth-child(n+7) { margin-top: max(-3vw, -26px); }

.ring__link {
  position: relative; display: block; width: calc(100% * var(--depth)); max-width: 280px; min-width: 48px;
  text-decoration: none; border-radius: 30%;
  -webkit-touch-callout: none;
}
.ring__lift { display: block; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), filter .3s ease; }
.ring__bob { display: block; animation: bob var(--bob) ease-in-out var(--bob-delay) infinite; }
.ring__tilt { position: relative; display: block; aspect-ratio: 200 / 230; animation: tilt var(--tilt) ease-in-out var(--tilt-delay) infinite; transform-origin: 50% 74%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(var(--depth) * -9px)); } }
@keyframes tilt { 0%, 100% { transform: rotate(calc(var(--tilt-amt) * -1)); } 50% { transform: rotate(var(--tilt-amt)); } }

.ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring__char {
  position: absolute; left: 50%; top: -42%; bottom: 25.2%;
  width: calc(var(--cw) * 100%); transform: translateX(-50%);
  overflow: hidden;
}
.ring__char img {
  position: absolute; left: 0; top: 100%; width: 100%; height: auto;
  transform: translateY(calc(var(--show) * -100%));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, .45));
}
.ring__char-move { position: absolute; inset: 0; transform-origin: 50% 100%; }

.ring__pool {
  position: absolute; left: 6%; right: 6%; top: 62%; height: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, var(--glow) 0%, transparent 70%);
  opacity: .45; filter: blur(6px); transition: opacity .3s ease;
}
.ring__reflect {
  position: absolute; left: 0; right: 0; top: 84%; height: 40%; pointer-events: none;
  transform: scaleY(-.55); transform-origin: 50% 0; opacity: .32; filter: blur(2.5px);
}
.ring__reflect svg { width: 100%; height: auto; display: block; animation: reflWobble 2.2s ease-in-out infinite; }
@keyframes reflWobble { 0%, 100% { transform: scaleX(1) skewX(0); } 33% { transform: scaleX(1.04) skewX(3deg); } 66% { transform: scaleX(.97) skewX(-2deg); } }

.ring__name {
  position: relative; display: block; max-width: 104%; margin: -4% auto 5px; text-align: center;
  font-family: var(--f-logo); font-weight: 400; line-height: 1; letter-spacing: .03em;
  font-size: clamp(12px, 2.5vw, 20px); color: #ffd23f;
  text-shadow: 0 0 6px rgba(255, 180, 40, .9), 0 0 14px rgba(255, 140, 20, .55), 0 2px 0 #4a2300;
  transition: transform .25s ease;
}
.ring__link:hover .ring__name, .ring__link:focus-visible .ring__name { transform: translateY(-3px) scale(1.06); }
.ring__label {
  position: relative; display: block; width: max-content; max-width: 100%; margin: 0 auto; padding: 6px 12px 5px;
  font-family: var(--f-body); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05;
  font-size: clamp(10px, 2.3vw, 16px); text-align: center; color: #fff;
  border-radius: 999px; border: 2px solid var(--a);
  background: rgba(3, 4, 20, .78);
  box-shadow: 0 0 10px var(--glow), inset 0 0 8px var(--glow);
  text-shadow: 0 0 8px var(--glow);
  transition: box-shadow .25s ease, transform .25s ease;
}
.ring__tip {
  position: absolute; left: 50%; top: -16%; z-index: 5; width: max-content; max-width: 70vw;
  padding: 7px 12px; border-radius: 12px; font-weight: 600; font-size: 13px; color: #fff;
  background: rgba(10, 8, 40, .95); border: 1px solid var(--b); box-shadow: 0 0 12px var(--glow);
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .25s ease;
}
.ring__tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--b); }

.ring__link:hover .ring__lift, .ring__link:focus-visible .ring__lift {
  transform: translateY(-9%) scale(1.04);
  filter: brightness(1.22) drop-shadow(0 0 10px var(--glow));
}
.ring__link:hover .ring__pool, .ring__link:focus-visible .ring__pool { opacity: .85; }
.ring__link:hover .ring__label, .ring__link:focus-visible .ring__label { box-shadow: 0 0 18px var(--glow), inset 0 0 12px var(--glow); transform: translateY(-3px); }
.ring__link:hover .ring__tip, .ring__link:focus-visible .ring__tip { opacity: 1; transform: translate(-50%, 0); }
.ring__link:focus-visible { outline-offset: 0; }

.ring__link:hover .ring__char-move.m-wave, .ring__link:focus-visible .ring__char-move.m-wave { animation: mWave .9s ease-in-out infinite; }
.ring__link:hover .ring__char-move.m-bounce, .ring__link:focus-visible .ring__char-move.m-bounce { animation: mBounce .6s cubic-bezier(.3, .7, .4, 1) infinite; }
.ring__link:hover .ring__char-move.m-dance, .ring__link:focus-visible .ring__char-move.m-dance { animation: mDance .8s ease-in-out infinite; }
@keyframes mWave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes mBounce { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-12%) scale(.96, 1.05); } 80% { transform: translateY(0) scale(1.05, .95); } }
@keyframes mDance { 0%, 100% { transform: translateX(0) rotate(0); } 25% { transform: translateX(-5%) rotate(-6deg); } 50% { transform: translateY(-6%) rotate(0); } 75% { transform: translateX(5%) rotate(6deg); } }

.ring__link.is-jumping .ring__char-move { animation: mJump .62s cubic-bezier(.25, .8, .35, 1) forwards !important; }
@keyframes mJump {
  0% { transform: translateY(0) scale(1); }
  18% { transform: translateY(6%) scale(1.08, .9); }
  55% { transform: translateY(-38%) scale(.94, 1.08) rotate(-6deg); }
  100% { transform: translateY(-12%) scale(1) rotate(4deg); }
}
.ring__link.is-jumping .ring__lift { transform: translateY(4%) scale(1.02, .96); filter: brightness(1.4) drop-shadow(0 0 16px var(--glow)); }

/* ---------------------------------------------------------
   7. Footer
   --------------------------------------------------------- */
.finale {
  position: relative; overflow: hidden; text-align: center; padding: min(16vw, 130px) 12px min(14vw, 110px);
}
.finale::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 55%, #10164a 0%, #05061a 55%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%);
  mask-image: linear-gradient(180deg, transparent 0, #000 45%);
}
.finale__burst {
  position: absolute; left: 50%; top: 48%; width: 180vmax; height: 180vmax; transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 255, 255, .85) 0%, rgba(120, 200, 255, .55) 4%, rgba(90, 60, 255, .25) 14%, transparent 32%),
    repeating-conic-gradient(from 0deg, rgba(120, 190, 255, .22) 0deg 2.2deg, transparent 2.2deg 9deg),
    repeating-conic-gradient(from 4deg, rgba(255, 120, 230, .14) 0deg 1.4deg, transparent 1.4deg 13deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .7) 18%, transparent 42%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .7) 18%, transparent 42%);
  animation: burstSpin 60s linear infinite;
}
@keyframes burstSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.finale__title {
  position: relative; margin: 0; font-family: var(--f-logo); text-transform: uppercase; line-height: .9;
  font-size: clamp(44px, 13.2vw, 150px); letter-spacing: .01em; white-space: nowrap;
}
.finale__title span { display: inline-block; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: .015em rgba(10, 10, 40, .9); }
.finale__title .go { background-image: var(--chrome); filter: drop-shadow(0 .04em 0 #1a1f4a) drop-shadow(0 0 .1em rgba(200, 220, 255, .9)); }
.finale__title .be { background-image: linear-gradient(180deg, #fff1c2, #ffb21f 40%, #e05a00 55%, #ffcf5c); filter: drop-shadow(0 .04em 0 #4a1a00) drop-shadow(0 0 .12em #ff8a1f); }
.finale__title .change { background-image: linear-gradient(180deg, #e6fbff, #3fd4ff 40%, #0057d6 56%, #7fe1ff); filter: drop-shadow(0 .04em 0 #001a4a) drop-shadow(0 0 .12em #29b6ff); }
.finale__script {
  position: relative; margin: .1em 0 0; font-family: var(--f-script); font-size: clamp(28px, 7.4vw, 72px); line-height: 1.1;
  color: #ffd23f; text-shadow: 0 0 8px #ffb31f, 0 0 22px rgba(255, 160, 30, .85), 0 2px 0 #6a3a00;
  transform: rotate(-3deg);
  animation: scriptGlow 3s ease-in-out infinite;
}
@keyframes scriptGlow { 50% { text-shadow: 0 0 12px #ffd23f, 0 0 34px rgba(255, 190, 40, 1), 0 2px 0 #6a3a00; } }
.finale__small { position: relative; margin: 2.4em 0 0; font-size: 14px; color: rgba(220, 230, 255, .65); }
.finale__home { color: #9fd4ff; text-decoration: underline; text-underline-offset: 3px; }
.finale__home:hover, .finale__home:focus-visible { color: #fff; }

/* ---------------------------------------------------------
   Phones
   --------------------------------------------------------- */
@media (max-width: 560px) {
  .mute { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); }
  .logo:not(.logo--entrance) { font-size: calc(var(--u) * 9.4); }
  .ring__tip { display: none; }
  .ring__label { padding: 5px 8px 4px; border-width: 1.5px; }
  .chip { padding: 0 14px; font-size: 12.5px; }
  .actions { gap: 2vw; }
}

@media (max-width: 700px) {
  .slime__text--long { font-size: 5.3vw; }
  .slime__play { bottom: 12%; width: 10vw; height: 10vw; }
}

/* Pause decorative CSS loops while a section is off screen */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------------------------------------------------------
   Reduced motion: calm everything, keep it usable
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .ring__bob, .ring__tilt, .slime__blob, .finale__burst, .globe__land, .swimmer__body, .swimmer__wake, .swimmer__ghost img { animation: none !important; }
  .entrance.is-zooming { transform: none; }
  .is-entering .world { transform: none; }
}

/* No-WebGL fallback: CSS water behind the lower sections */
.no-gl .world {
  background:
    radial-gradient(ellipse 60% 20% at 50% 70%, rgba(41, 120, 255, .18), transparent 70%),
    linear-gradient(180deg, #05061a 0, #040a2a 30%, #071447 70%, #05061a 100%);
}

/* Paint-area padding for gradient lettering whose spacing is set above:
   keep the original layout spacing exactly (see the note near the logo styles). */
.lifetime { padding: .14em .06em .1em; margin: calc(var(--u) * 1.3 - .14em) 0 -.1em; }
.slime__mid, .slime__small { margin-top: -.09em; }
