:root{color-scheme:dark;--ink:#17282e;--teal:#24585d;--lacquer:#982b23;--stone:#ece4d4;--gold:#d9b568;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;color:var(--stone);background:var(--ink)}*{box-sizing:border-box}body{margin:0;overflow:hidden}button{font:inherit;cursor:pointer;border:0;color:inherit;background:#263e46;border-radius:5px;padding:11px 17px;min-height:44px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button:hover{filter:brightness(1.17)}button.primary{background:var(--lacquer);font-weight:600}.outline{background:#17282ed9;border:1px solid #ece4d44a}button[aria-selected=true]{background:var(--teal)}[hidden]{display:none!important}#world{display:block;width:100%;height:100%;position:fixed;inset:0;touch-action:none}.masthead{position:fixed;z-index:3;top:max(26px,env(safe-area-inset-top));left:34px;right:34px;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;text-shadow:0 2px 12px #17282e}.masthead button{pointer-events:auto}.masthead h1{font-family:Songti SC,STSong,SimSun,serif;letter-spacing:.22em;font-size:32px;font-weight:500;margin:0}.masthead p{font-size:12px;margin:6px 0;letter-spacing:.08em}.location{position:fixed;z-index:3;bottom:30px;left:34px;font-size:14px;background:#17282ee3;padding:11px 16px;border-left:2px solid var(--gold)}.welcome{position:fixed;z-index:4;left:7vw;bottom:12vh;max-width:510px;padding:30px 36px;background:#17282eed;border-top:2px solid var(--gold);box-shadow:0 12px 60px #0005}.welcome .opening{font-size:13px;color:#c9d9d7}.welcome h2{font-family:Songti SC,STSong,SimSun,serif;font-size:46px;font-weight:500;letter-spacing:.08em;margin:14px 0 18px}.welcome p{font-size:15px;line-height:1.9;max-width:30em}.welcome button{margin-top:14px;margin-right:8px}.welcome small{display:block;color:#a6bebf;margin-top:20px;line-height:1.6;font-size:11px}.hint{position:fixed;z-index:3;left:50%;bottom:32px;transform:translate(-50%);font-size:12px;background:#17282ecf;padding:10px 16px;border-radius:5px;white-space:nowrap}.controls{position:fixed;z-index:3;right:30px;bottom:26px;display:flex;gap:8px}.controls button{background:#17282ee8;border:1px solid #ece4d433;font-size:13px}#reticle{position:fixed;pointer-events:none;left:50%;top:50%;width:4px;height:4px;background:#fff9;border:1px solid #17282e;border-radius:50%;z-index:2;display:none}body.walking #reticle{display:block}.discovery{position:fixed;z-index:3;top:62%;left:50%;transform:translate(-50%);background:#17282ee8;border:1px solid var(--gold);max-width:90vw}.toast{position:fixed;z-index:12;top:110px;left:50%;transform:translate(-50%);background:var(--ink);border-left:2px solid var(--gold);padding:12px 20px;max-width:90vw;font-size:13px}dialog{background:var(--ink);border:1px solid #d9b56866;color:var(--stone);width:min(700px,92vw);max-height:85dvh;padding:26px;box-shadow:0 20px 90px #0009;border-radius:8px;overscroll-behavior:contain}dialog::backdrop{background:#06151b8c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-heading h2{font:500 26px Songti SC,STSong,SimSun,serif;margin:0}.close{font-size:28px;padding:0 12px;min-width:44px;background:transparent}.tabs{display:flex;gap:6px;margin:24px 0 20px;border-bottom:1px solid #ffffff1f;padding-bottom:10px}.tabs button{font-size:13px;padding:8px 12px}#book-body{font-size:14px;line-height:1.9}#book-body h3{font-weight:500;color:var(--gold);font-size:16px;margin:24px 0 8px}#book-body p{max-width:42em}#book-body a,#detail-body a,#photo-caption a{color:#9dd3d5;text-underline-offset:3px}.route-item{display:flex;align-items:center;gap:18px;padding:14px 0;border-bottom:1px solid #ffffff1f}.route-item:last-child{border-bottom:0}.route-item div{flex:1}.route-item b{display:block;font-weight:500;font-size:16px}.route-item small{color:#abc2c5;font-size:12px}.route-item button{flex:none;white-space:nowrap}.subtle{color:#b8ccce;font-size:13px;line-height:1.7}.note-button{display:block;width:100%;text-align:left;background:transparent;border-bottom:1px solid #ffffff1f;border-radius:0;padding:15px 0}.note-button small{display:block;color:#b8ccce;margin-top:5px}.note-button:last-child{border-bottom:0}#detail-body{line-height:1.9;font-size:15px;margin-top:22px}#detail-body small{display:block;color:#b8ccce}#photo{width:min(780px,94vw)}#photo-options{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}#photo-options button{font-size:12px}figure{margin:0}#photo-image{display:block;width:100%;max-height:48dvh;object-fit:contain;background:#0f1a20}figcaption{font-size:11px;color:#b8ccce;line-height:1.7;margin:10px 0}figcaption a{overflow-wrap:anywhere}.photo-actions{display:flex;gap:10px;flex-wrap:wrap}.setting{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0}.setting select{font:inherit;background:#263e46;color:var(--stone);padding:8px;border:1px solid #ffffff40;border-radius:4px}.setting input{accent-color:var(--gold)}.fatal{position:fixed;z-index:20;inset:0;display:flex;align-items:center;justify-content:center;background:var(--ink);padding:40px;line-height:1.9;text-align:center}.touch-controls{position:fixed;inset:0;pointer-events:none;z-index:2}#joystick{position:absolute;bottom:90px;left:28px;width:112px;height:112px;border:1px solid #ece4d47d;border-radius:50%;background:#17282e44;pointer-events:auto;touch-action:none}#joystick span{position:absolute;left:35px;top:35px;width:40px;height:40px;border-radius:50%;background:#ece4d477;box-shadow:0 1px 8px #0003}.touch-caption{position:absolute;bottom:70px;left:26px;font-size:10px;text-shadow:0 2px 4px #000}#touch-fast{position:absolute;bottom:95px;right:30px;border-radius:50%;width:62px;height:62px;background:#17282ec9;border:1px solid #ece4d444;pointer-events:auto;font-size:12px;padding:0}#touch-fast[aria-pressed=true]{background:var(--lacquer)}@media(max-width:800px){.masthead{left:20px;right:20px;top:max(20px,env(safe-area-inset-top))}.masthead h1{font-size:26px}.location{left:18px;bottom:max(20px,env(safe-area-inset-bottom));font-size:12px;padding:10px 12px}.controls{right:16px;bottom:max(18px,env(safe-area-inset-bottom));gap:5px}.controls button{padding:9px 12px;font-size:11px}.hint{bottom:80px;font-size:10px}.welcome{left:6vw;right:6vw;bottom:12vh;padding:23px;max-width:none}.welcome h2{font-size:36px}.welcome p{font-size:13px}.welcome small{font-size:10px}dialog{padding:20px}.tabs{gap:3px}.tabs button{padding:8px;font-size:12px}.photo-actions button{font-size:13px}body.touch .hint{display:none}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.menu-open{display:none;position:fixed;z-index:5;right:max(14px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));width:48px;min-height:44px;padding:0;font-size:12px;background:#17282edd;border:1px solid #ece4d466;border-radius:14px}.mobile-menu{width:min(470px,92vw)}.mobile-menu-actions{display:grid;gap:8px}.mobile-menu-actions button{text-align:left}.mobile-menu-actions .primary{text-align:center;margin-top:6px}.mobile-menu #menu-location{margin:16px 0}.palace-plan img{width:min(100%,460px);height:auto;display:block;margin:0 auto}.directory-search{display:block;margin:22px 0 10px}.directory-search input{display:block;width:100%;font:inherit;margin-top:7px;padding:12px;background:#263e46;border:1px solid #c9d9d75a;border-radius:5px;color:var(--stone)}.scene-curtain{position:fixed;inset:0;z-index:15;display:grid;place-items:center;background:#17282e;pointer-events:auto;opacity:1;transition:opacity .85s ease .05s,visibility 0s linear .9s}.scene-curtain>div{text-align:center;transform:translateY(0);transition:transform .85s cubic-bezier(.2,.7,.25,1),opacity .6s ease}.scene-curtain p{font:500 23px Songti SC,STSong,SimSun,serif;letter-spacing:.1em}.scene-curtain small{font-size:12px;color:#b8ccce}.curtain-gate{display:block;margin:0 auto 28px;width:52px;height:54px;border:1px solid #d9b568;border-bottom:0;border-radius:26px 26px 0 0;position:relative}.curtain-gate:after{content:"";position:absolute;inset:8px 12px 0;border:1px solid #d9b56866;border-bottom:0;border-radius:15px 15px 0 0}body.scene-ready .scene-curtain{opacity:0;visibility:hidden;pointer-events:none}body.scene-ready .scene-curtain>div{transform:translateY(-14px);opacity:0}body.scene-ready .welcome{animation:palace-arrive .75s ease both}@keyframes palace-arrive{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@media(orientation:landscape){body.touch .masthead,body.touch .location,body.touch .hint,body.touch .controls,body.touch .touch-caption,body.touch #touch-fast,body.touch .discovery,body.touch #reticle,body.touch .welcome{display:none!important}body.touch .menu-open{display:block}body.touch #joystick{bottom:max(18px,env(safe-area-inset-bottom));left:max(24px,env(safe-area-inset-left));width:104px;height:104px;background:#17282e23;border-color:#ece4d45e}body.touch #joystick span{left:31px;top:31px;background:#ece4d461}body.touch dialog{max-height:89dvh;margin:auto;padding:18px 22px}body.touch dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}body.touch .toast{top:max(14px,env(safe-area-inset-top));font-size:11px;max-width:calc(100vw - 150px)}body.touch .tabs{margin:15px 0;gap:4px}body.touch .tabs button{padding:8px 10px}}@media(max-width:560px){.tabs{flex-wrap:wrap}.tabs button{flex:1;white-space:nowrap}.welcome h2{font-size:32px}}@media(prefers-reduced-motion:reduce){.scene-curtain,.scene-curtain>div{transition:none}body.scene-ready .welcome{animation:none}}.guide-caption{position:fixed;z-index:13;left:50%;bottom:max(76px,calc(env(safe-area-inset-bottom) + 70px));transform:translate(-50%);width:min(560px,calc(100vw - 44px));padding:12px 16px;border-radius:9px;background:#24383ee8;color:#f2f5ee;border:1px solid #cbd9d22e;box-shadow:0 4px 18px #0d20222b;pointer-events:none;font-family:PingFang SC,Microsoft YaHei,sans-serif;line-height:1.65;text-align:left}.guide-caption[hidden]{display:none!important}.guide-copy strong{display:block;font-size:12px;font-weight:600;color:#e2d6ac}.guide-copy p{font-size:13px;line-height:1.65;margin:5px 0 0;overflow-wrap:anywhere}.guide-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:5px;pointer-events:auto}.guide-actions button{border:0;background:transparent;color:#d6e1d8;font:inherit;font-size:11px;min-height:28px;padding:3px 4px;white-space:nowrap;border-radius:3px}.guide-actions button:focus-visible{outline:2px solid #e2d6ac;outline-offset:2px}.guide-settings{padding-top:12px;margin-top:16px;border-top:1px solid currentColor;color:inherit}.guide-settings h3{font:600 14px PingFang SC,Microsoft YaHei,sans-serif!important;letter-spacing:0;margin:0 0 12px!important;color:inherit!important}.guide-settings label{display:flex!important;align-items:center;justify-content:space-between;gap:18px;margin:12px 0;font:13px PingFang SC,Microsoft YaHei,sans-serif}.guide-settings input[type=checkbox]{width:18px;height:18px;accent-color:#6e9992;flex:none}.guide-settings .guide-setting-note{font:11px/1.65 PingFang SC,Microsoft YaHei,sans-serif!important;margin:10px 0 0!important;color:inherit!important;opacity:.72}.guide-manual{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0}.guide-manual button{font:12px PingFang SC,Microsoft YaHei,sans-serif;min-height:36px;white-space:nowrap;padding:8px 12px}.guide-manual small{flex-basis:100%;font:11px/1.5 PingFang SC,Microsoft YaHei,sans-serif;opacity:.7}.guide-caption,.guide-settings,.guide-manual{box-sizing:border-box}@media(orientation:landscape)and (any-pointer:coarse){.guide-caption{bottom:max(66px,calc(env(safe-area-inset-bottom) + 62px));width:min(520px,calc(100vw - 280px));padding:8px 12px;border-radius:7px}.guide-copy p{font-size:12px;line-height:1.6}.guide-copy strong{font-size:11px}.guide-actions{margin-top:2px;gap:10px}.guide-actions button{font-size:10px;min-height:26px}}@media(max-width:420px){.guide-caption{padding:10px 12px}.guide-copy p{font-size:12px}}@media(prefers-reduced-motion:reduce){.guide-caption{transition:none}}.photo-tool{box-sizing:border-box;width:min(1320px,96vw);max-width:96vw;max-height:94dvh;border:1px solid rgba(204,196,171,.28);border-radius:18px;padding:22px;background:#17232b;color:#f2f0e8;overflow:auto;box-shadow:0 22px 90px #0009;font-family:inherit}.photo-tool::backdrop{background:#09121edb}.photo-tool *{box-sizing:border-box}.photo-tool [hidden]{display:none!important}.photo-tool-head{display:flex;gap:20px;align-items:flex-start;justify-content:space-between}.photo-tool h2{font-size:clamp(23px,3vw,35px);margin:0;font-weight:500;letter-spacing:.06em}.photo-tool p{line-height:1.65}.photo-tool-head p{margin:6px 0 18px;color:#b7c8d2;font-size:13px}.photo-tool button,.photo-tool select,.photo-tool input[type=number]{font:inherit;color:inherit;border:1px solid #b7c8d24a;background:#243640;border-radius:8px;padding:8px 12px}.photo-tool button{cursor:pointer}.photo-tool button:hover{background:#37515b}.photo-tool button:focus-visible,.photo-tool select:focus-visible,.photo-tool input:focus-visible{outline:2px solid #e5be70;outline-offset:3px}.photo-tool button[aria-pressed=true]{background:#dbc88c;color:#18242b;border-color:#dbc88c}.photo-tool-close{flex:none;white-space:nowrap}.photo-tool-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.photo-tool-bar label{display:flex;gap:10px;align-items:center;font-size:13px}.photo-tool select{max-width:min(360px,64vw)}.photo-tool-modes{display:flex;gap:6px}.photo-tool-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.photo-tool figure{min-width:0;margin:0;background:#0c1820;border:1px solid #93aabb26;border-radius:10px;overflow:hidden}.photo-tool figcaption{padding:9px 12px;font-size:12px;color:#c9d5df;letter-spacing:.08em}.photo-tool-original img{display:block;width:100%;height:auto}.photo-tool-frame{position:relative;background:#071017}.photo-tool-frame img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.photo-tool-combined .photo-tool-original{display:none}.photo-tool-combined .photo-tool-pair{display:block}.photo-tool-combined .photo-tool-render{max-width:980px;margin:0 auto}.photo-tool-credit{font-size:12px;color:#b8c9d3;margin:14px 0 7px}.photo-tool a{color:#ecd18d}.photo-tool-boundary{font-size:12px;color:#9fb3c0;margin:7px 0 14px}.photo-tool-calibration{border-top:1px solid #b7c8d233;padding-top:12px}.photo-tool summary{cursor:pointer;font-size:14px}.photo-tool summary span{font-size:11px;color:#a9bdcb;margin-left:10px}.photo-tool-inputs{display:grid;grid-template-columns:repeat(7,minmax(80px,1fr));gap:10px;margin:16px 0}.photo-tool-inputs label{display:grid;gap:6px;font-size:12px;color:#b8c9d3}.photo-tool-inputs input{width:100%;min-width:0;padding:7px!important}.photo-tool-actions{display:flex;gap:8px;flex-wrap:wrap}.photo-tool-actions button{font-size:12px}.photo-tool-status{font-size:12px;color:#c6d2da;margin-bottom:0;min-height:1.7em}.photo-tool input[type=range]{width:120px;accent-color:#dbc88c}@media(max-width:760px){.photo-tool{padding:15px;border-radius:12px}.photo-tool-pair{gap:7px}.photo-tool figcaption{padding:6px 8px;font-size:10px}.photo-tool-inputs{grid-template-columns:repeat(3,minmax(70px,1fr))}.photo-tool-head p{margin-bottom:10px}.photo-tool-bar{gap:9px}.photo-tool summary span{display:block;margin:5px 0}.photo-tool-head{gap:10px}}@media(max-height:500px)and (orientation:landscape){.photo-tool{padding:12px 16px;max-height:96dvh}.photo-tool h2{font-size:22px}.photo-tool-head p{margin:4px 0 8px}.photo-tool-bar{margin-bottom:8px}.photo-tool-pair{max-width:760px;margin:auto}.photo-tool-credit,.photo-tool-boundary{margin:6px 0}.photo-tool-combined .photo-tool-render{max-width:650px}}
