:root{--ink:#223c42;--muted:#73817e;--paper:#f5f6ee;--line:#dce2d7;--green:#356852;--mint:#e4eddd;--gold:#b38c44;--dark:#193940;--serif:Georgia,'Times New Roman',serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'Segoe UI',Arial,sans-serif;font-size:16px}button,a,input,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #b78a3a;outline-offset:4px}button{touch-action:manipulation}svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}button,a{-webkit-tap-highlight-color:transparent}[hidden]{display:none!important}
.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);background:#f5f6ef}.brand{text-decoration:none;color:var(--ink);display:flex;align-items:center;gap:14px;font-family:var(--serif);font-size:29px;letter-spacing:-.8px}.brand-mark{height:47px;width:47px;background:var(--dark);border-radius:50%;color:#e3ecdc;display:grid;place-items:center}.brand-mark .icon{width:29px;height:29px}.brand small{display:block;font-family:'Segoe UI',sans-serif;font-size:12px;letter-spacing:.25px;color:var(--muted);margin-top:5px}.header-right{display:flex;align-items:center;gap:14px}.season-label{font-size:14px;color:#687970;margin-right:14px}.icon-button{border:1px solid var(--line);background:transparent;width:38px;height:38px;border-radius:50%;display:grid;place-items:center}.icon-button:hover{background:var(--mint)}
.game-layout{display:grid;grid-template-columns:minmax(440px,1fr) minmax(440px,.92fr);max-width:1800px;margin:auto;min-height:calc(100vh - 94px)}.weather-side{position:relative;border-right:1px solid var(--line);background:#e9eee3;display:flex;flex-direction:column;overflow:hidden}.location-row{padding:25px 32px 0;display:flex;justify-content:space-between;gap:10px;font-size:14px;position:relative;z-index:2}.location-row>span{display:flex;align-items:center;gap:7px}.location-row .icon{width:17px}.live-label{color:#66806c;font-size:12px}.live-label i{width:5px;height:5px;background:#789d69;border-radius:50%}.balance{position:absolute;z-index:2;top:81px;left:38px;pointer-events:none}.balance-caption{font-size:13px;color:#6e8178}.balance h1{font-family:var(--serif);font-weight:400;letter-spacing:-3px;font-size:68px;line-height:1.05;margin:8px 0 9px;display:flex;align-items:center;gap:13px;font-variant-numeric:tabular-nums}.balance h1 .icon{width:30px;height:35px;color:#75a3a0;stroke-width:1.2}.balance-bottom{display:flex;align-items:center;gap:22px;color:#6c827c;font-size:13px}.income{display:flex;align-items:center;gap:4px}.income .icon{width:15px}.income b{font-weight:600;color:#3c695c}
.scene{position:relative;isolation:isolate;height:565px;min-height:480px;flex:1;overflow:hidden;background:#accbd1}.landscape{position:absolute;width:100%;height:100%;inset:0}.scene-tint{position:absolute;inset:0;background:linear-gradient(#e9eee3 0%,#e9eee300 49%);pointer-events:none;z-index:1}.scene-grain{position:absolute;inset:0;z-index:7;opacity:.055;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}.main-cloud{position:absolute;z-index:4;top:26%;left:50%;width:320px;max-width:65%;transform:translateX(-50%);border:0;background:none;padding:0;filter:drop-shadow(0 10px 20px #254b4415);transition:filter .2s;animation:cloud-float 5s ease-in-out infinite;user-select:none}.main-cloud svg{display:block;width:100%;overflow:visible;transition:transform .1s}.main-cloud:hover{filter:drop-shadow(0 10px 22px #f9ffd84a)}.main-cloud:active svg,.main-cloud.pressed svg{transform:scale(.94) translateY(4px)}.main-cloud:focus-visible{outline-offset:-10px;border-radius:45%}.click-hint{position:absolute;z-index:4;top:61%;left:0;width:100%;display:flex;justify-content:center;align-items:center;gap:7px;font-size:13px;color:#405e5b;text-shadow:0 1px 8px #e9eee3}.click-hint .icon{width:16px}.click-hint b{font-size:12px;background:#eef4e3aa;padding:5px 9px;border-radius:20px;margin-left:3px;font-weight:500}.scene-caption{position:absolute;bottom:20px;left:28px;right:28px;z-index:3;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#e2e9d2}.weather-reading{display:flex;align-items:center;gap:8px}.weather-reading .icon{width:16px}.weather-reading i{height:3px;width:3px;border-radius:50%;background:#b8c9b3}.scene-caption>span:last-child{opacity:.6;font-size:11px}.rain-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:3}.rain-layer i{position:absolute;top:-40px;width:1px;height:16px;background:#e4f2e4;opacity:.4;animation:rain-fall 1.2s linear infinite;transform:rotate(15deg)}.scene.sun .rain-layer{opacity:0}.scene.sun .scene-tint{background:linear-gradient(#e9eee3 0%,#ffe6a130 80%)}.scene.storm .scene-tint{background:linear-gradient(#e9eee3 0%,#35496955 65%)}.scene.storm .main-cloud{filter:brightness(.84)}.scene.region-2 .landscape{filter:hue-rotate(32deg) saturate(.55)}.scene.region-3 .landscape{filter:hue-rotate(-22deg) saturate(1.15)}.scene.region-4 .landscape{filter:hue-rotate(62deg)}.scene.night .landscape{filter:brightness(.66) hue-rotate(15deg)}.wind-rotor{animation:wind-turn 10s linear infinite}.chimney-smoke{animation:smoke 4s ease-in-out infinite}.float-drop{position:absolute;z-index:8;color:#264d4d;font-weight:600;font-size:23px;pointer-events:none;text-shadow:0 1px 5px #f3fae7;animation:float-up 1s ease-out forwards}.weather-gift{position:absolute;z-index:6;right:8%;top:30%;border:1px solid #f7e7a2;background:#fff0b3;color:#776030;padding:12px;border-radius:18px;box-shadow:0 0 30px #fff6c980;animation:gift-bob 2s ease-in-out infinite;display:grid;justify-items:center;gap:5px;font-size:12px}.weather-gift .icon{width:29px;height:29px}
.weather-console{padding:23px 28px 24px;background:#e9eee3;z-index:8}.console-title{display:flex;justify-content:space-between;margin-bottom:15px;font-size:14px}.console-title>span:last-child{font-size:12px;color:var(--muted)}.weather-modes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.weather-modes button{display:flex;gap:9px;align-items:center;text-align:left;border:1px solid #cfd9ca;background:transparent;border-radius:9px;padding:12px 10px;font-size:14px;transition:background .2s}.weather-modes button.active{background:var(--dark);color:#eef2df;border-color:var(--dark)}.weather-modes .icon{width:22px;height:22px}.weather-modes small{display:block;font-size:10px;opacity:.65;margin-top:4px}.weather-modes button:disabled{opacity:.45}.news-strip{background:#e1e7da;border-top:1px solid #d3ddcf;display:flex;align-items:center;gap:12px;padding:15px 29px;min-height:63px;color:#67786c;font-size:12px;line-height:1.6}.news-strip .icon{width:18px;flex-shrink:0}
.management{display:flex;flex-direction:column;min-width:0}.tabs{height:77px;display:flex;border-bottom:1px solid var(--line);padding:0 27px;gap:20px;flex-shrink:0}.tabs button{border:0;border-bottom:2px solid transparent;background:none;display:flex;gap:7px;align-items:center;padding:0 1px;font-size:14px;color:#7c8980;position:relative;white-space:nowrap}.tabs button.active{border-color:#386651;color:#2a5143}.tabs .icon{width:18px;height:18px}.tab-count{font-size:10px;padding:1px 4px;background:#dce8d1;border-radius:5px}.panel{padding:26px 29px 24px;flex:1}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.panel-heading h2{font-family:var(--serif);font-size:29px;letter-spacing:-.7px;font-weight:400;margin:0}.panel-intro{font-size:13px;line-height:1.6;color:var(--muted);margin:0 0 23px}.purchase-toggle{display:flex;border:1px solid var(--line);border-radius:7px;padding:3px;gap:2px}.purchase-toggle button{font-size:12px;border:0;background:none;border-radius:4px;padding:5px 9px;color:#748278}.purchase-toggle button.active{background:#e0e8d8;color:#345a45}.section-label{display:flex;justify-content:space-between;font-size:12px;color:#869184;margin:22px 0 12px}.building-list{display:flex;flex-direction:column}.building{display:grid;grid-template-columns:49px 1fr auto;gap:13px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.building:first-child{padding-top:4px}.building-icon{height:48px;width:48px;display:grid;place-items:center;background:#e8eddf;color:#6d8869;border-radius:12px}.building-icon .icon{width:28px;height:28px;stroke-width:1.3}.building.locked .building-icon{background:#edf0e7;color:#9ba997}.building-title{display:flex;align-items:baseline;gap:9px;font-size:15px;font-weight:600}.owned-count{color:#a2aa97;font-weight:400;font-family:var(--serif);font-size:19px}.building-desc{font-size:11px;color:#8c968b;line-height:1.5;margin-top:4px;max-width:280px}.building-production{font-size:11px;color:#658469;margin-top:5px}.buy-button{font-size:13px;border:1px solid #cbd7bf;background:#e4edd9;border-radius:7px;color:#3e6547;padding:9px 11px;min-width:92px;display:flex;align-items:center;justify-content:center;gap:4px;font-weight:600;white-space:nowrap}.buy-button .icon{width:13px;height:15px}.buy-button:disabled{background:#edf0e7;border-color:#e0e5da;color:#a1ac99}.buy-button:not(:disabled):hover{background:#d4e3c3;border-color:#9db38c}.buy-count{display:block;font-size:10px;text-align:center;color:#7b8975;margin-top:5px;min-height:12px}.tip-box{display:flex;gap:10px;font-size:12px;line-height:1.6;color:#6e806e;background:#eaf0e2;border-radius:9px;padding:14px;margin-top:22px}.tip-box .icon{width:18px;height:18px;margin-top:2px}.milestone{margin-top:25px;padding-top:20px;border-top:1px dashed #ccd5c5}.milestone-heading{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#73816e}.progress-track{height:4px;background:#dfe6d7;border-radius:4px;margin:11px 0;overflow:hidden}.progress-track>i{display:block;height:100%;background:#7e9b70;border-radius:4px;transition:width .4s}.milestone p{font-size:11px;color:#8d9687;margin:0}.management-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line);padding:18px 29px;color:#929b8c;font-size:10px}.management-footer .icon{width:12px;height:12px}.management-footer button{border:0;background:none;color:#6e806d;font-size:11px;padding:0}.management-footer span:first-child{display:flex;gap:5px;align-items:center}
.upgrade-card,.region-card,.contract-card{padding:18px;border:1px solid var(--line);border-radius:10px;margin-bottom:12px;background:#f9faf4}.upgrade-card{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center}.upgrade-card>svg{width:28px;height:28px;color:#7d9670}.upgrade-card h3,.region-card h3,.contract-card h3{font-size:15px;margin:0 0 6px;font-weight:600}.upgrade-card p,.region-card p,.contract-card p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.badge{font-size:11px;background:#e3ebd9;border-radius:5px;color:#54734d;padding:4px 7px;white-space:nowrap}.subheading{font-family:var(--serif);font-size:22px;font-weight:400;margin:28px 0 14px}.region-card{display:flex;gap:16px;align-items:center}.region-art{height:62px;width:62px;background:#dde8d7;display:grid;place-items:center;border-radius:50%;flex-shrink:0;color:#507661}.region-art .icon{width:32px;height:32px}.region-info{flex:1}.region-card.current{border-color:#93ac83;background:#edf3e6}.contract-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px;font-size:12px;color:#75876f}.contract-card.done{opacity:.6}.achievements-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.achievement{border:1px solid var(--line);border-radius:8px;padding:12px;display:flex;align-items:center;gap:10px;opacity:.5}.achievement.earned{opacity:1;background:#edf2e5;border-color:#c8d8ba}.achievement>.icon{color:#9b884f;width:23px;height:23px}.achievement b{font-size:12px;font-weight:600}.achievement p{font-size:10px;color:var(--muted);margin:4px 0 0;line-height:1.5}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stat{border-bottom:1px solid var(--line);padding:12px 0}.stat small{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.stat strong{font-family:var(--serif);font-weight:400;font-size:24px}.prestige-box{padding:22px;border:1px solid #c8d5b9;border-radius:12px;background:#eaf0df;margin-top:25px}.prestige-box h3{font-family:var(--serif);font-weight:400;font-size:24px;margin:0 0 10px}.prestige-box p{color:#6b7e63;font-size:13px;line-height:1.7}.primary{border:1px solid var(--green);background:var(--green);color:#f4f5e9;padding:11px 18px;border-radius:7px;font-size:14px}.primary:disabled{opacity:.4;cursor:default}.secondary{border:1px solid #c5d0bb;background:#edf2e4;color:#446341;padding:10px 15px;border-radius:7px;font-size:13px}.danger{background:none;border:1px solid #d3b6aa;color:#9d6153;padding:10px 15px;border-radius:7px;font-size:13px}.empty-state{padding:25px;text-align:center;color:var(--muted);font-size:14px}.toasts{position:fixed;z-index:30;bottom:22px;left:24px;display:flex;flex-direction:column;gap:8px;pointer-events:none;max-width:calc(100vw - 48px)}.toast{background:#193b3e;color:#f0f3e0;padding:14px 19px;border:1px solid #769084;border-radius:10px;font-size:13px;box-shadow:0 5px 25px #1b393a20;animation:toast-in .25s ease-out;max-width:390px}.toast small{display:block;color:#b7cbb6;font-size:11px;margin-top:5px}.toast.error{background:#724c3d}.toast>svg{margin-right:9px;width:18px}
dialog{border:1px solid #d9e0ce;border-radius:16px;background:#f5f6ee;color:var(--ink);padding:26px;width:520px;max-width:calc(100vw - 30px);max-height:85vh;box-shadow:0 25px 100px #16353944}dialog::backdrop{background:#14323888;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}.dialog-heading h2{font-family:var(--serif);font-size:28px;font-weight:400;margin:0}.dialog-heading .icon-button{flex-shrink:0}#modal-body p,#modal-body li{font-size:14px;line-height:1.8;color:#6b7e70}#modal-body ul{padding-left:20px}.setting-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:17px 0;gap:12px}.setting-row span{font-size:14px}.setting-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.setting-row input{accent-color:var(--green);width:20px;height:20px}.dialog-actions{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.save-text{width:100%;height:120px;background:#fffdf5;border:1px solid #cbd5bf;border-radius:8px;padding:12px;font-size:12px;resize:vertical;color:#53654e}.field-label{font-size:13px;display:block;margin-bottom:8px}.tab-lock{position:fixed;inset:0;z-index:100;background:#193940cc;backdrop-filter:blur(12px);display:grid;place-items:center}.tab-lock>div{max-width:440px;background:var(--paper);padding:35px;border-radius:16px;margin:20px;text-align:center}.tab-lock h2{font-family:var(--serif);font-weight:400}.tab-lock p{font-size:14px;line-height:1.8;color:var(--muted)}.tab-lock>div>svg{width:50px;height:50px}.no-motion *, .no-motion *::before,.no-motion *::after{animation:none!important;transition:none!important}.no-motion .float-drop{display:none}
@keyframes cloud-float{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,-10px)}}@keyframes rain-fall{to{top:110%;transform:translateX(-60px) rotate(15deg)}}@keyframes wind-turn{to{transform:rotate(360deg)}}@keyframes smoke{50%{transform:translateY(-8px);opacity:.2}}@keyframes float-up{to{transform:translateY(-90px);opacity:0}}@keyframes gift-bob{50%{transform:translateY(-8px);box-shadow:0 0 45px #fff6c9}}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}}
@media(min-width:781px){.game-layout{height:calc(100dvh - 94px);min-height:610px}.weather-side,.management{min-height:0}.scene{height:auto;min-height:0}.panel{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c6d1bd transparent}.main-cloud{top:24%;width:285px}.click-hint{top:64%}.weather-console,.news-strip{flex-shrink:0}.scene-caption{bottom:18px}.balance{top:73px}.balance h1{font-size:60px}.balance-bottom{font-size:12px}.building-desc{font-size:12px}.building-production{font-size:12px}.buy-count{font-size:11px}}
@media(min-width:1500px){.panel{padding:30px 42px}.building{padding:20px 0}.building-desc{font-size:12px}.building-title{font-size:16px}.weather-modes small{font-size:11px}.main-cloud{width:330px}}
@media(max-width:1100px){.topbar{padding:0 24px}.game-layout{grid-template-columns:minmax(365px,1fr) minmax(390px,1fr)}.tabs{gap:14px;padding:0 20px}.tabs button{font-size:12px}.tabs .icon{width:16px}.panel{padding:25px 20px}.building{gap:10px;grid-template-columns:42px 1fr auto}.building-icon{width:42px;height:42px}.building-desc{font-size:10px}.building-title{font-size:13px}.buy-button{min-width:79px;font-size:12px;padding:9px 7px}.weather-console{padding:20px}.weather-modes{gap:6px}.weather-modes button{padding:11px 7px;gap:6px}.weather-modes small{font-size:9px}.console-title>span:last-child{font-size:10px}.scene-caption{left:20px;right:20px}.scene-caption>span:last-child{display:none}.location-row{padding-left:24px;padding-right:24px}.balance{left:28px}.header-right{gap:10px}.brand{font-size:26px}.season-label{margin-right:0}.management-footer{padding:17px 20px}.management-footer>span:last-child{display:none}}
@media(max-width:780px){.topbar{height:78px;padding:0 18px}.brand{font-size:24px;gap:10px}.brand-mark{height:38px;width:38px}.brand small{font-size:10px}.season-label{display:none}.header-right{gap:7px}.icon-button{width:34px;height:34px}.game-layout{display:block}.weather-side{border-right:0;border-bottom:1px solid var(--line)}.location-row{padding:18px 20px 0}.scene{height:510px;min-height:510px;flex:none}.balance{top:63px;left:24px}.balance h1{font-size:60px}.main-cloud{top:26%;width:290px;max-width:72%}.click-hint{top:63%}.weather-console{padding:18px 20px}.weather-modes small{font-size:10px}.weather-modes button{padding:12px 10px}.news-strip{min-height:55px;padding:12px 20px}.tabs{height:64px;justify-content:space-between;padding:0 20px;gap:12px;position:sticky;top:0;background:var(--paper);z-index:12}.tabs button{font-size:13px}.panel{padding:24px 20px}.building{padding:17px 0;grid-template-columns:48px 1fr auto;gap:12px}.building-icon{width:48px;height:48px}.building-title{font-size:15px}.building-desc{font-size:11px}.buy-button{min-width:90px;font-size:13px}.panel-heading h2{font-size:28px}.management-footer>span:last-child{display:block}.scene-caption{bottom:18px}.weather-gift{top:32%;right:5%}.scene.night .landscape{filter:brightness(.8) hue-rotate(10deg)}}
@media(max-width:390px){.brand small{display:none}.brand{font-size:22px}.topbar{padding:0 12px}.tabs button{font-size:12px;gap:5px}.tabs{padding:0 14px;gap:9px}.weather-modes small{font-size:9px}.weather-modes button{gap:5px;padding:10px 7px}.weather-modes .icon{width:18px}.building{grid-template-columns:38px 1fr auto;gap:9px}.building-icon{width:38px;height:42px}.building-title{font-size:14px}.buy-button{min-width:75px;font-size:12px}.panel{padding:22px 15px}.building-desc{font-size:10px}.achievements-grid{grid-template-columns:1fr}.region-card{padding:12px;gap:10px}.region-art{width:40px;height:40px}.region-card h3{font-size:13px}.region-card p{font-size:11px}.region-card .buy-button{min-width:70px}.upgrade-card{padding:12px;grid-template-columns:25px 1fr auto;gap:8px}.upgrade-card h3{font-size:13px}.upgrade-card p{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.float-drop{display:none}}
