@font-face {
  font-family: "Storybook Title";
  src: url("./fonts/storybook_title.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Storybook";
  src: url("./fonts/storybook_body.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Storybook";
  src: url("./fonts/storybook_body_bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --sky-mist: #eaf5fa;
  --parchment: #fbf3df;
  --parchment-deep: #f2e4c4;
  --wood-light: #d1995b;
  --wood: #9a6030;
  --wood-dark: #543117;
  --ink: #342012;
  --ink-muted: #674b36;
  --cream: #fffaf0;
  --sea-bright: #2093b5;
  --sea-deep: #114c6a;
  --gold-top: #ffe074;
  --gold: #f2b435;
  --gold-bottom: #c47a16;
  --meadow-top: #8ad662;
  --meadow: #59a93b;
  --meadow-bottom: #387522;

  --font-display: "Storybook Title", Georgia, serif;
  --font-body: "Storybook", "Trebuchet MS", system-ui, sans-serif;

  --text-heading: clamp(1.85rem, 3.4vw, 2.75rem);
  --text-body: 1.05rem;
  --text-sm: 0.9rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--parchment);
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ================= NAVIGATION ================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  color: var(--cream);
  transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out);
  border-bottom: 2px solid transparent;
}
.site-nav.scrolled {
  background-color: rgba(251, 243, 223, 0.96);
  color: var(--ink);
  border-bottom-color: var(--wood-light);
  box-shadow: 0 8px 26px rgba(52, 32, 18, 0.14);
  backdrop-filter: blur(8px);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(17, 76, 106, 0.55);
}
.site-nav.scrolled .nav-brand { text-shadow: none; }
.nav-brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(52, 32, 18, 0.3));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  opacity: 0.94;
  text-shadow: 0 1px 8px rgba(17, 76, 106, 0.6);
  transition: color 180ms var(--ease-out), opacity 180ms var(--ease-out);
}
.site-nav.scrolled .nav-links a { text-shadow: none; }
.nav-links a:hover { color: var(--gold-top); opacity: 1; }
.site-nav.scrolled .nav-links a:hover { color: var(--sea-bright); }

/* ================= TACTILE LAST CAST BUTTONS ================= */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 2px solid var(--wood-dark);
  border-radius: 999px;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-display);
  font-size: var(--text-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-top) 0%, var(--gold) 52%, var(--gold-bottom) 100%);
  box-shadow: 0 4px 0 var(--wood-dark), 0 10px 22px rgba(52, 32, 18, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--wood-dark), 0 14px 28px rgba(52, 32, 18, 0.34), inset 0 2px 0 rgba(255, 255, 255, 0.7);
}
.btn-gold:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--wood-dark), 0 4px 10px rgba(52, 32, 18, 0.25);
}
.btn-gold-sm {
  padding: 0.48rem 1.15rem;
  font-size: var(--text-sm);
  box-shadow: 0 3px 0 var(--wood-dark), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--wood-dark), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.btn-meadow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid var(--wood-dark);
  border-radius: 999px;
  padding: 0.62rem 1.35rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--cream);
  background: linear-gradient(180deg, var(--meadow-top) 0%, var(--meadow) 52%, var(--meadow-bottom) 100%);
  box-shadow: 0 3px 0 var(--wood-dark), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn-meadow:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--wood-dark); }
.btn-meadow:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wood-dark); }

/* ================= HERO STAGE (SUNLIT, FULL-BLEED) ================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-color: var(--sea-deep);
}
.hero-art {
  position: absolute;
  inset: 0;
  background: url("./img/hero_fishing.webp") center 36% / cover no-repeat;
  transform: scale(1.03);
  transition: transform 1.2s var(--ease-out);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(16, 76, 106, 0.42) 0%,
      rgba(16, 76, 106, 0.04) 22%,
      rgba(16, 76, 106, 0.0) 50%,
      rgba(15, 65, 92, 0.62) 76%,
      rgba(14, 58, 82, 0.94) 100%);
}
.hero-sunmotes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-sunmotes i {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 245, 198, 0.85);
  box-shadow: 0 0 12px 3px rgba(255, 234, 150, 0.65);
  animation: moteFloat var(--dur, 7s) ease-in-out var(--del, 0s) infinite;
}
@keyframes moteFloat {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.6); }
  50% { opacity: 0.9; transform: translateY(-28px) scale(1); }
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 5.5rem 0 clamp(2.8rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--cream);
}
.hero-crest {
  width: clamp(190px, 24vw, 290px);
  height: auto;
  margin-bottom: 0.45rem;
  filter: drop-shadow(0 12px 26px rgba(17, 50, 72, 0.55));
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream);
  text-shadow: 0 4px 20px rgba(14, 48, 68, 0.72), 0 2px 0 var(--wood-dark);
  margin-bottom: 0.7rem;
}
.hero-lead {
  max-width: 52ch;
  font-size: var(--text-body);
  color: rgba(255, 250, 240, 0.95);
  text-shadow: 0 2px 12px rgba(12, 46, 66, 0.8);
  margin-bottom: 1.55rem;
}
.hero-meta {
  margin-top: 0.95rem;
  font-size: var(--text-sm);
  color: var(--gold-top);
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(12, 46, 66, 0.85);
}

/* ================= WAVE SEPARATORS ================= */
.wave-edge {
  display: block;
  width: 100%;
  height: clamp(32px, 4.5vw, 58px);
  margin-top: -1px;
}

