:root {
  --ink: #14324a;
  --deep: #072844;
  --yellow: #ffe14a;
  --aqua: #b9fff6;
  --pink: #ff6d8a;
  --sand: #f0cb7a;
  --glass: rgba(6, 40, 84, 0.5);
  --line: rgba(255, 255, 255, 0.62);
  --depth: 0;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Fredoka, "Trebuchet MS", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #f4fbff;
  background: #08386c;
  overflow-x: hidden;
}

img, svg { display: block; }
button, input { font-family: inherit; }
a { color: var(--aqua); }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #08325c; }
::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 99px;
  border: 3px solid #08325c;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 50;
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- living ocean ---------- */
.ocean {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.45), transparent 46%),
    linear-gradient(180deg, #8fd8ff 0%, #3aa6e4 16%, #1577c2 38%, #0b4f90 64%, #08366f 100%);
}

.rays { position: absolute; inset: -10% 0 20%; }
.rays span {
  position: absolute;
  top: -8%;
  width: 70px;
  height: 78%;
  left: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.28), transparent 80%);
  filter: blur(6px);
  transform-origin: top center;
  animation: raysway 7s ease-in-out infinite;
}
.rays span:nth-child(1) { transform: rotate(-32deg); margin-left: -280px; }
.rays span:nth-child(2) { transform: rotate(-18deg); margin-left: -140px; animation-delay: -1s; }
.rays span:nth-child(3) { transform: rotate(-4deg); margin-left: -20px; width: 90px; }
.rays span:nth-child(4) { transform: rotate(12deg); margin-left: 120px; animation-delay: -2s; }
.rays span:nth-child(5) { transform: rotate(26deg); margin-left: 250px; }
.rays span:nth-child(6) { transform: rotate(38deg); margin-left: 380px; animation-delay: -3s; width: 50px; }

@keyframes raysway {
  50% { opacity: 0.45; filter: blur(10px); }
}

.caustics {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.12), transparent 26%),
    radial-gradient(ellipse at 40% 80%, rgba(185, 255, 246, 0.14), transparent 22%);
  mix-blend-mode: screen;
  animation: caustic 9s ease-in-out infinite alternate;
}
@keyframes caustic {
  to { transform: translate3d(2%, -1%, 0) scale(1.08); }
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  height: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M0 18 Q15 4 30 18 T60 18 T90 18 T120 18 V30 H0Z' fill='%23ffffff' fill-opacity='.45'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 180px 46px;
  animation: drift 8s linear infinite;
}
.wave-a { top: 0; }
.wave-b {
  top: 16px;
  opacity: 0.45;
  animation-duration: 13s;
  animation-direction: reverse;
  background-size: 260px 46px;
}
@keyframes drift { to { background-position: 180px 0; } }

.skiff {
  position: absolute;
  top: 6px;
  right: 3%;
  width: 92px;
  animation: skiff 4.5s ease-in-out infinite;
}
@keyframes skiff {
  50% { transform: translateY(5px) rotate(-2deg); }
}

.bubbles, .fish-layer, .jelly-layer, .plankton {
  position: absolute;
  inset: 0;
}
.bubble, .jelly, .plank { pointer-events: auto; }

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95) 0 8%, rgba(255, 255, 255, 0.18) 9% 42%, rgba(170, 220, 255, 0.18) 70%, rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.65);
  animation: rise linear infinite;
  cursor: pointer;
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
  10% { opacity: 0.85; }
  50% { transform: translate(18px, -52vh) scale(1); opacity: 0.7; }
  100% { transform: translate(-14px, -108vh) scale(1.05); opacity: 0; }
}
.bubble.popped { animation: pop 0.28s ease forwards !important; }
@keyframes pop { to { transform: scale(1.7); opacity: 0; } }

.plank {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: white;
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-12px); }
}

