:root {
  --ink: #071c27;
  --paper: #fff8de;
  --blue: #0d89d6;
  --deep-blue: #075780;
  --yellow: #ffd536;
  --red: #f04425;
  --green: #39a950;
  --wood: #d99236;
  --wood-light: #f4c760;
  --shadow: 0 16px 0 rgba(4, 28, 39, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: #0879ba;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  background: transparent;
}

body:not(.loaded) {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.loading-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(126, 228, 255, .38), transparent 30%),
    linear-gradient(180deg, #0b9bdd, #075687);
  transition: opacity .9s ease, visibility .9s ease;
}

body.loaded .loading-screen {
  opacity: 0;
  visibility: hidden;
}

.loading-screen *,
.loading-screen::before,
.loading-screen::after {
  animation-play-state: paused !important;
}

body.hatch-playing .loading-screen *,
body.hatch-playing .loading-screen::before,
body.hatch-playing .loading-screen::after {
  animation-play-state: running !important;
}

.loading-screen::before,
.loading-screen::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.loading-screen::before {
  background: repeating-conic-gradient(from 190deg at 50% 0%, rgba(255,255,220,.13) 0 7deg, transparent 9deg 19deg);
  filter: blur(12px);
  animation: hatch-rays 4.8s ease-in-out both;
}

.loading-screen::after {
  background: repeating-radial-gradient(ellipse at 50% -20%, transparent 0 32px, rgba(255,255,255,.11) 34px 36px, transparent 38px 68px);
  opacity: .55;
  animation: hatch-water 5s linear infinite;
}

.hatch-stage {
  position: relative;
  z-index: 2;
  width: min(390px, 86vw);
  height: min(430px, 55vh);
  display: grid;
  place-items: center;
}

.hatch-stage::before {
  content: none;
}

.hatch-glow,
.hatch-impact {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 180px;
  height: 180px;
  border: 3px solid rgba(238, 253, 255, .8);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.2);
  animation: hatch-impact 1.3s 2.35s ease-out both;
}

.hatch-impact {
  width: 120px;
  height: 120px;
  border-color: rgba(255, 231, 104, .9);
  animation-delay: 2.55s;
}

.hatch-character {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 54%;
  width: min(330px, 72vw);
  opacity: 0;
  filter: drop-shadow(12px 17px 0 rgba(4, 28, 39, .28));
  transform: translate(-50%, -50%) scale(.12) rotate(-8deg);
  animation: hatch-character 4.8s cubic-bezier(.18,.75,.25,1) both;
}