/* ================= SHARED SECTIONS ================= */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
  scroll-margin-top: 68px;
}
.wrap {
  width: min(1160px, 92vw);
  margin: 0 auto;
}
.sec-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.sec-head p {
  font-size: var(--text-body);
  color: var(--ink-muted);
}

/* ================= STORYBOOK CHRONICLE ================= */
.sec-story {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 245, 220, 0.65) 0%, transparent 65%),
    linear-gradient(180deg, #6e4222 0%, #563218 100%);
  color: var(--cream);
}
.sec-story .sec-head h2 {
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(40, 20, 8, 0.6);
}
.sec-story .sec-head p {
  color: rgba(251, 243, 223, 0.88);
}

.book-cover {
  background: linear-gradient(180deg, #965d30 0%, #754520 100%);
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: clamp(0.65rem, 1.4vw, 1.05rem);
  box-shadow: 0 24px 54px rgba(24, 11, 4, 0.48), inset 0 2px 0 rgba(255, 232, 175, 0.35);
}
.book-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 16px minmax(0, 1fr);
  background: var(--parchment);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--wood-dark);
  color: var(--ink);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.book-spread.turning {
  opacity: 0.45;
  transform: scale(0.992);
}
.book-page {
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
  background:
    linear-gradient(180deg, rgba(251, 243, 223, 0.9), rgba(246, 233, 205, 0.92)),
    url("./img/parchment.webp") center / cover;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.book-spine {
  background: linear-gradient(90deg, rgba(84, 49, 23, 0.22), rgba(84, 49, 23, 0.42) 50%, rgba(84, 49, 23, 0.18));
  border-left: 1px solid rgba(154, 96, 48, 0.4);
  border-right: 1px solid rgba(154, 96, 48, 0.4);
}
.book-art-frame {
  border: 3px solid var(--wood-light);
  border-radius: 10px;
  padding: 5px;
  background: var(--parchment-deep);
  box-shadow: 0 6px 18px rgba(52, 32, 18, 0.14);
}
.book-art-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.book-caption {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  text-align: center;
  font-style: italic;
}
.book-folio {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wood);
  border-top: 1px solid rgba(154, 96, 48, 0.25);
  padding-top: 0.7rem;
}
.book-chapter-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-heading);
  line-height: 1.12;
  color: var(--ink);
  padding-bottom: 0.7rem;
  border-bottom: 2px solid rgba(196, 134, 62, 0.38);
}
.book-narration {
  font-size: var(--text-body);
  color: var(--ink);
  line-height: 1.7;
}
.book-quote {
  background: #fff7e2;
  border-left: 4px solid var(--sea-bright);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.15rem;
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--sea-deep);
}
.book-nav-bar {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}
.book-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  background: rgba(40, 20, 8, 0.45);
  border: 2px solid var(--wood-light);
  border-radius: 999px;
  padding: 4px;
  gap: 3px;
}
.book-tab {
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.book-tab:hover { background: rgba(255, 224, 116, 0.2); }
.book-tab[aria-selected="true"] {
  background: linear-gradient(180deg, var(--gold-top), var(--gold));
  color: var(--ink);
}
.book-step-controls {
  display: inline-flex;
  gap: 0.6rem;
}
.book-step-btn {
  border: 2px solid var(--wood-light);
  border-radius: 999px;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  padding: 0.5rem 1.15rem;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.book-step-btn:hover { background: var(--gold-top); transform: translateY(-1px); }
.book-step-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ================= FEATURES (COZY WOOD & PARCHMENT) ================= */
.sec-features {
  background-color: var(--parchment);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.feature-item {
  background: var(--cream);
  border: 2px solid var(--wood-light);
  border-radius: 18px;
  padding: 1.6rem 1.55rem;
  box-shadow: 0 5px 0 rgba(154, 96, 48, 0.22), 0 12px 24px rgba(52, 32, 18, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--wood);
}
.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8e4 0%, #f1dfb7 100%);
  border: 2px solid var(--wood-light);
  display: grid;
  place-items: center;
  padding: 8px;
}
.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
  line-height: 1.2;
}
.feature-item p {
  font-size: var(--text-body);
  color: var(--ink-muted);
}

/* ================= WORLD SHOWCASE (INTERACTIVE HARBOR FRAME) ================= */
.sec-world {
  background: linear-gradient(180deg, var(--sky-mist) 0%, #d9eef7 100%);
}
.world-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--cream);
  border: 2px solid var(--wood-light);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 1.6rem;
  box-shadow: 0 4px 0 rgba(154, 96, 48, 0.18);
}
.world-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  padding: 0.52rem 1.2rem;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.world-tab:hover { color: var(--ink); }
.world-tab[aria-selected="true"] {
  background: linear-gradient(180deg, var(--gold-top), var(--gold));
  color: var(--ink);
  box-shadow: 0 2px 0 var(--wood-dark);
}

