:root {
  --ink: #18324c;
  --night: #13263e;
  --deep: #203e5c;
  --blue: #2d6280;
  --water: #5fa4ad;
  --seafoam: #b8d9d1;
  --cream: #fff8e9;
  --paper: #fffdf7;
  --gold: #f2b74b;
  --coral: #df6557;
  --rust: #a7433d;
  --shadow: 0 18px 60px rgba(19, 38, 62, 0.14);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-rounded, "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  line-height: 1.55;
}
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: white; padding: .7rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; padding: .65rem clamp(1rem, 4vw, 3rem);
  color: white; background: rgba(19,38,62,.96); backdrop-filter: blur(14px);
}
.brand, .quiet-button, .icon-button, .text-button { border: 0; background: transparent; cursor: pointer; }
.brand { display: flex; align-items: center; gap: .65rem; color: white; font-weight: 800; letter-spacing: .01em; }
.brand-mark-image { width: 38px; height: 38px; object-fit: contain; }
.quiet-button { color: white; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: .45rem .8rem; font-size: .85rem; }
.grownup-panel { position: sticky; top: 64px; z-index: 19; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1rem, 6vw, 7rem); color: white; background: #294b67; box-shadow: var(--shadow); }
.grownup-panel[hidden] { display: none; }
.grownup-panel h2, .grownup-panel p { margin: .15rem 0; }
.grownup-panel .icon-button { color: white; font-size: 2rem; align-self: flex-start; }

