*{box-sizing:border-box} :root{--ink:#254b43;--muted:#73867b;--cream:#fffcf3;--teal:#397b70;--line:#dce4d5;--gold:#b99a59}body{margin:0;background:#edf4e9;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC","PingFang TC",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit;border:0;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #c89e4e;outline-offset:3px}button:disabled{cursor:default;opacity:.5}[hidden]{display:none!important}header{height:calc(88px + env(safe-area-inset-top));padding:calc(14px + env(safe-area-inset-top)) 30px 10px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fbfcf7f5;border-bottom:1px solid #dce7da;position:relative;z-index:10}.brand{background:none;display:flex;align-items:center;gap:12px;text-align:left;font-size:17px;font-weight:700;letter-spacing:1px;padding:0}.brand img{width:47px;height:47px;border-radius:14px;box-shadow:0 3px 10px #1f655726}.brand small{display:block;font-size:8px;letter-spacing:2px;color:#839287;margin-top:6px;font-weight:500}.header-right{display:flex;align-items:center;gap:16px}.save-status{background:none;display:flex;align-items:center;gap:6px;font-size:11px;color:#849184;padding:10px 2px}.save-status i{width:6px;height:6px;background:#92a899;border-radius:50%}.save-status.error{color:#a55f4c}.save-status.error i{background:#a55f4c}.header-button{background:#eef2e7;padding:12px 16px;border-radius:22px;font-size:12px}.header-button span{color:#ac965c;margin-left:5px}.help-button{width:34px;height:34px;border-radius:50%;border:1px solid #d8e2d4;background:transparent;color:#748b7b}
#app{container-type:inline-size}#experience{height:calc(100svh - 88px - env(safe-area-inset-top));min-height:510px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 30%,#f4ffe6,#d7ecd9 57%,#b8dccb);isolation:isolate;transition:background .6s}#map-area,#scene,#hotspots{position:absolute;inset:0}#map-area{z-index:1;touch-action:none;user-select:none;-webkit-user-select:none}#scene canvas{display:block;cursor:grab;touch-action:none}#scene canvas:active{cursor:grabbing}#hotspots{pointer-events:none;z-index:2}.sky-light{position:absolute;width:600px;height:600px;left:-240px;top:-300px;background:radial-gradient(circle,#fff2c958,transparent 68%);pointer-events:none}.intro{position:absolute;top:28px;left:32px;z-index:3;pointer-events:none}.eyebrow{font-size:8px;letter-spacing:2.2px;color:#789484}h1{font-size:28px;font-weight:650;letter-spacing:2px;line-height:1.45;margin:10px 0 5px}.intro p{font-size:12px;color:#74917d;line-height:1.6;margin:0}#app:not([data-view="all"]) .intro{padding:16px 22px;border:1px solid #ffffffb3;border-radius:20px;background:#fffff0d9;backdrop-filter:blur(12px);box-shadow:0 8px 32px #24514008}#app:not([data-view="all"]) h1{font-size:23px;margin-top:7px}.theme-control{position:absolute;right:30px;top:30px;display:flex;gap:3px;z-index:4;padding:4px;border-radius:30px;background:#f9fff3b3;border:1px solid #ffffffb3;backdrop-filter:blur(12px)}.theme-control button{background:none;font-size:12px;border-radius:22px;padding:9px 11px;color:#76917f;min-height:38px}.theme-control button.active{background:#fffff5;box-shadow:0 2px 8px #32684115;color:#3e6956}.map-tools{position:absolute;right:27px;bottom:147px;z-index:4;display:grid;gap:7px}.map-tools button{width:42px;height:42px;border-radius:13px;background:#fffff0de;box-shadow:0 5px 15px #3c6c4420;font-size:24px}.gesture-guide{position:absolute;bottom:115px;right:30px;color:#789080;font-size:10px;letter-spacing:.6px;z-index:4;pointer-events:none}.guide-button{position:absolute;left:30px;bottom:113px;border-radius:24px;background:#fafff1e0;padding:12px 18px;font-size:12px;z-index:4;box-shadow:0 4px 16px #3a654216}.land-nav{position:absolute;bottom:calc(20px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:5px;width:720px;max-width:calc(100% - 50px);background:#fffff4e8;border:1px solid #ffffffd9;backdrop-filter:blur(16px);border-radius:22px;z-index:5;padding:6px;box-shadow:0 12px 36px #355a4117}.land{display:flex;gap:12px;align-items:center;flex:1;background:transparent;border-radius:16px;padding:14px 18px;text-align:left;white-space:nowrap}.land.active{background:#e4edde}.land:hover{background:#eef3e8}.land small{display:block;font-size:7px;letter-spacing:1.1px;color:#94a28e;margin-bottom:6px}.land b{font-size:13px;letter-spacing:.7px;font-weight:650}.land i{font-style:normal;margin-left:auto;color:#a6b199}.land-symbol{font-size:30px;color:#b39b63}.frog-symbol{color:#88aa8b}.poetry-symbol{color:#ae95c1}.hotspot{position:absolute;pointer-events:auto;transform:translate(-50%,-100%);background:none;border:0;padding:0;display:flex;align-items:center;flex-direction:column;touch-action:none}.hotspot .bubble{display:flex;align-items:center;gap:7px;white-space:nowrap;border-radius:25px;padding:10px 14px;background:#fffff3ec;border:1px solid #fff;color:#3f6751;box-shadow:0 5px 18px #35564719;font-size:12px;font-weight:600;letter-spacing:.7px}.bubble i{font-style:normal;color:#b29854}.hotspot .stem{height:18px;width:1px;background:#fff}.hotspot .point{width:8px;height:8px;border:2px solid #bba35f;background:#fffbe4;border-radius:50%;box-shadow:0 0 0 4px #fff6d34a}.night #experience{background:radial-gradient(ellipse at 50% 32%,#497d8b,#2c536b 60%,#233b58)}.night .intro{color:#fff2d6}.night .intro p,.night .eyebrow,.night .gesture-guide{color:#d0dfd2}.night#app:not([data-view="all"]) .intro{background:#244a60d4;border-color:#a9bcb94a}.night .theme-control{background:#1a4257b5;border-color:#a3c2c531}.night .theme-control button{color:#c4d7d0}.night .theme-control button.active{color:#605c48;background:#faedcb}.night .hotspot .bubble{background:#234c60eb;color:#fff5d8;border-color:#99b2ae70}.night .hotspot i{color:#f5d383}.night .land-nav{background:#173e50eb;border-color:#9bbaae4a}.night .land{color:#eef0d8}.night .land.active,.night .land:hover{background:#466568}.night .land small{color:#c8d7c7}.night .map-tools button,.night .guide-button{background:#244e61e6;color:#eee9cc}.night .sparkles{position:absolute;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(#ecf0cf 1px,transparent 1px),radial-gradient(#ddd7a5 1px,transparent 1px);background-size:113px 139px,173px 197px;background-position:13px 42px,61px 15px;opacity:.4}
#loading{position:absolute;inset:0;z-index:8;background:#e2efdd;display:grid;place-content:center;text-align:center;color:#658976}#loading span{font-size:45px;color:#b59b58;animation:breathe 1.5s infinite}#loading p{font-size:13px;letter-spacing:2px}@keyframes breathe{50%{opacity:.35;transform:scale(.85)}}
#veil{position:fixed;inset:0;background:#183d4057;backdrop-filter:blur(5px);z-index:19}#panel{position:fixed;right:25px;top:calc(25px + env(safe-area-inset-top));bottom:calc(25px + env(safe-area-inset-bottom));width:620px;max-width:calc(100% - 40px);background:#fffdf5;border:1px solid #fff;border-radius:28px;z-index:20;overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 100px #153e3c40;scrollbar-color:#cbd5bc transparent}#close-panel{position:sticky;float:right;right:15px;top:15px;margin:15px 15px -55px 0;z-index:5;width:40px;height:40px;border-radius:50%;font-size:28px;background:#fffdf0ed;color:#6f8276;box-shadow:0 2px 10px #3a594010}.panel-hero{padding:32px 30px 24px;background:linear-gradient(130deg,#d9e8c7,#f7edcf)}.panel-hero.poetry{background:linear-gradient(130deg,#e1d8ec,#f5e1dc)}.panel-hero small{font-size:9px;letter-spacing:1.8px;color:#839276}.panel-hero h2{font-size:26px;margin:12px 48px 8px 0;letter-spacing:1.5px;font-weight:650}.panel-hero p{font-size:12px;line-height:1.7;color:#7f9175;margin:0}.panel-body{padding:24px 30px 32px}.kicker{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:#8e9c83}.modes{display:flex;gap:7px;margin:0 0 22px;flex-wrap:wrap}.modes button{background:#edf1e2;padding:10px 14px;border-radius:22px;color:#7b8e6e;font-size:12px}.modes button.active{background:#547f68;color:#fff7dc}.primary,.secondary,.text-button{border-radius:13px;padding:13px 18px;font-size:13px;min-height:44px}.primary{background:#4c7b66;color:#fff9e9}.secondary{background:#eaf0e1;color:#5d7958}.text-button{background:none;color:#829275;padding:10px 7px}.actions{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.actions.end{justify-content:space-between;align-items:center}.full{width:100%}.small-note{font-size:11px;line-height:1.8;color:#8c997e;margin:14px 0}.rule{height:1px;background:#e2e8d9;margin:22px 0}.ride-card{display:flex;align-items:center;gap:15px;background:#f1f3e5;border:1px solid #e2e8d7;border-radius:17px;padding:17px;text-align:left;width:100%;margin:10px 0}.ride-card .symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#e1e9d5;color:#819c6a;font-size:25px;flex:none}.ride-card.poetry .symbol{background:#e9deed;color:#ad91b9}.ride-card strong{display:block;font-size:15px}.ride-card small{display:block;font-size:11px;color:#8b9b7e;line-height:1.7;margin-top:5px}.ride-card .arrow{margin-left:auto;color:#9da98c}.chapter-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#8b9b7c;margin:4px 0 15px}.chapter-row select{max-width:70%;border:1px solid #dce3d1;border-radius:10px;background:#fafbf1;padding:10px;color:#64805e}.reading{font-family:Georgia,"Times New Roman",serif;font-size:27px;line-height:1.7;color:#355a44;margin:22px 0}.reading .word{display:inline;background:none;padding:0 2px;font:inherit;border-bottom:1px dashed #bdcbae;border-radius:4px}.reading .word:hover{background:#e9f0d9}.reading.poem{font-size:25px;line-height:1.8;white-space:pre-line}.source{font-size:10px;line-height:1.8;color:#8c9980}.author{color:#8f9c83;font-size:12px;margin:0 0 16px}.progress-track{height:5px;background:#e3e9d8;border-radius:10px;overflow:hidden;margin:16px 0}.progress-track i{display:block;background:#89ad77;height:100%;transition:width .2s}.learning-tip{padding:15px 17px;border-left:3px solid #b4c59b;background:#f0f4e5;border-radius:0 12px 12px 0;font-size:14px;line-height:1.7;color:#6d855f}.question{font-size:22px;line-height:1.5;margin:17px 0;color:#3e5e47;font-weight:550}.context{padding:15px 18px;border-radius:13px;background:#eff3e3;color:#658159;font-family:Georgia,serif;white-space:pre-line;line-height:1.8;font-size:20px}.answers{display:grid;gap:10px;margin:18px 0}.answers button{display:flex;gap:12px;align-items:flex-start;background:#fafbf2;border:1px solid #dfe5d2;border-radius:14px;padding:16px;text-align:left;font-size:17px;line-height:1.5}.answers button>span:first-child{color:#99a389;font-size:12px;background:#eaf0df;border-radius:50%;width:24px;height:24px;text-align:center;line-height:24px;flex:none}.answers button.correct{background:#e0edd2;border-color:#9bbd7b}.answers button.wrong{background:#f4e6d7;border-color:#cfad83}.answers button.selected{background:#e5ecdf;border-color:#7f9d73}.feedback{font-size:15px;line-height:1.7;padding:15px 17px;border-radius:13px;background:#eef3e2;color:#658058}.feedback.wrong{background:#f7ebdd;color:#967250}.feedback:empty{display:none}.quiz-top{display:flex;justify-content:space-between;color:#8b9a7e;font-size:12px}.result-score{text-align:center;margin:22px 0}.result-score strong{display:block;font-family:Georgia,serif;font-size:62px;color:#6b925d;font-weight:400}.result-score p{font-size:14px;color:#8b9c7c}.review-card{border-bottom:1px solid #e1e6d7;padding:16px 0;font-size:14px;line-height:1.7}.review-card .answer-line{font-size:13px;color:#8a987c}.status-tag{font-size:10px;padding:5px 9px;border-radius:15px;background:#e3ecd9;color:#7b9563;display:inline-block;margin-bottom:6px}.status-tag.review{background:#f4e4ce;color:#a07b4d}.metric-row{display:flex;gap:10px;margin:16px 0}.metric{flex:1;border-radius:15px;background:#f0f3e5;padding:16px;text-align:center}.metric strong{font-size:26px;color:#63845a;display:block}.metric span{display:block;font-size:11px;color:#8c9a7e;margin-top:6px}.stamps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.stamp{border:1px dashed #cdd8bf;border-radius:17px;padding:14px 8px;text-align:center;color:#a3af95;background:#f6f7ed}.stamp.done{background:#e7efd8;border-style:solid;color:#77945b}.stamp b{font-size:25px;display:block}.stamp span{font-size:10px;display:block;margin-top:8px}.cycle-board{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:20px 0}.cycle-slot{border:2px dashed #c8d6b6;border-radius:16px;background:#eff4e2;min-height:112px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;font-size:12px;text-align:center;padding:10px}.cycle-slot small{color:#9aab85}.cycle-slot b{font-size:14px;font-weight:500}.cycle-slot.filled{background:#e4eed3;border-style:solid}.cycle-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.cycle-card{padding:17px;background:#fff9e4;border:1px solid #e5dbbc;border-radius:15px;text-align:center;font-size:17px}.cycle-icon{height:55px;margin-bottom:10px;display:grid;place-content:center}.cycle-icon svg{width:95px;height:50px}.rhythm-stage{height:135px;background:radial-gradient(ellipse,#f8e7d8,#e7ddeb);border-radius:18px;display:flex;justify-content:center;align-items:center;gap:18px;margin:15px 0;color:#ad8fbb}.rhythm-stage span{font-size:28px;animation:note 1.8s ease-in-out infinite}.rhythm-stage span:nth-child(2){animation-delay:.4s}.rhythm-stage span:nth-child(3){animation-delay:.8s}@keyframes note{50%{transform:translateY(-9px);color:#bb9c53}}textarea{width:100%;min-height:130px;border:1px solid #d8dfca;background:#fafbf1;border-radius:15px;padding:16px;color:#476b4b;font-size:20px;line-height:1.7;resize:vertical}input[type=text]{width:100%;border:1px solid #d6dfc7;border-radius:12px;padding:13px;background:#fafbf0;color:#466d4a;font-size:17px}.field{display:block;font-size:12px;color:#8b9a7c;margin:16px 0 8px}.setting{padding:18px 0;border-bottom:1px solid #e2e7d6}.setting strong{font-size:15px}.setting p{font-size:12px;line-height:1.8;color:#8d9b80;margin-bottom:0}.setting a{color:#648567}.pill-row{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.pill-row button{padding:10px 14px;background:#eef2e2;border-radius:18px;font-size:12px}.pill-row button.active{background:#607e5e;color:#fff9e4}.tiny{font-size:10px;line-height:1.8;color:#95a087}audio{width:100%;height:42px;margin:12px 0}#notice{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:90%;width:max-content;background:#264d42ed;border:1px solid #ffffff3d;border-radius:15px;padding:15px 22px;color:#fff8df;font-size:13px;line-height:1.6;box-shadow:0 8px 30px #20483d30;z-index:30;display:none}
.phone-preview{background:#d7dfd5}.phone-preview #app{width:390px;max-width:100%;height:844px;margin:20px auto;position:relative;overflow:hidden;border-radius:30px;box-shadow:0 25px 70px #24433828}.phone-preview #experience{height:756px}.phone-preview #panel,.phone-preview #veil{position:absolute}.phone-preview #panel{top:12px;bottom:12px;right:10px;max-width:calc(100% - 20px)}
@container(max-width:650px){header{padding-left:17px;padding-right:17px;gap:8px}.brand{font-size:14px;gap:9px;letter-spacing:.5px}.brand img{width:40px;height:40px;border-radius:12px}.brand small{font-size:6px;letter-spacing:1.1px}.header-right{gap:8px}.save-status{font-size:9px}.header-button{padding:11px 12px;font-size:10px}.header-button span{display:none}.help-button{display:none}.intro{left:20px;top:21px;max-width:calc(100% - 90px)}h1{font-size:24px}.eyebrow{font-size:6px;letter-spacing:1.5px}.intro p{font-size:10px;max-width:240px}#app:not([data-view="all"]) .intro{padding:13px 16px}#app:not([data-view="all"]) h1{font-size:20px}.theme-control{right:13px;top:21px;flex-direction:column;gap:1px;border-radius:22px}.theme-control button{padding:7px;min-height:34px;font-size:12px}.theme-control button:first-child{font-size:9px}.theme-control span{display:none}.map-tools{right:13px;bottom:165px;gap:7px}.map-tools button{width:38px;height:38px}.gesture-guide{left:20px;bottom:calc(105px + env(safe-area-inset-bottom));right:auto;font-size:8px}.guide-button{left:18px;bottom:calc(130px + env(safe-area-inset-bottom));padding:11px 14px;font-size:10px}.land-nav{max-width:calc(100% - 24px);bottom:calc(18px + env(safe-area-inset-bottom));gap:2px;border-radius:18px;padding:5px}.land{padding:10px 4px;gap:4px;border-radius:13px;flex-direction:column;text-align:center}.land-symbol{font-size:22px;line-height:1}.land small{display:none}.land b{font-size:10px;letter-spacing:0}.land i{display:none}.hotspot .bubble{font-size:10px;padding:10px 11px;gap:5px}.hotspot .stem{height:15px}#panel{right:10px;max-width:calc(100% - 20px);top:calc(12px + env(safe-area-inset-top));bottom:calc(12px + env(safe-area-inset-bottom));border-radius:23px}.panel-hero{padding:27px 22px 20px}.panel-hero h2{font-size:23px}.panel-body{padding:20px 22px 28px}.reading{font-size:25px}.reading.poem{font-size:22px}.question{font-size:20px}.answers button{font-size:16px;padding:14px}.cycle-board{grid-template-columns:repeat(2,1fr)}.cycle-slot{min-height:75px}.modes button{padding:10px 12px;font-size:11px}.primary,.secondary{font-size:12px;padding:12px 15px}.stamps{gap:7px}.metric{padding:13px 9px}.metric span{font-size:10px}}
@media(max-height:520px) and (orientation:landscape){header{height:66px;padding-top:14px}#experience{height:calc(100svh - 66px);min-height:300px}.intro{top:14px}.intro h1{font-size:19px!important}.intro p,.eyebrow{display:none}.land-nav{bottom:10px;width:600px}.land{padding:8px 12px}.theme-control{top:12px}.guide-button{bottom:84px}.gesture-guide{display:none}.map-tools{bottom:84px;display:flex}.hotspot .stem{height:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.source-photos{margin:18px 0;border:1px solid #e0e7d3;border-radius:12px;padding:13px;font-size:11px;color:#829574}.source-photos summary{cursor:pointer;min-height:24px}.source-photos img{display:block;width:100%;height:auto;border-radius:8px;margin-top:12px}.learning-tip small{font-size:10px}.cycle-board{grid-template-columns:repeat(5,1fr)}@container(max-width:650px){.cycle-board{grid-template-columns:repeat(3,1fr)}.cycle-slot{padding:8px 4px}.cycle-slot b{font-size:12px}}

.save-status[data-sync-state="connected"] i{background:#36d874;box-shadow:0 0 7px #39d77a7a}.save-status[data-sync-state="syncing"] i{background:#4a9ed3}.save-status[data-sync-state="pending"] i{background:#e0ad45}.save-status[data-sync-state="offline"] i{background:#a7afa5}.save-status[data-sync-state="failed"] i{background:#c37562}.cloud-state{font-size:13px;border-radius:13px;padding:14px 16px;background:#edf2e5;line-height:1.6;margin-top:15px}.cloud-state[data-sync-state="connected"]{background:#e5f3df;color:#427e4a}.cloud-state[data-sync-state="failed"]{background:#f8e9df;color:#9c664c}input[type=password]{width:100%;border:1px solid #d6dfc7;border-radius:12px;padding:13px;background:#fafbf0;color:#466d4a;font-size:16px}.cloud-state[data-sync-state="pending"],.cloud-state[data-sync-state="offline"]{background:#f6efd9;color:#927943}

/* Added entrance response only; original v1.3.1 palette remains unchanged. */
.map-tools #reset-map{font-size:13px;white-space:nowrap}.castle-welcome{position:relative;overflow:hidden}.castle-welcome h2::before{content:'✦';display:inline-block;color:#c2a05a;margin-right:8px;animation:castle-greeting 1.1s ease-out both}.welcome-star{position:absolute;pointer-events:none;color:#dfba75;font-size:20px;left:45%;top:66%;animation:castle-star 1.2s ease-out both}.welcome-star:nth-last-child(2){left:60%;animation-delay:.08s}.welcome-star:last-child{left:77%;font-size:13px;animation-delay:.15s}@keyframes castle-greeting{0%{transform:scale(.6) rotate(-35deg);opacity:.25}55%{transform:scale(1.2) rotate(10deg);filter:drop-shadow(0 0 7px #e9c47b)}100%{transform:none;opacity:1}}@keyframes castle-star{0%{transform:translateY(15px) scale(.4);opacity:0}25%{opacity:.9}100%{transform:translateY(-45px) scale(.8);opacity:0}}@media(prefers-reduced-motion:reduce){.castle-welcome h2::before,.welcome-star{animation:none!important}.welcome-star{display:none}}

/* Daytime atmosphere on the same v1.5.0 scene. Night rules remain unchanged. */
#app:not(.night) #experience{background:radial-gradient(ellipse at 50% 30%,#e6fff1,#c5f1ed 57%,#a0e3e7)}
#app:not(.night) .sky-light{opacity:.65}
.theme-control button{min-width:44px;min-height:44px;touch-action:manipulation}
.theme-control button:focus-visible{outline:2px solid #a98b50;outline-offset:2px}
@container(max-width:650px){.theme-control{right:13px}.theme-control button{min-width:36px;min-height:38px}}

/* Read-only maintenance camera: same scene and rendering, no walking controls. */
body.scene-inspection #topbar,body.scene-inspection .topbar,body.scene-inspection .zone-nav,body.scene-inspection .zone-info,body.scene-inspection .map-tools,body.scene-inspection .gesture-hint,body.scene-inspection #hotspots,body.scene-inspection .theme-switch,body.scene-inspection .bottom-nav,body.scene-inspection .map-heading,body.scene-inspection #celebration-toggle{display:none!important}
body.scene-inspection #app,body.scene-inspection #map-area,body.scene-inspection #scene{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;margin:0!important;border-radius:0!important}