.fish {
  position: absolute;
  left: 0;
  width: 92px;
  animation: swim-right linear infinite;
}
.fish.go-left { animation-name: swim-left; }
.fish.go-left .fish-svg { transform: scaleX(-1); }
.fish-svg { width: 100%; height: auto; }
.tail {
  transform-box: fill-box;
  transform-origin: right center;
  animation: wag 0.35s ease-in-out infinite;
}
@keyframes wag {
  50% { transform: rotate(16deg); }
}
@keyframes swim-right {
  0% { transform: translate(-20vw, 0); }
  50% { transform: translate(45vw, -18px); }
  100% { transform: translate(115vw, 8px); }
}
@keyframes swim-left {
  0% { transform: translate(115vw, 8px); }
  50% { transform: translate(45vw, 16px); }
  100% { transform: translate(-20vw, -6px); }
}

.jelly {
  position: absolute;
  width: 84px;
  cursor: pointer;
  animation: floaty 6s ease-in-out infinite;
}
.jelly-svg { width: 100%; overflow: visible; }
.jelly.far { opacity: 0.38; filter: blur(0.6px); }
.tentacle {
  transform-box: fill-box;
  transform-origin: top center;
  animation: wiggle 2.4s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: skewX(-8deg) scaleY(1); }
  50% { transform: skewX(10deg) scaleY(1.12); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-26px) rotate(3deg); }
}
.jelly.dart { animation: dart 0.7s ease; }
@keyframes dart {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-54px) scale(1.18) rotate(8deg); }
  100% { transform: translateY(0) scale(1); }
}