.egg-piece {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 250px;
  border: 6px solid var(--ink);
  border-radius: 51% 49% 47% 53% / 60% 60% 40% 40%;
  background:
    radial-gradient(circle at 30% 60%, #9bc5d2 0 4px, transparent 5px),
    radial-gradient(circle at 70% 25%, #9bc5d2 0 6px, transparent 7px),
    radial-gradient(circle at 62% 78%, #9bc5d2 0 3px, transparent 4px),
    var(--paper);
  box-shadow: 10px 12px 0 rgba(3, 35, 53, .28), inset -12px -10px 0 rgba(215, 202, 166, .25);
  transform: translate(-50%, -50%);
}

.egg-top {
  z-index: 5;
  clip-path: polygon(0 0, 100% 0, 100% 48%, 88% 44%, 73% 53%, 58% 44%, 43% 54%, 27% 44%, 12% 52%, 0 47%);
  transform-origin: 45% 48%;
  animation: egg-top-hatch 4.8s ease-in-out both;
}

.egg-bottom {
  clip-path: polygon(0 46%, 12% 51%, 27% 43%, 43% 53%, 58% 43%, 73% 52%, 88% 43%, 100% 47%, 100% 100%, 0 100%);
  transform-origin: 50% 48%;
  animation: egg-bottom-hatch 4.8s ease-in-out both;
}

.egg-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--blue);
  font-size: 44px;
  font-weight: 1000;
  transform: translate(-50%, -50%) rotate(6deg);
}

.egg-cracks {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 47%;
  width: 120px;
  height: 150px;
  transform: translate(-50%, -50%);
}

.egg-cracks i {
  position: absolute;
  left: 50%;
  top: 25%;
  width: 7px;
  height: 72px;
  opacity: 0;
  background: var(--ink);
  clip-path: polygon(40% 0, 100% 0, 65% 42%, 100% 42%, 20% 100%, 45% 55%, 0 55%);
  transform-origin: top;
  animation: crack-appear 4.8s ease both;
}

.egg-cracks i:nth-child(2) {
  left: 34%;
  top: 42%;
  height: 48px;
  transform: rotate(48deg);
  animation-delay: .12s;
}

.egg-cracks i:nth-child(3) {
  left: 67%;
  top: 41%;
  height: 45px;
  transform: rotate(-52deg);
  animation-delay: .22s;
}

.hatch-copy {
  position: relative;
  z-index: 3;
  width: min(390px, calc(100vw - 40px));
  color: #fff;
  text-align: center;
  text-shadow: 2px 3px 0 rgba(4, 28, 39, .45);
}

.hatch-copy strong {
  display: block;
  font-size: clamp(20px, 3vw, 30px);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hatch-status {
  position: relative;
  height: 25px;
  margin: 6px 0 14px;
  display: block;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hatch-status i {
  position: absolute;
  inset: 0;
  opacity: 0;
  font-style: normal;
  animation: hatch-status 4.8s both;
}

.hatch-status i:nth-child(2) { animation-delay: 1.35s; }
.hatch-status i:nth-child(3) { animation-delay: 2.75s; }

.hatch-progress {
  height: 13px;
  padding: 2px;
  display: block;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: rgba(255, 248, 222, .8);
  box-shadow: 0 5px 0 rgba(4, 28, 39, .3);
}

.hatch-progress b {
  width: 0;
  height: 100%;
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
  animation: hatch-progress 4.5s cubic-bezier(.2,.7,.25,1) both;
}

.hatch-bubbles i {
  position: absolute;
  z-index: 1;
  left: var(--bubble-left);
  bottom: -30px;
  width: var(--bubble-size);
  height: var(--bubble-size);
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 50%;
  animation: hatch-bubble var(--bubble-time) var(--bubble-delay) linear infinite;
}

.hatch-bubbles i:nth-child(1) { --bubble-left: 18%; --bubble-size: 18px; --bubble-time: 3.4s; --bubble-delay: -.5s; }
.hatch-bubbles i:nth-child(2) { --bubble-left: 31%; --bubble-size: 10px; --bubble-time: 4.1s; --bubble-delay: -2s; }
.hatch-bubbles i:nth-child(3) { --bubble-left: 46%; --bubble-size: 25px; --bubble-time: 3.8s; --bubble-delay: -1.2s; }
.hatch-bubbles i:nth-child(4) { --bubble-left: 63%; --bubble-size: 13px; --bubble-time: 4.5s; --bubble-delay: -3s; }
.hatch-bubbles i:nth-child(5) { --bubble-left: 78%; --bubble-size: 20px; --bubble-time: 3.2s; --bubble-delay: -1.7s; }
.hatch-bubbles i:nth-child(6) { --bubble-left: 88%; --bubble-size: 8px; --bubble-time: 4.7s; --bubble-delay: -.8s; }

body.loaded .hatch-character {
  transform: translate(-50%, -55%) scale(1.35) rotate(2deg);
}

.ocean-world {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(6, 166, 229, 0.1), rgba(0, 52, 91, 0.56)),
    url("assets/underwater-world.png");
  background-size: cover;
  background-position: center;
}

main {
  position: relative;
  z-index: 1;
}

.ripple-field {
  position: fixed;
  z-index: 70;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .78;
  mix-blend-mode: soft-light;
  filter: blur(.35px) saturate(1.25);
  image-rendering: auto;
}

.ocean-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 37, 64, 0.18));
}

