/* =========================================================
   STEWARD ($STEWARD)
   half suburban-sitcom, half under-the-sea. all attitude.
   ========================================================= */

:root {
  --ink: #1b1b1b;
  --cream: #fff4d6;
  --yellow: #ffd23f;
  --red: #e63946;
  --sky: #8ed1f7;
  --lawn: #6dbe45;
  --squid: #93c1a4;
  --sea: #2baed6;
  --deep: #0e5e8a;
  --pink: #ff8dc7;
  --sand: #f4d79c;
  --purple: #7b5ba6;
  --foam: #e9fbff;
  --lime: #c9f07d;

  --font-title: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --font-body: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-hand: "Permanent Marker", "Comic Sans MS", cursive;

  --cur: url("../assets/cursor.svg") 5 5, auto;
  --cur-play: url("../assets/cursor-play.svg") 5 5, pointer;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { cursor: var(--cur); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
  overflow-x: hidden;
}
a, button, .key, .pin, [role="button"] { cursor: var(--cur-play); }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 4px dashed var(--red); outline-offset: 4px; }

/* ---------- shared bits ---------- */
.marker { font-family: var(--font-hand); }

.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: .03em;
  line-height: 1;
  padding: 14px 22px 10px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--main { background: var(--yellow); }
.btn--fg { background: var(--yellow); font-size: 22px; }
.btn--sb { background: var(--pink); border-radius: 999px; font-size: 22px; }

.sec { position: relative; padding: clamp(90px, 11vw, 150px) 16px; }
.sec-head { text-align: center; max-width: 920px; margin: 0 auto clamp(36px, 5vw, 60px); }
.sec-head h2, .sign h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(42px, 7.4vw, 96px);
  line-height: .95;
  margin: 0 0 12px;
  color: #fff;
  -webkit-text-stroke: .07em var(--ink);
  paint-order: stroke fill;
  text-shadow: .05em .05em 0 var(--ink);
}
.sec-head h2 em { font-style: normal; color: var(--yellow); display: inline-block; transform: rotate(-3deg); }
.sec-head .marker { font-size: clamp(17px, 2vw, 22px); margin: 0; }

