/* Only the chosen world is painted during a journey. Hidden worlds must not
   remain behind moving translucent layers, where they can flash through. */
.world{isolation:isolate;pointer-events:none}
.garden-scene{position:absolute;inset:0;transform:scale(1.015);transform-origin:50% 50%}
.garden-scene>img{display:none;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
body[data-world="day"] .garden-inner,body[data-world="night"] .garden-night{display:block}
body[data-world="night"] .world{background:#101527}
body[data-world="choice"] .garden-art,body[data-world="choice"] .garden-night{display:block}
body[data-world="choice"] .garden-night{clip-path:polygon(50% 0,100% 0,100% 100%,50% 100%)}
body[data-world="choice"] .garden-art{object-position:60% 50%}
body[data-world="choice"] .veil{background:linear-gradient(180deg,#18231b60,#18231b88 35%,#14211878 75%,#142118a8)}
body[data-world="choice"] .masthead,body[data-world="choice"] .garden-footer{color:#fff9eb}
.world-arrival{max-width:900px;margin:0 auto;padding:clamp(25px,5vh,65px) 26px 24px;text-align:center;color:#fff9eb}
.world-arrival .eyebrow{justify-content:center;font-size:9px;letter-spacing:2.8px}
.world-arrival h1{font-size:clamp(32px,3.7vw,53px);line-height:1.2;letter-spacing:-1.6px;margin:24px 0 20px;text-wrap:balance;text-shadow:0 2px 30px #14211866}
.world-arrival h1 em{color:#f6e3bd}
.world-arrival .welcome-copy{font-size:13px;margin:0 auto 27px}
.world-arrival .welcome-note{color:#f7eedb;font-size:13px}
.world-choices{display:flex;justify-content:center;gap:34px}
.world-door{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:198px;height:206px;padding:20px;border:1px solid #f7e9cdb3;border-radius:100px 100px 16px 16px;background-size:cover;background-position:center;box-shadow:0 12px 30px #1421183b;overflow:hidden;color:#fff9eb;position:relative;transition:transform .35s,box-shadow .35s}
.world-door::before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#19231c10,#19231c15 30%,#132219cc)}
.day-door{background-image:url('assets/inner-garden.webp')}.night-door{background-image:url('assets/night-garden.webp')}
.world-door>*{position:relative}.door-symbol{font:37px/1 var(--serif);margin-bottom:auto;margin-top:10px}.door-name{font:28px/1.2 var(--serif)}.world-door small{font-size:10px;margin-top:6px;letter-spacing:.6px}
.world-door:hover,.world-door:focus-visible{transform:translateY(-5px);box-shadow:0 12px 45px #e6c49244;filter:none}.world-door:focus-visible{outline-color:#fff0c3}
body[data-world="night"] .masthead{color:#fff4df}
body[data-world="night"] .veil{background:linear-gradient(180deg,#10152780,transparent 22%,#11182c16 47%,#11172cd9 100%)}
body[data-world="night"] .atmosphere button{background:#172235d9;color:#f4e8d3;border-color:#b7a8d673}
body[data-world="night"] .atmosphere button[aria-pressed="true"]{background:#d7c6a9;color:#1c2938}
.pathways{min-height:0!important;height:calc(100svh - 181px)}
.trail-map{position:relative;width:100%;height:100%;min-height:500px;isolation:isolate;color:#fff9eb}
.path-caption{position:absolute;top:12px;left:6%;max-width:400px;pointer-events:none;text-shadow:0 2px 18px #15291eff;z-index:2}
.path-caption .eyebrow{font-size:8px;letter-spacing:2.5px;color:#fff0c9;margin:0 0 12px}.path-caption h1{font-size:clamp(28px,3.1vw,44px);letter-spacing:-1.5px;margin:0 0 12px;line-height:1.12}.path-caption h1 em{color:#f8e2b7}.path-caption>p:last-child{font-size:11px;max-width:290px;line-height:1.7}.path-caption h1:focus{outline:none}
.path-drawing{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:1;pointer-events:none}
.trail{fill:none;stroke:#fff2c6b8;stroke-width:2;stroke-dasharray:2 10;stroke-linecap:round;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer;filter:drop-shadow(0 0 3px #152417);transition:opacity .3s,stroke-width .3s}
.has-route .trail:not(.selected){opacity:.22}.trail.selected{stroke:#fff0bc;stroke-width:3;stroke-dasharray:1 8}
.lit-trail-glow{fill:none;stroke:#fff1be;stroke-width:9;opacity:.28;filter:url('#path-glow')}.lit-trail{fill:none;stroke:#fff5cf;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:.1 100;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 5px #ffffc0)}
.light-halo{fill:#fce5b240;stroke:#fff3cda8;stroke-width:.8;vector-effect:non-scaling-stroke}.light-core{fill:#fff9de;filter:drop-shadow(0 0 9px #ffe9a8)}.light-hit{fill:transparent;pointer-events:all;cursor:grab;touch-action:none}.dragging .light-hit{cursor:grabbing}
.landmark{position:absolute;z-index:3;display:flex;flex-direction:column;align-items:center;min-height:80px;padding:6px 12px;background:none;border-radius:36px;transform:translate(-50%,-100%);color:#fff9e9;text-shadow:0 2px 10px #122317,0 1px 4px #122317;white-space:nowrap;filter:none!important}
.landmark::before{content:'';position:absolute;inset:2px -8px;border-radius:50%;background:radial-gradient(ellipse,#182a237a,transparent 73%);z-index:-1;pointer-events:none}
.landmark-icon{font:30px/1 var(--serif);display:grid;place-items:center;width:45px;height:45px;border:1px solid #fff0c78c;border-radius:50%;background:#34403170;box-shadow:0 0 22px #f6e2b32e;margin-bottom:9px;color:#fff1c6;transition:transform .3s,box-shadow .3s}
.landmark-title{font:21px/1.2 var(--serif);letter-spacing:-.3px}.landmark small{font-size:9px;letter-spacing:2px;text-transform:uppercase;margin-top:7px}.landmark:hover .landmark-icon,.landmark[aria-pressed="true"] .landmark-icon{transform:scale(1.13);box-shadow:0 0 28px #fff2c47a;background:#f3dfbce6;color:#394337;text-shadow:none}
.create-landmark{left:84%;top:62.14%}.discover-landmark{left:74.5%;top:23.57%}.reflect-landmark{left:20.5%;top:43.57%}
.travel-guide{position:absolute;z-index:4;bottom:0;left:50%;transform:translateX(-50%);width:min(410px,90%);text-align:center;padding:12px 22px 6px;background:linear-gradient(180deg,#14251b00,#14251b94);border-radius:24px;color:#fff9e9}
.travel-guide p{font:italic 16px/1.4 var(--serif);margin:0 0 8px}.travel-guide label{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.5px}.travel-guide input{accent-color:#e9d3a7;width:100%;min-height:28px;touch-action:pan-x}
.travel-options{display:flex;justify-content:space-between;gap:15px}.travel-options button{font-size:9px;background:none;color:#fff4df;text-decoration:underline;text-underline-offset:4px;min-height:30px;padding:2px 0}
.path-idle-note{position:absolute;bottom:0;left:50%;transform:translateX(-50%);font:italic 15px var(--serif);white-space:nowrap;margin:15px 0;text-shadow:0 1px 7px #11291d}
.motion-on.is-exploring .garden-scene{transform:translate(var(--wander-x,0%),var(--wander-y,0%)) scale(var(--wander-scale,1.015));transition:transform .18s linear}
.has-arrived main{padding:18px 20px 35px;min-height:calc(100svh - 181px)}
.destination-panel{position:relative;margin:0 auto;width:min(940px,100%);border-radius:16px;background:#faf5e9f7;border:1px solid #d8c8ad;box-shadow:0 20px 80px #15262066;color:var(--ink);max-height:none;overflow:hidden}
.destination-panel.discovering{animation:appear .5s ease}
.destination-panel.discovery-dialog:not([hidden]){display:grid;grid-template-columns:44% 56%}
.destination-panel h2:focus{outline:none}.destination-panel .bloom-stage{min-height:620px}.destination-panel .discovery-copy{padding-top:50px}.destination-panel .close-dialog{color:#344335}
.small-discovery:not([hidden]){display:grid;grid-template-columns:44% 56%;align-items:center;min-height:540px}.wonder-art{height:100%;display:grid;place-items:center;background:radial-gradient(ellipse,#eee4ec,#e2decf);padding:30px}.wonder-art svg{width:100%;max-width:330px;filter:drop-shadow(0 12px 15px #66516a26)}.small-discovery-copy{padding:55px 45px 40px}.small-discovery-copy .eyebrow{font-size:8px;letter-spacing:1.5px}.small-discovery-copy>p{font-size:13px;line-height:1.8;color:#626459}.small-discovery-copy h2{font-size:42px}.small-discovery-copy .light-label{margin-top:25px}.geometry-note{font-size:11px!important;color:#765a76!important}.quiet-return{background:none;color:#586447;padding:10px 0;min-height:44px;font-size:11px;text-decoration:underline;text-underline-offset:5px}
.reflection-panel{max-width:620px;padding:45px 55px 32px}.reflection-panel .eyebrow{font-size:9px}.reflection-panel h2{font-size:44px;margin-bottom:25px}.reflection-panel label{font:19px/1.5 var(--serif);display:block;margin-bottom:16px}.reflection-panel textarea{display:block;width:100%;resize:vertical;min-height:150px;max-height:450px;padding:15px;background:#fffaf0;border:1px solid #b7ab8d;border-radius:10px;color:#344335;font:15px/1.8 var(--serif)}.privacy-note{font-size:10px;line-height:1.6;color:#757262;margin:12px 0 20px}.reflection-actions .keep-button{width:190px}.reflection-actions{display:flex;align-items:center;justify-content:space-between;gap:20px}.reflection-panel .download-note{font-size:10px;color:#626459;min-height:18px;margin:10px 0}.reflection-panel .quiet-return{font-size:10px}
body[data-world="night"] .destination-panel{background:#f2eef8f5;border-color:#b9a7cc}.is-exploring .destination-panel button:focus-visible,.is-exploring .destination-panel input:focus-visible,.is-exploring .destination-panel textarea:focus-visible{outline-color:#59375e}
@media(max-width:700px){
 .masthead{padding:20px 20px;min-height:83px;gap:10px}.masthead nav{gap:14px}.nav-link{font-size:10px}#world-switch{max-width:90px;text-align:right;line-height:1.4}.wordmark{font-size:22px}.wordmark small{font-size:5px;letter-spacing:1.4px}.world-arrival{padding:35px 23px 25px}.world-arrival h1{font-size:32px;line-height:1.19;letter-spacing:-.8px;margin:20px 0}.world-arrival h1 br{display:none}.world-arrival .eyebrow{font-size:7px;letter-spacing:1.8px}.world-arrival .welcome-copy{font-size:12px;margin-bottom:25px;max-width:none}.world-choices{gap:20px}.world-door{width:145px;height:186px;padding:18px 10px}.door-name{font-size:25px}.world-door small{font-size:9px;letter-spacing:0}.world-arrival .welcome-note{font-size:11px;margin-top:22px}.world-arrival .door-symbol{font-size:31px}.garden-footer{padding:12px 18px 18px}
 .pathways{height:calc(100svh - 157px)}.trail-map{min-height:520px}.path-caption{top:5px;left:24px;right:24px;max-width:290px}.path-caption h1{font-size:29px;letter-spacing:-1px}.path-caption>p:last-child{font-size:10px;max-width:230px}.path-caption .eyebrow{font-size:7px;margin-bottom:10px}
 .landmark{padding:7px 3px;min-height:72px}.landmark-title{font-size:16px}.landmark small{font-size:7px;letter-spacing:1.5px;margin-top:6px}.landmark-icon{width:36px;height:36px;font-size:25px;margin-bottom:7px}.create-landmark{left:78%;top:61%}.discover-landmark{left:72%;top:32%}.reflect-landmark{left:23%;top:48%}.travel-guide{bottom:0;padding:8px 16px 0;width:94%}.travel-guide p{font-size:14px}.travel-options button{font-size:8px;min-height:33px}.path-idle-note{font-size:13px;bottom:18px}.garden-scene>img{object-position:60% 50%}
 .has-arrived main{padding:10px 12px 20px}.destination-panel.discovery-dialog:not([hidden]),.small-discovery:not([hidden]){display:block}.destination-panel .bloom-stage{height:230px;min-height:0}.destination-panel .bloom-stage #bloom-art{height:220px;margin-top:15px}.destination-panel .discovery-copy{padding:28px 26px}.wonder-art{height:230px;padding:15px}.wonder-art svg{width:210px;height:210px}.small-discovery-copy{padding:28px 26px}.small-discovery-copy h2{font-size:35px}.reflection-panel{padding:55px 25px 25px}.reflection-panel h2{font-size:37px}.reflection-panel label{font-size:18px}.reflection-actions{align-items:flex-start;flex-direction:column;gap:8px}
}
@media(max-width:370px){.world-arrival h1{font-size:29px}.world-choices{gap:15px}.world-door{width:132px;height:173px}.path-caption h1{font-size:26px}.landmark-title{font-size:14px}.masthead{padding-left:16px;padding-right:16px}.masthead nav{gap:10px}.wordmark{font-size:20px}}
@media(prefers-reduced-motion:reduce){.motion-on.is-exploring .garden-scene{transform:scale(1.015)}}

/* The draggable light keeps its circular shape on every screen. */
#travel-light{position:absolute;left:48%;top:81.4286%;width:48px;height:48px;transform:translate(-50%,-50%);z-index:2;touch-action:none}
#travel-light .light-halo{position:absolute;inset:0;border:1px solid #fff2c6aa;border-radius:50%;background:#fbe8bb30;box-shadow:0 0 25px #f7dfae33}
#travel-light .light-core{position:absolute;left:18px;top:18px;width:12px;height:12px;border-radius:50%;background:#fff8d9;box-shadow:0 0 14px #fff3ba,0 0 28px #ffefb499}
#travel-light .light-hit{position:absolute;inset:-8px;border-radius:50%;cursor:grab;touch-action:none}
#travel-light.dragging .light-hit{cursor:grabbing}