main { min-height: 86vh; }
.screen { display: none; min-height: calc(100vh - 64px); animation: enter .5s ease both; }
.screen.active { display: grid; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.welcome-screen { grid-template-columns: 1.1fr .9fr; background: var(--cream); }
.hero-art { position: relative; min-height: calc(100vh - 64px); overflow: hidden; isolation: isolate; background: #7aa3aa url("assets/crossing-layered-bg-v2.jpg") center / cover no-repeat; }
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2.2s ease;
}
.hero-art::before {
  background:
    linear-gradient(to bottom, rgba(10, 24, 59, .83) 0%, rgba(28, 52, 91, .7) 38%, rgba(126, 72, 79, .34) 65%, rgba(10, 26, 48, .56) 100%);
  mix-blend-mode: multiply;
}
.hero-art::after {
  background-image:
    radial-gradient(circle at 11% 12%, #fff8d8 0 1.5px, transparent 2px),
    radial-gradient(circle at 27% 20%, #fff8d8 0 1px, transparent 1.7px),
    radial-gradient(circle at 43% 9%, #fff8d8 0 1.5px, transparent 2px),
    radial-gradient(circle at 67% 17%, #fff8d8 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 8%, #fff8d8 0 1.4px, transparent 2px),
    radial-gradient(circle at 94% 23%, #fff8d8 0 1px, transparent 1.8px);
  filter: drop-shadow(0 0 4px rgba(255, 240, 176, .9));
}
.hero-art.evening::before { opacity: 1; }
.hero-art.evening::after { opacity: .96; }
.hero-art.evening-arriving::before { animation: eveningSweep 2.4s ease both; }
.hero-art.evening-arriving::after { animation: starsArrive 2.4s ease both; }
@keyframes eveningSweep { from { opacity: 0; transform: translateY(-8%); } to { opacity: 1; transform: none; } }
@keyframes starsArrive { 0%,35% { opacity: 0; } 100% { opacity: .96; } }
.sun { position: absolute; top: 17%; right: 18%; width: 110px; height: 110px; border-radius: 50%; background: #ffe7a5; box-shadow: 0 0 90px #ffe2a7; }
.far-shore { position: absolute; left: -8%; right: -8%; top: 40%; height: 18%; background: #596f65; border-radius: 50% 55% 0 0; clip-path: polygon(0 65%,12% 30%,23% 62%,37% 18%,49% 56%,67% 12%,82% 45%,100% 22%,100% 100%,0 100%); }
.water { position: absolute; left: -10%; width: 120%; background: repeating-radial-gradient(ellipse at 50% 0, transparent 0 18px, rgba(255,255,255,.22) 19px 21px, transparent 22px 37px); }
.water-back { top: 50%; height: 32%; animation: drift 9s linear infinite; }
.water-front { top: 69%; height: 38%; transform: scale(1.2); animation: drift 7s linear infinite reverse; }
@keyframes drift { to { translate: 4% 0; } }
.hero-boat { position: absolute; z-index: 3; left: 25%; top: 49%; width: 48%; height: 32%; transform: rotate(-2deg); animation: float 3.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(8px) rotate(1deg); } }
.hero-hull, .hull { position: absolute; left: 8%; right: 2%; bottom: 5%; height: 30%; background: #7b3f31; border-radius: 6px 8px 55% 48%; box-shadow: inset 0 -9px rgba(70,32,26,.25); }
.hero-mast, .mast { position: absolute; left: 48%; bottom: 28%; width: 7px; height: 66%; background: #5a382c; border-radius: 5px; }
.hero-sail, .sail { position: absolute; left: 50%; bottom: 43%; width: 42%; height: 53%; background: #fff2d2; clip-path: polygon(0 0, 95% 86%, 0 100%); filter: drop-shadow(4px 5px 0 rgba(0,0,0,.08)); }
.hero-people, .people { position: absolute; left: 18%; right: 8%; bottom: 26%; display: flex; justify-content: space-around; }
.hero-people i, .people i { position: relative; width: 9%; aspect-ratio: .55; background: #a94f42; border-radius: 50% 50% 12% 12%; }
.hero-people i::before, .people i::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; left: 5%; top: -42%; border-radius: 50%; background: #9b6246; }
.welcome-copy { align-self: center; padding: clamp(2rem, 7vw, 7rem); max-width: 720px; }
.welcome-brand-logo { display: block; width: min(310px, 78%); height: auto; margin: 0 0 1.5rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--coral); font-size: .77rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; color: var(--night); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 6.5vw, 7.5rem); font-weight: 700; letter-spacing: -.055em; line-height: .91; }
.dek { max-width: 35rem; margin: 1.6rem 0 2rem; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.primary-button, .secondary-button, .speak-button, .reveal-truth { border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; min-height: 54px; padding: .85rem 1.25rem; border-radius: 16px; color: white; background: var(--night); font-weight: 800; box-shadow: 0 8px 22px rgba(19,38,62,.22); }
.primary-button span { font-size: 1.35rem; }
.primary-button:hover:not(:disabled), .secondary-button:hover, .speak-button:hover, .reveal-truth:hover { transform: translateY(-2px); }
.primary-button:focus-visible, .secondary-button:focus-visible, button:focus-visible, input:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.primary-button:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.primary-button.warm { color: var(--night); background: var(--gold); }
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin: 0;
  padding: .8rem 1rem;
  border: 2px solid #b8c9cf;
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.page-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.25rem; }
.activity-screen > .page-nav,
.create-screen > .page-nav,
.reflection-screen > .page-nav,
.live-screen > .page-nav { justify-self: center; }
.wonder-copy .page-nav,
.completion-content .page-nav { justify-content: center; }
.back-button:hover { transform: translateY(-2px); border-color: var(--blue); background: white; }
.back-button:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.reflection-screen .back-button,
.wonder-screen .back-button,
.live-screen .back-button,
.completion-screen .back-button { color: white; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.09); }
.reflection-screen .back-button:hover,
.wonder-screen .back-button:hover,
.live-screen .back-button:hover,
.completion-screen .back-button:hover { border-color: white; background: rgba(255,255,255,.17); }
.completion-note { color: #597086; font-size: .9rem; }

/* The story worlds use richly illustrated scenes with discoverable, tappable details. */
.story-world { isolation: isolate; }
.story-world::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 -120px 90px -80px rgba(13, 34, 49, .42);
}
.scene-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  transition: background-image 1.1s ease, transform .5s ease;
}
.departure-photo { background-image: url("assets/departure-shore-bg-v1.jpg"); }
.storm-photo { background-image: url("assets/storm-layered-bg-v5.jpg"); }
.sleeping-photo { background-image: url("assets/sleeping-redraw-bg-v1.jpg"); }
.care-photo { background-image: url("assets/care-wake-closeup-v1.jpg"); }
.command-photo { background-image: url("assets/command-storm-calm-jesus-v1.jpg"); }
.command-scene.sky-cleared:not(.calm) .command-photo { background-image: url("assets/command-sky-cleared-v1.jpg"); }
.command-scene.calm .command-photo { background-image: url("assets/calm-layered-bg-v2.jpg"); }
.story-hotspot {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%;
  color: var(--night);
  background: rgba(255, 215, 102, .92);
  box-shadow: 0 0 0 7px rgba(255, 220, 122, .18), 0 5px 16px rgba(11,28,42,.32);
  cursor: pointer;
  animation: hotspotPulse 2.6s ease-in-out infinite;
}
.scene-layer {
  position: absolute;
  z-index: 3;
  display: block;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center;
  will-change: transform, opacity;
}
.layered-fish {
  left: 13%;
  bottom: 18%;
  width: clamp(86px, 16%, 160px);
  filter: drop-shadow(0 5px 4px rgba(9, 42, 57, .5)) drop-shadow(0 0 3px rgba(255, 225, 145, .48));
}
.layered-boat {
  right: 5.5%;
  top: 18%;
  width: clamp(64px, 11.5%, 130px);
  filter: drop-shadow(0 4px 3px rgba(74, 44, 31, .28));
}
.scene-fish {
  left: 3.5%;
  bottom: 14%;
  width: clamp(66px, 12.5%, 132px);
  filter: drop-shadow(0 5px 4px rgba(7, 32, 48, .48));
}
.storm-layered-fish { left: 8%; bottom: 16%; width: clamp(76px, 14%, 144px); transform: scaleX(-1); }
.command-layered-fish { left: 13%; bottom: 18%; width: clamp(72px, 13%, 138px); }
.scene-fish.fish-dive { animation: fishDive 1.85s ease-in-out both; }
.storm-layered-fish.fish-dive { animation: stormFishDive 1.85s cubic-bezier(.25,.72,.3,1) both; }
.scene-fish.fish-hide { animation: fishHide 1.85s ease-in-out both; }
.scene-fish.fish-surface { animation: fishSurface 1.85s ease-in-out both; }
@keyframes fishDive { 0%,100% { opacity: 1; transform: rotate(-8deg); } 35% { transform: translate(45%, -22%) rotate(6deg) scale(1.08); } 72% { opacity: 0; transform: translate(105%, 105%) rotate(34deg) scale(.72); } }
@keyframes stormFishDive {
  0% { opacity: 1; transform: translate(0,0) scaleX(-1) rotate(-6deg) scale(1); }
  22% { transform: translate(-18%,-28%) scaleX(-1) rotate(-14deg) scale(1.07); }
  58% { opacity: 1; transform: translate(-68%,22%) scaleX(-1) rotate(-27deg) scale(.9); }
  100% { opacity: 0; transform: translate(-118%,128%) scaleX(-1) rotate(-42deg) scale(.55); }
}
@keyframes fishHide { 0%,100% { opacity: 1; transform: rotate(-5deg); } 58% { opacity: 0; transform: translate(70%, 100%) rotate(35deg) scale(.65); } }
@keyframes fishSurface { 0%,100% { opacity: 1; transform: translateY(0) rotate(-5deg); } 20% { opacity: 0; transform: translateY(65%) scale(.7); } 58% { opacity: 1; transform: translate(75%, -55%) rotate(8deg) scale(1.08); } }

.storm-bucket-object {
  position: absolute;
  z-index: 9;
  left: 48%;
  bottom: 32%;
  width: clamp(58px, 11.5%, 118px);
  aspect-ratio: 1.1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 54% 72%;
  filter: drop-shadow(0 6px 5px rgba(9, 22, 32, .5));
  transition: filter .2s ease, scale .2s ease;
}
.storm-bucket-object::after {
  content: "";
  position: absolute;
  inset: 10% 4% 2%;
  border-radius: 45%;
  box-shadow: 0 0 0 7px rgba(255, 220, 122, .2), 0 0 18px rgba(255, 226, 142, .65);
  opacity: .8;
  animation: bucketHint 2.3s ease-in-out infinite;
}
.storm-bucket-object:hover,
.storm-bucket-object:focus-visible { outline: none; filter: drop-shadow(0 7px 6px rgba(9, 22, 32, .55)) drop-shadow(0 0 9px #ffe08a); scale: 1.06; }
.storm-bucket-object img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.storm-bucket-object.dumping { animation: bucketDump 2s cubic-bezier(.35,.05,.22,1) both; }
.storm-bucket-object.dumping::after { opacity: 0; }
.bucket-click-hint {
  position: absolute;
  z-index: 10;
  left: 45.5%;
  bottom: 47%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 50%;
  color: var(--night);
  background: rgba(255, 215, 102, .92);
  box-shadow: 0 0 0 7px rgba(255, 220, 122, .18), 0 5px 16px rgba(11,28,42,.32);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  animation: hotspotPulse 2.6s ease-in-out infinite;
  transition: opacity .25s ease, transform .25s ease;
}
.bucket-click-hint:focus-visible { outline: 4px solid white; outline-offset: 3px; }
.bucket-click-hint.discovered {
  color: white;
  background: #4b8f83;
  box-shadow: 0 0 0 7px rgba(75,143,131,.18), 0 5px 16px rgba(11,28,42,.32);
  animation: none;
}
@keyframes bucketHint { 50% { opacity: .25; scale: .88; } }
@keyframes bucketDump {
  0%,100% { transform: translate(0,0) rotate(0); }
  18% { transform: translate(-10%,-38%) rotate(-9deg); }
  48%,67% { transform: translate(48%,10%) rotate(112deg); }
  82% { transform: translate(14%,-12%) rotate(20deg); }
}
.bucket-water-arc {
  position: absolute;
  z-index: 8;
  left: 56%;
  top: 61%;
  width: 28%;
  height: 31%;
  opacity: 0;
  pointer-events: none;
}
.bucket-water-arc::before {
  content: "";
  position: absolute;
  left: -5%;
  top: 0;
  width: 82%;
  height: 28px;
  border-radius: 70% 35% 65% 42%;
  background: linear-gradient(180deg, rgba(236,253,255,.94), rgba(126,218,235,.84) 48%, rgba(69,168,198,.68));
  clip-path: polygon(0 18%, 22% 0, 48% 22%, 70% 10%, 100% 48%, 82% 78%, 56% 61%, 31% 84%, 0 58%);
  box-shadow: inset 0 4px rgba(255,255,255,.78), 0 3px 4px rgba(6, 55, 75, .6);
  filter: drop-shadow(0 0 5px rgba(218, 249, 255, .78));
  transform: rotate(27deg) scaleX(.15);
  transform-origin: left center;
}
.bucket-water-arc::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 3%;
  width: 43%;
  height: 26%;
  border-top: 7px solid rgba(194, 242, 249, .94);
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(224,251,255,.9));
  opacity: 0;
}
.bucket-water-arc i {
  --drop: 0;
  position: absolute;
  left: calc(31% + var(--drop) * 5%);
  top: calc(26% + var(--drop) * 3%);
  width: clamp(6px, 1vw, 11px);
  height: clamp(12px, 2vw, 22px);
  border-radius: 70% 30% 60% 40%;
  background: #bceef5;
  box-shadow: 0 0 4px rgba(255,255,255,.7);
}
.bucket-water-arc i:nth-child(2) { --drop: 1; }
.bucket-water-arc i:nth-child(3) { --drop: 2; }
.bucket-water-arc i:nth-child(4) { --drop: 3; }
.bucket-water-arc i:nth-child(5) { --drop: 4; }
.bucket-water-arc i:nth-child(6) { --drop: 5; }
.bucket-water-arc i:nth-child(7) { --drop: 6; }
.bucket-water-arc i:nth-child(8) { --drop: 7; }
.storm-scene.bucket-dumping .bucket-water-arc { opacity: 1; }
.storm-scene.bucket-dumping .bucket-water-arc::before { animation: bucketStream 1s ease-out .46s both; }
.storm-scene.bucket-dumping .bucket-water-arc::after { animation: bucketSplashRing .7s ease-out .86s both; }
.storm-scene.bucket-dumping .bucket-water-arc i { animation: bucketPourDrop .95s ease-in calc(.58s + var(--drop) * .045s) both; }
@keyframes bucketStream {
  0% { opacity: 0; transform: rotate(27deg) scaleX(.12); }
  28%,68% { opacity: 1; transform: rotate(27deg) scaleX(1); }
  100% { opacity: 0; transform: translate(25%,28%) rotate(34deg) scaleX(.72); }
}
@keyframes bucketPourDrop {
  0% { opacity: 0; transform: translate(0,0) rotate(15deg) scale(.5); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(28px + var(--drop) * 4px), calc(48px + var(--drop) * 3px)) rotate(35deg) scale(1); }
}
@keyframes bucketSplashRing {
  0% { opacity: 0; transform: scale(.2); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.45) translateY(8px); }
}
.layered-fish.fish-jumping { animation: layeredFishJump 1.8s cubic-bezier(.2,.72,.24,1) both; }
.layered-boat.boat-sailing { animation: layeredBoatSail 2s cubic-bezier(.22,.72,.25,1) both; }
.layered-wake {
  position: absolute;
  z-index: 2;
  right: 7%;
  top: 28%;
  width: 18%;
  height: 8px;
  border-bottom: 4px solid rgba(255, 244, 206, .9);
  border-radius: 50%;
  filter: drop-shadow(0 2px 2px rgba(219, 145, 64, .45));
  opacity: 0;
  pointer-events: none;
}

.departure-scene {
  --main-x: 0%;
  --main-y: 0%;
  --follower-x: 0%;
  --follower-y: 0%;
  touch-action: pan-y;
}
.departure-scene::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 18%;
  bottom: 18%;
  width: 54%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.18), transparent 70%);
  filter: blur(5px);
  opacity: .6;
  pointer-events: none;
}
.departure-main-boat,
.departure-follower-boat {
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 10px 7px rgba(31, 49, 51, .32));
  transition: transform .18s ease-out, filter .25s ease, opacity .45s ease;
}
.departure-main-boat {
  z-index: 6;
  left: 8%;
  bottom: 14%;
  width: clamp(240px, 47%, 610px);
  transform: translate(var(--main-x), var(--main-y));
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.departure-main-boat:hover,
.departure-main-boat:focus-visible {
  filter: drop-shadow(0 13px 9px rgba(31, 49, 51, .4)) drop-shadow(0 0 8px rgba(255, 224, 137, .9));
  outline: none;
}
.departure-main-boat.dragging { cursor: grabbing; transition: filter .2s ease; }
.departure-follower-boat {
  z-index: 4;
  left: 3%;
  bottom: 29%;
  width: clamp(150px, 25%, 330px);
  opacity: .92;
  transform: translate(var(--follower-x), var(--follower-y));
}
.departure-scene.sailed .departure-follower-boat { animation: followerWave 1.7s ease-in-out infinite; }
.departure-scene.sailed .departure-main-boat { animation: departureBob 2.4s ease-in-out infinite; }
@keyframes departureBob { 50% { margin-bottom: 4px; } }
@keyframes followerWave { 50% { margin-bottom: 5px; rotate: -1deg; } }
.departure-water-trail {
  position: absolute;
  z-index: 3;
  height: 13px;
  border-bottom: 4px solid rgba(255, 248, 216, .88);
  border-radius: 50%;
  opacity: 0;
  transform-origin: right center;
  pointer-events: none;
  transition: opacity .35s ease, transform .2s ease-out;
}
.main-trail { left: 8%; bottom: 27%; width: 37%; transform: translateX(var(--main-x)) scaleX(.4); }
.follower-trail { left: 3%; bottom: 39%; width: 20%; transform: translateX(var(--follower-x)) scaleX(.35); }
.departure-scene.moving .departure-water-trail { opacity: .92; }
.departure-cue {
  position: absolute;
  z-index: 9;
  left: 4%;
  top: 1rem;
  max-width: min(330px, 86%);
  padding: .68rem .9rem;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 999px;
  color: var(--night);
  background: rgba(255, 248, 225, .94);
  box-shadow: 0 7px 20px rgba(19,38,62,.22);
  font-weight: 900;
  animation: cueFloat 1.9s ease-in-out infinite;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.departure-cue span { margin-right: .35rem; }
.departure-scene.started .departure-cue { opacity: 0; transform: translateY(10px); }
@keyframes cueFloat { 50% { translate: 0 -5px; } }
.story-note {
  margin: 1.35rem 0 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 6px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: #edf6f2;
}
.layered-boat-moving .layered-wake {
  animation: layeredWake 2s ease-out both;
}
@keyframes layeredFishJump {
  0%,100% { transform: translate(0,0) rotate(-8deg) scale(1); }
  18% { transform: translate(18%, -34%) rotate(-2deg) scale(1.08); }
  48% { transform: translate(95%, -245%) rotate(18deg) scale(1.16); }
  72% { transform: translate(155%, -90%) rotate(38deg) scale(1.08); }
}
@keyframes layeredBoatSail {
  0%,100% { transform: translate(0,0) rotate(0) scale(1); }
  24% { transform: translate(-28%, -8%) rotate(-3deg) scale(1.05); }
  56% { transform: translate(-92%, 4%) rotate(3deg) scale(1.08); }
  82% { transform: translate(-42%, -7%) rotate(-2deg) scale(1.04); }
}
@keyframes layeredWake { 0% { opacity: 0; transform: scaleX(.15); } 22% { opacity: 1; } 72% { opacity: .9; transform: translateX(-65%) scaleX(1.8); } 100% { opacity: 0; transform: translateX(-85%) scaleX(2.2); } }

.count-badges { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.count-badges span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid white;
  border-radius: 50%;
  color: var(--night);
  background: #ffe17f;
  box-shadow: 0 4px 12px rgba(13,33,48,.3);
  font-weight: 900;
  animation: countPop 1.8s cubic-bezier(.2,.8,.25,1) both;
  animation-delay: calc((var(--number, 1) - 1) * .13s);
}
.count-disciples span:nth-child(1) { --number:1; left: 13%; top: 38%; }
.count-disciples span:nth-child(2) { --number:2; left: 25%; top: 33%; }
.count-disciples span:nth-child(3) { --number:3; left: 37%; top: 42%; }
.count-disciples span:nth-child(4) { --number:4; left: 50%; top: 30%; }
.count-disciples span:nth-child(5) { --number:5; left: 62%; top: 42%; }
.count-disciples span:nth-child(6) { --number:6; left: 76%; top: 34%; }
.count-boats span:nth-child(1) { --number:1; left: 48%; top: 48%; }
.count-boats span:nth-child(2) { --number:2; right: 8%; top: 20%; }
@keyframes countPop { 0% { opacity: 0; transform: translateY(18px) scale(.25); } 35%,78% { opacity: 1; transform: translateY(-4px) scale(1.12); } 100% { opacity: 0; transform: translateY(-18px) scale(.8); } }
.story-hotspot span { pointer-events: none; font-size: 1rem; }
.story-hotspot:hover, .story-hotspot:focus-visible { transform: scale(1.12); }
.story-hotspot.discovered {
  color: white;
  background: #3a8a77;
  animation: none;
}
.story-hotspot.discovered span { font-size: 0; }
.story-hotspot.discovered span::after { content: "✓"; font-size: 1rem; }
.story-hotspot[data-effect="lantern-flame"].discovered,
.story-hotspot[data-effect="storm-lantern"].discovered,
.story-hotspot[data-effect="guide-light"].discovered {
  transform: translate(34px, -28px) scale(.78);
  transition: transform .38s cubic-bezier(.2,.8,.25,1);
}
@keyframes hotspotPulse {
  50% { box-shadow: 0 0 0 12px rgba(255, 220, 122, 0), 0 5px 16px rgba(11,28,42,.32); }
}
.effect-layer { position: absolute; inset: 0; z-index: 9; overflow: hidden; pointer-events: none; }
.fx { position: absolute; width: 1px; height: 1px; pointer-events: none; }
.fx-sun::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  left: -43px;
  top: -43px;
  border-radius: 50%;
  background: rgba(255, 229, 137, .5);
  box-shadow: 0 0 60px 30px rgba(255, 199, 75, .42);
  animation: sunBloom 1.35s ease-out both;
}
.fx-sun i { position: absolute; left: -3px; top: -48px; width: 6px; height: 28px; border-radius: 8px; background: #ffe28d; transform-origin: 3px 48px; transform: rotate(var(--angle)); animation: rayDance 1.2s ease-out both; }
@keyframes sunBloom { 0% { opacity: 0; transform: scale(.35); } 45% { opacity: 1; transform: scale(1.12); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes rayDance { 0% { opacity: 0; scale: .3; } 45% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.4; } }

.fx-lantern, .fx-glow, .fx-lantern-flame, .fx-storm-lantern, .fx-steady-light, .fx-guide-light {
  width: 34px;
  height: 34px;
  left: -17px;
  top: -17px;
  border-radius: 50%;
  background: rgba(255, 197, 66, .75);
  box-shadow: 0 0 20px 12px rgba(255, 185, 49, .75), 0 0 54px 28px rgba(255, 219, 122, .48);
  animation: lanternGlow 1.5s ease-in-out both;
}
@keyframes lanternGlow { 0%,100% { opacity: 0; transform: scale(.45); } 25% { opacity: 1; transform: scale(1.25) rotate(-8deg); } 55% { transform: scale(.9) rotate(7deg); } 78% { transform: scale(1.2) rotate(-4deg); } }

.fx-lantern-flame, .fx-storm-lantern, .fx-steady-light, .fx-guide-light {
  margin-left: -17px;
  margin-top: -17px;
  background: rgba(255, 177, 30, .28);
  box-shadow: 0 0 18px 12px rgba(255, 180, 34, .8), 0 0 58px 32px rgba(255, 218, 111, .58);
  animation: lanternBrighten 1.6s ease-in-out both;
}
.fx-storm-lantern { animation: lanternInStorm 1.6s ease-in-out both; }
.fx-steady-light { animation: steadyLantern 1.6s ease-in-out both; }
.fx-guide-light::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 190px;
  height: 58px;
  background: linear-gradient(90deg, rgba(255,221,126,.68), transparent);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 58%);
  transform-origin: left center;
  animation: guideBeam 1.6s ease both;
}
@keyframes lanternInStorm { 0%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.5) rotate(0); } 25% { opacity: 1; transform: translate(-50%,-50%) scale(1.2) rotate(-14deg); } 55% { transform: translate(-50%,-50%) scale(.9) rotate(13deg); } 78% { transform: translate(-50%,-50%) scale(1.15) rotate(-7deg); } }
@keyframes steadyLantern { 0%,100% { opacity: 0; transform: translate(-50%,-50%) scale(.6); } 28%,78% { opacity: 1; transform: translate(-50%,-50%) scale(1.18); } }
@keyframes guideBeam { 0% { opacity: 0; transform: scaleX(.1); } 35%,72% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1.08); } }
.actual-lantern-flame {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 12px;
  height: 22px;
  border-radius: 70% 30% 55% 45%;
  background: linear-gradient(to top, #ff8317 0 25%, #ffd95d 48%, #fffbe0 80%);
  box-shadow: 0 0 9px #ffbd38, 0 0 18px #ff8b1b;
  transform-origin: 50% 100%;
  animation: trueFlameFlicker .16s ease-in-out infinite alternate;
}
@keyframes lanternBrighten { 0%,100% { opacity: 0; transform: scale(.45); } 18% { opacity: .85; transform: scale(.8); } 45% { opacity: 1; transform: scale(1.45); } 75% { opacity: .92; transform: scale(1.1); } }
@keyframes trueFlameFlicker { from { transform: scale(.88, 1.08) rotate(-4deg); } to { transform: scale(1.08, .9) rotate(5deg); } }

.native-scene-fish,
.native-other-boat,
.native-fish-cover {
  position: absolute;
  pointer-events: none;
}
.native-scene-fish {
  z-index: 3;
  background-repeat: no-repeat;
  clip-path: polygon(1% 56%, 19% 43%, 23% 28%, 40% 35%, 52% 15%, 76% 11%, 96% 26%, 100% 42%, 84% 55%, 69% 61%, 58% 80%, 48% 96%, 41% 69%, 24% 73%, 8% 82%, 17% 61%);
  filter: drop-shadow(0 7px 5px rgba(9, 38, 53, .35));
  transform-origin: 50% 60%;
  animation: nativeFishJump 1.75s cubic-bezier(.22,.75,.25,1) both;
}
.native-fish-cover {
  z-index: 2;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(31, 111, 126, .94) 0 38%, rgba(43, 130, 143, .82) 52%, transparent 73%);
  box-shadow: inset 0 -3px rgba(219, 248, 244, .72);
  animation: fishWaterCover 1.75s ease both;
}
.native-fish-cover.storm-cover {
  background: radial-gradient(ellipse, rgba(27, 91, 112, .97) 0 38%, rgba(45, 125, 145, .88) 55%, transparent 74%);
}
.native-other-boat {
  z-index: 3;
  background-repeat: no-repeat;
  clip-path: polygon(2% 47%, 26% 43%, 38% 2%, 57% 36%, 87% 42%, 100% 68%, 82% 87%, 20% 88%, 0 69%);
  filter: drop-shadow(0 5px 4px rgba(38, 42, 63, .3));
  animation: otherBoatMoves 1.85s cubic-bezier(.2,.7,.25,1) both;
}
.other-boat-wake {
  position: absolute;
  z-index: 2;
  height: 12px;
  border-bottom: 4px solid rgba(255, 245, 207, .92);
  border-radius: 50%;
  filter: drop-shadow(0 2px 2px rgba(255, 190, 84, .45));
  transform-origin: right center;
  animation: boatWake 1.85s ease-out both;
}
@keyframes nativeFishJump {
  0% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
  45% { opacity: 1; transform: translate(82%, -245%) rotate(18deg) scale(1.48); }
  78% { opacity: 1; transform: translate(152%, -72%) rotate(42deg) scale(1.22); }
  100% { opacity: 0; transform: translate(188%, 22%) rotate(55deg) scale(.9); }
}
@keyframes fishWaterCover { 0% { opacity: 0; transform: scale(.55); } 16%,72% { opacity: 1; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes otherBoatMoves {
  0% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
  28% { transform: translate(-42%, -10%) rotate(-3deg) scale(1.08); }
  58% { transform: translate(-88%, 3%) rotate(3deg) scale(1.08); }
  84% { opacity: 1; transform: translate(-132%, -7%) rotate(-2deg) scale(1.03); }
  100% { opacity: 0; transform: translate(-155%, 0) rotate(1deg) scale(.96); }
}
@keyframes boatWake { 0% { opacity: 0; transform: translateX(0) scaleX(.15); } 22% { opacity: 1; } 82% { opacity: .9; transform: translateX(-120%) scaleX(2.2); } 100% { opacity: 0; transform: translateX(-145%) scaleX(2.6); } }

.little-fish {
  position: absolute;
  left: -24px;
  top: -10px;
  width: 42px;
  height: 23px;
  border-radius: 55% 45% 45% 55%;
  background: linear-gradient(135deg, #68c9cf, #176b82);
  filter: drop-shadow(0 5px 4px rgba(16,48,65,.28));
  animation: fishJump 1.35s cubic-bezier(.22,.75,.25,1) both;
}
.little-fish::before { content: ""; position: absolute; left: -12px; top: 3px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 15px solid #2f8da0; }
.little-fish::after { content: ""; position: absolute; right: 7px; top: 6px; width: 5px; height: 5px; border: 2px solid white; border-radius: 50%; background: #16334c; }
@keyframes fishJump { 0% { opacity: 0; transform: translate(-20px, 20px) rotate(-18deg) scale(.5); } 20% { opacity: 1; } 55% { transform: translate(12px, -74px) rotate(15deg) scale(1.1); } 100% { opacity: 0; transform: translate(62px, 18px) rotate(38deg) scale(.75); } }

.fx-ripples i, .fx-peace i {
  position: absolute;
  left: -12px;
  top: -5px;
  width: 24px;
  height: 10px;
  border: 3px solid rgba(224, 251, 246, .9);
  border-radius: 50%;
  animation: rippleOut 1.35s ease-out both;
  animation-delay: calc(var(--piece) * .12s);
}
.fx-peace i { border-color: rgba(255, 230, 144, .9); }
@keyframes rippleOut { from { opacity: .95; transform: scale(.35); } to { opacity: 0; transform: scale(5.5, 3); } }

.fx-splash i {
  position: absolute;
  left: -4px;
  top: -5px;
  width: 8px;
  height: 14px;
  border-radius: 70% 30% 55% 45%;
  background: #b9edf2;
  box-shadow: 0 0 5px rgba(255,255,255,.8);
  animation: splashDrop 1s ease-out both;
  transform-origin: 4px 5px;
}
@keyframes splashDrop { 0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(-62px) scale(1); } }

.fx-wind i {
  position: absolute;
  left: -68px;
  top: var(--offset);
  width: var(--length);
  height: 5px;
  border-top: 4px solid rgba(226, 246, 246, .9);
  border-radius: 50%;
  animation: windRush .95s ease-out both;
  animation-delay: calc(var(--piece) * .07s);
}
@keyframes windRush { 0% { opacity: 0; transform: translateX(-85px) scaleX(.35); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(115px) scaleX(1.25); } }

.fx-wonder i {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: #ffe18a;
  transform: rotate(45deg);
  animation: wonderBurst 1.3s ease-out both;
  animation-delay: calc(var(--piece) * .045s);
}
@keyframes wonderBurst { 0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) rotate(45deg) scale(.2); } 35% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(-65px) rotate(135deg) scale(1.1); } }

.fx-water-shimmer i {
  position: absolute;
  left: calc(-55px + var(--piece) * 12px);
  top: calc((var(--piece) - 4) * 5px);
  width: 42px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, #ffe39a, transparent);
  animation: waterShimmer 1.5s ease-in-out both;
  animation-delay: calc(var(--piece) * .06s);
}
.fx-net-sparkle i {
  position: absolute;
  left: calc((var(--piece) - 4) * 11px);
  top: calc((var(--piece) - 4) * 3px);
  width: 9px;
  height: 9px;
  background: #fff1ad;
  transform: rotate(45deg);
  animation: netSparkle 1.45s ease both;
  animation-delay: calc(var(--piece) * .07s);
}
.fx-rope-trace i, .fx-rope-follow i {
  position: absolute;
  left: calc((var(--piece) - 3) * 13px);
  top: calc((var(--piece) - 3) * -12px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffe58e;
  box-shadow: 0 0 10px #ffd35f;
  animation: ropeTrace 1.35s ease both;
  animation-delay: calc(var(--piece) * .09s);
}
.fx-wind-gust i, .fx-storm-sail i, .fx-sail-rest i, .fx-rope-strain i {
  position: absolute;
  left: -70px;
  top: var(--offset);
  width: var(--length);
  height: 4px;
  border-top: 3px solid rgba(229,247,250,.92);
  border-radius: 50%;
  animation: windRush 1s ease-out both;
  animation-delay: calc(var(--piece) * .06s);
}
.fx-sail-rest i { border-color: rgba(255,229,151,.88); animation-name: settleDown; }
.fx-bail-water i, .fx-wave-crash i, .fx-net-drip i {
  position: absolute;
  left: calc((var(--piece) - 4) * 8px);
  top: -8px;
  width: 8px;
  height: 15px;
  border-radius: 70% 30% 60% 40%;
  background: #c8f2f5;
  animation: waterDrop 1.25s ease-out both;
  animation-delay: calc(var(--piece) * .055s);
}
.fx-net-drip i { animation-name: dripDown; }
.fx-bucket-fill {
  width: 58px;
  height: 52px;
  margin-left: -29px;
  margin-top: -26px;
  overflow: hidden;
  border-radius: 8px 8px 45% 45%;
  box-shadow: inset 0 -4px rgba(255,255,255,.35);
}
.fx-bucket-fill::before { content:""; position:absolute; inset:100% 2px 0; background:rgba(103,206,221,.82); animation: bucketRise 1.6s ease both; }
.fx-jesus-peace i, .fx-glass-ripple i {
  position: absolute;
  left: -14px;
  top: -7px;
  width: 28px;
  height: 14px;
  border: 3px solid rgba(255,229,145,.92);
  border-radius: 50%;
  animation: rippleOut 1.45s ease-out both;
  animation-delay: calc(var(--piece) * .12s);
}
.fx-glass-ripple i { border-color: rgba(224,250,248,.92); }
.fx-lightning strong, .fx-fear-flash strong {
  position: absolute;
  left: -30px;
  top: -78px;
  color: #fff4ad;
  font-size: 76px;
  text-shadow: 0 0 22px white;
  animation: lightningPop 1s ease both;
}
@keyframes waterShimmer { 0%,100% { opacity: 0; transform: scaleX(.2); } 40%,70% { opacity: 1; transform: scaleX(1); } }
@keyframes netSparkle { 0%,100% { opacity: 0; transform: rotate(45deg) scale(.2); } 45% { opacity: 1; transform: rotate(135deg) scale(1.15); } }
@keyframes ropeTrace { 0%,100% { opacity: 0; transform: scale(.2); } 45%,72% { opacity: 1; transform: scale(1.15); } }
@keyframes waterDrop { 0% { opacity: 0; transform: translateY(30px) scale(.4); } 28% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) rotate(20deg); } }
@keyframes dripDown { 0% { opacity: 0; transform: translateY(-25px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(70px); } }
@keyframes bucketRise { 0%,100% { top:100%; } 45%,72% { top:22%; } }
@keyframes lightningPop { 0%,100% { opacity: 0; transform: scale(.4); } 18%,30%,58% { opacity: 1; transform: scale(1.15); } 24%,46% { opacity: .2; } }
.world-lightning .scene-photo, .world-fear-flash .scene-photo { animation: lightningScene 1s ease both; }
@keyframes lightningScene { 0%,100% { filter: brightness(1); } 16%,30%,56% { filter: brightness(1.75) contrast(1.1); } 23%,44% { filter: brightness(.75); } }

.fx-settle i {
  position: absolute;
  left: var(--offset);
  top: -32px;
  width: 4px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,240,192,.9);
  animation: settleDown 1.3s ease-in-out both;
  animation-delay: calc(var(--piece) * .08s);
}
@keyframes settleDown { 0% { opacity: 0; transform: translateY(-30px) rotate(20deg); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(65px) rotate(-18deg); } }

