@font-face{font-family:Yomogi;src:url('./assets/Yomogi-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{--ink:#294f4b;--muted:#4e706b;--green:#376d61;--green-dark:#25554a;--paper:#fcfbf1;--sky:#d6eef1;--hand:Yomogi,'HanziPen SC','YuKyokasho',cursive;--body:-apple-system,BlinkMacSystemFont,'Hiragino Maru Gothic ProN','Yu Gothic',Meiryo,sans-serif;font-size:16px;color-scheme:light}
*{box-sizing:border-box}
html{min-height:100%;background:var(--sky);-webkit-text-size-adjust:100%}
body{margin:0;color:var(--ink);font-family:var(--body);font-size:1rem;line-height:1.8;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;isolation:isolate;background:#d6eef1;transition:background-color 1.3s ease}
body[data-scene="worry"]{background:#d4e5e9}
body[data-scene="breath"]{background:#dbeceb}
body[data-scene="ready"],body[data-scene="throw"]{background:#c7e7ed}
body[data-scene="complete"]{background:#e1f2ef}
button,input,textarea{font:inherit;color:inherit}
button,a,input,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #327d88;outline-offset:5px}
button:focus:not(:focus-visible),h1:focus,main:focus{outline:none}
button{touch-action:manipulation}
[hidden]{display:none!important}
a{color:var(--green-dark);text-underline-offset:4px}
.landscape{position:fixed;inset:0;z-index:-3;overflow:hidden;pointer-events:none}
.landscape>svg{width:100%;height:100%;position:absolute;bottom:0;left:0;min-width:1000px;left:50%;transform:translateX(-50%)}
.paper-grain{position:fixed;inset:0;pointer-events:none;z-index:20;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23718c81' opacity='.48' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E")}
.topbar{display:flex;align-items:center;justify-content:space-between;padding:max(20px,env(safe-area-inset-top)) max(32px,env(safe-area-inset-right)) 0;gap:16px;position:relative;z-index:3;flex-shrink:0}
.brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-family:var(--hand);font-size:1.1rem;line-height:1.3}
.brand svg{width:29px;height:29px;fill:#b1c99f;stroke:#5c8064;stroke-width:1.6;flex-shrink:0}
.icon-button{background:#f8fbefb3;border:1px solid #749c8870;width:44px;height:44px;border-radius:50% 48% 47% 45%;font-family:var(--hand);font-size:1.35rem;display:inline-grid;place-items:center;padding:0;line-height:1}
main{flex:1;display:flex;justify-content:center;align-items:center;position:relative;padding:20px 28px 28px;min-width:0}
.page{width:100%;max-width:670px;text-align:center;position:relative;animation:page-in .55s ease both}
.chapter{font-family:var(--hand);font-size:.95rem;display:flex;justify-content:center;align-items:center;gap:16px;letter-spacing:.1em;margin:0 0 18px;color:#50756d}
.chapter>span{width:27px;height:1px;background:#719a8a;transform:rotate(-6deg)}
.chapter>span:last-child{transform:rotate(6deg)}
h1,h2,p{margin:0}
h1{font-family:var(--hand);font-size:clamp(1.9rem,3.2vw,2.65rem);line-height:1.55;font-weight:400;letter-spacing:.035em;text-wrap:balance;overflow-wrap:anywhere}
h2{font-family:var(--hand);font-weight:400;line-height:1.6}
.lead{margin:17px auto 0;font-size:1rem;line-height:1.95;color:var(--muted);max-width:520px;overflow-wrap:anywhere}
.lead strong{font-weight:600}
.hand-note{font-family:var(--hand);font-size:.95rem;color:#4e756b}
.hello-art{height:185px;position:relative;max-width:520px;margin:6px auto 1px}
.departure-art{width:100%;height:100%;overflow:visible}
.hello-moya{position:absolute;width:143px;height:125px;left:19%;top:43px;transform:rotate(-8deg);animation:bob 4s ease-in-out infinite}
.moya-svg{width:100%;height:100%;overflow:visible;display:block;user-select:none;-webkit-user-select:none}
.moya-label{font-family:var(--hand);font-size:25px;font-weight:400;letter-spacing:1px}
.hello-art .hand-note{position:absolute;right:6%;bottom:13px;transform:rotate(-6deg)}
.name-form{max-width:350px;margin:auto;text-align:left}
label{display:block;font-size:.95rem;font-weight:500;margin-bottom:8px}
.optional{font-size:.875rem;color:#52726a;font-weight:400}
input[type="text"],textarea{background:#fffef4;color:#294f4b;-webkit-text-fill-color:#294f4b;caret-color:#294f4b;border:1.5px solid #82a297;border-radius:5px 8px 6px 4px;padding:13px 16px;width:100%;font-size:1rem;line-height:1.6;min-height:52px;box-shadow:none;appearance:none;-webkit-appearance:none}
input::placeholder,textarea::placeholder{color:#61746b;-webkit-text-fill-color:#61746b;opacity:1}
.checkbox-label,.remember{font-size:.875rem;display:flex;align-items:center;gap:8px;margin:12px 0 18px;font-weight:400;cursor:pointer}
.checkbox-label input,.remember input{accent-color:var(--green);width:19px;height:19px;flex-shrink:0}
.button{border:1px solid var(--green-dark);border-radius:50px 48px 51px 45px;background:var(--green);color:#fffdf3;padding:13px 30px;min-height:54px;font-weight:500;letter-spacing:.045em;display:inline-flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;line-height:1.5;transition:background .18s,transform .18s}
.button:hover{background:var(--green-dark);transform:translateY(-2px)}
.button:active{transform:scale(.97)}
.button.secondary{background:#f8faf0c9;color:var(--green-dark);border-color:#72968b}
.button.small{padding:10px 20px;min-height:46px;font-size:.95rem}
.name-form>.button{width:100%}
.text-button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;background:none;border:0;padding:8px 14px;text-decoration:underline;text-decoration-color:#82a397;text-underline-offset:5px;font-size:.95rem;line-height:1.55;border-radius:4px}
.text-button:hover{color:#1d6056;background:#ffffef52}
.actions{display:flex;flex-direction:column;align-items:center;gap:8px;margin:23px auto 0}
.fine,.under-note{font-size:.875rem;line-height:1.85;color:#4f7067}
.under-note{margin:16px 0 0}
.footer{position:relative;display:flex;align-items:center;justify-content:center;gap:20px;font-size:.8rem;line-height:1.7;padding:8px 18px max(16px,env(safe-area-inset-bottom));color:#45695d;flex-wrap:wrap}
.footer button{color:inherit;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px;padding:5px;font-size:.8rem;min-height:32px}
.worry-art{width:135px;height:110px;margin:7px auto 16px;transform:rotate(-6deg)}
.worry-form{max-width:470px;text-align:left;margin:0 auto}
.worry-paper{max-width:470px;margin:27px auto 0;text-align:left;position:relative}
.paper-leaf{position:absolute;right:11px;bottom:-21px;font-size:2.6rem;color:#789b77;transform:rotate(-28deg);pointer-events:none}
textarea{resize:vertical;min-height:150px;max-height:280px;padding:18px;font-size:1rem;line-height:2;white-space:pre-wrap}
.worry-form .under-note{display:flex;gap:8px;align-items:flex-start;margin-top:9px}
.worry-form .under-note:before{content:'◌';font-size:1.1rem;line-height:1.5}
.breath-scene{position:relative}
.breath-scene:before{content:'';position:absolute;inset:0;background:#fafff53d;border-radius:50%;filter:blur(30px)}
.breath-page{max-width:600px}
.breath-scene .breath-orb{position:relative;width:230px;height:230px;margin:auto;transform-origin:center}
.breath-page .lead{margin-top:10px}
.breath-scene,.breath-scene svg{width:100%}
.breath-scene{height:280px}
.breath-scene .caption{position:absolute}
.breath-scene svg{height:100%}
.breath-scene .breath-caption{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column;line-height:1.7;gap:3px}
.breath-caption strong{font-family:var(--hand);font-weight:400;font-size:1.2rem}
.breath-caption span{font-size:.875rem;color:var(--muted)}
.breath-page .breath-scene{margin:15px auto}
.breath-scene{max-width:350px}
.breath-scene .breath-orb{width:100%;height:240px}
.breath-caption{position:absolute;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:1px}
.breath-caption strong{font-family:var(--hand);font-size:1.45rem;font-weight:400}
.breath-caption span{font-size:.875rem;min-height:26px;color:var(--muted)}
.breath-scene .breath-halo{position:absolute}
.breath-page .actions{margin-top:18px}
.breath-scene ~ .under-note{margin-top:13px}
.breath-scene .breath-orb{will-change:transform}
.breath-scene{position:relative}
.destinations{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:27px auto 0;max-width:660px}
.destination{position:relative;padding:15px 10px 17px;display:flex;flex-direction:column;align-items:center;border:1px solid #a0b8a59c;background:#fbfbeeac;border-radius:44% 47% 5px 8px / 13% 15% 5px 8px;transition:transform .2s,background .2s;min-width:0}
.destination:nth-child(2){transform:rotate(1.1deg)}
.destination:nth-child(3){transform:rotate(-1deg)}
.destination:hover{transform:translateY(-6px) rotate(-1deg);background:#fffef4}
.destination-art{width:140px;height:120px;display:block;flex-shrink:0;max-width:100%}
.destination-title{font-family:var(--hand);font-size:1.15rem;line-height:1.5;margin:7px 0;overflow-wrap:anywhere;min-height:3.1em;display:flex;align-items:center}
.destination-note{font-size:.82rem;line-height:1.7;color:#507167;min-height:3.4em}
.destination-select{font-size:.875rem;line-height:1.6;border-bottom:1px solid #7f9a89;margin:12px 0 0}
.destination-tools{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:15px;flex-wrap:wrap}
.destination-tools>span{font-size:.8rem;color:var(--muted)}
.own-destination{max-width:500px;margin:10px auto 0}
.own-toggle{border:0;border-bottom:1px dashed #71958b;background:none;font-size:1rem;padding:7px 17px;min-height:44px}
.pencil{font-size:1.3rem;line-height:1}
#own-form{text-align:left;margin:14px auto 0}
.own-row{display:flex;align-items:center;gap:10px}
.own-row input{min-width:0}
.own-row button{white-space:nowrap;flex-shrink:0}
.field-error{font-size:.875rem;color:#88513b}
.ticket{background:#fffef1bd;width:340px;max-width:100%;margin:26px auto 0;padding:18px 26px 26px;border:1px solid #9cb29b;position:relative;transform:rotate(-2deg);border-radius:5px 5px 3px 7px}
.ticket-art{height:100px;display:flex;justify-content:center}
.ticket-art .destination-art{height:100px;width:120px}
.ticket-label{font-size:.8rem;letter-spacing:.15em;color:#58786c}
.ticket h2{font-size:1.55rem;margin:8px 0 15px;overflow-wrap:anywhere;text-wrap:balance}
.ticket-rule{border-bottom:1px dashed #8baf9c;margin:14px -27px 17px}
.ticket p{font-family:var(--hand);font-size:1rem;line-height:1.8;text-align:left}
.ticket-stamp{position:absolute;right:20px;top:20px;display:grid;place-items:center;border:2px solid #668b78;border-radius:50% 46% 47% 50%;width:47px;height:47px;transform:rotate(12deg);font-family:var(--hand);font-size:1rem;color:#537966}
.throw-page{max-width:760px}
.throw-page .lead{margin-top:9px}
.throw-space{height:310px;position:relative;width:min(100%,500px);margin:14px auto 0;display:flex;align-items:center;justify-content:center}
.moya{position:relative;z-index:5;width:285px;height:245px;max-width:none;padding:0;border:0;background:none;border-radius:45%;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;will-change:transform;flex-shrink:0}
.moya>*{pointer-events:none}
.moya.held{cursor:grabbing}
.moya.held .moya-eyes{transform:translateY(-3px)}
.moya.flying{cursor:default;pointer-events:none;z-index:30}
.moya:not(.held):not(.flying) .moya-svg{animation:moya-idle 3.9s ease-in-out infinite}
.moya-shadow{position:absolute;bottom:26px;left:50%;width:148px;height:15px;transform:translateX(-50%);border-radius:50%;background:#72968827;filter:blur(3px);transition:opacity .3s}
.throw-orbit{border:1px dashed #749c8970;width:310px;height:120px;position:absolute;bottom:25px;border-radius:50%;transform:rotate(-10deg);pointer-events:none}
.throw-handnote{position:absolute;bottom:0;right:10px;transform:rotate(-8deg);font-family:var(--hand);font-size:1.05rem}
.departed .moya-shadow,.departed .throw-handnote,.departed .throw-orbit{opacity:0}
.throw-instruction{font-size:.95rem;line-height:1.8;min-height:3.6em;margin-top:14px}
.throw-tools{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.throw-tools .text-button{font-size:.875rem}
#effects{position:fixed;inset:0;pointer-events:none;z-index:25}
.flight-live{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.arrival-art{position:relative;width:240px;height:190px;margin:4px auto 8px}
.arrival-art>.destination-art{width:210px;height:182px;margin:auto}
.tiny-traveler{position:absolute;width:62px;height:54px;right:10px;top:24px;transform:rotate(17deg);animation:bob 4s ease-in-out infinite}
.arrival-spark{position:absolute;font-size:1.7rem;color:#9f8a44;animation:twinkle 3s ease-in-out infinite}
.s1{left:13px;top:24px}.s2{right:-5px;bottom:15px;animation-delay:1s}.s3{left:-5px;bottom:12px}
.arrived-place{font-size:1rem;line-height:1.8;overflow-wrap:anywhere;max-width:500px;margin:auto}
.arrived-place strong{font-family:var(--hand);font-size:1.3rem;font-weight:400;display:inline-block}
.arrival-story{font-family:var(--hand);font-size:1.2rem;line-height:1.9;max-width:485px;margin:12px auto 0;text-wrap:pretty;overflow-wrap:anywhere}
.ending-message{margin:18px auto 0;font-size:.95rem;line-height:2;max-width:540px}
.completion-note{font-size:.8rem;margin-top:14px}
.world-svg>rect{transition:fill 1.4s ease}
body[data-scene="hello"] .world-svg>rect{fill:#d6e9ed}
body[data-scene="breath"] .world-svg>rect{fill:#d8eceb}
body[data-scene="throw"] .world-svg>rect{fill:#cce9ee}
body[data-scene="complete"] .world-svg>rect{fill:#e6f4ef}
.arrival-art{width:290px;height:225px;margin-top:7px;margin-bottom:9px}
.arrival-art>.destination-art{width:260px;height:210px;animation:receiver-sway 2.6s ease-in-out both;transform-origin:50% 80%}
.tiny-traveler{position:absolute;width:52px;height:45px;left:var(--arrival-x);top:var(--arrival-y);right:auto;opacity:0;animation:receive-tuck 2.2s .15s ease-in-out both;transform-origin:center;translate:-50% -50%}
.scene-caption{position:absolute;bottom:-3px;left:-20px;right:-20px;font-family:var(--hand);font-size:.95rem;line-height:1.6;color:#537a6a;animation:caption-appear .5s 1.5s ease both}
.arrival-spark{position:absolute;line-height:1;font-size:1.6rem;color:#baa159;animation:twinkle 3s ease-in-out infinite}
.arrival-spark.s1{left:4%;top:25%}.arrival-spark.s2{right:2%;top:64%;animation-delay:.8s}.arrival-spark.s3{right:19%;top:8%;font-size:2.4rem;animation-delay:1.2s}
.motion-drop .tiny-traveler{animation-name:receive-drop;animation-duration:2.5s}
.motion-bury .tiny-traveler{animation-name:receive-bury;animation-duration:2.6s}
.motion-slice .tiny-traveler{opacity:1;animation:none}
.moya-half{position:absolute;inset:0;opacity:0;animation:slice-a 2.6s .15s ease both}
.half-a{clip-path:polygon(0 0,100% 0,100% 50%,0 50%)}
.half-b{clip-path:polygon(0 50%,100% 50%,100% 100%,0 100%);animation-name:slice-b}
.motion-spin .tiny-traveler{animation-name:receive-spin}
.motion-puff .tiny-traveler{animation-name:receive-puff}
.motion-steam .tiny-traveler{animation-name:receive-steam}
.motion-float .tiny-traveler,.motion-ride .tiny-traveler{animation-name:receive-ride}
.motion-away .tiny-traveler{animation-name:receive-away}
.motion-sleep .tiny-traveler{animation-name:receive-sleep}
.motion-dissolve .tiny-traveler{animation-name:receive-dissolve}
.motion-bounce .tiny-traveler{animation-name:receive-bounce}
.arrival-art[data-arrival="saturn"] .tiny-traveler{animation-name:receive-spin}
.arrival-art[data-arrival="tower"] .guard-sword{transform-origin:130px 90px;animation:sword-swish 2.6s .15s ease both}
.arrival-art[data-arrival="quokka"] .quokka-paw{transform-origin:80px 90px;animation:paw-dig 2.6s .15s ease both}
.arrival-art[data-arrival="quokka"] .earth-specks{animation:earth-dig 2.6s .15s ease both}
.arrival-art[data-arrival="seagull"] .seagull-body{animation:bird-nod 2.6s .15s ease both;transform-origin:85px 50px}
.arrival-art .sea-splash{opacity:0;animation:splash .7s 1.9s ease both}
@keyframes receive-tuck{0%{opacity:0;transform:translate(15px,-25px) scale(.7)}20%,48%{opacity:1;transform:translate(0,0) scale(.8) rotate(-10deg)}75%,100%{opacity:0;transform:translate(0,8px) scale(0)}}
@keyframes receive-drop{0%{opacity:0;transform:scale(.8)}20%,45%{opacity:1;transform:translateY(0) rotate(-12deg) scale(.8)}65%{opacity:1;transform:translateY(50px) rotate(65deg) scale(.5)}85%,100%{opacity:0;transform:translateY(83px) rotate(110deg) scale(.1)}}
@keyframes receive-bury{0%{opacity:0;transform:translateY(-15px) scale(.7)}20%,45%{opacity:1;transform:translateY(0) rotate(-10deg) scale(.7)}70%{opacity:.5;transform:translateY(8px) rotate(8deg) scale(.4)}85%,100%{opacity:0;transform:translateY(14px) scale(.05)}}
@keyframes slice-a{0%{opacity:0;transform:translateX(-15px) scale(.8)}20%,42%{opacity:1;transform:translateX(0) scale(.8)}53%{opacity:1;transform:translate(-8px,-3px) rotate(-10deg) scale(.8)}90%,100%{opacity:0;transform:translate(-50px,-35px) rotate(-100deg) scale(.1)}}
@keyframes slice-b{0%{opacity:0;transform:translateX(-15px) scale(.8)}20%,42%{opacity:1;transform:translateX(0) scale(.8)}53%{opacity:1;transform:translate(8px,3px) rotate(10deg) scale(.8)}90%,100%{opacity:0;transform:translate(40px,30px) rotate(130deg) scale(.1)}}
@keyframes receive-spin{0%{opacity:0;transform:rotate(0) translateX(35px) scale(.7)}20%{opacity:1}80%{opacity:1}100%{opacity:0;transform:rotate(660deg) translateX(0) scale(0)}}
@keyframes receive-puff{0%{opacity:0;transform:scale(.5)}25%{opacity:1;transform:scale(.7)}45%{opacity:1;transform:scale(.4) rotate(-20deg)}62%{opacity:.7;filter:brightness(2);transform:scale(.8) rotate(10deg)}100%{opacity:0;filter:brightness(4);transform:translateY(-20px) scale(1.2)}}
@keyframes receive-steam{0%{opacity:0;transform:translateY(-14px) scale(.6)}25%,48%{opacity:1;transform:translateY(0) rotate(25deg) scale(.5)}65%{opacity:.5;filter:brightness(3);transform:translateY(-16px) rotate(-15deg) scale(.5)}100%{opacity:0;filter:brightness(4);transform:translateY(-52px) rotate(20deg) scale(.1)}}
@keyframes receive-ride{0%{opacity:0;transform:translate(-20px,-5px) scale(.8)}25%{opacity:1;transform:translate(0,0) scale(.7)}50%{opacity:1;transform:translate(15px,-4px) rotate(12deg) scale(.5)}100%{opacity:0;transform:translate(50px,-16px) rotate(-10deg) scale(0)}}
@keyframes receive-away{0%{opacity:0;transform:translate(-15px,15px) scale(.8)}22%{opacity:1;transform:scale(.7)}100%{opacity:0;transform:translate(65px,-55px) rotate(180deg) scale(0)}}
@keyframes receive-sleep{0%{opacity:0;transform:translateY(-15px) scale(.6)}25%{opacity:1;transform:scale(.7)}50%{opacity:1;transform:translateY(4px) rotate(-18deg) scale(.55)}100%{opacity:0;transform:translateY(8px) rotate(-18deg) scale(0)}}
@keyframes receive-dissolve{0%{opacity:0;transform:scale(.8)}25%,45%{opacity:1;transform:scale(.7)}100%{opacity:0;filter:blur(7px);transform:scale(.2)}}
@keyframes receive-bounce{0%{opacity:0;transform:translateY(-20px) scale(.8)}25%{opacity:1;transform:translateY(0) scale(.7)}40%{opacity:1;transform:translate(8px,-12px) rotate(15deg) scale(.6)}100%{opacity:0;transform:translate(70px,-40px) rotate(130deg) scale(0)}}
@keyframes receiver-sway{0%,100%{transform:rotate(0)}45%{transform:rotate(-2deg)}65%{transform:rotate(2deg)}}
@keyframes sword-swish{0%,35%{transform:rotate(15deg)}47%{transform:rotate(-68deg)}63%,100%{transform:rotate(0)}}
@keyframes paw-dig{0%,20%,100%{transform:rotate(0)}33%,57%{transform:rotate(-20deg) translate(-2px,1px)}45%,68%{transform:rotate(8deg)}}
@keyframes earth-dig{0%,20%,75%,100%{opacity:0;transform:translate(10px,-4px)}33%,57%{opacity:1;transform:translate(-2px,-10px)}45%,68%{opacity:1;transform:translate(-8px,2px)}}
@keyframes bird-nod{0%,30%,65%,100%{transform:rotate(0)}42%{transform:rotate(9deg)}53%{transform:rotate(-6deg)}}
@keyframes splash{0%{opacity:0;transform:translateY(2px)}35%{opacity:1;transform:translateY(-3px)}100%{opacity:0;transform:translateY(4px)}}
@keyframes caption-appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.complete-page .actions{margin-top:20px}
dialog{background:transparent;border:0;padding:15px;max-width:570px;width:calc(100% - 24px);max-height:calc(100svh - 24px);color:var(--ink);overflow-y:auto}
dialog::backdrop{background:#214b484d;backdrop-filter:blur(4px)}
.dialog-paper{position:relative;background:var(--paper);border:1px solid #89a68b;padding:36px 32px 26px;border-radius:9px 5px 10px 5px}
.dialog-close{position:absolute;right:12px;top:12px;width:36px;height:36px;font-size:1.5rem}
.eyebrow{font-family:var(--hand);color:var(--muted);font-size:.95rem;margin-right:22px}
.dialog-paper h2{font-size:1.7rem;margin:12px 0 19px}
.dialog-paper p{font-size:.95rem;line-height:1.95;margin-top:14px}
.dialog-paper p.fine{font-size:.8rem}
.dialog-done{margin:23px auto 0;display:flex}
.mobile-only{display:none}
.noscript{position:fixed;z-index:100;inset:20%;background:#fffdf3;border:1px solid #58786c;padding:25px;height:max-content}
.far-clouds{animation:bob 12s ease-in-out infinite}
.drifting-leaf{animation:leaf-float 8s ease-in-out infinite;transform-origin:1100px 400px}
@keyframes page-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@keyframes bob{0%,100%{translate:0 0;rotate:-2deg}50%{translate:0 -9px;rotate:2deg}}
@keyframes moya-idle{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-10px) rotate(3deg)}}
@keyframes leaf-float{0%,100%{transform:translate(0,0) rotate(-8deg)}50%{transform:translate(-12px,18px) rotate(8deg)}}
@keyframes twinkle{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}
@media(min-width:1000px){.landscape>svg{min-width:1300px}.page{margin-top:-8px}.destination-page{max-width:720px}.hello-art{height:200px}.hello-moya{top:48px}.topbar{padding-left:42px;padding-right:42px}}
@media(max-width:600px){
  .landscape>svg{min-width:840px;width:210%;height:100%;left:51%}
  .landscape{opacity:.9}
  .tree-left{transform:translate(455px,680px) scale(.32)}
  .tree-right{transform:translate(520px,680px) scale(.32)}
  .topbar{padding: max(14px,env(safe-area-inset-top)) 18px 0}
  .brand{font-size:.95rem;gap:5px}.brand svg{width:25px;height:25px}
  .icon-button{width:40px;height:40px;font-size:1.2rem}
  main{padding:22px 22px 26px}
  .chapter{font-size:.875rem;gap:10px;margin-bottom:14px}
  .chapter>span{width:20px}
  h1{font-size:1.85rem;line-height:1.6}
  .lead{font-size:.95rem;line-height:1.9;margin-top:13px}
  .hello-art{height:164px;margin-top:4px}
  .hello-moya{width:121px;height:105px;top:44px;left:13%}
  .hello-art .hand-note{font-size:.82rem;right:0;bottom:3px}
  .mobile-only{display:initial}
  .name-form{max-width:320px;margin-top:12px}
  .checkbox-label{font-size:.8rem;margin-top:10px;margin-bottom:15px}
  .footer{gap:3px 13px;font-size:.75rem;padding-bottom:max(13px,env(safe-area-inset-bottom))}
  .footer button{font-size:.75rem}
  .worry-art{width:120px;height:96px;margin-top:4px;margin-bottom:11px}
  textarea{min-height:147px;font-size:1rem;padding:14px}
  .actions{margin-top:20px}
  .fine,.under-note{font-size:.8rem}
  .destinations{display:flex;flex-direction:column;gap:11px;margin-top:24px}
  .destination,.destination:nth-child(2),.destination:nth-child(3){display:grid;grid-template-columns:90px 1fr;grid-template-rows:auto auto;column-gap:7px;text-align:left;border-radius:5px 9px 4px 8px;transform:none;padding:12px 13px;min-height:111px;align-items:center}
  .destination .destination-art{width:87px;height:81px;grid-column:1;grid-row:1 / 3}
  .destination-title{grid-column:2;min-height:0;display:block;font-size:1.05rem;margin:0 0 3px;line-height:1.5}
  .destination-note{grid-column:2;min-height:0;font-size:.8rem;line-height:1.6;align-self:start}
  .destination-select{display:none}
  .destination:hover{transform:translateX(3px)}
  .destination-tools{gap:4px 10px;margin-top:9px}
  .destination-tools .text-button{font-size:.875rem}
  .destination-tools>span{font-size:.75rem}
  .own-destination{margin-top:4px}
  .own-row{align-items:stretch;flex-wrap:wrap;gap:8px}.own-row button{margin-left:auto}
  .ticket{width:300px;margin-top:23px;padding:16px 23px 25px}
  .ticket h2{font-size:1.4rem}
  .ticket-rule{margin-left:-24px;margin-right:-24px}
  .throw-space{height:293px;margin-top:10px}
  .moya{width:255px;height:220px}
  .throw-orbit{width:280px;height:103px;bottom:27px}
  .throw-handnote{right:-3px;bottom:0;font-size:1rem}
  .throw-instruction{font-size:.875rem;margin-top:19px}
  .throw-tools{gap:2px;margin-top:9px}
  .arrival-art{width:213px;height:158px;margin-top:8px}
  .arrival-art>.destination-art{width:180px;height:156px}
  .tiny-traveler{width:56px;height:48px;right:5px;top:14px}
  .arrival-story{font-size:1.1rem;line-height:1.9;max-width:330px}
  .arrived-place{font-size:.95rem}.arrived-place strong{font-size:1.2rem}
  .ending-message{font-size:.875rem;line-height:1.9;margin-top:17px}
  .dialog-paper{padding:34px 23px 25px}.dialog-paper h2{font-size:1.5rem}
}
@media(max-height:740px) and (min-width:601px){main{padding-top:12px;padding-bottom:16px}.chapter{margin-bottom:9px}h1{font-size:2rem}.lead{margin-top:9px}.hello-art{height:155px}.hello-moya{width:120px;height:106px;top:37px}.throw-space{height:255px}.arrival-art{height:145px}.arrival-art>.destination-art{height:145px;width:170px}.ticket{margin-top:16px;padding-top:10px}.ticket-art{height:75px}.ticket-art .destination-art{height:75px}.breath-scene{height:245px}.breath-scene .breath-orb{height:210px}}
@media(max-width:600px) and (max-height:740px){main{padding-top:13px;padding-bottom:15px}.topbar{padding-top:max(9px,env(safe-area-inset-top))}.chapter{margin-bottom:9px}h1{font-size:1.65rem}.lead{margin-top:9px}.hello-art{height:130px}.hello-moya{width:100px;height:90px;top:29px}.hello-art .hand-note{bottom:-3px}.name-form{margin-top:12px}.checkbox-label{margin-bottom:12px}.button{min-height:49px;padding-top:11px;padding-bottom:11px}.throw-space{height:245px}.moya{width:230px;height:197px}.throw-orbit{width:245px;height:85px;bottom:23px}.arrival-art{height:137px}.arrival-art>.destination-art{height:137px;width:165px}.arrival-story{font-size:1rem}.ending-message{margin-top:11px}.complete-page .actions{margin-top:13px}.ticket{margin-top:16px;padding-top:9px}.ticket-art{height:77px}.ticket-art .destination-art{height:77px}.ticket h2{margin:5px 0 10px}.breath-scene{height:243px}.breath-scene .breath-orb{height:210px}.destination{min-height:95px;padding:9px 11px}.destination .destination-art{height:72px;width:80px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.paper-grain{opacity:.08}}
@media(max-width:600px){.arrival-art{width:245px;height:192px;margin-top:8px;margin-bottom:10px}.arrival-art>.destination-art{width:222px;height:181px}.tiny-traveler{width:44px;height:38px}.scene-caption{font-size:.85rem;bottom:-1px}.arrival-story{margin-top:12px}}
@media(max-width:600px) and (max-height:740px){.arrival-art{width:220px;height:167px}.arrival-art>.destination-art{width:195px;height:162px}.scene-caption{font-size:.8rem}.complete-page h1{font-size:1.55rem}}
@media(prefers-reduced-motion:reduce){.tiny-traveler,.motion-slice .tiny-traveler,.moya-half,.arrival-art .sea-splash,.arrival-art .earth-specks{opacity:0!important}.scene-caption{opacity:1}}

/* The ending is a small picture book: exactly one sentence on each page. */
.reading-page{max-width:650px}
.reading-page h1{font-size:1.6rem;line-height:1.6}
.reading-page .chapter{font-size:.9rem;margin-bottom:11px}
.reading-page .arrival-art{margin:12px auto 3px}
.reading-page .scene-caption{display:none}
.reading-copy{min-height:142px;display:flex;align-items:center;justify-content:center;padding:10px 15px 5px}
.story-line{font-family:var(--hand);font-size:1.45rem;line-height:2;max-width:560px;text-wrap:balance;overflow-wrap:anywhere}
.reading-progress{display:flex;justify-content:center;gap:11px;margin:14px 0 23px}
.reading-progress span{display:block;width:7px;height:7px;border:1px solid #92af9b;border-radius:50%;background:transparent;transition:background .3s}
.reading-progress .current{background:#668f77;border-color:#668f77}
.book-controls{min-height:108px}
.reading-page #story-ending-actions{margin:0;gap:7px}
.reading-page .button{min-width:180px}
@media(max-width:600px){.reading-page h1{font-size:1.35rem}.reading-page .chapter{font-size:.8rem}.reading-page .arrival-art{margin-top:12px}.reading-copy{min-height:162px;padding:5px 0}.story-line{font-size:1.25rem;line-height:1.95;max-width:345px}.reading-progress{margin:13px 0 23px}.book-controls{min-height:105px}.reading-page .button{min-width:170px}}
@media(max-width:600px) and (max-height:740px){.reading-page h1{font-size:1.2rem}.reading-copy{min-height:150px}.story-line{font-size:1.1rem}.reading-progress{margin:9px 0 17px}.book-controls{min-height:97px}}

html{touch-action:manipulation}
.topbar{padding-top:max(14px,env(safe-area-inset-top))}
.icon-button{color:#294f4b}
.custom-place-art .destination-art{width:160px;height:140px;margin:15px auto}
.custom-place-form{max-width:360px;width:100%;margin:12px auto 5px;text-align:left}
.custom-place-form .button{width:100%;margin-top:20px}
.custom-place-page>.text-button{margin-top:5px}
.intro-story{font-family:var(--hand);font-size:1.2rem;line-height:2;color:var(--ink);margin:5px auto 0}
.intro-page .hello-art{height:210px;width:100%;margin:8px auto}
.intro-page .actions{margin-top:22px}
.intro-page .button{min-width:230px}
body[data-scene="hello"] .sky-birds{visibility:hidden}
.gather-art{height:90px;width:260px;margin:15px auto 22px}
.gather-art svg{width:100%;height:100%}
.gather-page .name-form{width:100%}
.gather-page .optional{color:#d2e0dc}
.moya-reveal{width:100%;height:100%;animation:exhale-moya 1.2s cubic-bezier(.2,.75,.25,1) both}
.moya-reveal .moya-svg{filter:drop-shadow(0 0 2px #d6e1cb) drop-shadow(0 0 20px #c6dbc735)}
.make-board{--gathered:0;position:relative;width:300px;height:250px;margin:22px auto 6px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:crosshair;isolation:isolate}
.make-mist{position:absolute;inset:6% 0;background:radial-gradient(ellipse,#e2e9e1b8 0%,#dbe4dc40 48%,transparent 72%);border:1px dashed #d0ddd35c;border-radius:47% 52% 46% 51%}
.make-preview{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:var(--formation-opacity,0);transform:scale(var(--formation-scale,.04));will-change:transform,opacity}
.make-preview .moya-body,.make-preview .moya-arms{opacity:var(--formation-body,0)}
.make-preview .moya-eyes{opacity:var(--formation-face,0)}
.make-preview .moya-label{opacity:var(--formation-label,0)}
.make-preview .moya-tangles path{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--formation-ink,0))}
#make-ink{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
#make-prompt{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--hand);font-size:1.2rem;color:#e7efdf;pointer-events:none}
.make-status{font-size:.875rem;line-height:1.6;min-height:2em;margin:6px 0 0}
.make-tools{display:flex;justify-content:center;gap:8px}
.make-tools .text-button{font-size:.8rem}
.make-page .actions{margin-top:10px}
.make-page .button:disabled{opacity:.45;cursor:default;transform:none}
@keyframes exhale-moya{from{opacity:0;transform:translateY(28px) scale(.12) rotate(-24deg)}65%{opacity:1;transform:translateY(-5px) scale(1.06) rotate(4deg)}to{opacity:1;transform:none}}
.rest-page{max-width:570px}
.rest-art{height:125px;margin:12px auto;width:200px}
.rest-art svg{width:100%;height:100%}
.rest-copy{font-family:var(--hand);font-size:1.3rem;line-height:1.9;max-width:490px;margin:0 auto;text-wrap:balance;overflow-wrap:anywhere}
.rest-permission{font-size:.875rem;line-height:1.7;margin:17px 0 0;color:var(--muted)}
.rest-actions{margin-top:20px;gap:3px}
#rest-source{font-size:.8rem;min-height:32px;margin-top:8px}

/* The weather tells the story: grey rain, deepest night at the spell, then daylight. */
body[data-weather]{background:var(--weather-sky);--weather-sky:#8ea3ac;--weather-veil:.26;--rain-opacity:.42;--tree-saturation:.2;--leaf-drop:14px}
body[data-weather="overcast"]{--ink:#203e3c;--muted:#2c484a;--weather-sky:#bbc8cf;--weather-veil:.12;--rain-opacity:.23}
body[data-weather="overcast"] .brand,body[data-weather="overcast"] .chapter,body[data-weather="overcast"] .under-note,body[data-weather="overcast"] .optional,body[data-weather="overcast"] .hand-note,body[data-weather="overcast"] .footer{color:#2c484a}
body[data-weather="rain"]{--weather-sky:#647b89;--weather-veil:.48;--rain-opacity:.65;--ink:#f2f2e8;--muted:#e0e8e5}
body[data-weather="dusk"]{--weather-sky:#405b6d;--weather-veil:.63;--rain-opacity:.72;--ink:#f2f2e8;--muted:#e0e8e5;--leaf-drop:20px}
body[data-weather="storm"]{--weather-sky:#172737;--weather-veil:.82;--rain-opacity:1;--ink:#f5f4e6;--muted:#e0e8e5;--leaf-drop:25px}
body[data-weather="clear"]{--weather-sky:#d6eef1;--weather-veil:0;--rain-opacity:0;--tree-saturation:1;--leaf-drop:0px}
body[data-weather] .world-svg>rect{fill:var(--weather-sky)}
.landscape:after{content:'';position:absolute;inset:0;background:#102133;opacity:var(--weather-veil,0);pointer-events:none}
.landscape>svg.weather-rain{z-index:1;opacity:.45}
.rain-layer{opacity:var(--rain-opacity,0)}
.rain-strokes{animation:rain-fall 1.6s linear infinite}
body[data-weather="storm"] .rain-strokes{animation-duration:1s}
body[data-weather="clear"] .rain-strokes{animation:none}
body[data-weather]:not([data-weather="clear"]) .far-clouds path{fill:#a7b4b9;stroke:#899ba5}
body[data-weather]:not([data-weather="clear"]) .sky-birds,body[data-weather]:not([data-weather="clear"]) .drifting-leaf{visibility:hidden}
.tree-left,.tree-right{filter:saturate(var(--tree-saturation,1))}
.tree-leaf{transform:translateY(var(--leaf-drop,0px));transition:transform 1.4s ease}
body[data-weather]:not([data-weather="clear"]) .tree-leaf:nth-child(3n){opacity:.22}
body[data-weather="rain"] .brand,body[data-weather="rain"] .footer,body[data-weather="rain"] .chapter,body[data-weather="rain"] .under-note,
body[data-weather="dusk"] .brand,body[data-weather="dusk"] .footer,body[data-weather="dusk"] .chapter,body[data-weather="dusk"] .under-note,
body[data-weather="storm"] .brand,body[data-weather="storm"] .footer,body[data-weather="storm"] .chapter,body[data-weather="storm"] .under-note{color:#edf0df}
body[data-scene="ready"] .ticket,.destination{color:#294f4b}
body[data-scene="ready"] .ticket{background:#f4f3dff5}
body[data-weather="rain"] .text-button:hover,body[data-weather="dusk"] .text-button:hover,body[data-weather="storm"] .text-button:hover{color:#f0f3df;background:#ffffff0d}
body[data-scene="throw"] .moya-svg{filter:drop-shadow(0 0 2px #d6e1cb) drop-shadow(0 0 30px #c6dbc735)}
body[data-scene="throw"] .throw-orbit{border-color:#afc2ad70}
body[data-scene="throw"] .throw-handnote{color:#d8e6ce}
body[data-scene="throw"] .moya:not(.flying) .moya-tangles path{stroke-dasharray:6000;animation:gather-scribble 1s ease-out both}
@keyframes gather-scribble{from{stroke-dashoffset:6000;opacity:.3}to{stroke-dashoffset:0;opacity:1}}
@keyframes rain-fall{from{transform:translate(8px,-40px)}to{transform:translate(-8px,40px)}}
dialog{--ink:#294f4b;--muted:#4e706b;color:var(--ink)}
.dialog-paper .storybook-warning{font-family:var(--hand);font-size:1rem;margin-top:24px}
.dialog-paper .app-note{font-size:.8rem;line-height:1.8;margin-top:24px}
.save-note{font-size:.8rem;color:#45625f;line-height:1.5;margin:0 0 6px}
.place-remember{margin-bottom:2px}
.own-destination{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}
.saved-place-form{width:100%;max-width:370px;margin:32px auto 8px;text-align:left}
.saved-place-form select{font:inherit;font-size:1rem;color:#294f4b;width:100%;min-height:52px;padding:10px 38px 10px 12px;border:1px solid #72968b;border-radius:6px;background:#fffdf0;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12' viewBox='0 0 18 12'%3E%3Cpath d='m3 3 6 6 6-6' fill='none' stroke='%23456b60' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.saved-empty{text-align:center;font-family:var(--hand);font-size:1.15rem;margin-bottom:24px}
@media(prefers-reduced-motion:reduce){.rain-strokes{animation:none}.tree-leaf{transition:none}}

/* The phone experience is a viewport-sized stage, not a scrolling webpage. */
@media(max-width:700px){
  body:not([data-view="desktop"]){height:var(--app-height,100dvh);min-height:0;overflow:hidden}
  body:not([data-view="desktop"]) .topbar{padding:max(8px,env(safe-area-inset-top)) 16px 2px;min-height:44px}
  body:not([data-view="desktop"]) .brand{font-size:.95rem}
  body:not([data-view="desktop"]) .icon-button{width:36px;height:36px}
  body:not([data-view="desktop"]) main{container-type:size;min-height:0;overflow:hidden;padding:8px 18px;flex:1}
  body:not([data-view="desktop"]) .page{height:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0;margin:0}
  body:not([data-view="desktop"]) .page>*{flex-shrink:0}
  body:not([data-view="desktop"]) .chapter{font-size:.875rem;line-height:1.5;margin:0 0 7px;gap:9px}
  body:not([data-view="desktop"]) h1{font-size:clamp(1.375rem,4.3cqh,1.8rem);line-height:1.45}
  body:not([data-view="desktop"]) .lead{font-size:1rem;line-height:1.6;margin:8px auto 0}
  body:not([data-view="desktop"]) .hello-art{width:100%;max-width:420px;height:clamp(70px,19cqh,145px);margin:7px auto}
  body:not([data-view="desktop"]) .hello-moya{height:83%;width:32%;left:13%;top:12%}
  body:not([data-view="desktop"]) .hello-art .hand-note{font-size:.8rem;bottom:0;right:0}
  body:not([data-view="desktop"]) .intro-story{font-size:1.05rem;line-height:1.9;margin:12px auto 0}
  body:not([data-view="desktop"]) .intro-page .hello-art{height:clamp(95px,26cqh,190px);margin:10px auto}
  body:not([data-view="desktop"]) .intro-page .actions{margin-top:20px}
  body:not([data-view="desktop"]) .gather-art{height:clamp(40px,12cqh,80px);width:230px;margin:10px auto}
  body:not([data-view="desktop"]) .name-form{margin:8px auto 0;width:100%;max-width:340px}
  body:not([data-view="desktop"]) label{font-size:1rem;line-height:1.45;margin-bottom:5px}
  body:not([data-view="desktop"]) input[type="text"]{font-size:1rem;min-height:46px;padding:10px 13px;line-height:1.45}
  body:not([data-view="desktop"]) .optional{font-size:.8rem}
  body:not([data-view="desktop"]) .remember{min-height:36px;margin:7px 0 9px;font-size:.8rem;line-height:1.5;gap:7px}
  body:not([data-view="desktop"]) .remember input{width:18px;height:18px}
  body:not([data-view="desktop"]) .button{min-height:46px;padding:11px 23px;font-size:1rem}
  body:not([data-view="desktop"]) .text-button{min-height:40px;font-size:.875rem;padding:7px 10px;line-height:1.5}
  body:not([data-view="desktop"]) .under-note{font-size:.8rem;line-height:1.55;margin-top:10px}
  body:not([data-view="desktop"]) .footer{min-height:27px;padding:0 12px max(3px,env(safe-area-inset-bottom));gap:10px;line-height:1.4}
  body:not([data-view="desktop"]) .footer button{padding:2px 6px;min-height:24px;font-size:.75rem}
  body:not([data-view="desktop"]) .breath-scene{height:clamp(140px,35cqh,245px);width:100%;max-width:310px;margin:12px auto 3px}
  body:not([data-view="desktop"]) .breath-scene .breath-orb{width:100%;height:calc(100% - 44px);margin:auto}
  body:not([data-view="desktop"]) .breath-caption strong{font-size:1.2rem;line-height:1.5}
  body:not([data-view="desktop"]) .breath-caption span{font-size:.8rem;min-height:20px;line-height:1.4}
  body:not([data-view="desktop"]) .actions{margin-top:12px;gap:3px}
  body:not([data-view="desktop"]) .destinations{display:flex;flex-direction:column;gap:8px;width:100%;margin:14px auto 0;max-width:420px}
  body:not([data-view="desktop"]) .destination{display:grid;grid-template-columns:74px minmax(0,1fr);grid-template-rows:auto auto;gap:0 7px;align-items:center;text-align:left;transform:none!important;min-height:clamp(76px,17cqh,108px);padding:9px 10px;border-radius:6px 9px 5px 7px}
  body:not([data-view="desktop"]) .destination .destination-art{width:71px;height:66px;grid-column:1;grid-row:1 / 3}
  body:not([data-view="desktop"]) .destination-title{grid-column:2;display:block;min-height:0;font-size:1rem;line-height:1.4;margin:0 0 4px}
  body:not([data-view="desktop"]) .destination-note{grid-column:2;min-height:0;font-size:.8rem;line-height:1.5;margin:0}
  body:not([data-view="desktop"]) .destination-select{display:none}
  body:not([data-view="desktop"]) .destination-tools{margin-top:7px;gap:0}
  body:not([data-view="desktop"]) .own-destination{margin:1px auto 0}
  body:not([data-view="desktop"]) .own-toggle{font-size:.95rem;min-height:40px;padding:7px 15px}
  body:not([data-view="desktop"]) .custom-place-art .destination-art{height:clamp(70px,23cqh,150px);width:150px;margin:10px auto}
  body:not([data-view="desktop"]) .custom-place-form{margin:13px auto 0;max-width:340px}
  body:not([data-view="desktop"]) .custom-place-form .button{margin-top:14px}
  body:not([data-view="desktop"]) .custom-place-page>.text-button{margin-top:8px}
  body:not([data-view="desktop"]) .ticket{width:min(300px,100%);padding:12px 20px 17px;margin:16px auto 0}
  body:not([data-view="desktop"]) .ticket-art,body:not([data-view="desktop"]) .ticket-art .destination-art{height:clamp(52px,13cqh,85px)}
  body:not([data-view="desktop"]) .ticket h2{font-size:clamp(1.125rem,3.7cqh,1.45rem);line-height:1.45;margin:7px 0 10px}
  body:not([data-view="desktop"]) .ticket-label{font-size:.8rem;line-height:1.5}
  body:not([data-view="desktop"]) .ticket-rule{margin:9px -21px 12px}
  body:not([data-view="desktop"]) .ticket p{font-size:.875rem;line-height:1.6}
  body:not([data-view="desktop"]) .ticket-stamp{width:39px;height:39px;font-size:.875rem;right:15px;top:15px}
  body:not([data-view="desktop"]) .throw-space{height:clamp(180px,48cqh,340px);width:100%;max-width:440px;margin:10px auto 0}
  body:not([data-view="desktop"]) .moya{width:clamp(200px,56cqh,285px);height:clamp(172px,48cqh,245px)}
  body:not([data-view="desktop"]) .throw-orbit{width:85%;max-width:300px;height:80px;bottom:16px}
  body:not([data-view="desktop"]) .throw-handnote{font-size:.95rem;right:0;bottom:0}
  body:not([data-view="desktop"]) .throw-instruction{font-size:.875rem;line-height:1.6;margin-top:10px;min-height:2.9em}
  body:not([data-view="desktop"]) .throw-tools{gap:0;margin-top:8px}
  body:not([data-view="desktop"]) .throw-tools .text-button{font-size:.8rem}
  body:not([data-view="desktop"]) .reading-page h1{font-size:clamp(1.125rem,3.6cqh,1.5rem);line-height:1.45}
  body:not([data-view="desktop"]) .reading-page .arrival-art{width:240px;height:clamp(102px,27cqh,200px);margin:9px auto 0;flex-shrink:1;min-height:82px}
  body:not([data-view="desktop"]) .reading-page .arrival-art>.destination-art{width:100%;height:100%}
  body:not([data-view="desktop"]) .reading-copy{min-height:clamp(90px,25cqh,172px);padding:8px 0;flex-shrink:0}
  body:not([data-view="desktop"]) .story-line{font-size:clamp(1.05rem,3.5cqh,1.3rem);line-height:1.8;max-width:355px}
  body:not([data-view="desktop"]) .reading-progress{margin:9px 0 14px;gap:10px}
  body:not([data-view="desktop"]) .book-controls{min-height:94px;width:100%;max-width:355px}
  body:not([data-view="desktop"]) .reading-page #story-ending-actions{display:flex;flex-direction:column;gap:3px;margin:0}
  body:not([data-view="desktop"]) #open-rest{width:100%;min-width:0}
  body:not([data-view="desktop"]) .reading-page .button{min-width:170px}
  body:not([data-view="desktop"]) .reading-page #story-ending-actions .text-button{font-size:.875rem}
  body:not([data-view="desktop"]) .rest-page .rest-art{height:clamp(55px,16cqh,125px);width:180px;margin:10px auto}
  body:not([data-view="desktop"]) .make-board{width:clamp(200px,54cqh,300px);height:clamp(167px,45cqh,250px);margin:12px auto 0}
  body:not([data-view="desktop"]) .make-status{font-size:.8rem;min-height:2.5em;margin-top:5px}
  body:not([data-view="desktop"]) .make-page .actions{margin-top:5px}
  body:not([data-view="desktop"]) .rest-copy{font-size:clamp(1.05rem,3.5cqh,1.25rem);line-height:1.85;max-width:350px;text-wrap:balance}
  body:not([data-view="desktop"]) .rest-permission{font-size:.8rem;line-height:1.6;margin:12px 0}
  body:not([data-view="desktop"]) .rest-actions{display:flex;flex-direction:column;gap:2px;margin-top:5px;width:100%;max-width:350px}
  body:not([data-view="desktop"]) #rest-home{width:100%}
  body:not([data-view="desktop"]) #rest-source{font-size:.8rem;min-height:28px;margin-top:8px;padding:4px}
  body:not([data-view="desktop"]).keyboard-open .footer,body:not([data-view="desktop"]).keyboard-open .hello-page>h1,body:not([data-view="desktop"]).keyboard-open .hello-art,body:not([data-view="desktop"]).keyboard-open .page>.chapter,body:not([data-view="desktop"]).keyboard-open .page>.lead,body:not([data-view="desktop"]).keyboard-open .page>.under-note,body:not([data-view="desktop"]).keyboard-open .custom-place-art{display:none}
  body:not([data-view="desktop"]).keyboard-open .topbar{min-height:36px}
  body:not([data-view="desktop"]).keyboard-open .name-form{margin-top:0}
  body:not([data-view="desktop"]).keyboard-open .gather-page>h1,body:not([data-view="desktop"]).keyboard-open .gather-art{display:none}
  body:not([data-view="desktop"])[data-zoom="yes"]{overflow:auto;height:auto;min-height:100dvh}
}
@media(max-width:700px) and (max-height:700px){
  body:not([data-view="desktop"]) .page>.chapter{display:none}
  body:not([data-view="desktop"]) .hello-art{height:74px;margin:5px auto}
  body:not([data-view="desktop"]) .hello-art .hand-note{display:none}
  body:not([data-view="desktop"]) .destination-note{display:none}
  body:not([data-view="desktop"]) .destination-title{grid-row:1 / 3;margin:0;align-self:center}
  body:not([data-view="desktop"]) .destinations{margin-top:10px;gap:7px}
  body:not([data-view="desktop"]) .destination{min-height:71px;padding:6px 9px}
  body:not([data-view="desktop"]) .destination .destination-art{width:65px;height:58px}
  body:not([data-view="desktop"]) .ticket-label{display:none}
  body:not([data-view="desktop"]) .ticket{margin-top:10px;padding-top:10px}
  body:not([data-view="desktop"]) .ready-page .under-note{margin-top:8px}
  body:not([data-view="desktop"]) .rest-page>.lead,body:not([data-view="desktop"]) .rest-page .rest-art{display:none}
  body:not([data-view="desktop"]) .rest-copy{margin-top:20px}
  body:not([data-view="desktop"]) .rest-permission{margin-top:16px;margin-bottom:16px}
}


/* Keep text contrast intact on the first frame of the scene change. */
.world-svg>rect,.landscape:after{transition:none}
@media(max-width:700px){
 body:not([data-view="desktop"]) .long-place .ticket-rule,body:not([data-view="desktop"]) .ready-page.long-place>.under-note{display:none}
 body:not([data-view="desktop"]) .long-place .ticket-art,body:not([data-view="desktop"]) .long-place .ticket-art .destination-art{height:50px}
 body:not([data-view="desktop"]) .throw-page.long-place .lead{font-size:.875rem;line-height:1.4;margin-top:5px}
}
