:root{color-scheme:dark;font-family:Segoe UI,sans-serif;color:#d8dfe2;background:#050609}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}canvas{display:block;width:100%;height:100%;outline:none}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;background:linear-gradient(to right,#000 0%,#0009 5%,transparent 18%,transparent 82%,#0009 95%,#000 100%),linear-gradient(to bottom,#000 0%,#0009 5%,transparent 18%,transparent 82%,#0009 95%,#000 100%)}header{position:absolute;top:32px;left:38px}.eyebrow{font-size:10px;letter-spacing:4px;color:#839094}h1{margin:7px 0 9px;font-size:27px;font-weight:300;letter-spacing:8px}.subtitle{margin:0;font-size:11px;letter-spacing:2px;color:#6e7c82}.status{position:absolute;top:38px;right:38px;display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:2px;color:#95a3a7}.dot{width:5px;height:5px;border-radius:50%;background:#79dcf4;box-shadow:0 0 9px #7758ee}footer{position:absolute;bottom:28px;left:38px;right:38px;display:flex;align-items:end;justify-content:space-between;gap:20px}.controls{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:#79888e}kbd{font:10px Segoe UI,sans-serif;color:#bac5c9;border:1px solid #364047;border-radius:3px;padding:3px 5px;margin-right:4px;background:#0b1115a0}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;pointer-events:auto}button,a{font:11px Segoe UI,sans-serif;color:#9daeb5;border:1px solid #273138;background:#0a0f14d9;border-radius:4px;padding:9px 12px;text-decoration:none;cursor:pointer}button:hover,a:hover{border-color:#7963a7;color:#e2daf8}button:focus-visible,a:focus-visible{outline:2px solid #79dcf4;outline-offset:3px}#fps{font-size:10px;color:#5e7079;margin-left:9px;white-space:nowrap}@media (max-width: 700px){header{top:20px;left:20px}h1{font-size:20px}.status{right:20px;top:25px}footer{left:20px;right:20px;bottom:20px;flex-direction:column;align-items:start}.controls{gap:10px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important}}@media (max-width: 1100px){footer{flex-direction:column;align-items:start;gap:16px}}@media (max-width: 700px){.eyebrow{max-width:260px;font-size:9px;letter-spacing:2px}.status{top:84px}.actions{gap:6px}button,a{padding:7px 9px;font-size:10px}}.world-map{position:absolute;right:38px;top:80px;width:176px;padding:12px;border:1px solid #485761;border-radius:6px;background:#090f17dc;pointer-events:auto}.map-title,.map-legend{font-size:9px;letter-spacing:1px;color:#b0c2c9;margin-bottom:8px}.world-map svg{display:block;width:100%;aspect-ratio:1;cursor:crosshair;border:1px solid #4b5962}.map-legend{margin:9px 0 5px;font-size:8px;letter-spacing:.5px}.map-hint{font-size:9px;line-height:1.5;color:#91a4b1}@media (max-width: 700px){.subtitle{max-width:230px;font-size:9px;line-height:1.6}.world-map{right:20px;top:110px;width:116px;padding:8px}.map-title,.map-hint{font-size:8px}.map-legend{font-size:6px}}.district-links{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:8px}.district-links button{padding:6px 3px;font-size:9px;color:#b7cbd7;text-align:left}@media (max-width:700px){.district-links{grid-template-columns:1fr}.district-links button{padding:4px;font-size:8px}.world-map{max-height:calc(100dvh - 340px);overflow-y:auto}}#canvas{touch-action:none;cursor:crosshair}[hidden]{display:none!important}.quest-panel{position:absolute;top:145px;left:38px;width:300px;padding:18px;background:linear-gradient(130deg,#0a1725ef,#0a0e18e0);border:1px solid #3a5663;border-radius:12px;pointer-events:auto;box-shadow:0 12px 40px #0005}.quest-eyebrow{font-size:9px;letter-spacing:2.2px;color:#8db7c2}.quest-panel h2{font-size:18px;font-weight:400;line-height:1.35;margin:12px 0 8px;color:#e7f8fa}.quest-panel p{font-size:12px;line-height:1.65;color:#b0c5ce;margin:8px 0}.song-progress{display:flex;gap:8px;margin:15px 0}.song-progress span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #405563;border-radius:50%;color:#91a3b0;font-family:Georgia,serif}.song-progress .lit{color:#fff0ba;border-color:#edc46e;background:#80602138;box-shadow:0 0 16px #d8ac4525}.quest-buttons{display:flex;gap:7px}.quest-buttons button{flex:1;padding:10px 6px}#adventure-call{color:#d8f9ff;border-color:#4e99ad;background:#184353}button:disabled{cursor:default;opacity:.5}.chapter-choices{display:grid;gap:6px;margin:15px 0 8px}.chapter-choices button{text-align:left;padding:9px;font-size:12px}.chapter-choices span{display:inline-block;width:24px;color:#95c6d3;font-family:Georgia,serif}.chapter-choices .restored{border-color:#98814c;color:#ecd8a7}.quest-tools{display:flex;flex-wrap:wrap;gap:4px;margin-top:10px}.quest-tools button{border:0;background:transparent;padding:7px 3px;font-size:10px}.quest-panel .save-feedback{min-height:15px;margin-bottom:0;font-size:10px;color:#98b1ad}#call-progress{display:block;width:100%;height:5px;margin-top:10px;accent-color:#91e3ef}.story-message{position:absolute;left:calc(50% + 150px);bottom:145px;transform:translate(-50%);max-width:500px;width:calc(100% - 400px);padding:16px 24px;border:1px solid #4e728183;border-radius:8px;background:#091420eb;color:#edf6fa;text-align:center;font-size:14px;line-height:1.65;pointer-events:none}.skip-reveal{position:absolute;left:50%;bottom:115px;transform:translate(-50%);pointer-events:auto}.adventure-dialog{color:#deedf3;border:1px solid #4c697a;border-radius:18px;width:min(520px,calc(100% - 32px));padding:38px;max-height:calc(100dvh - 32px);background:radial-gradient(ellipse at top,#18344a,#0a111e 70%);overflow-y:auto;box-shadow:0 25px 90px #0009}.adventure-dialog::backdrop{background:#030710c9;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.menu-eyebrow{color:#9dc6d0;font-size:10px;letter-spacing:3px}.adventure-dialog h2{font-family:Georgia,serif;font-size:34px;font-weight:400;letter-spacing:4px;margin:17px 0 12px}.adventure-dialog .menu-subtitle{font-family:Georgia,serif;color:#e8d6ad;font-size:20px}.adventure-dialog p{line-height:1.8;color:#aac1ce;font-size:13px}.adventure-dialog .primary{width:100%;margin:15px 0;padding:14px;font-size:14px;color:#ecfcff;background:#20566b;border-color:#6eabbc}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:14px}.settings-grid label{font-size:12px;color:#aac1ce}.settings-grid input{display:block;width:100%;accent-color:#88d5e9;margin:10px 0}.assist-option{display:block;margin:15px 0;font-size:13px}.assist-option input{accent-color:#88d5e9}.assist-option small{display:block;margin:6px 0 0 23px;font-size:11px;color:#95aebe}.menu-secondary{display:flex;flex-wrap:wrap;gap:6px}.adventure-dialog details{margin-top:15px;font-size:11px;color:#95aebe}.adventure-dialog summary{cursor:pointer;padding:5px 0}.adventure-dialog details a{font-size:10px;display:inline-block;padding:4px 5px}.menu-about{pointer-events:auto;max-width:100%}.menu-about summary{cursor:pointer;padding:5px 0;font-size:11px;color:#aac1ce}.adventure-dialog .menu-about h2{font-family:inherit;font-size:16px;font-weight:400;letter-spacing:normal;line-height:1.5}.menu-about h3{font-size:13px;font-weight:400;color:#deedf3}.javascript-notice{position:fixed;top:35%;left:50%;transform:translate(-50%);width:min(520px,calc(100% - 32px));padding:24px;border:1px solid #4c697a;border-radius:12px;background:#0a111e;color:#deedf3;line-height:1.8}body:not(.diagnostics) .movement-status,#fps,.actions a{display:none}.diagnostics .movement-status{display:flex}.diagnostics #fps,.diagnostics .actions a{display:inline}.world-map{top:80px;width:156px;background:#08111beb}.controls{max-width:720px;font-size:10px;gap:10px}@media (max-width:850px){.quest-panel{left:20px;width:255px;padding:13px}.quest-panel h2{font-size:15px}.world-map{right:20px;width:130px}.story-message{bottom:150px;font-size:12px;padding:12px}}@media (max-width:600px){.quest-panel{top:auto;bottom:76px;left:12px;width:calc(100% - 24px);padding:12px}.quest-eyebrow,.song-progress,.quest-panel #quest-detail{display:none}.quest-panel h2{margin:0 0 8px;font-size:14px}.quest-buttons button{padding:10px}.chapter-choices{grid-template-columns:repeat(3,1fr);gap:4px;margin:8px 0}.chapter-choices button{font-size:10px;padding:7px 4px}.chapter-choices span{display:none}.quest-tools{margin:5px 0 0}.quest-panel .save-feedback{margin:0;font-size:9px}footer{left:12px;right:12px;bottom:16px}.controls{display:none}.world-map{width:112px;max-height:200px;top:110px;right:12px}.world-map .map-hint,.world-map .district-links,.map-legend{display:none}.story-message{bottom:auto;top:105px;left:12px;transform:none;width:calc(100% - 148px);font-size:11px;padding:10px}.skip-reveal{bottom:315px}.adventure-dialog{padding:24px}.adventure-dialog h2{font-size:26px}}.movement-status{position:absolute;top:56px;right:38px;display:flex;align-items:center;gap:7px;padding:4px 7px;border:1px solid #485761;border-radius:4px;background:#090f17ec;color:#b7cbd7;font-size:10px;letter-spacing:1px}.movement-status:before{content:"›";font-size:16px;line-height:12px}.movement-status[data-state=running]{color:#c5f6ff;border-color:#79dcf4}.movement-status[data-state=running]:before{content:"»"}.movement-status[data-state=idle]:before,.movement-status[data-state=paused]:before{content:"·"}.movement-status[data-state=blocked]:before{content:"!"}@media (max-width: 700px){.movement-status{top:77px;right:20px}.status{top:59px}}.lantern-completion{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;overflow:hidden;pointer-events:none;opacity:0;isolation:isolate;background:radial-gradient(ellipse at center,#087af542,#02519d24 38%,#020d24a8)}.lantern-completion:before,.lantern-completion:after{content:"";position:absolute;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,#20baff66 25%,#99f5ff 50%,#20baff66 75%,transparent);box-shadow:0 0 22px #009dff88}.lantern-completion:before{top:22%}.lantern-completion:after{bottom:22%}.lantern-completion-halo{position:absolute;width:min(70vw,580px);aspect-ratio:1;border:1px solid #44bdff24;border-radius:50%;background:radial-gradient(circle,#0587ff22,transparent 67%);box-shadow:0 0 100px #007eff20,inset 0 0 90px #007eff18}.lantern-completion-copy{position:relative;padding:24px;text-align:center;color:#a6eaff}.lantern-completion-icon{width:52px;height:65px;stroke:#b3f4ff;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 8px #00aaff) drop-shadow(0 0 20px #006eff);margin-bottom:22px}.lantern-completion-kicker{font-size:11px;letter-spacing:.42em;color:#8cdcff;margin-bottom:16px}.lantern-completion-title{font-size:clamp(32px,7vw,88px);font-weight:300;letter-spacing:.18em;padding-left:.18em;line-height:1.15;color:#c2f6ff;text-shadow:0 0 12px #00bbffb0,0 0 36px #008cff90,0 0 80px #006bff70}.lantern-completion-rule{width:100px;height:1px;margin:27px auto 20px;background:#89e4ff;box-shadow:0 0 12px #00baff}.lantern-completion-label{margin:0;font-size:clamp(12px,2vw,16px);letter-spacing:.12em;color:#a7dbf1;text-shadow:0 0 15px #008dff}@media (max-width:600px){.lantern-completion:before{top:25%}.lantern-completion:after{bottom:25%}}.quest-panel .lantern-instructions{padding:10px 12px;border:1px solid #398caa;border-left:3px solid #59dbff;border-radius:6px;background:#072637;color:#dcf8ff;font-size:12px;line-height:1.5}.quest-panel .lantern-instructions.ready{border-color:#8df4e1;background:#0a343b}#call-progress{accent-color:#35dfff;height:9px}.market-plaque{margin:10px 0;padding:10px;border:1px solid #6fbdc7;border-radius:8px;background:#10252bee}.market-plaque[hidden]{display:none}.market-plaque p{margin-bottom:0}#market-symbols{display:flex;gap:8px;margin-top:8px}#market-symbols>span{flex:1;text-align:center;border:1px solid #476a70;border-radius:5px;padding:4px}#market-symbols svg{display:block;width:32px;height:32px;margin:auto;fill:none;stroke:currentColor;stroke-width:.09}#market-symbols small{display:block}#market-symbols .complete{color:#ffda85;border-color:#ffda85}#market-symbols .clue{outline:2px solid #ffda85}@media (min-width: 661px){.quest-panel{max-height:calc(100vh - 180px);overflow-y:auto}}.overlay.puzzle-focus{background:none}.overlay.puzzle-focus>header,.overlay.puzzle-focus>.status,.overlay.puzzle-focus>.movement-status,.overlay.puzzle-focus>footer,.overlay.puzzle-focus>.world-map{display:none}.puzzle-focus .quest-panel{top:auto;bottom:20px;padding:12px}.puzzle-focus .quest-eyebrow,.puzzle-focus #quest-objective,.puzzle-focus #quest-detail,.puzzle-focus .song-progress,.puzzle-focus #chapter-choices,.puzzle-focus #save-feedback,.puzzle-focus #adventure-recall{display:none}.puzzle-focus .quest-tools{margin-top:4px}.puzzle-focus .story-message{left:50%;bottom:auto;top:20px;width:min(500px,calc(100% - 140px))}.focus-menu{position:absolute;top:20px;right:20px;pointer-events:auto;min-height:44px}@media (max-width:600px){.puzzle-focus .quest-panel{bottom:12px}.puzzle-focus .story-message{left:12px;transform:none;width:calc(100% - 100px);padding:10px}.focus-menu{right:12px}}.mobile-quest-toolbar{display:none}@media (max-width:700px),(pointer:coarse) and (max-height:500px){.overlay{background:none}.overlay>header,.overlay>.status,.overlay>.movement-status,.overlay>footer{display:none}.overlay .quest-panel{top:auto;bottom:max(8px,env(safe-area-inset-bottom));left:max(8px,env(safe-area-inset-left));width:min(320px,calc(100% - 16px));padding:8px;border-radius:9px;max-height:45dvh;overflow-y:auto}.quest-panel .quest-eyebrow,.quest-panel .song-progress,.quest-panel #quest-detail,.quest-panel #save-feedback{display:none}.quest-panel h2{margin:0 0 6px;font-size:12px;line-height:1.35}.quest-panel:not(.mobile-expanded) .lantern-instructions,.quest-panel:not(.mobile-expanded) .chapter-choices,.quest-panel:not(.mobile-expanded) .quest-tools{display:none}.quest-panel .quest-buttons{gap:5px}.quest-panel .quest-buttons button{min-height:44px;padding:6px;font-size:11px}.mobile-quest-toolbar{display:flex;justify-content:space-between;gap:6px;margin-top:2px}.mobile-quest-toolbar button{min-height:44px;padding:6px 12px;border:0;background:transparent;font-size:11px}.quest-panel .quest-tools{margin:0}.quest-panel .quest-tools button{min-height:44px;padding:6px 8px}.quest-panel #adventure-menu{display:none}.quest-panel .lantern-instructions{font-size:11px;line-height:1.4;padding:6px 8px;margin:6px 0}.quest-panel .market-plaque{margin:0 0 6px;padding:5px;font-size:11px}.quest-panel:not(.mobile-expanded) .market-plaque strong,.quest-panel:not(.mobile-expanded) .market-plaque p,.quest-panel:not(.mobile-expanded) #market-symbols small{display:none}#market-symbols{gap:4px;margin-top:0}#market-symbols>span{padding:3px;font-size:10px}#market-symbols svg{width:22px;height:22px}.quest-panel .chapter-choices{grid-template-columns:repeat(3,1fr);gap:4px}.quest-panel .chapter-choices button{min-height:44px;padding:6px 4px;font-size:10px}.overlay .world-map{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));width:76px;padding:4px;max-height:none}.world-map .map-title,.world-map .map-hint,.world-map .map-legend,.world-map .district-links{display:none}.overlay .story-message{top:max(8px,env(safe-area-inset-top));bottom:auto;left:max(8px,env(safe-area-inset-left));transform:none;width:min(360px,calc(100% - 100px));padding:7px 9px;font-size:11px;line-height:1.4}.overlay .focus-menu{top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right))}.skip-reveal{bottom:max(12px,env(safe-area-inset-bottom));min-height:44px}.adventure-dialog{width:min(420px,calc(100% - 20px));padding:18px;max-height:calc(100dvh - 20px)}.adventure-dialog h2{font-size:24px;margin:10px 0}.adventure-dialog .menu-subtitle{font-size:16px}.adventure-dialog p{font-size:12px;line-height:1.5}.adventure-dialog button{min-height:44px}.settings-grid{gap:12px}}.lantern-guidance{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;pointer-events:none;color:#79e9f4}.lantern-guidance[hidden]{display:none}.lantern-guidance-arrow{position:absolute;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));width:28px;height:28px;display:grid;place-items:center;border:1px solid #5ecdda80;border-radius:5px;background:#07171ee8;box-shadow:0 0 12px #36d9e329}.lantern-guidance-arrow svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transform:rotate(var(--lantern-bearing));filter:drop-shadow(0 0 3px #56dae8)}@media (max-width:660px){.lantern-guidance-arrow{top:max(3px,env(safe-area-inset-top));right:max(3px,env(safe-area-inset-right));width:24px;height:24px}}
