:root{color-scheme:dark;font-family:Segoe UI,Microsoft YaHei UI,PingFang SC,sans-serif;font-synthesis:none;--ink: #11110e;--paper: #f9edda;--muted: #cabfae;--gold: #efb861;--gold-light: #ffe1a2;--line: #ead6b338;--panel: #15140fed;--shadow: #060503b0}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}html,body,#game-shell{width:100%;height:100%;margin:0}body{overflow:hidden;background:var(--ink);color:var(--paper)}#game-shell{position:relative;isolation:isolate;overflow:hidden}#game,#game>canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}#game{background:radial-gradient(ellipse at 70% 54%,#463723,#211b14 46%,#13120f 82%)}button,kbd{font:inherit}button{color:inherit}button:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px}p,h1,h2,h3,dl,dd{margin:0}.screen{position:absolute;inset:0}.screen--intro{z-index:3;display:flex;align-items:center;padding:clamp(28px,7vw,112px);background:linear-gradient(0deg,#090806e0,#09080600 29%),linear-gradient(90deg,#0d0b08fa 1%,#12100ddf 26%,#14100d65 56%,#14100d12 87%)}.intro-content{width:min(100%,660px);margin-top:-2.5vh}.eyebrow{display:flex;align-items:center;gap:12px;color:var(--gold-light);font-weight:650;font-size:clamp(12px,1.1vw,15px);line-height:1.2;letter-spacing:.23em}.eyebrow-separator{width:18px;height:1px;background:#e9b56386}.foundry-mark{position:relative;display:inline-block;flex:none;width:23px;height:23px;background:linear-gradient(143deg,#ffe1a0 10%,#f7bd67 50%,#a85d29);clip-path:polygon(53% 4%,92% 23%,92% 71%,51% 95%,9% 75%,9% 30%)}.foundry-mark:before,.foundry-mark:after{position:absolute;inset:0;content:""}.foundry-mark:before{background:#72432290;clip-path:polygon(46% 51%,92% 23%,92% 71%,51% 95%)}.foundry-mark:after{background:#fff1ba8a;clip-path:polygon(53% 4%,92% 23%,46% 51%,9% 30%)}.screen--intro h1{margin:clamp(20px,3.4vh,42px) 0 25px;font-family:"Noto Serif SC","Source Han Serif SC",Songti SC,SimSun,Microsoft YaHei UI,serif;font-size:clamp(55px,8.2vw,122px);font-weight:900;line-height:1.04;letter-spacing:-.095em;overflow-wrap:anywhere;background:linear-gradient(130deg,var(--paper) 10%,var(--gold-light) 82%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 9px 17px #100a0580)}.intro-description{color:#ddd5c5;font-size:clamp(14px,1.4vw,19px);line-height:1.85;text-shadow:0 2px 3px #000}.language-control{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:13px;text-align:start}.language-control--intro{position:absolute;z-index:1;top:max(14px,env(safe-area-inset-top));inset-inline-end:clamp(16px,3vw,40px)}.language-control select{max-width:100%;min-height:37px;padding:6px 9px;border:1px solid var(--line);border-radius:3px;background:#19150ff2;color:var(--paper);font:inherit}.language-control select:focus-visible{outline:2px solid var(--gold-light);outline-offset:2px}:root:not(:lang(zh)) .screen--intro h1{font-family:Georgia,Segoe UI,serif;font-size:clamp(38px,7vw,98px);letter-spacing:-.055em}:root:lang(zh-TW){font-family:Segoe UI,Microsoft JhengHei UI,PingFang TC,sans-serif}:root:lang(ja){font-family:Segoe UI,Yu Gothic UI,Hiragino Sans,sans-serif}:root:lang(ko){font-family:Segoe UI,Malgun Gothic,Apple SD Gothic Neo,sans-serif}:root:lang(th){font-family:Leelawadee UI,Tahoma,sans-serif}:root:lang(ar){font-family:Segoe UI,Tahoma,sans-serif}:root:lang(ar) :is(.screen--intro h1,.dialog h2,.eyebrow,.location-name,.stat-label){letter-spacing:normal}:root:lang(ar) .screen--intro h1{font-family:inherit}:root[dir=rtl] .screen--intro{background:linear-gradient(0deg,#090806e0,#09080600 29%),linear-gradient(270deg,#0d0b08fa 1%,#12100ddf 26%,#14100d65 56%,#14100d12 87%)}.sector-track li span,.tool-slot>span,.automation-stations li{min-width:0;overflow-wrap:anywhere;white-space:normal}.tool-slot>span{text-align:center}.stat-line>:first-child{white-space:normal}.interaction-prompt,.toast{max-width:calc(100% - 32px)}:root[dir=rtl] #complete-time{direction:ltr;unicode-bidi:isolate}.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;gap:24px;padding:11px 20px;border:1px solid transparent;border-radius:3px;font-size:14px;font-weight:750;cursor:pointer;transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease;-webkit-tap-highlight-color:transparent}.button--primary{border-color:#ffda91;background:var(--gold);color:#24190c;box-shadow:0 0 29px #b8642c3b}.button--primary:hover{background:#ffce7e;box-shadow:0 0 28px #e78a455e}.button--secondary{border-color:var(--line);background:#f6ddb00c}.button--secondary:hover,.button--text:hover{border-color:#ecbd7280;background:#ffda9121}.button--text{min-height:36px;background:transparent;color:var(--muted)}.button--start{min-width:196px;min-height:54px;justify-content:space-between;margin-top:clamp(25px,4.5vh,49px);padding-inline:21px;font-size:16px}.button-arrow{position:relative;width:22px;height:2px;background:currentColor}.button-arrow:after{position:absolute;right:0;top:-3px;width:8px;height:8px;transform:rotate(45deg);border-top:2px solid currentColor;border-right:2px solid currentColor;content:""}.intro-controls,.hud-controls{position:absolute;display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;color:var(--muted);font-size:12px}.intro-controls{bottom:max(28px,env(safe-area-inset-bottom));inset-inline-start:clamp(28px,7vw,112px)}.intro-controls>span,.hud-controls>span{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}kbd{display:inline-flex;min-width:24px;min-height:21px;align-items:center;justify-content:center;padding:1px 6px;border:1px solid #f4e2c148;border-radius:3px;background:#1a1510b3;color:var(--paper);font-size:11px;font-weight:650;letter-spacing:.045em}.mobile-controls{display:none}#hud{position:absolute;inset:0;z-index:2;pointer-events:none;--hud-edge: clamp(14px, 2.3vw, 38px);--hud-top: max(var(--hud-edge), env(safe-area-inset-top));--hud-bottom: max(var(--hud-edge), env(safe-area-inset-bottom))}.hud-location{position:absolute;top:var(--hud-top);inset-inline-start:var(--hud-edge);display:flex;max-width:47%;align-items:flex-start;gap:10px;padding:9px 12px 9px 9px;border:1px solid #f8d49c20;border-radius:4px;background:#15120cd9;box-shadow:0 6px 20px #0004;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}.hud-location-icon{display:grid;flex:0 0 32px;height:32px;place-items:center;border:1px solid #f3b66840;border-radius:2px;background:#f8b65a10}.hud-location-icon .foundry-mark{width:15px;height:15px}.location-name{color:var(--gold-light);font-size:11px;line-height:12px;letter-spacing:.15em}#objective{margin-top:4px;color:var(--paper);font-size:clamp(11px,1.2vw,14px);font-weight:650;line-height:1.4}.hud-top-right{position:absolute;top:var(--hud-top);inset-inline-end:var(--hud-edge);display:flex;align-items:flex-start;gap:10px}.cast-panel,.hud-load{width:clamp(176px,19vw,256px);padding:10px 13px;border:1px solid #f8d49c29;border-radius:4px;background:#15120cdb;box-shadow:0 6px 22px #0005;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}.stat-line{display:flex;align-items:baseline;justify-content:space-between;gap:10px;white-space:nowrap}.stat-label{color:var(--muted);font-size:11px;font-weight:650;letter-spacing:.07em}.stat-line strong{color:var(--gold-light);font-family:Bahnschrift,Barlow Semi Condensed,Segoe UI,sans-serif;font-size:clamp(15px,1.7vw,21px);font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:.025em}.stat-line--minor{margin-top:6px;color:var(--muted);font-size:11px}progress{display:block;width:100%;height:4px;margin:8px 0 0;overflow:hidden;appearance:none;border:0;border-radius:20px;background:#f8d6a225;color:var(--gold)}progress::-webkit-progress-bar{border-radius:inherit;background:#f8d6a225}progress::-webkit-progress-value{border-radius:inherit;background:linear-gradient(90deg,#ac642e,#f2b963 70%,#ffd685)}progress::-moz-progress-bar{border-radius:inherit;background:linear-gradient(90deg,#ac642e,#f2b963 70%,#ffd685)}.hud-load{position:absolute;bottom:var(--hud-bottom);inset-inline-start:var(--hud-edge)}.cart-stat{margin-top:9px;padding-top:7px;border-top:1px solid #ead6b325}.cart-stat strong{color:var(--paper);font-size:14px}.icon-button{display:grid;width:44px;height:44px;place-items:center;padding:0;border:1px solid #f8d49c35;border-radius:4px;background:#15120ce8;cursor:pointer;pointer-events:auto}.icon-button:hover{border-color:#f8d49c80;background:#2c2114}.pause-button span{width:15px;height:16px;border-right:4px solid var(--gold-light);border-left:4px solid var(--gold-light)}#crosshair{position:absolute;top:50%;left:50%;width:7px;height:7px;transform:translate(-50%,-50%);border:1px solid #231b12c9;border-radius:50%;background:#fff3dc;box-shadow:0 0 5px #0009}#crosshair[data-active]:not([data-active=false]){width:11px;height:11px;border-width:2px;border-color:#ffe3a1;background:transparent;box-shadow:0 0 12px #f6bb65a0}.interaction-prompt,.furnace-progress{position:absolute;top:calc(50% + clamp(25px,6vh,65px));left:50%;display:flex;min-width:120px;max-width:min(85vw,430px);align-items:center;justify-content:center;gap:9px;padding:7px 12px 7px 7px;transform:translate(-50%);border:1px solid #eab87c53;border-radius:4px;background:#17130eed;color:var(--paper);font-size:13px;font-weight:650;text-align:center;box-shadow:0 5px 17px #0007}.interaction-prompt kbd{min-width:28px;min-height:24px;padding-inline:8px;border-color:#f8ce81;background:var(--gold-light);color:#251907;white-space:nowrap}.furnace-progress{top:calc(50% + clamp(75px,16vh,150px));flex-direction:column;gap:0;width:200px;padding:10px 14px}.toast{position:absolute;bottom:calc(var(--hud-bottom) + 72px);left:50%;max-width:min(86vw,460px);padding:8px 15px;transform:translate(-50%);border:1px solid #edbf7963;border-radius:4px;background:#16120eeb;color:var(--gold-light);font-size:13px;font-weight:600;text-align:center;box-shadow:0 6px 18px #0007}.hud-controls{inset-inline-end:var(--hud-edge);bottom:var(--hud-bottom);gap:7px 11px;padding:5px 7px;border-radius:4px;background:#15120ca1;text-shadow:0 1px 3px #000}.screen--modal{z-index:4;display:grid;align-items:center;justify-items:center;overflow:auto;padding:clamp(12px,4vw,45px);overscroll-behavior:contain;background:#110e0cc4;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.screen--cinematic{--letterbox: clamp(18px, 6.5vh, 72px);z-index:5;border-block:var(--letterbox) solid #080705}.screen--cinematic:before{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 46%,transparent 49%,#0908064d 100%);pointer-events:none;content:""}.cinematic-veil{position:absolute;inset:0;background:#080705;pointer-events:none}.cinematic-skip{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:12px;min-height:40px;padding:8px 14px;background:#13110de8;color:var(--paper)}.cinematic-caption{position:absolute;right:0;bottom:65px;left:0;color:#fff1d4;font-family:"Noto Serif SC",Songti SC,SimSun,serif;font-size:clamp(17px,2.8vw,32px);font-weight:700;text-align:center;text-shadow:0 2px 6px #100b04,0 0 28px #100b04}.dialog{width:min(100%,720px);padding:clamp(20px,4vw,40px);border:1px solid #e8b16f62;border-radius:5px;background:radial-gradient(ellipse 80% 100% at 5% 0%,#4d35243d,transparent 100%),var(--panel);box-shadow:0 22px 80px #0009}.dialog h2{color:var(--paper);font-size:clamp(27px,4vw,40px);font-weight:760;line-height:1.18;letter-spacing:-.035em}.dialog p{margin-top:9px;color:var(--muted);font-size:13px;line-height:1.55}.dialog--compact,.complete-dialog{display:grid;width:min(100%,390px);gap:10px;text-align:center}.dialog--compact h2,.complete-dialog h2{margin-bottom:10px}.shop-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:1px}.shop-credit{display:grid;min-width:86px;gap:3px;justify-items:end;padding:7px 10px;border:1px solid #edbe7738;border-radius:3px;background:#e1ab5411;color:var(--muted);font-size:10px;white-space:nowrap}.shop-credit strong{color:var(--gold-light);font-family:Bahnschrift,Segoe UI,sans-serif;font-size:25px;line-height:1;font-variant-numeric:tabular-nums}.shop-grid{display:grid}.upgrade{display:grid;overflow:hidden;border:1px solid #f0c18c33;border-radius:3px;background:#f8d6a009}.upgrade-image{position:relative;display:grid;place-items:center;border-bottom:1px solid #b7894c29;background:radial-gradient(ellipse at 50% 100%,#6a472b79,#24190f6a 60%,#12110d)}.upgrade-image>span{position:relative;display:block;color:#dfad64}.upgrade-image--bag>span{width:40px;height:38px;margin-top:9px;transform:rotate(-10deg);border:2px solid currentColor;border-radius:8px 8px 11px 11px;background:linear-gradient(120deg,#8e603443 10%,#b98a4f68),#392618}.upgrade-image--bag>span:before{position:absolute;top:-10px;right:9px;left:9px;height:10px;border:2px solid currentColor;border-radius:3px 3px 0 0;content:""}.upgrade-image--bag>span:after{position:absolute;top:6px;left:-1px;width:100%;height:1px;border-top:1px dashed currentColor;content:""}.upgrade-image--bar>span{width:62px;height:7px;transform:rotate(-37deg);border:1px solid #f0c483;border-radius:2px;background:linear-gradient(0deg,#6e462d,#ce9f69)}.upgrade-image--bar>span:after{position:absolute;top:4px;right:-1px;width:11px;height:15px;border-right:5px solid currentColor;border-bottom:5px solid currentColor;border-radius:0 0 8px;content:""}.upgrade-image--cart>span{width:49px;height:25px;margin-top:-7px;transform:skew(-8deg);border:2px solid currentColor;border-radius:2px 2px 6px 6px;background:repeating-linear-gradient(0deg,#69462a 0 5px,#442d20 6px 8px)}.upgrade-image--cart>span:before,.upgrade-image--cart>span:after{position:absolute;bottom:-10px;width:10px;height:10px;border:2px solid currentColor;border-radius:50%;background:#332414;content:""}.upgrade-image--cart>span:before{left:4px}.upgrade-image--cart>span:after{right:4px}.button--buy{width:100%;min-height:39px;padding-inline:8px;border-color:#efbd7864;background:#d59f4c29;color:var(--gold-light);font-size:12px}.button--buy:not(:disabled):hover{border-color:var(--gold-light);background:#d59f4c54}.button:disabled{border-color:#ecd7b027;background:#f5d8a60b;color:#d1c5aea8;cursor:default;box-shadow:none}.shop-close{width:100%}.complete-dialog{width:min(100%,460px)}.complete-dialog>.foundry-mark{width:39px;height:39px;margin:0 auto 5px}.complete-stats{display:grid;grid-template-columns:1.2fr 1fr .9fr;gap:5px;margin-bottom:7px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.complete-stats dt{color:var(--muted);font-size:11px}.complete-stats dd{margin-top:5px;color:var(--gold-light);font-family:Bahnschrift,Segoe UI,sans-serif;font-size:clamp(17px,5vw,27px);font-weight:650;font-variant-numeric:tabular-nums}.touch-controls{position:absolute;right:var(--hud-edge);bottom:var(--hud-bottom);left:var(--hud-edge);display:flex;direction:ltr;align-items:flex-end;justify-content:space-between}.touch-stick,.touch-button{display:grid;place-items:center;border:1px solid #f6d49869;border-radius:50%;background:#21180ebd;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.touch-stick{width:clamp(78px,19vw,106px);height:clamp(78px,19vw,106px)}.touch-stick>span{width:37%;height:37%;transform:translate(var(--stick-x, 0px),var(--stick-y, 0px));border:1px solid #ffe0a3a2;border-radius:50%;background:#e8b65c39}.touch-actions{display:flex;align-items:flex-end;gap:10px}.touch-button{width:56px;height:56px;padding:0;color:var(--paper);font-size:13px;font-weight:650}.touch-button--mine{width:67px;height:67px;border-color:#ffd08aaf;background:#715229c9}.touch-button:active{background:#d39e4dbf;color:#160f08}@media(pointer:coarse){#hud{--touch-clearance: clamp(88px, 22vw, 118px)}.desktop-controls{display:none}.mobile-controls{display:flex}.hud-load{bottom:calc(var(--hud-bottom) + var(--touch-clearance))}}@media(max-width:600px){.screen--intro{align-items:center;background:linear-gradient(0deg,#0d0b08ee,#13100ba6 63%,#18150d35),linear-gradient(90deg,#0d0b08d8,#0d0b0830)}.intro-content{margin-top:-8vh}.cast-panel,.hud-load{width:var(--mobile-panel-width);padding:7px 8px}.hud-top-right{gap:6px}.hud-location{max-width:calc(100% - var(--mobile-panel-width) - var(--hud-edge) - var(--hud-edge) - 54px);gap:6px;padding:7px 8px}.hud-location-icon{display:none}.stat-label,.stat-line--minor{font-size:10px}.stat-line strong{font-size:14px}.icon-button{width:40px;height:40px}.pause-button span{width:13px;height:14px;border-right-width:3px;border-left-width:3px}}@media(max-height:510px)and (min-width:600px){.screen--intro h1{margin-block:12px;font-size:clamp(56px,7.5vw,80px)}.intro-description{font-size:14px}.button--start{min-height:44px;margin-top:16px}.intro-controls{bottom:13px}.dialog{padding:16px 22px}}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.lobby-actions,.join-form{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}.lobby-actions{margin-top:clamp(16px,4vh,40px)}.lobby-actions .button{min-height:50px}.lobby-actions .button--start{min-width:166px;margin-top:0}.join-form{margin-top:8px}.join-form input{width:min(192px,51vw);min-width:0;min-height:44px;padding:9px 13px;border:1px solid var(--line);border-radius:3px;outline:none;background:#19150fd9;color:var(--paper);font:inherit;font-size:14px;text-transform:uppercase}.join-form input:focus{border-color:var(--gold)}.join-form input::placeholder{color:var(--muted);text-transform:none}.lobby-status,.shop-status{color:var(--gold-light);font-size:13px;line-height:1.45}.lobby-status{margin-top:10px}.lobby-status:empty,.shop-status:empty{display:none}.save-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,430px);gap:7px;margin:clamp(14px,3.7vh,30px) 0 0;padding:0;list-style:none}.automation-stations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:8px 0 0;padding:7px 0 0;border-top:1px solid #ead6b325;list-style:none;font-size:10px;text-align:center}.automation-stations li{display:grid;gap:2px;padding:3px 2px;border:1px solid #e6ba7d26;border-radius:3px;color:var(--muted)}.automation-stations strong{font-weight:700}.automation-stations li[data-active=true]{border-color:#e9b86962;background:#c6872621;color:var(--gold-light)}.save-slot{position:relative;min-width:0}.save-slot-main{display:grid;width:100%;min-height:clamp(58px,12vh,92px);align-content:center;justify-items:start;gap:3px;padding:8px clamp(8px,1.4vw,15px);border:1px solid #ead6b345;border-radius:3px;background:#1d170feb;color:var(--paper);text-align:start;cursor:pointer}.save-slot[data-save-state=ready] .save-slot-main{border-color:#edb45f79;background:linear-gradient(108deg,#49351ae8,#231a0fec)}.save-slot-main:is(:hover,:focus-visible):not(:disabled){border-color:var(--gold);background:#48351bec}.save-slot-label,.save-slot-progress{color:var(--gold-light);font-size:11px}.save-slot-restart{position:absolute;top:3px;inset-inline-end:3px;min-height:30px;padding:4px 7px;font-size:11px}.hud-location{display:grid;gap:7px}.hud-sector-main{display:flex;min-width:0;align-items:flex-start;gap:9px}.sector-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0;padding:5px 0 0;border-top:1px solid #f8d49c20;list-style:none}.sector-track li{display:grid;min-height:29px;align-content:center;justify-items:center;gap:1px;padding:3px 2px;border:1px solid #f8d49c1b;border-radius:2px;background:#f8d49c09;color:var(--muted);font-size:10px;line-height:1.2;white-space:nowrap}.sector-track small{color:#d7b780;font-size:9px;font-variant-numeric:tabular-nums}.sector-track [data-state=unlocked]{border-color:#e9b56f41;color:var(--paper)}.sector-track [data-state=current]{border-color:#f6c4798f;background:#e9a65039;color:var(--gold-light);font-weight:700}.hud-production{display:grid;width:clamp(176px,19vw,256px);grid-template-columns:minmax(0,1fr);gap:6px}.cast-panel>.stat-line:first-child{flex-wrap:wrap;gap:3px 7px}.cast-panel>.stat-line:first-child strong{font-size:clamp(14px,1.5vw,20px)}.production-rates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:7px;padding-top:7px;border-top:1px solid #f8d49c28}.production-rates>div{display:grid;gap:3px}.production-rates span,.team-panel .stat-line span,.hud-wallet .stat-line span{color:var(--muted);font-size:10px}.production-rates strong{color:var(--gold-light);font-family:Bahnschrift,Segoe UI,sans-serif;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}.team-panel{padding:6px 10px;border:1px solid #f8d49c29;border-radius:4px;background:#15120cdb;box-shadow:0 6px 18px #0005;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.team-panel .stat-line{margin-top:0}.team-panel .stat-line strong,.hud-wallet .stat-line strong{font-size:13px}#team-roster{display:flex;max-width:230px;flex-wrap:wrap;gap:3px 7px;margin:0;padding:4px 0 0;color:var(--paper);font-size:10px;list-style:none}#team-roster li{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#team-roster li:before{display:inline-block;width:5px;height:5px;margin-inline-end:4px;border-radius:50%;background:var(--gold);content:"";vertical-align:.13em}.hud-wallet{margin-top:7px;padding-top:3px;border-top:1px solid #ead6b325}.hud-wallet .stat-line{margin-top:1px}#next-upgrade{margin-top:4px;color:#d7b780;font-size:10px;line-height:1.35;overflow-wrap:anywhere}.tool-hotbar{position:absolute;bottom:var(--hud-bottom);left:50%;display:flex;gap:5px;padding:4px;transform:translate(-50%);border:1px solid #f8d49c21;border-radius:4px;background:#15120cdb;box-shadow:0 6px 22px #0005}.tool-slot{position:relative;display:grid;width:clamp(47px,5.2vw,66px);min-height:52px;align-items:end;justify-items:center;gap:3px;padding:5px 2px 3px;border:1px solid #e7c08b40;border-radius:3px;background:#f4ca840d;color:var(--gold-light);font-size:10px;cursor:pointer;pointer-events:auto;touch-action:manipulation}.tool-slot kbd{position:absolute;top:3px;left:3px;min-width:13px;min-height:14px;padding:0 2px;border-color:#f4e2c130;font-size:9px}.tool-slot[aria-pressed=true],.tool-slot:not(:disabled):hover{border-color:#f4bd68c9;background:#c58b3c3d}.tool-slot:disabled,.tool-slot[aria-disabled=true],.tool-slot[data-owned=false]{border-color:#e7c08b29;background:#f4ca8407;color:#b9a58b;cursor:default}.tool-slot:disabled .tool-icon,.tool-slot[aria-disabled=true] .tool-icon,.tool-slot[data-owned=false] .tool-icon{opacity:.63}.tool-icon{position:relative;display:inline-block;flex:none;width:29px;height:23px;background:linear-gradient(148deg,#ffe4a4,#a56631)}.tool-icon--hands{clip-path:polygon(10% 48%,25% 38%,29% 15%,39% 13%,43% 32%,49% 8%,59% 8%,62% 33%,68% 14%,77% 18%,75% 39%,83% 28%,92% 35%,86% 75%,71% 90%,34% 91%,22% 78%)}.tool-icon--bar{clip-path:polygon(10% 84%,72% 14%,89% 16%,94% 34%,87% 55%,77% 49%,83% 37%,79% 31%,19% 94%)}.tool-icon--shovel{clip-path:polygon(11% 76%,39% 56%,68% 24%,64% 17%,75% 3%,83% 3%,91% 13%,83% 27%,76% 27%,45% 63%,44% 79%,25% 96%,11% 96%,6% 84%)}.tool-icon--drill{clip-path:polygon(6% 29%,50% 21%,64% 29%,72% 38%,92% 38%,97% 48%,72% 57%,56% 61%,51% 90%,33% 90%,31% 60%,13% 60%,5% 53%)}.tool-icon--suction{clip-path:polygon(3% 25%,29% 21%,43% 32%,60% 32%,64% 10%,82% 9%,86% 31%,96% 34%,97% 70%,88% 88%,56% 89%,49% 73%,43% 53%,30% 55%,9% 50%)}.pause-room{display:grid;gap:9px;margin-top:5px;padding:10px;border:1px solid var(--line);border-radius:3px;background:#f8d49c09;color:var(--muted);font-size:12px}.pause-room>.stat-line{color:var(--gold-light)}.room-code-row{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;text-align:start}.room-code-row>div{min-width:0}.room-code-row strong{display:block;margin-top:3px;color:var(--paper);font-family:Bahnschrift,Segoe UI,monospace;font-size:19px;overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.room-code-row .button{min-height:38px;padding:6px 9px;font-size:12px;white-space:nowrap}.room-leave{color:#f1c291}.room-lobby-dialog .lobby-status{margin-top:0}.lobby-roster{display:grid;gap:5px;margin:0;padding:0;list-style:none}.lobby-roster li{padding:8px 10px;border:1px solid #f8d49c20;border-radius:3px;background:#f8d49c08;color:var(--paper);font-size:13px;text-align:start;overflow-wrap:anywhere}.lobby-roster li:before{display:inline-block;width:6px;height:6px;margin-inline-end:7px;border-radius:50%;background:var(--gold);content:"";vertical-align:.14em}.shop-dialog{display:grid;width:min(100%,800px);grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}.shop-heading,.shop-group:first-of-type,.shop-status,.shop-close{grid-column:1 / -1}.shop-group-title{display:flex;align-items:center;gap:8px;margin-bottom:6px;color:var(--gold-light);font-size:12px;font-weight:720}.shop-group-title:after{height:1px;flex:1;background:var(--line);content:""}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.shop-grid--tools{grid-template-columns:repeat(4,minmax(0,1fr))}.upgrade{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr auto;align-items:stretch;gap:0;padding:0 8px 8px}.upgrade-image{grid-row:1;width:calc(100% + 16px);height:48px;margin-inline:-8px}.upgrade-image>span{scale:.72}.upgrade-image>.tool-icon{transform:scale(1.55)}.upgrade h4{margin:7px 0 0;color:var(--gold-light);font-size:13px}.upgrade p{margin:3px 0 7px;font-size:11px}.upgrade .button--buy{grid-column:1;grid-row:4;min-height:33px;padding:5px 4px}.upgrade-image--conveyor>span{width:64px;height:23px;transform:skew(-14deg);border:2px solid currentColor;border-radius:8px;background:repeating-linear-gradient(90deg,#77532e 0 8px,#442d20 9px 12px)}.upgrade-image--smelter>span{width:39px;height:33px;border:2px solid currentColor;border-radius:13px 13px 3px 3px;background:#53331d}.upgrade-image--smelter>span:after{position:absolute;right:7px;bottom:0;left:7px;height:19px;border:1px solid #efb861;border-radius:8px 8px 0 0;background:linear-gradient(#a84b20,#ffbe5d);content:""}.dialog .shop-status{margin-top:0}@media(max-width:1150px){.hud-controls{display:none}}@media(max-width:600px){.screen--intro{padding-inline:max(16px,5vw)}.intro-content{margin-top:-4vh}.lobby-actions{gap:6px}.lobby-actions .button,.join-form .button{padding-inline:11px}.lobby-actions .button--start{min-width:143px}#hud{--mobile-panel-width: clamp(132px, 35vw, 175px)}.hud-production{width:var(--mobile-panel-width)}.cast-panel .stat-line{gap:5px}.cast-panel>.stat-line:first-child{display:grid;gap:2px}.cast-panel .stat-line strong{font-size:14px}.hud-load .load-stat .stat-line{display:grid;gap:2px}.hud-location{gap:5px}.sector-track{gap:2px}.sector-track li{min-height:23px;padding:2px 1px;font-size:9px}.sector-track small{font-size:8px}.production-rates{gap:3px}.production-rates strong{font-size:11px;white-space:normal}.team-panel{padding:5px 7px}.tool-hotbar{gap:3px;padding:3px}.tool-slot{width:44px;min-height:42px;padding-top:3px}.tool-slot .tool-icon{width:23px;height:18px}.shop-dialog{grid-template-columns:1fr;padding:14px}.shop-grid--tools{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.tool-hotbar{bottom:calc(var(--hud-bottom) + 112px)}.toast{top:calc(50% - 75px);bottom:auto}}@media(pointer:coarse){.tool-hotbar{bottom:calc(var(--hud-bottom) + var(--touch-clearance) + 119px)}.toast{top:calc(50% - 75px);bottom:auto}}@media(max-width:720px)and (pointer:coarse){.tool-hotbar{right:var(--hud-edge);bottom:calc(var(--hud-bottom) + var(--touch-clearance));left:auto;transform:none}.tool-slot{width:39px;min-height:44px}}@media(max-width:360px)and (pointer:coarse){.hud-load{width:108px;padding-inline:5px}.hud-load .stat-line{gap:4px}.hud-load .stat-line strong{font-size:12px}.hud-load .cart-stat strong,.production-rates strong{font-size:10px}.tool-hotbar{gap:2px}.tool-slot{width:32px;font-size:9px}}@media(max-width:360px)and (max-height:620px){.interaction-prompt{top:calc(50% - 47px)}.toast{top:calc(50% - 99px)}}@media(max-height:460px)and (min-width:560px)and (pointer:coarse){.tool-hotbar{right:auto;bottom:calc(var(--hud-bottom) + 10px);left:50%;transform:translate(-50%)}.toast{top:calc(50% - 68px)}}@media(max-height:440px){.screen--intro h1{margin-block:9px}.lobby-actions{margin-top:11px}.lobby-actions .button,.join-form .button,.join-form input{min-height:38px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}
