:root {
  --grape: #32145A;
  --ink: #17121F;
  --cyan: #20D6FF;
  --tangerine: #FF8A00;
  --foam: #FFF7D6;
  --coral: #FF4FA3;
  --teal: #00BFA6;
  --lemon: #FFE84A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background: var(--cyan);
  overflow-x: hidden;
}

.aquarium { position: relative; }
.pool {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 12vw, 10rem) clamp(1.2rem, 5vw, 5rem);
  border-bottom: 6px solid var(--ink);
}
.pool:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--ink) 2px, transparent 3px), linear-gradient(135deg, transparent 0 92%, rgba(23,18,31,.12) 92% 100%);
  background-size: 46px 46px, 100% 100%;
  opacity: .16;
  pointer-events: none;
}
.hook { background: var(--cyan); }
.thread { background: var(--foam); }
.cast { background: var(--teal); }
.twist { background: var(--grape); color: var(--foam); }
.retelling { background: var(--lemon); }

.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; font-family: "Space Mono", monospace; }
.corner { position: absolute; width: 72px; height: 72px; border: 6px solid var(--ink); }
.corner-tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.corner-tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.corner-bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.corner-br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.hud-panel {
  position: absolute;
  background: rgba(255,247,214,.86);
  border: 4px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: .8rem 1rem;
}
.hud-kicker { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.compass { top: 26px; left: 50%; transform: translateX(-50%); min-width: 220px; text-align: center; }
.compass strong { font-family: "Bungee", cursive; color: var(--coral); font-size: 1.8rem; text-shadow: 3px 3px 0 var(--ink); }
.compass-ring { width: 54px; height: 54px; margin: .35rem auto 0; border: 4px dashed var(--grape); border-radius: 50%; position: relative; background: var(--lemon); }
.compass-ring span { position: absolute; inset: 12px; border: 4px solid var(--teal); border-radius: 50%; }
.compass-ring i { position: absolute; left: 24px; top: -8px; width: 8px; height: 36px; background: var(--tangerine); border: 3px solid var(--ink); transform-origin: bottom; transform: rotate(var(--needle, 0deg)); }
.depth { left: 28px; bottom: 110px; width: 180px; }
.depth-track { height: 180px; border: 4px solid var(--ink); background: var(--foam); border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; }
.depth-track b { display: block; width: 100%; height: 8%; background: repeating-linear-gradient(0deg, var(--coral) 0 16px, var(--lemon) 16px 30px, var(--cyan) 30px 46px); transition: height .35s ease; }
.depth em { display: block; margin-top: .4rem; font-style: normal; font-weight: 700; }
.channel { right: 30px; bottom: 34px; max-width: min(420px, calc(100vw - 70px)); background: rgba(32,214,255,.9); }
.channel strong { color: var(--grape); }
.channel p { margin: .3rem 0 0; font-family: "Nunito", sans-serif; font-weight: 800; }

h1, h2, .poster-title { font-family: "Bungee", cursive; line-height: .88; margin: 0; letter-spacing: -.04em; }
h1 { font-size: clamp(4rem, 15vw, 13rem); color: var(--foam); text-shadow: 10px 10px 0 var(--ink), 18px 18px 0 var(--coral); transform: rotate(-7deg); }
h2 { position: relative; z-index: 2; font-size: clamp(3rem, 10vw, 9rem); color: var(--coral); text-shadow: 8px 8px 0 var(--ink); max-width: 980px; }
.twist h2 { color: var(--lemon); text-shadow: 8px 8px 0 var(--coral); }
.pool-label { font-family: "Space Mono", monospace; font-weight: 700; background: var(--lemon); border: 4px solid var(--ink); display: inline-block; padding: .45rem .8rem; border-radius: 999px; box-shadow: 6px 6px 0 var(--ink); }
.title-wrap { position: relative; z-index: 3; padding-top: 8vh; }
.listener-badge { display: inline-block; margin-left: 12vw; margin-top: 1rem; background: var(--teal); border: 5px solid var(--ink); border-radius: 22px; padding: 1rem 1.4rem; font-weight: 900; box-shadow: 8px 8px 0 var(--ink); transform: rotate(4deg); }
.listener-badge span { color: var(--lemon); font-family: "Bungee"; }

.hover-lift { transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; cursor: pointer; }
.hover-lift:hover, .hover-lift.is-raised { transform: translateY(-14px) rotate(2deg) !important; box-shadow: 12px 14px 0 var(--ink) !important; filter: saturate(1.15); }
.hover-lift small { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .25s ease, opacity .25s ease; font-weight: 800; }
.hover-lift:hover small, .hover-lift.is-raised small { max-height: 80px; opacity: 1; margin-top: .55rem; }

.fish { position: absolute; width: 154px; height: 78px; background: var(--coral); border: 5px solid var(--ink); border-radius: 60% 45% 45% 60%; z-index: 4; animation: swim 9s ease-in-out infinite; }
.fish:before { content: ""; position: absolute; right: -45px; top: 12px; border-left: 48px solid var(--lemon); border-top: 24px solid transparent; border-bottom: 24px solid transparent; filter: drop-shadow(4px 0 0 var(--ink)); animation: tail .7s ease-in-out infinite alternate; }
.fish:after { content: ""; position: absolute; left: 28px; top: 20px; width: 18px; height: 18px; background: var(--foam); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 46px 15px 0 -5px var(--lemon), 73px -10px 0 -7px var(--cyan); }
.fish-a { right: 13vw; top: 24vh; }
.fish-b { left: 8vw; bottom: 14vh; background: var(--tangerine); animation-duration: 11s; }
.fish-c { right: 18vw; bottom: 12vh; background: var(--teal); }
.fish-d { left: 10vw; top: 58vh; background: var(--lemon); color: var(--ink); }
.bubble { position: absolute; left: 40px; bottom: 88px; min-width: 150px; background: var(--foam); color: var(--ink); border: 4px solid var(--ink); border-radius: 28px 28px 28px 8px; padding: .7rem .9rem; font-weight: 900; box-shadow: 6px 6px 0 var(--ink); opacity: .96; }
.fish:hover .bubble:after { content: attr(data-quote); }
@keyframes swim { 0%,100% { transform: translate(0,0) rotate(-2deg); } 45% { transform: translate(-38px,18px) rotate(3deg); } 70% { transform: translate(26px,-12px) rotate(-1deg); } }
@keyframes tail { from { transform: rotate(-8deg); } to { transform: rotate(9deg); } }

.sonar { position: absolute; right: 6vw; bottom: 8vh; width: 310px; height: 310px; border-radius: 50%; border: 6px solid var(--ink); background: rgba(255,232,74,.35); }
.sonar span { position: absolute; inset: 12%; border: 5px dashed var(--ink); border-radius: 50%; animation: pulse 3s linear infinite; }
.sonar span:nth-child(2) { inset: 28%; animation-delay: .4s; }
.sonar span:nth-child(3) { inset: 44%; animation-delay: .8s; background: var(--coral); }
@keyframes pulse { 50% { transform: scale(1.08); opacity: .55; } }
.dot-field { position: absolute; left: 58vw; top: 13vh; width: 220px; height: 160px; background: radial-gradient(var(--lemon) 0 8px, transparent 9px); background-size: 32px 32px; transform: rotate(13deg); }
.zigzag { position: absolute; left: 6vw; top: 18vh; width: 210px; height: 55px; background: linear-gradient(135deg, transparent 35%, var(--ink) 35% 45%, transparent 45%), linear-gradient(45deg, transparent 35%, var(--ink) 35% 45%, transparent 45%); background-size: 42px 42px; }
.current-lines:before, .current-lines:after { content: ""; position: absolute; width: 80vw; height: 14px; border-top: 5px dashed var(--foam); left: -10vw; animation: drift 14s linear infinite; opacity: .8; }
.current-lines:before { top: 48vh; }.current-lines:after { top: 68vh; animation-duration: 18s; }
@keyframes drift { to { transform: translateX(22vw); } }

.route { position: absolute; inset: 14vh 3vw 8vh; z-index: 1; }
.route path { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 18 24; stroke-dashoffset: var(--dash, 900); transition: stroke-dashoffset .2s linear; }
.tile { position: absolute; z-index: 3; width: min(330px, 82vw); background: var(--lemon); border: 5px solid var(--ink); border-radius: 22px; padding: 1.1rem; box-shadow: 8px 8px 0 var(--ink); font-size: 1.1rem; font-weight: 800; }
.tile b { font-family: "Bungee"; font-size: 2rem; color: var(--coral); text-shadow: 3px 3px 0 var(--ink); }
.tile-one { left: 8vw; top: 34vh; transform: rotate(-5deg); }
.tile-two { left: 38vw; top: 54vh; background: var(--cyan); transform: rotate(4deg); }
.tile-three { right: 8vw; top: 25vh; background: var(--coral); transform: rotate(-2deg); }
.graph-node { position: absolute; z-index: 3; display: grid; place-items: center; width: 86px; height: 86px; border: 5px solid var(--ink); border-radius: 50%; background: var(--teal); font-weight: 900; box-shadow: 7px 7px 0 var(--ink); }
.node-a { left: 28vw; top: 22vh; }.node-b { right: 28vw; bottom: 18vh; background: var(--tangerine); }

.cast-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(210px, 1fr)); gap: 2rem; margin-top: 8vh; }
.character { background: var(--foam); border: 6px solid var(--ink); border-radius: 30px; padding: 1.4rem; min-height: 390px; box-shadow: 10px 10px 0 var(--ink); transform: rotate(var(--tilt)); }
.character:nth-child(1) { --tilt: -3deg; }.character:nth-child(2) { --tilt: 2deg; background: var(--lemon); }.character:nth-child(3) { --tilt: -1deg; background: var(--cyan); }
.character h3 { font-family: "Bungee"; font-size: clamp(1.8rem, 4vw, 3.4rem); margin: 1rem 0 .5rem; }
.character p { font-size: 1.25rem; font-weight: 900; }
.portrait { position: relative; inset: auto; margin: 0 auto; animation: none; }
.polka { background: var(--coral); background-image: radial-gradient(var(--lemon) 0 7px, transparent 8px); background-size: 28px 28px; }
.triangle { border-radius: 12px; clip-path: polygon(0 50%, 75% 0, 100% 50%, 75% 100%); background: repeating-linear-gradient(90deg, var(--tangerine) 0 18px, var(--foam) 18px 34px); }
.timeline { background: var(--teal); }
.timeline:after { box-shadow: 32px 18px 0 -5px var(--lemon), 62px 18px 0 -5px var(--coral), 92px 18px 0 -5px var(--cyan); }
.speaker-blip { position: absolute; background: var(--coral); border: 5px solid var(--ink); border-radius: 999px; padding: .7rem 1rem; font-family: "Space Mono"; font-weight: 700; box-shadow: 6px 6px 0 var(--ink); animation: bob 2.5s ease-in-out infinite; }
.blip-one { right: 10vw; top: 22vh; }.blip-two { left: 9vw; bottom: 15vh; background: var(--lemon); animation-delay: .7s; }
.checker-strip { position: absolute; right: -40px; bottom: 80px; width: 330px; height: 70px; border: 5px solid var(--ink); background: conic-gradient(var(--ink) 25%, var(--foam) 0 50%, var(--ink) 0 75%, var(--foam) 0); background-size: 36px 36px; transform: rotate(-12deg); }
@keyframes bob { 50% { transform: translateY(-18px) rotate(3deg); } }