.sun-rays {
  position: absolute;
  inset: -25% -10% 0;
  background: repeating-conic-gradient(from 196deg at 50% -10%, rgba(255, 255, 220, 0.16) 0deg 8deg, transparent 10deg 22deg);
  filter: blur(12px);
  opacity: 0.75;
  animation: rays 10s ease-in-out infinite alternate;
}

.water-sheen {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 50% -40%, transparent 0 23px, rgba(255,255,255,.11) 25px 27px, transparent 30px 54px);
  background-size: 200% 180px;
  opacity: .45;
  animation: sheen 8s linear infinite;
}

.bubble {
  position: absolute;
  bottom: -80px;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  border: max(1px, calc(var(--size) * .08)) solid rgba(255,255,255,.58);
  border-radius: 50%;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.35), 0 0 10px rgba(99,220,255,.35);
  animation: bubble-up var(--time) linear infinite;
  animation-delay: var(--delay);
}

.fish {
  position: absolute;
  color: rgba(10, 100, 163, 0.32);
  font-size: 45px;
  font-weight: 1000;
  letter-spacing: -15px;
  animation: fish-swim 24s linear infinite;
}

.fish-a { top: 22%; animation-delay: -4s; }
.fish-b { top: 62%; animation-duration: 33s; animation-delay: -20s; transform: scale(.7); }

.topbar {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  width: min(1540px, calc(100% - 36px));
  height: 76px;
  padding: 8px 12px 8px 18px;
  display: flex;
  align-items: center;
  gap: 34px;
  transform: translateX(-50%);
  border: 4px solid var(--ink);
  border-radius: 12px;
  background:
    repeating-linear-gradient(5deg, transparent 0 22px, rgba(92, 48, 8, .12) 23px 25px),
    linear-gradient(180deg, var(--wood-light), var(--wood));
  box-shadow: 0 8px 0 rgba(4, 28, 39, .32), inset 0 3px 0 rgba(255,255,255,.28);
  transition: height .3s ease, top .3s ease;
}

.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #c77f26;
  top: 11px;
}

.topbar::before { left: 10px; }
.topbar::after { right: 10px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
  font-size: clamp(19px, 1.7vw, 28px);
  letter-spacing: -1.5px;
  white-space: nowrap;
}

.brand img {
  width: 57px;
  height: 57px;
  padding: 3px;
  object-fit: contain;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #eaf7ff;
}

.brand b {
  padding: 6px 9px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .5px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 3px 3px 0 rgba(4, 28, 39, .25);
  transform: rotate(-3deg);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 52px);
  margin-left: auto;
  font-size: 16px;
  font-weight: 1000;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 4px;
  border-radius: 5px;
  background: var(--ink);
  transition: right .25s ease;
}

.nav-links a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
}

.wood-button {
  position: relative;
  min-height: 54px;
  padding: 12px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .7px;
  border: 4px solid var(--ink);
  border-radius: 9px;
  background:
    repeating-linear-gradient(3deg, transparent 0 14px, rgba(0,0,0,.08) 15px 16px),
    linear-gradient(180deg, #218fe2, #0870c4);
  box-shadow: 0 6px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.3);
  text-shadow: 2px 2px 0 rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.wood-button:hover {
  transform: translateY(-3px) rotate(-1deg);
  filter: saturate(1.18) brightness(1.05);
  box-shadow: 0 9px 0 var(--ink), inset 0 2px 0 rgba(255,255,255,.3);
}

.wood-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink);
}

