/* Canonical mobile geometry and type. Legacy sheets remain the desktop edition.
   This file owns the mobile camera at all short/tall portrait and landscape sizes. */
.mobile-letter-turn,.mobile-book-caption{display:none}
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 html{scroll-padding-top:90px}body{font-size:16px}
 .site-header{top:calc(13px + env(safe-area-inset-top));width:calc(100% - 54px);max-width:570px}
 .nav{min-height:44px;padding:0 4px}.nav-actions>.button{display:none}.menu-toggle{display:block}
 .nav-links{display:none;position:absolute;top:55px;right:0;width:220px;background:#EAD8C4 var(--paper-grain);padding:16px 23px;box-shadow:0 6px 16px #3D306326}
 .nav-links.is-open{display:flex;flex-direction:column;align-items:stretch;gap:0}.nav-links a{font-size:16px;min-height:44px}.nav-links .nav-waitlist{display:flex}
 .mobile-story:not(.is-static){height:calc(var(--mobile-viewport,100svh)*16)}
 .mobile-story:not(.is-static) .world-stage{height:var(--mobile-viewport,100svh);min-height:0;overflow:clip}
 .mobile-story .world-forest{inset:-4% -25%;background-position:53% center}
 .mobile-story .world-wing{background-size:auto 100%;mask-image:linear-gradient(#000 65%,transparent 89%)}
 .mobile-story .wing-left{clip-path:inset(0 90% 0 0)}.mobile-story .wing-right{clip-path:inset(0 0 0 90%)}
 .mobile-story .paper-canopy{height:48%;width:124%;left:-12%}
 .mobile-story .paper-moon{width:21%;left:72%;top:13%}.mobile-story .paper-cloud{width:27%;left:-4%;top:48%}
 .mobile-story .hanging{width:32px}.mobile-story .s1{left:3%;top:14%}.mobile-story .s2{left:87%;top:46%}.mobile-story .s3,.mobile-story .s4,.mobile-story .s5{display:none}
 .mobile-story .stage-lantern{width:30px;left:1%;top:48%}.mobile-story .stage-lantern.lantern-1{right:1%;top:40%}
 .mobile-story .welcome-copy{left:7%;top:calc(91px + env(safe-area-inset-top));width:86%;max-width:none;text-align:center}
 .mobile-story .welcome-copy h1{font-size:clamp(30px,8.4vw,38px);line-height:1.08;text-shadow:none}
 .mobile-story .hero-subtitle{font-size:16px;line-height:1.4;max-width:340px;margin:15px auto 0}
 .mobile-story .hero-actions{display:flex;justify-content:center;gap:10px;margin-top:17px}
 .mobile-story .hero-actions .button{font-size:16px;min-height:46px;padding:10px 17px;gap:9px}
 .mobile-story .hero-promises{display:none}
 .mobile-story:not(.is-static) .story-character{width:min(60vw,250px);bottom:var(--actor-bottom);opacity:var(--mobile-actor-alpha,1);pointer-events:auto}
 .mobile-story:not(.is-static) .story-character[data-pose=writing]{bottom:var(--actor-bottom)}
 .mobile-story .speech{font-size:14px;line-height:1.25;width:160px;right:-20%;top:-12%;padding:15px 13px;filter:drop-shadow(1px 3px 2px #3D30631A)}
 .mobile-story .story-prompt{font-size:14px;left:7%;bottom:calc(16px + env(safe-area-inset-bottom));padding:6px 10px;text-shadow:none}
 .mobile-story .book-caption{top:calc(83px + env(safe-area-inset-top));left:7%;width:66%;padding:0;text-align:left}
 .mobile-story .book-caption h2{font-size:24px;line-height:1.15;text-shadow:none}.mobile-story .book-caption h2 br{display:block}
 .mobile-story .book-caption p{display:none;font:16px/1.2 Caveat,cursive;margin:6px 0 0;max-width:240px}.mobile-story .desktop-book-caption{display:none}.mobile-story .mobile-book-caption{display:inline}
 /* A single intact spread. The camera approaches each page, not a cropped replacement. */
 .mobile-story:not(.is-static) .book-flight{width:calc(200vw - 32px);height:auto;aspect-ratio:1.5;min-height:0;max-height:none;left:50%;top:calc(102px + env(safe-area-inset-top));margin:0 0 0 calc(16px - 100vw);transform-origin:50% 50%;translate:var(--page-pan,0px) 0;transition:translate .85s cubic-bezier(.22,.7,.2,1)}
 .mobile-story .book-volume{height:100%;transform:translateX(calc((1 - var(--open))*-25%))}
 .mobile-story .book-spread{display:grid;grid-template-columns:1fr 1fr}
 .mobile-story .book-leaf{position:relative;inset:auto;width:auto;height:100%;min-width:0;background-size:200% 100%;padding:11% 12% 9%!important;display:flex;visibility:visible!important}
 .mobile-story .journal-panel{background-position:left center;z-index:2;transform-origin:right center;transform:rotateY(calc((1 - var(--open))*175deg))}
 .mobile-story .reflection-panel{background-position:right center;z-index:1;transform:none}
 .mobile-story .page-manuscript,.mobile-story .journal-panel .page-manuscript,.mobile-story .reflection-panel .page-manuscript{width:100%;height:100%;margin:0;padding:0 1px 12px;overflow-y:auto;scrollbar-width:none;overscroll-behavior-x:contain;background:none;box-shadow:none;-webkit-overflow-scrolling:touch;scroll-padding:10px}
 .mobile-story .page-manuscript::-webkit-scrollbar{display:none}
 .mobile-story .book-cover{left:50%;top:0;width:50%;height:100%;transform-origin:left center}
 .mobile-story .cover-foil{font-size:35px}.mobile-story .cover-foil small{font-size:12px}
 .mobile-story .journal-panel .mood-row{margin:0 0 12px;gap:3px 9px}
 .mobile-story .journal-panel .mood-row:before{font-size:18px}.mobile-story .journal-panel .mood-row span{font-size:17px;line-height:1.5}
 .mobile-story .journal-panel .penpal-date{font-size:13px;line-height:1.4;margin-bottom:12px}
 .mobile-story .penpal-salutation,.mobile-story .journal-panel .journal-entry,.mobile-story .penpal-me{font-size:19px;line-height:1.5}
 .mobile-story .journal-panel .journal-entry{margin-top:10px;transform:none;clip-path:none}
 .mobile-story .penpal-story-so-far{margin:17px 0 12px}.mobile-story .penpal-story-so-far h4{font-size:16px;margin:0 0 4px}
 .mobile-story .penpal-story-so-far p{font-size:17px;line-height:1.45}
 .mobile-story .penpal-send{display:inline-flex;align-items:center;justify-content:center;font-size:18px;min-height:46px;padding:8px 14px;margin:10px 0 0}
 .mobile-story .book-flight[data-penpal-state=reply][data-read=journal] .penpal-send{opacity:1;visibility:visible;pointer-events:auto}
 .mobile-story .reflection-panel .reflection-head h3{font-size:14px}.mobile-story .reflection-panel .reflection-head{min-height:0;padding:0;margin-bottom:12px}
 .mobile-story .reflection-panel .reflection-body{font-size:21px;line-height:1.4}.mobile-story .reflection-panel .reflection-body>p{margin-bottom:11px}
 .mobile-story .reflection-panel .reflection-body .signature{font-size:22px;white-space:normal}
 .mobile-story .reflection-panel .reflection-body .moon-byline{font-size:13px;line-height:1.4}
 .mobile-story .reflection-panel .reflection-body .penpal-ps{font-size:20px}
 .mobile-story .astro-phrase{white-space:normal}
 .mobile-story .book-ribbons{top:calc(100% - 4px);left:8%;width:84%;z-index:1}
 .mobile-story .book-ribbons .story-samples{gap:10px}
 .mobile-story .book-ribbons .story-samples button{width:auto;flex:1;height:60px;min-height:48px;padding:17px 4px 8px;font-size:16px;line-height:1.1}
 .mobile-story .book-ribbons .story-samples button[aria-selected=true]{height:72px}
 .mobile-story .mobile-letter-turn{display:flex;position:relative;justify-content:space-between;gap:12px;margin-top:14px}
 .mobile-story .mobile-letter-turn .text-link{font:18px/1.3 Caveat,cursive;min-height:44px;padding:7px 0;color:#3D3063;text-shadow:none}
 .mobile-story .book-ribbons{left:calc(50% - 160px + var(--bookmark-x,0px));width:320px}
 .mobile-story .book-ribbons .story-samples{gap:8px}
 /* The canopy and its notes stay inside the portrait camera, rather than being cropped at 160%. */
 .mobile-story .memory-scene{inset:calc(90px + env(safe-area-inset-top)) 5% 16px}
 .mobile-story .memory-copy h2{font-size:29px;line-height:1.15;text-shadow:none}
 .mobile-story .memory-copy p{font-size:16px;line-height:1.4;max-width:350px;margin:12px auto 0}
 .mobile-story .memory-copy #memory-growth-caption{font-size:21px;line-height:1.25;min-height:28px;margin-top:12px}
 .mobile-story .memory-tree{width:100%;left:0;height:auto;aspect-ratio:2;top:43%;bottom:auto;max-height:none}
 .mobile-story .tree-art{object-fit:contain}.mobile-story .memory-note{padding:8px 9px;min-width:85px;min-height:48px;max-width:112px}
 .mobile-story .memory-note span{font-size:17px}.mobile-story .memory-note small{font-size:10px}
 .mobile-story .note-one{left:9%;top:27%}.mobile-story .note-two{left:62%;top:29%}.mobile-story .note-three{left:36%;top:64%}
 .mobile-story .memory-whisper{top:auto!important;bottom:3%;left:3%;width:94%;font-size:19px;line-height:1.35;padding:7px 10px;min-height:76px}
 .mobile-story .memory-note-caption{display:none}
 /* Native vertical scroll on this stage gives the wheel, form and letter room to breathe. */
 .mobile-story .sky-scene{inset:calc(87px + env(safe-area-inset-top)) 0 0;display:block;overflow-y:auto;overflow-x:clip;padding:0 24px calc(38px + var(--keyboard-inset,0px));scroll-padding:16px;-webkit-overflow-scrolling:touch}
 .mobile-story .sky-heading{position:relative;inset:auto;text-align:center;max-width:500px;margin:0 auto 13px}
 .mobile-story .sky-heading h2{font-size:30px;text-shadow:none}.mobile-story .sky-heading h2 br{display:none}.mobile-story .sky-heading p{display:block;font-size:19px;line-height:1.3;margin-top:9px}
 .mobile-story .wheel-scene{position:relative;inset:auto;width:min(100%,380px);height:auto;aspect-ratio:1;margin:10px auto 30px;opacity:1;max-width:none}
 .mobile-story .sky-scene .zodiac-sign{width:44px;height:44px;margin:-22px;border-radius:6px;font-size:9px;line-height:1.1}.mobile-story .sky-scene .zodiac-sign span{font-size:16px}
 .mobile-story .sky-scene .personal-paper{position:relative;inset:auto;width:100%;max-width:500px;margin:0 auto 22px;padding:25px 16px 27px;transform:none!important;opacity:1!important;filter:drop-shadow(2px 6px 4px #3D306326)}
 .mobile-story .personal-paper:before{inset:-6px -10px}.mobile-story .personal-paper h3{font-size:29px;line-height:1.2;margin-bottom:15px}
 .mobile-story .personal-paper label,.mobile-story .personal-paper legend{font-size:16px;line-height:1.4}
 .mobile-story .personal-paper small,.mobile-story .birth-fields label>span{font-size:13px}
 .mobile-story .personal-paper input:not([type=radio]),.mobile-story .personal-paper select,.mobile-story .personal-paper .birth-fields select,.mobile-story .personal-paper #birth-year{height:48px;font-size:18px;line-height:1.3;padding:8px;min-width:0}
 .mobile-story .personal-paper fieldset:not(.birth-parts){flex-wrap:wrap;gap:4px 14px;margin:15px 0}
 .mobile-story .personal-paper fieldset label{min-height:44px;font-size:16px;gap:6px}.mobile-story .personal-paper input[type=radio]{width:19px;height:19px;accent-color:#3D3063}
 .mobile-story .personal-paper .form-note{font-size:16px;line-height:1.45;margin-top:10px}
 .mobile-story .personal-paper .button{min-height:50px;font-size:16px;padding:12px 9px}
 .mobile-story .letter-preview{max-height:none;overflow:visible;padding:0}
 .mobile-story .letter-preview #letter-body{font-size:23px;line-height:1.45}.mobile-story .letter-preview .text-link{font-size:20px;min-height:46px}
 .mobile-story .personal-paper.letter-overflows:after{display:none}
 .mobile-story .sky-footnote{position:relative;inset:auto;width:100%;margin:27px auto 0;padding:15px 12px;font-size:16px;line-height:1.45;z-index:6}
 .mobile-story .home-scene{inset:calc(92px + env(safe-area-inset-top)) 0 0;overflow-y:auto;overflow-x:clip;padding:16px 28px 225px;-webkit-overflow-scrolling:touch}
 .mobile-story .ending-copy{position:relative;inset:auto;width:100%;max-width:500px;margin:auto;padding:22px 15px 24px}
 .mobile-story .ending-copy:before{inset:-6px -13px}.mobile-story .ending-copy h2{font-size:34px;line-height:1.13}
 .mobile-story .ending-copy p{font-size:21px;line-height:1.4;margin-top:14px}
 .mobile-story .launch-eyebrow{font-size:13px}.mobile-story .ending-copy .download-options{flex-direction:column;flex-wrap:wrap;gap:10px;margin-top:20px}
 .mobile-story .download-badge{width:100%;min-width:125px;min-height:68px;padding:10px;gap:7px}.mobile-story .download-badge strong{font-size:17px}.mobile-story .download-badge small{font-size:10px}.mobile-story .download-badge svg{width:23px}
 .mobile-story .ending-copy .download-note{font-size:16px;line-height:1.4;margin-top:12px}
 .mobile-story .reader-note-heading{font-size:14px;flex-wrap:wrap;gap:5px}.mobile-story .reader-note-heading button[data-reader-turn],.mobile-story .reader-note-heading #reader-autoplay-toggle{width:44px;height:44px;min-height:44px}
 .mobile-story .ending-copy .launch-reader-notes{margin-top:20px;padding-top:14px}.mobile-story .reader-note-track .quote-card{padding:28px 14px 19px}
 .mobile-story .reader-note-track .quote-card blockquote{font-size:21px;line-height:1.35}.mobile-story .reader-ticket{font-size:10px;line-height:1.3}.mobile-story .reader-signature{font-size:17px}
 .mobile-story .ending-copy .text-link{font-size:16px;min-height:44px;margin-top:8px}
 .mobile-story .cottage-art{display:block;position:absolute;left:-18%;top:var(--cottage-top,100%);bottom:auto;width:100%;height:210px;opacity:.75;pointer-events:none}
 .mobile-story .envelope-invitation{position:relative;left:auto;bottom:auto;top:auto;translate:none;margin:0 auto 24px;display:block;font-size:19px;min-height:48px;z-index:8}
 .mobile-story .continuous-bank{width:124vw;left:-12vw;height:24svh;bottom:-14svh}.mobile-story .bank-back{bottom:-10svh}.mobile-story .bank-middle{bottom:-12svh}.mobile-story .bank-cream{bottom:-14svh}
 dialog.invitation{width:calc(100% - 28px);max-height:calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:42px 22px 24px;scroll-padding:15px}
 .invitation label,.invitation p,.invitation small,.invitation .consent-line{font-size:16px;line-height:1.45}.invitation input:not([type=checkbox]),.invitation .button{font-size:18px;min-height:48px}.invitation input[type=checkbox]{min-width:22px;min-height:22px}.invitation .consent-line{gap:10px}
 .footer{font-size:16px;padding:28px 24px calc(28px + env(safe-area-inset-bottom))}.footer small{font-size:14px}.footer a{min-height:44px}
 /* Reduced motion keeps a readable, unpinned edition, with both full-size pages. */
 .mobile-story.is-static .book-flight{width:96%;height:auto;max-height:none;min-height:0;aspect-ratio:auto;margin:0 auto 100px}
 .mobile-story.is-static .book-spread{position:relative}.mobile-story.is-static .book-leaf{position:relative;visibility:visible!important;min-height:640px;height:auto;padding:42px 17.5%!important}
 .mobile-story.is-static .page-manuscript{overflow:visible;height:auto}.mobile-story.is-static .reflection-panel{z-index:3}.mobile-story.is-static .mobile-letter-turn{display:none}
 .mobile-story.is-static .sky-scene,.mobile-story.is-static .home-scene{overflow:visible;padding-top:20px;height:auto;min-height:0}.mobile-story.is-static .ending-copy{position:relative;left:auto;top:auto;width:100%}
 .mobile-story.is-static .book-caption{position:relative;inset:auto}.mobile-story.is-static .memory-scene{height:850px}
}
@media(max-width:700px) and (max-height:720px){
 .mobile-story .welcome-copy{top:86px}.mobile-story .welcome-copy h1{font-size:30px;line-height:1.06}.mobile-story .hero-subtitle{margin-top:12px;line-height:1.32}.mobile-story .hero-actions{margin-top:13px}.mobile-story .speech{top:-6%;right:-25%;width:145px;font-size:13px}
 .mobile-story .book-caption h2{font-size:23px}.mobile-story .book-caption p{font-size:16px;margin-top:6px}
 .mobile-story .memory-copy h2{font-size:26px}.mobile-story .memory-copy p{font-size:16px;margin-top:9px}.mobile-story .memory-tree{top:43%;bottom:auto;height:auto}.mobile-story .memory-whisper{font-size:18px;bottom:0;min-height:80px}
}
@media(max-width:1000px) and (max-height:500px){
 .site-header{width:calc(100% - 100px);max-width:800px;top:calc(10px + env(safe-area-inset-top))}
 .mobile-story .welcome-copy{top:80px;left:9%;width:48%;text-align:left}.mobile-story .welcome-copy h1{font-size:30px}.mobile-story .welcome-copy h1 br:last-of-type{display:none}.mobile-story .hero-subtitle{font-size:16px;margin:9px 0;max-width:440px}.mobile-story .hero-actions{justify-content:flex-start;margin-top:10px}.mobile-story .speech{right:-12%;top:-9%}
 .mobile-story .book-caption{top:72px;left:8%;width:72%;text-align:center}.mobile-story .book-caption h2 br{display:none}.mobile-story .book-caption h2{font-size:23px}.mobile-story .book-caption p{display:none}
 .mobile-story:not(.is-static) .book-flight{width:calc(150vw - 40px);aspect-ratio:1.5;left:50%;margin-left:calc(20px - 75vw);height:auto;top:90px;min-height:0}
 .mobile-story .book-leaf{padding:8% 12% 7%!important}
 .mobile-story .book-ribbons .story-samples button{height:48px;padding:13px 5px;font-size:16px}.mobile-story .book-ribbons .story-samples button[aria-selected=true]{height:57px}
 .mobile-story .memory-scene{inset:80px 4% 10px}.mobile-story .memory-copy{width:46%;margin:0;text-align:left}.mobile-story .memory-copy h2{font-size:26px}.mobile-story .memory-tree{left:44%;width:56%;height:auto;top:20%;bottom:auto;aspect-ratio:2}.mobile-story .memory-whisper{left:0;width:45%;font-size:17px;bottom:0;min-height:60px}
 .mobile-story .sky-scene{padding-left:10%;padding-right:10%}.mobile-story .wheel-scene{width:280px}.mobile-story .personal-paper{max-width:560px}
 .mobile-story .home-scene{inset:80px 0 0;padding-left:12%;padding-right:12%}.mobile-story .ending-copy{max-width:620px}.mobile-story .ending-copy .download-options{flex-direction:row;flex-wrap:nowrap}.mobile-story .download-badge{width:auto}
}
@media(max-width:700px),(max-width:1000px) and (max-height:500px){

 .mobile-story[data-mobile-closing=true] .sky-scene .personal-paper{transform:translate3d(calc(var(--letter-travel-x)*var(--letter-fold)),calc(var(--letter-travel-y)*var(--letter-fold)),0) scale(calc(1 - var(--letter-fold)*.82)) rotate(calc(var(--letter-fold)*-8deg))!important;opacity:calc(1 - var(--letter-fold)*.75)!important;pointer-events:none}
 @keyframes mobile-letter-arrive{from{opacity:0;transform:perspective(900px) rotateY(12deg)}to{opacity:1;transform:none}}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){.mobile-story.is-static .memory-tree{top:43%;height:auto;bottom:auto}.mobile-story.is-static .book-caption{width:84%;text-align:center}.mobile-story.is-static .mobile-book-caption{display:none}.mobile-story.is-static .desktop-book-caption{display:inline}}

/* Mobile sky: a single camera move from the wheel to the writing surface. */
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .sky-scene{inset:calc(90px + env(safe-area-inset-top)) 0 0;padding:0;overflow:visible}
 .mobile-story:not(.is-static) .sky-heading{position:absolute;left:7%;right:7%;top:0;opacity:calc(1 - var(--sky-approach,0));pointer-events:none}
 .mobile-story:not(.is-static) .wheel-scene{position:absolute;left:50%;top:126px;width:min(86vw,380px);margin:0 0 0 max(-43vw,-190px);transform-origin:50% 0;transform:translate3d(calc(var(--sky-approach,0)*27vw),calc(var(--sky-approach,0)*-124px),0) scale(calc(1 - var(--sky-approach,0)*.72));opacity:1}
 .mobile-story:not(.is-static) .sky-scene .personal-paper{position:absolute;left:7%;top:130px;bottom:38px;width:86%;max-height:none;margin:0;padding:23px 20px;overflow-y:auto;scrollbar-width:none;overscroll-behavior-x:contain;transform:translateY(calc((1 - var(--sky-approach,0))*80px))!important;opacity:var(--sky-approach,0)!important}
 .mobile-story .personal-paper::-webkit-scrollbar{display:none}
 .mobile-story:not(.is-static) .sky-footnote{position:absolute;left:9%;bottom:0;width:82%;margin:0;padding:5px 0;font-size:12px;line-height:1.3;opacity:var(--sky-approach,0)}
 .mobile-story .sky-scene .personal-paper:before{content:none}
 .mobile-story .sky-scene .personal-paper{background:#EAD8C4 var(--paper-grain);clip-path:polygon(1% 0,30% .5%,67% 0,99% 1%,100% 40%,99% 80%,100% 99%,70% 100%,30% 99%,0 100%,.8% 60%,0 20%)}
 .mobile-story:not(.is-static) .home-scene{padding-top:230px;padding-bottom:40px}
 .mobile-story .cottage-art{top:0;left:-8%;width:85%;height:215px;opacity:1}
 .mobile-story .envelope-invitation{margin-bottom:30px}
 .mobile-story .ending-copy{z-index:10}
 .mobile-story .book-caption{width:86%;text-align:center}
 .mobile-story .book-caption h2{font-size:27px}
 .mobile-story .book-caption h2 br{display:none}
 .mobile-story .book-caption:before,.mobile-story .book-caption:after{content:none}
 .mobile-story .journal-panel .journal-entry{border:0!important;box-shadow:none}
 .mobile-story .book-flight[data-penpal-state=writing] .journal-entry{border:0!important}
 .mobile-story .book-caption{pointer-events:none}
 .mobile-story.is-static .book-spread{display:block}
 .mobile-story.is-static .book-flight{translate:none;transition:none}
 .mobile-story.is-static .book-leaf{transform:none!important;width:100%}
 .mobile-story.is-static .sky-scene .personal-paper{clip-path:none}
}
@media(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .sky-scene .personal-paper{left:9%;top:50px;bottom:30px;width:82%}
 .mobile-story:not(.is-static) .wheel-scene{top:30px;width:245px;margin-left:-122px}
 .mobile-story .book-caption h2{font-size:24px}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story[data-mobile-closing=true] .sky-scene .personal-paper{transform:translate3d(calc(var(--letter-travel-x)*var(--letter-fold)),calc(var(--letter-travel-y)*var(--letter-fold)),0) scale(calc(1 - var(--letter-fold)*.82)) rotate(calc(var(--letter-fold)*-8deg))!important;opacity:calc(1 - var(--letter-fold)*.75)!important}
 .mobile-story:not(.is-static) .book-ribbons{opacity:var(--ink-alpha)}
}

@media(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .book-flight{width:calc((var(--mobile-viewport,100svh) - 175px)*1.5);height:auto;aspect-ratio:1.5;left:50%;margin-left:calc((var(--mobile-viewport,100svh) - 175px)*-.75);top:82px}
 .mobile-story .book-caption{display:none}
 .mobile-story .book-ribbons{width:300px;left:calc(50% - 150px)}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story .sky-ornaments .hanging,.mobile-story .stage-lanterns{opacity:var(--mobile-ornaments,1)}
 .mobile-story .sky-scene .personal-paper{transform-origin:50% 50%}
 .mobile-story.is-static .book-volume{transform:none}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .book-ribbons{transition:left .85s cubic-bezier(.22,.7,.2,1)}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .home-scene{isolation:isolate}
 .mobile-story:not(.is-static) .home-scene:before{content:'';position:absolute;z-index:-1;left:-12%;top:175px;width:124%;height:calc(100% - 175px);background:#567366 url('/assets/storybook/surface.webp') center/300px;background-blend-mode:soft-light;border-radius:48% 42% 0 0 / 45px 65px 0 0;pointer-events:none}
 .mobile-story.is-static .cottage-art{position:relative;top:auto;left:0;width:100%}
}

/* Keep ink inside the botanical frame, including on the short landscape stage. */
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story .book-spread{grid-template-rows:minmax(0,1fr)}
 .mobile-story .book-leaf{min-height:0}
 .mobile-story .journal-panel{padding:13% 9% 20% 20%!important}
 .mobile-story .reflection-panel{padding:13% 20% 20% 9%!important}
 .mobile-story .page-manuscript{min-height:0}
 .mobile-story.is-static .journal-panel,.mobile-story.is-static .reflection-panel{padding:46px 20%!important}
}
@media(max-width:1000px) and (max-height:500px){
 .mobile-story .journal-panel{padding-top:8%!important;padding-bottom:10%!important}
 .mobile-story .reflection-panel{padding-top:8%!important;padding-bottom:10%!important}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static)[data-sky-ready=false] .sky-scene .personal-paper{pointer-events:none}
 .mobile-story:not(.is-static)[data-sky-paper=false] .sky-scene .personal-paper{visibility:hidden}
 .mobile-story:not(.is-static) .home-scene .ending-copy,.mobile-story:not(.is-static) .home-scene .envelope-invitation{opacity:var(--invitation-unfold,1)}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static)[data-sky-ready=true] .wheel-scene #zodiac-buttons{visibility:hidden}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .sky-scene .personal-paper{bottom:calc(38px + var(--keyboard-inset,0px))}
 .mobile-story:not(.is-static)[data-keyboard=true] .sky-scene .personal-paper{top:15px}
 .mobile-story:not(.is-static)[data-keyboard=true] .sky-scene .wheel-scene{visibility:hidden}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .book-leaf.has-more .page-manuscript{mask-image:linear-gradient(#000 calc(100% - 15px),transparent)}
 .mobile-story:not(.is-static) .book-leaf.has-more:after{content:'Read on ↓';position:absolute;bottom:6%;right:12%;font:500 17px/1.2 Caveat,cursive;color:#3D3063;pointer-events:none}
 .mobile-story:not(.is-static) .reflection-panel.has-more:after{right:22%}
}
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .sky-footnote{left:6%;width:88%;padding:4px 10px;font-size:13px;line-height:1.3;background:#EAD8C4 var(--paper-grain);border:0;clip-path:polygon(1% 1%,26% 3%,53% 0,78% 2%,99% 0,100% 46%,99% 98%,72% 96%,48% 100%,23% 97%,0 99%,1% 51%)}
 .mobile-story:not(.is-static) .sky-scene .personal-paper{bottom:calc(50px + var(--keyboard-inset,0px))}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story,.mobile-story .world-stage{overflow-anchor:none}
 .mobile-story:not(.is-static) .book-leaf.has-more:after{opacity:var(--ink-alpha)}
}

/* WebKit may flatten the filtered 3D volume: hide the cover past its edge-on pose. */
@media(max-width:700px),(max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static) .book-cover{opacity:var(--mobile-cover-alpha,1);pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden}
 .mobile-story:not(.is-static) .reflection-panel.has-more:after{left:10%;right:auto}
}

/* One document scroll carries the invitation to its end before the stage releases.
   The extra runway is measured from the actual paper, including loaded fonts. */
@media(max-width:700px), (max-width:1000px) and (max-height:500px){
 .mobile-story:not(.is-static){height:calc(var(--mobile-viewport,100svh)*16 + var(--mobile-ending-travel,0px))}
 .mobile-story:not(.is-static) .home-scene{overflow-y:hidden;scroll-behavior:auto;overflow-anchor:none}
}
