#world-loader[hidden], [data-next-cue][hidden], [data-play-inline][hidden] { display: none; }
.lake-poster { position: fixed; inset: 0; z-index: 0; display: block; pointer-events: none; }
.lake-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The canvas follows the poster in the original background stacking context. */
.atmos__grain { animation: none; }
.static-landscape { background: #d8e2ef url('./img/lake-poster.webp') center center / cover no-repeat fixed; }
[data-play-inline], [data-next-cue] { display: none; }

html[data-mode='lite'] { scroll-behavior: smooth; }
html[data-mode='lite'] .home-page #world,
html[data-mode='lite'] .home-page #owl,
html[data-mode='lite'] .home-page .atmos,
html[data-mode='lite'] .home-page .katana-air,
html[data-mode='lite'] .home-page .slash { display: none; }
html[data-mode='lite'] .home-page .chapter { scroll-margin-top: 74px; }
html[data-mode='lite'] .home-page .hero { isolation: isolate; }
html[data-mode='lite'] .home-page .hero__inner { opacity: 1 !important; }
html[data-mode='lite'] .home-page .float { animation: none; }
html[data-mode='lite'] .home-page .hero__copy::before { filter: none; }
html[data-mode='lite'] .home-page .how__grid { position: relative; inset: auto; width: min(100%, 1120px); padding: 0; }
html[data-mode='lite'] .home-page .pin__stage { min-height: auto; }
html[data-mode='lite'] .home-page .pin .pin__stage { opacity: 1 !important; visibility: visible !important; transform: none !important; }
html[data-mode='lite'] .home-page .chapter.pin { isolation: isolate; background: #0b1726; }
html[data-mode='lite'] .home-page .chapter.pin.scene-nearby::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(#070f1ab5, #070f1a75 48%, #070f1ac7), var(--chapter-scene) center / cover;
}
html[data-mode='lite'] .home-page #how { --chapter-scene: url('./img/lite-town-sm.webp'); }
html[data-mode='lite'] .home-page #speed { --chapter-scene: url('./img/orchard-sm.webp'); }
html[data-mode='lite'] .home-page #invisible { --chapter-scene: url('./img/lite-village-sm.webp'); }
html[data-mode='lite'] .home-page #download { --chapter-scene: url('./img/lite-night-sm.webp'); }
.native-lite .home-page .step { opacity: .96; }
.native-lite .home-page .scroll-screen { --vw: min(100%, 620px); min-width: 0; }
.native-lite .home-page .scroll-screen video { max-width: 100%; width: 100%; height: auto; }
.native-lite [data-play-inline]:not([hidden]) {
  display: inline-flex; position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; min-height: 44px; white-space: nowrap;
}
.native-lite .cue__next:not([hidden]) {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 5px; padding: 0 12px;
  color: #fff; background: #263c54; border: 1px solid #b5d3f06e; border-radius: 9px; font: inherit;
  font-size: .82rem; cursor: pointer; touch-action: manipulation;
}
.mobile-petals { display: none; }

@media (max-width: 820px), (pointer: coarse) {
  .static-landscape { background-image: url('./img/lake-poster-small.webp'); background-attachment: scroll; }
  html[data-mode='lite'] .home-page .hero__inner { padding-top: 96px; padding-bottom: 52px; gap: 24px; }
  html[data-mode='lite'] .home-page .cue { margin: 0; }
  html[data-mode='lite'] .home-page .hero__copy::before { background: radial-gradient(ellipse, #eff5fedb 22%, #edf3f9a8 63%, transparent 79%); }
  html[data-mode='lite'] .home-page .glass, html[data-mode='lite'] .home-page .glass-dark,
  html[data-mode='lite'] .home-page .step, html[data-mode='lite'] .home-page .layer-label,
  html[data-mode='lite'] .home-page .nav, html[data-mode='lite'] .home-page .nav__links,
  html[data-mode='lite'] .home-page .sound { backdrop-filter: none; -webkit-backdrop-filter: none; }
  html[data-mode='lite'] .home-page .pin__stage { padding: 80px var(--pad); }
  html[data-mode='lite'] .home-page .how__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  html[data-mode='lite'] .home-page .layers { grid-template-columns: minmax(0, 1fr); }
  html[data-mode='lite'] .home-page .final .pin__stage { min-height: auto; }
  .native-lite .mobile-petals { display: block; position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
  .native-lite .mobile-petals i { position: absolute; top: 8%; left: var(--left); width: 5px; height: 8px;
    background: #ffd6e3; border-radius: 90% 30%; box-shadow: 0 0 6px #70384d25;
    animation: mobile-petal 10s linear var(--delay) infinite; animation-play-state: paused; }
  .native-lite.lake-in-view:not(.page-hidden) .mobile-petals i { animation-play-state: running; }
}

@keyframes mobile-petal {
  from { transform: translate3d(0, -12px, 0) rotate(0); opacity: 0; }
  15%, 75% { opacity: .8; }
  to { transform: translate3d(60px, min(70svh, 650px), 0) rotate(270deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-mode='lite'] { scroll-behavior: auto; }
  .native-lite .mobile-petals { display: none; }
}
