@font-face{font-family:Montserrat;src:url(assets/montserrat.ttf) format("truetype");font-weight:100 900;font-display:swap}@font-face{font-family:Caveat;src:url(assets/caveat.ttf) format("truetype");font-weight:400 700;font-display:swap}
:root{font-family:Montserrat,Arial,sans-serif;color:#202020;background:#fffaf0;font-synthesis:none;--paper:#fffaf0;--surface:#fffef9;--ink:#202020;--muted:#66685f;--line:#dedfd7;--red:#db1b82;--green:#407326}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:5px;padding:9px 14px;font-size:14px;font-weight:650;transition:background .15s,color .15s}button:hover{background:#eee8dc}button:disabled{cursor:default;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #009fc3;outline-offset:3px}button.primary{background:var(--red);border-color:var(--red);color:white}button.primary:hover{background:#b7186d}button.danger{color:#ad2822}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h2{font-size:25px;letter-spacing:-.7px}h3{font-size:17px;letter-spacing:-.3px}p{line-height:1.5}.topbar{height:96px;display:flex;align-items:center;padding:0 34px;gap:38px;background:var(--surface);border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--red);font-size:28px;font-weight:950;letter-spacing:-1.5px;line-height:.9;display:flex;flex-direction:column;margin-right:auto}.brand span{color:var(--ink);font-size:11px;letter-spacing:5.4px;margin-top:9px;padding-left:2px}.balance,.day-clock{display:flex;flex-direction:column;gap:3px}.balance span,.day-clock span{font-size:12px;color:var(--muted)}.balance strong{font-size:25px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.day-clock strong{font-size:15px}.icon-button{background:transparent;border-color:transparent;display:grid;place-items:center;width:44px}.game-shell{display:grid;grid-template-columns:minmax(0,1fr) 435px;max-width:1700px;margin:auto;min-height:calc(100svh - 96px)}.world{min-width:0;display:flex;flex-direction:column}.world-heading{display:flex;align-items:center;justify-content:space-between;padding:30px 34px 18px;gap:12px}.location-label{font-size:13px;color:var(--muted)}h1{font-size:32px;letter-spacing:-1px;line-height:1.2;margin-top:4px}.scene-wrap{position:relative;flex:1;min-height:430px;max-height:680px;background:#e8f1df}.scene-wrap canvas{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:manipulation}.scene-state{position:absolute;top:18px;left:24px;font-size:12px;background:#fffef9ee;padding:7px 10px;border:1px solid #dad2c4;border-radius:3px;pointer-events:none}.trading-bar{display:flex;align-items:center;justify-content:space-between;padding:18px 28px;border-bottom:1px solid var(--line);gap:14px}.trading-totals{display:flex;gap:28px}.trading-totals span{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--muted)}.trading-totals strong{font-size:18px;color:var(--ink);font-variant-numeric:tabular-nums}.time-controls{display:flex;align-items:center;gap:8px;white-space:nowrap}.time-controls .primary{min-width:142px}.quiet-button{border-color:transparent;background:transparent}.shop-message{display:flex;gap:14px;padding:20px 30px 12px}.shop-message>span{font-size:27px;color:var(--red);line-height:1}.shop-message strong{font-size:14px}.shop-message p{font-size:13px;color:var(--muted);margin-top:4px}.sale-feed{padding:0 30px 20px;font-size:12px;color:var(--muted);min-height:40px}.sale-feed span{color:var(--green);font-weight:700;margin-right:8px}.management{background:var(--surface);border-left:1px solid var(--line);min-width:0;max-height:calc(100svh - 88px);display:flex;flex-direction:column}.tabs{height:74px;display:flex;border-bottom:1px solid var(--line);padding:0 12px;flex-shrink:0}.tabs button{border:0;border-bottom:3px solid transparent;background:transparent;flex:1;border-radius:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px;color:var(--muted);padding:8px 5px}.tabs button[aria-current]{border-bottom-color:var(--red);color:var(--red)}.tabs button:hover{background:var(--paper)}.panel{padding:25px 24px;overflow-y:auto;flex:1;scrollbar-width:thin}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.subtext{font-size:13px;color:var(--muted);margin-bottom:18px;line-height:1.5}.stock-space{font-size:12px;color:var(--muted);white-space:nowrap}.search{width:100%;min-height:44px;background:#faf7f1;border:1px solid var(--line);border-radius:5px;padding:10px 12px;font-size:14px}.filters{display:flex;gap:3px;overflow-x:auto;padding:10px 0 15px;scrollbar-width:none}.filters button{font-size:11px;min-height:32px;padding:5px 8px;white-space:nowrap;border-color:transparent;background:transparent;font-weight:550}.filters button.active{background:#efe5d7;color:#744725}.product-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);align-items:center}.product-art{width:42px;height:46px;display:grid;place-items:center;background:#f0e9dd;border-radius:4px}.product-art svg{width:30px;height:30px;stroke-width:1.5}.product-name{font-size:14px;font-weight:650;line-height:1.3}.product-detail{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.5}.product-detail .sold-out{color:#b43f34}.price-input{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}.price-input input{width:70px;min-height:44px;border:1px solid var(--line);border-radius:4px;text-align:right;padding:7px;font-size:14px;color:var(--ink);background:var(--surface)}.buy-controls{display:flex;align-items:center;gap:7px;margin-top:8px;justify-content:space-between}.buy-controls label{font-size:11px;color:var(--muted)}.buy-controls input{width:55px;min-height:36px;padding:5px;border:1px solid var(--line);border-radius:3px}.buy-controls button{min-height:38px;padding:6px 10px;font-size:12px}.wholesale-row{grid-template-columns:42px minmax(0,1fr);align-items:start}.deal-price{font-weight:700;font-size:13px;color:var(--ink)}.clearance{color:#aa492c;font-size:11px;margin-left:7px}.empty{text-align:center;padding:32px 12px;color:var(--muted);font-size:14px}.section-title{font-size:16px;margin-top:25px;margin-bottom:14px}.offer-row{padding:16px 0;border-bottom:1px solid var(--line)}.offer-row:first-of-type{padding-top:0}.offer-row h3{margin-bottom:5px}.offer-row p{font-size:12px;color:var(--muted)}.offer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.offer-footer strong{font-size:13px}.offer-footer button{font-size:12px}.city-map{height:200px;position:relative;background:#e9e6d9;overflow:hidden;margin:16px 0}.river{position:absolute;height:300px;width:32px;background:#abc4c0;left:41%;top:-40px;transform:rotate(28deg)}.map-road{position:absolute;left:0;top:48%;width:100%;height:13px;background:#fffaf0;transform:rotate(-15deg)}.map-road.second{transform:rotate(35deg);top:20%;left:27%;width:110%;height:9px}.map-building{position:absolute;width:22px;height:14px;background:#d0c8b5;border:1px solid #c5bca7}.map-location{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:4px;color:#5c574b;font-size:10px;font-weight:700;white-space:nowrap}.map-location svg{width:28px;height:28px;background:#fffaf0;padding:4px;border:1px solid #d4c8b6}.map-location.owned{color:var(--red)}.map-location.owned svg{background:var(--red);color:white;border:0}.ledger{margin:18px 0}.ledger div{display:flex;justify-content:space-between;padding:11px 0;font-size:14px;border-bottom:1px solid var(--line)}.ledger div.total{font-weight:750;font-size:18px;border-top:1px solid var(--ink)}.negative{color:#b8352e}.positive{color:var(--green)}.history-chart{display:flex;height:110px;align-items:flex-end;gap:8px;border-bottom:1px solid var(--line);padding:0 6px;margin-top:20px}.history-bar{flex:1;background:#69866b;min-height:2px;position:relative;max-width:36px}.history-bar.loss{background:#c47b68}.history-bar span{position:absolute;bottom:-22px;left:0;right:0;text-align:center;font-size:10px;color:var(--muted)}.goals{margin-top:38px}.goal{padding:12px 0;border-bottom:1px solid var(--line)}.goal-top{display:flex;justify-content:space-between;font-size:13px;gap:10px}.goal p{font-size:11px;color:var(--muted);margin-top:5px}.goal progress{width:100%;height:5px;border:0;accent-color:var(--red);margin-top:8px}.goal progress::-webkit-progress-bar{background:#ece5d9}.goal progress::-webkit-progress-value{background:var(--red)}.toast{pointer-events:none;position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:#292820;color:#fffaf0;padding:13px 20px;border-radius:5px;font-size:13px;max-width:min(520px,90vw);z-index:30;line-height:1.4;box-shadow:0 2px 8px #0002}.toast[hidden]{display:none}dialog{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:28px;width:480px;max-width:calc(100vw - 32px);max-height:85svh;overflow:auto}dialog::backdrop{background:#24201880}dialog h2{font-size:28px;line-height:1.2;margin-bottom:12px}dialog p{color:var(--muted);font-size:14px;margin-bottom:16px}.dialog-top{display:flex;align-items:start;justify-content:space-between;gap:12px}.dialog-top .icon-button{flex-shrink:0;margin-top:-8px;margin-right:-8px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px}.welcome-brand{color:var(--red);font-size:36px;font-weight:950;letter-spacing:-2px;margin-bottom:22px}.welcome-steps{padding:0;list-style:none;margin:20px 0}.welcome-steps li{display:flex;gap:13px;align-items:start;margin:15px 0;font-size:14px;line-height:1.5}.welcome-steps li>span{color:var(--red);font-weight:800}.settings-action{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;font-size:14px}.settings-action button{min-width:100px}.save-hint{font-size:12px!important;margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.noscript{padding:24px}input[type=number]{appearance:textfield}input::-webkit-inner-spin-button{appearance:none}.mobile-back{display:none}
@media(min-width:1600px){.game-shell{grid-template-columns:minmax(0,1fr) 470px}.panel{padding:30px}}
@media(max-width:1100px){.game-shell{grid-template-columns:minmax(0,1fr) 380px}.topbar{padding:0 24px}.world-heading{padding:25px 24px 16px}.rating-stat{display:none!important}.trading-bar{padding:16px}.trading-totals{gap:18px}.time-controls .primary{min-width:126px}.scene-wrap{min-height:400px}.panel{padding:23px 20px}}
@media(max-width:760px){.topbar{height:74px;padding:0 16px;gap:18px}.brand{font-size:24px}.brand span{font-size:9px;letter-spacing:4.5px}.balance strong{font-size:22px}.balance span{font-size:10px}.day-clock{display:none}.topbar .icon-button{margin-right:-8px}.game-shell{display:block;min-height:calc(100svh - 74px);padding-bottom:calc(74px + env(safe-area-inset-bottom))}.world-heading{padding:18px 18px 12px}h1{font-size:26px}.location-label{font-size:11px}.scene-wrap{flex:none;min-height:0;height:clamp(300px,49svh,460px);max-height:none}.scene-state{top:12px;left:16px;font-size:11px}.trading-bar{padding:14px 16px;gap:8px}.trading-totals{gap:16px}.trading-totals strong{font-size:17px}.time-controls{gap:0}.time-controls .primary{min-width:124px}.time-controls .quiet-button{padding:8px;min-width:39px}.shop-message{padding:18px 18px 10px}.sale-feed{padding:0 18px 12px}.management{border:0;background:var(--surface);max-height:none}.tabs{position:fixed;bottom:0;left:0;right:0;height:calc(66px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);border-top:1px solid var(--line);border-bottom:0;background:var(--surface);z-index:10}.tabs button{border-bottom:0;border-top:3px solid transparent;font-size:11px;gap:4px}.tabs button[aria-current]{border-top-color:var(--red);border-bottom:0}.panel{display:none;padding:20px;overflow-y:auto}.game-shell.mobile-panel-open .world{display:none}.game-shell.mobile-panel-open .panel{display:block;height:calc(100svh - 140px - env(safe-area-inset-bottom));min-height:0}.mobile-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:20px;padding-left:0;border:0;background:transparent;color:var(--muted);font-size:13px}.product-row{padding:16px 0}.product-name{font-size:15px}.product-detail{font-size:12px}.filters button{font-size:12px;min-height:38px}.buy-controls button{min-height:44px;padding:8px 12px}.buy-controls input{min-height:44px}.toast{bottom:calc(82px + env(safe-area-inset-bottom));width:max-content}.panel-head h2{font-size:27px}dialog{padding:24px}.world-heading,.shop-message,.sale-feed{flex-shrink:0}}
@media(max-width:370px){.topbar{gap:10px}.trading-totals{gap:10px}.trading-totals span{font-size:10px}.trading-totals strong{font-size:15px}.time-controls .primary{min-width:110px;padding:9px}.panel{padding:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* BigSale's app palette and logo, with a shop-first game interface. */
.topbar{background:#ffdd00;border-bottom:3px solid #202020}
.brand{flex-direction:row;align-items:center;gap:4px}.brand img{width:100px;height:85px;object-fit:contain}.brand span{font:700 30px Caveat,cursive;letter-spacing:0;transform:rotate(-6deg);margin:0}
.brand span::after{content:"";display:block;height:3px;background:#db1b82;transform:rotate(-3deg)}
button.primary{border:2px solid #202020;box-shadow:2px 2px 0 #202020}button.primary:active{transform:translate(1px,1px);box-shadow:1px 1px 0 #202020}
h1,h2{font-weight:850}.world-heading{padding-top:22px;padding-bottom:14px}.world-heading .subtext{margin:6px 0 0;font-size:11px}.location-label{font-family:Caveat,cursive;font-size:21px;color:#407326}
.scene-wrap{min-height:410px}.scene-state{border:1px solid #202020;background:#fffef9}.automation-state{position:absolute;right:20px;top:22px;font-size:11px;font-weight:700;color:#346822}.trading-bar{background:#fffef9}
.management{border-left:1px solid #dedfd7}.tabs button[aria-current]{background:#fff4c1}.tabs{background:#fffef9}.panel{padding-top:26px}
.next-goal{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#ffdd00;padding:18px 16px;margin:22px 0 24px;border-left:4px solid #202020}.next-goal>div{display:flex;flex:1;flex-direction:column;gap:4px}.next-goal span{font:700 21px Caveat,cursive}.next-goal strong{font-size:16px}.next-goal small{font-size:11px}.next-goal>b{font-size:22px;letter-spacing:-1px}.next-goal progress{width:100%;height:7px;accent-color:#202020;margin-top:8px;border:0}.next-goal progress::-webkit-progress-bar{background:#20202026}.next-goal progress::-webkit-progress-value{background:#202020}
.strategies{display:grid;grid-template-columns:1fr;gap:0;margin-top:12px}.strategies button{text-align:left;display:flex;gap:16px;justify-content:space-between;align-items:center;border:0;border-left:3px solid transparent;border-bottom:1px solid var(--line);border-radius:0;padding:12px 10px}.strategies button strong{font-size:12px}.strategies button small{font-size:10px;max-width:150px;line-height:1.5;color:#66685f}.strategies .chosen{background:#f0f5e8;border-left-color:#619d27}.strategies .chosen strong::after{content:" ✓";color:#407326}
.automation{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.automation strong{font-size:13px}.automation p{font-size:11px;color:var(--muted);margin-top:5px}.automation button{font-size:11px}.automation+.subtext{font-size:11px;line-height:1.7;margin-top:10px}.inventory-details{margin-top:26px;border-top:1px solid var(--line);padding-top:18px}.inventory-details summary{cursor:pointer;font-size:12px;font-weight:650;min-height:44px}.shop-effects{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.shop-effects span{font-size:11px;background:#fff4c1;padding:6px 8px}
.incident{margin:-2px 0 26px;padding:22px 18px 18px;border:2px solid #202020;background:#fff4c1;box-shadow:4px 4px 0 #202020}.incident.good{background:#edf7dc}.incident-eyebrow{font:700 23px Caveat,cursive;margin-bottom:7px}.incident h2{font-size:24px;line-height:1.15;margin-bottom:10px}.incident>p{font-size:12px;line-height:1.65}.event-choices{margin-top:16px;display:grid;gap:8px}.event-choices button{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;padding:11px 10px;border-color:#202020;border-radius:3px}.event-choices button span{display:flex;flex-direction:column;gap:4px}.event-choices strong{font-size:12px}.event-choices small{font-size:10px;font-weight:450;line-height:1.5}.event-choices b{font-size:12px;white-space:nowrap}
.world-alert{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;margin:12px 22px 0;border:2px solid #202020;border-radius:3px;background:#ffdd00;font-size:12px}.world-alert[hidden]{display:none}.world-alert strong{font-size:10px}.deal-banner{padding:18px 0;border-bottom:3px solid #202020;margin:6px 0 0}.deal-banner span{display:block;font:700 26px Caveat,cursive;color:#db1b82}.deal-banner strong{font-size:22px;letter-spacing:-1px}.pallet{padding:24px 0;display:grid;grid-template-columns:70px 1fr;gap:15px;border-bottom:1px solid var(--line)}.pallet-art{position:relative;height:80px;background:#ffef8b;align-self:center}.pallet-art .product-art{width:44px;height:44px;position:absolute;left:0;top:0}.pallet-art .product-art+ .product-art{left:24px;top:28px}.pallet h3{font-size:15px}.pallet p{font-size:11px;color:var(--muted);margin:6px 0 12px}.pallet button{font-size:12px;border-color:#202020}.pallet button:not(:disabled):hover{background:#ffdd00}
.city-map{height:320px;background:#e8f1df}.map-location{border:0;border-radius:0;background:transparent;padding:0;min-height:44px;gap:0;font-size:8px;z-index:1;line-height:1.3}.map-location:hover{background:transparent;z-index:2}.map-location span{background:#fffef9;padding:2px 4px}.map-location svg{width:30px;height:30px;border-color:#202020;background:#ffdd00;color:#202020}.map-location.owned svg{background:#db1b82;color:white;border:1px solid #202020}.map-location.owned{color:#a71360}.river{background:#83c7d2;height:400px;width:28px}.map-building{background:#d2dec6;border-color:#bdcdb1}.map-road,.map-road.second{background:#fffef9}
.location-row{display:grid;grid-template-columns:78px 1fr;gap:16px;align-items:center;padding:22px 0;border-bottom:1px solid var(--line)}.location-row h3{font-size:16px}.location-row p{font-size:11px;color:var(--muted);margin:6px 0 10px}.location-row button{font-size:12px}.floor-plan{width:78px;height:88px;stroke-width:.2}.plan-floor{fill:#fff;stroke:#202020}.plan-shelf{fill:#ffdd00;stroke:#b99800}.plan-till{fill:#db1b82;stroke:none}.panel>.floor-plan{width:100%;height:140px;background:#e8f1df;margin-top:12px;padding:12px}
.welcome-brand{display:flex;align-items:center;justify-content:center;margin-bottom:12px}.welcome-brand img{width:160px;height:130px;object-fit:contain}.welcome-brand span{font:700 44px Caveat,cursive;transform:rotate(-7deg);color:#202020}.welcome-steps li>span{font-size:23px;min-width:24px}.welcome-steps li{font-size:12px}.welcome-steps strong{font-size:14px}dialog h2{font-weight:850}dialog{border:2px solid #202020;border-radius:5px}.history-bar{background:#8dc63f}.history-bar.loss{background:#db1b82}.sale-feed>span{color:#407326}
@media(max-width:1100px){.brand img{width:84px;height:74px}.brand span{font-size:25px}.automation-state{top:auto;bottom:18px;right:14px;font-size:10px}.scene-wrap{min-height:370px}.world-heading{padding:18px 20px 14px}}
@media(max-width:760px){.topbar{height:78px;padding:0 12px;gap:12px}.brand{gap:0}.brand img{width:73px;height:67px}.brand span{font-size:21px}.balance strong{font-size:21px}.balance span{font-size:9px}.game-shell{min-height:calc(100svh - 78px)}.scene-wrap{min-height:0;height:clamp(290px,46svh,430px)}.world-heading{padding:13px 17px}.world-heading .subtext{max-width:210px;font-size:10px}.location-label{font-size:17px}.world-heading h1{font-size:25px}.automation-state{bottom:15px;font-size:9px}.trading-bar{padding:12px}.trading-totals strong{font-size:17px}.time-controls .primary{min-width:112px;font-size:12px}.time-controls .quiet-button{font-size:12px}.world-alert{margin:10px 14px 0;align-items:start;flex-direction:column;gap:3px}.shop-message{padding:12px 16px 6px}.shop-message p{font-size:11px}.shop-message strong{font-size:12px}.sale-feed{font-size:10px;padding:0 16px 10px}.game-shell.mobile-panel-open .panel{height:calc(100svh - 144px - env(safe-area-inset-bottom))}.tabs button[aria-current]{background:#fff4c1}.tabs button{font-size:10px}.incident{margin-top:0}.panel{padding:18px}.mobile-back{margin-bottom:12px}.welcome-brand img{width:125px;height:110px}.welcome-brand span{font-size:36px}dialog h2{font-size:25px}.next-goal{margin-top:16px}}
@media(max-width:370px){.brand span{font-size:17px}.brand img{width:60px}.balance strong{font-size:19px}.topbar{gap:6px}.trading-totals strong{font-size:15px}.trading-totals{gap:12px}.automation-state{font-size:8px;bottom:6px}.world-heading .subtext{font-size:9px}.location-label{font-size:14px}}

.truck-offer{padding:18px 0;border-top:1px solid var(--line)}.truck-offer h3{font-size:16px}.truck-offer p{font-size:11px;color:var(--muted);margin:6px 0 9px}.truck-offer strong{font-size:11px}.truck-offer button{margin-top:14px;font-size:12px;width:100%}.truck-offer small{display:block;font-size:10px;margin-top:10px;color:var(--muted)}.truck-tease{font:600 24px/1.25 Caveat,cursive;padding:16px 0 22px;color:#a71360}.backroom{padding:18px 0;border-top:3px solid #202020}.backroom h3{font-size:16px}.backroom p{font-size:11px;margin-top:8px}.backroom button{font-size:11px}.truck-reveal h2{font-size:27px}.reveal-tag{font-size:10px;letter-spacing:1px;font-weight:750;color:#a71360;line-height:1.8;margin-bottom:12px}.truck-reveal>p{font-size:12px}.manifest{margin:16px 0}.reveal-item{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:12px;padding:12px 8px;border-bottom:1px solid var(--line);animation:unpack .35s both;animation-delay:var(--reveal-delay)}.reveal-item.rare{background:#fff1a4;border-left:3px solid #db1b82}.reveal-item .product-art{width:36px;height:36px}.reveal-item strong{font-size:12px;display:block}.reveal-item small{font-size:10px;display:block;margin-top:4px;color:var(--muted)}.reveal-item>b{font-size:14px}.junk-manifest{background:#eeeae4;padding:16px;margin:14px 0}.junk-manifest>strong{font-size:12px}.junk-manifest>div{display:flex;justify-content:space-between;gap:10px;margin-top:9px;font-size:10px}.truck-reveal .dialog-actions button{font-size:12px}@keyframes unpack{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}

.riga-map{height:360px;width:100%;margin-top:18px;z-index:0;background:#e8ede8}.riga-map .leaflet-control-attribution{font-size:9px;padding:3px 5px;line-height:1.4}.riga-map .leaflet-control-attribution a{color:#20516c}.riga-map .leaflet-control-zoom a{min-width:34px;height:34px;line-height:34px}.shop-map-pin{background:#ffdd00;border:2px solid #202020;border-radius:3px 3px 12px 12px;display:grid;place-items:center;box-shadow:1px 2px 0 #202020;color:#202020}.shop-map-pin.owned{background:#db1b82;color:white}.shop-map-pin svg{width:21px;height:21px}.shop-map-label{font:650 9px Montserrat,Arial,sans-serif;padding:2px 4px;box-shadow:none;border:0;background:#fffffff2}.map-caption,.map-status{font-size:10px;line-height:1.5;color:var(--muted);margin-top:8px}.map-caption a{color:#20516c}.map-status:empty{display:none}.problem-level{font-size:10px;font-weight:650;line-height:1.6;margin-top:12px;padding-top:10px;border-top:1px solid #20202033;color:#8b3627}.warehouse-stock-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}
@media(max-width:760px){.riga-map{height:330px}.shop-map-label{font-size:8px}.riga-map .leaflet-control-attribution{font-size:8px}}
@media(max-width:760px){.topbar{position:sticky;top:0;z-index:15}.game-shell.mobile-panel-open{height:calc(100svh - 78px);min-height:0;overflow:hidden;padding-bottom:calc(66px + env(safe-area-inset-bottom))}.game-shell.mobile-panel-open .management{height:100%;overflow:hidden}.game-shell.mobile-panel-open .panel{flex:none;height:100%;overflow-y:auto;overscroll-behavior:contain}}

.price-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:0;border-radius:0;padding:12px 28px;background:#ffdd00;text-align:left}.price-banner strong{font-size:14px}.price-banner span{font-size:11px;white-space:nowrap}.price-banner.on-sale{background:#db1b82;color:#fff}.price-banner.on-sale:hover{background:#bd156e}
#chain-pricing{padding-top:8px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-heading h3{font-size:17px}.section-heading>span{font-size:11px;white-space:nowrap;color:var(--muted)}.strategies button small{max-width:155px;text-align:right}
.daily-sale{margin-top:22px;padding:16px 0;border-top:2px solid #202020}.daily-sale.active{border-color:#db1b82}.daily-sale.active h3{color:#b21368}.daily-sale p{font-size:11px;color:var(--muted);margin-top:5px}.daily-sale .quiet-button{padding:7px 0 7px 7px;font-size:11px;white-space:nowrap}.sale-options{display:flex;gap:8px;margin-top:14px}.sale-options button{flex:1;min-width:0;font-size:13px;padding:9px 6px}.sale-options .chosen{background:#db1b82;color:#fff;border-color:#db1b82}.custom-sale{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:11px}.custom-sale>div{display:flex;align-items:center;gap:6px}.custom-sale input{width:58px;height:44px;padding:8px;border:1px solid var(--line);border-radius:4px;font-size:16px;background:var(--surface);color:var(--ink)}.custom-sale button{font-size:11px;margin-left:auto}.price-effect{display:flex;flex-direction:column;gap:5px;padding:12px 0}.price-effect strong{font-size:19px;color:#407326}.price-effect span{font-size:10px;line-height:1.6;color:var(--muted)}
.price-example{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin-bottom:14px}.price-example>div{display:flex;flex-direction:column;gap:6px}.price-example>div:last-child{text-align:right}.price-example small{font-size:10px;color:var(--muted);line-height:1.5}.price-example strong{font-size:18px;font-variant-numeric:tabular-nums}.price-example s{font-size:12px;color:var(--muted);font-weight:500}.price-example em{font-size:10px;font-style:normal;color:#b21368;white-space:nowrap}.sale-price{color:#b21368}.chain-results>p{font-size:12px;font-weight:700}.chain-results>p>span{display:block;font-size:9px;color:var(--muted);font-weight:500;margin-top:4px}.chain-results>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:14px}.chain-results>div>span{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted)}.chain-results strong{font-size:19px;color:var(--ink);font-variant-numeric:tabular-nums}.chain-results strong.negative{color:#ad2822}
@media(max-width:1100px){.trading-bar{flex-wrap:wrap}.trading-totals{flex:1;justify-content:space-between}.time-controls{margin-left:auto}.price-banner{padding:12px 16px}}
@media(max-width:760px){.price-banner strong{font-size:12px}.price-banner span{font-size:10px}.trading-bar{gap:10px 18px}.trading-totals{gap:14px}.time-controls .primary{min-width:104px}.strategies button{gap:10px}.strategies button small{font-size:9px;max-width:140px}.custom-sale{gap:8px}.section-heading h3{font-size:16px}.price-example strong{font-size:17px}}
@media(max-width:370px){.trading-totals{flex-basis:100%}.time-controls{width:100%;justify-content:flex-end}.price-example{gap:8px}.price-example em{display:block;margin-top:3px}}

/* Shop decisions stay on the overview; pricing and individual items have their own space. */
.panel-head{margin-bottom:16px}.panel-head h2{font-size:23px;font-weight:750}.shop-sections{display:flex;gap:18px;border-bottom:1px solid var(--line);margin-bottom:22px}.shop-sections button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:9px 0;font-size:12px;font-weight:600;background:none;color:var(--muted)}.shop-sections button[aria-pressed=true]{border-color:#db1b82;color:#a71160}.shop-sections button:hover{color:var(--ink)}
.shop-overview{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 24px}.shop-overview>div{display:flex;flex-direction:column;gap:5px}.shop-overview>div>strong{font-size:29px;letter-spacing:-1px;font-weight:750}.shop-overview>div>span{font-size:10px;color:var(--muted)}.shop-reputation{font-size:21px;font-weight:650;text-align:right}.shop-reputation small{display:block;font-size:9px;color:var(--muted);font-weight:500;margin-top:5px}
.shop-action-row{display:flex;align-items:center;justify-content:space-between;width:100%;gap:14px;padding:14px 0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;text-align:left;background:transparent}.shop-action-row>span{display:flex;flex-direction:column;gap:5px}.shop-action-row strong{font-size:13px}.shop-action-row small{font-size:10px;color:var(--muted);font-weight:500}.shop-action-row>b{font-size:11px;color:#a71160;white-space:nowrap}.automation{border-top:0;margin-top:4px;padding-top:16px}.automation strong{font-size:13px;font-weight:650}.automation p{font-size:10px}.shelf-counts{margin-top:16px;font-size:12px;padding-bottom:18px;border-bottom:1px solid var(--line)}.shelf-counts small{font-size:10px;color:var(--muted)}.shelf-counts button{font-size:11px}.shop-problems{list-style:none;padding:0;margin:14px 0;font-size:11px;color:#8b3627}.shop-problems li{padding:5px 0;line-height:1.5}
.missed-sales{padding:18px 0}.missed-sales h3{font-size:12px;font-weight:650;margin-bottom:12px}.missed-sales>div{display:flex;justify-content:space-between;gap:12px;font-size:11px;padding:5px 0}.missed-sales span{color:var(--muted)}.next-goal{margin:8px 0 20px;padding:16px 0;background:none;border:0;border-top:1px solid var(--line);gap:12px}.next-goal span{font:500 10px Montserrat,sans-serif;color:var(--muted)}.next-goal strong{font-size:13px}.next-goal small{font-size:10px;color:var(--muted);line-height:1.5}.next-goal>b{font-size:17px;letter-spacing:0;color:#407326}.next-goal progress{height:4px;margin-top:0;accent-color:#8dc63f}.next-goal progress::-webkit-progress-value{background:#8dc63f}
.recent-events{border-top:1px solid var(--line);padding-top:10px}.recent-events summary,.custom-discount summary{font-size:11px;color:var(--muted);cursor:pointer;min-height:36px;padding:10px 0}.recent-events>div{padding:12px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:4px}.recent-events strong{font-size:12px}.recent-events span,.recent-events p{font-size:10px;color:var(--muted)}.recent-events>p{padding:10px 0}.shelf-summary{display:flex;flex-direction:column;gap:5px;margin-bottom:18px}.shelf-summary>strong{font-size:22px}.shelf-summary>span{font-size:11px;color:var(--muted)}.custom-discount{margin-top:6px}.custom-sale{margin-top:2px}.daily-sale{margin-top:18px;border-top-width:1px;padding-top:16px}.price-effect{padding:10px 0 16px}.price-effect strong{font-size:17px}.chain-results>div{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.chain-results strong{font-size:15px}.chain-results>div>span{font-size:9px}
.incident{padding:18px;margin-bottom:22px;border-radius:3px}.incident h2{font-size:21px;line-height:1.2;font-weight:750}.incident p{font-size:12px}.incident-eyebrow{font-size:11px;letter-spacing:0}.event-choices button{padding:10px;font-size:11px}.event-choices small{font-size:10px}.event-choices strong{font-size:12px}.event-choices b{font-size:12px}.problem-level{font-size:10px}.product-row .product-art{background:#f2f0e5;border-radius:3px}.product-name{font-size:13px}.subtext{font-size:12px}
@media(min-width:761px){.topbar{height:88px}.brand img{height:78px;width:92px}.brand span{font-size:30px}.game-shell{min-height:calc(100svh - 88px)}.world-heading{padding-top:18px;padding-bottom:15px}.location-label{font-size:18px}.world-heading h1{font-size:29px}.panel{padding:22px}.world-heading .subtext{font-size:11px}}
@media(max-width:760px){.shop-sections{gap:20px;margin-bottom:20px}.shop-sections button{font-size:12px}.panel-head h2{font-size:23px}.shop-overview>div>strong{font-size:27px}.incident{padding:14px}.incident h2{font-size:21px}.chain-results>div{grid-template-columns:repeat(2,minmax(0,1fr))}.chain-results strong{font-size:18px}.scene-wrap{height:clamp(230px,32svh,300px)}.world-heading h1{font-size:24px}.custom-discount summary{min-height:44px}}
@media(prefers-reduced-motion:reduce){.reveal-item{animation:none}button{transition:none}}

.truck-value{padding:16px 0;margin:12px 0 16px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.truck-value>span{font-size:12px;font-weight:650}.truck-value>strong{display:block;font-size:clamp(28px,5vw,40px);line-height:1.2;color:#a71360;margin:5px 0}.truck-value>p{font-size:11px;color:var(--muted);margin:6px 0 0}
/* The business changes scale; its controls remain in the same four tabs. */
[hidden]{display:none!important}.world-views{display:flex;gap:4px;padding:12px 28px 0;flex-wrap:wrap}.world-views:empty{display:none}.world-views button{font-size:12px;border:0;background:transparent;padding:8px 12px}.world-views button[aria-pressed=true]{background:#ffdd00}.empire-sections{flex-wrap:wrap;gap:4px;margin-bottom:22px}.empire-sections button{flex:1;font-size:11px;padding:8px;min-width:60px}.resource-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px;padding:18px 0;border-block:1px solid var(--line);margin:18px 0}.resource-strip div{display:flex;flex-direction:column;min-width:0;gap:4px}.resource-strip span{font-size:10px;color:var(--muted)}.resource-strip strong{font-size:21px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.network-watch{margin-bottom:20px;width:100%;background:#ffdd00;border:0}.production-modes{border-bottom:1px solid var(--line);padding-bottom:20px}.production-modes p{font-size:12px;color:var(--muted)}.factory-category{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin-top:14px}.factory-category select{max-width:55%;padding:8px;border:1px solid var(--line);background:#fff}.takeover-price{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}.takeover-price s{color:var(--muted)}.takeover-price strong{color:var(--red);font-size:22px}.takeover-price span{flex-basis:100%;font-size:12px}.chapter-kicker{font-size:10px;font-weight:800;letter-spacing:1.5px;color:var(--red)}.discovery>p{font-size:14px;margin:16px 0}.discovery>h3{margin-top:25px}.discovery>button{margin-top:12px}.alien-terminal{position:relative;background:#252d36;color:#ffdd00;font-size:72px;width:120px;height:120px;display:grid;place-items:center;margin:30px auto;border:6px solid #596069;box-shadow:6px 6px 0 #d8d1c2;transform:rotate(-6deg)}.alien-terminal i{position:absolute;font:600 15px Montserrat;bottom:0;color:#eb278b}.artifact-found{background:#ffdd00;padding:20px;margin-bottom:20px}.artifact-found p{font-size:13px;margin:8px 0 14px}.moon-receipt{font-family:monospace;display:flex;flex-direction:column;gap:18px;background:#fff;border:1px dashed #b9b6ac;max-width:310px;padding:30px;margin:25px auto;transform:rotate(-2deg)}.moon-receipt>strong:first-child{font-size:30px;color:#db1b82;letter-spacing:-1px}.transmission,.gate-offer,.fate-choice,.ending{padding:20px 0;margin:8px 0 20px;border-block:2px solid #ffdd00}.transmission>span{font-size:10px;font-weight:800;letter-spacing:1px}.transmission h3,.gate-offer h3,.fate-choice h2,.ending h2{margin-top:8px}.transmission p,.gate-offer p,.fate-choice p,.ending p{font-size:13px;margin:12px 0}.transmission small,.gate-offer small{display:block;margin:12px 0;color:var(--muted);line-height:1.6}.transmission.trouble{border-color:#db1b82}.transmission.windfall{border-color:#8dc63f}.fate-choice>button{display:block;width:100%;margin-top:12px}.ending{background:#ffdd00;padding:20px}.ending .chapter-kicker{color:#28222c}.network-score{display:flex;gap:24px;margin:20px 0}.network-score div{display:flex;flex-direction:column;gap:4px}.network-score strong{font-size:32px;letter-spacing:-1px}.network-score span{font-size:10px;color:var(--muted)}.galactic-goal{margin:25px 0}.galactic-goal strong{font-size:13px}.galactic-goal progress{width:100%;margin:12px 0;accent-color:#db1b82}.galactic-goal small{font-size:11px}.frontier-heading{padding:28px 32px 18px}.frontier-heading h2{font-size:clamp(25px,3vw,40px);line-height:1.12;margin:10px 0;letter-spacing:-1.5px;max-width:620px}.frontier-heading p{font-size:13px;color:var(--muted)}.frontier-map{position:relative;overflow:hidden;min-width:0}.frontier-map>svg{width:100%;height:clamp(230px,calc(100svh - 550px),510px);display:block;stroke:none;stroke-width:1;fill:none}.space-map{background:#151b23}.space-map text{font-family:Montserrat,sans-serif;fill:#e5e7ef;font-size:12px;font-weight:700;letter-spacing:1px}.industrial-map text{fill:#354143;font-size:13px;font-weight:800;letter-spacing:1px}.industrial-map text.building-count{fill:#71776d;font-size:10px;font-weight:500}.map-scale{position:absolute;bottom:12px;left:20px;color:#a1aabd;font-size:8px;letter-spacing:1px}.frontier-footer{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:0 28px 20px}.frontier-footer span{font-size:11px;color:var(--muted);line-height:1.6}.frontier-footer button{font-size:12px;flex-shrink:0}#frontier-world>.resource-strip{margin:0;padding:20px 28px;grid-template-columns:repeat(5,minmax(0,1fr));border-top:0}#frontier-world>.resource-strip strong{font-size:23px}.location-feature{color:#5d6647!important;line-height:1.5;margin:8px 0}.offer-row>button{margin-top:12px}
@media(max-width:760px){.frontier-map>svg{height:auto}.world-views{padding:10px 14px 0}.world-views button{padding:7px 10px;font-size:11px}.frontier-heading{padding:22px 18px 18px}.frontier-heading h2{font-size:31px}.frontier-heading p{font-size:12px}.frontier-footer{padding:0 16px 18px;align-items:start;flex-direction:column;gap:10px}.frontier-footer button{width:100%}#frontier-world>.resource-strip{grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 18px}#frontier-world>.resource-strip strong{font-size:20px}.space-map text{font-size:15px}.map-scale{font-size:6px;left:12px;bottom:7px}.network-score strong{font-size:26px}.empire-sections button{min-width:55px}}
@media(prefers-reduced-motion:reduce){.cargo-ship{display:none}}
/* Production is a readable supply chain; detailed accounting stays folded away. */
.production-flow{display:grid;grid-template-columns:1fr 24px 1.05fr 24px 1.05fr;gap:12px;align-items:center;padding:22px 28px 28px;background:#eeeadd;border-block:1px solid var(--line)}.production-flow h3{font-size:17px;letter-spacing:-.4px}.production-flow p{font-size:11px;color:var(--muted);margin:7px 0 15px;line-height:1.5}.production-flow strong{display:block;font-size:21px;line-height:1.25;font-variant-numeric:tabular-nums;margin-bottom:7px}.production-flow span:not(.flow-arrow){display:block;font-size:11px;color:var(--muted);line-height:1.5}.flow-inputs>div+div{border-top:1px solid #d6cfbd;padding-top:18px;margin-top:18px}.flow-arrow{font-size:25px;color:#7e796d}.flow-destination strong{color:#9f1760}.research-branch{display:flex;align-items:center;gap:16px;padding:22px 28px;font-size:11px;border-bottom:1px solid var(--line);margin-bottom:18px}.research-branch>strong{font-size:13px;white-space:nowrap}.research-branch>span{color:var(--muted);line-height:1.5;flex:1}.research-branch>b{white-space:nowrap}.production-clock{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:16px 0;margin:8px 0 22px;border-block:1px solid var(--line)}.production-clock strong,.production-clock span{display:block}.production-clock strong{font-size:13px}.production-clock span{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.5}.production-clock button{flex-shrink:0;background:#ffdd00;border:0;font-size:12px}.production-modes h3{font-size:15px;margin-bottom:12px}.production-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:14px}.production-choices button{padding:12px 7px;background:transparent;text-align:left;border:1px solid var(--line);border-radius:3px;line-height:1.4}.production-choices button[aria-pressed=true]{border-color:#3a372e;background:#ffdd00}.production-choices strong,.production-choices span{display:block}.production-choices strong{font-size:11px}.production-choices span{font-size:10px;margin-top:5px;font-weight:400}.production-result{padding:20px 0;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid var(--line)}.production-result>strong{font-size:25px;letter-spacing:-.6px}.production-result>span{font-size:11px;color:var(--muted);line-height:1.5}.production-next{padding:17px 0;border-bottom:1px solid var(--line)}.production-next p{font-size:13px;margin-bottom:12px;line-height:1.55}.production-next button{font-size:12px;max-width:100%}.discovery-next{border-left:3px solid #db1b82;padding:0 0 0 15px;margin:24px 0}.discovery-next>strong{font-size:14px}.discovery-next p{font-size:12px;color:var(--muted);margin:8px 0 12px;line-height:1.55}.discovery-next button{font-size:12px}.resource-ledger{margin:20px 0;border-block:1px solid var(--line)}.resource-ledger summary{cursor:pointer;font-size:12px;padding:15px 0;font-weight:650;min-height:44px}.resource-ledger>p,.resource-ledger details>p{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 12px}.resource-ledger details{border-top:1px solid var(--line)}.resource-ledger details>summary{display:grid;grid-template-columns:1fr auto 65px;gap:12px;font-size:12px}.resource-ledger details>summary span:before{content:'▸ ';font-size:10px}.resource-ledger details[open]>summary span:before{content:'▾ '}.resource-ledger details>summary b{text-align:right}.resource-ledger dl{padding-bottom:12px}.resource-ledger dl>div,.project-supplies dl>div,.project-cost>div{display:flex;justify-content:space-between;gap:15px;padding:5px 0;font-size:11px}.resource-ledger dd,.project-supplies dd,.project-cost dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}.project-supplies{margin:15px 0}.project-supplies>strong{display:block;font-size:12px;margin-top:12px}.industry-building,.manager-region{padding:22px 0;border-bottom:1px solid var(--line)}.industry-building h3,.manager-region h3{font-size:16px}.industry-building .offer-footer>strong,.manager-region .offer-footer>strong{font-size:11px;color:var(--muted);white-space:nowrap}.industry-building p,.manager-region>p{font-size:12px;line-height:1.6;margin:10px 0;color:var(--muted)}.industry-building .building-recipe{color:var(--ink)}.building-status{display:block;font-size:12px;margin-top:14px;line-height:1.6}.building-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 8px}.building-actions button{font-size:12px}.building-actions button+button{background:transparent;border:0;text-decoration:underline;color:var(--muted)}.building-upkeep{font-size:10px;color:var(--muted)}.manager-perks>div{padding:14px 0;border-bottom:1px solid var(--line)}.manager-perks dt{font-size:13px;font-weight:700;margin-bottom:5px}.manager-perks dd{font-size:12px;margin:0;color:var(--muted);line-height:1.6}.manager-cost-note{font-size:11px;line-height:1.6;color:var(--muted);margin:14px 0}.manager-budget{display:flex;gap:18px;align-items:center;font-size:12px}.manager-budget strong{font-size:19px;white-space:nowrap}.manager-work{display:flex;flex-direction:column;gap:7px;font-size:12px;margin:14px 0}.manager-region .work-status{color:var(--ink)}.manager-region details summary{font-size:12px;padding:12px 0;cursor:pointer}.manager-region details p{font-size:11px;color:var(--muted);line-height:1.6;padding:10px 0}.space-route>small{display:block;margin-top:8px;font-size:11px;color:var(--muted)}.space-route .route-unlock{font-size:11px;color:var(--muted)}.galactic-goal small{display:block;line-height:1.6}.galactic-projects>h3{font-size:17px}.galactic-projects>p{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}.network-project{border-top:1px solid var(--line);padding:20px 0}.network-project>small{font-size:10px;font-weight:650;color:var(--muted)}.network-project h3{font-size:15px;margin:8px 0}.network-project p{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}.network-project>strong{font-size:11px}.network-project button{margin-top:12px;font-size:12px}.project-cost{margin-top:10px}.network-project.current{border-top:3px solid #db1b82}
@media(max-width:1000px){.production-flow{gap:8px;padding:20px 18px;grid-template-columns:1fr 16px 1fr 16px 1fr}.production-flow strong{font-size:17px}.production-flow h3{font-size:14px}.research-branch{flex-wrap:wrap;padding:18px}.research-branch>span{flex-basis:55%}}
@media(max-width:760px){.production-flow{grid-template-columns:1fr;gap:8px;padding:18px}.flow-inputs{display:grid;grid-template-columns:1fr 1fr;gap:18px}.flow-inputs>div+div{border:0;padding:0;margin:0}.flow-arrow{transform:rotate(90deg);justify-self:center;font-size:22px}.production-flow p{margin:4px 0 6px}.production-flow strong{font-size:18px;margin:4px 0}.flow-factory,.flow-destination{border-top:1px solid #d6cfbd;padding-top:10px}.research-branch{gap:10px}.production-choices{gap:4px}.production-choices button{padding:10px 6px}.production-choices strong{font-size:11px}.production-clock{gap:9px}.production-clock button{padding:11px}.production-result>strong{font-size:23px}.resource-ledger details>summary{grid-template-columns:1fr auto 48px;gap:7px}}

.truck-automation{margin:20px 0}.truck-automation p{max-width:360px;line-height:1.5}.truck-automation small{font-size:10px;color:var(--muted);line-height:1.5;display:block}.auto-truck-entry{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px}.auto-truck-entry span{font-size:11px;color:var(--muted)}

.debug-enabled{outline:2px solid #db1b82;outline-offset:-3px}.debug-tools{padding:20px 0;border-block:2px solid #db1b82;margin:18px 0}.debug-tools h3{font-size:18px}.debug-tools p{font-size:12px;line-height:1.6;margin:12px 0}.debug-tools label{display:block;font-size:12px;font-weight:650;margin:14px 0 8px}.debug-tools select{width:100%;min-height:44px;padding:8px;background:white;border:1px solid var(--line);font:inherit;font-size:12px}.debug-tools h4{font-size:13px;margin:22px 0 10px}.debug-tools>button{margin-top:12px;font-size:12px}.debug-buttons{display:flex;flex-wrap:wrap;gap:7px}.debug-buttons button{font-size:12px;padding:10px}

.play-guide{border-left:3px solid #db1b82;padding:4px 0 4px 15px;margin:10px 0 24px}.play-guide>span{font-size:11px;color:var(--muted)}.play-guide h3{font-size:16px;margin:6px 0}.play-guide p{font-size:12px;line-height:1.6;margin:8px 0 12px;color:var(--muted)}.play-guide button{font-size:12px;max-width:100%}.play-guide small{display:block;font-size:11px;margin-top:8px}.language-picker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 20px;font-size:13px}.language-picker select{min-height:44px;border:1px solid var(--line);background:var(--surface);padding:8px;font:inherit;max-width:65%}.decode-help{padding:16px 0;border-block:2px solid #ffdd00;margin:20px 0}.decode-help strong{font-size:16px}.decode-help p{font-size:13px;line-height:1.6;margin:12px 0}#help-button{font-size:20px;font-weight:750;flex-shrink:0}.topbar{column-gap:12px}@media(max-width:420px){.topbar{column-gap:6px}.brand span{display:none}.balance strong{font-size:18px}.topbar .icon-button{width:36px;min-width:36px;padding:8px}}

/* Product illustrations and shelf labels use the same scale across all three inventories. */
.product-row{grid-template-columns:70px minmax(0,1fr) auto;gap:14px;padding:18px 0;align-items:center}
.product-row .product-art,.reveal-item .product-art{background:transparent;border-radius:0;width:70px;height:70px}
.product-art svg{width:100%;height:100%;display:block}
.product-info{min-width:0}.product-name{font-size:14px;line-height:1.35;font-weight:750}.product-kind{font-size:10px;color:var(--muted);margin:4px 0 8px}.product-detail{line-height:1.65;font-size:11px}.product-detail strong{color:var(--ink)}.product-detail .stock-available{color:#407326}.product-detail .negative{color:#ad2822}.product-margin{display:block;color:#407326;font-size:10px;line-height:1.6;margin-top:3px}.product-market{font-size:11px;color:var(--muted);margin-top:3px}.product-margin.negative{color:#ad2822}.product-info .sale-price{display:block;font-size:12px;margin-top:3px}
.shelf-product .price-input{display:flex;flex-direction:column;align-items:flex-end;gap:5px}.price-caption{font-size:10px;color:var(--muted)}.price-input>span:last-child{display:flex;align-items:center;gap:4px}.price-input input{font-weight:750;font-size:15px;width:70px;background:#fff9dc;border-color:#ded4b3;padding:7px 4px}.product-row.is-empty .product-art{opacity:.72;filter:none}.product-row:hover{background:#f7f3e8}
.wholesale-row{grid-template-columns:76px minmax(0,1fr)}.wholesale-row .product-art{width:76px;height:76px;align-self:start;margin-top:6px}.buy-controls{gap:12px;justify-content:flex-start;flex-wrap:wrap;margin-top:12px}.buy-controls label{display:flex;align-items:center;gap:6px}.buy-controls input{width:48px;min-height:44px}.buy-controls button{min-height:44px;background:#ffdd00;border-color:#dfc950;font-weight:750;padding:9px 12px}.buy-controls button:not(:disabled):hover{background:#f0cd00}.clearance-mark{color:#a71360;font-weight:750;padding-left:8px}
.depot-quantity{font-size:20px;letter-spacing:-.7px;white-space:nowrap}.warehouse-sections{gap:12px}.warehouse-sections button{flex:1;font-size:12px}.warehouse-sections+.subtext{margin:0 0 18px}.reveal-item{grid-template-columns:60px minmax(0,1fr) auto;gap:12px;padding:12px 4px}.reveal-item .product-art{width:60px;height:60px}.reveal-item>b{font-size:19px}.reveal-item strong{font-size:13px}.reveal-item small{line-height:1.5}.filters{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:5px}.filters button{flex-shrink:0}
@media(max-width:420px){.product-row{grid-template-columns:56px minmax(0,1fr) auto;gap:10px}.product-row .product-art{width:56px;height:60px}.product-name{font-size:13px}.product-detail{font-size:10px}.shelf-product .price-input input{width:60px;font-size:13px}.price-input>span:last-child{gap:2px;font-size:10px}.wholesale-row{grid-template-columns:60px minmax(0,1fr)}.wholesale-row .product-art{width:60px;height:64px}.buy-controls{gap:8px}.buy-controls button{font-size:11px;padding:8px}.reveal-item{grid-template-columns:48px minmax(0,1fr) auto;gap:8px}.reveal-item .product-art{width:48px;height:52px}.reveal-item strong{font-size:12px}.depot-quantity{font-size:17px}.warehouse-sections button{font-size:11px;padding-inline:5px}}
.truck-illustration{margin:12px -3px 18px}.truck-illustration>svg{width:100%;height:auto;display:block;max-height:180px}

/* The sidebar is a compact inspector; explanations open only when requested. */
@media(min-width:1101px){.game-shell{grid-template-columns:minmax(0,1fr) 400px}}
@media(min-width:1600px){.game-shell{grid-template-columns:minmax(0,1fr) 420px}}
.tabs{height:64px;padding-inline:10px}.tabs button[aria-current]{background:transparent}.tabs svg{width:18px;height:18px}
.panel{padding:16px 20px 24px}.panel button{box-shadow:none}.panel button.primary{border-width:1px}.panel button:active{transform:none}
.panel .shop-sections{gap:18px;margin-bottom:20px}.panel .shop-sections button{flex:1;font-size:12px;line-height:1.3;padding:9px 0;min-width:0}
.panel .empire-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px}.shop-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;min-height:44px}.shop-context>strong{font-size:15px}.shop-context button{display:flex;align-items:center;gap:8px;font-size:11px;padding:6px 0;flex-shrink:0}
.panel .subtext{font-size:12px;line-height:1.5}.panel .section-title{font-size:14px;margin:20px 0 10px}
.sidebar-next,.sidebar-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0 0 16px;margin:0 0 22px;background:transparent}
.sidebar-next span,.sidebar-notice span{display:flex;flex-direction:column;gap:6px}.sidebar-next small,.sidebar-notice small{font-size:11px;color:var(--muted);font-weight:450}.sidebar-next strong,.sidebar-notice strong{font-size:14px;line-height:1.45;font-weight:650}.sidebar-next b,.sidebar-notice b{color:var(--red);font-size:20px}.sidebar-next:hover,.sidebar-notice:hover{background:transparent}.sidebar-next:hover strong,.sidebar-notice:hover strong{text-decoration:underline;text-underline-offset:4px}.sidebar-notice.bad strong{color:#b8352e}.sidebar-notice.good strong{color:var(--green)}
.panel .shop-overview{margin:0 0 22px}.panel .shop-overview>div>strong{font-size:26px}.panel .automation{margin:0;padding:15px 0;border-top:1px solid var(--line)}.panel .automation p{line-height:1.5}.panel .automation button{flex-shrink:0}.panel .shelf-counts{margin:0;padding:0 0 20px;border:0;font-size:12px}.panel .shelf-counts small{font-size:10px;color:var(--muted)}
.sidebar-details{border-top:1px solid var(--line);margin:0;padding:0}.sidebar-details>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:48px;padding:12px 0;font-size:12px;font-weight:600;line-height:1.5}.sidebar-details>summary::-webkit-details-marker{display:none}.sidebar-details>summary::after{content:'+';margin-left:auto;flex-shrink:0;color:var(--muted);font-size:18px;font-weight:400}.sidebar-details[open]>summary::after{content:'−'}.sidebar-details>summary:hover{color:var(--red)}.sidebar-details .detail-value{margin-left:auto;color:var(--muted);font-weight:450;font-size:11px;text-align:right;max-width:50%}.sidebar-details:has(.detail-value)>summary::after{margin-left:0}.sidebar-details>p{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 16px}.sidebar-details>div:last-child{margin-bottom:16px}.sidebar-details .goals{margin-top:0}.sidebar-details .next-goal{background:transparent;border:0;padding:0;margin:4px 0 16px}.sidebar-details .next-goal strong{font-size:14px}.sidebar-details .next-goal>b{font-size:18px}.sidebar-details .missed-sales{padding:0 0 10px}.sidebar-details.recent-events{margin:0}.sidebar-details .offer-row{border:0;padding:0 0 12px}.sidebar-details[open]{padding-bottom:4px}
summary:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:2px}
.offer-details{margin-top:4px}.offer-details>summary{cursor:pointer;font-size:11px;line-height:1.5;min-height:32px;padding:7px 0;color:var(--muted);width:fit-content}.offer-details p{font-size:12px;color:var(--muted);line-height:1.6;margin:4px 0 10px}
.panel .daily-sale{margin-top:16px}.panel .daily-sale h3,.panel .section-heading h3{font-size:14px}.panel .price-effect strong{font-size:14px}.panel .price-effect span{max-width:95%}.panel .price-example{margin-top:4px}.panel .chain-results{padding-bottom:12px}
.panel .truck-automation{padding:0;border:0;margin:0 0 12px}.panel .truck-illustration{margin:14px 0;display:flex;justify-content:center}.panel .truck-illustration svg{max-height:100px;width:250px}.truck-offer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.truck-offer-heading>div{min-width:0}.truck-offer-heading h3{font-size:14px;line-height:1.4}.truck-offer-heading span{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:5px}.truck-offer-heading button{margin:0;width:auto;flex-shrink:0;max-width:45%;min-height:44px;padding:8px 10px;font-size:12px}.panel .truck-offer{padding:14px 0}.truck-offer>small{margin-top:0}.panel .backroom{border:0;padding:16px 0;margin:0}.panel .backroom p{font-size:11px}
.panel .riga-map{height:225px;margin-top:10px}.panel .location-row{grid-template-columns:54px 1fr;gap:14px;padding:16px 0}.panel .location-row h3{font-size:14px}.panel .floor-plan{max-width:100%}.panel .map-caption{font-size:9px}.panel .offer-row h3{font-size:14px}.panel .offer-row p{line-height:1.6}.panel .ledger{margin:12px 0 16px}.panel .ledger div{font-size:12px;gap:16px;align-items:center}.panel .ledger strong{white-space:nowrap}.panel .ledger .total{font-size:15px}.panel .history-chart{margin-bottom:40px}
.panel .production-clock{padding:0 0 14px;margin:0 0 16px;border-top:0}.panel .production-clock button{background:var(--surface);border:1px solid var(--line)}.panel .production-clock span{font-size:10px}.panel .production-modes{padding-bottom:14px}.panel .production-modes h3{font-size:14px}.panel .production-next{padding:12px 0}.panel .production-next p{font-size:12px}.panel .network-watch{margin:0 0 16px}.panel .resource-ledger{margin:14px 0}.industry-building>.offer-footer{margin:0}.industry-building .offer-footer>div{min-width:0}.industry-building .offer-footer h3{font-size:14px;line-height:1.4}.building-count{display:block;color:var(--muted);font-size:10px;margin-top:5px}.industry-building .offer-footer>button{flex-shrink:0;max-width:50%}.panel .building-status{font-size:11px;margin:8px 0}.panel .manager-region{padding:16px 0}.panel .manager-region h3{font-size:14px}.panel .manager-work{font-size:11px;gap:5px;margin:10px 0}.panel .manager-budget{font-size:11px;line-height:1.5}.panel .manager-budget strong{font-size:17px}
@media(max-width:760px){.tabs{height:calc(66px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom)}.panel{padding:12px 18px 24px}.mobile-back{margin-bottom:6px;font-size:12px;min-height:40px}.panel .shop-sections{column-gap:12px}.panel .shop-sections button{font-size:11px;min-height:44px}.panel .truck-illustration svg{max-height:90px}.offer-details>summary{min-height:44px;padding:12px 0}.sidebar-details>summary{min-height:48px}.panel .riga-map{height:210px}}
@media(max-width:370px){.panel{padding-inline:16px}.truck-offer-heading{gap:8px}.truck-offer-heading button{font-size:11px;padding:8px}.truck-offer-heading h3{font-size:13px}.sidebar-details .detail-value{max-width:44%}.panel .production-choices{grid-template-columns:1fr}.panel .production-choices button{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel .production-choices span{max-width:40%;text-align:right}.industry-building .offer-footer{align-items:flex-start;gap:8px}.industry-building .offer-footer>button{font-size:11px;padding:8px}}
.campaign-offer{padding:14px 0;border-bottom:1px solid var(--line)}.campaign-offer .truck-offer-heading h3{font-size:14px}.panel .campaign-offer p{font-size:12px;line-height:1.6}
.panel .network-watch{background:transparent;color:var(--muted);border:0;padding:0;min-height:36px;font-size:11px;text-align:left;width:auto}.panel .production-result{padding:12px 0;margin:0 0 14px}.panel .production-result>strong{font-size:18px}.panel .production-result>span{font-size:10px}.panel .sidebar-notice{margin:14px 0;padding:12px 0}.panel .production-modes .sidebar-details{border-top:0;margin-top:8px}.panel .sidebar-details .network-project{border:0;padding:0 0 12px}

/* Shop switching stays a single row, with full-sized touch targets. */
.world-heading>div{min-width:0}.world-heading h1{overflow-wrap:anywhere}
.shop-switcher{display:flex;align-items:center;gap:6px;flex-shrink:0}.shop-switcher[hidden]{display:none}
.shop-arrow{display:grid;place-items:center;width:44px;height:44px;padding:10px;background:transparent;flex-shrink:0}.shop-arrow svg{width:20px;height:20px}
.all-shops{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:8px 10px;border-color:transparent;background:transparent;font-size:12px;white-space:nowrap}.all-shops>span:last-child{font-size:11px;color:var(--muted);font-weight:450;font-variant-numeric:tabular-nums}
.shop-list{max-height:48svh;overflow-y:auto;overscroll-behavior:contain;margin-top:16px;scrollbar-width:thin}.shop-list-region+.shop-list-region{margin-top:20px}.shop-list-region h3{font-size:12px;color:var(--muted);font-weight:600;padding:4px 0 10px;letter-spacing:0}
.shop-list-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;padding:12px 8px;min-height:58px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}.shop-list-item>span{display:flex;flex-direction:column;gap:5px;min-width:0}.shop-list-item strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.shop-list-item small{font-size:11px;line-height:1.4;font-weight:450;color:var(--muted)}.shop-list-item>b{flex-shrink:0;color:var(--muted)}.shop-list-item[aria-current]{background:#fff7cf}.shop-list-item[aria-current]>b{color:var(--red)}
@media(max-width:1000px){.world-heading{flex-wrap:wrap}.shop-switcher{flex:1 0 100%;justify-content:space-between;padding-top:4px}.all-shops{flex:1;max-width:240px}.world-heading .subtext{max-width:none}}
@media(max-width:760px){.world-heading{row-gap:6px}.shop-switcher{padding-top:2px}.shop-list{max-height:47svh}.shop-list-item{min-height:64px}.shop-list-item strong{font-size:13px}}

/* One time period and one stock balance throughout the industry view. */
.production-balance{padding:24px 28px 10px;border-bottom:1px solid var(--line);background:var(--surface)}
.production-balance h3{font-size:18px}.production-balance>p{font-size:12px;color:var(--muted);margin:7px 0 14px}
.balance-scroll{overflow-x:auto}.production-balance table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}.production-balance th{overflow-wrap:anywhere}
.production-balance th,.production-balance td{text-align:right;padding:11px 8px;border-bottom:1px solid var(--line)}.production-balance th:first-child{text-align:left;padding-left:0;width:32%}.production-balance thead th{font-size:11px;font-weight:550;color:var(--muted)}.production-balance tbody th{font-weight:600}.production-balance td:last-child{font-weight:750}
.production-forecast{display:flex;flex-direction:column;gap:5px;padding:12px 0 16px;font-size:13px}.production-forecast span,.production-forecast small{font-size:11px;line-height:1.5;color:var(--muted)}.production-timing{font-size:11px;line-height:1.5;color:var(--muted);margin:12px 0}.production-balance .negative{color:#ad2822}.production-balance p:empty{display:none}
@media(max-width:760px){.production-balance{padding:20px 16px 8px}.production-balance table{font-size:11px}.production-balance th,.production-balance td{padding:9px 4px}.production-balance th:first-child{width:31%}.production-balance thead th{font-size:10px}.production-balance h3{font-size:16px}}

/* The shop overview is a top-level destination, including the mobile navigation. */
dialog[data-notice=welcome]{padding:22px}.welcome-steps li>span{font-variant-numeric:tabular-nums}dialog[data-notice=welcome] .welcome-brand img{width:100px;height:80px}dialog[data-notice=welcome] .welcome-brand span{font-size:34px}dialog[data-notice=welcome] .welcome-steps{margin:14px 0}dialog[data-notice=welcome] .dialog-actions{margin-top:14px}
.tabs button{min-width:0;overflow-wrap:anywhere}.overview-manage{width:100%;margin:18px 0 8px}.guided-tour{position:fixed;inset:auto 20px 24px auto;width:min(440px,calc(100vw - 32px));margin:0;max-height:48dvh}.guided-tour h2{font-size:23px;margin:8px 0 12px}.guided-tour p{font-size:14px;line-height:1.6}.guided-tour .tour-counter{font-size:12px;color:var(--muted)}.guided-tour::backdrop{background:#17171742}.tour-target{outline:4px solid #ed168b!important;outline-offset:-4px}.guided-tour .dialog-actions{flex-wrap:wrap;gap:8px}.guided-tour .dialog-actions .quiet-button{margin-right:auto}
@media(max-width:760px){.tabs button{font-size:10px;padding-inline:2px}.guided-tour{inset:auto 12px calc(80px + env(safe-area-inset-bottom));width:calc(100vw - 24px);max-height:48dvh;padding:20px}.guided-tour h2{font-size:21px}.challenge-bar+.game-shell.mobile-panel-open{height:calc(100svh - 134px)}}



.empire-health{display:flex;align-items:center;gap:9px;min-height:48px;padding:6px 10px;background:transparent;border:1px solid #20202055;text-align:left;flex-shrink:0}.empire-health>span:first-child{font-size:28px;line-height:1}.empire-health>span:last-child{font-size:11px;max-width:145px}.empire-health small{display:block;font-size:10px;font-weight:450;margin-top:3px;text-decoration:underline;text-underline-offset:3px}.empire-health[data-severity="2"]{background:#fff0f3;border-color:#a11b3b}.empire-health:focus-visible,.shop-message:focus-visible{outline:3px solid var(--red);outline-offset:2px}
.health-list{max-height:55dvh;overflow:auto}.health-list section{border-top:1px solid var(--line);padding:16px 0}.health-list h3{font-size:16px;margin-bottom:8px}.health-list button{display:flex;width:100%;justify-content:space-between;gap:14px;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;font-size:13px;min-height:44px;padding:10px 0}.health-list p{font-size:12px;color:var(--muted);margin:0}
.play-timer{display:flex;flex-direction:column;gap:3px;margin-right:8px;font-variant-numeric:tabular-nums}.play-timer small{font-size:9px;color:var(--muted)}.play-timer strong{font-size:13px}.completion-time{font-size:18px}.completion-time strong{font-variant-numeric:tabular-nums}
button.shop-message{width:100%;text-align:left;border:0;border-radius:0;background:transparent;font-weight:400;white-space:normal;align-items:flex-start}.trend-link{display:inline-block;font-size:12px;color:#ac0961;font-weight:650;text-decoration:underline;text-underline-offset:3px;margin-top:8px}button.shop-message:hover .trend-link{color:#202020}
@media(max-width:1100px) and (min-width:761px){.empire-health>span:last-child{max-width:90px}.topbar{gap:12px}}
@media(max-width:760px){.topbar{height:auto;min-height:88px;flex-wrap:wrap;padding-bottom:6px}.empire-health{order:5;flex-basis:100%;justify-content:center;min-height:32px;padding:3px;border:0;border-top:1px solid #20202035}.empire-health>span:first-child{font-size:22px}.empire-health>span:last-child{max-width:none;display:flex;gap:6px;align-items:center}.empire-health small{display:inline;margin:0 0 0 6px}.play-timer{margin-right:auto}.health-list{max-height:52dvh}}
.next-step-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;width:100%;padding:13px 34px;border:0;border-bottom:1px solid #dfcb96;border-left:5px solid #d8147c;border-radius:0;background:#fff6cf;text-align:left}.next-step-banner>span:first-child{display:flex;gap:14px;align-items:baseline}.next-step-banner small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;color:#8d1556}.next-step-banner strong{font-size:13px}.next-step-action{font-size:11px;text-align:right;text-decoration:underline;text-underline-offset:3px}.next-step-banner:focus-visible{outline:3px solid var(--red);outline-offset:-3px}.empire-growth{margin-top:0!important;margin-bottom:16px}.empire-growth>summary{font-size:12px}.empire-growth .shop-sections{margin-bottom:0}
@media(max-width:760px){.next-step-banner{padding:9px 12px;gap:10px}.next-step-banner>span:first-child{display:block;max-width:60%}.next-step-banner small{display:block;font-size:9px;margin-bottom:3px}.next-step-banner strong{display:block;font-size:11px;line-height:1.4}.next-step-action{font-size:10px;max-width:44%}.game-shell.mobile-panel-open{height:calc(100svh - var(--game-header-height,190px))}.empire-growth>summary{min-height:44px}}
.daily-store{border-top:1px solid var(--line);padding:16px 0}.daily-store h3{font-size:15px;margin-bottom:12px}.daily-store dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0}.daily-store dt{font-size:10px;color:var(--muted)}.daily-store dd{margin:4px 0 0;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}.daily-store p{font-size:11px;margin:10px 0 0}.daily-report-choice{display:flex;gap:10px;align-items:center;font-size:12px;min-height:44px}.daily-report-choice input{width:20px;height:20px;flex-shrink:0;accent-color:var(--red)}@media(max-width:400px){.daily-store dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Feedback has its own space: it never covers a control or intercepts a tap. */
.toast,.toast[hidden]{position:static;display:-webkit-box;visibility:visible;width:100%;max-width:none;height:34px;min-height:34px;margin:0;padding:3px 34px;border:0;border-radius:0;background:var(--surface);color:#334238;font-size:11px;line-height:14px;box-shadow:none;transform:none;pointer-events:none;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.toast[hidden]{display:-webkit-box!important;visibility:hidden}
button,a,input,select,summary{touch-action:manipulation}
@media(max-width:760px){.toast,.toast[hidden]{padding-inline:16px;font-size:10px}}
.bank-entry{border:0;padding:0;background:transparent;text-align:left;min-height:44px}.bank-entry>span{display:flex;align-items:center;gap:4px;text-decoration:underline;text-underline-offset:3px}.bank-entry svg{width:14px;height:14px;flex-shrink:0}.bank-shortcut{width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:48px;padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left;margin-bottom:14px;font-size:12px}.bank-shortcut strong{font-size:11px}.bank-entry:hover,.bank-shortcut:hover{color:#b10c66}

.bank-warning{border-left:3px solid #b8352e;padding:12px 14px;background:#fff1e9;color:#6e2c25;line-height:1.6}

.stock-help{padding:12px 0 18px;border-bottom:1px solid var(--line);margin-bottom:14px}.stock-help p{font-size:12px;color:var(--muted);margin:6px 0 10px}.stock-help strong{font-size:14px}

.topbar-status{display:flex;align-items:center;gap:10px;min-width:0}.advertising-buff{display:flex;align-items:center;gap:7px;padding:6px 9px;max-width:180px;background:transparent;border-color:#20202055;font-size:11px;text-align:left}.advertising-buff[hidden]{display:none}.advertising-buff>span:last-child>span,.advertising-buff strong{display:block}.advertising-buff>span:first-child{font-size:21px}.advertising-buff[data-active="false"]{border-color:var(--red)}.marketing-agency{border-block:1px solid var(--line);padding:16px 0;margin-bottom:20px}.marketing-agency p{font-size:12px;margin:10px 0;line-height:1.5}.marketing-agency label{display:block;font-size:12px;margin-bottom:6px}.marketing-agency select{width:100%;min-height:44px;background:var(--surface);border:1px solid var(--line);padding:8px;color:var(--ink)}.agency-actions{display:flex;gap:8px;flex-wrap:wrap}.agency-state{color:var(--green)}
@media(max-width:1100px){.topbar-status{gap:6px}.advertising-buff{max-width:130px}}
@media(max-width:760px){.topbar-status{order:5;flex-basis:100%;border-top:1px solid #20202035;padding-top:5px;justify-content:center}.topbar-status .empire-health{order:0;flex:1;min-width:0;border:0}.topbar-status .empire-health>span:last-child{display:block}.topbar-status .empire-health small{display:block;margin:2px 0 0}.advertising-buff{max-width:43%;min-height:44px;flex-shrink:0}.advertising-buff strong{font-size:10px}.topbar-status .empire-health>span:first-child{flex-shrink:0}}

.business-service{padding:18px 0;border-top:1px solid var(--line)}.business-service p{font-size:13px;line-height:1.5;margin:10px 0}.business-service .save-hint{font-size:11px}.business-service button{max-width:100%;white-space:normal}

.warehouse-space{display:block;width:100%;text-align:left;margin:12px 0 20px;padding:12px;background:transparent;border:1px solid var(--line);box-shadow:none}.warehouse-space>span{display:flex;justify-content:space-between;gap:10px}.warehouse-space progress{display:block;width:100%;height:6px;margin:8px 0;accent-color:var(--pink)}.warehouse-space small{display:block}.equipment-option{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.equipment-option small{display:block;margin-top:5px}.equipment-option>div{flex:1 1 160px}

.detail-link{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:48px;padding:12px 0;margin:0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;text-align:left;font-size:12px;line-height:1.5}.detail-link>span:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.detail-link>span:last-child{color:var(--muted);flex-shrink:0}.detail-link:hover{color:var(--red);background:transparent}.detail-link .detail-value{color:var(--muted);font-weight:450}.empire-tools{display:flex;flex-direction:column;margin-bottom:18px;border-bottom:1px solid var(--line)}.empire-tools>button{display:flex;justify-content:space-between;gap:12px;text-align:left;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;font-size:12px;padding:12px 0}.empire-tools>button[aria-pressed="true"]{color:var(--red)}dialog[data-notice="popup"]{width:600px}.popup-body>h2:first-child{display:none}.popup-body .business-service:first-of-type{border-top:0;padding-top:0}.popup-body>p{line-height:1.6}.popup-body .detail-link{font-size:13px}.popup-body .manager-region{margin-top:18px}.popup-back{margin:0 0 16px;padding-left:0}.popup-body .custom-sale{margin:16px 0}.popup-body dl{font-size:13px}.popup-body dd{overflow-wrap:anywhere}@media(max-width:760px){dialog[data-notice="popup"]{padding:18px;max-width:calc(100vw - 24px);max-height:90dvh}.popup-body .offer-footer{flex-wrap:wrap}.popup-body .business-service p{font-size:13px}}

/* Game tools share the same icon tiles and upgrade cards. */
.menu-icon{flex:none;width:22px;height:22px;vertical-align:middle}
.panel .shop-sections button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:64px}
.panel .shop-sections button[aria-pressed=true]{background:#fff2a8;color:#202020;border-color:var(--red)}
.empire-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0;margin:0 0 20px}
.menu-tile,.service-card{--tile:#fff0b3;--tile-ink:#725600}
.tone-security{--tile:#e0f2df;--tile-ink:#39723c}.tone-accounting{--tile:#fff0b3;--tile-ink:#725600}
.tone-managers,.tone-beyond{--tile:#fce1ee;--tile-ink:#a61761}.tone-industry,.tone-upgrade{--tile:#def2f6;--tile-ink:#156675}
.empire-tools>button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-height:64px;padding:10px 12px;border:1px solid #20202025;border-bottom:3px solid #20202050;border-radius:8px;background:var(--tile);text-align:left;font-size:12px;line-height:1.3}
.empire-tools .menu-icon{width:27px;height:27px;color:var(--tile-ink)}
.empire-tools>button:hover{filter:brightness(.97)}
.detail-link{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;padding:12px 0}
.detail-link>span{min-width:0}.detail-link>span:last-child{justify-self:end}
.service-card{padding:18px;margin:0 0 14px;border:1px solid #20202025;border-bottom:3px solid #20202050;border-radius:10px;background:var(--tile)}
.service-heading{display:flex;gap:12px;align-items:center;margin-bottom:16px}
.service-heading>.menu-icon{width:36px;height:36px;color:var(--tile-ink)}
.service-heading h3{font-size:18px;line-height:1.25}.service-heading p{margin:4px 0 0;font-size:12px;color:var(--tile-ink)}
.service-perks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0 16px}
.service-perks div{display:flex;flex-direction:column;gap:5px}.service-perks strong{font-size:25px;font-weight:850;letter-spacing:-.7px}.service-perks span{font-size:11px;line-height:1.35}
.service-card>p{font-size:12px;line-height:1.5;margin:10px 0}.service-purchase{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #20202025;padding-top:14px;margin-top:16px}
.service-purchase>strong{font-size:21px;white-space:nowrap}.service-purchase small{display:block;font-weight:500;font-size:10px;margin-top:3px}.service-purchase button{font-size:12px;max-width:100%;min-height:44px}
.popup-body .manager-region{margin:0 0 14px}.manager-region .offer-footer{margin-top:0}.manager-region h3 .menu-icon{margin-right:4px}.manager-region .manager-work{background:#ffffff80;border-radius:5px;padding:10px}
.campaign-offer{background:#fff5ce;border:1px solid #d7c992;border-bottom:3px solid #d7c992;border-radius:8px;padding:14px;margin:12px 0}.campaign-offer h3{line-height:1.3}.campaign-offer h3 .menu-icon{color:#9a6a00;margin-right:4px}.campaign-offer .truck-offer-heading{gap:10px}.campaign-offer .detail-link{margin-top:10px;padding-bottom:0;min-height:44px}.campaign-offer [data-action=advertise]:not(:disabled){background:var(--red);color:#fff;border-color:var(--red)}
.popup-body .marketing-agency{border:0;margin:0;padding:0}
dialog .dialog-top{position:sticky;top:-28px;padding:8px 0 12px;background:var(--surface);z-index:2}dialog .dialog-top h2{margin:0;font-size:24px}dialog .dialog-top .icon-button{margin-top:-4px;margin-right:-4px}
.report-trading{color:var(--green);font-weight:650}
.status-face{width:32px;height:32px;flex:none;--status-fill:#79bd59}.status-face[data-severity="1"]{--status-fill:#f3c747}.status-face[data-severity="2"]{--status-fill:#ee7064}.status-face circle{fill:var(--status-fill);stroke:#202020;stroke-width:1.4}.status-face path{stroke:#202020;stroke-width:1.7;fill:none}.health-list h3{display:flex;align-items:center;gap:10px}
.topbar-status .day-clock{margin-right:10px;flex-shrink:0}.empire-health>span:first-child{display:flex;align-items:center}
@media(max-width:760px){
 .topbar{display:grid;grid-template-columns:56px minmax(0,1fr) 40px 40px;gap:0 6px;padding:3px 10px 4px;min-height:0;height:auto}
 .topbar .brand{margin:0;grid-column:1;grid-row:1}.topbar .brand img{width:54px;height:50px}.topbar .brand span{display:none}
 .topbar .balance{grid-column:2;grid-row:1;min-width:0;padding:2px 0;align-items:flex-start}.topbar .balance strong{font-size:clamp(14px,4.4vw,20px);letter-spacing:-.6px;max-width:100%}.topbar .balance>span{font-size:9px}.bank-entry>span>svg{width:13px;height:13px}
 .topbar #help-button{grid-column:3;grid-row:1}.topbar #settings-button{grid-column:4;grid-row:1}.topbar .icon-button{margin:0;width:40px;min-width:40px;min-height:44px;padding:8px}
 .topbar-status{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:6px;border-top:1px solid #20202025;padding-top:2px;min-height:40px}
 .topbar-status .day-clock{display:flex;flex-direction:row;gap:6px;align-items:center;margin-right:auto}.day-clock #day{font-size:10px}.day-clock #clock{font-size:10px}
 .topbar-status .empire-health{order:0;flex:0 0 auto;gap:3px;min-height:38px;padding:2px 5px;max-width:none;border:0;background:transparent}
 .topbar-status .empire-health .health-text,.topbar-status .empire-health small{display:none}.topbar-status .empire-health b{font-size:12px}.topbar-status .status-face{width:29px;height:29px}
 .topbar-status .advertising-buff{order:1;max-width:135px;gap:5px;min-height:38px;padding:2px 6px;border:0;border-left:1px solid #20202035;border-radius:0;font-size:9px;line-height:1.3}.advertising-buff .menu-icon{width:18px;height:18px}.topbar-status .advertising-buff strong{font-size:9px}
 .panel .shop-sections{gap:8px}.panel .shop-sections button{font-size:11px;min-height:62px}.empire-tools>button{font-size:11px;min-height:60px;padding:9px;gap:8px}.empire-tools .menu-icon{width:24px;height:24px}
 dialog .dialog-top{top:-24px}dialog[data-notice="popup"] .dialog-top{top:-18px}.service-card{padding:15px}.service-perks strong{font-size:23px}.service-purchase button{flex:1}.service-heading h3{font-size:17px}
}
/* Compact UI cards, with coloured headers and separate action footers. */
.empire-tools>button{border:1px solid #20202025;border-radius:7px;min-height:58px}
.service-card{padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden}
.service-heading{padding:16px;margin:0;background:var(--tile);border-bottom:1px solid #20202015}
.service-perks{padding:16px;margin:0;gap:16px}.service-card>p{margin:0;padding:0 16px 14px}
.service-purchase{margin:0;padding:14px 16px;border-color:var(--line);background:#faf9f3}
.manager-region .offer-footer:first-child{padding:14px 16px;background:var(--tile);border-bottom:1px solid #20202015}
.manager-region .manager-work{margin:0 16px 14px}.manager-region>.work-status{padding:0 16px 14px}.manager-region>button{margin:0 16px 16px}.manager-region>.detail-link{width:calc(100% - 32px);margin:0 16px}
.campaign-offer{border:1px solid #e3d5a6;background:#fff9e6;border-radius:8px}
.music-now{display:flex;align-items:center;gap:12px;padding:14px;background:#fff4be;border:1px solid #e3d5a6;border-radius:7px;margin-bottom:16px}.music-now>div{flex:1;min-width:0}.music-now span{font-size:11px}.music-now strong{display:block;font-size:13px;margin-top:4px}.music-now button{flex-shrink:0;min-width:44px}

.panel .empire-sections{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-bottom:16px}.quantity-shortcuts{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}.quantity-shortcuts button{padding:5px 9px;min-height:36px;font-size:11px;background:#fff;border:1px solid var(--line)}

.settings-action>span{flex:1;min-width:0}.settings-action>button{flex:0 1 45%;min-width:0;overflow-wrap:anywhere}.music-now button{padding:8px}.dialog-top h2{min-width:0;overflow-wrap:anywhere}

/* Equipment and destinations belong to the game world; the details stay one tap away. */
.logistics-flow{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0 24px;padding:16px;background:#e8efdf;border-radius:8px}.logistics-flow>span:not([aria-hidden]){display:grid;justify-items:center;gap:5px;min-width:0}.logistics-flow b{font-size:21px}.logistics-flow small{font-size:11px;text-align:center}.logistics-flow .menu-icon{width:26px;height:26px}
.logistics-cards{display:grid;gap:20px}.logistics-card{border:1px solid #cbd6c5;border-radius:8px;background:#f0f3e8;padding:20px;overflow:hidden}.handling-card{background:#fff7d3;border-color:#e1d49c}.fleet-card{background:#eaf1f6;border-color:#bdcfdd}.manager-card{background:#f7e7ef;border-color:#d9b9cb}.logistics-art{display:block;width:100%;height:125px;margin:-6px auto 12px}.logistics-card h3{font-size:21px;margin:0 0 12px}.equipment-score{display:flex;gap:8px;align-items:baseline;margin-bottom:12px}.equipment-score strong{font-size:28px}.equipment-score span,.capacity-status{font-size:13px}.logistics-card>button{display:block;width:100%;margin-top:12px}.logistics-card>p{font-size:13px;line-height:1.5}.logistics-card progress{width:100%;height:8px;accent-color:#658b54}.upgrade-gain{display:flex;gap:8px;align-items:center}.upgrade-gain strong{font-size:20px}.equipment-option{gap:12px;align-items:center;padding:14px 0}.equipment-option small{line-height:1.5}.equipment-option button{flex-shrink:0}.equipment-fee{font-weight:750}.equipment-fee span{font-weight:400}.logistics-card .detail-link{margin:12px 0 -4px;border-bottom:0;background:transparent}.unlock-art{text-align:center;margin:24px 0;background:#ffe000;padding:24px;border-radius:8px}.unlock-art .menu-icon{width:64px;height:64px}
.decode-card .alien-terminal{margin:12px auto 24px}.decode-requirements{margin:24px 0;border-block:1px solid var(--line)}.decode-requirements>div{display:grid;grid-template-columns:20px 1fr auto;gap:8px;align-items:center;padding:12px 0;font-size:13px;border-bottom:1px solid var(--line)}.decode-requirements>div:last-child{border:0}.decode-requirements strong{font-size:12px;text-align:right}.decode-requirements .ready>span:first-child{color:#438340}.decode-requirements .missing>span:first-child{color:#b64b2e}.decode-shortfall{padding:12px;background:#fff0cc;border-left:3px solid #bf8a27;font-size:13px}.decode-card>button{width:100%;margin:8px 0}.decode-card .production-clock{margin-top:24px}
.route-section-title{font-size:15px;margin:24px 0 12px}.route-offers,.active-routes{display:grid;gap:16px}.route-card{background:#eef1f8;border:1px solid #c4ccdc;border-radius:8px;overflow:hidden}.route-card>.route-art{display:block;background:#151b23;width:100%;height:125px}.route-body{padding:18px}.route-body h3{font-size:20px;margin:0 0 12px}.route-return{display:flex;gap:8px;align-items:baseline;font-size:12px;margin:12px 0}.route-return strong{font-size:24px;color:#447044}.route-price{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.route-price>span{flex:1;min-width:80px;display:grid;gap:4px;padding:8px;background:#fff;border-radius:4px}.route-price b{font-size:13px}.route-price small{font-size:11px}.route-price .missing b{color:#a84b34}.route-price .ready b{color:#3a753d}.route-body>button{width:100%}.route-body .detail-link{margin-bottom:-10px;border-bottom:0}.active-route{display:grid;grid-template-columns:64px 1fr;gap:12px;padding:14px;background:#edf4e9;border:1px solid #c6d4bf;border-radius:8px}.active-route.waiting{background:#fff1da;border-color:#ddc899}.active-route>.route-art{width:64px;height:64px;background:#151b23;border-radius:6px}.active-route h3{font-size:14px;margin:0 0 6px}.active-route strong,.active-route small{display:block;font-size:12px;line-height:1.6}.active-route>details,.active-route>.detail-link{grid-column:1/-1;margin:0;padding:8px 0 0;border-bottom:0;border-top:1px solid var(--line);min-height:36px}.locked-route{display:grid;gap:10px;margin:18px 0;font-size:13px}.locked-route progress{width:100%;accent-color:var(--pink)}.solar-routes>h2{margin-top:24px}.building-card{background:#f1f4e9;border:1px solid #cbd6c5;border-radius:8px;padding:18px;margin:16px 0}
@media(max-width:360px){.logistics-card{padding:15px}.equipment-option{flex-wrap:wrap}.equipment-option button{margin-left:auto}.decode-requirements>div{grid-template-columns:16px 1fr}.decode-requirements strong{grid-column:2;text-align:left}.route-body{padding:14px}}
.alien-customer{background:#fbf1d8;border:1px solid #ddcd9c;border-radius:8px;padding:18px;margin:20px 0}.customer-intro{display:grid;grid-template-columns:100px 1fr;align-items:center;gap:12px}.alien-portrait{display:block;width:100%;height:auto}.customer-intro>div>span{font-size:11px;color:var(--muted)}.customer-intro h3{font-size:24px;margin:5px 0 8px}.customer-intro p{font-size:13px;line-height:1.5;margin:0}.alien-customer>h3{font-size:16px;margin:16px 0}.customer-deal{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:16px 0}.customer-deal>span:not([aria-hidden]){display:grid;gap:3px;flex:1;font-size:11px}.customer-deal b{font-size:24px}.customer-deal small{margin-top:5px}.alien-customer>button{width:100%}.alien-customer .detail-link{margin-bottom:-8px;border:0}.customer-loyalty,.customer-between>p{font-size:12px;line-height:1.6}.customer-between{padding:10px 0;border-bottom:1px solid var(--line)}.moon-customer{width:140px;margin:0 auto -14px}.moon-receipt{margin-top:0}

.next-route{margin:18px 0;padding:16px;background:#f5efd7;border-left:3px solid #d5ab20;border-radius:4px}.next-route>span{font-size:11px}.next-route strong{display:block;margin:5px 0;font-size:16px}.next-route p{font-size:12px;line-height:1.5}.next-route progress{width:100%;accent-color:#bd8a18}
#space-tab:not([aria-current]){color:#71518a}#space-tab[aria-current]{color:var(--red)}.panel>.play-guide{background:#fff4c9;border:1px solid #e3cd84;border-left:4px solid var(--red);border-radius:6px;padding:14px;margin:12px 0 20px}.panel>.play-guide h3{font-size:17px}.panel>.play-guide p{font-size:12px;margin:8px 0 12px}.panel>.play-guide button{width:100%;background:var(--red);border-color:var(--red);color:white}
@media(max-width:360px){.tabs{padding-inline:3px}.tabs button{font-size:9px}.tabs button svg{width:17px;height:17px}}
.fleet-growth{padding:18px;background:#e9eef9;border:1px solid #c4cede;border-radius:8px;margin:18px 0}.fleet-growth .service-heading h3{font-size:18px}.fleet-growth .service-heading p,.fleet-growth>p{font-size:12px;line-height:1.5}.fleet-growth-rate{display:flex;gap:10px;align-items:baseline;margin:16px 0}.fleet-growth-rate strong{font-size:32px}.fleet-growth-rate span{font-size:12px}.fleet-growth .detail-link{border-bottom:0;margin-bottom:-8px}
/* Production and space are playable stages, with optional detail controls. */
.industry-status{margin:18px 0 22px;padding:18px;border:1px solid #dbc98e;background:#fff4cf;border-radius:8px}.industry-status.working{background:#eaf4e3;border-color:#c4d7b9}.industry-status-heading{display:flex;align-items:center;gap:14px}.industry-status-heading>.menu-icon{width:48px;height:48px;flex-shrink:0;color:#466c35}.industry-status-heading span{font-size:11px;color:var(--muted)}.industry-status h3{margin:5px 0;font-size:21px;line-height:1.25}.industry-status>p{margin:12px 0;font-size:13px}.industry-status>button{width:100%;margin-top:12px}.industry-status>small{display:block;margin-top:10px;font-size:11px;line-height:1.5}.industry-receipt{display:grid;grid-template-columns:1fr auto 1fr 1fr;align-items:start;gap:12px;border-block:1px solid #0002;padding:16px 0;margin:16px 0}.industry-receipt>div{display:grid;gap:6px;min-width:0}.industry-receipt strong{font-size:25px;line-height:1.1}.industry-receipt span{font-size:11px;line-height:1.4}.industry-receipt>[aria-hidden]{padding-top:6px}.industry-income{font-weight:750}.industry-status .production-next{margin:16px 0 0;padding:14px 0 0;border-top:1px solid #0002;background:transparent}.industry-target{font-size:12px;line-height:1.7;margin:18px 0;padding:14px;background:#f1eafa;border-left:3px solid #8962b0}.industry-target button{display:block;margin-top:10px;width:100%}.industry-tools{margin-top:20px}.industry-building{border:1px solid #cbd6c5;background:#f0f5ea;border-radius:8px;padding:16px;margin:14px 0}.industry-building .offer-footer{margin-top:0;flex-wrap:wrap}.industry-building p{font-size:12px;margin:10px 0}.industry-building .building-status{display:block;font-size:12px}.industry-building .building-actions{margin-top:12px}.industry-building .building-upkeep{font-size:11px}
.universe-summary{margin:18px 0;border:1px solid #c7cfdf;background:#eef1f8;border-radius:8px;overflow:hidden}.universe-map{height:165px;position:relative;overflow:hidden;background:#151b23;color:#fff}.universe-map>svg{position:absolute;inset:0;width:100%;height:100%;opacity:.62}.universe-map>div{position:absolute;left:20px;bottom:18px;display:grid;gap:5px;text-shadow:0 2px 6px #151d2f}.universe-map strong{font-size:38px;line-height:1}.universe-map span{font-size:12px}.universe-summary-body{padding:16px}.universe-summary-body p{font-size:12px;line-height:1.6}.universe-income{display:flex;gap:20px;margin:16px 0}.universe-income>span{display:grid;gap:5px;flex:1}.universe-income b{font-size:25px}.universe-income small{font-size:11px}.universe-summary-body .detail-link{border-bottom:0;margin-bottom:-10px}.mission-blocked{color:#903e29}.galactic-projects{margin:20px 0}.mission-card{padding:18px;background:#fbf0d8;border:1px solid #dcc58c;border-radius:8px}.mission-title{display:flex;gap:14px;align-items:center}.mission-title>.alien-portrait{width:74px;flex-shrink:0}.mission-title h3{margin:6px 0;font-size:22px;line-height:1.2}.mission-title small{font-size:11px;color:#814b7d}.mission-card>p{font-size:13px;line-height:1.55;margin:16px 0}.mission-reward{display:grid;gap:6px;background:#e3efdc;border-left:3px solid #6b934f;padding:12px;margin:16px 0}.mission-reward strong{font-size:14px}.mission-reward span{font-size:11px;line-height:1.5}.mission-progress{display:flex;flex-wrap:wrap;justify-content:space-between;font-size:12px;gap:8px}.mission-progress progress{width:100%;height:8px;accent-color:#b92d83}.mission-card>button{width:100%;background:var(--red);color:#fff;border-color:var(--red)}.mission-history{display:flex;gap:14px;margin:18px 0;padding-bottom:16px;border-bottom:1px solid var(--line)}.mission-history>span{color:#3d7534;font-weight:800}.mission-history p{font-size:12px;margin-top:6px}.customer-introductions{background:#e5efdf;padding:10px;font-size:12px;font-weight:700;margin:10px 0}
@media(max-width:760px){.tabs button span{font-size:clamp(8px,2.2vw,10px);line-height:1.2}.tabs button{padding-inline:1px}.industry-status{padding:15px}.industry-receipt{gap:8px}.industry-receipt strong{font-size:22px}.mission-card{padding:15px}.mission-title h3{font-size:20px}.mission-title>.alien-portrait{width:64px}}
.demolition-shortcut{margin:8px 0}.demolition-row{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;border:1px solid #e4c6c3;background:#fff2ec;border-radius:6px;padding:14px;margin:14px 0}.demolition-row h3{font-size:16px}.demolition-row span,.demolition-row small{display:block;font-size:12px;margin-top:6px}.energy-panel{border:1px solid #d7ce94;background:#fff9df;border-radius:8px;padding:16px;margin:18px 0}.energy-heading{display:flex;justify-content:space-between;align-items:center;gap:14px}.energy-heading h3{font-size:20px}.energy-heading>strong{font-size:21px;text-align:right}.energy-heading>strong>span{display:block;font-size:11px;font-weight:450}.energy-balance{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.energy-balance>span{display:grid;gap:6px}.energy-balance b{font-size:23px}.energy-balance small{font-size:11px}.energy-consumers{display:grid;gap:7px;font-size:12px;border-top:1px solid #0002;padding-top:14px}.energy-consumers>span{display:flex;justify-content:space-between;gap:10px}.energy-panel p{font-size:12px;line-height:1.6;margin:12px 0}.energy-target{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;margin:16px 0}.energy-target progress{width:100%;height:7px;accent-color:#8b7110}.energy-panel>.detail-link{border-bottom:0;margin-bottom:-10px}.energy-panel>button:not(.detail-link){width:100%}
.industry-sections{margin-top:14px}.industry-building-title{display:flex;align-items:center;gap:12px}.industry-building-title>.menu-icon{width:34px;height:34px;flex-shrink:0;color:#527847}.industry-building-title h3{font-size:18px}.industry-building .building-count{font-size:11px}.industry-building .building-actions{display:flex;flex-wrap:wrap;gap:8px}.industry-building .building-actions>button{flex:1;font-size:12px}.industry-building .building-actions>button:first-child{background:var(--red);border-color:var(--red);color:white}.industry-building:nth-child(2n){background:#fff4d9;border-color:#e0cf9d}.starter-line{padding:16px;background:#fff2b9;border:1px solid #e3ce73;border-radius:8px;margin-bottom:18px}.starter-line>p{font-size:12px;line-height:1.5;margin:8px 0 12px}.starter-line>button{width:100%}

.industry-building .building-actions>.danger{border:1px solid #d4bdb5;background:#fffaf5;color:#963d2f;text-decoration:none;padding:10px;min-height:44px}
.mission-jobs{margin:18px 0;padding:14px;background:#fffaf0;border:1px solid #d5bd82;border-radius:6px}.mission-jobs h4{margin:0;font-size:16px}.mission-jobs>p{font-size:12px;margin:7px 0 12px}.mission-jobs>button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;margin:8px 0;background:#fff}.mission-jobs>button>.menu-icon{color:#a13075;flex-shrink:0}.mission-jobs>button>span{display:grid;gap:4px;min-width:0;flex:1}.mission-jobs strong{font-size:13px}.mission-jobs small{font-size:11px;font-weight:450}.mission-job-done{background:#e7efde;padding:14px;border-left:3px solid #527a37;margin:16px 0}.mission-job-done strong{font-size:13px}.mission-job-done p,.mission-job-done small{font-size:12px;line-height:1.5}.job-host{width:110px;margin:0 auto 16px}.job-quote{display:grid;gap:10px;background:#fff3cc;padding:16px;border-radius:6px;margin:18px 0}.job-quote>span{font-size:12px;color:var(--muted)}.job-quote strong{font-size:16px;line-height:1.5}.salvage-odds>div{border-bottom:1px solid var(--line);padding:12px 0}.salvage-odds strong{font-size:14px}.salvage-odds p{font-size:12px;margin:6px 0 0}


.audio-volume{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;font-size:13px}.audio-volume input{width:48%;accent-color:var(--red);min-height:36px}.audio-credits{list-style:none;padding:0}.audio-credits li{padding:10px 0;border-bottom:1px solid var(--line)}.audio-credits strong,.audio-credits span{display:block}.audio-credits span{font-size:12px;color:var(--muted);margin-top:4px}

.bank-borrow{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.bank-borrow button{flex:1;min-width:120px}.bank-borrow small{display:block;margin-top:6px;font-size:10px;font-weight:500}.bank-sale{padding:16px;background:#fff2d8;border:1px solid #ddc396;border-radius:10px;margin:20px 0}.bank-sale h3{margin-top:0}.shop-sale-list{display:grid;gap:10px;margin:20px 0}.shop-sale-list button{display:flex;justify-content:space-between;gap:16px;text-align:left;padding:15px}.shop-sale-list button strong{min-width:0}.shop-sale-list button span{white-space:nowrap}

.space-map .planet-label{font-size:14px;letter-spacing:.4px;font-weight:600}.riga-note text{font:600 28px Caveat,cursive!important;letter-spacing:0!important;fill:#f0d77f!important;paint-order:stroke;stroke:#151b23;stroke-width:4px}.riga-note path{fill:none;stroke:#f0d77f;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.riga-note circle{fill:#ffdf6c;stroke:#151b23;stroke-width:1}.galaxy-art .riga-note text{font-size:34px!important}.galaxy-mini .riga-note text{font-size:42px!important}.space-destination{transition:opacity .2s}.space-destination:hover{opacity:1}.space-beacon{animation:space-beacon 3s ease-in-out infinite}.frontier-map>.solar-art,.frontier-map>.galaxy-art{height:auto;max-height:510px}.universe-map>svg{opacity:1}@keyframes space-beacon{50%{opacity:.35}}@media(max-width:600px){.space-map .planet-label{font-size:12px;letter-spacing:0}.frontier-map>.solar-art{max-height:none}.frontier-map>.galaxy-art{min-height:260px}.frontier-heading{padding:18px 18px 12px}.frontier-heading h2{font-size:26px}}@media(prefers-reduced-motion:reduce){.space-beacon{animation:none}}
/* Each desktop column ends with its content; the inspector does not stretch into an empty panel. */
@media(min-width:761px){.game-shell{align-items:start;min-height:0}.management{align-self:start;position:sticky;top:12px;max-height:calc(100svh - 24px);border-bottom:1px solid var(--line)}.management>.panel{flex:0 1 auto;min-height:0}}

.galactic-goal{padding:20px;background:#fff4c5;border:1px solid #e1d59e;border-radius:8px;margin:18px 0}.galactic-goal h3{margin-bottom:18px}.ending-check{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;margin:12px 0}.ending-check>strong{white-space:nowrap}.ending-rate{display:flex;gap:8px;align-items:baseline;margin:12px 0 6px}.ending-rate strong{font-size:24px}.ending-rate span,.galactic-goal p,.galactic-goal small{font-size:12px}.galactic-goal small{margin-top:10px;color:var(--muted)}.galactic-goal button{margin-top:16px;width:100%;background:var(--surface)}

.fleet-capacity{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-top:16px}.fleet-upgrade{margin-top:16px;padding-top:16px;border-top:1px solid #c4cede}.fleet-upgrade h4{margin:7px 0;font-size:16px;line-height:1.35}.fleet-upgrade>small,.fleet-upgrade-complete{display:block;font-size:11px;margin-top:10px}.fleet-upgrade>p{font-size:12px;color:var(--muted)}.fleet-upgrade>.route-price{margin:14px 0}.fleet-upgrade>button{width:100%;background:#fff1b2;border-color:#d7bf70}.fleet-upgrade>button:disabled{opacity:.65}

.solar-art,.galaxy-art{stroke:none;stroke-width:1;fill:none}

@media(min-width:761px){.tabs button{font-size:10px;padding-inline:1px;overflow-wrap:normal}:lang(ru) .tabs button,:lang(uk) .tabs button{font-size:9px}:lang(ru) #industry-tab,:lang(uk) #industry-tab{flex:1.25}}

/* Keep a stopped clock visible even while browsing a long page. */
.pause-banner{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:8px 28px;background:#9b124f;color:#fff;border-bottom:2px solid #202020}
.pause-banner>svg{width:24px;height:24px;flex-shrink:0}.pause-banner>span{display:flex;align-items:baseline;gap:14px;flex:1;min-width:0}.pause-banner strong{font-size:16px}.pause-banner>span>span{font-size:12px;line-height:1.4}.pause-banner button{background:#fffef9;color:#202020;border-color:#fffef9;flex-shrink:0;font-size:13px}
.dialog-pause-state{display:flex;align-items:center;gap:8px;background:#9b124f;color:#fff;padding:10px 12px;margin-bottom:16px;font-size:12px;line-height:1.4}.dialog-pause-state svg{flex-shrink:0;width:18px;height:18px}
.pause-banner[hidden],.dialog-pause-state[hidden]{display:none}
@media(max-width:760px){.pause-banner{padding:6px 12px;gap:8px}.pause-banner>span{display:block}.pause-banner strong{display:block;font-size:14px}.pause-banner>span>span{font-size:11px}.pause-banner button{font-size:12px;padding:8px 10px;max-width:45%;white-space:normal}}

.stock-recovery .empty-shop-names{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#fff1b2;border-left:4px solid #e8bf00;margin:10px 0 20px;font-size:14px;line-height:1.5}.stock-recovery .empty-shop-names svg{width:32px;height:32px;flex-shrink:0}
.stock-recovery-reason h3{font-size:17px;margin-bottom:8px}.stock-recovery-reason p{margin:0;font-size:13px;line-height:1.6}.stock-recovery-actions{display:grid;gap:10px;margin-top:24px}.stock-recovery-actions button{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;min-height:48px;white-space:normal;font-size:13px;line-height:1.4}.stock-recovery-actions button>span{min-width:0}.stock-recovery-actions button svg{flex-shrink:0}.stock-recovery-actions>.primary{width:100%;font-size:14px}.stock-recovery-actions>.primary>span:first-of-type{flex:1;text-align:left}.stock-recovery-alternatives{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.stock-recovery-footer{display:flex;justify-content:flex-end;border-top:1px solid var(--line);margin-top:20px;padding-top:8px}.stock-recovery-footer button{font-size:12px}

/* Keep daily counters from pushing the clock controls onto a different row. */
@media(max-width:760px){.trading-bar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.trading-totals{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(2,minmax(0,1fr));gap:12px;width:100%}.trading-totals span{min-width:0}.trading-totals strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.time-controls{width:100%;margin:0;justify-content:space-between;min-height:44px}.time-controls .primary{flex:none;min-width:112px}.play-timer{min-width:0}}

.wanted-stock-link{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 16px;padding:12px 16px;background:#fff3bf;border-color:#dfc950;text-align:left}.wanted-stock-link svg{width:24px;height:24px;flex:none}.wanted-stock-link>span:first-of-type{flex:1}.wanted-stock-link b{margin-left:8px}.demand-count{color:#a71360;font-weight:700;margin-top:6px}

.route-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 12px}.route-heading h2{margin:0;font-size:20px}.route-heading>span{font-size:13px;color:var(--muted)}.route-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:14px}.route-picker button{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;text-align:left;min-height:44px;font-size:11px;font-weight:600}.route-picker button small{font-size:9px;color:var(--muted);flex-shrink:0}.route-picker button[aria-pressed=true]{border-color:var(--pink);background:#fff0b8}.route-title{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #c4ccdc}.route-title>.route-art{width:60px;height:60px;flex-shrink:0;background:#151b23;border-radius:6px}.route-title h3{font-size:18px;line-height:1.2;margin:4px 0 0}.route-title span{font-size:11px;color:var(--muted)}.route-selected{scroll-margin:12px}.route-selected:focus-visible{outline:2px solid var(--pink);outline-offset:2px}.route-selected .route-body{padding:14px 16px}.route-selected .route-return{margin:0 0 10px}.route-selected .route-price{margin:10px 0}.route-selected .route-price>span{min-width:75px;padding:7px}.route-selected .route-price b{font-size:12px}.route-selected p{font-size:12px;line-height:1.5}.route-selected .route-unlock{display:grid;gap:3px;margin-top:0}.route-selected progress{width:100%;accent-color:var(--pink);height:8px;margin-bottom:12px}.route-status{display:grid;gap:4px;margin-top:0}.route-selected .quiet-button{margin-top:8px}.solar-routes+.alien-customer{margin-top:22px}@media(max-width:360px){.route-picker button{display:grid;gap:3px}.route-title{padding:12px}.route-selected .route-body{padding:12px}}

.power-saving{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:14px;border:1px solid var(--line);border-radius:8px;margin:16px 0}.power-saving>div{display:grid;gap:4px}.power-saving>div>span,.power-saving p{font-size:11px;color:var(--muted)}.power-saving p{grid-column:1/-1;margin:0;line-height:1.5}.power-saving button{font-size:12px;min-height:44px;padding:10px}.power-saving.enabled{background:#fff0b8;border-color:#d7bf70}

.route-selector{display:flex;gap:6px;align-items:stretch;margin-bottom:14px}.route-selector .route-picker{position:relative;display:flex;flex:1;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;margin:0;padding-bottom:5px}.route-selector .route-picker button{flex:0 0 145px;display:grid;align-content:center;gap:4px}.route-selector .route-arrow{flex:0 0 30px;padding:0;font-size:24px;align-self:stretch}.route-selector .route-arrow:disabled{opacity:.3}
