:root {
  color-scheme: light;
  --paper: #f1efe5;
  --paper-light: #f7f5ec;
  --paper-deep: #dfdccf;
  --ink: #2b3229;
  --muted: #646b61;
  --line: rgba(43, 50, 41, .18);
  --accent: #3d563f;
  --surround: #cbd0c5;
  --focus: #e1c953;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--surround); }

body {
  min-height: 100dvh;
  margin: 0;
  padding: clamp(14px, 3vw, 42px);
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 5%, rgba(255,255,255,.36), transparent 29rem),
    repeating-linear-gradient(91deg, rgba(49,61,45,.017) 0 1px, transparent 1px 6px),
    var(--surround);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

button { font: inherit; }
[hidden] { display: none !important; }

.cover-view,
.intro-view {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - clamp(28px, 6vw, 84px));
  display: grid;
  place-items: center;
  perspective: 1800px;
}
.cover-view { overflow: hidden; }

.closed-book {
  position: relative;
  z-index: 2;
  width: min(620px, 82vw);
  aspect-ratio: 1.34 / 1;
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 28px 22px rgba(27, 35, 25, .25));
}
.cover-board,
.cover-face,
.cover-pages { position: absolute; inset: 0; border-radius: 7px 14px 14px 7px; }
.cover-board { transform: translate(9px, 10px); background: #273b2a; }
.cover-pages {
  inset: 6px -8px -9px 13px;
  z-index: 1;
  background: repeating-linear-gradient(0deg, #d9d5c5 0 1px, #f0ede1 1px 4px);
  box-shadow: 8px 9px 13px rgba(27, 35, 25, .18);
}
.cover-face {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(28px, 6vw, 64px);
  color: #ede8d3;
  border: 2px solid #1c2c1f;
  background:
    linear-gradient(105deg, rgba(255,255,255,.06), transparent 24%),
    repeating-linear-gradient(3deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px),
    #334b35;
  box-shadow: inset 0 0 0 8px #334b35, inset 0 0 0 9px rgba(225, 207, 145, .34), inset 17px 0 22px rgba(12, 21, 14, .22);
  transform-origin: left center;
}
.cover-face::before {
  position: absolute;
  inset: 25px;
  content: "";
  border: 1px solid rgba(225, 207, 145, .44);
  border-radius: 46% 54% 49% 51% / 3% 4% 3% 4%;
  pointer-events: none;
}
.cover-kicker {
  margin: 18px 0 13px;
  color: #f3eed8;
  font-size: clamp(1.05rem, 1.55vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0;
}
.cover-face h1 {
  max-width: 8ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 500;
  font-style: italic;
  line-height: .96;
  text-align: center;
  text-shadow: 0 2px 0 rgba(16,26,18,.5);
}
.cover-coin {
  display: grid;
  place-items: center;
  width: clamp(42px, 7vw, 66px);
  aspect-ratio: 1;
  border: 1px solid #d3bc72;
  border-radius: 50%;
  color: #e1cc86;
  box-shadow: inset 0 0 0 4px #334b35, inset 0 0 0 5px rgba(211,188,114,.55);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
}
.cover-sprig { position: absolute; top: 50%; width: 22%; height: 1px; background: rgba(225,207,145,.42); }
.cover-sprig::before, .cover-sprig::after { position: absolute; width: 30%; height: 12px; content: ""; border: 1px solid rgba(225,207,145,.38); border-radius: 80% 10% 80% 10%; }
.cover-sprig::before { left: 19%; bottom: 2px; transform: rotate(-28deg); }
.cover-sprig::after { right: 19%; top: 2px; transform: rotate(148deg); }
.cover-sprig--left { left: 8%; }
.cover-sprig--right { right: 8%; transform: scaleX(-1); }
.cover-open,
.intro-begin,
.intro-cover-link {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.cover-open {
  margin-top: clamp(25px, 4vw, 42px);
  padding: 9px 17px;
  color: #f3efd9;
  border-bottom: 1px solid rgba(225,207,145,.72);
  font-size: .86rem;
}
.closed-book.is-opening .cover-face { animation: cover-open .78s cubic-bezier(.58,.02,.18,1) both; }

.intro-book { min-height: min(700px, calc(100dvh - 84px)); }
.intro-page { min-height: 100%; }
.intro-page--left { display: flex; flex-direction: column; }
.intro-copy { max-width: 35ch; margin: auto 0; }
.running-title { margin: 0 0 35px; font-family: Georgia, "Times New Roman", serif; color: var(--accent); font-size: 1rem; font-weight: 500; }
.intro-copy h2 { margin: 0 0 27px; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 400; }
.intro-copy > p { margin: .4em 0; font-size: clamp(.98rem, 1.35vw, 1.12rem); line-height: 1.5; }
.mark-key { margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.mark-key > div { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px; margin: 12px 0; }
.mark-key dt, .mark-key dd { margin: 0; }
.mark-key dd { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.sample-circle, .sample-lens { position: relative; display: block; width: 28px; height: 28px; }
.sample-x { position: relative; display: block; width: 36px; height: 36px; transform: rotate(-4deg); }
.sample-circle { border: 1.5px solid #555a51; border-radius: 48% 53% 46% 55%; transform: rotate(-6deg); }
.sample-circle span { position: absolute; right: -3px; bottom: -1px; width: 14px; height: 7px; border-left: 2px solid #4d534a; border-bottom: 2px solid #4d534a; transform: rotate(-45deg); }
.sample-x::before, .sample-x::after { position: absolute; top: 3px; left: 17px; width: 2.2px; height: 30px; content: ""; border-radius: 50%; background: #4b5148; transform: rotate(42deg); }
.sample-x::after { transform: rotate(-47deg); }
.sample-lens { border: 2px solid #566050; border-radius: 50%; }
.sample-lens::after { position: absolute; right: -8px; bottom: -7px; width: 12px; height: 3px; content: ""; background: #566050; transform: rotate(47deg); }
.intro-cover-link { margin-top: auto; align-self: flex-start; padding: 8px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.intro-page--right { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.intro-plate { position: relative; width: min(88%, 720px); aspect-ratio: 1.45; overflow: hidden; border: 9px solid #e7e3d6; box-shadow: 0 0 0 1px rgba(43,50,41,.2), 0 12px 20px rgba(43,50,41,.1); }
.intro-plate img { width: 100%; height: 100%; object-fit: cover; }
.intro-found-mark { position: absolute; left: 25%; top: 48%; width: 64px; height: 50px; border: 2px solid rgba(244,240,217,.9); border-radius: 48% 54% 45% 52%; transform: rotate(-7deg); box-shadow: 0 0 0 1px #41483e; }
.intro-wrong-mark { position: absolute; left: 62%; top: 31%; width: 30px; height: 30px; }
.intro-wrong-mark::before, .intro-wrong-mark::after { position: absolute; left: 14px; width: 2px; height: 29px; content: ""; background: rgba(48,52,46,.75); transform: rotate(43deg); }
.intro-wrong-mark::after { transform: rotate(-47deg); }
.intro-lens { position: absolute; right: 8%; bottom: 9%; width: 82px; height: 82px; border: 6px solid #68543d; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(248,244,222,.7); }
.intro-lens::after { position: absolute; right: -31px; bottom: -18px; width: 42px; height: 9px; content: ""; border-radius: 6px; background: #68543d; transform: rotate(46deg); }
.intro-turn-note { margin: 24px 0 12px; color: var(--muted); font-size: .82rem; font-style: italic; }
.intro-begin { padding: 8px 0; color: var(--accent); border-bottom: 1px solid currentColor; font-size: 1rem; }
.intro-book.is-turning .intro-page--right { animation: intro-page-turn .65s cubic-bezier(.55,.03,.2,1) both; transform-origin: left center; }
.game-book.is-closing { animation: game-close .48s ease-in both; }

.book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, .72fr) minmax(450px, 1fr);
  width: min(1540px, calc(100vw - clamp(28px, 6vw, 84px)));
  perspective: 2300px;
  filter: drop-shadow(0 21px 20px rgba(30, 40, 27, .16));
}

.book::before {
  position: absolute;
  z-index: -1;
  right: 5px;
  bottom: -7px;
  left: 5px;
  height: 11px;
  content: "";
  border-radius: 0 0 6px 6px;
  background:
    linear-gradient(var(--paper-deep), var(--paper-deep)) 0 0 / 100% 1px no-repeat,
    linear-gradient(#d8d4c6, #d8d4c6) 3px 3px / calc(100% - 6px) 1px no-repeat,
    linear-gradient(#ece9dd, #ece9dd) 6px 6px / calc(100% - 12px) 1px no-repeat;
  box-shadow: 0 8px 17px rgba(30, 40, 27, .12);
}

.book::after {
  position: absolute;
  z-index: 24;
  top: 2px;
  bottom: 2px;
  left: 41.86%;
  width: 24px;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(39,45,35,.12) 39%, rgba(255,255,255,.31) 54%, transparent 76%);
  filter: blur(.15px);
}

.botanical-spill {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}
.botanical {
  position: absolute;
  z-index: var(--botanical-layer, 1);
  left: var(--botanical-x);
  top: var(--botanical-y);
  width: var(--botanical-size);
  aspect-ratio: 1;
  opacity: var(--botanical-opacity, .8);
  background-image: url("../assets/decor/botanical-sprites.webp");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  filter: saturate(.82) drop-shadow(0 4px 3px rgba(39, 49, 34, .12));
  transform: translate(-50%, -50%) rotate(var(--botanical-rotation)) scale(var(--spill-scale, 1));
  transform-origin: center;
}
.botanical--daisy { background-position: 0 0; }
.botanical--rose { background-position: 50% 0; }
.botanical--violet { background-position: 100% 0; }
.botanical--fern { background-position: 0 100%; }
.botanical--petal { background-position: 50% 100%; }
.botanical--leaves { background-position: 100% 100%; }
.botanical-spill--cover { inset: -1%; }
.botanical-spill--cover .botanical {
  filter: saturate(1.02) contrast(1.05) drop-shadow(0 5px 4px rgba(39, 49, 34, .16));
}
.botanical-spill--spread { inset: -9% -4%; }
.game-book > .book-page { z-index: 2; }

.page-ornament {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0;
  pointer-events: none;
}
.page-ornament .botanical {
  filter: grayscale(.1) saturate(.72) blur(.1px);
  opacity: var(--botanical-opacity, .31);
}
.page-imprint {
  position: absolute;
  left: var(--imprint-x);
  top: var(--imprint-y);
  width: var(--imprint-size);
  aspect-ratio: 1;
  opacity: var(--imprint-opacity);
  color: var(--accent);
  transform: translate(-50%, -50%) rotate(var(--imprint-rotation));
}
.page-imprint--coin {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px currentColor;
  font-size: calc(var(--imprint-size) * .33);
}
.page-imprint--coin::before { content: "5"; transform: rotate(-4deg); }
.page-imprint--pressure {
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(70, 77, 66, .34), rgba(70, 77, 66, .09) 35%, transparent 72%);
  filter: blur(2px);
}
.page-imprint--pencil {
  aspect-ratio: 2.2;
  border-top: 1px solid currentColor;
  border-radius: 50%;
}
.page-imprint--pencil::before,
.page-imprint--pencil::after {
  position: absolute;
  content: "";
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}
.page-imprint--pencil::before { left: 12%; top: 42%; width: 58%; transform: rotate(7deg); }
.page-imprint--pencil::after { left: 35%; top: 68%; width: 42%; transform: rotate(-9deg); }
.book-page {
  position: relative;
  min-width: 0;
  background:
    repeating-radial-gradient(circle at 17% 22%, rgba(255,255,255,.18) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(4deg, rgba(51,57,47,.012) 0 1px, transparent 1px 5px),
    linear-gradient(102deg, rgba(255,255,255,.17), transparent 27%),
    var(--paper);
}

.book-page--left {
  --notebook-margin: 22px;
  z-index: 1;
  padding: clamp(34px, 3.4vw, 58px) clamp(28px, 3.5vw, 58px) 48px;
  border-radius: 5px 0 0 6px;
  transform: perspective(1400px) rotateY(1deg);
  transform-origin: right center;
  box-shadow:
    inset -25px 0 28px -28px rgba(25,31,23,.62),
    inset -2px 0 3px -2px rgba(37,44,33,.26),
    -2px 2px 0 var(--paper-deep),
    -4px 4px 0 rgba(224,220,207,.92),
    -6px 6px 0 rgba(200,198,186,.54);
}

.game-book .book-page--left::before {
  position: absolute;
  z-index: 0;
  inset: 12px 15px 15px 12px;
  content: "";
  pointer-events: none;
  opacity: .7;
  background:
    linear-gradient(90deg, transparent, rgba(241, 239, 229, .82), transparent) 74% 39% / 17% 2px no-repeat,
    linear-gradient(90deg, transparent, rgba(241, 239, 229, .78), transparent) 18% 68% / 12% 2px no-repeat,
    linear-gradient(90deg,
      transparent 0 var(--notebook-margin),
      rgba(120, 83, 72, .16) var(--notebook-margin) calc(var(--notebook-margin) + 1px),
      transparent calc(var(--notebook-margin) + 1px)),
    repeating-linear-gradient(179.8deg,
      transparent 0 28px,
      rgba(58, 72, 58, .14) 28px 29px);
  transform: rotate(-.08deg);
}

.book-page--right {
  --page-x: 18px;
  --page-top: 17px;
  --page-bottom: 42px;
  z-index: 2;
  padding: var(--page-top) var(--page-x) var(--page-bottom) calc(var(--page-x) + 2px);
  border-radius: 0 5px 6px 0;
  transform: perspective(1400px) rotateY(-.65deg);
  transform-origin: left center;
  box-shadow:
    inset 25px 0 28px -28px rgba(25,31,23,.62),
    inset 2px 0 3px -2px rgba(255,255,255,.74),
    2px 2px 0 var(--paper-deep),
    4px 4px 0 rgba(224,220,207,.92),
    6px 6px 0 rgba(200,198,186,.54);
}

.book-page--right[data-layout="full"] { --page-x: 7px; --page-top: 7px; --page-bottom: 33px; }
.book-page--right[data-layout="plate"] { --page-x: 23px; --page-top: 22px; --page-bottom: 47px; }
.book-page--right[data-layout="captioned"] { --page-x: 19px; --page-top: 17px; --page-bottom: 50px; }
.book-page--right[data-layout="tall"] { --page-x: 11px; --page-top: 10px; --page-bottom: 36px; }

.book-page--right::before {
  position: absolute;
  z-index: 20;
  top: 0;
  bottom: 0;
  left: -3px;
  width: 22px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(30,36,27,.18), rgba(255,255,255,.15) 44%, transparent 82%);
  opacity: .7;
}

.book-page__content { position: relative; display: flex; flex-direction: column; min-height: 100%; }
.book-page__content > * { position: relative; z-index: 1; }

.game-book .book-page__content::before {
  position: absolute;
  z-index: 0;
  inset: 11% 2% 10% 1%;
  content: "";
  pointer-events: none;
  opacity: .7;
  background:
    radial-gradient(ellipse at 76% 65%, rgba(92, 88, 75, .075), transparent 18%),
    radial-gradient(ellipse at 21% 87%, rgba(92, 88, 75, .06), transparent 14%),
    linear-gradient(16deg, transparent 47%, rgba(61, 69, 58, .09) 48% 49%, transparent 50%) 13% 53% / 54px 18px no-repeat,
    linear-gradient(-8deg, transparent 47%, rgba(61, 69, 58, .07) 48% 49%, transparent 50%) 83% 35% / 44px 16px no-repeat;
  transform: rotate(.16deg);
}

.book-heading h1 {
  margin: 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.15vw, 2rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.18;
}

.scene-line {
  display: flex;
  gap: 10px;
  margin: 11px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.32rem, 1.7vw, 1.5rem);
  line-height: 1.3;
}

.scene-number { color: var(--ink); font-variant-numeric: tabular-nums; }

.challenge-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 18px;
  margin-top: clamp(18px, 2vw, 26px);
  padding-top: 0;
}

.challenge {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.82rem, 2.35vw, 2.1rem);
  line-height: 1.25;
}

.progress { flex: 0 0 auto; }
.progress__marks { display: flex; align-items: center; gap: 11px; min-height: 28px; }
.progress__mark {
  display: inline-block;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.62rem;
  line-height: 1;
  opacity: .83;
}
.progress__mark:nth-child(2n) { transform: rotate(5deg) translateY(1px); }
.progress__mark:nth-child(3n) { transform: rotate(-4deg); }
.progress__mark.is-found { animation: ink-fill .38s ease-out both; }

.book-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; min-height: 30px; margin-top: auto; }

.sound-button,
.text-button,
.turn-button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  padding: 6px 0;
  text-underline-offset: 3px;
}

.sound-button,
.text-button {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .86rem;
  letter-spacing: .005em;
}

.sound-button { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sound-button__mark { font-size: .82rem; transform: translateY(-1px); }
.text-button { color: var(--accent); text-decoration: none; }
.turn-button { color: var(--accent); font-size: .76rem; white-space: nowrap; }
.turn-button:hover, .text-button:hover,
.text-button:focus-visible { text-decoration: underline; }
.turn-button:active, .sound-button:active, .text-button:active { transform: translateY(1px); }

.completion {
  min-height: 42px;
  margin: 10px 0 5px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  animation: completion-arrive .38s ease-out both;
}
.completion p { margin: 0; font-size: .75rem; }

.page-number {
  position: absolute;
  bottom: 15px;
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .6rem;
  font-variant-numeric: tabular-nums;
}
.page-number--left { left: 22px; }
.page-number--right { right: 22px; }

button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hotspot:focus-visible { border-radius: 3px; outline: 1px dotted var(--focus); outline-offset: 3px; }

.scene {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1672 / 941;
  background: var(--paper-deep);
  isolation: isolate;
  perspective: 1900px;
}

.scene::after {
  position: absolute;
  z-index: 12;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(3deg, rgba(245,241,225,.018) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(235,231,211,.05), transparent 4%, transparent 96%, rgba(235,231,211,.04));
  box-shadow: inset 0 0 0 1px rgba(57,62,49,.12);
  mix-blend-mode: soft-light;
}

.scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mobile-position, 50% 50%);
  user-select: none;
}

.scene__next-image { position: absolute; inset: 0; z-index: 1; }

.page-sheet {
  position: absolute;
  z-index: 3;
  inset: 0;
  transform-origin: right bottom;
  backface-visibility: hidden;
  will-change: transform, clip-path;
}

.page-sheet::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  content: "";
  opacity: 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, transparent 0 47%, rgba(243,240,225,.8) 50%, var(--paper-deep) 100%);
  filter: drop-shadow(-3px -3px 4px rgba(31,38,27,.15));
  transition: opacity .22s ease, transform .22s ease;
}

.scene:not(.is-complete):hover .page-sheet::after { opacity: .24; transform: scale(1.03); }

#scene-image,
.page-sheet__back { position: absolute; inset: 0; backface-visibility: hidden; }

.page-sheet__back {
  opacity: 0;
  background:
    repeating-radial-gradient(circle at 17% 22%, rgba(255,255,255,.18) 0 1px, transparent 1px 4px),
    var(--paper);
}

.page-turn-shadow {
  position: absolute;
  z-index: 5;
  top: -3%;
  bottom: -3%;
  left: 100%;
  width: 36%;
  display: none;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0, rgba(27,33,24,.08) 28%, rgba(27,33,24,.29) 56%, rgba(27,33,24,.09) 76%, transparent 100%);
  filter: blur(7px);
  transform: skewX(-7deg);
  will-change: transform, opacity;
}

.page-fold {
  position: absolute;
  z-index: 6;
  top: -1%;
  bottom: -1%;
  left: 100%;
  width: 44%;
  display: none;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
  background:
    linear-gradient(90deg, rgba(212,208,193,.88), rgba(248,246,235,.97) 37%, rgba(226,222,207,.96) 70%, rgba(184,181,168,.85)),
    var(--paper);
  box-shadow: -8px 0 18px rgba(26,32,23,.18), inset 12px 0 20px rgba(255,255,255,.28);
  transform: skewX(-4deg);
  will-change: transform, opacity;
}

.page-fold__ghost {
  position: absolute;
  inset: 0;
  opacity: .045;
  filter: grayscale(.55) contrast(.72);
  transform: scaleX(-1);
  mix-blend-mode: multiply;
}

.hotspots,
.ambient { position: absolute; inset: 0; }
.hotspots { z-index: 8; }
.ambient { z-index: 9; pointer-events: none; overflow: hidden; }

.hotspot {
  position: absolute;
  left: clamp(23px, var(--x), calc(100% - 23px));
  top: clamp(23px, var(--y), calc(100% - 23px));
  width: max(46px, var(--w));
  height: max(46px, var(--h));
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  touch-action: manipulation;
}
.hotspot[data-target="true"] { z-index: 2; }
.hotspot.is-found { z-index: 3; cursor: default; }

.hotspot::before,
.hotspot::after { position: absolute; content: ""; pointer-events: none; opacity: 0; }

.hotspot::before {
  inset: var(--mark-x, 4%);
  border: var(--mark-stroke, 1.4px) solid rgba(243,239,216,.91);
  border-radius: 49% 55% 47% 53% / 54% 46% 56% 45%;
  box-shadow: 0 0 0 .7px rgba(43,49,38,.72), inset 0 0 0 .35px rgba(43,49,38,.36);
  transform: rotate(var(--mark-rotate, -5deg)) scale(.72);
}

.hotspot::after {
  inset: 1% 8% 7% 2%;
  border-right: .8px solid rgba(243,239,216,.52);
  border-bottom: .8px solid rgba(243,239,216,.58);
  border-radius: 43% 58% 46% 55%;
  transform: rotate(3deg);
}

.hotspot.is-found::before { animation: pencil-circle .56s cubic-bezier(.2,.72,.18,1) both; }
.hotspot.is-found::after { animation: pencil-second-line .65s ease-out .11s both; }
.hotspot.is-reacting { animation: object-notice .44s ease-out; }

.found-check {
  position: absolute;
  z-index: 2;
  right: 4%;
  bottom: 4%;
  width: 44%;
  height: 38%;
  opacity: 0;
  transform: rotate(-9deg);
  pointer-events: none;
}
.found-check::before,
.found-check::after {
  position: absolute;
  bottom: 15%;
  left: 10%;
  height: max(1.4px, var(--mark-stroke, 1.4px));
  content: "";
  border-radius: 50%;
  background: rgba(43, 49, 38, .86);
  transform-origin: left center;
}
.found-check::before { width: 38%; transform: rotate(47deg); }
.found-check::after { left: 36%; width: 68%; transform: rotate(-43deg); }
.hotspot.is-found .found-check,
.lens-mark .found-check { animation: pencil-check .28s ease-out .34s both; }

.pencil-x {
  position: absolute;
  z-index: 3;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 244, 228, .72) 0 34%, rgba(247, 244, 228, .28) 50%, transparent 72%);
  transform: translate(-50%, -50%) rotate(-5deg);
  filter: drop-shadow(0 1px 1px rgba(245, 241, 220, .72));
  animation: pencil-x-fade 1.76s ease-out both;
}
.pencil-x::before,
.pencil-x::after {
  position: absolute;
  top: 5px;
  left: 27px;
  width: 3.2px;
  height: 49px;
  content: "";
  border-radius: 50%;
  background: rgba(34, 39, 33, .96);
  transform: rotate(43deg);
}
.pencil-x::after { transform: rotate(-48deg); }

.object-wobble {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  border-radius: 48%;
  transform: translate(-50%, -50%);
  animation: pictured-object-wobble .56s cubic-bezier(.22,.7,.2,1) both;
}
.object-wobble img {
  position: absolute;
  max-width: none;
  object-fit: cover;
  object-position: var(--mobile-position, 50% 50%);
  user-select: none;
}

.magnifier-tool {
  position: absolute;
  z-index: 26;
  right: 25px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  transform: rotate(-12deg);
}
.magnifier-tool__lens { position: absolute; top: 2px; left: 2px; width: 25px; height: 25px; border: 3px solid #5c4937; border-radius: 50%; background: rgba(240,244,225,.18); box-shadow: inset 0 0 0 1px rgba(242,234,205,.65), 1px 2px 3px rgba(33,38,30,.2); }
.magnifier-tool__handle { position: absolute; left: 25px; top: 25px; width: 18px; height: 6px; border-radius: 4px; background: #5c4937; transform: rotate(45deg); transform-origin: left center; }
.magnifier-tool[aria-pressed="true"] { transform: rotate(-5deg) translateY(-2px); }
.magnifier-lens {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: clamp(126px, 12vw, 154px);
  aspect-ratio: 1;
  overflow: visible;
  border: 7px solid #604b37;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(248,244,223,.7), 3px 7px 12px rgba(30,36,27,.28);
  pointer-events: none;
  will-change: transform;
}
.magnifier-lens::after { position: absolute; z-index: 5; inset: 0; content: ""; border-radius: 50%; background: linear-gradient(130deg, rgba(255,255,255,.24), transparent 34%); }
.magnifier-offset { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.magnifier-world { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.magnifier-world > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--mobile-position, 50% 50%); }
.magnifier-marks,
.magnifier-ambient { position: absolute; inset: 0; }
.lens-mark {
  position: absolute;
  left: clamp(23px, var(--x), calc(100% - 23px));
  top: clamp(23px, var(--y), calc(100% - 23px));
  width: max(46px, var(--w));
  height: max(46px, var(--h));
  border: var(--mark-stroke, 1.4px) solid rgba(243,239,216,.91);
  border-radius: 49% 55% 47% 53% / 54% 46% 56% 45%;
  box-shadow: 0 0 0 .7px rgba(43,49,38,.72), inset 0 0 0 .35px rgba(43,49,38,.36);
  transform: translate(-50%, -50%) rotate(var(--mark-rotate, -5deg));
}
.magnifier-handle { position: absolute; z-index: -1; right: -39px; bottom: -23px; width: 54px; height: 13px; border-radius: 8px; background: linear-gradient(#765e44, #4d3c2e); transform: rotate(46deg); transform-origin: left center; box-shadow: 2px 3px 5px rgba(30,36,27,.25); }
.magnifier-glass { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 9px 9px 12px rgba(255,255,255,.1); }
.magnifier-lens.is-nudged { animation: lens-nudge .7s ease-out; }

.scene.is-preparing-turn { pointer-events: none; }
.scene.is-turning { overflow: visible; z-index: 30; }
.scene.is-turning .page-sheet { animation: page-front-leave .98s cubic-bezier(.48,.03,.17,1) both; }
.scene.is-turning .page-turn-shadow { display: block; animation: shadow-travel .98s cubic-bezier(.42,.02,.2,1) both; }
.scene.is-turning .page-fold { display: block; animation: fold-travel .98s cubic-bezier(.44,.03,.18,1) both; }
.scene.is-turning .hotspots,
.scene.is-turning .ambient,
.scene.is-turning .corner-turn { opacity: 0; }
.scene.is-settling .page-sheet { animation: page-settle .16s ease-out both; }

.corner-turn {
  position: absolute;
  z-index: 11;
  right: 0;
  bottom: 0;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(-5px -4px 5px rgba(27,35,24,.19));
}
.corner-turn::before {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  content: "";
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, rgba(245,241,224,.08) 0 45%, rgba(248,246,234,.97) 49%, var(--paper-deep) 100%);
  transform-origin: right bottom;
  animation: corner-lift 2.7s ease-in-out 1;
}
.corner-turn span { position: absolute; inset: 0; }

.scene-caption {
  margin: 8px 2px 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .62rem;
  line-height: 1.25;
}

.scene__loading {
  position: absolute;
  z-index: 14;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(246,244,235,.92);
  background: rgba(26,34,23,.58);
  font-size: .8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.scene__loading.is-visible { opacity: 1; }

.environment-cue {
  position: absolute;
  width: 28px;
  height: 28px;
  opacity: 0;
  transform: translate(-50%, -50%);
  transform-origin: center;
}
.cue--glint, .cue--shine, .cue--glow, .cue--impossible {
  background: radial-gradient(circle, rgba(255,248,202,.86) 0 5%, rgba(255,248,202,.22) 18%, transparent 64%);
  animation: cue-glint 1.05s ease-out both;
}
.cue--rustle, .cue--tremble, .cue--fern, .cue--empty {
  width: 42px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(176,197,135,.2), transparent 70%);
  animation: cue-rustle 1s ease-in-out both;
}
.cue--flutter, .cue--lift, .cue--petal, .cue--seed, .cue--butterfly {
  width: 13px;
  height: 7px;
  border-radius: 80% 10% 80% 10%;
  background: rgba(245,237,204,.65);
  animation: cue-flutter 1.25s ease-in-out both;
}
.cue--drop, .cue--raindrop, .cue--condensation {
  width: 5px;
  height: 11px;
  border-radius: 50% 50% 60% 60%;
  background: rgba(221,240,238,.72);
  box-shadow: 0 0 5px rgba(236,248,244,.45);
  animation: cue-drop 1.15s ease-in both;
}
.cue--ripple {
  width: 42px;
  height: 16px;
  border: 1px solid rgba(229,241,226,.58);
  border-radius: 50%;
  animation: cue-ripple 1.1s ease-out both;
}
.cue--wobble, .cue--insect {
  width: 7px;
  height: 4px;
  border-radius: 50%;
  background: rgba(52,45,29,.62);
  animation: cue-wobble .95s ease-in-out both;
}
.cue--miss { filter: saturate(.68) brightness(.94); }
.cue--hint { animation-iteration-count: 3; }
.cue--found { filter: brightness(1.12); }

.persistent-hint {
  position: absolute;
  width: 52px;
  height: 38px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-7deg);
}
.persistent-hint::before,
.persistent-hint::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.persistent-hint::before {
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(247, 242, 199, .28), rgba(211, 224, 179, .09) 36%, transparent 70%);
  animation: persistent-hint-breathe 4.8s ease-in-out infinite;
}
.persistent-hint::after {
  right: 1px;
  bottom: 0;
  width: 17px;
  height: 9px;
  opacity: .38;
  border-right: 1px solid rgba(244, 239, 211, .66);
  border-bottom: 1px solid rgba(244, 239, 211, .66);
  border-radius: 0 0 72% 0;
  transform: rotate(9deg);
}
.persistent-hint--glint,
.persistent-hint--shine,
.persistent-hint--glow { width: 42px; height: 42px; }
.persistent-hint--rustle,
.persistent-hint--tremble { width: 62px; height: 36px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes ink-fill {
  0% { opacity: .25; transform: scale(.72) rotate(-8deg); }
  65% { opacity: 1; transform: scale(1.12) rotate(4deg); }
  100% { opacity: .86; transform: scale(1) rotate(0); }
}
@keyframes cover-open {
  0% { transform: rotateY(0); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotateY(-112deg) translateX(-3%); opacity: 0; }
}
@keyframes intro-page-turn {
  0% { transform: rotateY(0); opacity: 1; }
  100% { transform: rotateY(-98deg); opacity: 0; }
}
@keyframes game-close {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(.94) rotate(-.5deg); opacity: 0; }
}
@keyframes pencil-circle {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: rotate(var(--mark-rotate)) scale(.72); }
  38% { opacity: .9; clip-path: inset(0 35% 0 0); }
  100% { opacity: .88; clip-path: inset(0); transform: rotate(var(--mark-rotate)) scale(1); }
}
@keyframes pencil-second-line {
  from { opacity: 0; transform: rotate(3deg) scale(.84); }
  to { opacity: .46; transform: rotate(3deg) scale(1); }
}
@keyframes pencil-check {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: rotate(-9deg) scale(.76); }
  to { opacity: .9; clip-path: inset(0); transform: rotate(-9deg) scale(1); }
}
@keyframes pencil-x-fade {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); }
  14%, 82% { opacity: 1; clip-path: inset(0); }
  100% { opacity: 0; clip-path: inset(0); transform: translate(-50%, -50%) rotate(-5deg) scale(.94); }
}
@keyframes pictured-object-wobble {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%); }
  28% { transform: translate(-55%, -51%) rotate(-2.2deg) scale(1.018); }
  58% { transform: translate(-45%, -49%) rotate(1.7deg) scale(.995); }
  80% { transform: translate(-52%, -50%) rotate(-.7deg); }
}
@keyframes lens-nudge {
  0%, 100% { filter: none; }
  38% { filter: drop-shadow(0 0 8px rgba(238,223,153,.8)); }
}
@keyframes object-notice {
  0%, 100% { transform: translate(-50%, -50%); }
  35% { transform: translate(-52%, -50%) rotate(-1.5deg) scale(1.025); }
  66% { transform: translate(-48%, -50%) rotate(1deg) scale(.99); }
}
@keyframes completion-arrive {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
@keyframes corner-lift {
  0%, 100% { transform: scale(.72); opacity: .67; }
  45% { transform: scale(1); opacity: 1; }
  70% { transform: scale(.9); opacity: .9; }
}
@keyframes page-front-leave {
  0%, 5% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: translateZ(0); filter: brightness(1); }
  14% { clip-path: polygon(0 0, 100% 0, 97% 86%, 88% 100%, 0 100%); transform: rotateY(-1deg) translateZ(2px); }
  36% { clip-path: polygon(0 0, 86% 0, 62% 100%, 0 100%); transform: rotateY(-2.5deg) translateZ(5px); filter: brightness(.98); }
  67% { clip-path: polygon(0 0, 47% 0, 25% 100%, 0 100%); transform: rotateY(-4deg) translateZ(4px); filter: brightness(.94); }
  90% { clip-path: polygon(0 0, 13% 0, 5% 100%, 0 100%); transform: rotateY(-3deg) translateX(-1px); }
  100% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); transform: translateX(-2px); filter: brightness(.97); }
}
@keyframes fold-travel {
  0%, 5% { opacity: 0; transform: translateX(0) skewX(-4deg) scaleX(.12); }
  13% { opacity: .95; transform: translateX(-28%) skewX(-6deg) scaleX(.32); }
  38% { opacity: 1; transform: translateX(-91%) skewX(-4deg) scaleX(.9); }
  68% { opacity: 1; transform: translateX(-170%) skewX(-2deg) scaleX(.78); }
  91% { opacity: .92; transform: translateX(-220%) skewX(0) scaleX(.28); }
  100% { opacity: 0; transform: translateX(-228%) scaleX(.08); }
}
@keyframes shadow-travel {
  0%, 6% { opacity: 0; transform: translateX(0) skewX(-7deg) scaleX(.22); }
  18% { opacity: .45; }
  45% { opacity: .88; transform: translateX(-170%) skewX(-7deg) scaleX(1); }
  74% { opacity: .58; transform: translateX(-245%) skewX(-4deg) scaleX(.7); }
  100% { opacity: 0; transform: translateX(-292%) skewX(0) scaleX(.18); }
}
@keyframes page-settle {
  from { opacity: .92; transform: translateX(2px); }
  to { opacity: 1; transform: none; }
}
@keyframes mobile-page-slide {
  0% { clip-path: inset(0); transform: translateX(0); opacity: 1; }
  100% { clip-path: inset(0 100% 0 0); transform: translateX(-7%); opacity: .86; }
}
@keyframes cue-glint {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.35) rotate(0); }
  44% { opacity: .9; transform: translate(-50%, -50%) scale(1) rotate(35deg); }
}
@keyframes cue-rustle {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
  25% { opacity: .7; transform: translate(-55%, -50%) rotate(-5deg); }
  60% { opacity: .44; transform: translate(-45%, -50%) rotate(5deg); }
}
@keyframes cue-flutter {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-18deg); }
  24% { opacity: .72; }
  100% { opacity: 0; transform: translate(58px, 24px) rotate(175deg); }
}
@keyframes cue-drop {
  0% { opacity: 0; transform: translate(-50%, -18px) scale(.7); }
  20% { opacity: .75; }
  100% { opacity: 0; transform: translate(-50%, 30px) scale(.9); }
}
@keyframes cue-ripple {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.25); }
  22% { opacity: .65; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}
