
:root{color-scheme:dark;font-family:Inter,Segoe UI,system-ui,sans-serif;color:#edf4ef;background:#10191c;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,.button{font:inherit;color:inherit;background:#233437;border:1px solid #455657;border-radius:6px;padding:9px 13px;cursor:pointer;text-decoration:none}button:hover,.button:hover{background:#344a4c}button:focus-visible,.button:focus-visible{outline:2px solid #b4efd0;outline-offset:3px}button:disabled{opacity:.4;cursor:default}#app{max-width:1800px;margin:auto;padding:0 28px}header{height:88px;display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{display:flex;align-items:center;gap:13px;letter-spacing:2.2px;font-size:19px;font-weight:750;text-decoration:none;color:inherit}.brand small{display:block;font-size:9px;letter-spacing:2px;color:#a6b5b2;margin-top:7px}.moon{font-size:42px;color:#cfdeba}.top-actions{display:flex;align-items:center;gap:8px}.top-actions span{font-size:10px;letter-spacing:1px;color:#abc7b2;margin-right:14px}.stats{border-top:1px solid #344144;border-bottom:1px solid #344144;display:grid;grid-template-columns:1fr 1fr 1fr 1.35fr;gap:32px;padding:22px 0}.stats small{font-size:10px;letter-spacing:1.8px;color:#a6b5b2;display:block;margin-bottom:10px}.stats strong{font-size:27px;font-weight:500;letter-spacing:-1px}.bar{height:3px;background:#344144;max-width:230px;margin-top:12px}.bar i{display:block;background:#b8f2d0;height:100%;width:0;transition:width .2s}.gold i{background:#e9bd73}#toolLabel{font-size:11px;color:#bec7bc;margin-left:16px}.objective span{font-size:14px;line-height:1.6;display:block;max-width:250px}.play-area{position:relative;overflow:hidden;margin-top:20px;border:1px solid #3d4c4e;border-radius:10px;background:#252f33}#game{display:block;width:100%;height:calc(100dvh - 315px);min-height:360px;max-height:880px;outline:none;touch-action:none}.location{position:absolute;left:22px;top:22px;font-size:10px;letter-spacing:2px;pointer-events:none;color:#d7e0d6;text-shadow:0 2px 5px #000}.location span{display:block;margin-top:7px;font-size:9px;color:#a6bbb4}.map{position:absolute;right:18px;top:18px;background:#102024df;border:1px solid #5c7472;border-radius:6px;padding:7px;pointer-events:none}.map canvas{display:block;width:156px;height:117px}.map small{font-size:8px;letter-spacing:.8px;color:#c8d8d0;display:block;padding-top:7px}.controls{position:absolute;bottom:0;left:0;right:0;padding:14px 20px;background:#111e22ee;display:flex;gap:20px;align-items:center;font-size:11px;color:#becac7;flex-wrap:wrap}.controls button{font-size:11px;padding:7px 10px}#auto{margin-left:auto}kbd{font:9px Segoe UI,sans-serif;background:#304247;padding:4px 6px;border:1px solid #546365;border-radius:3px;color:#fff;margin-right:3px}#toast{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);background:#d7eccf;color:#152b2b;padding:12px 20px;border-radius:6px;font-size:13px;opacity:0;transition:opacity .2s;pointer-events:none;max-width:90%;text-align:center}#toast.visible{opacity:1}footer{display:flex;justify-content:space-between;gap:12px;padding:18px 0;color:#a7b8b3;font-size:11px}footer span+span{font-size:8px;letter-spacing:1.4px}dialog{border:1px solid #5a716c;border-radius:14px;background:#142326;color:#eef4e8;padding:38px;width:min(560px,94vw);max-height:90dvh;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#081114b8;backdrop-filter:blur(7px)}.eyebrow{color:#b9d8b5;font-size:10px;letter-spacing:2px;margin-bottom:20px}h1{font-size:45px;line-height:1.08;letter-spacing:-2px;font-weight:500;margin:15px 0 23px}h2{font-size:29px;letter-spacing:-1px;font-weight:500;margin:0 0 15px}dialog p{font-size:14px;color:#b8c8c1;line-height:1.7}dialog small{display:block;color:#a5bdb6;font-size:11px;line-height:1.8;margin-top:18px}.primary{background:#cae2b7;color:#18312c;border:0;width:100%;padding:15px;font-weight:650;margin-top:14px}.primary:hover{background:#e0f2d2}.intro-grid{display:flex;justify-content:space-between;gap:8px;font-size:11px;padding:18px 0}.intro-grid b{display:block;color:#c4d9b2;margin-bottom:8px}.upgrade{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid #344a4b}.upgrade div{flex:1}.upgrade b{font-size:14px;font-weight:500}.upgrade small{margin-top:5px;font-size:11px}.upgrade button{font-size:12px;min-width:98px}.pause-actions{display:flex;gap:8px;margin-top:18px;flex-wrap:wrap;font-size:12px}.touch{display:none}body:fullscreen #game{height:calc(100dvh - 270px)}
@media(max-width:850px){#app{padding:0 12px}header{height:73px}.brand{font-size:14px;letter-spacing:1px}.brand small{font-size:7px;letter-spacing:1px}.moon{font-size:30px}.top-actions span{display:none}.top-actions{gap:4px}.top-actions button{font-size:10px;padding:8px}.stats{gap:15px;grid-template-columns:1fr 1fr 1fr;padding:15px 0}.stats small{font-size:8px;letter-spacing:1px}.stats strong{font-size:22px}.objective{display:none}#toolLabel{display:block;margin:7px 0 0;font-size:9px}.play-area{margin-top:12px}#game{height:calc(100dvh - 235px);min-height:410px}.controls{gap:10px;padding:10px}.controls span{display:none}#auto{margin-left:0}.map canvas{width:100px;height:75px}.map{right:10px;top:10px}.location{left:12px;top:15px;max-width:140px;font-size:8px}.map small{font-size:6px}footer{font-size:9px}footer span+span{display:none}dialog{padding:26px}h1{font-size:37px}.touch{display:flex;position:absolute;bottom:75px;left:20px;right:20px;justify-content:flex-end;gap:12px;align-items:center;pointer-events:none}.touch button{pointer-events:auto;border-radius:50%;width:68px;height:68px;touch-action:none;background:#254641bf;border-color:#98b69a;user-select:none;font-size:10px}#stick{margin-right:auto;border-radius:50%;width:100px;height:100px;background:#14292b70;border:1px solid #a2bc9d80;position:relative;pointer-events:auto;touch-action:none}#stick i{display:block;position:absolute;left:32px;top:32px;width:34px;height:34px;border-radius:50%;background:#c4dfb9aa;pointer-events:none}.intro-grid{font-size:10px}}
@media(pointer:coarse) and (min-width:851px){.touch{display:flex;position:absolute;bottom:80px;left:25px;right:25px;gap:15px;align-items:center}#stick{margin-right:auto;width:100px;height:100px;border:1px solid #bcd5ad;border-radius:50%;touch-action:none}#stick i{display:none}.touch button{touch-action:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}


/* Industrial expansion */
#app{max-width:1960px}header{height:78px}.play-area{border-color:#53666a;box-shadow:0 10px 50px #0003}.stats{padding:17px 0;background:linear-gradient(90deg,#14212700,#1d303344,#14212700)}#game{height:calc(100dvh - 290px);max-height:none}.brand .moon{filter:drop-shadow(0 0 12px #bdddb43a)}.factory-hud{position:absolute;left:20px;top:60px;display:flex;flex-direction:column;gap:7px;font-size:10px;letter-spacing:.5px;color:#d9e6d2;pointer-events:none;text-shadow:0 1px 5px #000}.factory-hud span+span{font-size:9px;color:#c3d2ce}#buildPanel{position:absolute;right:18px;top:190px;width:330px;background:#102128f5;border:1px solid #6b9387;border-radius:10px;padding:17px;box-shadow:0 15px 45px #0005;max-height:calc(100% - 260px);overflow:auto;font-size:11px;z-index:3}#buildPanel[hidden]{display:none}.build-head{display:flex;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:1px;color:#d1e8bc;margin-bottom:13px}#buildPanel select{width:100%;background:#233e44;color:#eff4dc;border:1px solid #71877c;border-radius:5px;padding:10px;font:inherit;margin-bottom:10px}#buildPanel p{line-height:1.65;color:#c3d5ce}#buildPanel button{font-size:10px;padding:8px}#starter{width:100%;border-color:#a0b68a;color:#d9e6bc}.node-actions{display:flex;gap:5px;flex-wrap:wrap}#buildPanel small{display:block;color:#a9bfb8;font-size:9px;line-height:1.7;margin-top:12px}.controls{gap:12px;backdrop-filter:blur(5px)}.controls span{font-size:10px}#auto{margin-left:0}#buildButton{margin-left:auto;border-color:#b2c49b;color:#e2edcf}#shop{width:min(680px,94vw)}#shop h3{font-size:11px;letter-spacing:2px;text-transform:uppercase;margin-top:30px;color:#c2daa9}.upgrade small{max-width:370px}#toast{bottom:100px}
@media(max-width:850px){#game{height:calc(100dvh - 235px)}#buildPanel{top:128px;right:8px;width:245px;max-height:calc(100% - 190px);padding:12px}.factory-hud{left:12px;top:60px;font-size:8px;max-width:160px}.factory-hud span+span{display:none}.controls{gap:5px;padding:8px}.controls button{font-size:9px;padding:7px}#buildButton{margin-left:0}.map{top:10px}header{height:73px}.touch{bottom:65px}}
.sandbox-link{display:block;margin-top:15px;color:#d5dfb6;text-align:center;font-size:12px}.sandbox-link:hover{color:#fff}

.arcade-return{color:#dce8d2;font-size:11px;text-decoration:none;margin-right:8px}.arcade-return:hover{text-decoration:underline}@media(max-width:600px){.arcade-return{font-size:9px;margin-right:2px}.top-actions button{padding:6px}.brand{font-size:12px}.brand small{font-size:6px}}
