:root{font-family:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;color:#3d5043;background:#e8eee6;--ink:#3f5147;--rose:#96647a;--paper:#fffafc;--line:#d9cecfff;--serif:"Songti SC",STSong,Georgia,serif;color-scheme:light}
*{box-sizing:border-box;letter-spacing:0}html,body{width:100%;height:100%;margin:0;overflow:hidden}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #935c78;outline-offset:4px}button:disabled{cursor:wait;opacity:.7}[hidden]{display:none!important}svg{width:19px;height:19px;stroke-width:1.5;flex-shrink:0}
#world,#gardenCanvas{position:fixed;inset:0;width:100%;height:100%;display:block}#gardenCanvas{touch-action:none;cursor:grab}#gardenCanvas:active{cursor:grabbing}#gardenCanvas:focus-visible{outline:none}#sceneVeil{position:fixed;inset:0;background:#e8eee6;opacity:0;pointer-events:none;z-index:9;transition:opacity .38s}#sceneVeil.visible{opacity:1;pointer-events:auto}
.hud{position:fixed;inset:27px 32px auto;display:flex;align-items:flex-start;justify-content:space-between;gap:24px;z-index:12;pointer-events:none}.brand{display:flex;align-items:center;gap:12px;pointer-events:auto;color:#334a3c;text-shadow:0 1px 20px #fff;font:400 24px var(--serif)}.brand-initial{display:grid;place-items:center;font:italic 38px Georgia;width:47px;height:52px;border:1px solid #60796469;border-radius:30px 30px 4px 4px;background:#f7f9f130}.brand small{display:block;margin-top:7px;font:9px "Avenir Next",sans-serif;color:#6b7d6e}.tools{display:flex;gap:8px;pointer-events:auto}.tool{border:1px solid #eef1e3a6;background:#ffffffe0;box-shadow:0 3px 16px #314b3210;display:grid;place-items:center;width:39px;height:39px;padding:0;border-radius:50%;backdrop-filter:blur(12px);color:#4f6757}.tool:hover,.tool[aria-pressed=true]{background:#f3dce5;color:#895670;border-color:#e0bccd}
.hotspots{position:fixed;inset:0;pointer-events:none;z-index:10}.hotspot{position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;pointer-events:auto;padding:10px;border:0;background:none;color:#394c3e;opacity:0;transition:opacity .3s;white-space:nowrap}.hotspot.visible{opacity:1}.hotspot.hidden-label{visibility:hidden;pointer-events:none}.hotspot .pin{width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#b37792;box-shadow:0 1px 10px #374b4930}.hotspot .stem{height:25px;width:1px;background:#fff9efcc}.hotspot .label{display:flex;align-items:center;gap:12px;padding:10px 13px;border:1px solid #fff8f4cb;border-radius:4px;background:#fffffff0;box-shadow:0 4px 22px #233c3321;font:15px var(--serif);backdrop-filter:blur(9px);transition:background .2s,transform .2s}.hotspot .label svg{width:14px;height:14px;color:#a77b91}.hotspot:hover .label,.hotspot:focus-visible .label{background:#f9e7ef;transform:translateY(-3px)}.hotspot small{display:block;margin-top:5px;color:#536854;font-size:9px;text-shadow:0 1px 5px white}
.arrival{position:fixed;inset:0;pointer-events:none;z-index:11;transition:opacity .8s}.arrival.leaving{opacity:0}.arrival-copy{position:absolute;left:50%;top:17%;transform:translateX(-50%);text-align:center;width:min(600px,90vw);color:#3c5141;text-shadow:0 1px 24px #fffffff0}.arrival-copy p{font-size:10px;color:#74846f;margin:0 0 17px}.arrival h1{margin:0;font:400 64px/1.25 var(--serif)}.arrival-copy>span{display:block;margin-top:15px;font:14px var(--serif);color:#617760}.arrival-bottom{position:absolute;bottom:69px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:17px;pointer-events:auto}.enter{display:flex;align-items:center;justify-content:center;gap:26px;min-width:196px;min-height:48px;padding:13px 25px;border:1px solid #f6e7e9;background:#fff8f4ee;backdrop-filter:blur(12px);border-radius:4px;color:#805970;font:15px var(--serif);box-shadow:0 6px 30px #183f2425}.enter:hover{background:#f4dce7}.enter svg{width:19px}.skip{font-size:11px;border:0;padding:6px 15px;color:#fff;background:#314c3b55;border-radius:4px}
.breadcrumbs{position:fixed;top:98px;left:34px;z-index:13;display:flex;align-items:center;gap:9px;max-width:calc(100vw - 65px);color:#4d6552;font-size:11px;text-shadow:0 1px 9px #fff}.breadcrumbs a{padding:5px 0}.breadcrumbs span{opacity:.55}.breadcrumbs strong{font-weight:500}.scene-footer{position:fixed;left:32px;right:32px;bottom:27px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}.scene-footer>*{pointer-events:auto}.back-scene{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid #fcfcf3c4;background:#ffffffe3;backdrop-filter:blur(12px);border-radius:4px;color:#4d6655;font-size:12px}.back-scene svg{width:15px;height:15px}.scene-caption{position:absolute;left:50%;transform:translateX(-50%);bottom:8px;display:flex;gap:14px;font:14px var(--serif);color:#334d3f;text-shadow:0 1px 5px white;background:#ffffffe0;padding:9px 16px;border-radius:3px}.scene-caption span:first-child{font:9px "Avenir Next",sans-serif;align-self:center;color:#8b827d}
.map-dialog{width:min(760px,calc(100vw - 32px));max-height:85dvh;overflow:auto;border:1px solid #ecdee4;border-radius:8px;padding:30px;background:#fffafcf5;box-shadow:0 30px 90px #233c3940;color:#695362}.map-dialog::backdrop{background:#2b40334d;backdrop-filter:blur(7px)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head p{margin:0 0 8px;font-size:9px;color:#ab8b9b}.dialog-head h2{font:28px var(--serif);margin:0}.map-home{display:flex;align-items:center;gap:13px;padding:19px 0;margin:21px 0 10px;border-block:1px solid #ebdce3;font:19px var(--serif)}.map-home svg:last-child{margin-left:auto}.map-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.map-columns section>a{display:flex;align-items:center;gap:9px;padding:10px 0;font-size:13px;min-height:40px}.map-columns section>a:first-child{color:#91687e}.map-columns h3{font:18px var(--serif);margin:0}.map-columns section>a:hover{color:#a04b75}.map-foot{margin-top:22px;padding-top:19px;border-top:1px solid #ebdce3;display:flex;justify-content:space-between;font-size:11px;color:#aa8498}
.module-shell{position:fixed;inset:20px;z-index:30;border:1px solid #ecdee5;border-radius:8px;box-shadow:0 24px 100px #263b3866;background:#fffbfd;overflow:hidden;display:flex;flex-direction:column}.module-shell>header{display:flex;justify-content:space-between;align-items:center;gap:12px;height:59px;min-height:59px;padding:0 19px;background:#fcf8fb;border-bottom:1px solid #e7dce2}.module-shell h2{font:20px var(--serif);margin:0;color:#78586b}.module-back{display:flex;gap:8px;align-items:center;background:transparent;border:0;color:#896579;padding:10px 0;font-size:12px}.module-back svg{width:17px}.module-shell .tool{border-radius:5px;width:34px;height:34px}.module-shell iframe{width:100%;flex:1;min-height:0;border:0;background:#fcf8fb}.module-loading{position:absolute;inset:59px 0 0;background:#fcf8fb;display:grid;place-items:center;color:#b28c9f;font:18px var(--serif);pointer-events:none}.fallback{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#eff0e9 url("../assets/garden/rose-garden.png") center/cover;padding:24px;text-align:center}.fallback h1{font:44px var(--serif)}.fallback p{max-width:450px;line-height:1.8;background:#fff9f5ed;padding:18px}.fallback a,.fallback button{display:flex;gap:15px;align-items:center;margin:8px;padding:12px 18px;background:#fff9f5;border:1px solid #d5bbc7;border-radius:4px;color:#865771}.notice{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:55;max-width:90vw;font-size:12px;line-height:1.7;color:#806474;background:#fff8fcee;padding:11px 18px;border:1px solid #e5d2dd;border-radius:5px;opacity:0;pointer-events:none;transition:opacity .25s}.notice.visible{opacity:1}
body[data-scene=arrival] .hud .brand{visibility:hidden}body[data-scene=arrival] .tools .tool:not(#soundToggle):not(#fullscreen){display:none}body.is-transitioning .hotspots{pointer-events:none;opacity:0}body.is-transitioning .hotspot{pointer-events:none}
@media(max-width:700px){.hud{inset:20px 18px auto;gap:10px}.brand{font-size:21px;gap:9px}.brand-initial{width:34px;height:39px;font-size:30px}.brand small{font-size:7px;margin-top:5px}.tools{gap:6px}.tool{width:33px;height:33px}.tool svg{width:16px;height:16px}#fullscreen{display:none}.breadcrumbs{left:20px;top:82px;font-size:10px}.arrival-copy{top:19%}.arrival h1{font-size:47px}.arrival-copy p{font-size:8px}.arrival-copy>span{font-size:13px}.arrival-bottom{bottom:max(58px,env(safe-area-inset-bottom))}.scene-footer{left:17px;right:17px;bottom:max(23px,env(safe-area-inset-bottom))}.back-scene{font-size:11px;padding:9px 11px}.scene-caption{font-size:12px;gap:7px;padding:7px 10px;bottom:51px}.scene-caption span:first-child{font-size:8px}.hotspot .label{font-size:13px;padding:9px 10px;gap:8px}.hotspot .stem{height:18px}.hotspot small{display:none}.hotspot .label svg{width:12px}.map-dialog{padding:22px}.map-columns{grid-template-columns:1fr;gap:9px}.map-columns section{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;padding-bottom:10px;border-bottom:1px solid #eee0e8}.map-columns section>a:first-child{grid-column:1/-1}.map-columns h3{font-size:19px}.map-columns section>a{font-size:12px;min-height:35px;padding:8px 0}.module-shell{inset:0;border:0;border-radius:0}.module-shell>header{padding:0 13px;height:54px;min-height:54px}.module-shell h2{font-size:17px}.module-back{font-size:11px}.module-loading{inset:54px 0 0}}
@media(max-width:370px){.brand{font-size:18px}.brand-initial{display:none}.tools{gap:5px}.tool{width:31px}.scene-caption{font-size:11px}.hotspot .label{font-size:12px}}
#replay{margin-left:auto}
body.has-module :is(.hud,.hotspots,.breadcrumbs,.scene-footer){visibility:hidden}
.module-shell{inset:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.module-shell iframe{background:transparent}
.module-shell>header{background:#fafbf8f5;color:#344a40;border-color:#d4ded5}
.module-shell h2{color:#42564c}
.module-back{color:#53665b}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.scene-nav{position:fixed;z-index:12;bottom:88px;left:50%;transform:translateX(-50%);display:flex;max-width:calc(100% - 36px);gap:0;background:#fcfdf9eb;border:1px solid #ffffffa0;border-radius:5px;backdrop-filter:blur(14px);box-shadow:0 6px 28px #263c3320}
.scene-nav a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:10px 19px;font-size:12px;white-space:nowrap;border-bottom:2px solid transparent}
.scene-nav a+a{border-left:1px solid #cdd8cd77}
.view-controls{position:fixed;right:25px;top:48%;z-index:12;display:flex;gap:7px}
body[data-scene=arrival] .view-controls,body.has-module .view-controls,body.is-transitioning .view-controls{display:none}
.scene-nav a:hover,.scene-nav a:focus-visible{color:#8d536b;background:#f3e1e7;border-bottom-color:#b47b92}
body.has-module .scene-nav,body.is-transitioning .scene-nav{visibility:hidden}
.brand{background:#ffffffd9;border-radius:4px;padding:7px 12px;text-shadow:none;backdrop-filter:blur(12px)}
.breadcrumbs{background:#ffffffd9;padding:1px 9px;border-radius:3px;text-shadow:none;top:112px}
.hotspot .label{font-size:13px;padding:8px 11px;background:#ffffffe3;box-shadow:0 2px 16px #25362e18}
.hotspot small{background:#ffffffde;padding:3px 6px;border-radius:2px;color:#455a49;text-shadow:none}
body[data-scene=room] .hotspot .stem{height:15px}
.arrival-copy{top:15%;text-shadow:0 1px 18px #fff,0 0 48px #fff,0 2px 3px #fff}
.arrival-copy p{color:#314c3b;font-weight:600}
.arrival-copy>span{color:#314c3b}
.arrival h1{color:#243e32}
@media(max-width:700px){
  .brand{padding:5px 8px;gap:7px;font-size:18px}
  .brand-initial{display:none}.brand small{font-size:6px}
  .breadcrumbs{top:83px}
  .scene-nav{bottom:125px;width:calc(100% - 32px);max-width:420px}
  .scene-nav a{flex:1;min-width:0;padding:10px 6px;font-size:11px;white-space:normal;text-align:center}
  .view-controls{top:auto;bottom:184px;right:18px}
  .hotspot .label{font-size:12px}
  .arrival-copy{top:16%}
}

/* Separate portrait and landscape paintings preserve the gate and winding path. */
.arrival{overflow:hidden;isolation:isolate}
.arrival-art{position:absolute;inset:0;z-index:-1;display:block;transform-origin:72% 47%;transition:transform 1.4s ease-in-out}
.arrival-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% center}
.arrival-copy{left:28%;top:22%;width:42%;text-shadow:0 1px 12px #ffffffe6}
.arrival-copy p{font-size:10px;line-height:1.5;margin-bottom:14px}
.arrival-copy>span{line-height:1.7}
.arrival-bottom{left:28%;bottom:auto;top:calc(22% + 194px);gap:10px;transition:opacity .35s}
.arrival .enter{background:#fff9f2f0;color:#5f4e58;border-color:#fff8ec;box-shadow:0 4px 20px #34432a1f}
.arrival .enter:hover{background:#f8e8e9}
.arrival .skip{color:#354732;background:#fffcf1d9;min-height:34px}
.arrival.entering .arrival-art{transform:scale(1.09)}
.arrival.entering .arrival-copy,.arrival.entering .arrival-bottom{opacity:0}
.arrival-copy{transition:opacity .35s}
@media(max-aspect-ratio:1/1){
  .arrival-art{transform-origin:64% 45%}
  .arrival-art img{object-position:center center}
  .arrival-copy{left:50%;top:13%;width:88%}
  .arrival h1{font-size:47px}
  .arrival-bottom{left:50%;top:auto;bottom:max(42px,calc(env(safe-area-inset-bottom) + 24px))}
}
@media(min-aspect-ratio:1/1) and (max-aspect-ratio:4/3){
  .arrival-copy{left:25%;width:45%;top:19%}
  .arrival h1{font-size:48px}
  .arrival-copy p{font-size:8px}
  .arrival-copy>span{font-size:13px}
  .arrival-bottom{left:25%;top:calc(19% + 173px)}
}
@media(max-height:500px) and (min-aspect-ratio:1/1){
  .arrival-copy{top:14%}
  .arrival h1{font-size:40px}
  .arrival-copy p{font-size:8px;margin-bottom:8px}
  .arrival-copy>span{margin-top:8px;font-size:12px}
  .arrival-bottom{top:calc(14% + 139px);gap:4px}
}