.world-stage {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood) 100%);
  border: 3px solid var(--wood-dark);
  border-radius: 22px;
  padding: clamp(0.65rem, 1.3vw, 1rem);
  box-shadow: 0 20px 44px rgba(17, 76, 106, 0.18);
}
.world-viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--wood-dark);
  background: var(--parchment);
}
.world-viewport img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 220ms var(--ease-out);
}
.world-viewport img.swapping { opacity: 0.25; }
.world-caption-bar {
  margin-top: 0.8rem;
  background: var(--parchment);
  border: 2px solid var(--wood-dark);
  border-radius: 12px;
  padding: 1.05rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}
.world-caption-bar h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--ink);
}
.world-caption-bar p {
  font-size: var(--text-body);
  color: var(--ink-muted);
  max-width: 62ch;
}

/* ================= EARLY CATCH FIELD GUIDE ================= */
.sec-fish {
  background:
    linear-gradient(180deg, rgba(251, 243, 223, 0.94), rgba(244, 232, 204, 0.95)),
    url("./img/parchment.webp") center / cover;
}
.fish-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.fish-bar .sec-head { margin-bottom: 0; }
.fish-filter {
  display: inline-flex;
  gap: 4px;
  background: var(--cream);
  border: 2px solid var(--wood-light);
  border-radius: 999px;
  padding: 4px;
}
.fish-filter button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.45rem 1.05rem;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.fish-filter button[aria-pressed="true"] {
  background: var(--sea-bright);
  color: var(--cream);
}

.fish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.fish-card {
  background: var(--cream);
  border: 2px solid var(--wood-light);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 0 rgba(154, 96, 48, 0.16);
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.fish-card:hover { transform: translateY(-3px); border-color: var(--sea-bright); }
.fish-thumb {
  height: 118px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, #e7f6fb 0%, #cde9f3 100%);
  display: grid;
  place-items: center;
  padding: 0.7rem;
}
.fish-card[data-time="night"] .fish-thumb {
  background: radial-gradient(circle at 50% 50%, #1c5576 0%, #0e324a 100%);
}
.fish-thumb img {
  max-height: 92px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(17, 76, 106, 0.25));
}
.fish-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.2;
}
.fish-meta {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--sea-deep);
}
.fish-desc {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.48;
}

/* ================= GRAND OPENING CTA ================= */
.sec-closing {
  position: relative;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  overflow: hidden;
  text-align: center;
  color: var(--cream);
}
.closing-bg {
  position: absolute;
  inset: 0;
  background: url("./img/prologue_05_awakening.webp") center 42% / cover no-repeat;
}
.closing-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 76, 106, 0.56) 0%, rgba(16, 76, 106, 0.74) 100%);
}
.closing-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.closing-inner img {
  width: clamp(160px, 22vw, 230px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(12, 42, 62, 0.5));
}
.closing-inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-heading);
  text-shadow: 0 3px 16px rgba(12, 42, 62, 0.7);
}
.closing-inner p {
  max-width: 48ch;
  font-size: var(--text-body);
  color: rgba(255, 250, 240, 0.94);
  margin-bottom: 0.6rem;
}

.site-footer {
  background: var(--wood-dark);
  color: rgba(251, 243, 223, 0.8);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: var(--text-sm);
  border-top: 3px solid var(--wood-light);
}

