#graphics-recovery{box-sizing:border-box;width:min(28rem,calc(100% - 2rem));max-height:85dvh;overflow:auto;padding:1.5rem;color:#182840;background:#f9fbff;border:1px solid #cbd7e6;border-radius:1rem;font-family:inherit}
#graphics-recovery::backdrop{background:rgb(20 34 51 / 60%)}
#graphics-recovery h2{margin:0;font-size:1.4rem}
#graphics-recovery p{line-height:1.5}
:root{--town-paper:#fffdf5;--town-ink:#263b38;--town-muted:#64766c;--town-line:#2a4a3520;--town-green:#537d55;--town-blue:#2e5cd5}
body.settlement{background:#dfe9df;color:var(--town-ink)}.settlement #game{min-height:0;height:100dvh}.settlement #world{background:#d7e5de}.town-atmosphere{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#e5ede62b,transparent 35%),linear-gradient(0deg,#dbe6df55,transparent 20%)}.town-topbar{position:absolute;top:max(20px,env(safe-area-inset-top));left:26px;right:26px;display:flex;align-items:center;gap:18px;z-index:9;pointer-events:none}.town-topbar>*{pointer-events:auto}.town-brand{display:flex;align-items:center;gap:10px;background:none;text-align:left;font-size:13px;font-weight:800;letter-spacing:1.7px;color:var(--town-ink)}.town-brand small{display:block;font-weight:400;font-size:10px;letter-spacing:.5px;margin-top:3px}.town-mark{width:35px;height:39px;border-radius:11px;background:var(--town-blue);display:grid;place-items:center;color:white;font-weight:700;font-size:22px;letter-spacing:-2px;box-shadow:0 5px 14px #305fd72a}.town-resources{display:flex;gap:7px;align-items:center;margin:auto;padding:8px 15px;border:1px solid #ffffffa6;border-radius:16px;background:#fffdf5d9;box-shadow:0 4px 20px #253e3510;backdrop-filter:blur(14px)}.town-resource{display:flex;align-items:center;gap:7px;min-width:74px;padding:1px 8px;background:none;border-right:1px solid var(--town-line)}.town-resource:last-child{border:0}.town-resource svg{width:23px;height:23px;color:#657b57}.town-resource:nth-child(2) svg{color:#987147}.town-resource:nth-child(3) svg{color:#889597}.town-resource:nth-child(4) svg{color:#b89662}.town-resource:nth-child(5) svg{color:#5684a4}.town-resource span{text-align:left}.town-resource b{display:block;font-size:17px;line-height:1.1;font-variant-numeric:tabular-nums;font-weight:600}.town-resource small{font-size:9px;color:var(--town-muted);display:block;margin-top:4px;white-space:nowrap}.town-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#fffdf5e8;color:#526a60;box-shadow:0 2px 10px #253e350b;font-size:25px}.town-icon svg{width:19px;height:19px}.town-icon:hover,.town-toolbar button:hover{background:white;transform:translateY(-1px)}.town-heading{position:absolute;left:32px;top:107px;width:248px;z-index:4;pointer-events:none}.town-heading>*{pointer-events:auto}.town-location{display:flex;gap:11px;align-items:center;letter-spacing:1.1px;font-size:10px;text-transform:uppercase;background:transparent;padding:0;color:#586c60}.town-location span:nth-child(2){color:#78897a}.town-location svg{width:14px;height:14px}.town-heading h1{font-size:37px;line-height:1.15;letter-spacing:-1.4px;margin:8px 0 6px;font-weight:600;text-shadow:0 1px 16px #e5eddf}.town-mode{display:inline-flex;background:transparent;font-size:10px;color:#5c765e;padding:3px 0;border-bottom:1px solid #587c5c44}.town-objective{display:block;text-align:left;padding:18px;margin-top:23px;background:#fffdf5dd;border:1px solid #ffffffc7;border-radius:18px;box-shadow:0 10px 30px #3046340c;width:100%;backdrop-filter:blur(12px)}.town-objective .goal-top{display:flex;align-items:center;justify-content:space-between;color:#6a7e6f;font-size:10px}.goal-top svg{width:17px;height:17px;color:#6b8c65}.town-objective h2{font-size:18px;line-height:1.3;font-weight:500;margin:10px 0 12px;letter-spacing:-.3px}.goal-stages{display:flex;gap:5px}.goal-stages span{height:4px;flex:1;border-radius:10px;background:#dce3d6}.goal-stages .done{background:#719068}.goal-stages .working{background:linear-gradient(90deg,#719068 var(--progress),#dce3d6 var(--progress))}.town-objective small{display:block;font-size:10px;color:#74816e;margin-top:9px}.town-guidance{margin-top:15px;font-size:11px;line-height:1.7;max-width:236px;color:#536b59;padding:0 3px;text-shadow:0 0 12px #eef3e8}.town-guidance button{display:flex;align-items:center;gap:7px;padding:0;background:none;color:#355c42;text-align:left;font-size:11px;font-weight:500}.town-guidance svg{width:15px;height:15px}.town-guidance p{font-size:10px;margin-top:5px}.town-vitals{position:absolute;right:27px;top:93px;display:flex;gap:8px;z-index:4}.town-vitals button{display:flex;gap:6px;align-items:center;padding:9px 12px;border-radius:14px;background:#fffdf5d9;font-size:12px;color:#4d6656}.town-vitals svg{width:17px;height:17px}.town-toolbar{position:absolute;z-index:8;bottom:max(25px,calc(env(safe-area-inset-bottom) + 14px));left:50%;transform:translateX(-50%);display:flex;gap:7px;padding:8px;background:#fffdf5ed;border:1px solid #ffffffb3;border-radius:22px;box-shadow:0 8px 30px #344e381a;backdrop-filter:blur(15px)}.town-toolbar button{display:flex;min-width:79px;min-height:61px;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:none;border-radius:15px;position:relative;font-size:10px;color:#667867;transition:background .2s,transform .2s}.town-toolbar svg{width:24px;height:24px;stroke-width:1.5}.town-toolbar .town-build-button{background:#e4eddf;color:#426b48;min-width:92px}.town-toolbar em{position:absolute;right:19px;top:8px;width:6px;height:6px;border-radius:50%;background:#bc884f}.town-time{position:absolute;bottom:32px;right:27px;display:flex;gap:3px;align-items:center;background:#fffdf5dd;border-radius:14px;padding:6px 7px;z-index:5;font-size:10px}.town-time span{margin:0 5px;color:#60705e;white-space:nowrap;font-variant-numeric:tabular-nums}.town-time button{font-size:11px;background:none;border-radius:8px;width:29px;height:29px;color:#76816a}.town-time .selected{background:#e0eadb;color:#375740}.town-camera{position:absolute;right:26px;bottom:105px;display:flex;gap:5px;z-index:5}.town-camera .town-icon{width:34px;height:34px;border-radius:10px;font-size:22px}.town-camera svg{width:17px;height:17px}.town-save{position:absolute;left:31px;bottom:33px;font-size:10px;color:#677960;max-width:190px;z-index:5}.town-save[data-error=true]{background:#fff5e7;padding:10px;border-radius:10px;color:#89552e;max-width:260px}.town-inspector{position:absolute;right:27px;top:148px;width:285px;max-height:calc(100dvh - 260px);overflow:auto;z-index:7;background:#fffdf5f5;border:1px solid white;border-radius:20px;padding:20px;box-shadow:0 15px 40px #334b3114;backdrop-filter:blur(16px)}[hidden]{display:none!important}.inspector-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.inspector-head small{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#7c896f}.inspector-head h2{font-size:20px;font-weight:500;margin:5px 0 10px;letter-spacing:-.4px}.inspector-head button,.build-heading button{background:transparent;padding:0;color:#829079}.inspector-head svg,.build-heading button svg{width:18px;height:18px}.town-inspector p{font-size:11px;line-height:1.75;color:#6d7c68}.town-inspector .primary,.town-inspector .secondary{font-size:11px;padding:11px 13px;min-height:40px;border-radius:11px}.town-inspector .primary{width:100%;margin-top:14px;background:#547951;box-shadow:none}.town-inspector .secondary{background:#edf0e5;color:#58744f;margin-top:9px;width:100%}.town-inspector .thin-progress{margin:15px 0 8px;height:6px;background:#e1e7d7}.town-inspector .thin-progress span{background:#759367}.town-inspector .note{font-size:10px;padding:10px;border-radius:10px;margin-top:12px}.inspector-cost{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.cost-chip{display:inline-flex;gap:5px;align-items:center;padding:6px 8px;background:#edf0e5;border-radius:8px;font-size:11px;color:#59724f}.cost-chip svg{width:15px;height:15px}.cost-chip.short{background:#f5e6d7;color:#9c6a3e}.workers-control{margin-top:16px;border-top:1px solid #dfe6d7;padding-top:14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.workers-control>span{font-size:11px;color:#6b7a61}.stepper{display:flex;gap:8px;align-items:center}.stepper button{background:#eaf0e1;color:#5a784e;border-radius:8px;width:29px;height:29px;font-size:20px}.stepper b{min-width:20px;text-align:center;font-size:14px;font-weight:500}.status-line{font-size:10px!important;margin-top:8px}.worker-names{margin-top:12px;display:flex;flex-wrap:wrap;gap:5px}.worker-names button{background:#f0f2e9;border-radius:8px;padding:6px 8px;font-size:10px;color:#748167}.inspector-buttons{display:flex;gap:7px;margin-top:10px}.inspector-buttons button{background:transparent;color:#78836c;font-size:10px;padding:6px;border:1px solid #dfe4d7;border-radius:8px}.inspector-source{margin-top:15px;border-top:1px solid #e1e6d9;padding-top:12px;font-size:10px;color:#768369}.inspector-source summary{cursor:pointer}.inspector-source ul{padding-left:15px;line-height:1.8}.inspector-source a{display:block;margin-top:8px;color:#627b62}.town-build{position:absolute;z-index:8;bottom:116px;left:50%;transform:translateX(-50%);width:min(790px,calc(100% - 330px));background:#fffdf5f5;border:1px solid white;border-radius:22px;padding:20px;box-shadow:0 15px 40px #334b311c;max-height:calc(100dvh - 210px);overflow:auto;backdrop-filter:blur(15px)}.build-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.build-heading h2{font-size:19px;font-weight:500;letter-spacing:-.4px}.build-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.building-card{padding:16px 12px;text-align:left;background:#f0f1e7;border:1px solid transparent;border-radius:14px;min-height:137px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.building-card:hover{background:#e5eddc;border-color:#cddcbd}.building-card>svg{color:#68855d;width:30px;height:30px;stroke-width:1.4}.building-card strong{font-size:12px;font-weight:500}.building-card small{font-size:10px;line-height:1.6;color:#7b866e}.building-card .build-price{display:flex;gap:9px;margin-top:auto;align-items:center;color:#8b907e;font-size:10px}.build-price span{display:inline-flex;align-items:center;gap:3px}.build-price svg{width:13px;height:13px}.town-placement{position:absolute;bottom:120px;left:50%;transform:translateX(-50%);z-index:8;background:#fffdf5f5;border:1px solid white;border-radius:16px;box-shadow:0 10px 25px #2d4a3414;padding:13px 16px;display:flex;align-items:center;gap:14px;max-width:calc(100% - 50px);min-width:330px}.town-placement strong{font-weight:500;font-size:12px}.town-placement p{font-size:10px;line-height:1.6;color:#768569;margin-top:3px}.town-placement button{background:#e8eedd;border-radius:9px;padding:8px;color:#667b54;white-space:nowrap;font-size:10px}.town-context{position:absolute;right:26px;top:148px;width:250px;z-index:4}.town-context button{border:1px solid #fffd;background:#fffdf5df;border-radius:16px;padding:15px;display:flex;align-items:center;gap:13px;text-align:left;width:100%;color:#647b65}.town-context b{font-size:12px;font-weight:500;display:block;margin:3px 0}.town-context small{font-size:9px;line-height:1.6;color:#819079}.town-context svg{width:25px;height:25px;color:#6d8e6b}
.settlement .toast-stack{top:90px;left:50%;right:auto;transform:translateX(-50%);bottom:auto;width:330px;z-index:20}.settlement .toast{font-size:12px;background:#fffdf5f5;border:1px solid white;border-radius:13px;padding:13px 17px;box-shadow:0 8px 30px #314d3917;margin-top:7px;color:#54704f}.settlement dialog{border-radius:25px;background:#fffdf8;max-width:min(780px,calc(100vw - 40px));box-shadow:0 25px 100px #193e3c30}.settlement dialog::backdrop{background:#263c3657;backdrop-filter:blur(6px)}.settlement .modal-header{border-color:#e7ebdd}.settlement .modal-header h2{font-weight:500;letter-spacing:-.7px}.settlement .modal-header .eyebrow{font-size:10px;font-weight:500;color:#7b8c70;letter-spacing:1.8px}.settlement .primary{background:#496f49;box-shadow:none}.settlement .secondary{background:#e9eee1;color:#536f4d}.settlement .subtle{color:#67805d}.settlement .label-chip{background:#edf1e6;color:#607f5c}.settlement .thin-progress span{background:#69885d}.settlement .source-details{font-size:12px}.settlement .note{background:#edf1e5;color:#687c5e}.town-welcome{padding:3px 0 5px}.town-welcome .welcome-quote{font-size:25px;line-height:1.45;letter-spacing:-.6px;max-width:560px;font-weight:400;color:#405e41}.welcome-actions{display:flex;gap:12px;margin-top:25px}.welcome-actions .primary,.welcome-actions .secondary{min-height:49px}.town-menu-links{display:flex;gap:17px;margin-top:23px;border-top:1px solid #e3e8d9;padding-top:16px}.town-menu-links button{background:none;color:#7a8a6b;font-size:11px;padding:0}.town-intro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:26px 0}.town-intro-grid span{display:block;font-size:11px;line-height:1.65;color:#7b896e}.town-intro-grid b{display:block;color:#587150;font-weight:500;font-size:12px;margin:10px 0 5px}.town-intro-grid svg{color:#779168;width:27px;height:27px}.town-atlas-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}.town-city-card{border-radius:15px;overflow:hidden;background:#edf1e5;text-align:left;border:1px solid #dce6d1;padding:0}.town-city-card:disabled{opacity:.55}.city-card-art{height:100px;position:relative;display:flex;align-items:center;justify-content:center;background:var(--city-water);overflow:hidden}.city-card-art svg{width:65px;height:65px;color:var(--city-wall)}.city-card-art .city-islet{position:absolute;inset:10px 22px;border-radius:44% 57% 40% 37%;background:var(--city-grass);transform:rotate(-13deg) scaleY(.65);box-shadow:0 9px 0 #75856720}.city-card-art>svg{z-index:1;position:relative;filter:drop-shadow(0 3px 2px #33583d25)}.city-card-copy{padding:12px}.city-card-copy b{display:block;font-size:13px;font-weight:500}.city-card-copy small{display:block;font-size:10px;color:#7a896c;line-height:1.6;margin-top:4px}.city-card-copy em{font-style:normal;font-size:9px;color:#668657;display:block;margin-top:9px}.town-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:18px 0}.town-stat{background:#eef2e5;border-radius:13px;padding:15px}.town-stat b{display:block;font-size:25px;font-weight:500;line-height:1.2;color:#57764f}.town-stat small{display:block;font-size:10px;color:#7f8b71;margin-top:8px;line-height:1.5}.town-job-list,.town-citizen-list{display:grid;gap:8px}.town-job{background:#f1f3e9;border-radius:12px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.town-job b{display:block;font-size:12px;font-weight:500}.town-job small{display:block;font-size:10px;color:#7c896f;margin-top:5px;line-height:1.5}.town-job>button{background:none;color:#6f8565;padding:0}.town-citizen{display:flex;align-items:center;gap:13px;padding:13px 15px;background:#f1f3e9;border-radius:12px;text-align:left}.town-citizen .citizen-letter{height:35px;width:35px;display:grid;place-items:center;border-radius:11px;background:#dce8d3;color:#597452;font-size:17px}.town-citizen b{display:block;font-size:12px;font-weight:500}.town-citizen small{display:block;font-size:10px;color:#7f8e72;margin-top:4px}.town-two-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.town-section-title{font-size:13px;font-weight:500;margin:23px 0 12px;color:#607855}.town-ledger{display:grid;gap:6px}.town-ledger-row{display:flex;align-items:center;gap:11px;background:#f0f3e8;border-radius:12px;padding:12px 15px}.town-ledger-row svg{color:#7f956f;width:22px;height:22px}.town-ledger-row>b{font-size:12px;font-weight:500;min-width:90px}.town-ledger-row>span{font-size:11px;color:#8b957b;flex:1}.town-ledger-row>strong{font-size:17px;font-weight:500;color:#667e58}.town-conversation{background:#eff2e6;border-radius:17px;padding:20px;margin:15px 0 20px}.town-conversation b{display:block;font-size:12px;color:#6d865d;margin-bottom:9px}.town-conversation p{font-size:14px;line-height:1.8}.town-decisions{display:grid;gap:10px}.town-decision{background:#eef2e6;border:1px solid #e0e7d6;padding:17px;border-radius:14px;text-align:left;display:flex;align-items:center;gap:14px}.town-decision svg{color:#7b936d}.town-decision b{display:block;font-size:13px;font-weight:500}.town-decision small{display:block;font-size:11px;color:#7e8b70;margin-top:6px;line-height:1.6}.town-decision>span{flex:1}.decision-option{display:block;text-align:left;width:100%;background:#edf1e5;border:1px solid #dbe4ce;border-radius:13px;padding:16px;margin-top:9px;font-size:13px;line-height:1.6}.decision-option:hover{background:#e1ead7}.town-learning-list{display:grid;gap:9px;margin:20px 0}.town-learning-list button{text-align:left;background:#edf2e5;border-radius:14px;padding:17px;display:flex;gap:14px;align-items:center}.town-learning-list b{display:block;font-size:13px;font-weight:500}.town-learning-list small{display:block;font-size:11px;line-height:1.6;color:#7d8e6c;margin-top:5px}.town-learning-list svg{color:#7b966b}.town-learning-list span{flex:1}.town-victory{padding:15px 0}.town-victory h3{font-size:26px;line-height:1.4;font-weight:400;letter-spacing:-.5px;margin:20px 0}.town-victory>svg{height:48px;width:48px;color:#8fa161}.town-victory p{font-size:14px;line-height:1.8;color:#7e8c70}.town-settings{display:grid;gap:13px}.town-setting{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px;background:#eff2e8;border-radius:13px}.town-setting strong{font-size:12px;font-weight:500}.town-setting p{font-size:10px;color:#7b8b6e;margin-top:4px}.town-setting select{max-width:150px;border:1px solid #dce5cf;background:#fcfdf7;color:#6a805a;padding:10px;border-radius:10px;font-size:12px}.town-switch{border:1px solid #d9e3ce;border-radius:12px;background:#fbfcf5;font-size:11px;min-width:66px;padding:10px}.town-settings .dialog-actions{display:flex;flex-wrap:wrap}.town-settings .dialog-actions button{font-size:12px}.town-file-status{font-size:11px;line-height:1.7;color:#778a67;margin-top:13px}.settlement .academy-task .task-number{color:#69875c}.settlement .adventure-case{background:#e9efe1}.settlement .campaign-quest-card{background:#f0f3e9}.settlement .campaign-status{color:#7b8e70}.settlement .campaign-wrap{--blue:#587a53;--blue-dark:#3d603c}.settlement .loading-screen{background:#e5ede1}.settlement .loading-screen strong{font-weight:500;color:#52764f}.settlement .loading-screen p{color:#7f9472}
@media(max-width:1120px){.town-resources{padding:8px;gap:2px}.town-resource{min-width:61px;padding:0 6px}.town-brand small{display:none}.town-heading{left:23px;width:222px}.town-heading h1{font-size:32px}.town-objective{padding:15px}.town-objective h2{font-size:16px}.town-toolbar button{min-width:65px}.town-toolbar .town-build-button{min-width:80px}.town-time{right:19px;bottom:115px}.town-camera{bottom:162px;right:19px}.town-inspector{right:19px;width:265px;max-height:calc(100dvh - 330px)}.town-build{width:min(690px,calc(100% - 80px));bottom:119px}.town-save{left:23px;bottom:32px;font-size:9px;max-width:110px}.town-topbar{left:21px;right:21px}.town-vitals{right:21px}.town-context{right:21px;width:230px}}
@media(max-width:760px){.town-topbar{top:max(13px,env(safe-area-inset-top));left:14px;right:14px;gap:8px;flex-wrap:wrap}.town-brand{font-size:11px;gap:8px;letter-spacing:1.2px}.town-mark{height:30px;width:29px;font-size:19px;border-radius:9px}.town-brand small{display:block;font-size:8px}.town-topbar>.town-icon{margin-left:auto;width:32px;height:32px;border-radius:10px}.town-resources{order:3;width:100%;margin:4px 0 0;padding:8px 5px;border-radius:13px;justify-content:space-around}.town-resource{min-width:0;padding:0 7px;gap:5px;flex:1;justify-content:center}.town-resource svg{width:17px;height:17px}.town-resource b{font-size:14px}.town-resource small{font-size:8px;margin-top:3px;max-width:53px;text-overflow:ellipsis;overflow:hidden}.town-heading{top:118px;left:18px;width:188px}.town-heading h1{font-size:26px;letter-spacing:-.7px;margin:6px 0 4px}.town-location{font-size:8px;gap:7px}.town-location svg{width:11px;height:11px}.town-mode{font-size:9px}.town-objective{padding:12px 13px;margin-top:13px;border-radius:14px}.town-objective h2{font-size:13px;margin:7px 0 8px;line-height:1.35}.town-objective .goal-top{font-size:8px}.goal-top svg{width:13px;height:13px}.town-objective small{font-size:8px;margin-top:6px}.town-guidance{max-width:184px;margin-top:10px;font-size:9px}.town-guidance button{font-size:10px;line-height:1.6;gap:4px}.town-guidance p{font-size:9px}.town-vitals{top:121px;right:14px;flex-direction:column;align-items:flex-end;gap:6px}.town-vitals button{padding:7px 9px;font-size:10px;border-radius:11px;min-height:29px}.town-vitals svg{width:13px;height:13px}.town-toolbar{bottom:max(13px,calc(env(safe-area-inset-bottom) + 8px));gap:3px;padding:5px;border-radius:18px;width:calc(100% - 27px);justify-content:space-around}.town-toolbar button{min-width:0;min-height:59px;flex:1;font-size:9px;gap:6px;border-radius:13px}.town-toolbar .town-build-button{min-width:0;flex:1.1}.town-toolbar svg{width:22px;height:22px}.town-toolbar em{right:12px;top:5px}.town-time{bottom:92px;right:14px;padding:4px 5px;font-size:9px;border-radius:11px}.town-time button{width:27px;height:26px;font-size:10px}.town-time span{margin:0 5px}.town-camera{right:14px;bottom:136px;flex-direction:column;gap:6px}.town-camera .town-icon{width:30px;height:30px;border-radius:9px}.town-save{left:18px;bottom:101px;font-size:8px;max-width:135px}.town-save[data-error=true]{bottom:133px;max-width:210px;font-size:10px}.town-inspector{right:14px;left:14px;width:auto;top:auto;bottom:133px;max-height:47dvh;padding:17px;border-radius:18px}.inspector-head h2{font-size:18px;margin-bottom:7px}.town-inspector p{font-size:11px}.town-inspector .primary{min-height:43px}.town-inspector .worker-names{margin-top:9px}.town-inspector .inspector-source{font-size:10px}.town-build{left:14px;right:14px;transform:none;width:auto;bottom:132px;padding:16px;border-radius:19px;max-height:calc(100dvh - 260px)}.build-heading{margin-bottom:13px}.build-heading h2{font-size:17px}.build-grid{grid-template-columns:repeat(2,1fr);gap:7px}.building-card{padding:13px 11px;min-height:119px;gap:6px}.building-card>svg{width:25px;height:25px}.building-card strong{font-size:11px}.building-card small{font-size:9px}.town-placement{bottom:136px;min-width:0;width:calc(100% - 28px);max-width:none;padding:13px;gap:10px;border-radius:14px}.town-placement p{font-size:10px}.town-placement button{padding:9px;font-size:10px}.town-context{top:auto;bottom:138px;right:53px;left:17px;width:auto}.town-context button{padding:12px;gap:10px;border-radius:13px;max-width:280px}.town-context b{font-size:11px}.town-context small{font-size:8px}.town-context svg{width:22px;height:22px}.settlement dialog{max-width:calc(100vw - 18px);max-height:calc(100dvh - 28px);border-radius:20px}.settlement .modal-shell{padding:21px 18px}.settlement .modal-header h2{font-size:22px}.settlement .modal-header .eyebrow{font-size:8px;letter-spacing:1.5px}.settlement .toast-stack{top:108px;width:calc(100% - 42px);z-index:30}.settlement .toast{font-size:11px;padding:12px 15px}.town-welcome .welcome-quote{font-size:22px;line-height:1.5}.town-intro-grid{gap:10px;margin:20px 0}.town-intro-grid span{font-size:10px}.town-intro-grid b{font-size:10px}.town-intro-grid svg{width:24px;height:24px}.welcome-actions{flex-direction:column;gap:8px;margin-top:20px}.welcome-actions .primary,.welcome-actions .secondary{font-size:13px}.town-menu-links{gap:14px;flex-wrap:wrap}.town-menu-links button{font-size:11px}.town-atlas-grid{grid-template-columns:repeat(2,1fr);gap:8px}.city-card-art{height:88px}.city-card-copy{padding:10px}.city-card-copy b{font-size:12px}.city-card-copy small{font-size:9px}.town-stat-grid{grid-template-columns:repeat(2,1fr);gap:7px}.town-stat{padding:13px}.town-stat b{font-size:24px}.town-two-columns{grid-template-columns:1fr;gap:0}.town-job{padding:12px;gap:8px}.town-job b{font-size:11px}.town-job small{font-size:9px}.town-setting{padding:12px;gap:13px}.town-setting select{max-width:122px;font-size:11px}.town-ledger-row{padding:12px 10px;gap:8px}.town-ledger-row>b{min-width:75px;font-size:11px}.town-ledger-row>span{font-size:10px}.town-section-title{font-size:12px}.town-conversation{padding:16px}.town-conversation p{font-size:13px}.town-decision{padding:14px;gap:10px}.town-decision b{font-size:12px}.town-decision small{font-size:10px}.town-victory h3{font-size:24px}}
@media(max-height:690px) and (max-width:760px){.town-heading{top:113px;width:170px}.town-heading h1{font-size:24px}.town-objective{margin-top:8px;padding:10px 12px}.town-objective h2{font-size:12px}.town-objective small{display:none}.town-guidance p{display:none}.town-guidance{margin-top:7px}.town-context{bottom:136px;max-width:240px}.town-context small{display:none}.town-inspector{max-height:48dvh}.town-build{max-height:calc(100dvh - 240px)}}
@media(prefers-reduced-motion:reduce){.town-toolbar button{transition:none}}
.town-recipe{max-width:145px;border:1px solid #d9e3ce;background:#f6f8ee;border-radius:8px;color:#647d56;padding:7px;font-size:10px}.settlement .toast.warn{background:#fbefdc;color:#8b6841}.settlement .modal-shell{overflow:visible}
/* Chronika blue marks decisions and selection; resource colours remain natural. */
body.settlement{--town-ink:#283a43;--town-muted:#6c7c7d;--town-blue:#2455d6;color:var(--town-ink)}
.town-mode{color:#5274b5;border-color:#5274b544}
.town-toolbar .town-build-button{background:#e4ebfa;color:#315fc2}
.town-time .selected{background:#e2eafa;color:#305bbf}
.goal-stages .done{background:#6d8ed0}
.goal-stages .working{background:linear-gradient(90deg,#6d8ed0 var(--progress),#dce3d6 var(--progress))}
.town-objective .goal-top>span{color:#6383bf}
.town-inspector .primary,.settlement .primary{background:#2f5fc8;color:white}
.town-inspector .primary:hover,.settlement .primary:hover{background:#244fac}
.town-inspector .secondary,.settlement .secondary{background:#eaf0fb;color:#4b6fae}
.stepper button{background:#e7eefb;color:#466eb5}
.building-card>svg{color:#7190bd}
.building-card:hover{background:#e7edf7;border-color:#c7d7ee}
.town-inspector .thin-progress span,.settlement .thin-progress span{background:#7193ce}
.town-context button{border-color:#c4d3f0;background:#fcfdf9ed;color:#5979ad}
.town-context svg{color:#6486c0}
/* Touch controls retain clear spacing without increasing the amount of HUD text. */
@media(max-width:760px){
 .town-topbar>.town-icon{width:44px;height:44px}
 .town-resource{min-height:44px;margin-block:-7px}
 .town-heading{top:130px}.town-vitals{top:133px}
 .town-vitals button{min-height:44px;min-width:44px}
 .town-time button{width:44px;height:44px;font-size:11px}
 .town-camera{bottom:154px}.town-camera .town-icon{width:44px;height:44px}
 .town-context{bottom:154px;right:68px}
 .town-inspector,.town-build{bottom:154px}
 .town-placement{bottom:154px}.town-placement button{min-width:44px;min-height:44px}
 .stepper button{width:44px;height:44px;flex-shrink:0}
 .inspector-head button,.build-heading button{min-width:44px;min-height:44px;display:grid;place-items:center;margin:-10px -9px 0 0}
 .settlement #modal-close{min-width:44px;min-height:44px}
 .town-save[data-error=true]{bottom:155px}
}
.town-learning-list svg{color:#6f8fc2}
.settlement .campaign-wrap{--blue:#3768c4;--blue-dark:#284e9b}
.settlement .label-chip{background:#eaf0fa;color:#5b7cb3}
.settlement .subtle{color:#5c7cb4}
.settlement .adventure-case{background:#edf2fa}
.settlement .academy-task .task-number{color:#6684bd}
.town-setting select:focus-visible,.town-recipe:focus-visible{outline:2px solid #6084d0}
.town-mark svg{width:23px;height:23px;fill:currentColor}
/* v0.5: quiet opaque surfaces keep every label readable over any biome. */
body.settlement{--town-paper:#fffef8;--town-ink:#233743;--town-muted:#536571;--town-line:#b9c4c94d;--town-blue:#2455c9}
.town-atmosphere{background:none}
.town-heading{top:104px;left:24px;width:242px;padding:18px;background:var(--town-paper);border:1px solid #fff;border-radius:20px;box-shadow:0 7px 24px #23374312;box-sizing:border-box}
.town-heading h1{font-size:32px;letter-spacing:-.9px;margin:9px 0 6px;text-shadow:none}
.town-location{font-size:11px;letter-spacing:.5px;gap:8px;color:#536571;line-height:1.5;text-align:left}
.town-location span:nth-child(2){color:#536571;white-space:nowrap}
.town-location svg{flex-shrink:0;width:16px;height:16px}
.town-mode{font-size:12px;line-height:1.5;color:#2957aa;border:0;padding:3px 0}
.town-objective{background:none;box-shadow:none;border:0;border-top:1px solid #dbe1df;border-radius:0;padding:14px 0 0;margin-top:13px;backdrop-filter:none}
.town-objective .goal-top{font-size:11px;color:#536571}.town-objective h2{font-size:18px;line-height:1.4;margin:8px 0 11px;color:#233743;font-weight:600}
.town-objective small{font-size:11px;line-height:1.5;color:#536571}.goal-stages{gap:6px}.goal-stages span{height:5px;background:#e0e6ea}.goal-stages .done{background:#416dc7}
.town-guidance{margin-top:15px;text-shadow:none;padding:0;color:#536571}.town-guidance button{font-size:12px;line-height:1.55;color:#284e91;font-weight:500}.town-guidance svg{width:17px;height:17px;flex-shrink:0}.town-guidance p{font-size:11px;line-height:1.5;margin:5px 0 0;color:#536571}
.town-resources,.town-toolbar,.town-vitals button,.town-icon,.town-time{background:var(--town-paper);border:1px solid #fff;box-shadow:0 4px 16px #20394e10;backdrop-filter:none}
.town-resources{padding:9px 12px}.town-resource{min-width:78px}.town-resource b{font-size:18px;color:#233743}.town-resource small{font-size:11px;color:#536571;margin-top:4px}.town-resource svg{width:25px;height:25px;flex-shrink:0}
.town-resource:nth-child(1) svg{color:#62794c}.town-resource:nth-child(2) svg{color:#85603b}.town-resource:nth-child(3) svg{color:#677a83}.town-resource:nth-child(4) svg{color:#97703e}.town-resource:nth-child(5) svg{color:#3968b7}
.town-toolbar button{font-size:11px;color:#536571}.town-toolbar svg{stroke-width:1.7}.town-toolbar .town-build-button{color:#214fa7;background:#e7eefc}
.town-vitals button{min-height:40px;font-size:13px;color:#334d5d}.town-vitals svg{width:19px;height:19px}.town-vitals small{font-size:11px;color:#536571}
.town-camera .town-icon{width:40px;height:40px;color:#395c89}.town-camera svg{width:20px;height:20px}.town-time button{width:34px;height:34px;color:#536571}.town-time svg{width:18px;height:18px}.town-time span{font-size:11px;color:#536571}
.town-inspector,.town-build{background:var(--town-paper);backdrop-filter:none;box-shadow:0 12px 38px #20394e21;border-color:#fff}
.town-inspector{width:310px;max-height:calc(100dvh - 272px)}
.inspector-head small{font-size:10px;color:#536571;letter-spacing:.6px}.inspector-head h2{font-size:21px;line-height:1.3;color:#233743}
.inspector-actions{display:flex;gap:2px;flex-shrink:0}.inspector-actions button{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#4d6895}.inspector-actions button:hover{background:#e7eefb}
.town-inspector p{font-size:13px;line-height:1.6;color:#536571}.town-inspector .status-line{font-size:11px!important}.town-inspector .primary,.town-inspector .secondary{font-size:13px;min-height:44px}
.workers-control>span,.town-recipe{font-size:12px;color:#334d5d}.town-recipe{max-width:150px;padding:9px;background:#f1f5fc;border-color:#c9d5e6;min-height:42px}.stepper button{min-width:34px;min-height:34px;color:#2957aa}.stepper b{font-size:16px;color:#233743}
.worker-names button{font-size:11px;color:#445f73;background:#edf1f5;min-height:32px}.inspector-buttons button{font-size:11px;color:#3b5e8f;border-color:#c9d5e6;min-height:36px}
.inspector-source,.town-inspector .note{font-size:11px!important;color:#536571}.inspector-source a{color:#2455aa}.cost-chip{font-size:12px;background:#edf2f8;color:#405b75}.cost-chip.short{color:#8b5528;background:#f8ead9}
.building-card{background:#f5f7f8;border-color:#e0e6e9;min-height:134px}.building-card>svg{width:30px;height:30px;color:#4169aa}.building-card strong{font-size:13px;color:#233743;line-height:1.4}.building-card small{font-size:11px;line-height:1.5;color:#536571}.build-price{font-size:12px;color:#405b75}.build-price svg{width:16px;height:16px}
.settlement .modal-shell{background:var(--town-paper)}.settlement .eyebrow{color:#416196}.settlement .lead,.settlement .modal-header p,.settlement .note{color:#536571}.settlement .secondary{color:#2957aa}.settlement .muted,.settlement small{color:#536571}
.town-intro-grid b{color:#233743}.town-intro-grid span{color:#536571}.town-ledger-row>b,.town-job b,.town-setting b{color:#233743}.town-ledger-row>span,.town-job small,.town-setting small{color:#536571}.town-section-title{color:#334d5d}.city-card-copy small{color:#536571}.town-context button{background:var(--town-paper);color:#2957aa}.town-context small{font-size:11px;color:#536571}
.town-placement{background:var(--town-paper);color:#233743}.town-placement p{color:#536571;font-size:12px}.town-placement button{color:#2957aa;min-height:42px}
.settlement button:focus-visible,.settlement a:focus-visible,.settlement select:focus-visible,.settlement input:focus-visible{outline:3px solid #2455c9;outline-offset:3px}
@media(max-width:1120px) and (min-width:761px){.town-heading{left:20px;width:225px}.town-resource{min-width:63px;padding:0 5px}.town-resource small{font-size:10px}.town-inspector{width:280px}.town-camera{bottom:180px}}
@media(max-width:760px){
 .town-topbar{left:12px;right:12px;top:12px}.town-brand small{font-size:9px;color:#334d5d}.town-topbar>.town-icon{width:44px;height:44px}
 .town-resources{padding:9px 3px;gap:0;min-height:55px}.town-resource{min-width:0;min-height:44px;padding:0 4px;gap:4px}.town-resource svg{width:19px;height:19px}.town-resource b{font-size:15px}.town-resource small{font-size:10px;max-width:58px;margin-top:3px}
 .town-heading{top:135px;left:12px;width:202px;padding:13px;border-radius:17px}.town-heading h1{font-size:26px;line-height:1.2;margin:7px 0 4px}.town-location{font-size:10px;gap:6px}.town-location svg{width:13px;height:13px}.town-mode{font-size:11px}.town-objective{margin-top:10px;padding-top:10px}.town-objective .goal-top,.town-objective small{font-size:10px}.town-objective h2{font-size:14px;margin:6px 0 8px}.town-guidance{margin-top:10px}.town-guidance button{font-size:11px;line-height:1.5}.town-guidance p{display:none}
 .town-vitals{top:135px;right:12px;gap:7px}.town-vitals button{min-height:42px;padding:8px 10px;font-size:12px}.town-vitals svg{width:17px;height:17px}.town-vitals small{font-size:10px}
 .town-toolbar button{font-size:10px;min-height:59px}.town-toolbar svg{width:24px;height:24px}.town-time{bottom:92px;right:12px}.town-time button{width:44px;height:44px}.town-camera{bottom:156px;right:12px}.town-camera .town-icon{width:44px;height:44px}
 .town-inspector{left:12px;right:12px;bottom:156px;width:auto;padding:17px;max-height:48dvh}.inspector-head h2{font-size:19px}.inspector-actions button{width:40px;height:40px;margin:0}.inspector-head{gap:6px}.town-inspector p{font-size:12px}.town-inspector .primary,.town-inspector .secondary{font-size:12px}.stepper button{width:44px;height:44px}.worker-names button{min-height:36px}.inspector-buttons button{min-height:40px}
 .town-build{bottom:156px;max-height:calc(100dvh - 255px)}.building-card{min-height:136px}.building-card strong{font-size:12px}.building-card small{font-size:11px}.building-card>svg{width:29px;height:29px}.town-placement{bottom:156px}.town-placement button{min-width:44px;min-height:44px}.town-context{bottom:156px}.town-context b{font-size:12px}.town-context small{font-size:10px}
 .settlement .modal-header .eyebrow{font-size:10px}.town-intro-grid b,.town-intro-grid span{font-size:11px}.town-job b{font-size:12px}.town-job small{font-size:11px}.town-ledger-row>b{font-size:12px}.town-ledger-row>span{font-size:11px}.city-card-copy small{font-size:10px}
}
@media(max-height:690px) and (max-width:760px){.town-heading{top:127px;width:190px;padding:11px}.town-heading h1{font-size:23px}.town-guidance{display:none}.town-objective small{display:none}.town-vitals{top:127px}}
/* Supply decisions are disclosed in the relevant panel, not scattered over the landscape. */
.town-tabs{display:flex;gap:7px;margin:2px 0 23px;padding:5px;background:#edf1f7;border-radius:14px}
.town-tabs button{display:flex;justify-content:center;align-items:center;gap:7px;flex:1;padding:12px 9px;border-radius:10px;background:none;color:#536571;font-size:13px;font-weight:500;min-height:46px}
.town-tabs svg{width:20px;height:20px;flex-shrink:0}.town-tabs [aria-selected=true]{background:#fffef8;color:#2455b4;box-shadow:0 2px 8px #1f355713}
.economy-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:22px;font-size:12px;color:#536571}.economy-summary>span{display:flex;gap:7px;align-items:center}.economy-summary svg{width:21px;height:21px;color:#4d719c}.economy-summary b{font-size:18px;color:#233743}
.supply-table{border:1px solid #dbe2e6;border-radius:14px;overflow:hidden}.supply-table-head,.supply-table-row{display:grid;grid-template-columns:28px minmax(110px,1fr) 72px 72px 72px;gap:8px;padding:14px 15px;align-items:center;font-size:13px}.supply-table-head{background:#edf2f7;font-size:11px;color:#536571}.supply-table-head>span:first-child{grid-column:span 2}.supply-table-head>span:not(:first-child){text-align:right}.supply-table-row{border-top:1px solid #e1e7eb}.supply-table-row svg{width:24px;height:24px;color:#54749d}.supply-table-row b{font-size:13px;font-weight:500;color:#233743}.supply-table-row>span,.supply-table-row strong{text-align:right;font-variant-numeric:tabular-nums}.supply-table-row>span{color:#536571}.supply-table-row strong{color:#2b588e}
.trade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.trade-grid .secondary{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13px;min-height:47px;padding:11px}.trade-grid svg{width:20px;height:20px}.trade-grid svg[data-symbol=arrow]{width:16px;margin:0 4px}
.supply-settings{display:grid;gap:9px}.supply-setting{display:flex;align-items:center;gap:12px;background:#f1f5f8;border:1px solid #dbe3e9;border-radius:12px;padding:14px}.supply-setting>svg{width:27px;height:27px;color:#496fa4;flex-shrink:0}.supply-setting>span{flex:1;font-size:14px;color:#233743}.supply-setting small{display:block;margin-top:5px;font-size:11px;color:#536571}.supply-setting select,.town-depot{border:1px solid #c5d2e1;background:#fffef8;border-radius:9px;color:#2c4f79;padding:11px;font:inherit;font-size:12px;min-height:44px;max-width:170px}.supply-apply{margin:12px 0 6px;min-height:44px;font-size:13px}
.reserve-settings{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.reserve-settings label{display:flex;align-items:center;gap:9px;padding:12px;background:#f1f5f8;border:1px solid #dbe3e9;border-radius:12px;font-size:12px;color:#334d5d}.reserve-settings svg{width:22px;height:22px;flex-shrink:0;color:#496fa4}.reserve-settings span{flex:1}.reserve-settings input{width:68px;padding:10px 5px;border:1px solid #c5d2e1;border-radius:8px;background:#fffef8;font:inherit;text-align:center;font-variant-numeric:tabular-nums;color:#233743;min-height:44px;box-sizing:border-box}
.supply-ledger{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.supply-ledger>div{display:grid;gap:5px;background:#f1f5f8;padding:13px;border-radius:10px;font-size:11px;color:#536571}.supply-ledger b{font-size:13px;color:#233743}
.workplace-flow{margin-top:15px;padding-top:10px;border-top:1px solid #dae2e9}.depot-label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#334d5d;margin-top:12px}.town-depot{max-width:100%;width:100%;font-size:12px}.supply-inline{display:flex;flex-wrap:wrap;gap:7px;font-size:11px;color:#536571}.supply-inline small{flex-basis:100%}.supply-inline span{display:flex;gap:5px;align-items:center}.supply-inline svg{width:17px;height:17px}
.project-intro h3{font-size:24px;line-height:1.3;color:#233743;margin:0 0 10px}.project-intro>svg{width:36px;height:36px;color:#496fa4;margin-bottom:16px}.project-intro p{font-size:14px;line-height:1.7;color:#536571}.project-intro small{font-size:12px;line-height:1.6;color:#536571}
.project-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:22px 0}.project-option{padding:20px;background:#f2f5f8;border:1px solid #d9e2ec;border-radius:17px;display:flex;flex-direction:column}.project-option.chosen{border-color:#7397d6;background:#edf3fd}.project-symbol{width:38px;height:38px;display:grid;place-items:center;background:#e0e9f8;color:#305fab;border-radius:11px}.project-symbol svg{width:23px;height:23px}.project-option h3{font-size:18px;line-height:1.4;color:#233743;margin:14px 0 8px}.project-option p{font-size:12px;line-height:1.7;color:#536571}.project-option ul{padding:0;list-style:none;margin:15px 0;flex:1}.project-option li{display:flex;gap:9px;align-items:start;margin-bottom:12px;font-size:12px;line-height:1.5}.project-option li>svg{width:17px;height:17px;flex-shrink:0;margin-top:1px;color:#7d8e9c}.project-option li.met>svg{color:#365f9f}.project-option li span{flex:1;color:#536571}.project-option li b{display:block;margin-top:3px;font-size:11px;font-weight:500;color:#3e608c}.project-budget{border-top:1px solid #d9e2ec;padding-top:12px}.project-budget small{font-size:10px;color:#536571}.project-budget>div{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 12px}.project-budget span{display:flex;align-items:center;gap:5px;font-size:11px;color:#334d5d}.project-budget svg{width:17px;height:17px}.project-option button{width:100%;margin-top:12px;font-size:12px;min-height:44px}.project-option button:disabled{opacity:.72;cursor:default}.project-missing{font-size:10px;margin-top:9px;line-height:1.5;color:#856134!important}.project-result{font-weight:500;color:#315c9e!important}
.town-civic-card{display:flex;align-items:center;gap:13px;width:100%;text-align:left;background:#edf3fc;border:1px solid #cddbf0;border-radius:14px;padding:17px;margin:18px 0;color:#315f9e}.town-civic-card>svg{width:24px;height:24px;flex-shrink:0}.town-civic-card>span{flex:1}.town-civic-card b{font-size:14px;font-weight:600}.town-civic-card small{display:block;font-size:12px;margin-top:6px;line-height:1.5;color:#536571}
@media(max-width:760px){.town-tabs{gap:3px;padding:4px}.town-tabs button{font-size:11px;flex-direction:column;padding:9px 5px;gap:6px}.town-tabs svg{width:22px;height:22px}.economy-summary{gap:10px;font-size:11px}.economy-summary b{font-size:16px}.supply-table-head,.supply-table-row{grid-template-columns:22px minmax(72px,1fr) 45px 49px 55px;gap:4px;padding:12px 9px;font-size:12px}.supply-table-head{font-size:9px}.supply-table-row b{font-size:11px}.supply-table-row svg{width:20px;height:20px}.trade-grid{grid-template-columns:repeat(2,1fr)}.trade-grid .secondary{font-size:12px;gap:4px}.reserve-settings{grid-template-columns:1fr}.reserve-settings label{font-size:12px}.supply-setting{padding:12px;gap:9px}.supply-setting>span{font-size:12px}.supply-setting select{max-width:130px;font-size:11px;padding:9px}.supply-setting small{font-size:10px}.supply-ledger{grid-template-columns:1fr}.project-options{grid-template-columns:1fr}.project-option{padding:17px}.project-intro h3{font-size:22px}.project-intro p{font-size:13px}.town-civic-card b{font-size:13px}.town-civic-card small{font-size:11px}}

@media(max-width:760px){body[data-inspect=true] .town-heading{display:none}.route-button svg{width:18px;height:18px}}

/* Actual city geometry previews; loaded only when opening the atlas. */
.city-card-art{height:136px}.city-card-art img{display:block;width:100%;height:100%;object-fit:cover}.city-card-copy b{font-weight:600}.city-card-copy em{color:#2455c9}
@media(max-width:700px){.city-card-art{height:104px}}

/* Keep the settlement visible on a phone; the objective opens its full inspector. */
@media(max-width:760px){
 .town-heading{width:202px;padding:12px 13px}
 .town-heading h1{font-size:24px;margin:5px 0 3px}
 .town-objective{margin-top:8px;padding-top:8px}
 .town-objective h2{font-size:13px;margin:0 0 7px}
 .town-objective .goal-top,.town-objective small,.town-guidance{display:none}
}
/* Native dialogs occupy the top layer: feedback must live inside the dialog. */
.modal-feedback{position:sticky;top:0;z-index:4;margin:14px 0;padding:13px 16px;border-radius:12px;background:#eaf0fd;color:#234ca7;font-size:13px;line-height:1.5;box-shadow:0 3px 14px #2337430c}.modal-feedback.warn{background:#fff0d9;color:#75431c;border:1px solid #dfc4a1}
/* v0.7: a readable trip between two persistent settlements. */
.settlement dialog.town-transition{inset:0;margin:0;padding:0;border:0;border-radius:0;width:100vw;height:100dvh;max-width:none;max-height:none;overflow:hidden;background:#f3f6fa;color:#233743;box-shadow:none}
.settlement dialog.town-transition[open]{display:grid;place-items:center}
.settlement dialog.town-transition::backdrop{background:#f3f6fa;backdrop-filter:none}
.transition-card{position:relative;z-index:1;width:min(680px,calc(100vw - 48px));padding:44px 28px;text-align:center}
.transition-eyebrow{font-size:11px;letter-spacing:2.3px;color:#2455d6;font-weight:600;margin:0 0 32px}
.transition-from{font-size:16px;color:#64778b;margin:0 0 12px}.transition-from span{margin-left:14px;color:#2455d6}
.transition-card h2{font-size:clamp(42px,7vw,76px);line-height:1.1;letter-spacing:-2.1px;font-weight:500;margin:0;color:#183961}
.transition-period{font-size:15px;line-height:1.6;color:#52677f;margin:18px 0 25px}
.transition-status{font-size:15px;color:#3d5b78;line-height:1.6;min-height:24px;margin:20px auto 10px;max-width:470px}
.transition-goal{font-size:17px;line-height:1.4;color:#2455d6;margin:7px 0 20px}
.transition-route{height:14px;width:240px;max-width:70%;position:relative;margin:34px auto;background:linear-gradient(#a7bbd7,#a7bbd7) center / calc(100% - 16px) 1px no-repeat}
.transition-route i{position:absolute;top:3px;width:8px;height:8px;border-radius:50%;background:#f3f6fa;border:1.5px solid #2455d6;left:0}.transition-route i:last-child{left:auto;right:0}
.transition-route b{position:absolute;width:8px;height:8px;left:4%;top:3px;border-radius:50%;background:#2455d6;box-shadow:0 0 0 5px #2455d611;animation:chronika-route 1.4s ease-in-out infinite}
.transition-decoration{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 72% 20%,#dce8f6 0,transparent 56%)}
.transition-decoration span{position:absolute;left:-12%;top:55%;width:125%;height:210px;border-top:1px solid #2455d61d;transform:rotate(-12deg);border-radius:50%}
.transition-decoration span:nth-child(2){top:64%;height:260px;border-color:#2455d614}.transition-decoration span:nth-child(3){top:72%;height:320px;border-color:#2455d60d}
.transition-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:30px}
.transition-skip{background:#ffffff96;border:1px solid #bdcee4;border-radius:12px;padding:12px 17px;min-height:44px;font-size:13px;color:#42618b}
.transition-skip span{display:inline-block;font-size:10px;padding:3px 5px;margin-left:12px;border:1px solid #bdcee4;border-radius:4px;color:#64778b}
.town-transition[data-phase=departing] .transition-card{animation:chronika-depart .28s ease-out both}
.settlement dialog.town-transition[data-phase=arriving]{background:transparent;pointer-events:auto}
.settlement dialog.town-transition[data-phase=arriving]::backdrop{background:transparent}
.town-transition[data-phase=arriving] .transition-decoration,.town-transition[data-phase=arriving] .transition-from,.town-transition[data-phase=arriving] .transition-route{display:none}
.town-transition[data-phase=arriving] .transition-card{position:absolute;left:40px;bottom:120px;width:min(460px,calc(100vw - 80px));padding:25px 30px;background:#f7fafff5;border:1px solid #fff;border-left:4px solid #2455d6;border-radius:5px 22px 22px 5px;text-align:left;box-shadow:0 12px 50px #1839611c;animation:chronika-arrive .4s ease-out both}
.town-transition[data-phase=arriving] h2{font-size:42px;letter-spacing:-1.1px}.town-transition[data-phase=arriving] .transition-eyebrow{margin-bottom:14px;font-size:9px}.town-transition[data-phase=arriving] .transition-period{margin:11px 0}.town-transition[data-phase=arriving] .transition-status{font-size:12px;margin:12px 0 3px;min-height:0}.town-transition[data-phase=arriving] .transition-goal{font-size:15px;margin-bottom:0}.town-transition[data-phase=arriving] .transition-actions{justify-content:flex-start;margin-top:18px}
.town-transition[data-phase=error] .transition-route{display:none}.town-transition[data-phase=error] .transition-status{margin-top:28px}
@keyframes chronika-route{0%,100%{left:4%;opacity:.55}60%{left:92%;opacity:1}}
@keyframes chronika-depart{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes chronika-arrive{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
.victory-seal{display:grid;place-items:center;width:90px;height:90px;margin:4px auto 20px;border-radius:50%;background:#e8efff;border:1px solid #cedcff;box-shadow:0 0 0 10px #f2f6ff;color:#2455d6}.victory-seal svg{width:47px;height:47px}
.town-victory .victory-kicker{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#2455d6;margin:0 0 12px}
.victory-next{display:flex;justify-content:space-between;align-items:center;gap:24px;text-align:left;padding:22px 24px;border:1px solid #cfdcf0;background:#edf3ff;border-radius:18px;margin:25px 0 16px}.victory-next small{font-size:9px;letter-spacing:1.4px;color:#416ba1}.victory-next h4{font-size:25px;font-weight:500;margin:8px 0;color:#204b84}.town-victory .victory-next p{font-size:12px;line-height:1.65;margin:5px 0}.victory-next .primary{flex-shrink:0;white-space:nowrap}.town-victory .victory-persistence{font-size:12px;line-height:1.7;color:#536571;margin:20px 0}
.travel-preview h3{font-size:29px;line-height:1.25;font-weight:500;letter-spacing:-.5px;margin:13px 0 18px}.travel-period{font-size:13px;color:#527296}.travel-goal{display:flex;gap:17px;padding:22px;background:#edf3ff;border:1px solid #d4e0f4;border-radius:17px;margin:24px 0}.travel-goal>svg{width:32px;height:32px;color:#2455d6;flex-shrink:0}.travel-goal small{display:block;font-size:9px;letter-spacing:1.2px;color:#54739b}.travel-goal b{display:block;font-size:18px;font-weight:500;line-height:1.4;margin:8px 0}.travel-goal p{font-size:13px;line-height:1.7;color:#536571;margin:0}.city-card-focus{font-size:11px;line-height:1.6;color:#476889;margin:10px 0 0;border-top:1px solid #cfdbea;padding-top:8px}
.town-guidance .arrival-guidance{font-size:12px;line-height:1.65;margin-bottom:12px;color:#405d77}.arrival-guidance b{display:block;color:#2455d6;margin-bottom:5px;font-weight:600}.town-guidance .guidance-action{display:flex;background:none;border:0;border-radius:0;padding:0;text-align:left;color:#2455d6;font-size:12px;line-height:1.6;min-height:30px}.guidance-action svg{flex-shrink:0}
.building-card.locked{opacity:.6;cursor:default}.build-radius{display:flex;gap:5px;align-items:center;font-size:10px;color:#55739b}.build-radius svg{width:13px;height:13px}
.work-radius-note{display:flex;align-items:center;gap:11px;padding:12px;margin:10px 0;background:#edf3ff;border-radius:12px;color:#2455d6}.work-radius-note>svg{width:26px;height:26px;flex-shrink:0}.work-radius-note b{display:block;font-size:12px;font-weight:500}.work-radius-note small{display:block;font-size:11px;line-height:1.6;color:#536b88;margin-top:4px}
.workplace-status[data-status=missing-inputs],.workplace-status[data-status=no-nodes],.workplace-status[data-status=unreachable],.workplace-status[data-status=no-workers]{color:#825629}
.workplace-recipe{display:flex;align-items:center;gap:9px;padding:12px 0;margin:6px 0;color:#3c5d83}.workplace-recipe>div{display:flex;flex:1;flex-direction:column;gap:7px}.workplace-recipe>div>span{display:flex;gap:5px;align-items:center;font-size:11px;line-height:1.4}.workplace-recipe svg{width:18px;height:18px;flex-shrink:0}.workplace-recipe>svg{width:16px;color:#2455d6}
.workplace-shortages{display:flex;flex-direction:column;gap:7px;margin:10px 0}.workplace-shortages>small{font-size:11px;line-height:1.5;color:#825629}.workplace-shortages button{display:flex;gap:7px;align-items:center;border:1px solid #e4d7c3;background:#fff8ec;border-radius:9px;padding:9px 10px;color:#79572f;text-align:left;font-size:11px}.workplace-shortages button svg{width:17px;height:17px;flex-shrink:0}.workplace-shortages button svg:last-child{margin-left:auto}
.landmark-requirements{list-style:none;padding:0;margin:17px 0;display:grid;gap:10px}.landmark-requirements li{display:flex;gap:9px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #e0e6ec;font-size:12px;line-height:1.5;color:#596d80}.landmark-requirements li>svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}.landmark-requirements .met{color:#3e755d}.landmark-requirements span{flex:1}.landmark-requirements small{display:block;font-size:10px;margin-top:4px;opacity:.85}
.production-chains{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0 28px}.production-chain{border:1px solid #d4e0ee;border-radius:15px;padding:16px;background:#f7faff}.production-chain.locked{background:#f3f5f7;opacity:.8}.chain-title{display:flex;gap:11px;align-items:center;margin-bottom:13px}.chain-title svg{width:25px;height:25px;color:#2455d6;flex-shrink:0}.chain-title h4{font-size:15px;line-height:1.35;font-weight:500;margin:0}.production-chain>small{display:block;font-size:11px;line-height:1.6;color:#536571;margin-top:13px}.production-chain>p{font-size:12px;line-height:1.6;color:#536571}.production-chain .secondary{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:11px;min-height:38px;margin-top:12px;padding:10px 12px}.production-chain .secondary svg{width:16px;height:16px}.chain-recipe{display:flex;align-items:center;gap:10px;border-top:1px solid #e1e9f3;padding:10px 0;color:#42658b}.chain-recipe>span{display:flex;flex:1;flex-direction:column;gap:7px}.chain-recipe>span>span{display:flex;gap:5px;align-items:center;font-size:11px;line-height:1.5}.chain-recipe svg{width:18px;height:18px;flex-shrink:0}.chain-recipe>svg{width:15px;color:#2455d6}.trade-status{display:flex;align-items:center;gap:12px;border:1px solid #ceddf4;background:#edf3ff;border-radius:12px;padding:15px;font-size:13px;line-height:1.65;color:#345e92}.trade-status svg{width:24px;height:24px;flex-shrink:0}
.settlement button:disabled{cursor:default}.trade-grid button:disabled{opacity:.5}.town-inspector .primary:disabled{background:#e4eaf2;color:#687c94;box-shadow:none}
@media(max-width:760px){.transition-card{padding:30px 12px;width:calc(100vw - 36px)}.transition-card h2{font-size:44px;letter-spacing:-1.2px}.transition-period{font-size:13px}.transition-eyebrow{font-size:9px}.transition-status{font-size:13px}.town-transition[data-phase=arriving] .transition-card{left:18px;bottom:calc(98px + env(safe-area-inset-bottom));width:calc(100vw - 36px);padding:19px 22px}.town-transition[data-phase=arriving] h2{font-size:34px}.transition-actions{gap:8px}.transition-skip{font-size:12px}.victory-next{flex-direction:column;align-items:stretch;padding:19px;gap:16px}.victory-next .primary{width:100%}.production-chains{grid-template-columns:1fr}.travel-preview h3{font-size:25px}.travel-goal{padding:17px}.city-card-focus{font-size:10px}.town-guidance .arrival-guidance{font-size:11px}.landmark-requirements li{font-size:12px}}
@media(prefers-reduced-motion:reduce){.transition-route b,.town-transition .transition-card{animation:none!important;transition:none!important}}
.reduce-motion .transition-route b,.reduce-motion .town-transition .transition-card{animation:none!important;transition:none!important}
.town-camera .camera-place{width:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:9px;line-height:1.1}.town-camera .camera-place svg{width:17px;height:17px}.town-camera .camera-place span{font-size:9px;white-space:nowrap}
@media(max-width:760px){.town-camera .camera-place{width:54px;min-height:44px}}
.recovery-note{margin:15px 0;padding:15px 17px;background:#fff4df;border:1px solid #e7d6b4;border-radius:14px}.recovery-note p{font-size:13px;line-height:1.7;margin:0;color:#78572f}.recovery-note .secondary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:42px;margin-top:12px;background:#fff9ec;color:#78572f;font-size:12px}.recovery-note svg{width:16px;height:16px}.town-inspector .status-line{font-size:12px!important;line-height:1.65}.workplace-shortages button{min-height:42px}
@media(max-width:760px){.town-guidance .arrival-guidance{display:block;margin:0 0 8px}.town-guidance .arrival-guidance span{display:none}.town-guidance .arrival-guidance b{font-size:11px;line-height:1.5}.recovery-note p{font-size:12px}.town-inspector .recovery-note{padding:12px}}
.regional-intro h3{font-size:25px;font-weight:500;line-height:1.3;letter-spacing:-.5px;margin:22px 0 12px}.regional-intro p{font-size:14px;line-height:1.8;color:#536571;max-width:640px}.regional-delivered{display:flex;flex-wrap:wrap;gap:12px;padding:17px;background:#edf3ff;border-radius:14px;margin:20px 0;color:#3d648f}.regional-delivered>small{flex-basis:100%;font-size:11px}.regional-delivered>span{display:flex;gap:7px;align-items:center;font-size:12px}.regional-delivered svg{width:20px;height:20px}.regional-group{border:1px solid #d4dfed;border-radius:15px;margin:11px 0;background:#fbfcff;overflow:hidden}.regional-group summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none;padding:18px;color:#2d568a;font-size:15px}.regional-group summary:after{content:'+';font-size:22px;margin-left:6px}.regional-group[open] summary:after{content:'−'}.regional-group summary>svg{width:24px;height:24px}.regional-group summary>span{flex:1}.regional-group summary>small{font-size:11px;color:#657991}.regional-options{padding:0 16px 16px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.regional-option{border:1px solid #dde5ef;background:#f2f6fc;border-radius:12px;padding:15px}.regional-option h4{font-size:14px;font-weight:500;margin:0 0 8px;color:#284c76}.regional-option p{font-size:12px;line-height:1.65;color:#536571;margin:0 0 14px}.regional-option>div{display:grid;gap:7px}.regional-option button{font-size:11px;min-height:42px;display:flex;align-items:center;justify-content:space-between;padding:10px 12px}.regional-option button svg{width:16px;height:16px}.project-next-step{padding:12px 0 17px}.project-next-step p{font-size:12px;line-height:1.65;color:#536571;margin-bottom:11px}.project-next-step .secondary{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;font-size:12px;min-height:44px}.project-next-step svg{width:17px;height:17px}
@media(max-width:760px){.regional-intro h3{font-size:22px}.regional-intro p{font-size:13px}.regional-options{grid-template-columns:1fr}.regional-group summary{padding:15px;font-size:13px}.regional-group summary>small{font-size:10px}.town-tabs button{min-width:0;font-size:10px}.regional-delivered{gap:9px}}
.town-audio-settings{display:grid;gap:10px;border:1px solid #dce5f2;border-radius:16px;padding:12px;background:#f3f6fa}.town-audio-settings .town-setting{padding:9px 8px;background:transparent}.town-audio-settings .town-setting strong{font-size:14px;color:#233743}.town-audio-settings .town-setting p{font-size:12px;line-height:1.5;color:#536571}.town-volume{display:grid;gap:9px;padding:0 8px 12px;color:#334d5d;font-size:12px}.town-volume>span{display:flex;justify-content:space-between;gap:12px}.town-volume output{font-variant-numeric:tabular-nums;color:#2455d6}.town-volume input{width:100%;height:28px;accent-color:#2455d6;cursor:pointer}.town-volume input:focus-visible{outline:2px solid #2455d6;outline-offset:4px;border-radius:5px}.town-audio-note{font-size:12px;line-height:1.6;color:#536571;padding:0 8px}.town-audio-settings .source-details{padding:0 8px 5px}.town-menu-links button{display:inline-flex;align-items:center;gap:5px}.town-menu-links button svg{width:15px;height:15px}.town-switch[aria-pressed=true]{border-color:#8ba9e7;color:#2455d6;background:#e9effb}

/* The atmospheric veil belongs to daylight, while interface contrast stays fixed. */
.town-atmosphere{opacity:calc(1 - var(--night-blend,0)*.85)}
.town-brand{padding:7px 12px 7px 7px;border-radius:14px;background:#fffdf5eb;box-shadow:0 3px 18px #253e350a}
@media(max-width:760px){.town-brand{padding:5px 9px 5px 5px;border-radius:11px}}
.town-score-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:0 8px 5px;align-items:center}.town-score-picker label{grid-column:1/-1;color:#334d5d;font-size:12px}.town-score-picker select{min-width:0;width:100%;border:1px solid #ccd8ed;border-radius:10px;padding:11px;background:#fffdf8;color:#233743;font:inherit;font-size:13px}.town-score-picker .secondary{font-size:12px;display:flex;align-items:center;gap:6px;min-height:42px}.town-score-picker svg{width:16px;height:16px}.town-score-picker select:focus-visible{outline:2px solid #2455d6;outline-offset:2px}@media(max-width:480px){.town-score-picker{grid-template-columns:minmax(0,1fr)}.town-score-picker .secondary{justify-self:start}}