.wood-button.green { background-color: var(--green); background-image: linear-gradient(180deg, #58c96a, #269440); }
.wood-button.gold { color: var(--ink); text-shadow: none; background-color: var(--yellow); background-image: linear-gradient(180deg, #ffe66a, #f2b71d); }
.nav-dive { min-height: 48px; padding: 9px 23px; }
.button-icon { font-size: 22px; line-height: 1; }

.scene {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  padding: 126px max(5vw, calc((100vw - 1600px) / 2)) 50px;
  display: grid;
  align-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}

.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 77, 121, .18), transparent 30% 70%, rgba(0, 77, 121, .16));
}

.hero {
  grid-template-columns: .95fr 1.05fr;
  gap: 2vw;
}

.hero-copy {
  z-index: 4;
  width: min(720px, 100%);
  padding: clamp(22px, 2vw, 34px);
  border: 5px solid var(--ink);
  border-radius: 19px;
  background: rgba(255, 248, 222, .90);
  box-shadow: 14px 18px 0 rgba(4, 28, 39, .28), inset 0 0 0 5px rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  transform: rotate(-.5deg);
}

.eyebrow,
.chapter {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 2.3px;
}

.eyebrow span {
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.5s ease-in-out infinite;
}

h1 {
  margin: 10px 0 3px;
  display: flex;
  flex-direction: column;
  font-size: clamp(70px, 8.1vw, 144px);
  font-weight: 1000;
  line-height: .71;
  letter-spacing: clamp(-9px, -.5vw, -4px);
  text-transform: uppercase;
  transform: skew(-3deg);
}

h1 span:first-child {
  color: #fff;
  -webkit-text-stroke: clamp(3px, .3vw, 6px) var(--ink);
  filter: drop-shadow(7px 8px 0 var(--ink));
}

h1 .outline {
  margin-left: 8%;
  color: var(--blue);
  -webkit-text-stroke: clamp(3px, .3vw, 6px) var(--ink);
  filter: drop-shadow(7px 8px 0 var(--ink));
}

.ticker-line {
  margin: 20px 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-line i {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: var(--ink);
}

.ticker-line strong {
  color: var(--yellow);
  font-size: clamp(37px, 4vw, 67px);
  line-height: 1;
  letter-spacing: -3px;
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(4px 5px 0 var(--ink));
}

.tagline {
  margin: 0 0 22px;
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.45;
}

.tagline b {
  color: var(--deep-blue);
}

.hero-actions,
.community-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

  .hero-actions .wood-button {
    flex: 1 1 180px;
  }

.ca-box {
  width: 100%;
  margin-top: 19px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  cursor: pointer;
  border: 4px solid var(--ink);
  border-radius: 10px;
  background: #fffdf2;
  box-shadow: inset 0 -4px 0 rgba(4,28,39,.1);
  transition: transform .2s ease, background .2s ease;
}

.ca-box:hover {
  transform: rotate(.5deg) scale(1.01);
  background: #fff9c9;
}

.ca-label {
  padding: 6px 9px;
  color: #fff;
  font-weight: 1000;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--red);
}

.ca-value {
  overflow: hidden;
  font-weight: 1000;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-icon {
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  border-radius: 6px;
}

.hero-character-wrap {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(47vw, 850px);
  height: calc(100vh - 130px);
  display: grid;
  place-items: end center;
}

.hero-character {
  position: relative;
  width: 91%;
  animation: hero-float 4.6s ease-in-out infinite;
  transform-origin: 52% 100%;
}

.hero-character img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(14px 22px 0 rgba(4, 28, 39, .23));
}

.character-shadow {
  position: absolute;
  z-index: -1;
  bottom: 4%;
  width: 65%;
  height: 9%;
  border-radius: 50%;
  background: rgba(3, 37, 49, .25);
  filter: blur(5px);
  animation: shadow-pulse 4.6s ease-in-out infinite;
}

.thought-bubble {
  position: absolute;
  z-index: 3;
  top: 15%;
  right: -3%;
  padding: 13px 16px;
  text-align: center;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 1000;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  transform: rotate(7deg);
  animation: thought 3s ease-in-out infinite;
}

.thought-bubble::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 19px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.hero-stamp {
  position: absolute;
  z-index: 3;
  right: -3%;
  bottom: 6%;
  padding: 12px 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 1000;
  text-transform: uppercase;
  border: 4px solid var(--ink);
  background: var(--wood-light);
  box-shadow: 6px 7px 0 rgba(4, 28, 39, .25);
  transform: rotate(-5deg);
}

.hero-stamp b {
  display: block;
  color: var(--red);
}

.seaweed-left,
.seaweed-right {
  position: absolute;
  z-index: -1;
  bottom: -10vh;
  color: #157b4c;
  font-family: serif;
  font-size: 40vh;
  font-weight: 1000;
  -webkit-text-stroke: 5px var(--ink);
  transform-origin: bottom center;
  animation: seaweed 4s ease-in-out infinite alternate;
}

.seaweed-left { left: -6vw; }
.seaweed-right { right: -6vw; animation-delay: -2s; }

.scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: translateX(-50%);
  text-shadow: 1px 2px 0 var(--ink);
}

