:root{color-scheme:dark;--cream:#faf3e0;--champagne:#e8cc91;--sans:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;--serif:Georgia,"Songti SC",SimSun,serif}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#0c1832;color:var(--cream);font-family:var(--sans)}body{isolation:isolate;user-select:none;-webkit-user-select:none}.symbols{position:absolute;width:0;height:0;overflow:hidden}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,.viewer:focus-visible{outline:2px solid #ffe4a6;outline-offset:4px}.viewer{position:absolute;inset:0;overflow:hidden;cursor:grab;touch-action:none;outline:0!important}.viewer:focus-visible{box-shadow:inset 0 0 0 2px var(--champagne)}.viewer.dragging{cursor:grabbing}.landscape{position:absolute;inset:-6.5%;background:#101b38 url("assets/home-overlook-wide.webp") center 51%/cover no-repeat;will-change:transform}.wish-layer,#sky,.shade{pointer-events:none;position:absolute;inset:0;width:100%;height:100%}.wish-layer{will-change:transform}.wish{position:absolute;left:50%;top:32%;transform:translate(-50%,-50%);width:min(53vw,78vh,840px);height:auto;filter:drop-shadow(0 0 3px #ffbd5b99) drop-shadow(0 0 11px #ff9b4c44)}.shade{background:linear-gradient(to bottom,rgba(2,7,21,.53),transparent 18%,transparent 62%,rgba(3,9,22,.18) 75%,rgba(3,8,18,.76)),linear-gradient(90deg,rgba(8,11,22,.1),transparent 22%,transparent 84%,rgba(8,11,22,.13))}
.top,.bottom{position:absolute;z-index:1;left:0;right:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.top{top:0;padding:clamp(20px,3.6vh,40px) clamp(22px,3.65vw,76px)}.brand{display:flex;align-items:center;gap:10px;color:#f8e8c5;text-shadow:0 2px 12px #11172d}.brandmark{width:51px;height:51px;color:#e8cf9e}.wordmark{font:normal 30px/.98 Georgia,"Times New Roman",serif;letter-spacing:1.1px}.brand-cn{font-size:11px;letter-spacing:3px;margin-top:7px;color:#eee4d5}.tools{display:flex;gap:10px;pointer-events:auto}.icon-btn,.launch,.guide{border:1px solid rgba(244,232,211,.35);background:rgba(13,22,39,.55);box-shadow:inset 0 0 15px #d6e8ff05;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}button{transition:background .18s,border-color .18s,transform .18s}.icon-btn:hover,.launch:hover,.guide button:hover{background:rgba(65,63,76,.8);border-color:#e7d9b6}.icon-btn:active,.launch:active{transform:scale(.96)}.icon-btn{border-radius:50%;display:grid;place-items:center;width:42px;height:42px}.tools svg,.guide svg,.launch svg,.location-meta svg{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;width:19px;height:19px}.icon-btn[aria-pressed=true]{color:var(--champagne);border-color:#d4b77c}
.compass{position:absolute;left:50%;top:28px;transform:translateX(-50%);width:220px;height:42px;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 18% 82%,transparent);color:#f6eace;opacity:.91}.compass-strip{position:absolute;left:50%;top:0;height:34px}.tick{position:absolute;top:24px;width:1px;height:4px;background:#e8e3d48c}.tick.medium{height:7px}.tick.big{height:9px;background:#ead6ad}.tick b{position:absolute;bottom:15px;left:0;transform:translateX(-50%);font:11px Georgia,serif;letter-spacing:1.4px}.tick.north b{font-size:13px;color:#ffe6a9}.needle{position:absolute;width:5px;height:5px;background:#e9c98c;left:calc(50% - 2px);top:35px;transform:rotate(45deg)}
.bottom{bottom:0;padding:0 clamp(22px,3.65vw,76px) clamp(28px,5.1vh,60px);align-items:flex-end}.location{text-shadow:0 2px 16px #0009}.location-meta{display:flex;gap:7px;align-items:center;color:#f4e5c8;font-size:12px;letter-spacing:2.4px}.location-meta svg{width:14px;height:14px;color:var(--champagne)}h1{font:500 clamp(32px,3.4vw,54px)/1.28 var(--serif);letter-spacing:.12em;margin:9px 0 5px}.english{display:flex;gap:12px;align-items:center;font:italic 17px/1.4 Georgia,serif;letter-spacing:.6px;color:#eadcc1}.english i{width:24px;height:1px;background:#c8ac75}.guide{position:absolute;left:50%;transform:translateX(-50%);bottom:clamp(28px,5.1vh,60px);display:flex;align-items:center;gap:12px;height:45px;padding:0 7px 0 18px;border-radius:32px;color:#e6e4e3;font-size:13px;letter-spacing:.4px;white-space:nowrap;pointer-events:auto}.guide .hand{width:19px;height:19px;color:#e4d4b5}.guide-dot{margin:0 7px;color:#c6b492}.divider{width:1px;height:17px;background:#e3e6ed3d}.guide button{display:grid;place-items:center;background:none;border:0;width:34px;height:36px;border-radius:50%}.guide button svg{width:16px;height:16px}.launch{pointer-events:auto;display:flex;align-items:center;gap:10px;padding:0 22px;height:45px;border-radius:30px;color:#f3dfb4;border-color:#e0c4938c;background:rgba(38,34,35,.57);font-size:14px;letter-spacing:1px}.launch svg{width:20px;height:20px}.launch.flare{background:#716044bb}.launch:focus-visible{outline-offset:4px}#notice{position:absolute;bottom:110px;left:50%;transform:translateX(-50%);background:#111b2dcf;color:#f4e5c9;border-radius:20px;font-size:13px;padding:8px 16px;opacity:0;pointer-events:none;transition:opacity .22s}#notice.show{opacity:1}
@media(max-width:700px){.brandmark{width:38px;height:38px}.brand{gap:6px}.wordmark{font-size:23px}.brand-cn{font-size:10px;letter-spacing:1.7px;margin-top:4px}.tools{gap:7px}.icon-btn{width:37px;height:37px}.compass{top:22px;width:105px}.bottom{padding-bottom:calc(82px + env(safe-area-inset-bottom))}.guide{bottom:calc(20px + env(safe-area-inset-bottom));height:39px;font-size:12px}.wish{width:min(102vw,86vh);top:31%}.english{font-size:15px}.launch{height:41px;padding:0 15px}.location-meta{font-size:11px}.shade{background:linear-gradient(180deg,#060e2275,transparent 19%,transparent 60%,#03091835 75%,#030813d4)}#notice{bottom:165px}}
@media(max-width:390px){.compass{width:66px;left:53%}.top{padding-left:14px;padding-right:14px}.tools{gap:5px}.bottom{padding-left:18px;padding-right:18px}}
@media(max-height:520px) and (orientation:landscape){.top{padding-top:12px}.brandmark{width:36px;height:36px}.wordmark{font-size:23px}.compass{top:13px}.wish{top:35%;width:82vh}.bottom{padding-bottom:14px}.guide{bottom:14px}.location h1{font-size:27px;margin:4px 0}.english{font-size:13px}.location-meta{font-size:11px}.brand-cn{margin-top:3px}.launch,.guide{height:38px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

[hidden]{display:none!important}
.wish{opacity:0;transition:opacity .55s ease-out}.wish.lit{opacity:1;transition:opacity 1.2s ease-in}
@media(prefers-reduced-motion:reduce){.wish,.wish.lit{transition:none}}
#world{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
:is(#depart,#night-wish){position:absolute;z-index:2;top:min(73%,calc(100% - 102px));left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:11px;padding:0 31px 0 25px;height:49px;border:1px solid #eacc91c9;border-radius:30px;background:linear-gradient(130deg,#3a3244df,#14243cde);color:#ffedca;backdrop-filter:blur(12px);box-shadow:0 4px 28px #0b153b70,inset 0 0 12px #ffe6b012;font:500 17px var(--serif);letter-spacing:.19em;white-space:nowrap;transition:opacity .35s,background .2s,box-shadow .2s}
:is(#depart,#night-wish) svg{width:24px;height:24px;color:#f4d5a0}:is(#depart,#night-wish):hover{background:#333149ef;box-shadow:0 0 22px #eadbbd50}:is(#depart,#night-wish):disabled{cursor:wait}
.bottom,.compass,.brand,.shade,#wishLayer{transition:opacity .8s}.airborne .bottom,.airborne .compass,.airborne .brand,.airborne :is(#depart,#night-wish),.airborne #wishLayer,.airborne .shade{opacity:0;pointer-events:none}.airborne .viewer{cursor:default}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:700px){:is(#depart,#night-wish){top:min(69%,calc(100% - 188px));height:45px;padding:0 24px 0 19px}}
@media(max-height:480px){:is(#depart,#night-wish){top:68%;height:39px}}
.airborne.returning .shade{opacity:1}
#world{opacity:0;filter:brightness(1.10) saturate(1.12)}
@media(orientation:portrait){.landscape{background-image:url("assets/home-overlook-tall.webp");background-position:center center}}
.top{align-items:flex-start}.brand.dedication{position:relative;max-width:min(31vw,395px);isolation:isolate}.dedication img{display:block;width:100%;height:auto;filter:drop-shadow(0 1px 2px #090a1c) drop-shadow(0 0 5px #0a112d)}.dedication:before{content:"";position:absolute;z-index:-1;inset:-12px -15px;background:radial-gradient(ellipse at 40% 43%,#0b132c80,transparent 75%);pointer-events:none}
@media(max-width:700px){.brand.dedication{width:calc(100vw - 112px);max-width:375px}.compass{left:auto;right:21px;top:76px;transform:none;width:69px}.top{padding:16px}.tools{gap:6px}.dedication img{filter:drop-shadow(0 1px 2px #060a1c) drop-shadow(0 0 4px #060a1c)}}
@media(max-width:410px){.brand.dedication{width:calc(100vw - 91px)}.top{padding:12px}.tools .icon-btn{width:32px;height:32px}}
@media(max-height:730px) and (orientation:portrait){.wish{top:38%}}
@media(max-height:480px) and (orientation:landscape){.brand.dedication{max-width:29vw}}
#final-verse{position:absolute;z-index:3;inset:0;display:grid;place-items:center;opacity:0;pointer-events:none;background:radial-gradient(ellipse at center,rgba(7,13,36,.78),rgba(7,13,36,.27) 54%,transparent 82%)}
#final-verse img{display:block;width:min(75vw,900px,calc(90vh * 2.05));height:auto;filter:drop-shadow(0 2px 3px #080b20) drop-shadow(0 0 12px #e5bf8055)}
@media(orientation:portrait){#final-verse img{width:min(93vw,720px)}}
#final-verse{background:radial-gradient(ellipse at center,rgba(4,9,27,.9),rgba(5,10,29,.72) 57%,rgba(5,10,29,.15) 90%)}
#final-verse img{filter:drop-shadow(0 0 1px #fff1d3) drop-shadow(0 1px 2px #05081b) drop-shadow(0 0 8px #e9bd7c77)}
#final-verse img{filter:drop-shadow(0 1px 2px #05081b) drop-shadow(0 0 5px #e9bd7c44)}
@media (orientation:portrait) and (max-width:700px){
  body{position:relative;height:100dvh}
  .top{padding-top:calc(12px + env(safe-area-inset-top));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .compass{top:calc(68px + env(safe-area-inset-top))}
  :is(#depart,#night-wish){top:auto;bottom:158px;bottom:calc(clamp(136px,21dvh,220px) + env(safe-area-inset-bottom));transform:translateX(-50%)}
}

.viewer{background:#000}
.landscape{
  opacity:var(--scene-opacity,1);
}
.night-observation .landscape{
  filter:brightness(var(--scene-light,1)) saturate(var(--scene-color,1));
}
.skyward .landscape{
  mask-image:linear-gradient(to bottom,transparent,#000 var(--sky-feather,0%));
}
.shade{
  opacity:var(--shade-strength,1);
  background:linear-gradient(180deg,#050b1b8a,transparent 21%,transparent 72%,#040a18a0);
}
.brand,.location,.guide{opacity:var(--home-detail,1)}
.compass{top:calc(61px + env(safe-area-inset-top));opacity:calc(.91 * var(--home-detail,1))}
#wishLayer{opacity:var(--wish-ink,1)}
.wish{
  --wish-halo:#f0b5608c;
  transform:translate(calc(-50% + var(--wish-x,0px)),calc(-50% + var(--wish-y,0px))) rotate(var(--wish-angle,0deg));
  filter:drop-shadow(0 1px 1px #140b16ed) brightness(1.26) saturate(1.16) drop-shadow(0 0 3px var(--wish-halo));
}
.wish.rose{--wish-halo:#ff8cb4aa}
.wish.silver{--wish-halo:#98d8ffaa}
.wish.lilac{--wish-halo:#cd9cffaa}
.night-observation :is(.brand,.compass,.location,.guide,.shade,#wishLayer){transition:none}
.deep-observation .guide{pointer-events:none;visibility:hidden}
.night-control{
  position:absolute;left:50%;top:calc(16px + env(safe-area-inset-top));transform:translateX(-50%);
  display:flex;align-items:center;gap:9px;width:clamp(172px,21vw,268px);height:44px;padding:0 12px;
  border:1px solid #cfd9f046;border-radius:28px;background:#0a1428a8;
  box-shadow:0 3px 18px #0309167d,inset 0 0 12px #fcf0d20a;backdrop-filter:blur(10px);
  pointer-events:auto;transition:opacity .35s;
}
.night-control svg{width:18px;height:18px;flex:none;fill:none;stroke:#eaca8c;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.night-control svg:last-child{stroke:#cfe3ff}
#night-level{
  appearance:none;-webkit-appearance:none;width:100%;min-width:0;height:42px;margin:0;
  background:repeating-linear-gradient(90deg,#b6c2df70 0 1px,transparent 1px 10%) center 27px / calc(100% - 13px) 3px no-repeat;
  cursor:ew-resize;touch-action:none;
}
#night-level::-webkit-slider-runnable-track{
  height:3px;border-radius:4px;background:linear-gradient(90deg,#debd80,#8995b1 48%,#d5e6ff);
}
#night-level::-webkit-slider-thumb{
  appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-5.5px;border-radius:50%;
  border:1px solid #e7e9ee;background:#f5edda;box-shadow:0 0 10px #d4dbff6a;
}
#night-level::-moz-range-track{height:3px;border-radius:4px;background:linear-gradient(90deg,#debd80,#8995b1 48%,#d5e6ff)}
#night-level::-moz-range-thumb{width:12px;height:12px;border-radius:50%;border:1px solid #e7e9ee;background:#f5edda;box-shadow:0 0 10px #d4dbff6a}
#night-level:focus-visible{outline:1px solid #e3eafb;outline-offset:2px;border-radius:5px}
#night-wish{border-color:#b7cdecaa;background:linear-gradient(130deg,#222c4add,#101729e8);color:#edf4ff}
#night-wish svg{color:#d4e3fb}
#night-wish.flare{background:#343c60;box-shadow:0 0 28px #aba6ea63}
.airborne .night-control,.airborne .location{opacity:0;visibility:hidden;pointer-events:none}
#return-flight{
  position:absolute;z-index:4;right:calc(clamp(12px,2.1vw,30px) + env(safe-area-inset-right));
  bottom:calc(clamp(12px,2vh,24px) + env(safe-area-inset-bottom));min-height:39px;
  display:flex;align-items:center;gap:6px;padding:0 11px;border:1px solid #b9c9e082;border-radius:24px;
  color:#e5ecff;background:#0a142c9e;backdrop-filter:blur(9px);font-size:12px;letter-spacing:.10em;
}
#return-flight:hover{background:#233754e6;border-color:#dce9ff}
#return-flight svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#return-sky{position:absolute;z-index:5;inset:0;width:100%;height:100%;pointer-events:none}
.recalling{touch-action:none}
.recalling :is(#depart,.night-control,.bottom){visibility:hidden;pointer-events:none}
.recalling .viewer{pointer-events:none}
@media(max-width:700px){
  .night-control{top:calc(7px + env(safe-area-inset-top));width:min(47vw,208px);gap:6px;padding:0 9px}
  .night-control svg{width:15px;height:15px}
  .brand.dedication{margin-top:43px}
}
@media(orientation:landscape) and (max-height:480px){
  .night-control{top:4px}
  .compass{top:49px}
}
