html,body,#app{background:#243e38;width:100%;height:100%;margin:0;overflow:hidden}canvas{display:block}#debug{color:#eee6cf;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#24382fd9;border:1px solid #c8b78b77;border-radius:7px;width:252px;padding:17px 18px;font:12px system-ui;transition:opacity .2s;position:fixed;top:22px;left:22px;box-shadow:0 10px 35px #17282166}#debug.hidden{opacity:0;pointer-events:none}.top{justify-content:space-between;display:flex}.top strong{letter-spacing:.16em;font:17px Georgia,serif;display:block}.top small{color:#cfcbaf;margin-top:4px;font-style:italic;display:block}.top button{align-self:start}.presets{flex-wrap:wrap;gap:4px;margin:17px 0 12px;display:flex}button{color:#fff4d8;cursor:pointer;background:#59775c;border:1px solid #d4ca9b66;border-radius:4px;padding:5px 7px;font:11px system-ui}button:hover{background:#74906a}#controls label{align-items:center;gap:8px;min-height:25px;display:flex}#controls label span{width:82px}#controls input[type=range]{accent-color:#ddb979;width:118px}#controls output{color:#ddcda0;text-align:right;width:28px;font:10px monospace}#controls input[type=checkbox]{accent-color:#a8bd79}.foot{color:#cfc9aa;border-top:1px solid #d9cda34d;margin-top:13px;padding-top:10px;font-size:10px}#fps{color:#fff3d4;background:#283b35aa;padding:6px 9px;font:11px monospace;display:none;position:fixed;top:18px;right:20px}.quality{gap:5px;margin:0 0 10px;display:flex}.quality button{flex:1}.weather{align-items:center;gap:5px;margin:0 0 10px;display:flex}.weather span{color:#e6dbbb;width:61px}.weather button{flex:1;padding-inline:3px}.weather button.active{color:#283d34;background:#d1aa76;border-color:#f1d9ad;font-weight:700}#buildbar{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#f7e9c9;z-index:5;background:#263b33e8;border:1px solid #dfd0a477;border-radius:13px;align-items:center;gap:8px;padding:9px 12px;font:12px system-ui;display:flex;position:fixed;bottom:20px;left:50%;transform:translate(-50%);box-shadow:0 12px 34px #16261b77}.build-title{letter-spacing:.14em;color:#ead5a6;margin:0 8px 0 4px;font:11px Georgia,serif}#buildbar button{color:#f3e8d0;background:#48665066;border:1px solid #0000;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:62px;min-height:57px;padding:5px;font:11px system-ui;display:flex}#buildbar button svg{width:25px;height:25px}#buildbar button:hover,#buildbar button.active{color:#fff7e4;background:#a77d51;border-color:#e7ca91}#buildbar button:disabled{opacity:.38;cursor:not-allowed}#buildbar button:disabled:hover{background:#48665066;border-color:#0000}#buildbar button:focus-visible,#inspector button:focus-visible{outline-offset:2px;outline:2px solid #ffe4a6}#inspector{color:#eee6cf;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:4;background:#24382fe6;border:1px solid #c8b78b77;border-radius:8px;width:240px;padding:17px 18px;font:12px system-ui;position:fixed;top:72px;right:22px;box-shadow:0 10px 35px #17282166}#inspector[hidden],#build-hint[hidden]{display:none}#inspector small{letter-spacing:.13em;color:#d6be8e;font:10px Georgia,serif}#inspector h2{margin:7px 0 11px;font:19px Georgia,serif}#inspector p{color:#d8d4bb;margin:7px 0}.inspector-actions{gap:5px;margin-top:15px;display:flex}.inspector-actions button{flex:1;min-height:36px}kbd{opacity:.65;margin-top:3px;font:10px monospace;display:block}#build-hint{color:#fff0d1;text-align:center;z-index:4;pointer-events:none;background:#263b33e8;border-radius:6px;max-width:min(640px,90vw);padding:8px 13px;font:12px system-ui;position:fixed;bottom:99px;left:50%;transform:translate(-50%);box-shadow:0 4px 18px #15261866}@media (width<=750px){#debug{transform-origin:0 0;top:8px;left:8px;transform:scale(.78)}#inspector{width:180px;padding:11px;top:8px;right:8px}#buildbar{gap:2px;padding:5px;bottom:8px}.build-title{display:none}#buildbar button{min-width:54px;font-size:10px}#build-hint{bottom:78px}}#cable-confirm{z-index:8;color:#f5e8cb;text-align:center;background:#283d34f2;border:1px solid #d6bf8c99;border-radius:8px;padding:12px 15px;font:12px system-ui;position:fixed;bottom:113px;left:50%;transform:translate(-50%);box-shadow:0 8px 25px #17282177}#cable-confirm[hidden]{display:none}#cable-confirm strong{margin-bottom:9px;font:15px Georgia,serif;display:block}#cable-confirm div{justify-content:center;gap:7px;display:flex}#cable-confirm button{min-height:34px;padding:6px 12px}.connections{border-top:1px solid #d9cda34d;margin-top:14px;padding-top:12px}.connections small{margin-bottom:8px;display:block}.connections>div{color:#d8d4bb;justify-content:space-between;align-items:center;gap:8px;margin:5px 0;font-size:11px;display:flex}.connections button{min-width:29px;min-height:29px}#inspector>[data-cable-remove]{min-height:38px;margin-top:10px}@media (width<=750px){#cable-confirm{bottom:88px}}#energy-hud{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#f5e9cb;z-index:3;background:#263b33dc;border:1px solid #d9c99d77;border-radius:9px;width:182px;padding:13px 15px;font:11px system-ui;position:fixed;bottom:20px;right:20px;box-shadow:0 8px 28px #17282166}#energy-hud small{color:#dac79f;letter-spacing:.11em;font:10px Georgia,serif;display:block}#energy-hud strong{color:#e8cfaa;margin:7px 0 10px;font:16px Georgia,serif;display:block}#energy-hud strong.supplied{color:#c7efb9}#energy-hud strong.partial{color:#ffe0a8}#energy-hud dl{margin:0}#energy-hud dl div{border-top:1px solid #e5d1a52e;justify-content:space-between;gap:8px;padding:4px 0;display:flex}#energy-hud dt{color:#d5d2bd}#energy-hud dd{font-variant-numeric:tabular-nums;margin:0}#power-toast{z-index:8;color:#fff3cd;pointer-events:none;white-space:nowrap;background:#304c3de8;border:1px solid #d9c78d;border-radius:999px;padding:12px 22px;font:18px Georgia,serif;position:fixed;top:42px;left:50%;transform:translate(-50%);box-shadow:0 8px 30px #18301f88}#power-toast[hidden]{display:none}#power-toast span{color:#ffe3a4;margin-right:6px}#power-toast.appear{animation:.5s ease-out power-pop}@keyframes power-pop{0%{opacity:0;transform:translate(-50%,12px)scale(.85)}to{opacity:1;transform:translate(-50%)scale(1)}}.power-detail{font-weight:600;color:#d8edb8!important}@media (width<=750px){#energy-hud{width:136px;padding:8px 10px;bottom:85px;right:8px}#energy-hud strong{font-size:13px}#power-toast{padding:8px 11px;font-size:12px;top:8px}}#time-hud{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#f5e9cb;z-index:4;background:#263b33e8;border:1px solid #d9c99d77;border-radius:9px;width:228px;padding:11px 14px;font:11px system-ui;position:fixed;top:20px;right:20px;box-shadow:0 8px 28px #17282166}.time-heading{grid-template-columns:1fr auto;align-items:end;column-gap:8px;display:grid}.time-heading small{letter-spacing:.12em;color:#d9c79e;font:10px Georgia,serif}.time-heading strong{grid-row:2;font:24px/1.1 Georgia,serif}.time-heading span{color:#e6d4ae;grid-area:2/2;align-self:center}.time-speeds{gap:4px;margin-top:10px;display:flex}.time-speeds button{background:#49634d88;flex:1;min-height:29px;padding:4px 2px}.time-speeds button.active{color:#263b33;background:#c6a472;border-color:#f2dcac;font-weight:700}.time-speeds button:focus-visible{outline-offset:2px;outline:2px solid #ffe4a6}#inspector{max-height:calc(100vh - 350px);top:139px;overflow:auto}#fps{top:130px;right:24px}@media (width<=750px){#time-hud{width:183px;padding:8px 9px;top:8px;right:8px}.time-heading strong{font-size:19px}.time-speeds{margin-top:6px}.time-speeds button{min-height:27px;font-size:10px}#inspector{max-height:calc(100vh - 280px);top:102px}#fps{top:100px;right:8px}}#campaign-sidebar{z-index:2;gap:12px;width:min(261px,46vw);display:grid;position:absolute;top:20px;left:20px}#campaign-hud:not([hidden]){color:#f4e5c0;background:#21372e;border:1px solid #798a66;border-radius:9px;padding:12px}#campaign-hud p{margin:.55rem 0;font-size:.85rem;line-height:1.4}#campaign-hud button:not([hidden]){margin:0 .25rem .2rem 0;padding:.35rem .5rem}#campaign-hud button:disabled{opacity:.65;cursor:default}#resident-hud{color:#f4e5c0;background:#21372e;border:1px solid #798a66;border-radius:9px;padding:10px 12px}#resident-hud small{margin-top:.3rem;display:block}#resident-hud ol{max-height:22vh;margin:.35rem 0 0;padding-left:1.25rem;font-size:.8rem;overflow:auto}#resident-hud li{padding:.2rem 0}#resident-hud button{margin-left:.4rem}#buildbar button[hidden]{display:none}#cable-confirm{max-width:min(330px,86vw)}#cable-confirm select{color:#fff4d8;background:#405c48;border:1px solid #b6aa7b;border-radius:4px;margin-left:.4rem;padding:.2rem}#cable-confirm button:disabled{opacity:.55}#energy-hud figure{border-top:1px solid #e5d1a54e;margin:9px 0 0;padding-top:8px}#energy-hud figcaption{color:#eadbb8;font-size:10px}#energy-hud figure canvas{width:100%;height:auto;margin:.3rem 0;display:block}#energy-hud figure div{flex-wrap:wrap;gap:3px 8px;font-size:9px;display:flex}.energy-icon{color:#e4c989;width:1.45em;display:inline-block}@media (height<=650px){#energy-hud{max-height:55vh;overflow:auto}}#title-screen:not([open]){display:none}#title-screen{box-sizing:border-box;color:#f8edcd;background:linear-gradient(90deg,#14261ff5 0%,#1e342bdc 30%,#1e342b4d 63%,#0000 95%);border:0;align-content:center;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:clamp(28px,8vw,125px);position:fixed;inset:0}#title-screen::backdrop{background:#23362a26}.title-copy{max-width:390px}.title-sun{background:#f4c882;border-radius:50%;width:35px;height:35px;margin:0 0 22px 7px;display:block;box-shadow:0 0 0 7px #efc77936}.title-copy h1{letter-spacing:-.085em;text-wrap:balance;margin:0 0 26px;font:clamp(70px,10vw,142px)/.77 Georgia,serif}.title-copy p{color:#eee3c7;max-width:310px;margin:0 0 25px;font:clamp(16px,2vw,20px)/1.45 Georgia,serif}.title-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.title-actions button,.title-actions a{color:#fff3d6;align-items:center;min-height:44px;padding:0 13px;font:600 13px system-ui;display:inline-flex}.title-actions [data-start]{color:#263625;background:#ecc58a;border-color:#ffe5ae}.title-actions [data-start]:hover{background:#ffdfa6}.title-actions a{text-underline-offset:4px}.at-title :is(#campaign-sidebar,#buildbar,#time-hud,#energy-hud,#power-toast){visibility:hidden}#campaign-sidebar{scrollbar-width:thin;width:min(280px,46vw);max-height:calc(100dvh - 123px);overflow:auto}#campaign-hud header{justify-content:space-between;align-items:baseline;gap:6px;display:flex}#campaign-hud h1{margin:0;font:600 1.05rem Georgia,serif}#campaign-hud [data-balance]{color:#f5d599;text-align:right;white-space:nowrap;font:600 .73rem system-ui}#campaign-hud .mission-progress{color:#e8efce;background:#355344;border-radius:4px;padding:.45rem .55rem;font:600 .73rem/1.4 system-ui}#campaign-hud [data-campaign-action]{color:#203128;background:#c6a472;font-weight:700}#campaign-hud :is([data-guide],summary),#energy-hud summary{color:#fae7bb;cursor:pointer;font:600 .76rem/1.25 system-ui}#campaign-hud [data-guide]{background:0 0;margin-top:.35rem}#planning,#energy-hud details{border-top:1px solid #d9c99d48;margin-top:8px;padding-top:8px}#energy-hud details[open] summary{margin-bottom:8px}#tutorial-hud{color:#23382c;background:#f3e1b9;border:1px solid #f5dcac;border-radius:9px;padding:12px;box-shadow:0 10px 22px #15261850}#tutorial-hud h2{margin:.34rem 0;font:600 1.08rem Georgia,serif}#tutorial-hud p{margin:.35rem 0 .5rem;font:.8rem/1.42 system-ui}#tutorial-hud .tutorial-step{color:#4b5b37;font:700 .68rem system-ui}#tutorial-hud button{color:#25392f;background:0 0;border-color:#6d7759}.tutorial-wiring #buildbar [data-wire]{border-color:#f5cc8a;box-shadow:0 0 0 2px #f4cb8666}#campaign-sidebar :focus-visible,#energy-hud :focus-visible,#title-screen :focus-visible{outline-offset:2px;outline:2px solid #ffdb9e}#tutorial-hud :focus-visible{outline-color:#3c584b}@media (width<=750px){#title-screen{background:linear-gradient(90deg,#14261ff7 0%,#1e342bdc 36%,#1e342b55 100%)}#campaign-sidebar{gap:6px;width:min(245px,48vw);max-height:calc(100dvh - 104px);top:8px;left:8px}#campaign-hud header{flex-wrap:wrap}#campaign-hud:not([hidden]),#tutorial-hud,#resident-hud{padding:8px}#campaign-hud p,#tutorial-hud p{font-size:.74rem}}@media (width<=410px){#time-hud{width:39vw}#energy-hud{width:36vw}#buildbar button{min-width:42px;min-height:49px}#buildbar button svg{width:20px;height:20px}}#planning [data-campaign-action]{color:#fff4d8;background:#59775c;font-weight:600}