.sub {
  position: absolute;
  top: 64%;
  width: 190px;
  overflow: visible;
  animation: swim-right 36s linear infinite;
  animation-delay: -12s;
}
.prop {
  transform-box: fill-box;
  transform-origin: right center;
  animation: spin 0.28s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.depth-shade {
  position: absolute;
  inset: 0;
  background: #02101f;
  opacity: calc(var(--depth) * 0.55);
}

/* ---------- chrome ---------- */
.nav {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 3px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 0 rgba(6, 30, 60, 0.25);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: 22px;
  letter-spacing: 0.3px;
  text-shadow: 0 3px 0 var(--deep);
}
.brand-mark { width: 36px; height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav-links a:hover,
.nav-links a[aria-current="true"] { background: rgba(255, 255, 255, 0.16); }
.nav-links a.btn,
.nav-links a.btn:hover { color: var(--ink); background: var(--yellow); }
.nav-links a.btn-aqua,
.nav-links a.btn-aqua:hover { background: var(--aqua); }
.nav-links a.btn-pink,
.nav-links a.btn-pink:hover { color: white; background: var(--pink); }
.nav-links a.btn-chart,
.nav-links a.btn-chart:hover { color: var(--ink); background: white; }
.btn-chart { background: white; color: var(--ink); }
.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 0 3px 0 var(--ink);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  margin: 5px 10px;
  background: var(--ink);
  border-radius: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  background: white;
  color: var(--ink);
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: 18px;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-aqua { background: var(--aqua); }
.btn-pink { background: var(--pink); color: white; }
.nav .btn { padding: 10px 14px; font-size: 16px; box-shadow: 0 4px 0 var(--ink); }
.icon-btn { padding: 10px 12px; }

.depth {
  position: fixed;
  z-index: 15;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 76px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 0 var(--deep);
  pointer-events: none;
}
.depth-track {
  width: 14px;
  height: 150px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 30, 60, 0.35);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.depth-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(#b9fff6, #ffe14a);
}

.surface-btn {
  position: fixed;
  z-index: 16;
  left: 16px;
  bottom: 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.surface-btn.on { opacity: 1; pointer-events: auto; transform: none; }

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  background: #fff6c2;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  font-family: "Lilita One", Fredoka, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: 0.28s ease;
  text-align: center;
  max-width: min(420px, calc(100% - 32px));
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- page ---------- */
main { position: relative; z-index: 1; }
.hero, .band { pointer-events: none; }
.hero-copy, .scene, .wrap, footer { pointer-events: auto; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 108px 16px 0;
}
.hero-copy {
  width: min(880px, 100%);
  margin: 0 auto;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 40, 80, 0.45);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7dffb3;
  box-shadow: 0 0 0 0 rgba(125, 255, 179, 0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(125, 255, 179, 0); }
}

.hero h1 {
  margin: 10px 0 8px;
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: clamp(52px, 11vw, 108px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 1px;
  color: var(--yellow);
  -webkit-text-stroke: clamp(3px, 0.6vw, 7px) #0c3c6e;
  paint-order: stroke fill;
  filter: drop-shadow(0 7px 0 #072844);
}
.hero h1 span {
  display: inline-block;
  animation: letter 2.3s ease-in-out infinite;
}
.hero h1 span:nth-child(2) { animation-delay: 0.1s; }
.hero h1 span:nth-child(3) { animation-delay: 0.18s; }
.hero h1 span:nth-child(4) { animation-delay: 0.05s; }
.hero h1 span:nth-child(5) { animation-delay: 0.22s; }
.hero h1 span:nth-child(6) { animation-delay: 0.12s; }
.hero h1 span:nth-child(7) { animation-delay: 0.16s; }
.hero h1 span:nth-child(8) { animation-delay: 0.08s; }
.hero h1 span:nth-child(9) { animation-delay: 0.2s; }
.hero h1 .sea { color: var(--aqua); }
@keyframes letter {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.lede {
  width: min(640px, 100%);
  margin: 0 auto 16px;
  font-size: 18px;
}
.hero-copy .lede { text-shadow: 0 2px 0 rgba(7, 40, 68, 0.35); }

.cta-row, .chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chips { list-style: none; padding: 14px 0 0; margin: 0; }
.chips li, .status-pill {
  background: rgba(6, 40, 80, 0.4);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
}
.status-pill { display: inline-block; margin-top: 12px; }
.status-pill strong { color: var(--yellow); }

.town {
  position: relative;
  flex: 1;
  min-height: 460px;
  margin-top: 8px;
}
.sand {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  height: 188px;
  background:
    radial-gradient(ellipse at 12% 40%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(#f8e1a4, #e4b45e 70%, #d7a24a);
  border-radius: 50% 50% 0 0 / 64px 64px 0 0;
  box-shadow: inset 0 14px 0 rgba(186, 124, 42, 0.28);
  z-index: 1;
}
.sand::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18) 0 30px,
    transparent 30px 78px
  );
  mix-blend-mode: soft-light;
  animation: causticmove 7s linear infinite;
  pointer-events: none;
}
@keyframes causticmove { to { background-position: 140px 0; } }

.pebbles {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 30px;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 60%, #c9843e 0 5px, transparent 6px),
    radial-gradient(circle at 16% 40%, #f3e2b0 0 3px, transparent 4px),
    radial-gradient(circle at 27% 70%, #b8743a 0 4px, transparent 5px),
    radial-gradient(circle at 41% 46%, #f7e7bc 0 3px, transparent 4px),
    radial-gradient(circle at 63% 62%, #c9843e 0 5px, transparent 6px),
    radial-gradient(circle at 74% 40%, #efd59a 0 3px, transparent 4px),
    radial-gradient(circle at 88% 66%, #b8743a 0 4px, transparent 5px),
    radial-gradient(circle at 95% 48%, #f3e2b0 0 3px, transparent 4px);
}

.kelp {
  position: absolute;
  bottom: 52px;
  width: 74px;
  height: 230px;
  z-index: 1;
  transform-origin: 50% 100%;
  animation: sway 4.6s ease-in-out infinite;
}
.k1 { left: 1%; }
.k2 { left: 8%; height: 180px; animation-delay: -1.2s; }
.k3 { right: 6%; animation-delay: -0.6s; }
.k4 { right: 0; height: 200px; animation-delay: -2s; }
@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}

.scene {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(1180px, 100%);
  transform: translateX(-50%);
}

.flower, .coral, .rock, .anchor, .street-sign, .pineapple, .shack, .mascot, .chest, .snail, .crab-wrap {
  position: absolute;
}
.flower { transform-origin: 50% 100%; animation: sway 3.3s ease-in-out infinite; z-index: 4; }
.f1 { left: 1%; bottom: 92px; width: 74px; }
.f2 { left: 23%; bottom: 58px; width: 58px; animation-delay: -0.8s; z-index: 6; }
.f3 { left: 37%; bottom: 108px; width: 64px; animation-delay: -1.4s; }
.f4 { right: 24%; bottom: 64px; width: 60px; animation-delay: -0.4s; z-index: 6; }
.f5 { right: 1%; bottom: 112px; width: 70px; animation-delay: -1.8s; }
.coral { z-index: 2; }
.c1 { left: 16%; bottom: 78px; width: 70px; }
.c2 { right: 16%; bottom: 86px; width: 64px; }
.rock { left: 31%; bottom: 62px; width: 78px; z-index: 2; }
.anchor { right: 13%; bottom: 58px; width: 54px; z-index: 4; animation: sway 5s ease-in-out infinite; }

.street-sign {
  left: 30%;
  bottom: 42px;
  z-index: 6;
  transform: rotate(-6deg);
}
.street-sign span {
  display: block;
  background: linear-gradient(#e0a45a, #c6863a);
  color: #fff8e8;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 4px 8px;
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--ink);
  text-shadow: 0 2px 0 rgba(80, 40, 0, 0.35);
}
.street-sign i {
  display: block;
  width: 8px;
  height: 46px;
  margin: -2px auto 0;
  background: #8d5a2b;
  border: 3px solid var(--ink);
  border-top: 0;
}

.pineapple, .shack, .chest, .snail {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.pineapple { left: 5%; bottom: 86px; width: min(200px, 22vw); z-index: 4; }
.shack { right: 2%; bottom: 78px; width: min(250px, 28vw); z-index: 4; }
.chest { left: 63%; bottom: 72px; width: 108px; z-index: 6; }
.snail { left: 24%; bottom: 52px; width: 72px; z-index: 6; cursor: default; }

.leaves, .flag, .eyestalk, .lid, .tie, .bloom {
  transform-box: fill-box;
}
.leaves { transform-origin: center bottom; animation: sway 3.2s ease-in-out infinite; }
.flag { transform-origin: left center; animation: flag 0.9s ease-in-out infinite; }
@keyframes flag {
  50% { transform: skewY(8deg) scaleX(0.9); }
}
.eyestalk { transform-origin: center bottom; animation: sway 2s ease-in-out infinite; }
.lid { transform-origin: center bottom; animation: lid 2.8s ease-in-out infinite; }
@keyframes lid {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(-26deg); }
}
.tie { transform-origin: top center; animation: sway 2.4s ease-in-out infinite; }
.open-sign { animation: neon 1.3s steps(2, end) infinite; }
@keyframes neon { 50% { opacity: 0.25; } }
.pineapple.open .door {
  transform-box: fill-box;
  transform-origin: left center;
  transform: perspective(240px) rotateY(-55deg);
}

.smoke { position: absolute; left: 78%; top: 8%; width: 20px; height: 50px; }
.smoke i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  animation: puff 2.6s ease-out infinite;
}
.smoke i:nth-child(2) { animation-delay: -0.8s; width: 10px; height: 10px; }
.smoke i:nth-child(3) { animation-delay: -1.6s; width: 8px; height: 8px; }
@keyframes puff {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateY(-46px) scale(1.3); opacity: 0; }
}

.house-tip {
  position: absolute;
  left: 18%;
  bottom: 310px;
  z-index: 7;
  max-width: 180px;
  background: white;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 10px;
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}
.house-tip.show { animation: speak 2.8s ease both; }

.mascot {
  left: 50%;
  bottom: 48px;
  width: min(240px, 34vw);
  transform: translateX(-50%);
  z-index: 5;
}
.shadow {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 54%;
  height: 18px;
  background: rgba(90, 55, 10, 0.28);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: shadow 2.4s ease-in-out infinite;
}
@keyframes shadow {
  50% { transform: translateX(-50%) scaleX(0.82); opacity: 0.2; }
}
.sponge {
  position: relative;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.sponge svg { width: 100%; height: auto; overflow: visible; }
.arm-wave {
  transform-box: view-box;
  transform-origin: 196px 150px;
  animation: wave 1.05s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { transform: rotate(12deg); }
  50% { transform: rotate(-32deg); }
}
.eyelid {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.6s infinite;
}
.eyelid.late { animation-delay: 0.12s; }
@keyframes blink {
  0%, 88%, 100% { transform: scaleY(0); }
  93%, 96% { transform: scaleY(1); }
}
.pupils { animation: look 5.5s ease-in-out infinite; }
@keyframes look {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(3px, 1px); }
  70% { transform: translate(-3px, 0); }
}
.speech {
  position: absolute;
  left: 64%;
  bottom: 86%;
  width: max-content;
  max-width: 190px;
  background: white;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px 16px 16px 4px;
  padding: 8px 10px;
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: 16px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.speech.show { animation: speak 2.6s ease both; }
@keyframes speak {
  0% { opacity: 0; transform: scale(0.7); }
  12% { opacity: 1; transform: scale(1); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.92); }
}

.coin {
  transform-box: fill-box;
  transform-origin: center;
  animation: coin 2.2s ease-in-out infinite;
}
.coin.c2 { animation-delay: -0.4s; }
.coin.c3 { animation-delay: -0.9s; }
@keyframes coin {
  50% { transform: translateY(-12px) rotate(12deg); }
}
.chest.burst .coin { animation: coinburst 0.7s ease; }
@keyframes coinburst {
  50% { transform: translateY(-28px) scale(1.2); }
}

.crab-wrap {
  left: 8%;
  bottom: 46px;
  width: 64px;
  z-index: 7;
  animation: crawl 22s linear infinite alternate;
}
.crab { width: 100%; animation: bob 0.35s ease-in-out infinite; }
@keyframes crawl {
  from { left: 6%; }
  to { left: 78%; }
}

/* ---------- sections ---------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(7, 40, 68, 0.55);
  border-block: 3px solid rgba(255, 255, 255, 0.35);
  pointer-events: auto;
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 12px 0;
  animation: ticker 22s linear infinite;
  font-family: "Lilita One", Fredoka, sans-serif;
  letter-spacing: 0.6px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

.band { padding: 78px 16px; }
.wrap { width: min(1080px, 100%); margin: 0 auto; }
.band h2, .footer h2 {
  margin: 0 0 8px;
  font-family: "Lilita One", Fredoka, sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  color: #fff4b0;
  filter: drop-shadow(0 4px 0 #072844);
  text-align: center;
}
.center { text-align: center; }
.band .lede {
  text-align: center;
  margin-bottom: 26px;
  width: fit-content;
  max-width: min(720px, 100%);
  padding: 10px 16px;
  border-radius: 18px;
  background: rgba(4, 28, 62, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.glass {
  background: var(--glass);
  border: 3px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 10px 0 rgba(4, 24, 48, 0.28);
  backdrop-filter: blur(8px);
}
.spot-grid, .token-grid, .steps {
  display: grid;
  gap: 14px;
}
.spot-grid { grid-template-columns: repeat(4, 1fr); }
.token-grid { grid-template-columns: 220px 1fr; align-items: center; gap: 22px; }
.steps { grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.spot, .stat, .steps li, .road li { padding: 16px; }
.spot h3, .stat h3, .steps h3, .road h3 { margin: 6px 0; font-size: 22px; }
.spot p, .stat p, .steps p, .road p, .callout p { margin: 0; font-size: 16px; }
.mini {
  width: 54px;
  height: 54px;
}

.token-layout { display: grid; gap: 18px; }
.pie-wrap { display: grid; justify-items: center; gap: 10px; }
.pie {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: conic-gradient(#ffe14a 0 50%, #7dfff0 0 75%, #ff8a6a 0 90%, #d9b4ff 0 100%);
  box-shadow: 0 8px 0 rgba(4, 24, 48, 0.28);
  display: grid;
  place-items: center;
}
.pie span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #0c4e86;
  border: 4px solid var(--ink);
}
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 2px solid var(--ink);
  margin-right: 6px;
}
.i1 { background: #ffe14a; }
.i2 { background: #7dfff0; }
.i3 { background: #ff8a6a; }
.i4 { background: #d9b4ff; }
.stat p.stat-num {
  margin: 0;
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--yellow);
  line-height: 1;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts { grid-template-columns: repeat(4, 1fr); }
.ca-holder {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.ca-label {
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: 28px;
  color: var(--yellow);
  line-height: 1;
}
.ca-value {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(4, 24, 48, 0.45);
  border: 3px dashed rgba(255, 255, 255, 0.45);
  font-weight: 700;
  font-size: clamp(13px, 1.5vw, 16px);
  overflow-wrap: anywhere;
}
.ca-holder .btn { flex: none; }

.num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-family: "Lilita One", Fredoka, sans-serif;
  font-size: 22px;
}
.steps a { color: var(--yellow); font-weight: 700; }

.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 109, 138, 0.22);
  border: 3px dashed rgba(255, 255, 255, 0.7);
}
.callout strong { color: #ffe1ea; }

.road {
  list-style: none;
  margin: 0 auto;
  padding: 0 0 0 28px;
  max-width: 760px;
  border-left: 6px dashed rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 14px;
}
.road li { position: relative; }
.road li::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
}
.phase {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 700;
}

.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
details.faq-item {
  padding: 12px 16px;
  text-align: left;
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}
details p { margin: 8px 0 0; font-size: 16px; }

.crew {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

footer {
  position: relative;
  z-index: 1;
  padding: 28px 16px 48px;
  text-align: center;
}
.fine {
  width: min(760px, 100%);
  margin: 8px auto 0;
  font-size: 13px;
  color: rgba(244, 251, 255, 0.82);
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: risein linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}
@keyframes risein {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .spot-grid, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .skiff { display: none; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav { border-radius: 22px; flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 6px;
    background: rgba(5, 36, 74, 0.72);
    border-radius: 16px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links .btn { width: 100%; }
}
@media (max-width: 720px) {
  .depth, .surface-btn { display: none; }
  .hero { padding: 78px 12px 0; }
  .hero h1 { margin: 4px 0; font-size: 46px; -webkit-text-stroke-width: 3px; }
  .hero-copy .lede { font-size: 15px; margin-bottom: 10px; }
  .btn { padding: 10px 14px; font-size: 16px; }
  .chips { padding-top: 8px; }
  .status-pill { margin-top: 8px; font-size: 13px; }
  .spot-grid, .steps, .stats, .token-grid { grid-template-columns: 1fr; }
  .ca-holder { flex-wrap: wrap; }
  .ca-value { flex-basis: calc(100% - 52px); }
  .f2, .f3, .anchor, .street-sign, .chest, .snail, .c1, .rock, .crab-wrap { display: none; }
  .pineapple { width: 86px; left: 0; bottom: 36px; }
  .shack { width: 108px; right: 0; bottom: 30px; }
  .mascot { width: 132px; bottom: 18px; }
  .k2, .k3 { display: none; }
  .kelp { height: 130px; bottom: 24px; }
  .sand { height: 110px; }
  .town { min-height: 210px; }
  .house-tip { left: 0; bottom: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
