:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#dce8e3;background:#0b171a;font-size:14px}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;height:100%}button{cursor:pointer;font:inherit}button:focus-visible{outline:2px solid #83e9bc;outline-offset:2px}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{height:73px;background:#14262a;border-bottom:1px solid #284044;display:flex;align-items:center;padding:0 24px;gap:30px;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;min-width:280px}.brandmark{background:linear-gradient(135deg,#87eabb,#2da57b);width:39px;height:39px;border-radius:12px;display:grid;place-items:center;color:#0a3026;font-weight:1000;box-shadow:inset 0 0 0 3px #ffffff38}.brand strong{display:block;font-size:14px;letter-spacing:.6px;white-space:nowrap}.brand em{color:#96dcb2;font-style:normal}.brand small{font-size:9px;color:#7e9692;font-weight:800;letter-spacing:1.1px;display:block;margin-top:4px}.hud{display:flex;align-items:center;gap:35px;margin-left:auto}.huditem small{font-size:9px;color:#79938f;font-weight:800;letter-spacing:1px;display:block;margin-bottom:5px}.huditem strong{font-size:16px;color:#bff5b7}.avatar{background:#263f42;border:1px solid #477269;border-radius:50%;height:39px;width:39px;display:grid;place-items:center;font-weight:900;color:#b5f0d0}.main{display:grid;grid-template-columns:274px minmax(380px,1fr) 264px;flex:1;min-height:0}.sidebar,.inspector{background:#142427;min-height:0}.sidebar{border-right:1px solid #294044;display:flex;flex-direction:column}.sidebar-top{padding:27px 20px 16px}.eyebrow{font-size:10px;color:#8aba99;font-weight:900;letter-spacing:1.15px}.sidebar-top h1{font-size:22px;margin:8px 0 4px;letter-spacing:-.55px}.sidebar-top p,.muted{color:#849b99;line-height:1.45;font-size:12px;margin:0}.tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:0 12px;gap:4px;border-bottom:1px solid #2c4042}.tab{border:none;color:#8ba19e;background:transparent;padding:13px 3px;font-weight:700;font-size:12px;border-bottom:2px solid transparent}.tab.active{border-color:#84e1ae;color:#b8f7d3}.panel{display:none;padding:19px 13px;overflow-y:auto;flex:1}.panel.active{display:block}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:8px}.section-title h2{font-size:14px;margin:0}.section-title span{font-size:10px;color:#7c9993}.build-list{display:grid;gap:8px}.build-card{border:1px solid #2d4645;background:#1d3234;color:#e3ebe8;border-radius:11px;padding:10px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;text-align:left;width:100%;transition:.15s}.build-card:hover{border-color:#7bd5a7;background:#254044}.build-card.active{border-color:#8fe2ae;background:#274941;box-shadow:0 0 0 1px #83e3b14a}.build-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#314b48;font-size:19px}.build-desc strong,.build-desc small{display:block}.build-desc strong{font-size:12px}.build-desc small{color:#8fa6a0;font-size:10px;margin-top:3px}.build-price{color:#b4df9a;white-space:nowrap;font-weight:800;font-size:11px}.tools{display:flex;gap:7px;margin-top:17px}.tool{padding:10px 4px;border:1px solid #34504b;background:#213739;color:#b8d3cb;border-radius:8px;flex:1;font-size:11px}.tool.active{border-color:#91e8af;color:#9ae4ae;background:#2b4b3e}.side-foot{margin-top:auto;border-top:1px solid #2c4245;padding:12px 15px;font-size:10px;color:#8ba69d;display:flex;align-items:center;gap:6px}.dot,.signal{width:7px;height:7px;background:#88e6a3;border-radius:50%;display:inline-block;box-shadow:0 0 9px #7be6a4}.game-area{background:linear-gradient(180deg,#14282b,#0d1b20);min-width:0;display:flex;flex-direction:column;min-height:0;padding:18px 20px 20px;gap:14px}.game-head{display:flex;justify-content:space-between;align-items:center;padding:1px 4px}.game-head h2{font-size:23px;margin:5px 0 0;letter-spacing:-.5px}.game-head-actions{display:flex;gap:10px;align-items:center}.demo-tag{background:#2c413c;color:#92d4aa;padding:7px 10px;font-size:10px;border:1px solid #42634d;border-radius:7px;font-weight:900;letter-spacing:.4px}#helpBtn{width:30px;height:30px;color:#b9d3c9;background:#2a4241;border:1px solid #375753;border-radius:50%;font-weight:900}.game-world{position:relative;flex:1;min-height:400px;background:radial-gradient(ellipse at 52% 43%,#335962 0%,#18333a 61%,#132d34 100%);border:1px solid #355158;overflow:hidden;border-radius:14px;box-shadow:inset 0 0 65px #071c266e}.game-world:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(30deg,#ffffff03 0,#ffffff03 1px,transparent 1px,transparent 44px);pointer-events:none}#canvas{width:100%;height:100%;position:absolute;inset:0;touch-action:none;cursor:crosshair}.map-info{position:absolute;left:16px;top:16px;background:#12272bdc;color:#c1e5d6;padding:10px 13px;border:1px solid #50766e;border-radius:8px;display:flex;gap:9px;align-items:center;font-size:11px;font-weight:700;pointer-events:none;max-width:65%}.zoom{position:absolute;right:14px;top:14px;display:flex;flex-direction:column;gap:5px}.zoom button{background:#193138e6;border:1px solid #537076;color:#bce9d5;border-radius:7px;height:32px;width:32px;font-size:19px}.zoom button:hover{background:#2a4949}.world-tip{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);white-space:nowrap;color:#d1e3da;background:#122a2cd6;border:1px solid #4e6a6c;border-radius:20px;padding:7px 13px;font-size:10px;pointer-events:none}.world-tooltip{position:absolute;padding:8px 10px;background:#0c292cf0;color:#d7f3e6;border:1px solid #7faea0;border-radius:6px;font-size:11px;pointer-events:none;white-space:nowrap;z-index:2}.bottom{background:#182c2f;border:1px solid #314a4b;border-radius:12px;padding:14px}.bottom-head{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:13px}.bottom-head h3{margin:0;font-size:13px}.bottom-head span{color:#819e96;font-size:10px}.inventory{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.resource{background:#22393b;border:1px solid #315050;border-radius:9px;padding:9px;display:flex;align-items:center;gap:8px}.resource-icon{font-size:22px}.resource small{color:#8da9a0;display:block;font-size:10px}.resource strong{font-size:14px}.inspector{border-left:1px solid #2a4444;padding:27px 18px}.inspector h2{font-size:18px;margin:7px 0 5px}.clock-card{margin-top:22px;background:linear-gradient(135deg,#284b45,#24403f);border:1px solid #4a7867;border-radius:12px;padding:14px}.clock-card small{font-size:9px;letter-spacing:1px;color:#a9cfb4;font-weight:900}.clock-card strong{font-size:29px;display:block;margin:7px 0;color:#cbf4cf;font-variant-numeric:tabular-nums}.clock-card span{font-size:10px;color:#a4c8be}.divider{height:1px;background:#2c4546;margin:22px 0}.production-list{display:grid;gap:11px}.production-card{background:#1e3335;border:1px solid #315052;border-radius:9px;padding:10px}.production-card header{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:8px}.production-card header strong{font-size:11px}.production-card header span{font-size:10px;color:#a8cdad}.bar{height:5px;background:#3a5452;border-radius:9px;overflow:hidden}.bar div{height:100%;background:linear-gradient(90deg,#52aa8e,#c1ec9f);border-radius:9px}.production-card p{margin:6px 0 0;color:#8aa6a1;font-size:10px}.selection{background:#203538;border:1px solid #304f51;padding:13px;border-radius:10px;font-size:12px;color:#91b0aa}.selection p{margin:0;line-height:1.45}.selection strong{display:block;color:#d4f2df;margin-bottom:6px}.selection button{width:100%;margin-top:11px;background:#346353;border:1px solid #55947c;color:#e4ffeb;padding:9px;border-radius:7px;font-size:11px}.helpbox{margin-top:20px;padding:13px;border:1px dashed #52695b;border-radius:10px;background:#213630}.helpbox strong{font-size:11px;color:#bfe3bd}.helpbox p{font-size:11px;color:#91ae9d;line-height:1.45;margin:7px 0 0}.alert{background:#33402c;border:1px solid #627a49;color:#e0e5c7;border-radius:9px;padding:12px;margin-bottom:13px}.alert strong{font-size:12px}.alert p{font-size:11px;line-height:1.4;margin:5px 0 0;color:#c5d0b8}.market-list{display:grid;gap:9px}.market-card{border:1px solid #355052;border-radius:10px;padding:11px;background:#1f3637}.market-card-head{display:flex;align-items:center;justify-content:space-between}.market-card strong{font-size:12px}.market-card small{font-size:10px;color:#91ada3;display:block;margin-top:6px}.market-actions{display:flex;gap:7px;margin-top:10px}.market-actions button{flex:1;border:1px solid #456457;background:#2b4c41;color:#c9ecce;padding:8px;border-radius:6px;font-size:11px}.market-actions button.sell{border-color:#657256;background:#3f4b35;color:#e4e6bf}.market-actions button:disabled{opacity:.45;cursor:not-allowed}.company-card{border:1px solid #355052;border-radius:10px;background:#213537;padding:12px;margin-bottom:9px}.company-card small{display:block;color:#8ba99f;font-size:10px}.company-card strong{font-size:22px;display:block;margin-top:5px;color:#c1edcc}.section-title.second{margin-top:22px}.activity-log{display:grid;gap:10px}.activity-entry{border-bottom:1px solid #34494b;padding-bottom:9px;color:#bed2c9;font-size:11px;line-height:1.4}.activity-entry small{color:#709287;display:block;margin-top:3px}.reset{color:#f3c6b7;border:1px solid #7c4d48;background:#41302f;border-radius:8px;width:100%;padding:10px;margin-top:20px}.toast-wrap{position:fixed;right:20px;bottom:20px;z-index:5;display:grid;gap:8px}.toast{padding:11px 15px;border:1px solid #6b9c7f;border-radius:9px;background:#213e35;color:#e0f5dd;box-shadow:0 8px 30px #051415a6;max-width:320px;font-size:12px;animation:appear .25s}.toast.error{background:#492f32;border-color:#ae7777;color:#fbdede}@keyframes appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.modal{position:fixed;inset:0;background:#021011c9;z-index:10;display:flex;align-items:center;justify-content:center;padding:20px}.modal[hidden]{display:none}.modal-body{background:#1c3233;border:1px solid #629077;padding:27px;max-width:480px;border-radius:15px;position:relative;box-shadow:0 22px 90px #0008}.modal-body h2{font-size:21px;margin:0 0 14px;color:#bcedc6}.modal-body p{line-height:1.6;color:#b3c9be;font-size:13px}.modal-close{position:absolute;right:12px;top:10px;background:transparent;border:0;color:#bcd2cb;font-size:26px}.primary{background:#6bcc9d;border:0;border-radius:8px;color:#13382e;font-weight:900;padding:12px 18px;margin-top:5px;width:100%}@media(max-width:1170px){.main{grid-template-columns:245px minmax(350px,1fr)}.inspector{display:none}.brand{min-width:250px}}@media(max-width:750px){.topbar{height:63px;padding:0 12px;gap:9px}.brand{min-width:0}.brand strong{font-size:11px}.brand small{font-size:7px}.brandmark{width:33px;height:33px}.avatar{display:none}.hud{gap:12px}.huditem:nth-child(n+2){display:none}.huditem strong{font-size:13px}.main{display:flex;flex-direction:column}.game-area{order:0;padding:12px;gap:10px}.game-world{min-height:440px;height:54vh;flex:auto}.sidebar{order:1;min-height:250px;border-top:1px solid #344b46}.sidebar-top{padding:16px}.sidebar-top h1{font-size:18px}.panel{max-height:430px;overflow:auto}.build-list{grid-template-columns:repeat(2,minmax(0,1fr))}.build-card{grid-template-columns:28px 1fr;gap:7px}.build-price{grid-column:2}.build-icon{width:28px;height:28px}.inventory{grid-template-columns:repeat(3,minmax(0,1fr))}.world-tip{font-size:9px;white-space:normal;text-align:center;width:85%}.game-head h2{font-size:19px}.resource{padding:8px}.resource-icon{font-size:19px}}
