:root{color-scheme:dark;font-family:Inter,"Microsoft YaHei","PingFang SC",sans-serif;color:#fff4d8;background:#17394d;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid #e9d9b33b;background:#102d3b9c;transition:background .2s;border-radius:7px}button:hover{background:#42606ec9}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #ffe0a0;outline-offset:4px}button[aria-pressed=true]{border-color:#ead199;background:#a786443d}[hidden]{display:none!important}#world,.veil{position:fixed;inset:0;width:100%;height:100%}#world{display:block;touch-action:none}.veil{pointer-events:none;background:linear-gradient(0deg,#05233490,transparent 24%,transparent 76%,#09253588)}header{position:fixed;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:25px 32px;gap:15px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit;letter-spacing:2px;font-size:17px}.brandmark{font-size:38px;color:#e7cc92}.brand small{display:block;font-size:12px;letter-spacing:5px;margin-top:5px;color:#eed9b4}.top-actions{display:flex;gap:9px}.top-actions button{height:43px;padding:0 15px;border-radius:25px;font-size:19px}.top-actions span{font-size:14px;margin-left:5px}.scene-heading{position:fixed;left:34px;top:126px;pointer-events:none;text-shadow:0 2px 20px #102c40}.eyebrow{font-size:12px;letter-spacing:3px;color:#f1d8a7}h1{font-family:"Songti SC",SimSun,serif;font-weight:400;font-size:39px;letter-spacing:9px;margin:14px 0}.scene-heading p{font-family:serif;font-size:16px;letter-spacing:2px;color:#fff2d6}.places{position:fixed;right:32px;bottom:130px;width:185px;display:flex;flex-direction:column}.nav-caption{font-size:12px;color:#f1d8a7;letter-spacing:2px;margin-bottom:14px}.places button{padding:14px 12px;display:flex;gap:15px;align-items:center;border-radius:0;border-width:1px 0 0;background:#14374b8c}.places b{font-size:14px;font-weight:400;letter-spacing:2px}.places button span{font-size:12px;color:#dfc899}.places i{font-style:normal;margin-left:auto;color:#dfc899}.places button[aria-current=true]{background:#8f784c70}#explore-hud{position:fixed;left:50%;bottom:75px;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:8px 10px 8px 18px;border:1px solid #ead8b04a;border-radius:30px;background:#103145d9;backdrop-filter:blur(12px);white-space:nowrap;font-size:14px}#explore-hud button{padding:10px 15px;border-radius:22px;font-size:14px;background:#e6d7ab16}#tour{color:#ffdf9b}#return{font-size:21px!important;padding:5px 12px!important}.touch-pad{position:fixed;left:28px;bottom:105px;text-align:center;touch-action:none}.touch-pad button{width:42px;height:42px;margin:3px;font-size:21px;touch-action:none;user-select:none}.altitude button{width:67px;height:32px;font-size:14px}footer{position:fixed;bottom:0;left:0;right:0;padding:22px 32px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:13px;color:#f1e9d5}footer button{background:none;border:0;border-bottom:1px solid #e3d8bd7a;border-radius:0;padding:4px 0;font-size:13px}.saint-labels{position:fixed;inset:0;pointer-events:none}.saint-labels span{position:absolute;transform:translateX(-50%);padding:6px 12px;border-top:1px solid #ead299aa;background:linear-gradient(0deg,#14334eba,transparent);font-size:14px;letter-spacing:2px;white-space:nowrap;text-shadow:0 1px 6px #05202f}dialog{max-width:620px;width:calc(100% - 32px);max-height:85dvh;overflow:auto;padding:36px;background:#173746;color:#f5eddb;border:1px solid #b19b6f;border-radius:10px;box-shadow:0 20px 100px #0008}dialog::backdrop{background:#052233b8;backdrop-filter:blur(8px)}dialog h2{font-family:serif;font-weight:400;font-size:25px;line-height:1.6}dialog p{font-size:16px;line-height:1.85;color:#e0e5df}dialog small{font-size:13px;line-height:1.8;color:#e7cf9e}.close{position:absolute;right:12px;top:8px;background:none;border:0;font-size:27px}.source-entry{padding-top:18px;margin-top:22px;border-top:1px solid #c5c8b830}.source-entry b{color:#f0d299;font-size:16px}a{color:#f3d8a2}.source-entry a{font-size:14px}.local-audio{display:block;font-size:14px;border-top:1px solid #ffffff26;margin-top:16px;padding-top:14px}.local-audio input{display:block;width:100%;font:inherit;font-size:13px;margin-top:10px}.audio-note{display:block;font-size:12px;color:#d0cfbe;margin-top:10px;line-height:1.5}#loading,#error{position:fixed;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;text-align:center;padding:30px;background:#163449}.loading-inner{padding:35px;max-width:550px;width:100%;border:1px solid #d9c99c44;background:#123347d9;border-radius:12px}#loading{background:#f7f1e4}#loading h2,#error h2{font:400 28px/1.7 serif;letter-spacing:4px}progress{width:100%;height:5px;accent-color:#e7c58c}#load-percent{margin:10px 0 2px;font-size:20px;letter-spacing:2px;color:#ffe3a7}#load-status{font-size:14px;color:#e8ddc5}.loading-encouragement{margin:17px 0 0;color:#f2dfb7;font-family:serif;font-size:15px;letter-spacing:1px}#error{flex-direction:column}#error p{max-width:520px;line-height:1.8}#error button{padding:12px 25px}.reduced .scene-heading p{display:none}
@media(max-width:760px){header{padding:16px 17px;gap:10px}.brand{font-size:13px;letter-spacing:1px;gap:6px}.brandmark{font-size:29px}.brand small{font-size:12px;letter-spacing:2px}.top-actions{gap:5px}.top-actions button{height:38px;padding:0 10px}.top-actions span{display:none}.scene-heading{top:84px;left:20px}.scene-heading .eyebrow,.scene-heading p{display:none}h1{font-size:27px;letter-spacing:6px}.places{right:15px;bottom:163px;width:135px}.nav-caption{display:none}.places button{padding:12px 8px;gap:8px}.places b{font-size:14px;letter-spacing:0}.places button span{font-size:12px}.touch-pad{left:14px;bottom:150px}.touch-pad button{width:37px;height:39px;margin:2px}.altitude button{width:59px;height:31px;font-size:14px}#explore-hud{bottom:77px;font-size:13px;padding:6px 7px 6px 12px;gap:5px}#explore-hud button{font-size:13px;padding:9px 12px}footer{padding:16px 18px;gap:12px;font-size:12px}footer #hint{max-width:190px;line-height:1.6}footer button{font-size:12px;white-space:nowrap}.saint-labels span{font-size:12px;letter-spacing:0;padding:5px 7px}dialog{padding:28px}.scene-heading{opacity:.88}}
@media(max-height:560px){.scene-heading{display:none}.places{bottom:96px}.places button{padding:8px}.touch-pad{bottom:91px}.touch-pad button{height:32px}#explore-hud{bottom:50px}footer{padding-top:10px;padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.nianfo-shortcut{color:#ffe0a1;text-decoration:none;border-bottom:1px solid #e3d8bd7a;padding:4px 0;white-space:nowrap}
.nianfo-shortcut:hover{color:#fff0ce}
@media(max-width:760px){.nianfo-shortcut{font-size:11px}footer #hint{display:none}}

/* Music controls stay small enough to leave the 3D view unobstructed. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#chant{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}#chant span{display:inline;margin:0}#chant-icon{width:16px;font-size:15px;text-align:center}#chant[aria-busy=true]{opacity:.8}.local-audio input{font-size:14px;min-height:44px;max-width:100%}.audio-note{font-size:13px}
@media(max-width:760px){#chant{padding:0 11px;min-height:44px}#chant-label{display:inline;font-size:14px}.top-actions #fullscreen{height:44px;min-width:44px}}
@media(max-width:360px){header{padding:12px;gap:8px}.brandmark{display:none}#chant{padding:0 9px}}

/* Keep scripture access available while the 3D scene loads. */
header{z-index:20}
#scene-photo{font-size:16px;min-width:43px}#scene-photo:disabled{opacity:.55;cursor:wait}
#sutra-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:60px;border-color:#ddc28b99}
#sutra-toggle span{display:inline;margin:0;white-space:nowrap}
body.sutra-reading .places,body.sutra-reading .touch-pad,body.sutra-reading #explore-hud,body.sutra-reading .scene-heading,body.sutra-reading .saint-labels,body.sutra-reading>footer{visibility:hidden;pointer-events:none}
@media(max-width:420px){header{padding:12px;gap:8px}.brandmark{display:none}.brand{font-size:12px;letter-spacing:1px}.brand small{font-size:10px;letter-spacing:2px}.top-actions{gap:4px}.top-actions button{padding:0 9px}#chant{padding:0 8px;gap:5px}#chant-label{font-size:12px}#sutra-toggle{min-width:50px}#sutra-toggle span{font-size:13px}}
/* Lotus and sky chapter: reduce visual obstruction and echo the jade/gilt architecture. */
header{padding:22px 30px}.brand{font-family:Georgia,'Songti SC',serif;font-size:15px;letter-spacing:3px}.brandmark{font-size:30px}.brand small{font-size:10px}.scene-heading{top:106px;left:32px}h1{font-size:34px;letter-spacing:11px}.scene-heading p{font-size:14px;letter-spacing:3px}.veil{background:linear-gradient(0deg,#0e393b9c,transparent 21%,transparent 76%,#204e535c)}
.places{width:158px;bottom:131px;right:28px}.places button{padding:10px 9px;gap:10px;background:#163b3f4d;backdrop-filter:blur(9px)}.places b{font-size:13px;letter-spacing:1px}.places button[aria-current=true]{background:#ab8c4a66}.nav-caption{font-size:10px;letter-spacing:4px}.saint-labels span{font-size:12px;background:linear-gradient(0deg,#173b3d99,transparent);border-color:#d8b76b88}.top-actions button{background:#173f4266;backdrop-filter:blur(8px)}#explore-hud{background:#193e40b3;border-color:#d8c28e66}#places-toggle{display:none}footer{font-size:11px}footer button{font-size:11px}.touch-pad button{background:#19454777}
@media(max-width:760px){header{padding:12px}.scene-heading{top:76px;left:18px}.scene-heading h1{font-size:25px;letter-spacing:5px}.places{display:none;bottom:192px;right:14px;width:142px;z-index:8}.places button{padding:11px 9px;background:#153a40e8}.places-open .places{display:flex}#places-toggle{display:block;position:fixed;right:17px;bottom:139px;padding:12px 16px;background:#173f42cf;font-size:13px;z-index:9}.touch-pad{bottom:133px;left:14px}#explore-hud{bottom:65px;font-size:12px}footer{padding:12px 16px;font-size:10px}footer #hint{max-width:168px}.saint-labels span{font-size:10px;padding:4px 6px}body.sutra-reading #places-toggle{visibility:hidden;pointer-events:none}}
@media(max-height:560px){.places{bottom:91px}.places button{padding:6px}.touch-pad{bottom:83px}#explore-hud{bottom:44px}#places-toggle{bottom:99px}.places-open .places{bottom:147px}}

/* Keep eight destinations and walk controls usable at compact sizes. */
.places{max-height:58vh;overflow-y:auto}.places button{flex-shrink:0}#walk-mode{color:#ffe0a0}#explore-hud{gap:5px;padding:7px 8px}#explore-hud button{padding:9px 10px}#location{max-width:100px;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){#explore-hud{gap:3px;width:calc(100% - 24px);justify-content:center}#explore-hud button{font-size:11px;padding:9px 7px}#location{max-width:72px;font-size:11px}.places{max-height:46vh}body.sutra-reading #walk-mode{pointer-events:none}}

#enter-hall{position:fixed;bottom:70px;left:50%;transform:translateX(-50%);background:#d3b66deb!important;color:#183f3e;font-weight:600;white-space:nowrap}@media(max-width:760px){#enter-hall{bottom:61px}}.loading-wait-note{max-width:440px;margin:12px auto 0;color:#e6dbc5;font-size:14px;line-height:1.75}

/* Four-song playlist; only the selected audio file is fetched. */
#music-menu-toggle{min-width:44px;min-height:44px;font-size:19px}
.music-panel{position:fixed;right:24px;top:76px;z-index:21;width:min(310px,calc(100vw - 24px));max-height:min(430px,75dvh);overflow:auto;padding:17px;border:1px solid #e7d39b85;border-radius:14px;background:#14363de8;box-shadow:0 16px 45px #061a2aaa;backdrop-filter:blur(14px)}
.music-panel p{margin:0 0 9px}.music-heading{color:#f7ddaa;font-size:13px;letter-spacing:2px}#music-current{font-size:14px;line-height:1.5}.music-controls{display:flex;gap:8px;margin:13px 0}.music-controls button{flex:1;min-height:42px;padding:6px 9px;border-color:#dec68588}.music-tracks{display:grid;gap:5px}.music-tracks button{text-align:left;padding:9px 11px;min-height:40px}.music-tracks button[aria-current=true]{background:#9b7d4380;border-color:#f1d590}.music-panel small{display:block;margin-top:12px;color:#dfd2b3;line-height:1.5}
@media(max-width:760px){#music-menu-toggle{padding:0 9px}.music-panel{top:64px;right:12px;width:min(300px,calc(100vw - 24px));max-height:64dvh}#chant-label{max-width:48px;overflow:hidden;text-overflow:ellipsis}.top-actions #music-menu-toggle{height:44px}}
@media(max-width:360px){#chant-label{max-width:38px}.top-actions #music-menu-toggle{min-width:39px}}

/* Warm ivory / champagne interface. These styles never touch 3D materials. */
:root{color-scheme:light;--ivory:#fbf7ee;--paper:#f4ecdc;--ink:#4c3b2a;--muted:#7d6b54;--gold:#af8749;--line:#b8955760;--vermilion:#a54c3d;color:var(--ink);background:var(--ivory)}
button{color:var(--ink);border-color:var(--line);background:#fff8e9df;box-shadow:0 3px 12px #5d401a0a}button:hover{background:#fffaf0}button[aria-pressed=true]{color:#854338;background:#e8d5b493;border-color:#ab8656}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.joystick-pad:focus-visible{outline:2px solid #9c6844;outline-offset:4px}
.veil{background:linear-gradient(0deg,#f7eddca8,transparent 20%,transparent 76%,#f7eddc94)}
header{padding:19px 26px;pointer-events:none}.brand,.top-actions{pointer-events:auto}.brand{color:#584125;text-shadow:0 1px 5px #fff9}.brand-logo{filter:drop-shadow(0 1px 3px #fff9)}.top-actions{align-items:center}.top-actions button{background:#faf3e3e6;border-color:#ae8a506b;backdrop-filter:blur(14px);color:#51402c}.top-actions button:hover{background:#fff9ee}.top-actions #chant{font-size:13px}.scene-language select{min-height:43px;width:64px;padding:0 7px;border:1px solid var(--line);border-radius:24px;background:#faf3e3e6;font:inherit;font-size:12px;color:var(--ink);cursor:pointer}
.scene-heading{color:#563e24;text-shadow:0 1px 12px #fff9}.scene-heading p,.scene-heading .eyebrow{color:#725335}.eyebrow,.nav-caption{color:#8b6336}h1{letter-spacing:7px}.places{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff7e5b8;backdrop-filter:blur(14px);padding:12px 6px 5px}.nav-caption{margin:0 9px 10px;letter-spacing:3px}.places button{background:transparent;border-color:#b8915333;color:var(--ink);box-shadow:none}.places button:hover{background:#e8d5b452}.places button[aria-current=true]{background:#e8d5b483}.places button span,.places i{color:#997241}
#explore-hud{background:#faf3e4e8;border-color:#b792576d;color:var(--ink);box-shadow:0 8px 30px #46311814}#explore-hud button{background:#fff8eb85;border-color:#ad8a514f}#tour,#walk-mode{color:#865331}#location{color:#745b3b}#enter-hall{background:#ead6adef!important;color:#60482e}#places-toggle{background:#fbf4e5ee;color:var(--ink);border-color:var(--line)}footer{color:#685135}footer button,.nianfo-shortcut{color:#5f4830;border-color:#93714d66}a{color:#936431}.nianfo-shortcut:hover{color:#a34d3d}
dialog{background:linear-gradient(150deg,#fffaf1,#f3e9d7);color:var(--ink);border-color:#b18a4b6b;box-shadow:0 20px 100px #44301d45;border-radius:18px}dialog::backdrop{background:#66523d60;backdrop-filter:blur(7px)}dialog p{color:#64553f}dialog small,.audio-note{color:#80674a}.source-entry{border-color:#b29b772f}.source-entry b{color:#805b30}.close{color:#8e6d44}.local-audio{border-color:var(--line)}.music-panel{background:#fcf5e8f2;border-color:#b8955777;box-shadow:0 12px 42px #4931182b;color:var(--ink)}.music-heading{color:#8d6233}.music-panel small{color:#7e6b51}.music-tracks button[aria-current=true]{background:#e3ca9775;border-color:#ba9153}.music-controls button{border-color:var(--line)}
#community-dialog input,#community-dialog textarea{color:var(--ink);background:#fffaf3;border:1px solid var(--line)}#community-dialog .community-list p{background:#ecdfc741;color:#604c32}#community-dialog label{color:#725c40}
.touch-pad{left:28px;bottom:105px;width:144px;z-index:10;touch-action:none;user-select:none;-webkit-user-select:none;isolation:isolate}.joystick-pad{position:relative;margin:0 auto;width:124px;height:124px;border-radius:50%;border:1px solid #b493597c;background:radial-gradient(circle,#fffaf0ab 0 25%,#e9d8b466 26% 28%,#faf2e596 29% 64%,#b7945947 65% 66%,#fff8ec9c 67%);box-shadow:inset 0 0 20px #fff9,0 6px 26px #52371615;backdrop-filter:blur(6px);touch-action:none;cursor:grab;transition:opacity .6s,transform .6s}.joystick-pad:active{cursor:grabbing}.joystick-guide{position:absolute;inset:21px;border:1px dashed #ab865a60;border-radius:50%;pointer-events:none}.joystick-thumb{position:absolute;left:calc(50% - 23px);top:calc(50% - 23px);width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 34% 26%,#fffef8,#e6d0a3);border:1px solid #b38d4f;box-shadow:0 3px 9px #68451d2b,inset 0 0 0 5px #fffaf07a;pointer-events:none;will-change:transform}.joystick-thumb:after{content:'✦';position:absolute;inset:0;display:grid;place-items:center;color:#a2763c;font-size:20px}.joystick-caption{display:block;margin:8px 0 5px;font-size:10px;letter-spacing:2px;color:#755b3e;transition:opacity .6s}.touch-pad .altitude{display:flex;justify-content:center;gap:7px;transition:opacity .6s}.touch-pad .altitude button{width:63px;min-height:36px;margin:0;background:#fcf5e8db;color:#6a5032;font-size:13px;border-radius:22px;touch-action:none}.joystick-wake{position:absolute;left:50%;top:52px;transform:translateX(-50%);width:130px;color:#765934;font-size:21px;pointer-events:none;opacity:0;transition:opacity .6s}.joystick-wake span{display:block;font-size:10px;letter-spacing:1px;margin-top:4px}.touch-pad.is-idle .joystick-pad{opacity:.08;transform:scale(.8)}.touch-pad.is-idle .joystick-thumb,.touch-pad.is-idle .joystick-caption,.touch-pad.is-idle .altitude{opacity:0}.touch-pad.is-idle .joystick-wake{opacity:.65}.touch-pad.is-idle{cursor:pointer}
#loading{overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#fffdf8 0,#f5ecdb 56%,#eee0c5 100%)}#loading:before,#loading:after{content:'';position:absolute;width:min(90vw,840px);aspect-ratio:1;border:1px solid #b8914830;border-radius:50%;pointer-events:none}#loading:before{box-shadow:0 0 0 18px #b8914807,0 0 0 19px #b8914818,0 0 0 65px #b8914805,0 0 0 66px #b8914812;transform:translateY(-2%)}#loading:after{width:145vw;height:35vw;aspect-ratio:auto;bottom:-17vw;left:-25vw;border-color:#b6944d21;box-shadow:0 -24px 0 24px #fdf7ec4a,0 -48px 0 48px #b6944d06;animation:cloud-drift 22s ease-in-out infinite alternate}.loading-inner{z-index:1;position:relative;max-width:560px;padding:42px 42px 35px;border:1px solid #b48e494b;background:#fffaf15c;border-radius:180px 180px 24px 24px;box-shadow:0 18px 80px #aa87500c;backdrop-filter:blur(9px)}#loading h2{font-size:28px;letter-spacing:4px;color:#665033;margin:22px 0 28px}#loading .eyebrow{font-size:11px;letter-spacing:5px;color:#a47a3c}#load-status{color:#7a6549;min-height:2.8em;line-height:1.6;margin:12px 0}#load-percent{color:#925943;font-family:Georgia,serif;font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:1px;margin-top:17px}.loading-encouragement{color:#8e744f;font-size:14px;line-height:1.8}.loading-wait-note{font-size:12px;color:#97846b;line-height:1.85;max-width:405px;margin-top:15px}#loading progress{appearance:none;display:block;height:3px;border:0;border-radius:3px;overflow:hidden;background:#d7c3a33d;accent-color:#b28b4b}#loading progress::-webkit-progress-bar{background:#d7c3a33d}#loading progress::-webkit-progress-value{background:linear-gradient(90deg,#c6a56d,#9c7540);transition:width .2s}#loading progress::-moz-progress-bar{background:#ad8549}
.loading-lotus{position:relative;width:130px;height:104px;margin:5px auto 30px;filter:drop-shadow(0 4px 12px #cda45336);animation:lotus-breathe 6s ease-in-out infinite}.loading-lotus i{position:absolute;bottom:15px;left:calc(50% - 22px);width:44px;height:72px;border:1px solid #b68f4e;border-radius:80% 8% 70% 25%;transform-origin:50% 100%;background:linear-gradient(145deg,#fffdf68c,#e8d3a44a)}.loading-lotus i:nth-child(1){transform:rotate(-62deg);height:62px}.loading-lotus i:nth-child(2){transform:rotate(-31deg)}.loading-lotus i:nth-child(3){transform:rotate(0);border-radius:70% 15% 70% 15%;height:82px}.loading-lotus i:nth-child(4){transform:rotate(31deg)}.loading-lotus i:nth-child(5){transform:rotate(62deg);height:62px}.loading-lotus span{position:absolute;bottom:1px;left:9px;width:112px;height:17px;border-bottom:1px solid #c09a5766;border-radius:50%}#error{background:#f7efe0;color:var(--ink)}#error h2{color:#8b563e}#error button{background:#b18a50;color:#fffaf2;padding:12px 28px}
@keyframes lotus-breathe{50%{opacity:.75;transform:translateY(-3px)}}@keyframes cloud-drift{to{transform:translateX(10vw)}}
html[lang=en] .scene-heading h1{font-family:Georgia,serif;font-size:32px;letter-spacing:2px}html[lang=en] .places{width:200px}html[lang=en] .places b{font-size:12px;letter-spacing:0}html[lang=en] #location{max-width:130px}html[lang=en] #explore-hud button{font-size:12px}html[lang=en] #loading h2{letter-spacing:1px;font-size:27px}html[lang=en] .brand{letter-spacing:1px}
@media(max-width:760px){header{padding:12px;gap:7px}.brand{font-size:12px;letter-spacing:1px;gap:5px}.brand-logo{width:29px;height:29px}.top-actions{gap:4px}.scene-language select{width:53px;min-height:40px;padding:0 4px}.top-actions button{padding:0 8px;min-width:38px}#sutra-toggle{min-width:46px}#chant{padding:0 8px}.scene-heading{top:79px}.scene-heading h1{font-size:24px}.touch-pad{left:14px;bottom:133px;width:130px}.joystick-pad{width:112px;height:112px}.joystick-wake{top:45px}.touch-pad .altitude button{width:56px;min-height:36px}.places{background:#fff8eced;right:14px;padding:7px 4px}.places button{background:transparent}.places-open .places{display:flex}html[lang=en] .places{width:195px}html[lang=en] #explore-hud{flex-wrap:wrap;max-width:calc(100% - 24px);border-radius:18px}html[lang=en] #explore-hud button{font-size:11px}html[lang=en] #location{max-width:100px;font-size:10px}.loading-inner{padding:34px 24px 27px;border-radius:130px 130px 22px 22px}#loading{padding:18px}#loading h2{font-size:24px}.loading-lotus{margin-bottom:22px}.loading-wait-note{font-size:11px}.music-panel{background:#fcf5e8f5}}

/* Keep the world introduction compact until a visitor asks to read it. */
.scene-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;max-width:min(360px,calc(100vw - 34px));padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:#fff8e9d6;backdrop-filter:blur(10px);pointer-events:auto;text-shadow:none}
.scene-heading h1{font-size:19px;letter-spacing:2px;line-height:1.3;margin:0;white-space:nowrap}
.scene-heading .eyebrow,.scene-heading p{display:none}
.scene-heading.is-expanded .eyebrow,.scene-heading.is-expanded p{display:block;grid-column:1/-1;margin:0;line-height:1.6}
.scene-heading.is-expanded h1{font-size:27px}
#scene-intro-toggle{padding:7px 10px;border-radius:16px;font-size:12px;white-space:nowrap;background:#fff7e8e8;color:var(--ink);border-color:var(--line)}
@media(max-width:760px){.scene-heading{top:77px;left:12px;max-width:calc(100vw - 24px);padding:7px 9px}.scene-heading h1{font-size:17px;letter-spacing:1px}.scene-heading.is-expanded h1{font-size:22px}.scene-heading.is-expanded p{font-size:12px;letter-spacing:1px}#scene-intro-toggle{padding:6px 8px;font-size:11px}}
@media(max-width:460px){header{flex-wrap:wrap;align-items:center}.top-actions{margin-left:auto}.brand{font-size:11px}.brand-logo{width:25px;height:25px}.top-actions #fullscreen{display:none}.top-actions #chant-label{display:none}.top-actions #scene-photo{min-width:35px;padding:0 6px}.scene-language select{width:50px}.scene-heading{top:72px}html[lang=en] .brand{font-size:10px}html[lang=en] .scene-heading h1{font-size:26px}.joystick-caption{font-size:9px}}
@media(max-height:560px){.touch-pad{bottom:83px}.joystick-pad{width:88px;height:88px}.joystick-thumb{width:36px;height:36px;left:calc(50% - 18px);top:calc(50% - 18px)}.joystick-caption{margin:4px 0}.joystick-wake{top:30px}.touch-pad .altitude button{min-height:30px;height:30px}.loading-inner{max-width:600px;padding:18px 35px;border-radius:22px}.loading-lotus{width:90px;height:64px;margin:0 auto 12px;transform:scale(.68);transform-origin:center bottom}#loading h2{font-size:22px;margin:10px 0 12px}.loading-encouragement{margin-top:9px}.loading-wait-note{margin-top:6px}#load-status{min-height:0;margin:8px}#load-percent{margin:8px}.scene-heading{display:none}}
@media(prefers-reduced-motion:reduce){.loading-lotus,#loading:after{animation:none}.joystick-pad,.joystick-caption,.joystick-wake,.touch-pad .altitude{transition:none}#loading progress::-webkit-progress-value{transition:none}}
#community-dialog h3{color:#896536}#community-dialog .community-list{background:#f0e4ce7a;border-color:var(--line)}#community-dialog #blessing-form button{background:#ad8350;color:#fffaf0}#community-dialog #blessing-form small,#community-dialog #blessing-status{color:#7f684c}
.sutra-reader{--sutra-paper:#fbf6ea;--sutra-ink:#51432f;--sutra-muted:#8b785d;--sutra-line:#b4915a42;--sutra-gold:#9c7741;--sutra-chip:#eee1c9;--sutra-accent:#925343;box-shadow:0 15px 70px #5d43232b}.sutra-reader[data-theme=night]{--sutra-paper:#302b24;--sutra-ink:#f0e7d5;--sutra-muted:#bcae94;--sutra-line:#d5c79a35;--sutra-gold:#d5bf8b;--sutra-chip:#43392c;--sutra-accent:#e3ce9c}
@media(max-width:460px){.scene-heading{display:none}.top-actions{gap:3px}.top-actions #sutra-toggle{min-width:40px}.top-actions #music-menu-toggle{min-width:38px}.top-actions #chant{min-width:35px}.top-actions #scene-photo{min-width:32px}.scene-language select{width:48px}.brand{font-size:10px}.brand-logo{width:22px;height:22px}}

/* The destination list scrolls independently of the 3D canvas. */
.places{max-height:calc(100dvh - 235px);overflow:hidden;display:flex;flex-direction:column;min-height:0}
.places-scroll{display:flex;flex-direction:column;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#a77d45 #ede0c7;scroll-padding-block:5px}
.places-scroll::-webkit-scrollbar{width:7px}.places-scroll::-webkit-scrollbar-track{background:#ede0c7;border-radius:9px}.places-scroll::-webkit-scrollbar-thumb{background:#a77d45;border-radius:9px}
.places-scroll button{width:100%;min-height:42px;flex-shrink:0}
.places-scroll-guide,.places-wheel{display:none}
@media(max-width:760px){
  .places{display:none;right:12px;bottom:190px;width:190px;max-height:calc(100dvh - 270px);padding:9px 8px 5px;box-shadow:0 10px 30px #49351e30}
  .places-open .places{display:flex}
  html[lang=en] .places{width:195px}
  .places .nav-caption{display:block;flex:none;margin:0 3px 3px;font-size:10px;letter-spacing:2px}
  .places-scroll-guide{display:block;flex:none;margin:0 3px 7px;color:#836744;font-size:10px;line-height:1.35}
  .places-scroll{flex:1 1 auto;border-block:1px solid #b8915340}
  .places-scroll button{min-height:44px;padding:9px 5px;gap:7px;text-align:left}
  .places-wheel{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:5px;flex:none;padding-top:5px}
  .places-wheel button{display:grid;place-items:center;width:40px;min-height:38px;padding:0;border:1px solid var(--line);border-radius:8px;background:#f2e6d2;color:#74512f;font-size:19px}
  .places-wheel button:disabled{opacity:.35;cursor:default}
  .places-wheel span{text-align:center;color:#735738;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
}
@media(max-width:760px) and (max-height:560px){.places-open .places{bottom:147px;max-height:calc(100dvh - 210px)}}

/* Readable navigation over detailed three-dimensional scenery. */
.scene-heading{max-width:min(390px,calc(100vw - 32px));padding:11px 16px;background:linear-gradient(90deg,#fff9eced,#fff9ecb8 78%,#fff9ec00);border-radius:8px;text-shadow:none}
.scene-heading .eyebrow{font-size:13px;color:#674a31}.scene-heading p{color:#593d29;font-size:15px;text-shadow:none}
.places{width:202px;background:#fff8eae8}.places .nav-caption{font-size:12px;color:#65482d}.places b{font-size:15px;letter-spacing:0;white-space:nowrap}.places button span,.places i{color:#79532b}
.places-scroll button{white-space:nowrap}.places-scroll button i{margin-left:auto}
#explore-hud{font-size:15px;background:#fff9edf0}#explore-hud button{font-size:14px}
footer{font-size:13px;color:#5a402c;text-shadow:none}footer button{font-size:13px;color:#5a402c}
@media(max-width:760px){.scene-heading{left:10px;top:70px;padding:8px 10px}.scene-heading h1{font-size:25px}.places{width:min(218px,calc(100vw - 22px))}.places .nav-caption{font-size:12px}.places-scroll button{min-height:46px}.places b{font-size:14px}#explore-hud{font-size:13px}#explore-hud button{font-size:12px}footer{font-size:12px}footer button{font-size:12px}}

/* Keep the introduction discoverable without covering the mobile scene. */
#scene-intro{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;width:max-content;max-width:min(360px,calc(100vw - 24px));padding:8px 11px;background:#fff8e9e8}
#scene-intro h1,html[lang=en] #scene-intro h1{font-size:19px;letter-spacing:2px;line-height:1.3;margin:0;white-space:nowrap}
#scene-intro .eyebrow,#scene-intro p{display:none}
#scene-intro.is-expanded{width:auto;max-width:min(390px,calc(100vw - 24px));padding:11px 15px}
#scene-intro.is-expanded .eyebrow,#scene-intro.is-expanded p{display:block;grid-column:1/-1}
#scene-intro.is-expanded h1,html[lang=en] #scene-intro.is-expanded h1{font-size:26px;white-space:normal}
html[data-loading-theme=dark] #scene-intro{background:#292333e8;border-color:#aa855d;color:#f8ecd5}
html[data-loading-theme=dark] #scene-intro-toggle{background:#3e3041;color:#f8ecd5;border-color:#aa855d}
@media(max-width:760px){#scene-intro{display:grid;top:70px;left:10px;padding:7px 9px;max-width:calc(100vw - 20px)}#scene-intro h1,html[lang=en] #scene-intro h1{font-size:17px;letter-spacing:1px}#scene-intro.is-expanded h1,html[lang=en] #scene-intro.is-expanded h1{font-size:21px}#scene-intro.is-expanded p{font-size:12px;letter-spacing:1px}}
@media(max-width:460px){#scene-intro{display:grid;top:72px;left:10px}#scene-intro-toggle{font-size:11px;padding:5px 8px}}
@media(max-height:560px){#scene-intro{display:grid;top:59px;left:10px}}

/* Three-language selector: show the whole language name. */
#scene-language{width:100px;max-width:110px;min-width:88px;font-size:12px;letter-spacing:0}
@media(max-width:760px){#scene-language{width:88px;max-width:94px;min-width:82px;padding-left:6px;padding-right:3px;font-size:11px}}
.language-notice{position:fixed;left:12px;right:12px;bottom:12px;z-index:150;padding:12px;background:var(--paper,#fff7e4);color:var(--ink,#543b30);border:1px solid var(--line,#c0a171)}

/* One collapsible place list for desktop and mobile; closed even before JS. */
#places-nav[hidden]{display:none!important}
body.places-open #places-nav:not([hidden]){display:flex}
#places-toggle{display:inline-flex;position:fixed;right:28px;bottom:76px;align-items:center;justify-content:center;gap:10px;max-width:calc(100vw - 28px);min-height:44px;padding:10px 15px;font-size:13px;line-height:1.35;letter-spacing:.6px;border-radius:22px;z-index:9;box-shadow:0 5px 18px #49351e1c}
#places-toggle[aria-expanded=false]::after{content:'⌃';font-size:17px;line-height:1}
#places-nav{bottom:131px;max-height:calc(100dvh - 235px)}
body.sutra-reading #places-toggle{visibility:hidden;pointer-events:none}
@media(max-width:760px){#places-toggle{right:14px;bottom:139px;padding:10px 13px;font-size:12px}#places-nav{bottom:190px;max-height:calc(100dvh - 270px)}}
@media(max-height:560px){#places-toggle{bottom:99px}#places-nav{bottom:150px;max-height:calc(100dvh - 220px)}}