.js [data-reveal] { opacity: 0; transform: translateY(46px) scale(.95) rotate(-1deg); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .8s cubic-bezier(.2, 1.5, .35, 1);
}

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.loader-half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  transition: transform .9s cubic-bezier(.7, 0, .2, 1);
}
.loader-half--l {
  left: 0; background: var(--yellow);
  background-image: radial-gradient(rgba(0,0,0,.09) 3px, transparent 3.5px);
  background-size: 22px 22px;
  border-right: 6px solid var(--ink);
}
.loader-half--r {
  right: 0; background: var(--sea);
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25) 10px, transparent 11px), radial-gradient(circle at 70% 70%, rgba(255,255,255,.18) 18px, transparent 19px);
  background-size: 90px 90px, 130px 130px;
}
.loader-core { position: relative; text-align: center; padding: 16px; transition: opacity .3s, transform .4s; }
.loader-logo {
  width: 130px; height: 130px; border-radius: 50%;
  border: 6px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  animation: wobble 1s ease-in-out infinite;
}
.loader-text {
  font-family: var(--font-title); font-size: clamp(22px, 4vw, 32px); color: #fff; margin: 18px 0 14px;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
}
.loader-bar { width: min(300px, 80vw); height: 26px; margin: 0 auto; background: #fff; border: 4px solid var(--ink); border-radius: 99px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--red) 0 12px, #ff6b6b 12px 24px); transition: width .2s; }
.loader-sub { font-family: var(--font-hand); color: var(--ink); background: #fff; display: inline-block; padding: 4px 12px; border: 3px solid var(--ink); border-radius: 8px; margin-top: 14px; transform: rotate(-2deg); }
.loader.done .loader-half--l { transform: translateX(-102%); }
.loader.done .loader-half--r { transform: translateX(102%); }
.loader.done .loader-core { opacity: 0; transform: scale(.6) rotate(-10deg); }
.loader.gone { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 100; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 4px solid var(--ink); border-radius: 999px;
  padding: 6px 8px; box-shadow: 5px 5px 0 var(--ink);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.nav-brand img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); transition: transform .3s; }
.nav-brand:hover img { transform: rotate(-20deg) scale(1.1); }
.nav-brand span { font-family: var(--font-title); font-size: 22px; transform: translateY(2px); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: background .2s, transform .2s; }
.nav-links a:nth-child(odd):hover { background: var(--yellow); transform: rotate(-3deg); }
.nav-links a:nth-child(even):hover { background: #a9ecf7; transform: rotate(3deg); }
.nav-sound {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #a9ecf7;
  display: grid; place-items: center; padding: 0;
}
.nav-sound .mute { display: none; }
.nav-sound[aria-pressed="false"] { background: #ddd; }
.nav-sound[aria-pressed="false"] .wave { display: none; }
.nav-sound[aria-pressed="false"] .mute { display: inline; }
.nav-buy {
  font-family: var(--font-title); font-size: 18px; color: #fff; text-decoration: none;
  background: var(--red); border: 3px solid var(--ink); border-radius: 999px; padding: 10px 20px 7px;
  transition: transform .15s;
}
.nav-buy:hover { transform: rotate(-4deg) scale(1.06); }

/* =========================================================
   HERO — two worlds, one seam
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.world { min-height: 100vh; min-height: 100svh; }
.world--quahog { position: relative; }
.world--bikini {
  position: absolute; inset: 0; z-index: 2;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero-slot { position: relative; z-index: 3; padding: 112px 16px 80px; display: flex; justify-content: center; }
.hero-content { width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; text-align: center; }

.kicker {
  margin: 0 0 6px; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border: 3px solid var(--ink); border-radius: 8px;
}
.title {
  margin: 0; font-family: var(--font-title); font-weight: 400;
  font-size: clamp(60px, 15.5vw, 214px); line-height: .92; letter-spacing: .01em;
  white-space: nowrap; position: relative; z-index: 1;
}
.title span {
  display: inline-block;
  -webkit-text-stroke: .075em var(--ink);
  paint-order: stroke fill;
}

.char { position: relative; z-index: 4; margin-top: clamp(-34px, -2.4vw, -10px); --f: clamp(210px, 25vw, 300px); }
.char-frame {
  position: relative; display: block; width: var(--f); height: var(--f);
  padding: 0; border: 0; background: none;
  animation: bob 3.2s ease-in-out infinite;
}
.char-frame::before { content: ""; position: absolute; inset: 0; border: 6px solid var(--ink); }
.char-frame img {
  position: absolute; left: 13%; top: 13%; width: 74%; height: 74%;
  object-fit: cover; border: 6px solid var(--ink); background: #000;
  transition: transform .2s;
}
.char-frame:hover img { transform: scale(1.04) rotate(-2deg); }
.char-frame.poked { animation: poke .5s cubic-bezier(.3, 1.8, .4, 1); }
.frame-deco i { position: absolute; display: block; }

.bubble {
  position: absolute; left: 76%; top: -4%; z-index: 5;
  width: max-content; max-width: 230px;
  font-weight: 700; font-size: 17px; line-height: 1.25; text-align: left;
  padding: 12px 16px; border: 4px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform-origin: 0 100%;
}
.bubble::after {
  content: ""; position: absolute; left: -18px; bottom: 12px;
  width: 24px; height: 18px; background: inherit;
  border-left: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  transform: skewY(-28deg);
}
.bubble.pop { animation: pop .45s cubic-bezier(.3, 1.8, .4, 1); }

.tagline {
  margin: 22px 0 22px; font-weight: 600; font-size: clamp(17px, 2vw, 22px); line-height: 1.3;
  padding: 10px 20px; border: 4px solid var(--ink);
}
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.ca {
  margin-top: 22px; display: inline-flex; align-items: stretch; max-width: 100%;
  padding: 0; border: 4px solid var(--ink); border-radius: 12px; overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink); background: #fff; font-weight: 600; font-size: 15px;
  transition: transform .15s;
}
.ca:hover { transform: rotate(-1deg) scale(1.02); }
.ca-label { font-family: var(--font-title); font-size: 18px; padding: 10px 12px 6px; background: var(--ink); color: var(--yellow); }
.ca-value { padding: 9px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ca-copy { padding: 9px 12px; border-left: 4px solid var(--ink); text-transform: uppercase; font-weight: 700; font-size: 13px; display: grid; place-items: center; background: var(--yellow); }

/* ----- world 1 skin: sitcom suburbia ----- */
.world--quahog .kicker { background: var(--cream); box-shadow: 4px 4px 0 var(--ink); }
.world--quahog .title span { color: var(--yellow); text-shadow: .045em .045em 0 var(--red), .09em .09em 0 var(--ink); }
.world--quahog .title span:nth-child(odd) { transform: rotate(-3deg); }
.world--quahog .title span:nth-child(even) { transform: rotate(2deg) translateY(.03em); }
.world--quahog .char-frame::before {
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 30%), repeating-linear-gradient(95deg, #a0662f 0 14px, #94592a 14px 22px);
  box-shadow: 9px 9px 0 var(--ink);
}
.world--quahog .char-frame img { border-radius: 26px / 30px; }
.world--quahog .frame-deco i:nth-child(1),
.world--quahog .frame-deco i:nth-child(2) {
  width: 6px; height: 72px; background: var(--ink); left: 50%; top: -66px; transform-origin: 50% 100%; border-radius: 3px;
}
.world--quahog .frame-deco i:nth-child(1) { transform: rotate(-32deg); }
.world--quahog .frame-deco i:nth-child(2) { transform: rotate(28deg); }
.world--quahog .frame-deco i:nth-child(1)::after,
.world--quahog .frame-deco i:nth-child(2)::after { content: ""; position: absolute; top: -9px; left: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid var(--ink); }
.world--quahog .frame-deco i:nth-child(3),
.world--quahog .frame-deco i:nth-child(4) { width: 20px; height: 20px; border-radius: 50%; background: #e8e8e8; border: 4px solid var(--ink); bottom: 4.5%; }
.world--quahog .frame-deco i:nth-child(3) { right: 26%; }
.world--quahog .frame-deco i:nth-child(4) { right: 13%; background: var(--yellow); }
.world--quahog .frame-deco i:nth-child(n+5) { display: none; }
.world--quahog .bubble { background: #fff; border-radius: 6px; }
.world--quahog .tagline { background: var(--cream); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); }
.world--quahog .ca-copy { background: var(--yellow); }

/* ----- world 2 skin: under the sea ----- */
.world--bikini .kicker { background: var(--deep); color: #fff; border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); }
.world--bikini .title span {
  color: var(--squid);
  text-shadow: .045em .045em 0 var(--purple), .09em .09em 0 var(--ink);
  animation: wobbleLetter 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.37s);
}
.world--bikini .char-frame::before {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7a3, #d8a840 45%, #a8781f 80%);
  box-shadow: 9px 9px 0 var(--ink), inset 0 0 0 10px rgba(0,0,0,.08);
}
.world--bikini .char-frame img { border-radius: 50%; }
.world--bikini .frame-deco i {
  left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%;
  background: #f6dc8e; border: 3px solid var(--ink);
  transform: rotate(calc(var(--k) * 45deg)) translateY(calc(var(--f) * -.435));
}
.frame-deco i:nth-child(1) { --k: 0; } .frame-deco i:nth-child(2) { --k: 1; }
.frame-deco i:nth-child(3) { --k: 2; } .frame-deco i:nth-child(4) { --k: 3; }
.frame-deco i:nth-child(5) { --k: 4; } .frame-deco i:nth-child(6) { --k: 5; }
.frame-deco i:nth-child(7) { --k: 6; } .frame-deco i:nth-child(8) { --k: 7; }
.world--bikini .bubble {
  background: var(--foam); border-radius: 26px;
  background-image: radial-gradient(circle at 18% 22%, #fff 6px, transparent 7px);
}
.world--bikini .tagline { background: rgba(14, 94, 138, .92); color: #fff; border-radius: 999px; box-shadow: 5px 5px 0 var(--ink); }
.world--bikini .btn { background: #a9ecf7; border-radius: 999px; }
.world--bikini .btn--main { background: var(--pink); }
.world--bikini .ca { border-radius: 999px; background: var(--foam); }
.world--bikini .ca-label { background: var(--deep); color: #fff; }
.world--bikini .ca-copy { background: var(--pink); }

/* ----- towing things ----- */
.tow {
  position: absolute; z-index: 1; top: 15%; left: 0;
  display: flex; align-items: center;
  animation: fly 30s linear infinite;
  will-change: transform; pointer-events: none;
}
.tow-vehicle { width: 130px; height: 70px; flex: none; animation: bob 1.4s ease-in-out infinite; }
.tow--fish .tow-vehicle { width: 110px; }
.tow-rope { width: 70px; height: 3px; background: var(--ink); flex: none; }
.tow-banner {
  flex: none; font-family: var(--font-title); font-size: 22px; letter-spacing: .04em; white-space: nowrap;
  padding: 10px 18px 6px; border: 4px solid var(--ink); background: #fff;
  animation: flap .9s ease-in-out infinite alternate;
}
.tow--fish .tow-banner { background: #fdb7e3; border-radius: 40px 10px 40px 10px; }
.prop { animation: spinFast .15s linear infinite; transform-box: fill-box; transform-origin: center; }

/* ----- scene motion ----- */
.q-rays { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.q-cloud { animation: drift 16s ease-in-out infinite alternate; }
.q-cloud--2 { animation-duration: 22s; animation-direction: alternate-reverse; }
.q-cloud--3 { animation-duration: 12s; }
.q-tree { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite; }
.b-rays { opacity: .15; animation: rays 6s ease-in-out infinite alternate; }
.fl { animation: floaty 7s ease-in-out infinite alternate; }
.fl--b { animation-duration: 9s; animation-delay: -3s; }
.fl--c { animation-duration: 11s; animation-delay: -6s; }
.fl use { transform-box: fill-box; transform-origin: center; animation: spin 50s linear infinite; }
.fl--b use { animation-direction: reverse; }
.jelly { animation: floaty 4s ease-in-out infinite alternate; }
.kelp { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4s ease-in-out infinite; }
.kelp--2 { animation-duration: 3.2s; animation-delay: -1s; }
.bub { animation: rise var(--d) linear infinite; animation-delay: var(--dl); opacity: 0; }

/* ----- the seam ----- */
.seam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; overflow: visible; }
.seam path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.seam-out { stroke: var(--ink); stroke-width: 11; }
.seam-in { stroke: #fff; stroke-width: 3.5; stroke-dasharray: 14 12; }
.seam-knob {
  position: absolute; z-index: 7; top: 50%; left: 50%;
  width: 58px; height: 58px; margin: -29px 0 0 -29px; padding: 0;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink); touch-action: none;
  transition: transform .15s;
}
.seam-knob:hover { transform: scale(1.12) rotate(-8deg); }
.world-tag {
  position: absolute; z-index: 7; bottom: 18px; margin: 0;
  font-family: var(--font-title); font-size: 15px; letter-spacing: .1em;
  padding: 7px 12px 4px; border: 3px solid var(--ink); pointer-events: none;
}
.world-tag--l { left: 18px; background: var(--yellow); transform: rotate(-3deg); }
.world-tag--r { right: 18px; background: #a9ecf7; transform: rotate(3deg); border-radius: 99px; }

/* =========================================================
   TAPES
   ========================================================= */
.tapes {
  position: relative; height: 170px; overflow: hidden;
  background: linear-gradient(90deg, var(--lawn) 0 50%, #f4d79c 50% 100%);
  border-top: 6px solid var(--ink);
}
.tape {
  position: absolute; left: -10%; width: 120%; overflow: hidden;
  border-top: 5px solid var(--ink); border-bottom: 5px solid var(--ink);
  box-shadow: 0 8px 0 rgba(0,0,0,.25);
}
.tape--fg { top: 28px; background: var(--yellow); transform: rotate(-3deg); z-index: 2; }
.tape--sb { top: 88px; background: var(--deep); color: #fff; transform: rotate(2.2deg); }
.tape-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.tape--sb .tape-track { animation-direction: reverse; animation-duration: 44s; }
.tape-track span {
  font-family: var(--font-title); font-size: 30px; letter-spacing: .04em; white-space: nowrap;
  padding: 12px 0 8px;
}
.tape-track span::after { content: "✶"; display: inline-block; margin: 0 26px; color: var(--red); }
.tape--sb .tape-track span::after { content: "◍"; color: var(--pink); }

/* =========================================================
   LAB
   ========================================================= */
.sec--lab {
  background-color: #1f4e9c;
  background-image:
    linear-gradient(rgba(255,255,255,.2) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.2) 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  color: #fff;
  border-top: 6px solid var(--ink);
  overflow: hidden;
}
.sec--lab .marker { color: var(--yellow); }
.stamp {
  display: inline-block; font-family: var(--font-title); font-size: 24px; letter-spacing: .12em;
  color: #ff5a5f; border: 5px solid #ff5a5f; padding: 8px 16px 4px; border-radius: 8px;
  transform: rotate(-8deg); margin-bottom: 14px; opacity: .92;
  animation: stampIn 2.4s ease-in-out infinite;
}
.blueprint { max-width: 1180px; margin: 0 auto; display: grid; gap: 34px; }
.paper {
  position: relative; margin: 0; background: #fff; padding: 16px 16px 46px;
  border: 5px solid var(--ink); box-shadow: 12px 12px 0 rgba(0,0,0,.35);
  transform: rotate(-1deg);
}
.paper-img { position: relative; }
.paper-img img { display: block; width: 100%; height: auto; }
.sec--lab .paper figcaption { position: absolute; right: 20px; bottom: 10px; color: var(--red); font-size: 18px; transform: rotate(-2deg); }
.tape-bit { position: absolute; z-index: 2; width: 120px; height: 34px; background: rgba(255, 236, 150, .85); border: 2px solid rgba(0,0,0,.15); }
.tape-bit--1 { top: -16px; left: 8%; transform: rotate(-6deg); }
.tape-bit--2 { top: -14px; right: 9%; transform: rotate(5deg); }
.pin {
  position: absolute; left: var(--x); top: var(--y);
  width: 36px; height: 36px; margin: -18px 0 0 -18px; padding: 0;
  border-radius: 50%; border: 3px solid var(--ink); background: var(--red); color: #fff;
  font-family: var(--font-title); font-size: 19px; line-height: 1; padding-top: 4px;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .2s cubic-bezier(.3, 1.8, .4, 1);
}
.pin::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--red);
  animation: ping 1.8s ease-out infinite; pointer-events: none;
}
.pin:hover, .pin.hl { transform: scale(1.3) rotate(-10deg); background: var(--yellow); color: var(--ink); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.notes li {
  position: relative; background: #fff59d; color: var(--ink);
  padding: 16px 18px 16px 62px; font-weight: 600; font-size: 17px; line-height: 1.3;
  border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: transform .25s cubic-bezier(.3, 1.8, .4, 1), background .2s;
}
.notes li:nth-child(odd) { transform: rotate(-1.2deg); }
.notes li:nth-child(even) { transform: rotate(1.1deg); background: #ffd6ec; }
.notes li b {
  position: absolute; left: 14px; top: 50%; margin-top: -18px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; border: 3px solid var(--ink);
  font-family: var(--font-title); font-weight: 400; font-size: 19px; display: grid; place-items: center; padding-top: 3px;
}
.notes li.hl { transform: scale(1.05) rotate(0); background: var(--yellow); z-index: 2; }

/* ----- fusion machine ----- */
.machine {
  position: relative; max-width: 1180px; margin: 90px auto 0;
  padding: 54px clamp(14px, 3vw, 34px) 34px;
  background: #b8c4cc;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0 2px, transparent 2px 6px);
  border: 6px solid var(--ink); border-radius: 28px; box-shadow: 12px 12px 0 var(--ink);
  color: var(--ink);
}
.machine::before, .machine::after {
  content: ""; position: absolute; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: #8a979f; border: 3px solid var(--ink);
}
.machine::before { left: 16px; } .machine::after { right: 16px; }
.machine-plate {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  font-family: var(--font-title); font-size: clamp(20px, 3vw, 30px); white-space: nowrap;
  background: var(--red); color: #fff; border: 5px solid var(--ink); border-radius: 12px; padding: 10px 22px 5px;
  box-shadow: 5px 5px 0 var(--ink);
}
.machine-plate b { color: var(--yellow); font-weight: 400; }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.tank {
  position: relative; flex: none; width: clamp(120px, 13vw, 160px); height: 220px;
  border: 5px solid var(--ink); border-radius: 80px 80px 18px 18px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0 12%, rgba(255,255,255,.15) 12% 22%, rgba(255,255,255,.3) 22%);
}
.liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: #b3ff6b; border-top: 4px solid var(--ink);
  transition: height 2.2s ease-in-out;
}
.tank--b .liquid { background: #7fe3f5; }
.tank--out .liquid { background: var(--yellow); height: 18%; }
.liquid i { position: absolute; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 3px solid rgba(27,27,27,.5); animation: tankBub 2.4s ease-in infinite; }
.liquid i:nth-child(1) { left: 22%; }
.liquid i:nth-child(2) { left: 52%; animation-delay: -.8s; width: 8px; height: 8px; }
.liquid i:nth-child(3) { left: 72%; animation-delay: -1.6s; }
.tank-item { position: absolute; left: 50%; top: 42%; width: 78%; transform: translate(-50%, -50%) rotate(-12deg); animation: floatItem 3s ease-in-out infinite; transition: opacity .6s, transform .6s; }
.tank-item--clar { width: 92%; height: auto; }
.tank-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: var(--ink); color: #fff; text-align: center;
  font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 7px 4px;
}
.qmark {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-family: var(--font-title); font-size: 92px; color: #fff; -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill;
  animation: wobble 1.6s ease-in-out infinite; transition: opacity .3s;
}
.out-img {
  position: absolute; left: 50%; top: 44%; width: 76%; height: auto; max-height: 74%; object-fit: contain;
  filter: drop-shadow(3px 3px 0 rgba(27,27,27,.55));
  transform: translate(-50%, -50%) scale(.2); opacity: 0;
  transition: transform .7s cubic-bezier(.3, 1.8, .4, 1), opacity .3s;
}
.pipe {
  position: relative; flex: 1; min-width: 16px; height: 24px;
  background: #8a979f; border-top: 5px solid var(--ink); border-bottom: 5px solid var(--ink);
}
.pipe span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); border: 5px solid var(--ink); font-family: var(--font-title); font-size: 34px; padding-top: 6px;
}
.machine.running .pipe {
  background: repeating-linear-gradient(90deg, #7fe3f5 0 18px, #b3ff6b 18px 36px);
  background-size: 36px 100%; animation: flow .4s linear infinite;
}
.core {
  position: relative; flex: none; width: clamp(190px, 20vw, 230px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: var(--yellow); border: 5px solid var(--ink); border-radius: 22px; padding: 16px 14px 18px;
  box-shadow: 6px 6px 0 var(--ink);
}
.lights { display: flex; gap: 8px; }
.lights i { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); background: #555; }
.machine.running .lights i { animation: blink .3s steps(2) infinite; }
.lights i:nth-child(1) { --on: #ff4d4d; } .lights i:nth-child(2) { --on: #ffd23f; animation-delay: .1s; }
.lights i:nth-child(3) { --on: #6dff7a; animation-delay: .2s; } .lights i:nth-child(4) { --on: #4dd2ff; animation-delay: .05s; }
.lights i:nth-child(5) { --on: #ff8dc7; animation-delay: .15s; }
.dial { width: 120px; height: auto; display: block; }
.needle { transform-origin: 50px 55px; transform: rotate(-62deg); transition: transform .5s; }
.machine.running .needle { animation: needle .35s ease-in-out infinite alternate; }
.machine.done .needle { transform: rotate(64deg); }
.screen {
  margin: 0; width: 100%; min-height: 52px; display: grid; place-items: center; text-align: center;
  background: #0f2a12; color: #6dff7a; border: 4px solid var(--ink); border-radius: 10px; padding: 6px 8px;
  font: 700 13px/1.25 ui-monospace, "Cascadia Mono", Consolas, monospace; text-transform: uppercase; letter-spacing: .04em;
  text-shadow: 0 0 6px rgba(109,255,122,.7);
}
.lever { position: relative; width: 74px; height: 96px; padding: 0; border: 0; background: none; }
.lever-base { position: absolute; left: 50%; bottom: 0; width: 70px; height: 24px; margin-left: -35px; background: #6b6b6b; border: 4px solid var(--ink); border-radius: 10px; }
.lever-stick {
  position: absolute; left: 50%; bottom: 16px; width: 12px; height: 74px; margin-left: -6px;
  background: #cfcfcf; border: 3px solid var(--ink); border-radius: 6px;
  transform-origin: 50% 100%; transform: rotate(-28deg);
  transition: transform .45s cubic-bezier(.3, 1.8, .4, 1);
}
.lever-ball { position: absolute; left: 50%; top: -22px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: var(--red); border: 4px solid var(--ink); }
.lever:hover .lever-stick { transform: rotate(-20deg); }
.machine.running .lever-stick, .machine.done .lever-stick { transform: rotate(30deg); }
.pull-me { position: absolute; right: -36px; bottom: 34px; color: var(--red); font-size: 18px; transform: rotate(-12deg); animation: nudge 1s ease-in-out infinite; pointer-events: none; }
.machine.running .pull-me, .machine.done .pull-me { opacity: 0; }
.machine.running .m-row { animation: shake .12s linear infinite; }
.machine.running .tank--a .liquid, .machine.running .tank--b .liquid { height: 6%; }
.machine.running .tank--a .tank-item, .machine.running .tank--b .tank-item { opacity: 0; transform: translate(-50%, 40%) rotate(200deg) scale(.3); }
.machine.done .tank--a .liquid, .machine.done .tank--b .liquid { height: 6%; }
.machine.done .tank--a .tank-item, .machine.done .tank--b .tank-item { opacity: 0; }
.machine.done .tank--out .liquid { height: 70%; }
.machine.done .qmark { opacity: 0; }
.machine.done .out-img { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: none; }

/* =========================================================
   CUTAWAYS (living room)
   ========================================================= */
.sec--living {
  background-color: #f1d49a;
  background-image:
    radial-gradient(circle at 25px 25px, #d9a95a 4px, transparent 5px),
    linear-gradient(45deg, transparent 46%, rgba(180,120,50,.18) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(180,120,50,.18) 46% 54%, transparent 54%);
  background-size: 50px 50px;
  padding-bottom: 210px;
  overflow: hidden;
}
.sec--living::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: repeating-linear-gradient(90deg, #7a4b2a 0 150px, #6c4123 150px 156px);
  border-top: 10px solid var(--ink);
}
.sec--living .sec-head h2 em { color: var(--red); }
.sec--living .sec-head .marker { color: #6c4123; }
.divider { position: absolute; left: 0; top: -1px; width: 100%; height: 40px; z-index: 3; }
.divider--zig path { fill: #1f4e9c; stroke: var(--ink); stroke-width: 5; vector-effect: non-scaling-stroke; }
.divider--wave { height: 60px; z-index: 7; }
.divider--wave path { fill: #7a4b2a; stroke: var(--ink); stroke-width: 6; vector-effect: non-scaling-stroke; }

.tv-wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 70px; }
.tv { position: relative; width: min(780px, 100%); padding-top: 96px; }
.tv::before {
  content: ""; position: absolute; left: 50%; top: 70px; width: 90px; height: 40px; margin-left: -45px;
  background: #555; border: 5px solid var(--ink); border-radius: 50px 50px 0 0; z-index: 1;
}
.tv-ant { position: absolute; left: 50%; top: -10px; width: 7px; height: 110px; margin-left: -3px; background: var(--ink); border-radius: 4px; transform-origin: 50% 100%; z-index: 0; }
.tv-ant::after { content: ""; position: absolute; top: -10px; left: -6px; width: 19px; height: 19px; border-radius: 50%; background: var(--red); border: 3px solid var(--ink); }
.tv-ant--l { transform: rotate(-34deg); animation: antL 3s ease-in-out infinite; }
.tv-ant--r { transform: rotate(30deg); animation: antR 3.4s ease-in-out infinite; }
.tv-body {
  position: relative; z-index: 2; display: flex; gap: 20px; padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.15), transparent 30%), repeating-linear-gradient(92deg, #9b6331 0 18px, #8c5728 18px 26px);
  border: 6px solid var(--ink); border-radius: 34px; box-shadow: 14px 14px 0 var(--ink);
}
.tv-screen {
  position: relative; flex: 1; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #4b8fe0, #1c3f78 75%);
  border: 6px solid var(--ink); border-radius: 46px / 38px;
  box-shadow: inset 0 0 70px rgba(0,0,0,.6);
}
.gag { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 8% 9%; color: #fff; }
.gag-kicker { font-family: var(--font-title); font-size: 16px; letter-spacing: .1em; color: var(--yellow); margin-bottom: 12px; padding: 4px 10px 1px; border: 3px solid var(--yellow); border-radius: 6px; }
.gag-text { margin: 0; font-weight: 700; font-size: clamp(18px, 2.7vw, 30px); line-height: 1.22; text-shadow: 3px 3px 0 var(--ink); }
.gag.swap { animation: gagIn .5s cubic-bezier(.3, 1.6, .4, 1); }
.static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; transition: opacity .1s; }
.static.on { opacity: 1; }
.scanlines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); animation: flicker 4s steps(1) infinite; }
.tv-panel {
  flex: none; width: 116px; display: flex; flex-direction: column; align-items: center; gap: 18px;
  background: #6e4522; border: 5px solid var(--ink); border-radius: 18px; padding: 18px 10px;
}
.knob {
  position: relative; width: 66px; height: 66px; padding: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #b9b9b9 60%, #8d8d8d);
  border: 5px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  transform: rotate(var(--rot, 0deg)); transition: transform .3s cubic-bezier(.3, 1.8, .4, 1);
}
.knob i { position: absolute; left: 50%; top: 5px; width: 6px; height: 20px; margin-left: -3px; background: var(--red); border-radius: 3px; border: 2px solid var(--ink); }
.knob--sm { width: 46px; height: 46px; }
.knob--sm i { height: 13px; top: 3px; }
.tv-ch { font-family: var(--font-title); font-size: 22px; color: var(--yellow); background: var(--ink); padding: 6px 12px 2px; border-radius: 6px; min-width: 60px; text-align: center; }
.tv-grill { width: 72px; height: 96px; border-radius: 10px; background: repeating-linear-gradient(0deg, var(--ink) 0 5px, transparent 5px 12px); }
.tv-leg { position: absolute; bottom: -54px; width: 16px; height: 60px; background: var(--ink); border-radius: 0 0 8px 8px; }
.tv-leg--l { left: 16%; transform: skewX(14deg); }
.tv-leg--r { right: 16%; transform: skewX(-14deg); }
.couch {
  position: absolute; z-index: 3; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: min(1040px, 96%); height: 150px;
  background:
    linear-gradient(90deg, transparent calc(33.3% - 3px), var(--ink) calc(33.3% - 3px) calc(33.3% + 3px), transparent calc(33.3% + 3px) calc(66.6% - 3px), var(--ink) calc(66.6% - 3px) calc(66.6% + 3px), transparent calc(66.6% + 3px)),
    linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%),
    #5f9a4c;
  border: 7px solid var(--ink); border-radius: 70px 70px 0 0;
}
.couch::before, .couch::after {
  content: ""; position: absolute; bottom: -7px; width: 120px; height: 120px; background: #4e8540;
  border: 7px solid var(--ink); border-radius: 60px 60px 0 0;
}
.couch::before { left: -60px; } .couch::after { right: -60px; }

/* =========================================================
   RECITAL (under-the-sea theater)
   ========================================================= */
.sec--stage {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(127,227,245,.35), transparent 60%),
    linear-gradient(180deg, #0f6e9e 0%, #0a4a6e 60%, #062f47 100%);
  color: #fff; overflow: hidden;
  padding-left: clamp(56px, 13vw, 190px); padding-right: clamp(56px, 13vw, 190px);
  padding-top: 170px;
}
.curtain {
  position: absolute; top: 0; bottom: 0; width: clamp(44px, 11vw, 170px); z-index: 4;
  background: repeating-linear-gradient(90deg, #c4142f 0 20px, #8f0b22 20px 30px, #c4142f 30px 42px);
  border: 6px solid var(--ink); border-top: 0;
  animation: curtain 6s ease-in-out infinite alternate;
}
.curtain--l { left: 0; border-left: 0; border-radius: 0 0 60% 0; transform-origin: 0 0; }
.curtain--r { right: 0; border-right: 0; border-radius: 0 0 0 60%; transform-origin: 100% 0; animation-delay: -3s; }
.valance {
  position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 5; padding-top: 0;
  background: #c4142f; border-bottom: 6px solid var(--ink);
}
.valance::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34px;
  background: radial-gradient(circle at 50% 0, #c4142f 26px, var(--ink) 26px 31px, transparent 32px) 0 0 / 60px 34px repeat-x;
}
.sign {
  position: relative; z-index: 6; width: fit-content; max-width: 100%; margin: 0 auto; text-align: center;
  background: var(--yellow); color: var(--ink); border: 6px solid var(--ink); border-radius: 22px;
  padding: 26px clamp(20px, 4vw, 48px); box-shadow: 10px 10px 0 var(--ink);
}
.js .sign[data-reveal].in { transform: rotate(-1.5deg); }
.sign h2 { color: var(--red); margin: 6px 0; font-size: clamp(36px, 6.4vw, 80px); }
.sign small { display: block; font-weight: 700; font-size: clamp(12px, 1.4vw, 15px); letter-spacing: .12em; }
.bulbs { position: absolute; inset: 7px; border: 7px dotted #fff; border-radius: 14px; animation: bulbs .6s steps(1) infinite; pointer-events: none; }
.stage { position: relative; z-index: 3; text-align: center; margin-top: 60px; padding: 70px 0 10px; }
.spot {
  position: absolute; left: 50%; top: -120px; width: min(720px, 120%); height: 560px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 85%, rgba(255,250,200,.42), rgba(255,250,200,.08) 60%, transparent 70%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  pointer-events: none; animation: spot 5s ease-in-out infinite alternate;
}
.big-clar { position: relative; width: min(100%, 940px); margin: 0 auto; aspect-ratio: 1000 / 110; animation: clarBob 3s ease-in-out infinite; }
.big-clar-body { width: 100%; height: 100%; display: block; filter: drop-shadow(8px 8px 0 rgba(0,0,0,.45)); }
.big-clar.honk { animation: honk .25s ease-out; }
.keys { position: absolute; inset: 0; }
.key {
  position: absolute; left: var(--x); top: 50%; transform: translate(-50%, -50%);
  width: clamp(26px, 4.4vw, 46px); height: clamp(26px, 4.4vw, 46px); padding: 0;
  border-radius: 50%; border: 4px solid var(--ink);
  background: radial-gradient(circle at 35% 30%, #fff, #c9c9c9 65%, #9b9b9b);
  box-shadow: 0 5px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .1s;
}
.key::after {
  content: attr(data-k); position: absolute; left: 50%; top: calc(100% + 14px); transform: translateX(-50%);
  font-family: var(--font-title); font-size: clamp(14px, 1.8vw, 20px); color: var(--yellow);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
}
.key:hover { background: radial-gradient(circle at 35% 30%, #fff, #ffe48a 65%, #e0b62a); }
.key.on { transform: translate(-50%, -38%); box-shadow: 0 1px 0 var(--ink); background: var(--pink); }
.bell-out { position: absolute; right: 0; top: 50%; width: 1px; height: 1px; }
.hint { margin: 58px 0 0; font-weight: 600; color: var(--foam); }
kbd {
  display: inline-block; font-family: var(--font-title); font-size: 15px; color: var(--ink);
  background: #fff; border: 3px solid var(--ink); border-radius: 7px; padding: 4px 7px 1px; margin: 0 2px;
  box-shadow: 0 3px 0 var(--ink);
}
.stage-ctrls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 28px; }
.mood { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; background: var(--foam); color: var(--ink); border: 4px solid var(--ink); border-radius: 18px; padding: 10px 16px; font-weight: 700; box-shadow: 5px 5px 0 var(--ink); }
.mood b { font-family: var(--font-title); font-weight: 400; font-size: 20px; color: var(--red); min-width: 120px; padding-top: 3px; }
.mood-bar { width: 150px; height: 16px; border: 3px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.mood-bar i { display: block; height: 100%; width: 6%; background: var(--lawn); transition: width .4s, background .4s; }
.audience { position: relative; z-index: 3; display: flex; justify-content: center; gap: clamp(4px, 2vw, 26px); margin-top: 60px; flex-wrap: wrap; }
.fan { position: relative; width: clamp(40px, 7.5vw, 104px); animation: bob 2.4s ease-in-out infinite; }
.fan svg { width: 100%; height: auto; display: block; }
.fan.flip svg { transform: scaleX(-1); }
.fan.mad svg { animation: shake .1s linear 5; }
.react {
  position: absolute; left: 50%; bottom: 92%; transform: translateX(-50%) scale(0);
  background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 12px;
  font-family: var(--font-title); font-size: 15px; white-space: nowrap; padding: 6px 10px 2px;
  transition: transform .3s cubic-bezier(.3, 1.8, .4, 1);
}
.react.show { transform: translateX(-50%) scale(1); }
.tomatoes { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.tomato { position: absolute; left: 0; top: 0; width: 46px; height: 46px; }
.splat { position: absolute; width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #ff3b30; border: 4px solid var(--ink);
  border-radius: 46% 54% 38% 62% / 55% 40% 60% 45%; animation: splat 2.2s ease-out forwards; }

/* =========================================================
   EPISODES
   ========================================================= */
.sec--guide {
  background:
    radial-gradient(rgba(0,0,0,.08) 2.5px, transparent 3px) 0 0 / 20px 20px,
    linear-gradient(100deg, var(--yellow) 0 50%, var(--sea) 50% 100%);
  border-top: 6px solid var(--ink);
}
.sec--guide .sec-head .marker { display: inline-block; background: #fff; border: 3px solid var(--ink); padding: 6px 14px; border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); }
.sec--guide .sec-head h2 em { color: var(--pink); }
.eps { max-width: 1200px; margin: 0 auto; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.ep { position: relative; height: 290px; padding: 0; border: 0; background: none; perspective: 1100px; text-align: left; }
.ep:nth-child(odd) { transform: rotate(-1.4deg); }
.ep:nth-child(even) { transform: rotate(1.2deg); }
.ep-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .4, 1); }
.ep.flipped .ep-inner { transform: rotateY(180deg); }
@media (hover: hover) { .ep:hover .ep-inner { transform: rotateY(180deg); } }
.ep-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border: 5px solid var(--ink); border-radius: 18px; box-shadow: 7px 7px 0 var(--ink);
  padding: 20px; display: flex; flex-direction: column; overflow: hidden;
}
.ep-front { background: var(--cream); }
.ep-code { align-self: flex-start; font-family: var(--font-title); font-size: 16px; letter-spacing: .08em; background: var(--red); color: #fff; padding: 6px 10px 2px; border: 3px solid var(--ink); border-radius: 8px; }
.ep-title { font-family: var(--font-title); font-size: 30px; line-height: 1.02; margin: 18px 0 auto; }
.ep-meta { font-weight: 600; font-size: 14px; opacity: .75; margin: 10px 0 0; }
.ep-flipme { font-family: var(--font-hand); font-size: 15px; color: var(--red); margin-top: 6px; }
.ep-deco { position: absolute; right: -24px; top: -24px; width: 110px; height: 110px; border-radius: 50%; border: 5px solid var(--ink); background: var(--yellow); }
.ep:nth-child(even) .ep-front { background: var(--foam); }
.ep:nth-child(even) .ep-code { background: var(--deep); border-radius: 99px; }
.ep:nth-child(even) .ep-title { color: var(--deep); }
.ep:nth-child(even) .ep-deco { background: #fdb7e3; border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%; }
.ep:nth-child(even) .ep-flipme { color: var(--deep); }
.ep-back { background: var(--ink); color: #fff; transform: rotateY(180deg); justify-content: center; }
.ep-back p { margin: 0 0 14px; font-weight: 500; font-size: 17px; line-height: 1.35; }
.ep-back .stars { font-family: var(--font-title); color: var(--yellow); font-size: 17px; letter-spacing: .05em; }
.ep:nth-child(even) .ep-back { background: var(--deep); }

/* =========================================================
   TIME CARD + FOOTER
   ========================================================= */
.timecard {
  position: relative; overflow: hidden; display: grid; place-items: center;
  height: clamp(320px, 44vw, 520px);
  background: var(--sea); border-top: 6px solid var(--ink); border-bottom: 6px solid var(--ink);
}
.timecard-burst {
  position: absolute; left: 50%; top: 50%; width: 260vmax; height: 260vmax; margin: -130vmax 0 0 -130vmax;
  background: repeating-conic-gradient(from 0deg, #2baed6 0 9deg, #1c90c0 9deg 18deg);
  animation: spin 70s linear infinite;
}
.timecard-text {
  position: relative; margin: 0; text-align: center;
  font-family: var(--font-title); font-size: clamp(46px, 9.5vw, 130px); line-height: .95;
  -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; text-shadow: .06em .06em 0 var(--ink);
}
.timecard-text span { display: block; }
.timecard-text span:first-child { color: var(--yellow); transform: rotate(-4deg); animation: wobble 2.2s ease-in-out infinite; }
.timecard-text span:last-child { color: var(--pink); transform: rotate(2deg); animation: wobble 2.2s ease-in-out infinite reverse; }

.foot {
  position: relative; text-align: center; padding: 90px 16px 50px;
  background:
    radial-gradient(ellipse at 20% 30%, #e2c07f 10px, transparent 11px) 0 0 / 120px 90px,
    radial-gradient(ellipse at 70% 70%, #e2c07f 7px, transparent 8px) 0 0 / 90px 70px,
    var(--sand);
}
.foot-inner { max-width: 900px; margin: 0 auto; }
.foot-logo { width: 140px; height: 140px; border-radius: 50%; border: 6px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); animation: bob 3s ease-in-out infinite; }
.foot-title { margin: 14px 0 0; font-family: var(--font-title); font-size: clamp(54px, 9vw, 96px); line-height: 1; color: var(--squid); -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; text-shadow: .05em .05em 0 var(--purple), .1em .1em 0 var(--ink); }
.foot-line { font-weight: 600; font-size: clamp(17px, 2vw, 21px); max-width: 640px; margin: 14px auto 26px; }
.foot .btn { background: #a9ecf7; border-radius: 999px; }
.foot .btn--main { background: var(--pink); }
.ca--foot { margin-top: 26px; }
.disclaimer { font-size: 13px; line-height: 1.5; max-width: 760px; margin: 36px auto 0; opacity: .75; }

/* ---------- toast + fx ---------- */
.toast {
  position: fixed; z-index: 500; left: 50%; bottom: 22px; transform: translate(-50%, 180%);
  max-width: calc(100% - 32px); text-align: center;
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink);
  font-weight: 700; padding: 12px 18px; transition: transform .45s cubic-bezier(.3, 1.6, .4, 1);
}
.toast.show { transform: translate(-50%, 0); }
.fx { position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
.fx-note {
  position: absolute; font: 700 30px/1 var(--font-body); color: var(--c);
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
  animation: noteUp 1.2s ease-out forwards;
}
.fx-bub { position: absolute; border: 2px solid rgba(255,255,255,.95); border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.7) 15%, transparent 25%); animation: bubUp 1.4s ease-out forwards; }
.flash { position: fixed; inset: 0; background: #fff; z-index: 450; animation: flash .7s ease-out forwards; pointer-events: none; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes wobble { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes wobbleLetter { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-.06em) rotate(4deg); } }
@keyframes poke { 0% { transform: scale(1); } 30% { transform: scale(.86, 1.12) rotate(-6deg); } 60% { transform: scale(1.1, .92) rotate(4deg); } 100% { transform: scale(1); } }
@keyframes pop { 0% { transform: scale(.3) rotate(-8deg); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinFast { to { transform: scaleY(-1); } }
@keyframes drift { to { transform: translateX(70px); } }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes rays { to { opacity: .28; } }
@keyframes floaty { to { transform: translateY(-26px); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translateY(-1000px) translateX(30px); opacity: 0; } }
@keyframes fly { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }
@keyframes flap { from { transform: skewY(-2deg) translateY(-2px); } to { transform: skewY(2deg) translateY(2px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes stampIn { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-6deg) scale(1.06); } }
@keyframes tankBub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-140px); opacity: 0; } }
@keyframes floatItem { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }
@keyframes flow { to { background-position: 36px 0; } }
@keyframes blink { 0% { background: var(--on); box-shadow: 0 0 10px var(--on); } 50% { background: #555; box-shadow: none; } }
@keyframes needle { from { transform: rotate(-40deg); } to { transform: rotate(70deg); } }
@keyframes shake { 0% { transform: translate(0, 0); } 25% { transform: translate(-3px, 2px); } 50% { transform: translate(3px, -2px); } 75% { transform: translate(-2px, -3px); } 100% { transform: translate(2px, 3px); } }
@keyframes nudge { 0%, 100% { transform: rotate(-12deg) translateX(0); } 50% { transform: rotate(-12deg) translateX(-6px); } }
@keyframes gagIn { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes flicker { 0% { opacity: 1; } 47% { opacity: .7; } 50% { opacity: 1; } 92% { opacity: .85; } }
@keyframes antL { 0%, 100% { transform: rotate(-34deg); } 50% { transform: rotate(-26deg); } }
@keyframes antR { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(38deg); } }
@keyframes curtain { from { transform: skewX(0deg); } to { transform: skewX(1.5deg); } }
@keyframes bulbs { 0% { border-color: #fff; } 50% { border-color: #ff8dc7; } }
@keyframes spot { from { transform: translateX(-54%); } to { transform: translateX(-46%); } }
@keyframes clarBob { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1deg) translateY(-6px); } }
@keyframes honk { 0% { transform: scale(1); } 40% { transform: scale(1.03, .9) rotate(-2deg); } 100% { transform: scale(1); } }
@keyframes splat { 0% { transform: scale(.2); opacity: 1; } 15% { transform: scale(1.15, .9); } 25% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: scale(1) translateY(30px); opacity: 0; } }
@keyframes noteUp { 0% { transform: translate(-50%, -50%) scale(.4) rotate(0); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% - 120px)) scale(1.2) rotate(var(--r)); opacity: 0; } }
@keyframes bubUp { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% - 90px)) scale(1); opacity: 0; } }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .m-row { flex-direction: column; }
  .pipe { flex: none; width: 24px; height: 40px; border: 0; border-left: 5px solid var(--ink); border-right: 5px solid var(--ink); }
  .machine.running .pipe { background: repeating-linear-gradient(0deg, #7fe3f5 0 18px, #b3ff6b 18px 36px); background-size: 100% 36px; }
  .tank { width: 170px; height: 200px; }
  .core { width: 240px; }
  .pull-me { right: 6px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .nav-brand span { font-size: 19px; }
  .hero-slot { padding-top: 100px; padding-bottom: 76px; }
  .char { margin-top: 54px; }
  .bubble { left: 58%; top: -14%; max-width: 168px; font-size: 14px; padding: 9px 12px; }
  .btn { font-size: 17px; padding: 12px 16px 8px; }
  .ctas { gap: 10px; }
  .tow { top: 11%; }
  .tow-banner { font-size: 16px; }
  .tow-vehicle { width: 90px; height: 50px; }
  .world-tag { font-size: 11px; bottom: 12px; }
  .world-tag--l { left: 10px; } .world-tag--r { right: 10px; }
  .tapes { height: 140px; }
  .tape-track span { font-size: 22px; }
  .tape--sb { top: 76px; }
  .tv-body { flex-direction: column; padding: 14px; gap: 14px; border-radius: 26px; }
  .tv-panel { width: 100%; flex-direction: row; justify-content: space-around; padding: 10px; }
  .tv-grill { width: 90px; height: 40px; }
  .knob { width: 52px; height: 52px; }
  .gag-kicker { font-size: 13px; }
  .tv { padding-top: 80px; }
  .tv::before { top: 56px; }
  .tv-ant { height: 90px; }
  .sec--living { padding-bottom: 170px; }
  .couch { height: 110px; }
  .couch::before, .couch::after { width: 80px; height: 90px; left: -40px; }
  .couch::after { left: auto; right: -40px; }
  .hint kbd { font-size: 12px; padding: 3px 5px 0; }
  .paper { padding: 10px 10px 40px; }
  .pin { width: 28px; height: 28px; margin: -14px 0 0 -14px; font-size: 15px; }
  .pin::before { inset: -7px; }
}
@media (max-width: 420px) {
  .nav-buy { padding: 9px 14px 6px; font-size: 16px; }
  .nav-sound { width: 40px; height: 40px; }
  .kicker { font-size: 12px; }
}

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