/* ================= CINEMA OPENING TRAILER MODAL ================= */
.cinema-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #071926;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
}
.cinema-modal.open { opacity: 1; }
.cinema-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cin-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.3s ease;
}
.cin-shot.on { opacity: 1; }
.cin-shot-img {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.kb-in    { animation: kbIn var(--d, 6.5s) ease-out forwards; }
.kb-out   { animation: kbOut var(--d, 6.5s) ease-out forwards; }
.kb-left  { animation: kbLeft var(--d, 6.5s) ease-in-out forwards; }
.kb-right { animation: kbRight var(--d, 6.5s) ease-in-out forwards; }
.kb-up    { animation: kbUp var(--d, 6.5s) ease-in-out forwards; }
@keyframes kbIn    { from { transform: scale(1.02); } to { transform: scale(1.14); } }
@keyframes kbOut   { from { transform: scale(1.15); } to { transform: scale(1.03); } }
@keyframes kbLeft  { from { transform: scale(1.1) translateX(2.5%); } to { transform: scale(1.1) translateX(-2.5%); } }
@keyframes kbRight { from { transform: scale(1.1) translateX(-2.5%); } to { transform: scale(1.1) translateX(2.5%); } }
@keyframes kbUp    { from { transform: scale(1.12) translateY(2.5%); } to { transform: scale(1.08) translateY(-2%); } }
.cinema-stage.shake { animation: stormShake 0.55s linear 2; }
@keyframes stormShake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 3px); }
  45% { transform: translate(5px, -3px); }
  70% { transform: translate(-4px, -2px); }
}
.cin-rain {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.9s ease;
  background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(210, 232, 255, 0.2) 18px 19px, transparent 19px 44px);
  animation: rainFall 0.35s linear infinite;
}
.cin-rain.on { opacity: 1; }
@keyframes rainFall { from { background-position: 0 0; } to { background-position: -38px 110px; } }
.cin-flash {
  position: absolute;
  inset: 0;
  background: #e8f1ff;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.cin-flash.go { animation: lightning 1.2s ease-out; }
@keyframes lightning {
  0% { opacity: 0; }
  6% { opacity: 0.85; }
  14% { opacity: 0.1; }
  20% { opacity: 0.65; }
  45% { opacity: 0; }
}
.cin-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(10, 30, 44, 0.55) 0%, transparent 24%, transparent 56%, rgba(10, 28, 42, 0.86) 100%);
}
.cin-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 7vh;
  background: #221309;
  border-color: var(--gold);
  z-index: 5;
}
.cin-bar.top { top: 0; border-bottom: 2px solid rgba(242, 180, 53, 0.55); }
.cin-bar.bottom { bottom: 0; border-top: 2px solid rgba(242, 180, 53, 0.55); }

.cin-hud {
  position: absolute;
  top: calc(7vh + 14px);
  left: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cin-badge {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--gold-top);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.cin-controls {
  display: flex;
  gap: 0.5rem;
}
.cin-btn {
  border: 2px solid rgba(251, 243, 223, 0.55);
  border-radius: 999px;
  background: rgba(34, 19, 9, 0.68);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  padding: 0.4rem 1rem;
  backdrop-filter: blur(4px);
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.cin-btn:hover { background: rgba(84, 49, 23, 0.92); border-color: var(--gold-top); }

.cin-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(7vh + 3.6vh);
  z-index: 6;
  text-align: center;
  padding: 0 clamp(1.2rem, 6vw, 4rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.cin-caption.show { opacity: 1; transform: none; }
.cin-caption h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  color: var(--cream);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.45rem;
}
.cin-caption p {
  max-width: 58ch;
  margin: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 250, 240, 0.95);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.cin-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7vh;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 7;
}
.cin-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sea-bright), var(--gold-top));
  transition: width 350ms linear;
}

.cin-end {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 50%, #1a6386 0%, #0e3d59 55%, #082032 100%);
}
.cin-end img {
  width: clamp(210px, 34vw, 340px);
  height: auto;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 12px 34px rgba(10, 32, 48, 0.6));
}
.cin-end h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-heading);
  margin-bottom: 0.5rem;
}
.cin-end p {
  max-width: 44ch;
  margin-bottom: 1.5rem;
  color: rgba(255, 250, 240, 0.9);
}

/* ================= REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .book-spread { grid-template-columns: 1fr; }
  .book-spine { height: 10px; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-art { background-position: 34% 35%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
}