.spaghetti { position: absolute; inset: 0; }
.spaghetti span { position: absolute; width: 65vw; height: 18px; border: 5px solid var(--ink); border-left: 0; border-right: 0; border-radius: 50%; transform: rotate(var(--r)); background: var(--c); left: var(--x); top: var(--y); opacity: .95; transition: transform .5s ease; }
.spaghetti span:nth-child(1){--r:17deg;--c:#20D6FF;--x:8vw;--y:24vh}.spaghetti span:nth-child(2){--r:-24deg;--c:#FF4FA3;--x:18vw;--y:34vh}.spaghetti span:nth-child(3){--r:42deg;--c:#FFE84A;--x:2vw;--y:48vh}.spaghetti span:nth-child(4){--r:-9deg;--c:#00BFA6;--x:26vw;--y:62vh}.spaghetti span:nth-child(5){--r:65deg;--c:#FF8A00;--x:38vw;--y:18vh}.spaghetti span:nth-child(6){--r:-48deg;--c:#FFF7D6;--x:4vw;--y:72vh}
.twist.is-resolved .spaghetti span { transform: rotate(0deg) translateX(6vw); }
.twist-card { position: absolute; z-index: 3; right: 10vw; bottom: 14vh; background: var(--foam); color: var(--ink); border: 6px solid var(--ink); border-radius: 26px; padding: 1.3rem 1.6rem; font-weight: 900; font-size: clamp(1.5rem, 4vw, 3.5rem); box-shadow: 10px 10px 0 var(--coral); transform: rotate(4deg); }
.arrow-cloud b { position: absolute; font-family: "Bungee"; color: var(--lemon); text-shadow: 5px 5px 0 var(--ink); font-size: clamp(3rem, 8vw, 7rem); animation: bob 3s ease-in-out infinite; }
.arrow-cloud b:nth-child(1){left:18vw;top:22vh}.arrow-cloud b:nth-child(2){right:20vw;top:18vh;animation-delay:.4s}.arrow-cloud b:nth-child(3){left:45vw;top:45vh;animation-delay:.8s}.arrow-cloud b:nth-child(4){right:12vw;bottom:26vh;animation-delay:1.2s}.arrow-cloud b:nth-child(5){left:28vw;bottom:14vh;animation-delay:1.6s}

.poster { position: relative; z-index: 2; margin: 7vh auto 0; width: min(920px, 92vw); min-height: 520px; background: var(--foam); border: 8px solid var(--ink); box-shadow: 18px 18px 0 var(--coral); padding: clamp(1.3rem, 4vw, 3rem); transform: rotate(-2deg); }
.poster-title { font-size: clamp(2.4rem, 8vw, 6.5rem); color: var(--grape); text-shadow: 6px 6px 0 var(--lemon); }
.poster-route { height: 150px; margin: 2rem 0; border: 7px dashed var(--ink); border-left: 0; border-bottom: 0; border-radius: 0 110px 0 0; background: radial-gradient(var(--teal) 0 12px, transparent 13px); background-size: 80px 80px; }
.poster-copy { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 900; max-width: 680px; }
.poster-stickers span, .final-bubbles span { display: inline-block; background: var(--cyan); border: 4px solid var(--ink); border-radius: 999px; padding: .55rem .9rem; margin: .35rem; font-weight: 900; box-shadow: 5px 5px 0 var(--ink); }
.poster-stickers span:nth-child(2) { background: var(--tangerine); }.poster-stickers span:nth-child(3) { background: var(--teal); }
.final-bubbles { position: relative; z-index: 3; text-align: center; margin-top: 3rem; }

@media (max-width: 780px) {
  .hud-panel { transform: none; }
  .compass { left: 1rem; top: 1rem; min-width: 150px; text-align: left; }
  .compass strong { font-size: 1.1rem; }
  .compass-ring { display: none; }
  .depth { display: none; }
  .channel { right: 1rem; bottom: 1rem; font-size: .75rem; }
  .pool { padding-top: 8rem; }
  .cast-grid { grid-template-columns: 1fr; }
  .tile { position: relative; left: auto; right: auto; top: auto; margin: 1.2rem 0; }
  .route { opacity: .35; }
  .fish { transform: scale(.78); }
  .sonar { width: 190px; height: 190px; }
}
