:root{font-family:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;color:#15334a;background:#e1e9ef;--body:24px;--control:20px;--line:#bdcdd9}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,summary{font:inherit;font-size:var(--control);font-weight:650}button{cursor:pointer;border:1px solid var(--line);border-radius:7px;background:#fff;color:#173b56;padding:9px 13px}button:hover{background:#e6f0f6}button[aria-pressed=true]{background:#194f70;color:white;border-color:#194f70}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #d59517;outline-offset:3px}button:disabled{opacity:.5}header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 22px;background:white;border-bottom:1px solid var(--line);flex:none}.brand{display:flex;gap:13px;align-items:center;font-size:25px;font-weight:750}.terminal{background:#194f70;color:white;padding:8px 12px;border-radius:6px;font-size:30px}.brand small{display:block;font-size:16px;font-weight:500;margin-top:3px}.header-actions{display:flex;gap:8px}main{flex:1;min-height:0;display:flex}.world{position:relative;overflow:hidden;flex:1;min-width:0}#canvas{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}#canvas canvas:focus-visible{outline:3px solid #e0b341;outline-offset:-3px}.top-controls{position:absolute;top:15px;left:18px;right:18px;z-index:4;display:flex;align-items:start;justify-content:space-between;gap:16px;pointer-events:none}.scene-heading{background:#ffffffed;border-left:5px solid #216080;padding:10px 14px;border-radius:4px;max-width:42%}.scene-heading h1{font-size:26px;margin:0 0 4px}.scene-heading p{font-size:17px;margin:0}.navigation{display:flex;flex-direction:column;align-items:end;gap:8px;pointer-events:auto}#sceneRoutes,#floorControls{display:flex;gap:6px}#sceneRoutes button{border-bottom:4px solid var(--route-color)}#sceneRoutes button[aria-pressed=true]{background:var(--route-color);border-color:var(--route-color)}#floorControls button{font-size:18px;padding:7px 12px}.bottom-dock{position:absolute;left:18px;right:18px;bottom:38px;z-index:4;display:flex;align-items:end;gap:12px;pointer-events:none}.view-controls{display:grid;grid-template-columns:repeat(4,auto);gap:5px;background:#ffffffed;border:1px solid var(--line);padding:9px;border-radius:9px;pointer-events:auto;flex:none}.view-controls button{padding:8px 11px;font-size:18px;min-height:40px}.view-controls button:first-child,.view-controls button:nth-child(2){font-size:24px;padding:3px 13px}#routeGuide{flex:1;min-width:0;background:#ffffffed;border:1px solid var(--line);border-radius:9px;padding:11px 14px;pointer-events:auto}#routeGuide summary{cursor:pointer;font-size:22px}#routeStops{display:flex;gap:7px;overflow-x:auto;padding:10px 2px 3px;scrollbar-width:thin}#routeStops button{flex:none;white-space:nowrap;font-size:22px}#routeStops b{font-size:19px;margin-right:3px}.hint{position:absolute;left:20px;bottom:10px;font-size:16px;color:#294d65;background:#ffffffcf;padding:2px 6px;pointer-events:none}#labels{position:absolute;inset:0;pointer-events:none;z-index:2}.pin{position:absolute;transform:translate(-50%,-100%);pointer-events:auto;display:flex;align-items:center;justify-content:center;border:2px solid white;border-radius:50%;width:40px;height:40px;padding:0;box-shadow:0 2px 7px #123a4c33;background:#fff;color:#153f5b}.pin b{font-size:21px}.pin span{display:none}.pin.selected{background:#174e70;color:white;border-color:#e8bb4e;z-index:3}.pin-leader{position:absolute;height:2px;background:#315e7899;transform-origin:0 50%;pointer-events:none}#objectCard{position:absolute;right:18px;top:132px;z-index:5;width:min(410px,36vw);background:#fffffff5;border:1px solid #83a2b9;border-radius:10px;padding:17px 20px;max-height:calc(100% - 300px);overflow:auto;box-shadow:0 6px 20px #16344818}.object-card-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.object-card-head h2{font-size:28px;margin:0}.object-card-head button{font-size:26px;padding:0 9px}#objectDesc{font-size:var(--body);line-height:1.6;margin:12px 0}.object-motion{font-size:19px;line-height:1.55;margin:12px 0;color:#42627a}#objectPhoto{font-size:21px;background:#194f70;color:#fff}.extra-large{--body:30px;--control:23px}.extra-large #routeStops button{font-size:26px}.extra-large #objectCard{width:min(470px,40vw)}[hidden]{display:none!important}footer{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f7fafc;padding:7px 20px;flex:none;font-size:15px;border-top:1px solid var(--line)}footer button{font-size:16px;padding:5px 10px}#flightStatus{font-size:16px}#error{position:absolute;inset:35% 15% auto;padding:25px;background:#fff;font-size:24px;z-index:8}dialog{width:min(1000px,94vw);max-height:90dvh;overflow:auto;border:1px solid #8ba5b8;border-radius:12px;padding:26px;color:#173a55}dialog::backdrop{background:#112b40b5}dialog h2{font-size:30px;margin:0 0 16px}dialog p,dialog li{font-size:22px;line-height:1.6}a{color:#145c87}dialog button{font-size:22px}.photo-heading{display:flex;align-items:start;justify-content:space-between;gap:15px}.photo-heading button{white-space:nowrap}#photoDialog{width:min(1380px,96vw)}#photoDialog figure{margin:0}#photoImage{width:100%;height:53dvh;object-fit:contain;background:#162c3e}#photoCaption{font-size:24px;line-height:1.6;margin-top:12px}#photoCredit{font-size:18px}#photoCredit a{margin-left:12px}.photo-offline,.flight-source{font-size:17px!important}#flightDialog{width:min(1400px,96vw)}.flight-actions{display:flex;gap:8px;margin-bottom:16px}.flight-table-wrap{max-height:53dvh;overflow:auto}table{border-collapse:collapse;width:100%;font-size:24px;white-space:nowrap}th{text-align:left;background:#193e59;color:white;position:sticky;top:0}td,th{padding:12px 17px;border-bottom:1px solid #cfdae3}tbody tr:nth-child(even){background:#eff5f8}#flightDetail{font-size:22px;margin:0 0 15px}@media(max-width:1000px){.brand{font-size:21px}.brand small{font-size:14px}.header-actions button{font-size:18px;padding:8px}.scene-heading h1{font-size:23px}.scene-heading p{display:none}#sceneRoutes button{font-size:18px}.view-controls{grid-template-columns:repeat(3,auto)}.view-controls button{font-size:16px}#objectCard{top:125px;width:350px;max-height:calc(100% - 305px)}#routeStops button{font-size:21px}#flightStatus{font-size:14px}}@media(max-width:700px){header{padding:8px;gap:6px}.brand{font-size:17px}.terminal{font-size:23px;padding:6px}.header-actions{gap:4px}.header-actions button{font-size:15px;padding:7px}.brand small{display:none}.top-controls{left:8px;right:8px;top:10px;flex-direction:column;gap:8px}.scene-heading{max-width:100%;padding:6px 10px}.navigation{align-items:start}#sceneRoutes button{font-size:16px;padding:6px}#floorControls button{font-size:15px;padding:6px}.bottom-dock{left:8px;right:8px;bottom:40px;gap:6px}.view-controls{grid-template-columns:repeat(2,auto);padding:5px;gap:3px}.view-controls button{font-size:14px;padding:5px;min-height:32px}#routeGuide{padding:8px}#routeGuide summary{font-size:18px}#routeStops{max-height:130px;flex-wrap:wrap;overflow:auto}#routeStops button{font-size:19px;padding:7px}#objectCard,.extra-large #objectCard{right:8px;top:150px;width:min(330px,85vw);max-height:calc(100% - 350px);padding:12px}#objectDesc{font-size:22px}.hint{font-size:12px;left:8px;right:8px}.object-motion{font-size:17px}footer{padding:6px 8px}footer>span:first-child{display:none}footer button{font-size:13px}dialog{padding:16px}table{font-size:21px}td,th{padding:10px}.flight-actions{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto;transition:none!important}}

#objectPoints{font-size:22px;line-height:1.6;padding-left:1.2em;margin:12px 0}#objectPoints li{margin:9px 0}.extra-large #objectPoints{font-size:27px}

#objectCard.shop-area{width:min(510px,42vw);top:112px;max-height:calc(100% - 270px)}.shop-tabs{display:flex;gap:8px;margin-top:14px}.shop-tabs button{font-size:22px}#shopContent{font-size:var(--body);line-height:1.55}#shopContent h3{font-size:var(--body);margin:14px 0 6px}#shopContent p{margin:6px 0 14px}#shopContent ul{padding-left:1.2em;margin:14px 0}#shopContent li{margin-bottom:12px}#shopPaging{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:22px}#shopSources{display:flex;flex-wrap:wrap;gap:8px 18px;margin:14px 0;font-size:20px}#shopBack{font-size:20px}@media(max-width:700px){#objectCard.shop-area{width:85vw;top:150px;max-height:calc(100% - 350px)}}

.shop-area .object-card-head{position:sticky;top:-17px;background:#fff;z-index:2;padding:8px 0}.shop-area .shop-tabs{position:sticky;top:40px;background:#fff;z-index:1;padding:6px 0}
#objectCard.shop-area{overflow:hidden;display:flex;flex-direction:column}#shopLesson{min-height:0;display:flex;flex-direction:column;overflow:auto}#shopPaging{position:sticky;bottom:0;background:#fff;padding:8px 0;flex-shrink:0}#shopContent{flex-shrink:0}.shop-area .object-card-head{flex-shrink:0}.shop-area .shop-tabs{top:0;margin-top:6px;flex-shrink:0}
#objectCard.shop-area{width:min(600px,46vw)}#shopContent p{margin:4px 0 8px}#shopContent h3{margin:8px 0 4px}#shopPaging{padding:4px 0}#shopLesson{scroll-padding-bottom:70px}@media(max-width:700px){#objectCard.shop-area{width:85vw}}
#objectCard.shop-area{padding:10px 16px}.shop-area .object-card-head{padding:2px 0}.shop-area .shop-tabs{padding:4px 0;margin-top:4px}.shop-area .shop-tabs button{padding:7px 10px}#shopLesson{overflow:hidden;flex:1}#shopContent{overflow:auto;flex:1;min-height:0;padding-bottom:8px}#shopContent h3{font-size:24px;line-height:1.3}#shopPaging{position:static}#shopSources,#shopBack{flex-shrink:0}#shopLesson:has(#shopFlow[aria-pressed=true]) #shopSources,#shopLesson:has(#shopFlow[aria-pressed=true]) #shopBack{display:none}#shopLesson:has(#shopNotes[aria-pressed=true]) #shopSources{margin:4px 0}#shopLesson:has(#shopNotes[aria-pressed=true]) #shopBack{padding:5px 10px}
/* Multi-row exploration menu: no horizontal dragging to find a lesson. */
#routeStops{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:7px;overflow-x:hidden;overflow-y:auto;max-height:min(42vh,360px);padding:10px 2px 3px;scrollbar-width:auto}
#routeStops button{white-space:normal;text-align:left;line-height:1.35;min-height:52px;width:100%}
#routeGuide[open]{flex:1}#routeGuide summary{display:flex;justify-content:space-between;align-items:center;gap:14px}
#routeGuide summary::after{content:'展開單元 ▴';font-size:18px;white-space:nowrap}#routeGuide[open] summary::after{content:'收起選單 ▾'}
@media(max-width:1000px){#routeStops{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}
@media(max-width:700px){#routeStops{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:38vh}#routeStops button{font-size:18px;min-height:48px}#routeGuide summary::after{font-size:14px}}

#routeStops{max-height:none;overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr))}#routePager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;font-size:18px}#routePager button{font-size:20px}body:has(#routeGuide[open]) #objectCard{left:18px;right:auto;width:min(410px,27vw);max-height:calc(100% - 300px)}@media(max-width:700px){#routeStops{grid-template-columns:repeat(2,minmax(0,1fr))}#routePager span{font-size:14px}#routePager button{font-size:16px;padding:6px}body:has(#routeGuide[open]) #objectCard{left:8px;width:85vw;max-height:30vh}}

#textbookDialog{width:min(1080px,94vw)}#textbookDialog p{font-size:var(--body);line-height:1.7}#textbookDialog h3{font-size:28px;margin:24px 0 8px}.textbook-scope{border-left:4px solid #27739a;padding:8px 14px;background:#edf4f8}#textbookDialog .photo-heading{position:sticky;top:-26px;background:white;padding:12px 0}

/* Textbook lessons use the existing paged object card at projection text size. */
.textbook-reference{font-size:18px;line-height:1.45;color:#31576d;margin:7px 0;flex-shrink:0}
#objectCard.shop-area #objectPhoto{flex-shrink:0;margin-top:8px;font-size:19px;padding:6px 10px}
#shopContent h3{font-size:var(--body)}
body:has(#routeGuide[open]) #objectCard.shop-area{width:min(560px,39vw)}
#textbookDialog strong{color:#154e70}
@media(max-width:700px){body:has(#routeGuide[open]) #objectCard.shop-area{width:85vw;max-height:38vh}.textbook-reference{font-size:16px}}
body:has(#objectCard:not([hidden])) .scene-heading{visibility:hidden}
body:has(#routeGuide[open]) #objectCard.shop-area,#objectCard.shop-area{top:15px;width:min(410px,27vw);max-height:calc(100% - 170px);height:480px}
#objectCard.shop-area .object-card-head h2{font-size:26px}
#shopContent{min-height:100px}
@media(max-width:700px){body:has(#routeGuide[open]) #objectCard.shop-area,#objectCard.shop-area{top:135px;width:85vw;max-height:calc(100% - 170px);height:340px}.textbook-reference{font-size:16px}}
.extra-large #shopContent{line-height:1.35}