.scroll-cue b {
  font-size: 25px;
  animation: scroll-cue 1.5s ease-in-out infinite;
}

.lore {
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: auto 1fr auto;
  gap: 22px 5vw;
  background: linear-gradient(180deg, rgba(2, 92, 147, .27), rgba(0, 42, 78, .48));
}

.section-heading {
  align-self: end;
  max-width: 780px;
}

.section-heading .chapter {
  padding: 8px 13px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  box-shadow: 4px 5px 0 rgba(4,28,39,.23);
  transform: rotate(-2deg);
}

h2 {
  margin: 13px 0 0;
  color: #fff;
  font-size: clamp(43px, 5.3vw, 88px);
  line-height: .92;
  letter-spacing: -4px;
  text-transform: uppercase;
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(6px 7px 0 var(--ink));
}

h2 em {
  color: var(--yellow);
  font-style: normal;
}

.lore-grid {
  display: grid;
  gap: 13px;
  align-self: center;
}

.story-card {
  position: relative;
  padding: 16px 20px 16px 83px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: rgba(255,248,222,.91);
  box-shadow: 7px 8px 0 rgba(4,28,39,.24);
}

.story-card:nth-child(2) { transform: translateX(28px) rotate(.5deg); }
.story-card:nth-child(3) { transform: translateX(5px) rotate(-.5deg); }

.story-card p {
  margin: 0;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.45;
}

.story-number {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 1000;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%) rotate(-8deg);
}

.explorer-character {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  width: min(44vw, 760px);
  animation: explorer-swim 5s ease-in-out infinite;
}

.explorer-character img {
  width: 100%;
  display: block;
  filter: drop-shadow(15px 20px 0 rgba(3, 34, 53, .23));
}

.speech-tag {
  position: absolute;
  z-index: 3;
  right: -2%;
  top: 7%;
  padding: 13px 17px;
  font-size: clamp(12px, 1vw, 16px);
  text-align: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 5px 6px 0 rgba(4,28,39,.2);
  transform: rotate(6deg);
}

.speech-tag b { color: var(--red); }

.lore-ribbon {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 18px;
  padding: 13px 20px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  border: 4px solid var(--ink);
  background: var(--wood-light);
  box-shadow: 6px 7px 0 rgba(4,28,39,.25);
  transform: rotate(-.3deg);
}

.lore-ribbon i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
}

.roadmap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3vh, 42px);
  background: linear-gradient(180deg, rgba(0, 73, 121, .44), rgba(0, 28, 54, .66));
}

.section-heading.centered {
  z-index: 2;
  max-width: 950px;
  align-self: center;
  text-align: center;
}

.section-heading.centered h2 {
  font-size: clamp(40px, 4.3vw, 75px);
}

.roadmap-cards {
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: clamp(12px, 1.3vw, 23px);
}

.road-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 59%;
  height: 10px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
}