.fx-gasp strong { position: absolute; left: -16px; top: -58px; color: #ffe187; font-family: Georgia, serif; font-size: 76px; text-shadow: 0 5px 12px rgba(13,31,46,.45); animation: gaspPop 1.1s cubic-bezier(.18,.8,.3,1) both; }
@keyframes gaspPop { 0% { opacity: 0; transform: translateY(22px) scale(.25) rotate(-12deg); } 35% { opacity: 1; transform: translateY(-8px) scale(1.18) rotate(5deg); } 100% { opacity: 0; transform: translateY(-45px) scale(.8); } }
.hotspot-wobble { animation: ropeWobble .75s ease-in-out !important; }
@keyframes ropeWobble { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-18deg) scale(1.15); } 40% { transform: rotate(15deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
.world-wind .scene-photo, .world-splash .scene-photo, .world-gasp .scene-photo { animation: sceneJolt .62s ease-in-out; }
.world-peace .scene-photo, .world-wonder .scene-photo, .world-sun .scene-photo { animation: sceneWarmth 1.45s ease-in-out; }
@keyframes sceneJolt { 0%,100% { transform: translate(0) scale(1); } 24% { transform: translate(-4px,2px) scale(1.01); } 48% { transform: translate(4px,-2px) scale(1.015); } 72% { transform: translate(-2px,1px) scale(1.01); } }
@keyframes sceneWarmth { 0%,100% { filter: brightness(1) saturate(1); } 45% { filter: brightness(1.16) saturate(1.16); } }
.scene-discovery {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 14px;
  width: min(88%, 540px);
  transform: translateX(-50%);
  padding: .7rem 1rem;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  color: white;
  background: rgba(15, 38, 57, .84);
  backdrop-filter: blur(8px);
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 8px 24px rgba(10,25,38,.2);
}
.hero-discovery { bottom: 22px; }
.hero-sun { top: 15%; right: 13%; }
.hero-fish { left: 8%; top: auto; bottom: 17%; }
.hero-lantern { left: 59%; top: 60%; }
.hero-boats { right: 4%; top: 23%; }
.crossing-fish { left: 8%; top: auto; bottom: 17%; }
.crossing-net { left: 20%; bottom: 31%; }
.crossing-rope { right: 12%; bottom: 29%; }
.crossing-lantern { left: 59%; top: 60%; }
.crossing-boats { right: 4%; top: 23%; }
.storm-sail { right: 20%; top: 18%; }
.storm-lantern { left: 60%; top: 57%; }
.storm-fish { left: 8%; top: auto; bottom: 17%; }
.storm-face { left: 25%; top: 33%; }
.sleeping-rain { left: 56%; top: 7%; }
.sleeping-wave { left: 6%; top: 12%; }
.sleeping-sail { right: 8%; top: 8%; }
.jesus-sleeping { left: 68%; top: 43%; bottom: auto; width: 42px; height: 42px; background: rgba(255, 215, 102, .92); }
.jesus-sleeping.found { filter: none; }
.find-instruction { bottom: 14px; margin: 0; }

/* Page 4: a close-up waking moment with an optional grown-up conversation tip. */
.care-screen { position: relative; background: var(--paper); }
.care-scene {
  position: relative;
  align-self: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #294a60;
}
.care-wake { left: 52%; top: 36%; }
.care-discovery { bottom: 14px; }
.care-speech {
  position: absolute;
  z-index: 7;
  left: 27%;
  top: 8%;
  width: min(62%, 420px);
  padding: .85rem 1rem;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 24px 24px 24px 8px;
  color: var(--night);
  background: rgba(255,248,226,.96);
  box-shadow: 0 10px 28px rgba(10,31,48,.3);
  font-family: Georgia, serif;
  font-family: ui-rounded, "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  font-size: clamp(1.35rem, 4vw, 2.6rem);
  font-weight: 950;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
  opacity: 0;
  transform: translate(-12px,12px) scale(.72);
  transform-origin: left bottom;
  pointer-events: none;
}
.care-speech::after {
  content: "";
  position: absolute;
  left: 22%;
  bottom: -15px;
  border: 9px solid transparent;
  border-left-color: rgba(255,248,226,.96);
  transform: rotate(22deg);
}
.care-touch-ripple {
  position: absolute;
  z-index: 6;
  left: 56%;
  top: 43%;
  width: 10px;
  height: 10px;
  pointer-events: none;
}
.care-touch-ripple i {
  position: absolute;
  inset: 0;
  border: 4px solid rgba(255,231,151,.95);
  border-radius: 50%;
  opacity: 0;
}
.care-touch-ripple i:nth-child(2) { animation-delay: .2s; }
.care-scene.wake-call-active .care-photo { animation: careWakeNudge 1.55s ease both; }
.care-scene.wake-call-active .care-speech { animation: careSpeech 2.8s ease both; }
.care-scene.wake-call-active .care-touch-ripple i { animation: careTouch 1.15s ease-out both; }
@keyframes careWakeNudge { 0%,100% { transform: scale(1); } 22% { transform: translate(-2px,1px) scale(1.012); } 42% { transform: translate(2px,-1px) scale(1.018); } 62% { transform: translate(-1px,0) scale(1.01); } }
@keyframes careSpeech { 0%,100% { opacity: 0; transform: translate(-12px,12px) scale(.72); } 15%,82% { opacity: 1; transform: translate(0,0) scale(1); } }
@keyframes careTouch { 0% { opacity: 0; transform: scale(.2); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(6); } }
.care-copy { width: 100%; }
.care-copy h2 { color: var(--night); }
.care-wonder { margin-bottom: 1rem; }

/* Page 3: every star changes the story world itself. */
.sleeping-sail-layer {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  object-fit: fill;
  transform-origin: 77% 13%;
}
.sleeping-rain-layer,
.sleeping-wave-layer,
.sleeping-wind-layer,
.sleeping-rest-bubble {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
}
.sleeping-rain-layer {
  inset: 0;
  overflow: hidden;
}
.sleeping-rain-layer i {
  position: absolute;
  left: var(--drop-x);
  top: -16%;
  width: calc(7px * var(--drop-scale));
  height: calc(11px * var(--drop-scale));
  border: 1px solid rgba(230,249,255,.9);
  border-radius: 52% 52% 52% 0;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(117,198,229,.72));
  box-shadow: 0 2px 4px rgba(37,109,150,.34);
  opacity: 0;
  transform: rotate(-45deg);
}
.sleeping-rain-active .sleeping-rain-layer { opacity: 1; }
.sleeping-rain-active .sleeping-rain-layer i {
  animation: sleepingRaindrop 1.05s linear var(--drop-delay) 2 both;
}
@keyframes sleepingRaindrop {
  0% { opacity: 0; transform: translate3d(24px,-20px,0) rotate(-45deg) scale(.7); }
  12% { opacity: .96; }
  82% { opacity: .9; }
  100% { opacity: 0; transform: translate3d(-78px,520px,0) rotate(-45deg) scale(1); }
}
.sleeping-wave-layer {
  left: -116%;
  top: -16%;
  width: 118%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: saturate(.88) brightness(.82) drop-shadow(16px 12px 10px rgba(4,35,59,.28));
  -webkit-mask-image: radial-gradient(ellipse at 52% 57%, #000 0 58%, rgba(0,0,0,.94) 68%, transparent 88%);
  mask-image: radial-gradient(ellipse at 52% 57%, #000 0 58%, rgba(0,0,0,.94) 68%, transparent 88%);
  transform: rotate(5deg) scale(.82);
}
.sleeping-wave-active .sleeping-wave-layer { animation: sleepingWave 2.15s cubic-bezier(.2,.72,.28,1) both; }
@keyframes sleepingWave {
  0% { opacity: 0; transform: translateX(-8%) rotate(5deg) scale(.68); }
  18% { opacity: .98; }
  55% { opacity: .96; transform: translateX(94%) rotate(0) scale(1); }
  100% { opacity: 0; transform: translateX(198%) rotate(-5deg) scale(.8); }
}
.sleeping-sail-blast .sleeping-sail-layer { animation: sleepingSailBlast 1.85s cubic-bezier(.3,.05,.2,1) both; }
@keyframes sleepingSailBlast {
  0%,100% { transform: perspective(700px) rotateY(0) skewY(0); }
  16% { transform: perspective(700px) rotateY(-25deg) skewY(-5deg) scaleX(.91); }
  33% { transform: perspective(700px) rotateY(17deg) skewY(4deg) scaleX(1.06); }
  51% { transform: perspective(700px) rotateY(-14deg) skewY(-3deg) scaleX(.94); }
  72% { transform: perspective(700px) rotateY(8deg) skewY(2deg) scaleX(1.02); }
}
.sleeping-wind-layer { inset: 0; }
.sleeping-wind-layer i {
  position: absolute;
  right: -8%;
  width: 38%;
  height: 13%;
  border-top: 5px solid rgba(229,247,255,.88);
  border-radius: 50%;
}
.sleeping-wind-layer i:nth-child(1) { top: 12%; }
.sleeping-wind-layer i:nth-child(2) { top: 22%; width: 31%; animation-delay: .1s; }
.sleeping-wind-layer i:nth-child(3) { top: 32%; width: 24%; animation-delay: .18s; }
.sleeping-sail-blast .sleeping-wind-layer { opacity: 1; }
.sleeping-sail-blast .sleeping-wind-layer i { animation: sleepingWind 1.35s ease-out both; }
@keyframes sleepingWind { 0% { opacity: 0; transform: translateX(45%); } 32% { opacity: 1; } 100% { opacity: 0; transform: translateX(-145%); } }
.sleeping-rest-bubble {
  left: 60%;
  top: 13%;
  display: flex;
  align-items: baseline;
  gap: .13em;
  padding: .55rem .8rem;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  color: #17324d;
  background: rgba(255,248,226,.93);
  box-shadow: 0 8px 22px rgba(10,31,48,.28);
  font-family: Georgia, serif;
  font-weight: 900;
}
.sleeping-rest-bubble::before,
.sleeping-rest-bubble::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,248,226,.93); border: 2px solid rgba(255,255,255,.9); }
.sleeping-rest-bubble::before { left: 12%; bottom: -18px; width: 15px; height: 15px; }
.sleeping-rest-bubble::after { left: 1%; bottom: -30px; width: 8px; height: 8px; }
.sleeping-rest-bubble span:nth-child(1) { font-size: 1.65rem; }
.sleeping-rest-bubble span:nth-child(2) { font-size: 1.25rem; }
.sleeping-rest-bubble span:nth-child(3) { font-size: .95rem; }
.sleeping-rest-active .sleeping-rest-bubble { animation: sleepingRest 2.25s ease both; }
@keyframes sleepingRest { 0%,100% { opacity: 0; transform: translate(-8px,12px) scale(.5); } 22%,75% { opacity: 1; transform: translate(0,-4px) scale(1); } }
.command-lantern { left: 62%; bottom: 37%; }
.command-jesus-hotspot { left: 54%; top: 46%; }
.command-faces { left: 27%; top: 35%; }
.command-fish { left: 8%; bottom: 17%; }

.command-scene.sky-clearing .command-photo { animation: skyClearing 2.1s ease both; }
@keyframes skyClearing {
  0% { filter: brightness(.72) saturate(.9); transform: scale(1.025); }
  45% { filter: brightness(1.2) saturate(1.08); }
  100% { filter: brightness(1) saturate(1); transform: scale(1); }
}

.story-screen { grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); grid-template-rows: auto 1fr; background: var(--paper); }
.chapter-label { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: .7rem clamp(1rem, 4vw, 3rem); color: white; background: var(--coral); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.chapter-label.light { color: var(--night); background: var(--gold); }
.scene, .find-scene { position: relative; min-height: 0; aspect-ratio: 3 / 2; align-self: center; overflow: hidden; background: #efb878; }
.story-copy { align-self: center; padding: clamp(2rem, 5vw, 5.2rem); }
.story-copy h2, .activity-heading h2 { margin: 0 0 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 4vw, 4.4rem); letter-spacing: -.035em; line-height: 1.03; }
.story-copy > p:not(.eyebrow) { font-size: 1.1rem; }
.interaction-card, .wonder-box { margin: 1.6rem 0; padding: 1.25rem; border-radius: 18px; background: #edf6f2; border: 1px solid #cfdfd9; }
.interaction-card p { margin: .25rem 0 .8rem; }
.interaction-card input { width: 100%; accent-color: var(--coral); }
.discovery { color: #39675e; font-size: .9rem; }

.scene-sky { position: absolute; inset: 0 0 48%; background: linear-gradient(#da8a68, #f2c17a); }
.scene-moon { position: absolute; top: 16%; right: 18%; width: 70px; height: 70px; border-radius: 50%; background: #ffe6a1; }
.cloud { position: absolute; width: 130px; height: 34px; border-radius: 50%; background: rgba(255,240,206,.6); }
.cloud-one { top: 22%; left: 12%; }.cloud-two { top: 35%; right: 5%; transform: scale(.7); }
.scene-water { position: absolute; inset: 47% 0 0; background: #5b9ca5; }
.scene-water i { position: absolute; left: -10%; width: 120%; height: 80px; border-top: 5px solid rgba(255,255,255,.38); border-radius: 50%; }
.scene-water i:nth-child(1) { top: 13%; }.scene-water i:nth-child(2) { top: 42%; left: -25%; }.scene-water i:nth-child(3) { top: 72%; }
.main-boat { position: absolute; z-index: 4; left: 10%; top: 40%; width: 50%; height: 35%; transition: left .15s linear; }
.main-boat .hull { bottom: 4%; }.main-boat .mast { bottom: 28%; }.main-boat .sail { bottom: 45%; }
.main-boat .people { bottom: 27%; }
.tiny-boats { position: absolute; z-index: 3; inset: 55% 0 0; opacity: 0; transition: opacity .5s; }
.tiny-boats.visible { opacity: 1; }
.tiny-boats i { position: absolute; width: 52px; height: 15px; border-radius: 4px 4px 50% 50%; background: #784234; }
.tiny-boats i:nth-child(1) { left: 10%; top: 15%; }.tiny-boats i:nth-child(2) { right: 10%; top: 28%; }.tiny-boats i:nth-child(3) { right: 29%; top: 54%; }

.storm-scene { background: #263b50; }
.storm-clouds { position: absolute; inset: 0 0 40%; background: radial-gradient(ellipse at 20% 90%, #536276 0 22%, transparent 23%), radial-gradient(ellipse at 65% 100%, #44566b 0 35%, transparent 36%), #1e2c3e; }
.rain { position: absolute; inset: 0; opacity: .6; background: repeating-linear-gradient(105deg, transparent 0 24px, rgba(220,238,239,.45) 25px 28px, transparent 29px 45px); animation: rain .65s linear infinite; }
@keyframes rain { to { background-position: -46px 80px; } }
.storm-scene .main-boat { left: 23%; top: 35%; }
.torn-sail { position: absolute; left: 50%; bottom: 45%; width: 40%; height: 50%; background: #e3d5b7; clip-path: polygon(0 0, 100% 78%, 72% 72%, 88% 100%, 0 93%); }
.rocking { animation: rock 1.8s ease-in-out infinite; }
@keyframes rock { 50% { transform: rotate(7deg) translateY(10px); } }
.frightened i:nth-child(2), .frightened i:nth-child(4) { transform: rotate(20deg); }
.storm-wave { position: absolute; z-index: 5; left: -15%; width: 130%; height: 170px; border-radius: 45% 55% 0 0; background: #39738a; box-shadow: inset 0 12px rgba(208,235,232,.25); }
.wave-a { bottom: -15%; transform: rotate(3deg); animation: surge 2.5s ease-in-out infinite; }.wave-b { bottom: -28%; background: #2d607a; animation: surge 3s ease-in-out infinite reverse; }.wave-c { bottom: -39%; background: #224d68; animation: surge 2.2s ease-in-out infinite; }
@keyframes surge { 50% { transform: translateY(-28px) rotate(-2deg); } }
.feeling-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.feeling-buttons button { padding: .55rem .8rem; border: 2px solid #9fc2ba; border-radius: 999px; background: white; cursor: pointer; font-weight: 800; }
.feeling-buttons button.selected { color: white; background: var(--blue); border-color: var(--blue); }

.find-scene { background: #294a60; }
.find-storm { position: absolute; inset: 0; background: repeating-linear-gradient(108deg, transparent 0 48px, rgba(255,255,255,.12) 49px 52px, transparent 53px 78px); }
.find-boat { position: absolute; left: 8%; right: 8%; bottom: 18%; height: 45%; background: #6d3d33; clip-path: polygon(2% 28%, 98% 28%, 84% 90%, 18% 90%); }
.jesus-sleeping { position: absolute; z-index: 8; left: 68%; top: 43%; bottom: auto; width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.92); background: rgba(255,215,102,.92); cursor: pointer; }
.jesus-sleeping.found { filter: drop-shadow(0 0 12px rgba(255,228,156,.9)); }
.search-people { position: absolute; left: 50%; right: 10%; top: 21%; bottom: 25%; display: flex; justify-content: space-between; align-items: center; }
.search-people i { width: 16%; height: 58%; border-radius: 50% 50% 14% 14%; background: #b34f45; box-shadow: 0 -22px 0 -3px #9b6246; }
.find-instruction { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); margin: 0; color: white; font-weight: 900; letter-spacing: .04em; }
.wonder-box { display: flex; gap: 1rem; align-items: center; background: #fff4d6; border-color: #edd39c; }
.wonder-box > span { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: var(--coral); font-weight: 900; }
.wonder-box p { margin: 0; }

.reflection-screen, .wonder-screen, .live-screen, .completion-screen { place-items: center; padding-bottom: 4rem; color: white; background: var(--night); }
.reflection-screen .chapter-label, .wonder-screen .chapter-label, .live-screen .chapter-label { align-self: start; justify-self: stretch; }
.care-question, .family-pause { width: min(92%, 800px); text-align: center; }
.care-question { padding: clamp(2rem, 7vw, 6rem) 1rem 1rem; }
.care-question h2 { margin: .3rem 0 1rem; color: var(--gold); font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 6.5rem); line-height: .95; }
.care-question p { font-size: 1.1rem; }
.family-pause { padding: 1.5rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.family-pause h3 { margin: .4rem 0 1rem; font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.4rem); }

.command-scene { transition: background 1.8s; background: #23364a; }
.command-sky { position: absolute; inset: 0 0 48%; transition: background 1.8s; background: #1c2939; }
.command-rain { position: absolute; inset: 0; opacity: .6; background: repeating-linear-gradient(105deg, transparent 0 28px, rgba(235,245,245,.5) 29px 31px, transparent 32px 54px); transition: opacity 1.2s; animation: rain .7s linear infinite; }
.command-boat { position: absolute; z-index: 4; left: 18%; right: 15%; bottom: 22%; height: 42%; animation: rock 1.7s ease-in-out infinite; }
.command-boat .hull { left: 0; right: 0; bottom: 0; }
.command-jesus { position: absolute; z-index: 2; left: 45%; bottom: 27%; width: 12%; height: 41%; border-radius: 48% 48% 12% 12%; background: #e9d4aa; box-shadow: 0 -29px 0 -7px #9b6246; }
.command-jesus::after { content: ""; position: absolute; width: 70%; height: 8px; top: 15%; right: -48%; border-radius: 8px; background: #9b6246; transform: rotate(-12deg); transform-origin: left; }
.command-disciples { position: absolute; left: 9%; right: 9%; bottom: 27%; display: flex; justify-content: space-between; }
.command-disciples i { width: 9%; height: 50px; border-radius: 50% 50% 10% 10%; background: #b64e45; box-shadow: 0 -24px 0 -7px #9b6246; }
.command-waves { position: absolute; inset: 52% 0 0; overflow: hidden; transition: background 1.8s; background: #326d80; }
.command-waves i { position: absolute; left: -10%; width: 120%; height: 100px; border-top: 14px solid rgba(224,244,240,.4); border-radius: 50%; animation: surge 1.5s ease-in-out infinite; }
.command-waves i:nth-child(1) { top: 13%; }.command-waves i:nth-child(2) { top: 42%; animation-delay: -.7s; }.command-waves i:nth-child(3) { top: 76%; }
.command-scene.calm { background: #8bb9b0; }
.command-scene.calm .command-sky { background: linear-gradient(#ddb36d, #f5d895); }
.command-scene.calm .command-rain { opacity: 0; animation: none; }
.command-scene.calm .command-boat, .command-scene.calm .command-waves i { animation: none; }
.command-scene.calm .command-waves { background: #5a9da5; }
.command-scene.calm .command-waves i { border-top-width: 4px; }
.speak-button { display: block; width: 100%; margin: 1.5rem 0; padding: 1.2rem; border-radius: 18px; color: var(--night); background: var(--gold); font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; box-shadow: var(--shadow); }
.speak-button.spoken { opacity: .55; }
.calm-reveal { margin: 1rem 0 1.5rem; color: #315d60; }

.wonder-screen { position: relative; overflow: hidden; min-height: calc(100vh - 64px); text-align: center; background: #7fa3a1 url("assets/calm-storybook.jpg") center / cover no-repeat; }
.wonder-screen::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(17,43,60,.18); }
.wonder-water { position: absolute; inset: 50% 0 0; z-index: 1; pointer-events: auto; }
.wonder-water i { position: absolute; left: -5%; width: 110%; height: 90px; border-top: 4px solid rgba(255,255,255,.35); border-radius: 50%; animation: drift 8s ease-in-out infinite; }
.wonder-water i:nth-child(2) { top: 35%; animation-delay: -3s; }.wonder-water i:nth-child(3) { top: 70%; animation-delay: -6s; }
.touch-ripple { position: absolute; width: 72px; height: 24px; border: 4px solid rgba(224,250,246,.92); border-radius: 50%; pointer-events: none; filter: drop-shadow(0 0 6px rgba(96,177,180,.9)); transform: translate(-50%,-50%) scale(.18); animation: stillWaterRipple 1.75s cubic-bezier(.18,.66,.25,1) var(--ripple-delay) both; }
@keyframes stillWaterRipple {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.18); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(7.2); }
}
.wonder-screen .chapter-label { position: absolute; top: 0; left: 0; right: 0; }
.wonder-copy { position: relative; z-index: 2; width: min(92%, 830px); margin-top: 2rem; padding: 2rem; color: var(--night); background: rgba(255,253,247,.91); border-radius: var(--radius); box-shadow: var(--shadow); transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.wonder-screen.picture-view .wonder-copy { visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(18px) scale(.98); }
.wonder-screen.picture-view::after { background: rgba(17,43,60,.05); }
.wonder-copy h2 { margin: .3rem 0 1.3rem; font-family: Georgia, serif; font-size: clamp(3.4rem, 8vw, 7rem); letter-spacing: -.05em; }
.reveal-truth { padding: .9rem 1.2rem; border-radius: 999px; background: var(--seafoam); font-weight: 900; }
.truth-reveal { margin: 1.5rem 0; }
.truth-reveal p { font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3.1rem); font-weight: 800; }
.truth-reveal h3 { color: #38666b; font-size: 1.05rem; }

.activity-screen, .create-screen { grid-template-columns: minmax(0, 900px); align-content: start; justify-content: center; gap: 1.5rem; padding: 0 clamp(1rem, 4vw, 3rem) 5rem; background: var(--paper); }
.activity-screen .chapter-label, .create-screen .chapter-label { margin-inline: calc(-1 * clamp(1rem, 4vw, 3rem)); }
.activity-heading { padding-top: clamp(2.5rem, 6vw, 5rem); text-align: center; }
.activity-heading h2 { margin-bottom: .6rem; }
.activity-heading > p:last-child { max-width: 580px; margin-inline: auto; }
.question-stack { display: grid; gap: .7rem; }
.question-card { display: grid; grid-template-columns: minmax(92px,115px) minmax(0,1fr) 30px; align-items: center; gap: 1rem; width: 100%; padding: 1.2rem; border: 1px solid #d7ddd8; border-radius: 18px; text-align: left; background: white; cursor: pointer; box-shadow: 0 6px 16px rgba(24,50,76,.05); }
.question-card span { color: var(--coral); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.question-text { min-width: 0; font-size: 1rem; line-height: 1.35; }
.question-card i { font-style: normal; font-size: 1.5rem; }
.question-card.open i { transform: rotate(45deg); }
.question-help { display: none; margin: -.7rem 0 0; padding: 1.2rem; border-radius: 0 0 18px 18px; background: #edf6f2; }
.question-help.open { display: block; }
.activity-screen > .primary-button, .create-screen > .primary-button { justify-self: center; margin-top: 1rem; }

.remember-screen { grid-template-columns: minmax(0,1000px); }
.verse-cast-art { position: relative; overflow: hidden; width: 100%; margin: 2rem 0 0; border: 5px solid white; border-radius: 28px; background: #efc477; box-shadow: 0 22px 55px rgba(19,38,62,.2); }
.verse-cast-art::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(transparent, rgba(18,38,62,.2)); pointer-events: none; }
.verse-cast-art img { display: block; width: 100%; height: auto; }
.remember-screen .verse-heading { position: relative; z-index: 2; justify-self: center; width: min(88%,760px); margin-top: -4.4rem; padding: 1.5rem clamp(1rem,4vw,2.4rem); border: 1px solid rgba(24,50,76,.1); border-radius: 24px; background: rgba(255,253,247,.96); box-shadow: 0 15px 40px rgba(19,38,62,.15); }
.verse-heading h2 { color: var(--night); font-size: clamp(2rem, 5vw, 4rem); }
.verse-reference { margin: .55rem 0 1rem !important; color: var(--coral); font-size: .92rem !important; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.game-reference { text-align: center; }
.verse-builder { padding: clamp(1.2rem, 4vw, 2.4rem); border-radius: var(--radius); background: #eef6f2; }
.verse-slots { min-height: 110px; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1rem; border: 2px dashed #92b8ae; border-radius: 18px; background: rgba(255,255,255,.55); }
.verse-pieces { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; padding: 1.5rem 0; }
.verse-piece { padding: .75rem 1rem; border: 0; border-radius: 12px; color: white; background: var(--blue); cursor: pointer; font-weight: 800; box-shadow: 0 5px 0 #244e69; }
.verse-piece:active { transform: translateY(3px); box-shadow: 0 2px 0 #244e69; }
.verse-piece.placed { color: var(--night); background: white; box-shadow: none; }
.verse-piece.wrong { animation: shake .3s; background: var(--coral); }
@keyframes shake { 33% { transform: translateX(-6px); } 66% { transform: translateX(6px); } }
.gentle-feedback { min-height: 1.5em; text-align: center; font-weight: 700; }
.secondary-button { min-height: 42px; padding: .55rem .9rem; border: 1px solid #91a3ad; border-radius: 12px; background: white; font-weight: 800; }

.live-screen { grid-template-columns: minmax(0, 800px); align-content: start; justify-content: center; gap: 1rem; padding-inline: clamp(1rem, 4vw, 3rem); }
.live-screen .chapter-label { margin-inline: calc(-1 * clamp(1rem, 4vw, 3rem)); }
.live-screen .activity-heading { color: white; }
.practice-list { display: grid; gap: .9rem; padding: 0; list-style: none; }
.practice-list li { display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.09); }
.practice-list li > span { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--night); background: var(--gold); font-weight: 900; }
.practice-list strong { color: var(--gold); font-size: 1.1rem; }.practice-list p { margin: .1rem 0; }
.prayer-card { padding: 1.4rem; border-radius: 20px; color: var(--night); background: var(--cream); font-family: Georgia, serif; font-size: 1.25rem; }
.prayer-card .eyebrow { font-family: ui-rounded, sans-serif; }
.live-screen > .primary-button { justify-self: center; }

.canvas-wrap { position: relative; overflow: hidden; width: 100%; aspect-ratio: 2/1; border: 3px solid var(--night); border-radius: 20px; background: white; box-shadow: var(--shadow); touch-action: none; }
#coloringCanvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: none; }
.color-reference { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.color-reference-button { justify-self: center; }
.drawing-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem; }
.colors { display: grid; flex: 0 0 100%; grid-template-columns: repeat(6, 42px); justify-content: center; gap: .45rem; }
.color { width: 42px; height: 42px; border: 3px solid white; border-radius: 50%; background: var(--color); box-shadow: 0 0 0 1px #9aa5aa; cursor: pointer; }
.color.active { box-shadow: 0 0 0 4px var(--gold); }
.save-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

.completion-screen { position: relative; overflow: hidden; text-align: center; }
.completion-sky { position: absolute; inset: 0; background: radial-gradient(circle at 50% 80%, #598b91 0 18%, transparent 19%), linear-gradient(#12243a, #294c64); }
.completion-sky span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #ffe7a0; box-shadow: 0 0 12px #ffe7a0; animation: twinkle 2s ease-in-out infinite; }
.completion-sky span:nth-child(1) { left: 15%; top: 22%; }.completion-sky span:nth-child(2) { right: 18%; top: 28%; animation-delay: -.7s; }.completion-sky span:nth-child(3) { left: 31%; top: 13%; animation-delay: -1.4s; }.completion-sky span:nth-child(4) { right: 34%; top: 16%; animation-delay: -1s; }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.65); } }
.completion-content { position: relative; z-index: 2; width: min(92%, 720px); }
.completion-content h2 { margin: .2rem 0 1rem; font-family: Georgia, serif; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.big-truth { color: var(--gold); font-size: 1.25rem; font-weight: 800; }
.remember-card { display: grid; gap: .5rem; margin: 2rem auto; padding: 1.5rem; border: 2px solid rgba(255,255,255,.3); border-radius: 20px; background: rgba(255,255,255,.09); }
.remember-card span { color: var(--gold); font-size: .75rem; font-weight: 900; letter-spacing: .14em; }.remember-card strong { font-family: Georgia, serif; font-size: 1.4rem; }
.completion-content .primary-button { margin-inline: auto; }
.text-button { display: block; margin: 1rem auto; color: white; text-decoration: underline; }

footer { padding: 2rem clamp(1rem, 4vw, 3rem); color: #637382; background: #f1eadb; font-size: .7rem; text-align: center; }

@media (max-width: 820px) {
  .welcome-screen, .story-screen { grid-template-columns: 1fr; }
  .hero-art { min-height: 47vh; }
  .welcome-copy { padding: 2rem 1.2rem 3.5rem; }
  .story-screen { grid-template-rows: auto auto auto; }
  .scene, .find-scene { min-height: 0; aspect-ratio: 3 / 2; }
  .story-copy { padding: 2.2rem 1.2rem 3.5rem; }
  .main-boat { width: 68%; }
  .storm-scene .main-boat { left: 14%; }
  .question-card { grid-template-columns: minmax(0,1fr) 24px; gap: .3rem .7rem; padding: 1rem .9rem; }
  .question-card span { grid-column: 1; }
  .question-text { grid-column: 1; }
  .question-card i { grid-column: 2; grid-row: 1 / 3; justify-self: end; }
  .topbar { min-height: 58px; }
  .grownup-panel { top: 58px; }
  .story-hotspot { width: 34px; height: 34px; }
  .departure-main-boat { width: 54%; min-width: 235px; bottom: 16%; }
  .departure-follower-boat { width: 27%; min-width: 132px; bottom: 32%; }
  .departure-cue { max-width: min(310px, 74%); font-size: .82rem; }
}

@media (max-width: 480px) {
  .brand span:last-child { font-size: .84rem; }
  .quiet-button { font-size: .72rem; }
  .scene, .find-scene { min-height: 0; aspect-ratio: 3 / 2; }
  .hero-art { min-height: 42vh; }
  .hero-boat { left: 12%; width: 68%; }
  .care-question { padding-top: 4rem; }
  .reflection-screen, .wonder-screen, .live-screen, .completion-screen { min-height: calc(100svh - 58px); }
  .wonder-copy { padding: 1.4rem 1rem; }
  .question-card { grid-template-columns: minmax(0,1fr) 24px; gap: .3rem .7rem; }
  .question-card span { grid-column: 1; }
  .question-text { grid-column: 1; }
  .question-card i { grid-column: 2; grid-row: 1 / 3; justify-self: end; }
}

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

@media print {
  body * { visibility: hidden; }
  .create-screen, .create-screen * { visibility: visible; }
  .create-screen { position: absolute; inset: 0; display: block !important; padding: 0; }
  .create-screen > *:not(.canvas-wrap):not(.activity-heading) { display: none !important; }
  .activity-heading p, .activity-heading .eyebrow { display: none; }
  .canvas-wrap { border: 1px solid black; box-shadow: none; }
  .color-reference { display: none !important; }
}
