:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:oklch(22% .015 139);--surface:oklch(27% .018 137);--raised:oklch(31% .024 137);--border:oklch(42% .029 131);--text:oklch(95% .024 87);--muted:oklch(80% .039 118);--gold:oklch(83% .105 79);--green:oklch(80% .086 126);--error:oklch(83% .087 39);--residential-color:#a8c57d;--commerce-color:#94b9cf;--industry-color:#ecb27a;--overlay:#1d251cf2;--float-shadow:0 5px 15px #10170f47;--margin:clamp(9px, 1.3vw, 20px);--hud-top:77px;--tool-width:163px;--rail-width:56px;--village-width:254px;font:15px/1.45 DM Sans,system-ui,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}body{background:var(--background);color:var(--text);margin:0}button{color:inherit;font:inherit;cursor:pointer}select{min-width:0;font:inherit;color:var(--text);background:var(--background);border:1px solid var(--border);border-radius:5px;padding:.4rem}:is(a,button,canvas,select,summary):focus-visible{outline:2px solid var(--gold);outline-offset:-2px}button[aria-disabled=true]{cursor:default}h1,h2,p,ul{margin:0}.game-shell{--panels-top:max(var(--hud-top), 7px + var(--masthead-bottom,0px));isolation:isolate;position:fixed}.game-shell,.world{inset:0;overflow:hidden}.world{background:radial-gradient(at 46% 43%,#5d6949,#354434 65%,#26352d);position:absolute}.map-terrain{transform-origin:0 0;will-change:transform;top:0;left:0}.map-detail,.map-terrain{pointer-events:none;position:absolute}.map-detail{visibility:hidden;inset:0}#map,.map-detail{width:100%;height:100%}#map{touch-action:none;cursor:crosshair;display:block;position:relative}#map:focus-visible{outline-offset:-4px}#map.dragging{cursor:grabbing}.masthead{z-index:2;inset:var(--margin) var(--margin) auto;pointer-events:none;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:8px;display:grid;position:absolute}.masthead>*{pointer-events:auto}.brand,.camera,.resources,.time-controls{border:1px solid var(--border);background:var(--overlay);box-shadow:var(--float-shadow);border-radius:9px}.brand{justify-self:start;align-items:center;gap:7px;min-width:0;max-width:min(100%,16rem);min-height:48px;padding:6px 12px 6px 7px;display:flex}.city-identity{gap:2px;min-width:0;display:grid}.city-identity h1{text-overflow:ellipsis;white-space:nowrap;font-size:1rem;font-weight:780;line-height:1.2;overflow:hidden}#map-age{color:#f3d69c;font-size:.68rem;font-weight:650;line-height:1.25}.game-shell[data-age=bronze] #map-age{color:#ffd6ae}.game-shell:is([data-age=iron],[data-age=medieval],[data-age=renaissance],[data-age=industrial],[data-age=modern],[data-age=digital],[data-age=future]) #map-age{color:#d6eaf1}.speed-group,.time-controls{align-items:center;gap:3px;display:flex}.time-controls{gap:5px;min-height:48px;padding:4px}#day-label{min-height:32px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:5px;align-content:center;justify-items:start;gap:1px;padding:2px 5px;font-size:.78rem;line-height:1.1;display:grid}#day-label:hover{border-color:var(--border);background:var(--raised)}.weather-clock{align-items:center;gap:3px;display:flex}.weather-clock .pixel-icon{width:14px;height:14px}#city-hour{color:var(--gold);font-weight:700}.speed-group{border:1px solid var(--border);border-radius:6px;padding:2px}.camera button,.speed-group button,.square{color:var(--text);background:0 0;border:1px solid #0000;border-radius:5px;min-block-size:32px;min-inline-size:31px;padding:0;font-size:.8rem;font-weight:730}.camera button:hover,.speed-group button:hover,.square:hover{background:var(--raised)}.speed-group button{place-items:center;display:grid}.speed-group .pixel-icon{width:18px;height:18px}.speed-group [aria-pressed=true]{background:var(--gold);color:#231e15}.speed-group [aria-pressed=true]:hover{background:#f6d395}.square{border-color:var(--border);background:var(--surface)}.square:disabled{opacity:.5;cursor:default}.research-quick{color:var(--gold);display:none}.resources{justify-self:center;width:min(100%,723px);min-height:48px;padding:3px;display:flex}.game-shell #resources{width:100%;max-width:1120px}.resource-slot{display:contents}.resource-list{scrollbar-width:thin;flex:1;min-width:0;display:flex;overflow-x:auto}.resource-list>.resource{flex:1 0 auto;gap:3px;padding-inline:2px}.resource-list>.resource[data-resource=water]{container-type:normal}.resource{flex:1 1 0;justify-content:center;align-items:center;gap:4px;min-width:0;padding:3px 4px;display:flex}.resource[data-resource=water]{flex-grow:1.6;container:water-counter/inline-size}.resource+.resource{border-inline-start:1px solid var(--border)}.resource>.resource-content{flex-direction:column;min-width:0;display:flex;position:relative}.resource strong{font-variant-numeric:tabular-nums;white-space:nowrap;order:1;font-size:.91rem;line-height:1.1;display:block}.resource[data-resource=water] :is(strong,small){white-space:normal;overflow-wrap:anywhere}.resource small,.resource-list [data-resource=water] strong{white-space:nowrap}.resource-name{color:var(--muted);order:0;margin-bottom:2px;font-size:.64rem;line-height:1.05}.resource small{color:var(--green);order:2;margin-top:2px;font-size:.57rem;font-weight:700;line-height:1}.resource[data-warning=true] small{color:var(--error)}.resource .pixel-icon{flex:none;width:19px;height:19px}@container water-counter (width<=60px){.game-shell:not(.compact-hud) .resource .pixel-icon{display:none}}button.resource{border:0;border-inline-start:1px solid var(--border);text-align:start;background:0 0}button.resource:hover{background:var(--raised)}#water-toggle:hover,button.resource[aria-pressed=true]{background:#293f39}[data-resource=food]:hover .resource-name{color:var(--gold)}button.resource[aria-pressed=true] .resource-name{color:#a6e0d3}.pixel-icon{width:24px;height:24px;image-rendering:pixelated;display:block}.camera{inset:auto var(--margin) var(--margin) auto;align-items:center;gap:4px;padding:3px;display:flex;position:absolute}.camera button{inline-size:36px;font-size:1.05rem}.camera button:disabled{opacity:.45;cursor:default}.camera-divider{border-inline-start:1px solid var(--border);height:22px}#zoom-level{text-align:center;min-width:44px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.74rem}.water-legend{inset:auto auto calc(65px + var(--margin)) 50%;z-index:1;pointer-events:none;width:max-content;max-width:calc(100% - 2 * var(--margin));color:#d0f5e9;box-shadow:var(--float-shadow);background:#203831;border:1px solid #71978d;border-radius:6px;padding:7px 9px;font-size:.75rem;position:absolute;transform:translate(-50%)}.water-legend[data-active=false]{color:#f7e1b4;background:#403526;border-color:#987e56}.service-legend{align-items:center;gap:8px;display:flex}.service-legend select{pointer-events:auto;cursor:pointer;flex:none;max-width:9rem;height:32px;font-weight:650}.commerce-legend{grid-template-columns:1fr auto;gap:6px 12px;display:grid}.commerce-legend select{max-width:none}.commerce-counts,.commerce-key,.locate-home{grid-column:1/-1}.market-square-actions{color:#ffe2a5;flex-wrap:wrap;grid-column:1/-1;justify-content:space-between;align-items:center;gap:5px 10px;display:flex}.market-square-actions span:before{content:"";vertical-align:middle;border-block-start:2px solid #ffc873;width:.8rem;margin-inline-end:.35rem;display:inline-block}.market-square-preview{color:#ffe2a5}.commerce-counts{flex-wrap:wrap;align-items:center;gap:4px 10px;display:flex}.commerce-counts .service-cell{flex-basis:100%}.commerce-counts .served:before,.commerce-counts .unserved:before{content:"";background:#85b66c;border:1px solid #dcf8c1;width:.65rem;height:.65rem;margin-right:.3rem;display:inline-block}.commerce-counts .unserved:before{background:#b55649;border:1px dashed #ffcbac}.housing-actions{flex-wrap:wrap;gap:5px;display:flex}.housing-actions button[aria-pressed=true]{border-color:var(--gold);color:var(--gold);background:#443820}.service-cell{font-weight:700;display:block}.district-legend{width:min(410px,100% - 2 * var(--margin));gap:6px;display:grid}.district-legend-heading,.promenade-key{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px 10px;display:flex}.district-legend-tiers{flex-wrap:wrap;gap:4px 11px;margin:0;padding:0;list-style:none;display:flex}.promenade-key{border-top:1px solid #526c61;padding-top:6px}.promenade-key span{color:#d7efca}.promenade-key span:before{content:"";vertical-align:middle;border-top:2px solid #a6dc9e;width:.85rem;margin-inline-end:.33rem;display:inline-block}.service-legend[data-service=plaza][data-active=true]{color:#ffe3ae;background:#453526;border-color:#bd9858}.service-legend[data-service=library][data-active=true]{color:#d2f1f5;background:#213c42;border-color:#68a9b4}.service-legend:is([data-service=culture],[data-service=sanctuary])[data-active=true]{color:#ecd8ff;background:#392f49;border-color:#c5a0e4}.service-legend:is([data-service=lighting],[data-service=monument])[data-active=true]{color:#ffebba;background:#473c25;border-color:#d4b469}.service-legend[data-service=guardPost][data-active=true]{color:#e1edff;background:#243755;border-color:#8dafe8}.service-legend[data-service=fireWatch][data-active=true]{color:#ffe1c5;background:#4a2e25;border-color:#db9b6f}.service-legend[data-service=school][data-active=true]{color:#f2eaff;background:#3d3057;border-color:#bfadea}.service-legend[data-service=clinic][data-active=true]{color:#ffdfec;background:#523243;border-color:#e4a1bb}.service-legend:is([data-service=park],[data-service=leisure])[data-active=true]{color:#e2f6cf;background:#304332;border-color:#a2c583}.service-legend button{pointer-events:auto;flex:none;min-block-size:28px}.map-notice{pointer-events:none;z-index:3;width:max-content;max-width:calc(100% - 2 * var(--margin));background:var(--surface);border:1px solid var(--border);box-shadow:var(--float-shadow);color:var(--text);border-radius:6px;padding:7px 11px;font-size:.84rem;position:absolute;bottom:48px;left:50%;transform:translate(-50%)}.map-notice[data-error=true]{color:var(--error)}.fire-alert.secondary{pointer-events:auto;color:#ffdfab;background:#493927;border-color:#ae8a54;justify-content:flex-start;align-items:center;gap:7px;width:100%;min-height:42px;padding-inline:.8rem;display:flex}.fire-alert[data-stage=burning]{color:#ffd6bc;background:#523127;border-color:#c98970}.fire-alert[data-stage=damaged]{background:#413f2a;border-color:#9e9872}.fire-alert-dot{background:currentColor;border:1px solid;border-radius:50%;width:.53rem;height:.53rem}.current-fire{color:#f1d3a2}.ferry-shortcut.secondary{text-align:start;pointer-events:auto;min-height:36px;padding-inline:.8rem}.left-controls{z-index:1;inset:var(--panels-top) auto var(--margin) var(--margin);width:var(--tool-width);pointer-events:none;flex-direction:column;justify-content:space-between;align-items:flex-start;gap:6px;display:flex;position:absolute}.toolbox{border:1px solid var(--border);background:var(--overlay);width:100%;min-height:0;box-shadow:var(--float-shadow);scrollbar-width:thin;pointer-events:auto;border-radius:9px;overflow:hidden auto}.left-summary{flex:none;width:100%}.undo-placement{pointer-events:auto;margin-bottom:4px}.undo-placement:disabled{opacity:.55;cursor:default}#zone-demand{pointer-events:auto}#save-label{color:#f1eddd;overflow-wrap:anywhere;text-shadow:0 1px 4px #101b13,0 1px 4px #101b13;margin-bottom:3px;font-size:.66rem}.sidebar{top:var(--panels-top);right:var(--margin);z-index:1;width:var(--village-width);max-height:calc(100% - 55px - var(--panels-top));flex-direction:column;gap:6px;display:flex;position:absolute}.sidebar.village-collapsed{width:max-content}.hud-summary{cursor:pointer;justify-content:space-between;align-items:center;gap:10px;min-height:35px;padding:5px 10px;font-size:.78rem;font-weight:740;list-style:none;display:flex}.hud-summary::-webkit-details-marker{display:none}.hud-summary:after{content:"";border-bottom:1.5px solid var(--gold);border-right:1.5px solid var(--gold);flex:none;block-size:6px;inline-size:6px;transform:translateY(-1px)rotate(45deg)}details[open]>.hud-summary:after{transform:translateY(2px)rotate(225deg)}.hud-summary:hover{color:var(--gold)}.village-menu-body>.hud-summary{background:var(--overlay);border:1px solid var(--border);border-radius:8px}#active-cost{overflow-wrap:anywhere;border-bottom:1px solid var(--border);color:var(--muted);padding:0 3px 6px;font-size:.68rem;line-height:1.25}.tool{background:var(--raised);text-align:start;border:1px solid #0000;border-radius:5px;align-items:center;gap:5px;width:100%;min-width:0;min-height:33px;padding:3px 15px 3px 4px;font-size:.72rem;font-weight:640;line-height:1.15;display:flex;position:relative}.tool>span{overflow-wrap:anywhere;min-width:0}.tool:hover{border-color:var(--green)}.tool[aria-pressed=true]{border-color:var(--gold);color:#fff0cf;background:#413929}.tool[aria-disabled=true]{color:#b5b9a5;background:#21291f}.tool[aria-disabled=true] .pixel-icon{opacity:.58}.tool[data-tool=zoneHousing]{--zone:var(--residential-color);--zone-surface:#2b3b28}.tool[data-tool=zoneCommerce]{--zone:var(--commerce-color);--zone-surface:#293942}.tool[data-tool=zoneIndustry]{--zone:var(--industry-color);--zone-surface:#423326}.tool[data-tool^=zone]{background:var(--zone-surface);border-inline-start:2px solid var(--zone)}.tool[data-tool^=zone]:hover,.tool[data-tool^=zone][aria-pressed=true]{border-color:var(--zone)}.tool[data-tool^=zone][aria-pressed=true]{color:var(--zone)}.tool .shortcut{color:var(--muted);font-size:.55rem;position:absolute;top:3px;right:4px}.tool .pixel-icon{flex:none;width:23px;height:23px}.village-panels{gap:7px;margin-top:7px;display:grid}.panel{border:1px solid var(--border);background:var(--overlay);min-width:0;box-shadow:var(--float-shadow);border-radius:9px;padding:13px}.progress-panel{background:linear-gradient(152deg,#31382af8,var(--overlay) 66%)}.panel-label{color:var(--gold);letter-spacing:.11em;text-transform:uppercase;align-items:center;gap:7px;margin-bottom:6px;font-size:.62rem;font-weight:750;display:flex}.card-summary{cursor:pointer;margin:-6px -4px;padding:8px 24px 8px 4px;list-style:none;position:relative}.card-summary::-webkit-details-marker{display:none}.card-summary:after{content:"";border:solid var(--gold);border-width:0 1.5px 1.5px 0;width:6px;height:6px;position:absolute;inset:12px 7px auto auto;transform:rotate(45deg)}.panel[open]>.card-summary:after{transform:translateY(3px)rotate(225deg)}.panel[open]>.card-summary{margin-bottom:2px}.card-summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:3px}.label-dot{background:currentColor;border-radius:1px;width:6px;height:6px;transform:rotate(45deg)}.panel h2{letter-spacing:-.03em;overflow-wrap:anywhere;margin-bottom:6px;font-size:1.18rem;line-height:1.15}.panel p{color:var(--muted);font-size:.76rem;line-height:1.43}.milestones{gap:7px;margin:11px 0;padding:0;list-style:none;display:grid}.criterion-line{justify-content:space-between;align-items:baseline;gap:7px;margin-bottom:3px;font-size:.73rem;display:flex}.criterion-line strong{color:var(--gold);font-variant-numeric:tabular-nums;flex:none;font-size:.72rem}.criterion-line[data-complete=true] strong{color:var(--green)}.bar{background:#141c15;border-radius:4px;height:4px;overflow:hidden}.bar span{background:var(--gold);height:100%;display:block}.bar[data-complete=true] span{background:var(--green)}.progress-actions{gap:5px;display:grid}.primary,.secondary{border-radius:6px;min-height:35px;padding:6px 8px;font-size:.75rem;font-weight:750}.primary,.research-trigger{text-align:start;justify-content:space-between;align-items:center;gap:7px;width:100%;display:flex}.primary{border:1px solid var(--gold);background:var(--gold);color:#261f14}.primary:hover{background:#f6d395}.primary[aria-disabled=true]{color:#d0c3a5;background:#353426;border-color:#665b3c}.secondary{background:var(--raised);border:1px solid var(--border)}.secondary:hover{border-color:var(--gold)}.research-trigger{color:var(--gold)}.inspect-details{color:var(--muted);gap:4px;margin-top:8px;padding:0;font-size:.73rem;list-style:none;display:grid}.inspect-details:empty{display:none}.inspect-details li{border-top:1px solid var(--border);padding-top:4px}.upgrade{width:100%;margin-top:7px}.upgrade[aria-disabled=true]{color:var(--muted);border-color:var(--border)}.panel .upgrade-detail{margin-top:9px;font-size:.72rem}.panel .upgrade-detail[data-blocked=true]{color:var(--error)}.footer{inset:auto 270px var(--margin) calc(12px + var(--margin) + var(--tool-width));color:#f1eddd;pointer-events:none;text-shadow:0 1px 4px #101b13,0 1px 4px #101b13;font-size:.66rem;position:absolute}dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:11px;width:min(480px,100% - 22px);max-height:calc(100dvh - 24px);padding:17px;box-shadow:0 12px 50px #131b13a6}dialog::backdrop{background:#101710bb}dialog h2{margin:0 36px 7px 0;font-size:1.5rem;line-height:1.16}dialog p,dialog ul{color:var(--muted);margin-bottom:10px}.close-help{position:absolute;top:12px;right:12px}.food-dialog{width:min(400px,100% - 22px)}.food-figures{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0;display:grid}.food-figures>div{border:1px solid var(--border);background:var(--raised);border-radius:6px;padding:6px 9px}.food-figures dt,.food-reserves label{color:var(--muted);font-size:.76rem}.food-figures dd{font-variant-numeric:tabular-nums;margin:0;font-weight:750}#food-balance{color:var(--green)}.food-reserves>div{justify-content:space-between;align-items:baseline;gap:5px;display:flex}#food-stock{font-variant-numeric:tabular-nums;font-size:.84rem}#food-meter{width:100%;height:9px;margin-block:4px 9px;display:block}#food-meter::-webkit-meter-bar{background:#141c15;border:0;border-radius:4px}#food-meter::-webkit-meter-optimum-value{background:var(--gold)}#food-meter::-moz-meter-bar{background:var(--gold)}#food-outlook{color:var(--text);margin-bottom:5px;font-size:.85rem}.food-dialog[data-warning=true] :is(#food-balance,#food-outlook){color:var(--error)}.food-dialog .food-advice{margin:0;font-size:.76rem}.save-actions{flex-wrap:wrap;gap:6px;display:flex}#reset-confirm,#reset-error{margin:8px 0 0;font-size:.85rem}#reset-error{color:var(--error)}.research-dialog{background:linear-gradient(143deg,#30382a,var(--surface) 54%);width:min(1230px,100% - 24px)}.research-header{-moz-column-gap:12px;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;column-gap:12px;display:grid}.research-header h2{margin-right:0}.research-header .square{font-size:1.15rem}.research-header p{font-size:.84rem}.research-stock{color:var(--muted);align-items:baseline;gap:5px;padding:5px 8px;font-size:.76rem;display:flex}.research-stock strong{color:var(--gold);font-variant-numeric:tabular-nums;font-size:1.06rem}.research-viewport{scrollbar-width:thin;padding-block:5px;overflow:auto}.research-tree{grid-template-columns:repeat(var(--columns),minmax(0,1fr));min-width:calc(162px * var(--columns));isolation:isolate;align-items:stretch;gap:18px 19px;display:grid;position:relative}.tech-links{pointer-events:none;z-index:-1;width:100%;height:100%;position:absolute;inset:0}.research-age{grid-column:var(--column)/span var(--span);border-bottom:1px solid var(--border);grid-row:1;align-self:end;margin:0;padding-bottom:5px;font-size:.88rem}.tech-node{grid-column:var(--column);grid-row:calc(1 + var(--lane));text-align:start;min-height:125px;color:var(--text);background:#242d23;border:1px solid #515c44;border-radius:8px;flex-direction:column;align-items:stretch;gap:5px;padding:9px;display:flex}.tech-node[data-branch=renaissance]{box-shadow:inset 0 2px #c7986b}.tech-node[data-branch=modern]{box-shadow:inset 0 2px #e1cf61}.tech-node[data-branch=digital]{box-shadow:inset 0 2px #4ed9cd}.tech-node[data-branch=future]{box-shadow:inset 0 2px #bec3ff}.tech-node[data-branch=industrial]{box-shadow:inset 0 2px #76aaa7}.tech-node[data-branch=medieval]{box-shadow:inset 0 2px #b78355}.tech-node[data-branch=iron]{box-shadow:inset 0 2px #859ca6}.tech-node[data-status=available]{border-color:var(--gold);background:#3b3525}.tech-node[data-status=available]:hover{background:#463b27}.tech-node[data-status=learned]{background:#323e28;border-color:#72864d}.tech-name{font-size:.91rem;font-weight:750}.tech-description{color:var(--muted);font-size:.76rem;line-height:1.35}.tech-prerequisites{color:var(--muted);font-size:.68rem;line-height:1.3}.research-focus:empty,.tech-prerequisites:empty{display:none}.tech-meta{color:var(--muted);margin-top:auto;font-size:.72rem;font-weight:730}.tech-node[data-status=available] .tech-meta{color:var(--gold)}.research-notice,.tech-node[data-status=learned] .tech-meta{color:var(--green)}.research-focus,.research-notice{margin:7px 0 0;font-size:.8rem}.research-notice{min-height:1.45em}.research-notice[data-error=true]{color:var(--error)}@media (width>=761px) and (height<=790px){.tool{min-height:27px;padding-block:2px}.tool .pixel-icon{width:20px;height:20px}}@media (width<=1100px){:root{--hud-top:119px}.masthead{grid-template-columns:minmax(0,1fr) auto}.time-controls{justify-self:end}.resources{grid-area:2/1/auto/-1;width:100%;min-height:42px}}@media (width<=760px){:root{--tool-width:138px;--village-width:min(252px, 100% - 2 * var(--margin))}.masthead{gap:5px}.brand,.time-controls{min-height:42px}.brand{padding:4px 7px 4px 4px}.time-controls{gap:2px;padding:2px}.research-quick{display:initial}.resource{gap:2px;padding-inline:2px}.resource .pixel-icon{width:16px;height:16px}.resource strong{font-size:.84rem}.resource-name{font-size:.62rem}.footer,.tech-links{display:none}.research-tree{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}.research-viewport{max-height:62dvh}.research-age{grid-area:auto/1/auto/-1;padding-top:.65rem}.research-tree .tech-node{grid-area:auto;min-height:110px}}@media (width<=470px){.city-identity h1{font-size:.92rem}#day-label{text-overflow:ellipsis;max-width:63px;padding-inline:3px;font-size:.69rem;overflow:hidden}.speed-group{gap:1px}.speed-group button,.square{min-inline-size:24px;font-size:.75rem}.sidebar .hud-summary{min-height:40px}.tool{min-height:36px;font-size:.73rem}.tool .shortcut{display:none}.camera button{inline-size:30px}.camera{gap:2px}#zoom-level{min-width:39px}.left-summary{width:min(100%,100vw - 234px)}.research-dialog{padding:12px}.research-header{-moz-column-gap:6px;grid-template-columns:minmax(0,1fr) auto;column-gap:6px}.research-header form{grid-area:1/2}.research-stock{grid-row:2;padding:0 0 5px}.research-header p{margin-bottom:3px}}@media (height<=520px) and (width>=761px){.tool{min-height:28px}.tool .pixel-icon{width:20px;height:20px}}@media (width<=365px){.brand{padding-inline:5px}#day-label{text-align:center;justify-items:center;line-height:1.05}.day-count{display:grid}.camera button{inline-size:26px;min-inline-size:26px}#zoom-level{min-width:32px}.left-summary{width:min(100%,100vw - 206px)}}.compact-hud{--hud-top:0px}.compact-hud .resource-slot{--counter-height:32px;width:min(100%,324px);min-width:0;height:calc(6px + var(--counter-height));grid-area:2/1/auto/-1;justify-self:center;display:block;position:relative}.game-shell.compact-hud .resources{align-items:flex-start;gap:2px;width:100%;min-height:0;padding:2px;display:flex;position:absolute;inset:0 0 auto}.compact-hud .resource{min-height:var(--counter-height);gap:2px;min-width:25%;padding:2px}.compact-hud .resource:first-child{border-inline-start:0}.compact-hud .resource .pixel-icon{width:16px;height:16px}.compact-hud .resource strong{font-size:.78rem}.compact-hud .resource[data-resource=water] strong{overflow-wrap:normal}.compact-hud .resources-expanded .resource{text-align:center;grid-template-columns:14px minmax(0,max-content);place-content:center;gap:1px 2px;min-height:46px;display:grid}.compact-hud .resources-expanded .resource-content{display:contents}.compact-hud .resources-expanded .pixel-icon{grid-area:1/1;width:14px;height:14px;display:block}.compact-hud .resources-expanded .resource-name{text-align:start;grid-area:1/2;margin:0}.compact-hud .resources-expanded strong{grid-area:2/1/3/-1}.compact-hud .resources-expanded small{grid-area:3/1/4/-1}.resource-toggle{width:32px;min-height:var(--counter-height);background:var(--raised);border:1px solid var(--border);color:var(--gold);border-radius:5px;order:1;place-items:center;padding:0;display:grid}.resource-chevron{border:solid;border-width:0 2px 2px 0;width:8px;height:8px;transform:translateY(-2px)rotate(45deg)}.resource-toggle[aria-expanded=true] .resource-chevron{transform:translateY(2px)rotate(225deg)}@media (width>=820px){.compact-hud .masthead{grid-template-columns:auto minmax(0,1fr) auto}.compact-hud .resource-slot{grid-area:1/2}}.game-loading{place-items:center;display:grid}.network-quote{z-index:5;color:#ffedc6;pointer-events:none;text-align:center;background:#302e28f5;border:1px solid #c5a272;border-radius:.45rem;width:max-content;max-width:85%;padding:.5rem .8rem;font-size:.85rem;position:absolute;top:18%;left:50%;transform:translate(-50%)}.network-quote.invalid{color:#ffd2bf;border-color:#c8856d}.road-frontage{color:#d0d5b8;font-variant-numeric:tabular-nums;justify-content:center;align-items:center;gap:.35rem;margin-top:.2rem;font-size:.78rem;display:flex}.road-frontage.has-plots{color:#d4efae}.road-frontage.has-plots:before{content:"";background:#729a52;border:1px solid #c5e999;flex:none;width:.5rem;height:.5rem;transform:rotate(45deg)}.left-controls:has(.build-options,.rail-label){z-index:3}@media (height<=700px){.left-controls:has(#build-menu[open]) .left-summary{display:none}}@media (width<=760px) and (height<=900px){.left-controls:has(#build-menu[open]) #zone-demand .demand-gauge{height:25px}}@media (orientation:landscape) and (height<=520px){.left-controls:has(#build-menu:not([open])) .left-summary{left:calc(6px + var(--rail-width));position:absolute;bottom:0}.game-shell:has(#build-menu:not([open])) .footer{left:calc(12px + var(--margin) + var(--rail-width) + var(--tool-width))}}.recovery-code{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.account-page{max-width:640px;margin:0 auto;padding:clamp(16px,5vw,38px)}.account-heading h1 span,.account-page a{color:var(--gold)}.account-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;display:flex}.account-heading:not(:first-child){margin-top:1.4rem}.account-form{background:var(--surface);border:1px solid var(--border);border-radius:9px;gap:.65rem;margin-top:1rem;padding:1rem;display:grid}.account-form input:where(:not([type=checkbox])){width:100%;min-width:0;min-height:40px;font:inherit;color:var(--text);background:var(--background);border:1px solid var(--border);border-radius:5px;padding:6px}.account-form button{justify-self:start;min-height:40px}.account-checkbox{align-items:baseline;gap:.5rem;display:flex}.account-checkbox input{flex:none;width:1rem;height:1rem;margin:0}.account-hint{color:var(--muted);font-size:.84rem}.city-list{gap:.65rem;margin-top:.8rem;display:grid}.account-notice{color:var(--error);margin-top:.85rem}.legal-links{flex-wrap:wrap;align-items:baseline;gap:.35rem 1.1rem;display:flex}.cookie-notice a,.legal-article a,.legal-links a,.legal-links button,.registration-terms a{color:var(--gold,#ffce78);text-underline-offset:.2em;text-decoration:underline}.legal-links a,.legal-links button{padding-block:.3rem;font-size:.92rem}.legal-links button{cursor:pointer;background:0 0;border:0;padding-inline:0;font-family:inherit}.public-legal{border-top:1px solid var(--border);flex-wrap:wrap;align-items:baseline;gap:.5rem 1.5rem;margin-top:2rem;padding-block:1rem;display:flex}a.social-link{color:var(--accent,var(--gold,#ffce78));text-underline-offset:.22em;padding-block:.35rem;text-decoration:underline;display:inline-block}a.social-link:focus-visible{outline-offset:2px;outline:2px solid}.registration-terms{font-size:.92rem;line-height:1.5}.legal-article{overflow-wrap:anywhere;max-width:72ch;margin:clamp(2rem,5vw,4rem) auto;line-height:1.65}.legal-article h1{text-transform:none;letter-spacing:-.03em;margin:0 0 1.4rem;font:700 clamp(2rem,5vw,3.3rem)/1.12 Georgia,serif}.legal-article h2{margin:1.6rem 0 .45rem;font:700 1.35rem/1.3 Georgia,serif}.legal-article p,.legal-article ul{margin:.75rem 0}.legal-article ul{padding-left:1.4rem}.legal-article li+li{margin-top:.45rem}.cookie-notice{z-index:90;right:max(1rem,env(safe-area-inset-right));bottom:max(1rem,env(safe-area-inset-bottom));color:#f4eedc;background:#172725;border:1px solid #63736a;border-radius:.55rem;width:min(27rem,100% - 2rem);max-height:calc(100dvh - 2rem);padding:1.2rem 1.35rem;font:400 .94rem/1.5 system-ui,sans-serif;position:fixed;overflow:auto;box-shadow:0 .4rem 2rem #08110e60}.cookie-notice[hidden],[data-cookie-inactive][hidden],[data-cookie-preferences][hidden]{display:none}.cookie-notice h2{margin:0 0 .45rem;font:700 1.3rem/1.25 Georgia,serif}.cookie-notice p{margin:.35rem 0}.cookie-actions{gap:.6rem;margin-top:.85rem;display:flex}.cookie-actions button,.cookie-manage{color:#f4eedc;cursor:pointer;background:#2b3c34;border:1px solid #aeb9a6;border-radius:.3rem;min-height:44px;padding:.5rem 1.1rem;font:600 .96rem/1.4 system-ui,sans-serif}.cookie-actions button{flex:1}.cookie-actions button:hover,.cookie-manage:hover{background:#394d40}.cookie-manage:focus-visible,.cookie-notice :is(a,button):focus-visible{outline-offset:2px;outline:2px solid #ffce78}@media print{.cookie-manage,.cookie-notice{display:none}}