.road-card {
  position: relative;
  padding: clamp(18px, 1.8vw, 29px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 5px solid var(--ink);
  border-radius: 19px;
  background: rgba(255,248,222,.92);
  box-shadow: 9px 12px 0 rgba(4,28,39,.28);
  transform: rotate(-1.5deg);
  transition: transform .25s ease, background .25s ease;
}

.road-card:nth-child(even) { transform: translateY(18px) rotate(1.5deg); }
.road-card:hover { z-index: 3; transform: translateY(-8px) rotate(0); background: #fffdf0; }
.road-card.featured { background: #fff0a6; }

.phase {
  position: absolute;
  right: 14px;
  top: 11px;
  color: rgba(7,28,39,.18);
  font-size: 38px;
  font-weight: 1000;
}

.road-icon {
  width: 63px;
  height: 63px;
  display: grid;
  place-items: center;
  font-size: 32px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: #c8efff;
  box-shadow: 4px 5px 0 rgba(4,28,39,.2);
}

.road-card h3 {
  margin: 20px 0 8px;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.road-card p {
  flex: 1;
  margin: 0 0 18px;
  font-size: clamp(12px, .9vw, 15px);
  line-height: 1.45;
}

.status {
  padding: 7px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: #c7c9c1;
}

.status.done { background: #8eda9b; }
.status.active { color: #fff; background: var(--red); animation: pulse 1.4s ease-in-out infinite; }

.community {
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  background: radial-gradient(circle at 77% 48%, rgba(255,225,93,.22), transparent 30%), linear-gradient(180deg, rgba(0, 58, 100, .43), rgba(0, 25, 45, .75));
}

.community-card {
  align-self: center;
  z-index: 3;
  width: min(720px, 100%);
  padding: clamp(25px, 3vw, 48px);
  border: 5px solid var(--ink);
  border-radius: 20px;
  background: rgba(255,248,222,.92);
  box-shadow: 14px 17px 0 rgba(4,28,39,.3);
  transform: rotate(.5deg);
}

.community-card h2 {
  margin: 18px 0;
  color: #fff;
  font-size: clamp(50px, 5.7vw, 100px);
}

.community-card p {
  max-width: 570px;
  margin: 0 0 24px;
  font-size: clamp(14px, 1.2vw, 19px);
  line-height: 1.5;
}

.community-actions .wood-button {
  flex: 1 1 150px;
  padding-inline: 15px;
  font-size: 13px;
}

.ca-box.compact {
  margin-top: 18px;
}

.guardian-character {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(47vw, 820px);
  animation: guardian-bob 4s ease-in-out infinite;
}

.guardian-character img {
  position: relative;
  z-index: 2;
  width: 100%;
  display: block;
  filter: drop-shadow(17px 22px 0 rgba(3, 28, 40, .25));
}

.egg-glow {
  position: absolute;
  z-index: 1;
  inset: 18% 16% 13%;
  border-radius: 50%;
  background: rgba(255, 224, 85, .46);
  filter: blur(32px);
  animation: glow 2s ease-in-out infinite alternate;
}

footer {
  position: absolute;
  left: max(5vw, calc((100vw - 1600px) / 2));
  right: max(5vw, calc((100vw - 1600px) / 2));
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 2px 2px 0 var(--ink);
}

.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 25px;
  padding: 12px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  border: 4px solid var(--ink);
  border-radius: 9px;
  background: var(--green);
  box-shadow: 0 6px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 30px);
  transition: opacity .25s ease, transform .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-card.reveal:nth-child(2).visible { transform: translateX(28px) rotate(.5deg); }
.story-card.reveal:nth-child(3).visible { transform: translateX(5px) rotate(-.5deg); }
.road-card.reveal.visible { transform: rotate(-1.5deg); }
.road-card.reveal:nth-child(even).visible { transform: translateY(18px) rotate(1.5deg); }

@keyframes egg-top-hatch {
  0%, 13%, 25% { transform: translate(-50%, -50%) rotate(0); }
  16% { transform: translate(-50%, calc(-50% - 3px)) rotate(-4deg); }
  19% { transform: translate(-50%, calc(-50% + 2px)) rotate(4deg); }
  29% { transform: translate(-50%, calc(-50% - 6px)) rotate(-7deg); }
  33% { transform: translate(-50%, calc(-50% + 3px)) rotate(8deg); }
  37% { transform: translate(-50%, calc(-50% - 8px)) rotate(-10deg); }
  41% { transform: translate(-50%, calc(-50% + 4px)) rotate(8deg); }
  48% { transform: translate(-50%, -50%) rotate(0); }
  58%, 100% { transform: translate(-145%, -105%) rotate(-47deg); }
}

@keyframes egg-bottom-hatch {
  0%, 13%, 25% { transform: translate(-50%, -50%) rotate(0); }
  16% { transform: translate(-50%, calc(-50% + 2px)) rotate(3deg); }
  19% { transform: translate(-50%, calc(-50% - 2px)) rotate(-3deg); }
  29% { transform: translate(-50%, calc(-50% + 5px)) rotate(5deg); }
  33% { transform: translate(-50%, calc(-50% - 3px)) rotate(-7deg); }
  37% { transform: translate(-50%, calc(-50% + 7px)) rotate(8deg); }
  41% { transform: translate(-50%, calc(-50% - 2px)) rotate(-6deg); }
  48% { transform: translate(-50%, -50%) rotate(0); }
  58%, 100% { transform: translate(44%, 18%) rotate(39deg); }
}

@keyframes crack-appear {
  0%, 24% { opacity: 0; }
  27%, 48% { opacity: 1; }
  54%, 100% { opacity: 0; }
}

@keyframes hatch-character {
  0%, 47% {
    opacity: 0;
    transform: translate(-50%, -45%) scale(.12) rotate(-8deg);
  }
  54% {
    opacity: 1;
    transform: translate(-50%, -68%) scale(.58) rotate(8deg);
  }
  66% {
    opacity: 1;
    transform: translate(-50%, -57%) scale(1.05) rotate(-3deg);
  }
  76% {
    opacity: 1;
    transform: translate(-50%, -61%) scale(.94) rotate(2deg);
  }
  86%, 100% {
    opacity: 1;
    transform: translate(-50%, -59%) scale(1) rotate(0);
  }
}

@keyframes hatch-impact {
  0%, 45% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  55% { opacity: .85; }
  78%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(3.5); }
}

@keyframes hatch-progress {
  0% { width: 0; }
  24% { width: 28%; }
  48% { width: 54%; }
  62% { width: 82%; }
  100% { width: 100%; }
}

@keyframes hatch-status {
  0%, 4% { opacity: 0; transform: translateY(5px); }
  8%, 23% { opacity: 1; transform: translateY(0); }
  29%, 100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes hatch-bubble {
  from { opacity: 0; transform: translateY(0) translateX(0) scale(.4); }
  15% { opacity: .7; }
  70% { opacity: .5; transform: translateY(-75vh) translateX(22px) scale(1); }
  to { opacity: 0; transform: translateY(-110vh) translateX(-14px) scale(1.2); }
}

@keyframes hatch-rays {
  0% { opacity: .25; transform: rotate(-2deg); }
  55% { opacity: .45; }
  68%, 100% { opacity: 1; transform: rotate(3deg) scale(1.07); }
}

@keyframes hatch-water {
  to { background-position: 0 136px; }
}

@keyframes bubble-up {
  0% { transform: translate(0, 0) scale(.55); opacity: 0; }
  10% { opacity: .7; }
  55% { transform: translate(28px, -55vh) scale(.9); }
  100% { transform: translate(-16px, -115vh) scale(1.1); opacity: 0; }
}

@keyframes rays {
  from { transform: translateX(-2%) skewX(-3deg); opacity: .55; }
  to { transform: translateX(2%) skewX(3deg); opacity: .9; }
}

@keyframes sheen {
  to { background-position: 50% 180px; }
}

@keyframes fish-swim {
  from { left: -15%; transform: scaleX(1); }
  48% { transform: scaleX(1); }
  50% { left: 110%; transform: scaleX(-1); }
  98% { transform: scaleX(-1); }
  to { left: -15%; transform: scaleX(1); }
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}

@keyframes shadow-pulse {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(.9); opacity: .45; }
}

@keyframes thought {
  0%, 100% { transform: rotate(7deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-8px); }
}

@keyframes seaweed {
  from { transform: rotate(-3deg); }
  to { transform: rotate(4deg); }
}

@keyframes scroll-cue {
  50% { transform: translateY(6px); }
}

@keyframes explorer-swim {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(15px, -18px) rotate(2deg); }
}

@keyframes guardian-bob {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes glow {
  to { transform: scale(1.12); opacity: .65; }
}

@keyframes pulse {
  50% { transform: scale(1.1); }
}

@media (max-width: 1080px) {
  .topbar {
    gap: 14px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero-copy {
    padding: 21px;
  }

  .hero-character-wrap {
    width: 50vw;
  }

  .roadmap-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .road-card:nth-child(even),
  .road-card.reveal:nth-child(even).visible {
    transform: rotate(1deg);
  }

  .road-line {
    display: none;
  }
}

@media (max-width: 760px) {
  html {
    scroll-snap-type: none;
  }

  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    height: 66px;
    padding: 6px 10px;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand b {
    display: none;
  }

  .nav-dive {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    padding: 9px 12px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    border: 3px solid var(--ink);
    border-radius: 6px;
    background: var(--yellow);
  }

  .nav-links {
    position: fixed;
    top: 86px;
    left: 10px;
    right: 10px;
    padding: 18px;
    display: grid;
    gap: 9px;
    opacity: 0;
    visibility: hidden;
    border: 4px solid var(--ink);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 8px 0 rgba(4, 28, 39, .28);
    transform: translateY(-15px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }

  .menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px;
    text-align: center;
    border: 3px solid var(--ink);
    border-radius: 7px;
    background: #f4c760;
  }

  .scene {
    min-height: 100svh;
    height: auto;
    padding: 100px 14px 55px;
  }

  .hero,
  .lore,
  .community {
    display: flex;
    flex-direction: column;
  }

  .hero {
    justify-content: center;
    gap: 16px;
  }

  .hero-copy {
    order: 2;
    padding: 19px 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .wood-button {
    width: 100%;
    min-height: 50px;
  }

  h1 {
    font-size: clamp(58px, 22vw, 90px);
  }

  .ticker-line {
    margin: 15px 0 9px;
  }

  .ticker-line strong {
    font-size: 39px;
  }

  .hero-character-wrap {
    order: 1;
    align-self: center;
    width: min(76vw, 420px);
    height: auto;
  }

  .hero-stamp {
    right: -8%;
    font-size: 9px;
  }

  .thought-bubble {
    top: 4%;
    right: -12%;
    font-size: 9px;
  }

  .scroll-cue,
  .seaweed-left,
  .seaweed-right {
    display: none;
  }

  h2 {
    font-size: clamp(43px, 14vw, 68px);
  }

  .lore {
    gap: 18px;
  }

  .lore .section-heading {
    order: 1;
  }

  .explorer-character {
    order: 2;
    width: min(80vw, 450px);
  }

  .lore-grid {
    order: 3;
  }

  .story-card:nth-child(2),
  .story-card.reveal:nth-child(2).visible,
  .story-card:nth-child(3),
  .story-card.reveal:nth-child(3).visible {
    transform: none;
  }

  .lore-ribbon {
    order: 4;
    display: grid;
    text-align: center;
  }

  .lore-ribbon i {
    display: none;
  }

  .roadmap {
    padding-top: 100px;
  }

  .roadmap-cards {
    grid-template-columns: 1fr;
  }

  .road-card,
  .road-card.reveal.visible,
  .road-card:nth-child(even),
  .road-card.reveal:nth-child(even).visible {
    transform: none;
  }

  .community {
    padding-bottom: 100px;
  }

  .community-card {
    order: 2;
    padding: 21px 16px;
  }

  .community-card h2 {
    font-size: clamp(45px, 15vw, 70px);
  }

  .guardian-character {
    order: 1;
    align-self: center;
    width: min(78vw, 450px);
  }

  footer {
    left: 14px;
    right: 14px;
    bottom: 13px;
    justify-content: center;
    text-align: center;
  }

  footer span,
  footer a {
    display: none;
  }

}

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