@keyframes cue-wobble {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
  20%, 70% { opacity: .7; }
  35% { transform: translate(-20%, -70%) rotate(22deg); }
  58% { transform: translate(-85%, -25%) rotate(-16deg); }
}
@keyframes persistent-hint-breathe {
  0%, 38%, 100% { opacity: .08; transform: scale(.76); }
  51% { opacity: .48; transform: scale(1.08); }
  64% { opacity: .14; transform: scale(.9); }
}

@media (max-width: 859px) {
  body { display: block; padding: 0; background: var(--paper); }
  .book { display: block; width: 100%; min-height: 100dvh; filter: none; }
  .book::before, .book::after { display: none; }
  .book-page { border-radius: 0; box-shadow: none; transform: none; }
  .book-page--left { --notebook-margin: 2px; min-height: auto; padding: 15px 14px 8px; }
  .book-page--right,
  .book-page--right[data-layout] { --page-x: 10px; --page-top: 4px; --page-bottom: 30px; }
  .book-page--right::before { display: none; }
  .book-page__content { min-height: 0; }
  .book-heading h1 { font-size: 1.62rem; }
  .scene-line { margin-top: 7px; font-size: 1.24rem; }
  .challenge-block { gap: 8px 14px; margin-top: 12px; padding-top: 0; }
  .challenge { max-width: none; font-size: 1.75rem; }
  .progress__marks { gap: 8px; }
  .progress__mark { font-size: 1.46rem; }
  .book-actions { position: static; gap: 4px 16px; min-height: 24px; margin-top: 14px; }
  .book-actions .text-button,
  .book-actions .sound-button { font-size: .78rem; }
  .game-book .book-page--left::before { inset: 6px 8px 8px; opacity: .48; }
  .game-book .book-page__content::before { inset: 8% 1% 4%; opacity: .48; }
  .completion { display: flex; align-items: baseline; gap: 14px; min-height: 28px; margin: 8px 0 0; padding-top: 7px; }
  .completion p { margin: 0; }
  .page-number--left { display: none; }
  .page-number--right { right: 16px; bottom: 11px; }
  .scene img { object-position: var(--mobile-position, 50% 50%); }
  .scene.is-turning { overflow: hidden; }
  .scene.is-turning .page-sheet { animation: mobile-page-slide .52s cubic-bezier(.5,.02,.18,1) both; }
  .scene.is-turning .page-turn-shadow { display: block; animation-duration: .52s; }
  .scene.is-turning .page-fold { display: none; }
  .scene-caption { margin-top: 6px; }
  .cover-view, .intro-view { min-height: 100dvh; }
  .cover-view { height: 100dvh; overflow: hidden; }
  .closed-book { width: min(88vw, 540px); }
  .cover-face h1 { font-size: clamp(2.5rem, 13vw, 4.5rem); }
  .intro-book { min-height: 100dvh; }
  .intro-page--left { min-height: auto; padding: 28px 22px 20px; }
  .intro-copy { max-width: none; margin: 0; }
  .running-title { margin-bottom: 18px; }
  .intro-copy h2 { margin-bottom: 16px; font-size: 1.7rem; }
  .mark-key { margin-top: 18px; padding-top: 12px; }
  .mark-key > div { margin: 8px 0; }
  .intro-page--right { min-height: 48vh; padding: 14px 14px 28px; }
  .intro-plate { width: min(94%, 620px); border-width: 5px; }
  .intro-turn-note { margin: 14px 0 8px; }
  .magnifier-tool { right: 16px; bottom: 8px; }
  .magnifier-lens { width: 126px; }
  .botanical-spill--cover { --spill-scale: .76; }
  .botanical-spill--spread { display: none; }
  .page-ornament { position: relative !important; inset: auto; display: block; flex: 0 0 44px; width: 100%; height: 44px; overflow: hidden; }
  .page-ornament .page-imprint { display: none; }
  .page-ornament .botanical { top: 55% !important; --spill-scale: .55; }
  .pencil-x { width: 50px; height: 50px; }
  .pencil-x::before,
  .pencil-x::after { top: 4px; left: 23px; height: 42px; width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .scene.is-turning .page-sheet { opacity: 0; transform: none; }
  .scene.is-turning .page-fold,
  .scene.is-turning .page-turn-shadow,
  .corner-turn::before,
  .environment-cue { display: none; animation: none; }
  .persistent-hint::before { opacity: .2; animation: none; }
  .closed-book.is-opening .cover-face,
  .intro-book.is-turning .intro-page--right,
  .game-book.is-closing { animation: none; }
  .pencil-x {
    opacity: .9;
    clip-path: none;
    animation: none;
  }
}
