@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap');
:root{--ink:#304b3c;--muted:#7c8779;--paper:#faf8f1;--orange:#db7645;--line:#e5e6d9}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans TC',sans-serif;font-size:14px}button,a,input{ -webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #db7645;outline-offset:4px}header{height:86px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:11px;font-size:19px;font-weight:800;letter-spacing:2px}.brand-icon{width:43px;height:43px;background:#36563f;color:#fff6e3;border-radius:13px 13px 17px 17px;text-align:center;line-height:43px;font-size:25px}.brand small{display:block;font-size:8px;letter-spacing:3px;margin-top:3px}.edition{color:#8a8c7c;font-size:12px;letter-spacing:2px}.consult{background:#34523e;color:#fff9ea;border-radius:7px;padding:12px 18px;font-size:12px}main{display:grid;grid-template-columns:minmax(0,1fr) 360px;min-height:690px;height:calc(100dvh - 128px)}.world{position:relative;overflow:hidden;background:radial-gradient(ellipse at 52% 50%,#f1f1db,#dfe9dc 80%);isolation:isolate}.intro{position:absolute;top:32px;left:34px;z-index:3;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:#8a957e}h1{font-size:40px;letter-spacing:3px;margin:8px 0 12px;font-weight:900}h1 span{display:block;font-size:16px;line-height:1.65;font-weight:500;letter-spacing:2px;margin-top:12px}.intro p{font-size:11px;line-height:1.9;color:#7d8978;margin-top:14px}.scene{position:absolute;inset:0;touch-action:none}.scene canvas{display:block;width:100%;height:100%;cursor:grab}.scene canvas:active{cursor:grabbing}#labels{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}.island-label{position:absolute;transform:translate(-50%,-50%);border:1px solid #fff9;background:#fffdf0ed;border-radius:6px;padding:7px 11px;box-shadow:0 3px 10px #3d4b3812;font-size:11px;font-weight:600;pointer-events:auto;white-space:nowrap;transition:background .2s,box-shadow .2s}.island-label em{font-style:normal;font-size:9px;margin-right:7px;color:var(--orange)}.island-label.active{background:#34523e;color:#fff;box-shadow:0 0 0 3px #ffffff80}.island-label.active em{color:#f5c496}.island-label.faded{opacity:.38}#loading{position:absolute;top:55%;width:100%;text-align:center;pointer-events:none}.view-controls{position:absolute;bottom:67px;left:30px;display:flex;align-items:center;gap:2px;padding:5px;border:1px solid #fff8;border-radius:8px;background:#fafbf0e8;z-index:4;box-shadow:0 4px 20px #42683d09}.view-controls button{border:0;background:none;height:32px;min-width:32px;font-size:18px;border-radius:4px}.view-controls button:nth-last-child(-n+2){font-size:10px;padding:0 10px}.view-controls button:hover,.view-controls button[aria-pressed=true]{background:#e1e9d9}.view-controls span{height:20px;border-left:1px solid #d3dcca;margin:0 6px}.world-bottom{position:absolute;bottom:25px;left:34px;right:30px;display:flex;align-items:center;font-size:10px;color:#6f826c;gap:8px;pointer-events:none}.live-dot{width:6px;height:6px;border-radius:50%;background:#638d53}.gesture{margin-left:auto;color:#8b9986}.north{position:absolute;top:34px;right:30px;font-size:9px;text-align:center;line-height:1.8;color:#85967f}.north span{font-size:30px}aside{background:#fcfaf5;border-left:1px solid #e6e8db;display:flex;flex-direction:column;min-height:0;z-index:5}.panel-head{padding:31px 26px 18px}.panel-head h2{font-size:22px;letter-spacing:-.5px;margin:12px 0 8px}.panel-head p{color:#8b8f82;font-size:11px}.tabs{display:flex;padding:0 23px;border-bottom:1px solid var(--line);gap:18px}.tabs button{border:0;background:none;padding:12px 0;font-size:11px;color:#9b9d90;position:relative}.tabs button[aria-selected=true]{color:#35553e;font-weight:700}.tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;height:3px;background:#d7834c;left:0;right:0}.panel-content{padding:20px 25px;overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#d6ddcd transparent}.search{width:100%;border:1px solid #e5e6dc;border-radius:6px;background:#f4f3ec;padding:11px 13px;font-size:11px;outline:none}.section-caption{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:#999f90;margin:19px 0 10px}.island-row{display:flex;align-items:center;width:100%;border:0;border-bottom:1px solid #e9e9df;background:none;text-align:left;padding:13px 0;gap:13px}.island-row:hover{background:#f1f3e8}.tile-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:10px;font-size:19px;background:var(--tile)}.row-text{flex:1}.row-text strong{font-size:12px;font-weight:600}.row-text small{display:block;color:#989b8c;font-size:10px;margin-top:4px}.arrow{color:#a9ae9e}.row-num{font-size:9px;color:#a5ac9c}.back{border:0;background:none;padding:0;font-size:11px;color:#8e9985}.detail-title{font-size:26px;margin:16px 0 6px}.detail-sub{color:#c1784d;font-size:11px}.detail-copy{font-size:12px;line-height:1.95;color:#6b7c68;margin:18px 0}.callout{border-left:3px solid #d5b280;padding:10px 13px;background:#f1eee1;font-size:11px;line-height:1.8;color:#74765e;margin:16px 0}.checklist{display:grid;gap:8px}.checklist label{display:flex;align-items:flex-start;gap:9px;font-size:12px;padding:10px 0;border-bottom:1px solid var(--line);cursor:pointer}.checklist input{accent-color:#54764d;width:15px;height:15px;margin:2px 0 0}.related{display:flex;flex-wrap:wrap;gap:6px}.chip{font-size:10px;border:1px solid #d9dfd0;background:#f8f8ed;border-radius:20px;padding:6px 10px}.primary{display:block;background:#38563f;color:#fff8ed;padding:13px 18px;border:0;border-radius:6px;font-size:12px;text-align:center;width:100%;margin-top:20px}.progress{height:5px;background:#e7e9dc;border-radius:4px;margin:14px 0 18px;overflow:hidden}.progress div{height:100%;background:#b9bd79;transition:width .3s}.big-number{font-size:42px;font-weight:800}.big-number small{font-size:13px;font-weight:400;color:#99a18e}.plan-title{font-size:12px;margin:20px 0 5px}.small{font-size:10px;color:#89937f;line-height:1.8}.compare-block{padding:14px 0;border-bottom:1px solid var(--line)}.compare-block h3{font-size:13px}.compare-block p{font-size:11px;line-height:1.8;color:#7b8672}.compare-block b{color:#456343}.panel-footer{padding:17px 25px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:9px;color:#9ba18f}.panel-footer a{color:#677c61}footer{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;font-size:9px;color:#8d9786;border-top:1px solid var(--line);letter-spacing:1px}footer i{margin:0 10px;color:#b5bdac}#toast{position:fixed;bottom:60px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:8px;background:#2c483b;color:white;z-index:20;font-size:12px;opacity:0;pointer-events:none;transition:opacity .3s}.night .world{background:radial-gradient(ellipse at 50% 50%,#455b61,#263f4a)}.night .intro,.night h1{color:#f1ecd4}.night .intro p,.night .eyebrow,.night .world-bottom{color:#aebeb1}.night .island-label{background:#eef0ddf0;color:#364b3a}.night .island-label.active{background:#c18b54;color:#fff}.night .north{color:#b6bba7}@media(min-width:1500px){main{grid-template-columns:minmax(0,1fr) 400px}.intro{top:45px;left:45px}h1{font-size:48px}.panel-head{padding-top:42px}}@media(max-width:900px){header{padding:0 20px}.edition{display:none}main{grid-template-columns:minmax(0,1fr) 320px}.intro{left:22px}h1{font-size:32px}.gesture{display:none}.intro p{max-width:220px}}@media(max-width:680px){header{height:70px;padding:0 16px}.brand{font-size:15px}.brand-icon{width:35px;height:35px;line-height:35px;font-size:21px}.consult{font-size:10px;padding:10px}.brand small{font-size:7px}main{display:block;height:auto;min-height:0}.world{height:600px}.intro{top:24px;left:22px}h1{font-size:33px}h1 span{font-size:14px}.intro p{display:none}.eyebrow{font-size:8px}.north{right:22px;top:24px}.view-controls{left:16px;bottom:55px}.world-bottom{left:22px;bottom:22px;font-size:9px}.island-label{font-size:10px;padding:6px 8px}.island-label em{margin-right:4px}aside{height:650px;border-left:0;border-top:1px solid var(--line)}.panel-head{padding:25px 23px 12px}.panel-head h2{font-size:23px}footer{height:auto;min-height:60px;padding:15px;gap:10px;flex-direction:column;font-size:8px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* 1.1: a living waterfront miniature */
header{height:82px;padding:0 30px}.brand-logo{width:65px;height:65px;object-fit:contain;display:block}.brand{letter-spacing:0}.world{background:#78afb0}.intro{top:24px;left:28px;background:#faf7e9ee;padding:18px 22px;border:1px solid #fff8;border-radius:14px;box-shadow:0 6px 30px #264c4320}.intro .eyebrow{font-size:8px;letter-spacing:1.7px}h1{font-size:28px;margin:7px 0 0;letter-spacing:2px}h1 span{font-size:11px;letter-spacing:1px;margin-top:6px}h1 span br{display:none}.intro p{display:none}.north{color:#e7edd8}.view-controls{bottom:53px;left:24px;gap:1px;background:#faf8e9f5;flex-wrap:wrap;max-width:calc(100% - 48px)}.view-controls button:nth-child(n+6){font-size:10px;padding:0 8px}.world-bottom{bottom:20px;color:#eaf1df;left:28px}.gesture{color:#d6e8d8}.city-life{position:absolute;right:22px;top:29px;padding:10px 13px;border-radius:9px;background:#f7f5e6e8;font-size:9px;display:flex;gap:7px;align-items:center;z-index:3;color:#53684e}.city-life small{display:none}.north{top:86px;right:30px}.island-label{padding:6px 10px;border-radius:20px;font-size:10px;background:#fffbedee;box-shadow:0 2px 9px #35544d29}.night .intro{background:#203c42e8;border-color:#73918a55}.night .city-life{background:#203c42e8;color:#e4e6c8}.night .view-controls{background:#e4e5d7ed}.night .world-bottom{color:#becdc2}main{height:calc(100dvh - 124px);min-height:560px}@media(max-width:1000px){.city-life{top:170px;right:20px}.city-life small{display:none}}@media(max-width:680px){header{height:72px;padding:0 18px}.brand-logo{width:58px;height:58px}.intro{top:15px;left:16px;padding:12px 15px}.intro .eyebrow{font-size:6px}h1{font-size:24px}h1 span{font-size:10px}.world{height:620px}.north{top:20px;right:18px}.city-life{top:128px;left:18px;right:auto;padding:7px 10px;font-size:8px}.view-controls{bottom:57px;left:12px;max-width:calc(100% - 24px);gap:0;padding:4px}.view-controls button{min-width:28px;height:30px}.view-controls button:nth-child(n+6){font-size:9px;padding:0 6px}.view-controls span{margin:0 3px}.world-bottom{left:18px;font-size:9px;bottom:24px}.island-label{font-size:9px;padding:5px 7px}.island-label em{font-size:8px}main{height:auto;min-height:0}.panel-head{padding-top:22px}}
/* Stage-specific learning journeys */
.route-switch{margin:0 24px 9px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;background:#e9eddf;border-radius:7px;font-size:10px}.route-switch button{border:0;background:none;padding:3px;font-size:10px;color:#8d6746}.course-intro{margin:0 0 15px;padding:12px 0;border-bottom:1px solid var(--line)}.course-intro small{display:block;color:#b78657;font-size:10px;margin-bottom:7px}.course-intro strong{font-size:12px;font-weight:500}.course-title{font-size:16px;line-height:1.6;margin:9px 0 5px;color:#547052}.source-link{display:block;text-align:center;font-size:10px;color:#88977c;margin-top:22px}#welcome{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #fff6;border-radius:22px;color:#34503d;background:#faf7ed;box-shadow:0 30px 110px #162d3c60}#welcome::backdrop{background:#2e514662;backdrop-filter:blur(7px)}.welcome-wrap{padding:30px 40px;text-align:center}.welcome-wrap>img{width:66px;height:66px;object-fit:contain;margin-bottom:15px}.welcome-wrap h2{font-size:32px;line-height:1.4;letter-spacing:2px;margin:13px 0 10px}.welcome-wrap>p{font-size:12px;line-height:1.9;color:#88917e;margin:0 0 24px}.route-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px}.route-cards button{text-align:left;display:flex;flex-direction:column;border:1px solid #d6dec8;background:#eef1e4;border-radius:14px;padding:22px 24px;transition:transform .2s,box-shadow .2s}.route-cards button:last-child{background:#f5ead9;border-color:#e5d7be}.route-cards button:hover{transform:translateY(-3px);box-shadow:0 8px 20px #5e725b20}.route-icon{font-size:26px;margin-bottom:15px}.route-cards small{font-size:8px;letter-spacing:1.3px;color:#8a987a}.route-cards strong{font-size:24px;margin:7px 0 10px}.route-cards button>span:not(.route-icon){font-size:11px;line-height:1.8;color:#7c8c70}.route-cards b{font-size:11px;margin-top:20px;font-weight:500}.welcome-note{font-size:9px;color:#9ca38e;letter-spacing:1px;margin-top:21px}@media(max-width:680px){.welcome-wrap{padding:22px 18px}.welcome-wrap>img{width:48px;height:48px;margin-bottom:10px}.welcome-wrap h2{font-size:25px;margin-top:10px}.welcome-wrap>p{font-size:10px;margin-bottom:16px}.route-cards{gap:10px}.route-cards button{padding:16px 12px}.route-cards strong{font-size:21px}.route-cards small{font-size:6px;letter-spacing:.6px}.route-cards button>span:not(.route-icon){font-size:10px}.route-cards b{font-size:10px}.route-icon{margin-bottom:8px}.route-switch{margin:0 23px 8px}.welcome-note{font-size:8px}}
.learning{margin:24px 0;padding:18px;background:#f4efe1;border:1px solid #d9d2bd;border-radius:14px}.learning h4{font-size:17px;margin:8px 0 12px}.learning p{line-height:1.85;font-size:14px}.learning small{font-size:11px;color:#6d7464}.learning fieldset{border:0;padding:0;margin:24px 0}.learning legend{font-weight:700;font-size:14px;line-height:1.7;margin-bottom:12px}.scenario button{display:block;width:100%;text-align:left;padding:12px;margin:7px 0;border:1px solid #c7cbb9;background:#fffdf6;border-radius:8px;color:#3e5343;line-height:1.7}.scenario button[aria-pressed=true]{background:#dfe8cf;border-color:#536e4f}.feedback:not(:empty),.calc-result:not(:empty),.diagnostic-result:not(:empty){background:#e0e9d4;padding:12px;border-radius:8px}.learning label{display:block;font-size:13px;line-height:1.8;margin:14px 0}.learning input,.learning select,.learning textarea{box-sizing:border-box;width:100%;padding:10px;border:1px solid #bdc6b0;border-radius:7px;background:#fffdf8;color:#344737;font:inherit}.learning a{color:#4d694b}.learning .primary{width:100%}.learning .case-source{font-size:12px;border-left:3px solid #aabd95;padding-left:12px}.npc-label{position:absolute;z-index:5;border:1px solid #fff1ce;border-radius:22px;background:#465e48;color:#fff5da;padding:8px 14px;box-shadow:0 5px 18px #24433235;font:600 12px sans-serif;cursor:pointer;white-space:nowrap}.carrie-wrap{padding:30px;max-width:420px;color:#3c5140}.carrie-wrap h2{font-size:25px}.carrie-wrap p{line-height:1.9}.carrie-wrap a{display:block;background:#4b664c;padding:14px;border-radius:10px;color:#fff7e4;text-align:center;text-decoration:none}.carrie-wrap button{margin-top:16px;background:none;border:0;color:#4b664c;cursor:pointer}#carrie-dialog{border:1px solid #d9d5bd;border-radius:22px;background:#faf6eb}#carrie-dialog::backdrop{background:#183b3a66}details summary{cursor:pointer;padding:14px 0;font-size:14px;font-weight:600}
.npc-label{pointer-events:auto}
.carrie-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px 10px;margin:22px -6px 0;padding:18px 14px;border:1px solid #cbd6b9;border-radius:18px;background:linear-gradient(145deg,#fdfaf0,#e8eedc);box-shadow:0 5px 18px #42593d0b}.carrie-avatar{width:110px;height:190px;align-self:center;overflow:visible}.carrie-card-copy{min-width:0;align-self:center}.carrie-kicker{display:block;font-size:10px;letter-spacing:1px;color:#7a876c;margin-bottom:7px}.carrie-card strong{font-size:17px;line-height:1.6;color:#35513d}.learning .carrie-card p{font-size:12px;line-height:1.8;margin:8px 0 0}.learning .carrie-cta{grid-column:1/-1;display:block;background:#3f6048;color:#fff9e8;padding:13px 18px;border-radius:11px;font-size:17px;font-weight:700;text-align:center;box-shadow:0 3px 0 #2d4935;transition:background .2s}.learning .carrie-cta:hover{background:#2e4d38}.learning .carrie-cta small{display:block;color:#e0e9d2;font-size:10px;letter-spacing:1px;font-weight:400;margin-top:3px}.carrie-wave{transform-box:view-box;transform-origin:772px 621px}.carrie-card.is-visible .carrie-wave{animation:carrie-hello 1.5s ease-in-out 3}@keyframes carrie-hello{0%,100%{transform:rotate(0deg)}25%,65%{transform:rotate(-9deg)}45%,85%{transform:rotate(7deg)}}@media(prefers-reduced-motion:reduce){.carrie-card.is-visible .carrie-wave{animation:none}}

.carrie-chibi{filter:drop-shadow(0 4px 4px #6b70591a)}.carrie-card.is-visible:hover .carrie-wave{animation:carrie-hello-hover 1.5s ease-in-out 3}@keyframes carrie-hello-hover{0%,100%{transform:rotate(0deg)}25%,65%{transform:rotate(-9deg)}45%,85%{transform:rotate(7deg)}}@media(prefers-reduced-motion:reduce){.carrie-card.is-visible:hover .carrie-wave{animation:none}}
.academy-welcome{display:flex;gap:14px;padding:20px 16px;margin-bottom:18px;background:#e8eddd;border-radius:15px;border:1px solid #ccd5bc}.academy-welcome>span{font-size:42px;color:#70856a}.academy-welcome small{font-size:9px;letter-spacing:1px}.academy-welcome h3{font-size:21px;margin:8px 0}.academy-welcome p{font-size:13px;line-height:1.8;margin:0}
.cross-label{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;white-space:nowrap;border:1px solid #f5edd2;border-radius:18px;background:#45674d;color:#fff8e8;padding:10px 14px;font:600 12px sans-serif;box-shadow:0 4px 18px #2c483e33}.bridge-callout{margin:22px 0;padding:20px;background:#e6ecdb;border:1px solid #c6d3b8;border-radius:14px}.bridge-callout small{display:block;color:#708466;font-size:11px;margin-bottom:7px}.bridge-callout strong{font-size:19px}.bridge-callout p{font-size:13px;line-height:1.8}.bridge-callout .primary{width:100%;margin-bottom:0}

/* Keep the walk visible while the two independent maps dissolve at the school gate. */
#scene,#labels{transition:opacity .65s ease}body.journey-fade #scene,body.journey-fade #labels{opacity:0}body.crossing button,body.crossing canvas{pointer-events:none}body.crossing #labels .island-label{opacity:0}body.crossing .cross-label{opacity:0}.journey-notice{position:fixed;left:50%;bottom:40px;transform:translateX(-50%);padding:16px 26px;border:1px solid #e7d6b5;border-radius:30px;background:#faf7e9;color:#35533e;box-shadow:0 8px 40px #35533e22;z-index:100;font-weight:700;text-align:center;max-width:90vw;width:max-content}@media(prefers-reduced-motion:reduce){#scene,#labels{transition:none}}

body.crossing.arriving #labels .island-label{opacity:var(--arrival-opacity,0);transition:opacity .2s ease}
/* Mobile: the city gets its own unobstructed viewport; all controls sit below it. */
@media(max-width:680px){
html{scroll-behavior:smooth}body{font-size:16px}header{height:64px;padding:0 16px}.brand-logo{width:52px;height:52px}.consult{font-size:13px;min-height:44px;display:flex;align-items:center}
main{display:block;height:auto;min-height:0}.world{height:auto;overflow:visible;display:flex;flex-direction:column}.intro{position:relative;inset:auto;margin:0;padding:12px 16px;border:0;border-radius:0;box-shadow:none;background:#faf7ed}.intro .eyebrow{display:none}.intro h1{font-size:24px;margin:0;letter-spacing:1px}.intro h1 span{font-size:14px;line-height:1.6;letter-spacing:0;margin-top:4px}.scene{position:relative;inset:auto;height:clamp(300px,48svh,440px);margin-bottom:64px;flex:none;overflow:visible}.scene canvas{touch-action:pan-y;cursor:default}#labels{top:100%;height:64px;bottom:auto;display:flex;gap:8px;align-items:center;padding:8px 12px;background:#e7eee0;overflow-x:auto;overflow-y:hidden;pointer-events:auto;scrollbar-width:thin}#labels .island-label,#labels .cross-label{position:static!important;left:auto!important;top:auto!important;transform:none;flex:0 0 auto;min-height:44px;font-size:13px;padding:10px 13px;box-shadow:none}#labels .island-label em{font-size:12px}.view-controls{position:relative;inset:auto;margin:0;padding:6px 12px;max-width:none;flex-wrap:nowrap;overflow-x:auto;border:0;border-radius:0;gap:4px;box-shadow:none}.view-controls button,.view-controls button:nth-child(n+6){height:44px;min-width:44px;flex-shrink:0;font-size:14px;padding:0 10px}.view-controls span{display:none}.world-bottom{position:relative;inset:auto;margin:0;padding:8px 16px;font-size:12px;line-height:1.6;color:#35543f;background:#edf1e5}.city-life,.north{display:none}
aside{height:auto;min-height:0;border-left:0}.panel-head{padding:24px 18px 12px}.panel-head h2{font-size:24px}.panel-head p{font-size:15px;line-height:1.8}.route-switch{margin:0 18px 10px;font-size:14px}.route-switch button{min-height:44px;font-size:14px}.tabs{padding:0 18px}.tabs button{font-size:16px;min-height:48px}.panel-content{overflow:visible;padding:18px;flex:none}.learning{padding:16px;margin:20px 0}.learning p,.learning label,.learning li,.detail-copy{font-size:16px;line-height:1.85}.learning h4,.course-title{font-size:20px}.learning small,.section-caption,.detail-sub,.callout,.source-link,.small{font-size:13px;line-height:1.75}.learning input,.learning select,.learning textarea{font-size:16px;min-height:48px;max-width:100%}.learning legend{font-size:16px}.learning button,.primary,.back,.chip{font-size:16px;min-height:48px}.learning button{max-width:100%;white-space:normal}.learning ol{padding-left:23px}.learning li{margin-bottom:10px}.row-text strong{font-size:17px}.row-text small{font-size:14px}.island-row{min-height:64px}.checklist label{font-size:16px}.checklist input{width:22px;height:22px;flex:none}.panel-footer{font-size:13px;line-height:1.7}.source-link{padding:12px 0}.carrie-card{grid-template-columns:85px minmax(0,1fr)}.carrie-avatar{width:85px;height:155px}.learning .carrie-card p{font-size:15px}.welcome-wrap>p,.route-cards button>span:not(.route-icon){font-size:14px}.route-cards small,.welcome-note{font-size:11px}.route-cards b{font-size:14px}.route-cards strong{font-size:22px}.welcome-wrap{padding:20px 16px}.journey-notice{font-size:14px;bottom:16px;padding:12px 18px;white-space:normal;width:calc(100% - 32px)}#toast{max-width:90vw;font-size:14px}footer{font-size:12px}.mobile-map-return{display:block;margin:0 18px 18px;min-height:48px;border:1px solid #b9c9af;border-radius:8px;background:#e8efdf;font-size:16px}.learning p,.learning li{overflow-wrap:anywhere}
}
@media(min-width:681px){.mobile-map-return{display:none}}

@media(max-width:680px){.scene{touch-action:pan-y}.view-controls,#labels{touch-action:pan-x pan-y}}

@media(max-width:680px){body.crossing{overflow:hidden;overflow-anchor:none}.scene{height:clamp(320px,52svh,480px)}body.crossing .journey-notice{bottom:12px}}

@media(max-width:680px){html{scroll-padding-bottom:100px}body{padding-bottom:calc(84px + env(safe-area-inset-bottom))}.mobile-map-return{display:none;position:fixed;z-index:12;bottom:0;left:0;width:100%;margin:0;padding:14px 18px calc(14px + env(safe-area-inset-bottom));min-height:64px;border:0;border-top:1px solid #bccbb2;border-radius:0;background:#edf3e6;box-shadow:0 -4px 18px #294b3012;font-weight:700}.mobile-map-return.is-shown{display:block}body.crossing .mobile-map-return{display:none}.learning input,.learning select,.learning textarea,.learning button{scroll-margin-bottom:110px}.scene,.scene canvas{touch-action:none}.world-bottom:after{content:'單指旋轉・雙指縮放';display:block;margin-left:auto;white-space:nowrap;font-size:11px}.world-bottom #status{max-width:55%}}

.mobile-building-names{display:none}@media(max-width:680px){html{height:100%;overflow:hidden}body{height:calc(100dvh - 68px - env(safe-area-inset-bottom));overflow-y:auto;overflow-x:hidden;padding-bottom:20px;scroll-behavior:smooth;scroll-padding-bottom:20px}.mobile-map-return{height:calc(68px + env(safe-area-inset-bottom))}.mobile-building-names{display:block;position:absolute;inset:0;pointer-events:none;overflow:hidden}.mobile-building-names span{position:absolute;transform:translate(-50%,-100%);background:#fffbedee;color:#34513e;padding:4px 7px;border:1px solid #fff;border-radius:12px;font-size:12px;font-weight:700;white-space:nowrap;box-shadow:0 2px 5px #23432b22}.mobile-building-names span:after{content:'';display:block;position:absolute;width:1px;height:9px;background:#faf7de;left:50%;top:100%}body.crossing .mobile-building-names{display:none}.mobile-map-return.is-shown{display:block}}
