/* 航海懸賞字體系統。字型在本站提供；保留原始內容與互動。 */
@font-face{font-family:"Noto Serif TC";src:url("fonts/noto-serif-tc.woff2") format("woff2");font-style:normal;font-weight:700 900;font-display:swap}
@font-face{font-family:"Noto Sans TC";src:url("fonts/noto-sans-tc-reading.woff2") format("woff2");font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:Iansui;src:url("fonts/iansui.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Pirata One";src:url("fonts/pirata-one.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
:root{--body:"Noto Sans TC","PingFang TC","Microsoft JhengHei",sans-serif;--display:"Noto Serif TC","Songti TC",serif;--hand:Iansui,"Noto Serif TC",serif;--pirate:"Pirata One",Georgia,serif;--reading:#493822;--muted:#6f5a3e;--panel-width:410px}
body{font-family:var(--body);font-size:16px;line-height:1.7;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button,input,select,textarea{font-family:var(--body)}
button,a,input,select{touch-action:manipulation}
:is(dialog,.sky-panel,.logic-panel){color:var(--reading)}
:is(dialog,.sky-panel,.logic-panel) :is(p,dd,li){overflow-wrap:anywhere}
.masthead{height:86px;padding:12px 22px}
.brand-copy strong{font:900 clamp(21px,1.4vw,29px)/1.35 var(--display);letter-spacing:.07em;color:#51371e}
.brand-copy>span{font:400 15px/1.5 var(--hand);letter-spacing:.06em;color:#6c5134}
.brand-stamp{width:54px;height:54px;font-family:var(--display);font-weight:900;font-size:32px}
.brand-stamp span{font:400 10px/1 var(--pirate);letter-spacing:.1em}
.edition{font:400 19px/1.2 var(--pirate);letter-spacing:.1em}
.edition b{font:500 13px/1.4 var(--body);letter-spacing:.06em}
.reset-windows{font-size:14px;min-height:40px;padding:8px 12px}
.expedition-bar{top:116px;min-height:48px;padding:5px 9px}
.expedition-bar a,.expedition-bar button{font:500 14px/1.5 var(--body);padding:7px 11px;min-height:36px}
.voyage-volume{font:400 13px/1.5 var(--body)}
#islands-account{top:174px;font:400 14px/1.6 var(--body);max-width:min(620px,calc(100vw - 48px));padding:10px 14px}
#islands-account small{font-size:13px;color:#465e62}
.map-intro{top:266px;max-width:410px}
.map-intro .eyebrow{font:400 18px/1.4 var(--pirate);letter-spacing:.13em;color:#fff4cf}
.map-intro h1{font:900 clamp(38px,3vw,56px)/1.35 var(--display);letter-spacing:.035em;margin:12px 0 20px;text-shadow:0 3px 0 #155887,0 5px 20px #15457244}
.map-intro h1 em{color:#ffe2a1}
.map-intro>p:not(.eyebrow){font:400 20px/1.8 var(--hand);letter-spacing:.02em;margin:0 0 20px}
.ship-tour{font-size:15px;line-height:1.5;padding:13px 16px}
#tour-status{font-size:14px;line-height:1.65}
.island-label{padding:8px 13px;min-width:105px;line-height:1.3}
.island-label b{font:400 28px/1.1 var(--pirate);letter-spacing:.06em;margin-bottom:6px}
.island-label span{font:400 17px/1.45 var(--hand);letter-spacing:.02em;padding-top:5px;color:#51371f}
.island-label small{font:400 13px/1.4 var(--hand);letter-spacing:0;color:#705332;margin-top:4px}
.knowledge-label{width:186px;padding:9px 12px}
.knowledge-label b{font:400 19px/1.1 var(--pirate);letter-spacing:.08em}
.knowledge-label span{font:700 17px/1.6 var(--body)}
.knowledge-label small{font:400 13px/1.5 var(--hand)}
.archipelago{margin-right:calc(var(--panel-width) + 52px)}
.sky-panel,.logic-panel{width:var(--panel-width);top:178px;bottom:24px;max-height:calc(100svh - 202px);padding:22px}
.sky-panel{overflow-y:auto;scrollbar-gutter:stable}
.sky-panel>*{flex-shrink:0}
.sky-panel .route-list{flex:1 1 auto;min-height:180px}
.drag-handle,.sky-panel .drag-handle,.logic-panel .drag-handle{font:800 24px/1.45 var(--display);letter-spacing:.07em;min-height:50px;padding:8px 0;margin-bottom:18px}
.drag-handle small{font:400 13px/1.4 var(--body);letter-spacing:0;color:#705332}
.cloud-top{flex-wrap:wrap;gap:8px}
.cloud-top>span{font:400 18px/1.6 var(--hand);letter-spacing:0}
.cloud-top small{font-size:13px;color:#715537}
.sky-heading{padding:18px 0}
.sky-heading h2{font:800 28px/1.5 var(--display);margin-bottom:10px;letter-spacing:.025em}
.sky-heading>p:last-child{font:400 15px/1.8 var(--body);color:#665039}
.route-modes{gap:8px;margin-bottom:12px}
.route-modes button{font-size:14px;line-height:1.5;min-height:42px;padding:9px 6px}
.research-open{font-size:14px;line-height:1.7;padding:7px 0 12px;color:#65482e}
.filter-label{font-size:13px;color:#6d5335}
select{font-size:15px;line-height:1.5;padding:10px;min-height:44px}
.route-list{margin:16px -5px 16px 0;padding-right:5px}
.route-card{padding:16px;margin-bottom:12px}
.route-card .route-tag{font:700 13px/1.6 var(--body);letter-spacing:.03em;color:#76522d;margin-bottom:8px}
.route-card strong{font:800 20px/1.5 var(--display);color:#50361f}
.route-card small{font-size:15px;line-height:1.75;color:#60492f;margin-top:8px}
.case-company{font-size:13px;line-height:1.6;color:#715b40;margin-top:10px;padding-top:8px}
.route-preview{padding:16px;min-height:100px}
.route-preview .eyebrow{font:600 13px/1.5 var(--body);color:#74542e}
.route-preview strong{font:800 21px/1.6 var(--display)}
.route-preview p{font-size:15px;line-height:1.75;margin-top:7px}
.primary,.bounty-demo{font:600 16px/1.6 var(--body);padding:12px 16px;min-height:48px}
.bounty-open,.quest-context-link{font-size:14px;line-height:1.75}
.demo-note{font-size:13px;line-height:1.7;color:#705638}
.map-controls button,.map-controls #drag-mode{font-size:14px;min-height:42px;padding:10px 12px}
.map-controls output{font-size:14px;min-width:44px}
.map-guide{font-size:13px;line-height:1.6;bottom:108px;letter-spacing:.02em}
.sea-note{font-size:13px;line-height:1.6;letter-spacing:0;max-width:calc(100% - 60px)}
.ship-caption b{font:400 40px/1.1 var(--pirate);letter-spacing:.06em}
.ship-caption span{font-size:13px;line-height:1.7}
.fleet-open{bottom:158px;max-width:370px;padding:14px 16px}
.fleet-open strong{font:800 20px/1.4 var(--display);letter-spacing:.03em}
.fleet-open span{font-size:13px;line-height:1.7;margin-top:8px}
.fleet-open small{font-size:13px;line-height:1.65;color:#6f5132}
.management-open{bottom:298px;font-size:15px;line-height:1.5;min-height:44px;padding:10px 15px}
.task-marker b{font-size:12px;line-height:1.3}
.task-marker span{font-size:13px;line-height:1.4}
dialog{font-size:16px;line-height:1.75;padding:30px;scrollbar-gutter:stable;overscroll-behavior:contain}
.dialog-toolbar{margin-bottom:24px}
.dialog-toolbar .drag-handle{font-size:22px;min-height:50px;letter-spacing:.04em}
.dialog-toolbar .dialog-close{font-size:32px;min-width:44px;min-height:44px}
.island-title>b{font:400 58px/1.1 var(--pirate)}
.island-title h2{font:900 30px/1.4 var(--display)}
.island-title p{font:400 14px/1.7 var(--body);color:#6d573b}
.island-purpose{font:400 20px/1.8 var(--hand);margin-bottom:14px}
.silo{font-size:16px;line-height:1.8;padding:14px;color:#69472b}
.floor{padding:20px;grid-template-columns:100px minmax(0,1fr);gap:18px;margin:16px 0}
.floor-title strong{font:400 38px/1.2 var(--pirate)}
.floor-title span{font:800 18px/1.6 var(--display)}
.floor dl{font:400 16px/1.8 var(--body);grid-template-columns:74px minmax(0,1fr);gap:12px}
.floor dt{font-size:14px;color:#75512d;font-weight:700}
.floor dd{color:#493822;margin:0}
.island-footer{font-size:14px;line-height:1.8;color:#6c5235}
.island-dialog.map-inspect:not(.window-moved){top:178px;width:470px;max-height:calc(100svh - 202px)}
.map-inspect .floor{padding:18px;grid-template-columns:1fr}
.map-inspect .floor-title strong{font-size:32px}
.map-inspect .island-title>b{font-size:48px}
.map-inspect .island-title h2{font-size:28px}
.task-dialog{width:850px}
.task-dialog.task-follow:not(.window-moved){top:178px;width:460px;max-height:calc(100svh - 202px);padding:24px}
.task-hero h2,.task-follow .task-hero h2{font:900 30px/1.5 var(--display);margin:14px 0}
.task-path,.task-follow .task-path{font:700 20px/1.8 var(--body);overflow-wrap:anywhere}
.task-path span,.task-follow .task-path span{font-size:14px;padding:0 4px}
.task-state,.task-row .task-state{font-size:14px;line-height:1.5;padding:7px 10px}
.task-section,.task-follow .task-section{font-size:16px;line-height:1.8;margin:22px 0;color:#503b25}
.task-section h3,.task-follow .task-section h3,.management-panel h3{font:800 24px/1.5 var(--display);margin:22px 0 14px}
.task-section dt{font-size:14px;font-weight:700;color:#72512d}
.task-current,.task-cycle{font-size:15px;line-height:1.8;color:#67492e}
.task-row strong{font:800 20px/1.6 var(--display)}
.task-row small{font-size:14px;line-height:1.8;color:#725739}
.task-replay,.task-follow .bounty-demo{font-size:15px;line-height:1.7}
.transfer-steps span{font-size:13px;line-height:1.5;padding:8px 3px}
.management-panel{font-size:16px;line-height:1.8;color:#513e28}
.management-metrics span{font-size:13px;line-height:1.6;padding:10px 6px}
.management-metrics b{font-size:30px;font-variant-numeric:tabular-nums}
.management-order p{font-size:15px;line-height:1.8}
.bounty-number{font:600 14px/1.6 var(--body);letter-spacing:.1em}
.bounty-mark{font:400 64px/1.15 var(--pirate);letter-spacing:.07em}
.bounty-hero h2{font:900 34px/1.5 var(--display)}
.bounty-hero>p{font:400 20px/1.8 var(--hand);color:#62472b}
.bounty-pair,.bounty-two-islands b{font:400 34px/1.3 var(--pirate)}
.bounty-section h3,.real-case h3,.about-dialog h3{font:800 25px/1.5 var(--display)}
.bounty-section h4{font-size:18px}
.bounty-section p,.bounty-section li,.bounty-two-islands ul,.real-case dl,.about-dialog p{font-size:16px;line-height:1.85;color:#503b25}
.bounty-two-islands span,.case-meta,.evidence-stamp,.case-sources a,.about-dialog a{font-size:14px;line-height:1.8;color:#705232}
.bounty-caption,.task-follow .bounty-caption,.evidence-limit,.fine-print{font-size:14px!important;line-height:1.8!important;color:#6e5335!important}
.evidence-limit ul{font-size:14px}
.victim-line{font-size:16px!important}
.logic-header h2{font:900 28px/1.5 var(--display)}
.logic-story h3{font:800 26px/1.5 var(--display)}
.logic-story p{font-size:16px;line-height:1.85}
.logic-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.step-chip{font-size:14px;line-height:1.5;padding:10px 4px}
.cargo>span,.logic-controls>span{font-size:14px;line-height:1.7}
.cargo>p{font:400 15px/1.85 var(--body)}
.cargo>div{font-size:14px;line-height:1.8}
.logic-controls button{font-size:14px;min-height:42px}
.knowledge-dialog{inset:178px 24px auto auto;width:470px;max-height:calc(100svh - 202px);padding:0 24px 26px}
.knowledge-dialog h2{font:900 30px/1.5 var(--display)}
.knowledge-lead,.skill-detail,.collection-detail,.treasure-empty{font-size:16px;line-height:1.85}
.knowledge-card strong{font:800 21px/1.5 var(--display)}
.knowledge-card span{font-size:15px;line-height:1.8}
.skill-detail h3{font:800 23px/1.5 var(--display)}
.skill-markdown{font:400 15px/1.85 var(--body)}
.treasure-collection small,.collection-badge,#skill-status{font-size:14px;line-height:1.7}
.voyage-kicker{font:400 22px/1.6 var(--hand);letter-spacing:.13em}
#voyage-cover h1{font:900 clamp(38px,4.3vw,64px)/1.4 var(--display);letter-spacing:.04em}
#voyage-cover>p:not(.voyage-kicker){font:400 22px/1.8 var(--hand)}
.voyage-actions button,.voyage-actions a{font:600 16px/1.5 var(--body);padding:15px 20px}
#voyage-cover small{font-size:14px;line-height:1.8}
.voyage-route span{font:400 28px/1.2 var(--pirate)}
.voyage-log-dialog>p{font-size:16px;line-height:1.85}
.voyage-log-grid b{font:400 32px/1.3 var(--pirate)}
.voyage-log-grid span{font-size:15px;line-height:1.7}
@media(min-width:1600px){:root{--panel-width:440px}.map-intro{left:48px;max-width:450px}}
@media(min-width:901px) and (max-width:1200px){:root{--panel-width:360px}.map-intro{left:24px;max-width:300px}.map-intro h1{font-size:38px}.map-intro>p:not(.eyebrow){font-size:18px}.sky-panel,.logic-panel{right:16px;padding:18px}.sky-heading h2{font-size:26px}.brand-copy strong{font-size:23px}.edition{font-size:16px}.island-label{min-width:90px;padding:7px 10px}.island-label b{font-size:24px}.island-label span{font-size:15px}.island-label small{font-size:12px}}
@media(min-width:901px) and (max-height:900px){.sky-panel{display:block}.sky-heading{padding:12px 0}.sky-panel .route-list{height:260px;min-height:180px}.map-intro h1{font-size:40px}.map-intro>p:not(.eyebrow){font-size:18px}.map-intro{top:264px}.fleet-open{max-width:315px}.fleet-open small{display:none}.fleet-open span{margin-top:5px}.management-open{bottom:272px}.fleet-open{bottom:154px}}
@media(max-width:900px){
 body{display:flex;flex-direction:column}body>main{order:3}.masthead{order:0}.expedition-bar{order:1}#islands-account{order:2}
 .masthead{position:relative;height:auto;min-height:90px;padding:12px;flex-wrap:wrap;gap:10px;margin:12px}
 .brand-copy{flex:1;min-width:200px}.brand-copy strong{font-size:23px;letter-spacing:.025em}.brand-copy>span{font-size:14px}
 .brand-stamp{width:46px;height:46px;font-size:28px}.reset-windows{font-size:13px;margin-left:0}.edition{display:none}
 .expedition-bar{position:relative;top:auto;left:auto;right:auto;margin:0 12px;min-height:48px;flex-wrap:nowrap}
 #islands-account{position:relative;top:auto;left:auto;max-width:none;margin:12px;font-size:14px}
 #islands-account small{font-size:13px}.expedition-bar a,.expedition-bar button{font-size:14px;padding:7px 9px}
 .archipelago{margin-right:0;height:860px;min-height:0}
 .map-intro{left:22px;top:24px;max-width:310px}.map-intro h1{font-size:38px;margin:8px 0 12px}.map-intro .eyebrow{font-size:15px}.map-intro>p:not(.eyebrow){font-size:18px;line-height:1.7;margin-bottom:15px}
 .sky-panel{position:relative;top:auto;right:auto;bottom:auto;margin:0 12px 24px;width:auto;max-height:none;padding:22px}
 .sky-panel .route-list{display:grid;grid-template-columns:1fr 1fr;max-height:480px;min-height:220px;gap:12px;margin:16px 0}
 .route-card{margin-bottom:0}.sky-heading h2{font-size:28px}.drag-handle,.sky-panel .drag-handle{font-size:23px}
 .cloud-top>span{font-size:18px}.cloud-top small{font-size:13px}
 .island-label{padding:6px 8px;min-width:86px}.island-label b{font-size:23px}.island-label span{font-size:14px}.island-label small{font-size:12px}
 .map-controls{left:12px;right:auto;padding:4px}.map-controls button,.map-controls #drag-mode{font-size:13px;padding:9px;min-height:42px}.map-controls output{font-size:13px;min-width:37px}
 .map-guide{left:20px;bottom:110px;font-size:13px;max-width:calc(100% - 40px)}.sea-note{left:20px;bottom:14px;font-size:12px}
 .fleet-open{left:20px;bottom:158px;max-width:calc(100% - 40px);padding:12px 14px}.fleet-open strong{font-size:19px}.fleet-open span,.fleet-open small{font-size:13px}
 .management-open{left:20px;bottom:302px;font-size:14px}.ship-caption{display:none}
 .logic-panel{position:fixed;top:auto;bottom:12px;left:12px;right:12px;width:auto;max-height:75svh;padding:20px}
 .logic-header h2{font-size:26px}.logic-story h3{font-size:24px}.logic-story p{font-size:16px;line-height:1.85}.logic-content{grid-template-columns:1fr}.logic-controls button{font-size:14px}
 dialog{padding:22px;max-width:calc(100vw - 24px);max-height:85svh}.dialog-toolbar .drag-handle{font-size:21px}
 .island-dialog.map-inspect:not(.window-moved),.task-dialog.task-follow:not(.window-moved),.knowledge-dialog{top:auto;bottom:12px;left:12px;right:12px;width:auto;max-height:62svh;padding:20px;margin:0}
 .knowledge-dialog{padding-top:0}.task-follow .task-hero h2{font-size:28px}.task-follow .task-path{font-size:18px}.task-follow .task-path span{font-size:14px}.task-follow .task-section{font-size:16px}
 .floor{grid-template-columns:1fr;padding:18px}.floor dl{font-size:16px;grid-template-columns:70px minmax(0,1fr)}.floor-title strong{font-size:32px}
 .island-title h2,.map-inspect .island-title h2{font-size:28px}.island-title>b{font-size:46px}
 .bounty-two-islands{grid-template-columns:1fr}.real-case dl{grid-template-columns:1fr;font-size:16px;gap:5px}.real-case dt{font-size:14px;margin-top:12px}
 .bounty-hero h2{font-size:30px}.bounty-section p,.bounty-section li,.bounty-two-islands ul{font-size:16px}.bounty-hero>p{font-size:19px}
 #voyage-cover h1{font-size:38px}#voyage-cover>p:not(.voyage-kicker){font-size:20px}.voyage-kicker{font-size:18px}.voyage-actions button{font-size:16px}
}
@media(max-width:520px){.brand-copy{min-width:180px}.brand-copy strong{font-size:21px}.brand-copy>span{font-size:13px}.masthead .icon-btn{margin-left:auto}.reset-windows{min-height:38px;font-size:13px;padding:6px 10px}.map-intro h1{font-size:36px}.sky-panel .route-list{grid-template-columns:1fr}.floor dl{grid-template-columns:1fr;gap:6px}.floor dt{margin-top:10px}.floor dd{margin-bottom:8px}.map-controls button,.map-controls #drag-mode{padding:9px 7px}.task-board{grid-template-columns:1fr}.task-section dl{grid-template-columns:1fr}.knowledge-label{width:170px}.knowledge-label span{font-size:16px}.dialog-toolbar .drag-handle{font-size:19px}.dialog-toolbar .drag-handle small{font-size:12px}.route-card strong{font-size:21px}.bounty-mark{font-size:56px}}
/* 左上短箋留白：避免較大的字與島牌混在一起。 */
body:has(.map-intro) .map-intro{top:266px;max-width:310px}
.map-intro h1{font-size:44px;letter-spacing:.01em}
.map-intro::before{content:"";position:absolute;inset:-18px -22px;z-index:-1;background:linear-gradient(90deg,#164c7deb,#164c7dbd 78%,#164c7d00);border-left:2px solid #f3d48c88;pointer-events:none}
.map-intro{z-index:2;isolation:isolate}
.research-open{display:block;width:100%}.filter-label{display:block}
@media(max-width:1599px) and (min-width:901px){.map-intro h1{font-size:40px}body:has(.map-intro) .map-intro{max-width:300px}.map-intro>p:not(.eyebrow){font-size:18px}}
@media(max-width:900px){body:has(.map-intro) .map-intro{top:24px;max-width:310px}.map-intro h1{font-size:38px}}
@media(max-width:520px){.map-intro h1{font-size:36px}}
/* 讓閱讀區與三維島牌各有空間；投影標籤與畫布使用相同的偏移。 */
@media(min-width:901px){
 :root{--intro-rail:350px}
 #world,#labels,#task-markers{left:var(--intro-rail)}
 .knowledge-label{margin-left:var(--intro-rail)}
 .following-task #world,.following-task #labels,.following-task #task-markers{left:0}
 .following-task .knowledge-label{margin-left:0}
}
@media(max-width:900px){
 .archipelago{height:1120px}
 #world,#labels,#task-markers{top:370px}
 .knowledge-label{margin-top:370px}
 .following-task #world,.following-task #labels,.following-task #task-markers{top:0}
 .following-task .knowledge-label{margin-top:0}
}
.map-intro h1{white-space:nowrap}
@media(min-width:1600px){:root{--intro-rail:390px}body:has(.map-intro) .map-intro{max-width:326px}}
