:root{--cream:#f1e7d2;--gold:#eac68b;--aqua:#9bd9c9;--muted:#aac0bd;--panel:#102c36f2;--line:#afcebf35}button{border-radius:12px;font-weight:500;display:inline-flex;align-items:center;gap:12px;min-height:44px;box-shadow:inset 0 1px #d8ead009,0 5px 14px #0000000a}button span{float:none;margin:0}button .arrow{margin-left:auto}.icon{width:23px;height:23px;flex:none;vertical-align:middle}button.primary{background:linear-gradient(120deg,#f1dfba,#dcb87d);border-color:#edd3a2;color:#173039;box-shadow:inset 0 1px #fff8,0 9px 24px #020b1238}.primary:hover{background:linear-gradient(120deg,#c5edda,#91cdbc);border-color:#bfe9d7}button:focus-visible,select:focus-visible,input:focus-visible,.gamepad-active :is(button,select,input):focus{outline:3px solid #efcf8f;outline-offset:3px}.button-copy{display:flex;flex-direction:column;gap:6px;text-align:left;line-height:1.2}.button-copy b{font-size:14px}.button-copy small{font-size:10px;font-weight:400;opacity:.7;letter-spacing:.2px}.text-button{background:transparent;border-color:transparent;box-shadow:none;min-height:38px;font-size:12px;color:var(--muted);padding:9px 8px}.text-button:hover{background:#94bfb410;color:var(--cream);border-color:transparent}.global-menu{position:fixed;z-index:30;right:max(24px,env(safe-area-inset-right));top:max(20px,env(safe-area-inset-top));padding:11px 20px;border:1px solid #cbd7bc55;border-radius:30px;background:#102a35e8;backdrop-filter:blur(12px);color:var(--cream);box-shadow:0 7px 25px #00121c44}.global-menu b{font-size:11px;letter-spacing:2px}.global-menu .icon{width:19px;height:19px}.title-screen{background:linear-gradient(90deg,#081d28f5 0%,#0c2539cc 27%,#0b233860 48%,transparent 80%)}.edition{padding-right:170px}.edition .icon{width:30px;height:30px}.edition-right{font-size:9px;letter-spacing:2px}.title-copy{top:clamp(100px,16vh,175px);max-width:46vw;width:510px}.title-copy h1{font-size:clamp(58px,6.8vw,100px);letter-spacing:-6px;margin-bottom:28px}.title-copy .eyebrow{letter-spacing:2px;font-size:9px}.premise{font-size:15px;line-height:1.7;margin-bottom:22px}.title-actions{max-width:355px;gap:10px}.title-actions button{border-radius:17px;padding:15px 20px;min-height:66px;width:100%}.title-actions .icon{width:27px;height:27px}.title-actions #newGame:not(.primary){background:#183842c7}.title-links{max-width:390px;gap:22px;margin-top:12px;flex-wrap:wrap}.title-links button{font-size:11px;padding:3px 0;min-height:34px;box-shadow:none;border-radius:0}.title-control-picker{margin-top:6px;max-width:355px;justify-content:space-between}.title-control-picker select{border-radius:20px;min-height:37px;background:#183a43c9;padding:7px 13px}.title-caption{right:7%;top:76%;border-left-color:#cae0c078}.title-caption strong{font-family:Georgia,serif;font-size:24px;letter-spacing:4px}.title-caption span:last-child{max-width:210px}footer{font-size:8px;letter-spacing:1.6px}.topline{padding:24px 28px}.top-actions{padding-right:162px;align-items:center;gap:13px}.top-actions button{border-radius:24px;min-height:42px;padding:8px 15px;font-size:10px;letter-spacing:1px}.top-actions button .icon{width:17px;height:17px}#inputBadge{font-size:8px;letter-spacing:1px;padding:0}.chapter h2{font-size:28px;margin-top:6px}.objective{top:112px;left:28px;width:300px;border:1px solid #e1c49940;border-radius:0 20px 20px 20px;padding:17px 19px;background:linear-gradient(120deg,#122d3cef,#123440ac);box-shadow:0 10px 30px #051b2820;gap:9px}.objective:before{content:'';position:absolute;top:-1px;left:-1px;width:48px;height:3px;background:var(--gold)}.objective strong{font-size:14px;line-height:1.55}.objective #objectiveProgress{font-size:10px;color:var(--aqua);line-height:1.4}.objective .text-button{pointer-events:auto;align-self:flex-start;padding:0;min-height:24px;font-size:10px}#missionNumber{font-size:8px;letter-spacing:1.4px;color:var(--gold)}.bottomline{padding:30px 28px 24px;gap:35px}.vitals{width:205px}.bar{border-radius:8px;height:5px}.vital-label{font-size:8px;letter-spacing:1.3px}.abilities{gap:30px}.abilities kbd{border-radius:8px;font-size:9px;padding:9px 12px}.abilities>div{font-size:8px;letter-spacing:1.4px;gap:8px}.score strong{font-size:25px;color:#ebd0a5}.score span{max-width:225px;line-height:1.4;font-size:8px;letter-spacing:.7px}.world-label span{border-radius:12px;background:#113541e8;font-size:9px;padding:6px 11px}.world-label i{border-radius:5px}.world-label small{background:#102c35dd;border-radius:5px;padding:3px 6px}#dialogue{border-radius:18px;border:1px solid #d6c09830;background:#102934eb;bottom:146px;padding:15px 24px;font-size:12px;max-width:580px;box-shadow:0 10px 30px #04152044}#contextTip{top:auto;bottom:111px;left:50%;max-width:590px;background:transparent;text-shadow:0 2px 5px #000;font-size:10px;padding:4px}#contextAction{position:absolute;pointer-events:auto;bottom:205px;left:50%;transform:translateX(-50%);border-radius:30px;background:#ead5af;color:#17303a;border-color:#fff6;box-shadow:0 10px 35px #0006;min-height:50px;padding:10px 20px}#contextAction kbd{color:inherit;background:#c6b48f;border:0}.panel{position:relative;border-radius:26px;border:1px solid #cad7bf42;background:radial-gradient(ellipse at 0 0,#28505ac9,transparent 58%),linear-gradient(145deg,#17353ff5,#0b2430fa);box-shadow:0 35px 100px #020b15a8,inset 0 1px #e6edda18;padding:34px;max-height:88vh;overflow:auto}.panel:before{content:'';pointer-events:none;position:absolute;right:25px;top:22px;width:66px;height:66px;border:1px solid #e9ce9220;border-radius:50%;box-shadow:0 0 0 9px #d5dfc107}.panel h2{font:40px/1.15 Georgia,serif;letter-spacing:-1.2px;margin:0 0 10px}.panel h3{font-family:Georgia,serif;font-weight:400;color:var(--gold)}.panel p{line-height:1.7}.panel .lead{font-size:15px;color:#d2e0d8;max-width:720px}.panel>button{border-radius:16px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:20px}.panel-heading>.icon,.panel-heading>[data-icon] .icon{width:42px;height:42px;color:var(--gold);margin-right:15px}.panel-heading .eyebrow{margin:0 0 9px}.overlay{background:#05152190;backdrop-filter:blur(10px)}.flight-deck{width:810px;max-width:calc(100vw - 40px);padding:35px 39px 22px}.deck-heading{display:flex;gap:24px;align-items:center;margin-bottom:26px}.deck-heading>.icon,.deck-heading>[data-icon] .icon{width:65px;height:65px;color:var(--gold)}.deck-heading h2{font-size:40px}.deck-heading .eyebrow{margin:0 0 9px}.deck-heading p:last-child{font-size:12px;color:var(--muted);margin:8px 0 0}.deck-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.deck-grid button{border-radius:17px;padding:19px 18px;min-height:82px;background:linear-gradient(125deg,#294c5366,#102e37b0);border-color:#b9c8a72b}.deck-grid button.primary{background:linear-gradient(120deg,#f1dfba,#dcb87d)}.deck-grid button:not(.primary)>.icon,.deck-grid button:not(.primary)>[data-icon] .icon{color:var(--gold)}.deck-grid button .icon{width:29px;height:29px}.deck-grid .button-copy b{font-size:13px}.deck-grid .button-copy small{font-size:10px;line-height:1.5}.deck-footer{display:flex;justify-content:space-between;gap:15px;margin-top:22px;border-top:1px solid #a7c3b426;padding-top:9px}.deck-footer .icon{width:17px;height:17px}.settings-panel{width:850px}.settings-grid{grid-template-columns:1fr 1fr;gap:35px}.settings-grid label{margin-bottom:17px;font-size:12px}.settings-grid select,.practice-destination select{border-radius:11px;min-height:44px;padding:10px 12px;background:#1b4148;border:1px solid #a5bfab44;color:var(--cream)}.setting-feature{border-radius:16px;border:1px solid #d8c09648;padding:18px;margin-bottom:24px;background:#bccea70b}.setting-feature p{font-size:11px;color:var(--muted);margin:6px 0 11px}.setting-feature .small{font-size:7px;letter-spacing:1px}.setting-feature label{margin-bottom:9px;color:var(--gold)}.settings-grid input[type=range]{width:100%;min-height:23px}.settings-grid .check{font-size:11px;gap:10px;margin:14px 0}.settings-grid input[type=checkbox]{width:17px;height:17px;flex:none}.control-list{padding-left:27px}.control-list h3{font-family:Arial,Helvetica,sans-serif;font-size:10px;letter-spacing:1.5px}.control-list p{font-size:11px;line-height:1.7}.control-list kbd{border-radius:7px;padding:6px 8px;margin-right:5px}.note{padding:15px 18px;border-left:2px solid #cdb27b6b;background:#0b26365e;border-radius:0 12px 12px 0;font-size:12px;color:var(--muted)}.panel-done{position:sticky;bottom:-20px;z-index:2;justify-content:space-between;margin-top:24px!important;width:100%}.guide-panel{width:940px}.guide-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:32px;padding-right:40px}.guide-tabs button{font-size:11px;min-height:37px;padding:8px 14px;border-radius:22px}.guide-tabs button.active{background:#d1dec1;color:#1a373f;border-color:#d1dec1}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0}.guide-grid article{padding:21px;border:1px solid #aac3ae25;border-radius:17px;background:#8dadab08}.guide-grid h3{margin:0 0 9px;font-size:21px}.guide-grid p{font-size:12px;color:#b8ceca;margin:0;line-height:1.8}.panel-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.panel-actions button{font-size:12px;padding:12px 20px}.map-panel{width:1180px;max-height:91vh}.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:24px}.map-layout canvas{display:block;width:100%;height:auto;border:1px solid #bdcbaa30;border-radius:18px;background:#0b2530;touch-action:none}.map-legend{font-size:8px!important;letter-spacing:1px;color:var(--muted);text-align:center}.district-list{display:flex;flex-direction:column;gap:9px}.district-list button{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border-radius:14px;text-align:left;font-size:12px;min-height:60px}.district-list b{font-family:Georgia,serif;font-weight:400;font-size:18px;display:block}.district-list small{font-size:9px;display:block;color:var(--muted);margin-top:5px}.district-list .district-dot{width:7px;height:7px;border-radius:50%;margin-top:6px;flex:none}.log-panel{width:900px}.log-current{border:1px solid #e9c38c44;border-radius:18px;padding:22px;background:#d8c28d0a;margin:20px 0}.log-current .eyebrow{margin-bottom:10px}.log-current h3{margin:0 0 9px;font-size:25px}.log-current p{font-size:12px;color:var(--muted)}.mission-steps{list-style:none;padding:0;margin:15px 0}.mission-steps li{display:flex;gap:12px;padding:8px 0;font-size:12px;color:var(--muted)}.mission-steps li.current{color:var(--cream)}.mission-steps li.done{color:#95bcad}.mission-steps .icon{width:15px;height:15px}.chapter-log{border:1px solid #a4c4b825;border-radius:13px;padding:13px 16px;margin:9px 0}.chapter-log summary{cursor:pointer;font:18px Georgia,serif;color:#e7d9bb}.chapter-log ul{list-style:none;padding-left:0}.chapter-log li{font-size:11px;padding:7px 0;border-bottom:1px solid #b8d3bf12;color:var(--muted)}.chapter-log li.done{color:var(--aqua)}.side-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #a4c4b825;border-radius:14px;padding:14px;margin:10px 0}.side-card h3{font-size:19px;margin:0 0 7px}.side-card p{margin:0;font-size:11px;color:var(--muted)}.side-card button{font-size:10px;min-height:35px;padding:8px 12px}.practice-panel{width:870px}.practice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:27px 0}.practice-grid button{display:flex;flex-direction:column;align-items:flex-start;border-radius:19px;padding:25px 20px;background:radial-gradient(circle at 0 0,#70a39222,transparent 80%);min-height:185px;gap:13px}.practice-grid .icon{width:36px;height:36px;color:var(--gold)}.practice-grid b{font:22px Georgia,serif;font-weight:400}.practice-grid small{font-size:11px;line-height:1.7;color:var(--muted)}.practice-destination{display:flex;align-items:center;gap:16px;font-size:12px}.practice-destination select{flex:1}.contact-screen{position:fixed;inset:0;z-index:12;display:flex;justify-content:flex-end;align-items:center;background:linear-gradient(90deg,transparent 30%,#061923bb);padding:5vw;pointer-events:none}.contact-panel{width:470px;pointer-events:auto}.contact-panel .lead{font:23px/1.65 Georgia,serif;color:#e3d8bd}.request-card{border-top:1px solid #b2c8b82b;margin:25px 0;padding-top:23px}.request-card h3{font-size:25px;margin:12px 0}.request-card p{font-size:12px;color:var(--muted)}.failure-panel{text-align:center;width:430px;padding:40px}.panel-emblem .icon{width:53px;height:53px;color:var(--gold);margin-bottom:20px}.failure-panel>button{justify-content:center}.ending-copy .primary{border-radius:24px}.city-top{padding-right:190px}.city-top button{border-radius:25px}.city-bottom{max-width:900px;background:linear-gradient(transparent,#0a2635df);border-top-right-radius:40px}.city-tools select{border-radius:12px}#miniMapButton{position:absolute;right:27px;bottom:139px;width:164px;height:181px;background:transparent;border:0;box-shadow:none;padding:0;display:flex;flex-direction:column;gap:5px;pointer-events:auto;border-radius:50%}#miniMap{width:158px;height:158px;border-radius:50%;border:1px solid #cbd5b64d;box-shadow:0 5px 30px #05182466}#miniMapButton>span{font-size:7px;letter-spacing:2px;color:#c5d9c9}#objectiveBearing{position:absolute;width:44px;height:46px;text-align:center;pointer-events:none;color:var(--gold);filter:drop-shadow(0 2px 4px #0008)}#objectiveBearing>span{display:block;font-size:24px}#objectiveBearing small{white-space:nowrap;font-size:9px;background:#12303bd9;border-radius:5px;padding:3px 5px}#practiceControls{position:absolute;right:213px;top:84px;display:flex;align-items:center;gap:12px;pointer-events:auto}#practiceControls>span{font-size:9px;letter-spacing:1px;color:var(--aqua);max-width:260px}#practiceControls button{border-radius:20px;min-height:34px;padding:8px 14px;font-size:10px}#demoControls{right:214px;bottom:158px}#demoControls button{border-radius:18px;min-height:36px}#qa{top:auto;bottom:8px;left:8px;right:auto;width:180px;max-height:75vh;overflow:auto;z-index:50;border-radius:10px;background:#061a24ef}#qa summary{cursor:pointer;color:var(--gold);padding:5px;font-size:10px}#qa label{margin:5px 0}#qa button{min-height:30px;border-radius:7px}#qa output{padding:5px}.quality-low .overlay{backdrop-filter:none}.quality-low .global-menu{backdrop-filter:none}
@media(max-height:850px){.title-copy{top:95px}.title-copy h1{font-size:clamp(50px,6vw,76px);margin-bottom:20px}.title-copy .eyebrow{margin-bottom:18px}.premise{margin-bottom:17px;font-size:14px}.title-actions button{min-height:56px;padding:11px 17px}.title-links{margin-top:8px}.title-caption{top:74%}.panel{max-height:88vh;padding:26px}.deck-grid button{min-height:72px;padding:15px}.deck-heading{margin-bottom:20px}.panel h2{font-size:35px}}
@media(max-width:1000px){.map-layout{grid-template-columns:minmax(0,1fr) 200px}.title-copy{width:440px;max-width:55vw}.title-copy h1{font-size:clamp(58px,8vw,85px)}.edition-right{display:none}.chapter h2{font-size:24px}.objective{width:265px}.top-actions{padding-right:145px;gap:7px}.global-menu{padding:10px 15px}.panel{max-width:calc(100vw - 30px)}.practice-grid{gap:9px}.practice-grid button{padding:20px 15px}.contact-panel{width:410px}.contact-screen{padding:25px}}
body[data-controls=touch] #miniMapButton{top:115px;bottom:auto;right:22px;width:123px;height:142px}body[data-controls=touch] #miniMap{width:120px;height:120px}body[data-controls=touch] #contextAction{bottom:210px}body[data-controls=touch] #practiceControls{top:81px;right:25px}body[data-controls=touch] #hud #contextTip{bottom:210px;top:auto;max-width:430px}body[data-controls=touch] #hud #dialogue{bottom:280px}
@media(max-width:740px){.panel{padding:23px}.panel h2{font-size:32px}.deck-heading{gap:17px}.deck-heading .icon{width:48px;height:48px}.deck-grid{gap:9px}.deck-grid button{padding:15px 12px;gap:10px}.deck-grid .button-copy b{font-size:12px}.deck-grid .button-copy small{font-size:9px}.deck-grid .icon{width:23px;height:23px}.settings-grid{grid-template-columns:1fr}.control-list{padding-left:0;border-left:0}.guide-grid{gap:10px}.guide-grid article{padding:17px}.guide-grid h3{font-size:20px}.map-layout{grid-template-columns:1fr}.district-list{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.district-list button{padding:10px;min-height:50px}.district-list b{font-size:15px}.district-list small{font-size:8px}.map-layout canvas{max-height:39vh}.practice-grid b{font-size:20px}.practice-grid small{font-size:10px}.topline{padding:20px}.chapter h2{font-size:22px}.chapter>span{font-size:8px;letter-spacing:1px}.objective{left:20px;top:99px;width:240px;padding:14px}.objective strong{font-size:12px}.global-menu{right:17px;top:16px;min-height:42px}.global-menu b{font-size:9px}.top-actions{padding-right:112px}.top-actions #inputBadge{display:none}#miniMapButton{right:20px;width:125px;height:143px}#miniMap{width:120px;height:120px}#dialogue{max-width:65%;font-size:11px}.bottomline{padding:24px 20px;gap:15px}.score{display:none}.title-copy{max-width:80vw;top:130px;left:7vw}.title-copy h1{font-size:clamp(56px,11vw,78px)}.title-caption{display:none}.title-screen{background:linear-gradient(90deg,#091e2bf0,#0b2338a8 65%,#0b23384a)}footer span:last-child{display:none}}
@media(max-width:500px){.title-copy{top:99px;max-width:88vw}.title-copy h1{font-size:clamp(45px,13.5vw,65px);letter-spacing:-4px;margin-bottom:18px}.title-copy .eyebrow{font-size:7px;letter-spacing:1.3px;margin-bottom:17px}.premise{font-size:13px;line-height:1.6;margin-bottom:18px}.title-actions{max-width:315px}.title-actions button{min-height:59px;padding:12px 16px}.button-copy b{font-size:12px}.button-copy small{font-size:9px}.title-links{gap:18px}.title-links button{font-size:10px}.title-control-picker{font-size:8px}.title-copy #saveStatus{font-size:9px;line-height:1.6}.edition{font-size:8px;letter-spacing:2px;padding:0}.edition .icon{width:25px;height:25px}.title-screen{padding:25px}.global-menu{min-height:38px;padding:8px 13px;gap:7px;right:14px;top:16px}.global-menu .icon{width:17px;height:17px}.global-menu b{font-size:8px}.panel{max-width:calc(100vw - 20px);padding:22px;max-height:88vh;border-radius:22px}.panel h2{font-size:30px}.panel-heading .icon{width:32px;height:32px;margin-right:6px}.panel:before{right:12px;top:16px;width:48px;height:48px}.panel .eyebrow{font-size:8px;letter-spacing:1.4px}.deck-heading .icon{width:37px;height:37px}.deck-heading h2{font-size:30px}.deck-heading p:last-child{font-size:11px}.deck-grid{grid-template-columns:1fr;gap:8px}.deck-grid button{min-height:64px}.deck-grid .button-copy b{font-size:12px}.deck-grid .button-copy small{font-size:10px}.deck-footer{flex-wrap:wrap;margin-top:13px}.guide-tabs{gap:5px;padding-right:0;margin-bottom:25px}.guide-tabs button{font-size:10px;padding:7px 11px}.guide-grid{grid-template-columns:1fr}.panel .lead{font-size:13px}.panel-actions{flex-direction:column}.panel-actions button{width:100%;justify-content:center}.district-list{grid-template-columns:1fr 1fr}.practice-grid{grid-template-columns:1fr}.practice-grid button{min-height:110px;display:grid;grid-template-columns:40px 1fr;gap:7px 14px;padding:18px}.practice-grid button .icon{grid-row:span 2}.practice-grid button small{grid-column:2}.practice-destination{flex-direction:column;align-items:stretch;gap:8px}.contact-screen{align-items:flex-end;padding:12px;background:linear-gradient(transparent,#061923bb 50%)}.contact-panel{width:100%;max-height:61vh}.contact-panel .lead{font-size:18px}.chapter h2{font-size:19px;max-width:185px}.chapter>span{font-size:7px}.top-actions{padding-right:90px}.top-actions button{padding:8px;min-height:35px;font-size:0;gap:0}.top-actions .icon{width:18px;height:18px}.objective{width:205px;top:96px;left:17px;padding:13px;gap:7px}.objective strong{font-size:11px}.objective #objectiveProgress{font-size:9px}.objective #logButton{font-size:9px}.vitals{width:155px}#dialogue{max-width:88%;width:auto;bottom:210px;padding:11px 15px;font-size:11px}#contextTip{bottom:176px;max-width:90%;width:90%;font-size:9px}#contextAction{bottom:260px;font-size:11px;padding:8px 15px}#miniMapButton{bottom:100px;right:15px;width:104px;height:120px}#miniMap{width:100px;height:100px}#practiceControls{top:75px;right:17px;gap:4px}#practiceControls>span{display:none}#practiceControls button{font-size:8px;min-height:29px;padding:6px 10px}#demoControls{bottom:250px;right:16px}body[data-controls=touch] #miniMapButton{top:112px;right:14px;width:88px;height:104px}body[data-controls=touch] #miniMap{width:84px;height:84px}body[data-controls=touch] #contextAction{bottom:275px}body[data-controls=touch] #practiceControls{top:73px;right:16px}body[data-controls=touch] #hud #contextTip{bottom:238px;top:auto;max-width:90%;width:90%}body[data-controls=touch] #hud #dialogue{bottom:327px}body[data-controls=touch] #hud .bottomline{bottom:205px;padding:10px 18px}body[data-controls=touch] #hud .vitals{width:155px}.city-top{padding-top:73px;padding-right:20px}.city-bottom{padding:22px 16px}.city-bottom h2{font-size:28px}.city-tools{gap:7px}.city-tools select{min-width:0;width:155px;font-size:10px}.city-bottom .small{font-size:8px;max-width:320px}}
@media(max-height:700px) and (min-width:741px){.title-copy{top:77px}.title-copy h1{font-size:58px;margin-bottom:15px}.title-copy .eyebrow{margin-bottom:13px}.premise{margin-bottom:13px;font-size:12px}.title-actions button{min-height:49px;padding:9px 15px}.title-links{margin-top:3px}.title-links button{min-height:28px}.title-control-picker{margin-top:0}.title-control-picker select{min-height:30px}.title-caption{top:72%}.panel{max-height:90vh}.deck-heading h2{font-size:31px}.deck-heading .icon{width:45px;height:45px}.deck-heading{margin-bottom:17px}.deck-grid button{min-height:66px}.deck-footer{margin-top:14px}}

#loading{position:fixed;inset:0;z-index:60;background:#0b2635ed;display:grid;place-content:center;text-align:center;gap:22px;color:var(--gold);font-size:11px;letter-spacing:3px}#loading p{margin:0}.loading-orbit{width:60px;height:60px;border:1px solid #93b6a650;border-top-color:#f0d6a1;border-radius:50%;margin:auto;animation:orbit 1.2s linear infinite}.loading-orbit:after{content:'';display:block;width:25px;height:25px;margin:16px;border-radius:50%;background:#eac68b;box-shadow:0 0 30px #eac68b40}@keyframes orbit{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.loading-orbit{animation:none}}
/* Keep action-button hit areas outside the thumb-pad hit area, including safe areas. */
.touch-actions{bottom:calc(188px + max(15px,env(safe-area-inset-bottom)))}
#touchControls .touch-actions button{padding:12px 10px;font-size:11px}
@media(max-width:850px){.touch-actions{bottom:calc(170px + max(15px,env(safe-area-inset-bottom)))}}
@media(max-width:560px){.touch-actions{bottom:calc(157px + max(15px,env(safe-area-inset-bottom)))}#touchControls .touch-actions button{padding:12px 10px;font-size:10px}}

/* The city is a camera surface. Keep browser selection and callouts out of it. */
#world, #hud, #cityView, button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
#world, #cityView { touch-action: none; }
#cityView * { -webkit-user-select: none; user-select: none; }
#pauseBtn, #cityView button, #cityView select { min-height: 44px; }
.city-tools { pointer-events: none; }
.city-tools label { pointer-events: auto; }
.city-bottom {
  padding-bottom: max(25px, env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
/* Native iOS pickers must not magnify small form text on focus. */
@media (any-pointer: coarse), (max-width: 850px) {
  .city-tools select { font-size: 16px; }
}
@media (max-width: 600px) {
  .city-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-tools label { min-width: 0; }
  .city-tools select { width: 100%; min-width: 0; }
}

.water-setting{display:flex;flex-wrap:wrap;justify-content:space-between;gap:9px}.water-setting output{color:var(--gold);font-size:11px}.water-setting input{width:100%;min-height:44px!important;touch-action:pan-y}.range-ends{display:flex;justify-content:space-between;width:100%;font-size:10px;color:var(--muted)}

/* The action title is a compact wordmark with its full subtitle beneath it. */
.title-copy h1.game-title{font-size:clamp(48px,6.5vw,100px);line-height:.95;letter-spacing:-.07em;margin-bottom:28px}.game-title .wordmark{display:block;font-weight:900;white-space:nowrap}.game-title .wordmark>span{color:var(--gold)}.game-title .title-subtitle{display:block;margin-top:14px;font-size:clamp(19px,2.4vw,32px);font-weight:500;line-height:1.2;letter-spacing:.11em;color:var(--cream);white-space:nowrap}@media(max-height:700px){.title-copy h1.game-title{font-size:clamp(46px,5.7vw,76px);margin-bottom:19px}.game-title .title-subtitle{margin-top:9px;font-size:20px}}
@media(max-width:500px) and (max-height:650px){
  .title-copy{top:82px}
  .title-copy .eyebrow{margin-bottom:12px}
  .title-copy h1.game-title{font-size:44px;margin-bottom:15px}
  .game-title .title-subtitle{font-size:18px;margin-top:7px}
  .title-copy .premise{font-size:12px;line-height:1.5;margin-bottom:12px}
  .title-actions{gap:7px}
  .title-actions button{min-height:52px;padding:10px 12px}
  .title-links{margin-top:6px;gap:12px}
  .title-screen footer{bottom:12px;padding-top:8px;font-size:8px}
}
@media(max-height:520px){
  .title-screen{overflow-y:auto;overscroll-behavior:contain}
  .title-copy{position:relative;top:auto;left:auto;margin:28px 0;max-width:510px;width:100%}
  .title-caption{display:none}
  .title-screen footer{position:static;margin-top:26px;padding-top:12px}
}

/* World anchors follow the rendered camera every frame. */
.world-label{will-change:transform;contain:layout style}.world-label i{width:100%;transform-origin:left center}#objectiveBearing{will-change:transform}
/* A fixed full track makes connection completion unambiguous. */
.connect-meter{position:relative;width:44px;height:44px;margin:4px auto 0;border-radius:50%;background:#102c36ed;box-shadow:0 2px 8px #00101855}.connect-meter svg{display:block;width:44px;height:44px;overflow:visible}.connect-track{stroke:#9bbcaf55}.connect-arc{stroke:var(--gold);stroke-linecap:round}.connect-percent{position:absolute;inset:0;display:grid;place-items:center;font:600 10px/1 Arial;letter-spacing:0;color:var(--cream)}.connect-meter.is-complete .connect-arc{stroke:var(--aqua)}.connect-meter.is-complete .connect-percent{color:var(--aqua)}

#cameraButton[aria-pressed=true]{color:var(--gold);border-color:var(--gold)}.topline .chapter{min-width:0;max-width:calc(100% - 360px)}.topline .chapter h2{overflow-wrap:normal}#cameraButton b{font:inherit}
@media(max-width:800px){.topline .chapter{max-width:calc(100% - 250px)}}
@media(max-width:600px){.topline .chapter{max-width:calc(100% - 170px)}.topline .chapter h2{font-size:19px}.top-actions #cameraButton b{display:none}.top-actions #demoBadge{display:none}}

/* Author credit and a consistent copyright notice on title/menu screens. */
.edition-brand{display:grid;gap:5px}
.director-credit{font-size:12px;line-height:1.4;letter-spacing:.025em;color:var(--cream)}
.screen-copyright{position:fixed;z-index:35;left:16px;right:16px;bottom:max(8px,env(safe-area-inset-bottom));text-align:center;font:11px/1.4 Arial,Helvetica,sans-serif;letter-spacing:.025em;color:#d4ded7;text-shadow:0 1px 4px #001019;pointer-events:none}
.title-screen footer{bottom:36px}
.city-bottom{padding-bottom:calc(38px + env(safe-area-inset-bottom))}
.map-panel{max-height:min(91vh,calc(100dvh - 72px))}
@media(max-width:500px){.director-credit{font-size:10px;letter-spacing:.015em}.contact-screen{padding-bottom:calc(36px + env(safe-area-inset-bottom))}}
