*{box-sizing:border-box}body{color:#f3efda;background:#172c29;margin:0;font-family:Segoe UI,Arial,sans-serif;overflow:hidden}#game{width:100vw;height:100vh}canvas{display:block}#hud{pointer-events:none;position:fixed;inset:0}.panel{background:#152724ed;border:1px solid #55706466;border-radius:12px;position:absolute;box-shadow:0 8px 30px #08191422}.brand{padding:20px 24px;top:28px;left:28px}.eyebrow{letter-spacing:2.5px;color:#bdc6ac;font-size:10px;font-weight:600}h1{letter-spacing:.5px;margin:10px 0 0;font-family:Georgia,serif;font-size:30px;font-weight:400}h1 span{color:#aebeb2;letter-spacing:0;margin-top:8px;font:12px Segoe UI,sans-serif;display:block}.inventory{min-width:200px;padding:20px 25px;top:28px;right:28px}.inventory>div{align-items:center;gap:16px;margin-top:12px;display:flex}.inventory strong{color:#f1cc76;font:38px Georgia,serif}.inventory div>span:last-child{color:#bcc5b5;font-size:12px;line-height:1.5}.soil-icon{color:#d6ac68;font-size:28px}.location{padding:18px 22px;top:200px;left:28px}.location p{margin:10px 0;font:20px Georgia,serif}.location>span:last-child{color:#b1bfae;font-size:12px;line-height:1.7}.interaction{text-align:center;min-width:340px;padding:15px 24px;font-size:14px;bottom:100px;left:50%;transform:translate(-50%)}.progress{background:#435448;border-radius:3px;height:3px;margin-top:12px;overflow:hidden}#progress{background:#e8c572;width:0;height:100%}.controls{white-space:nowrap;color:#bec9b8;align-items:center;gap:28px;padding:16px 24px;font-size:12px;display:flex;bottom:28px;left:50%;transform:translate(-50%)}kbd{color:#f3e8bd;border:1px solid #74867677;border-radius:4px;margin-right:3px;padding:4px 6px;font:11px Segoe UI,sans-serif;display:inline-block}#zoom{color:#d5bc7e;margin-left:6px;font-size:10px}.version{letter-spacing:2px;color:#b1c4ac80;font-size:9px;position:absolute;bottom:34px;right:28px}@media (width<=850px){.location,.version{display:none}.brand{padding:14px;top:14px;left:14px}h1{font-size:24px}.inventory{min-width:160px;padding:14px;top:14px;right:14px}.controls{gap:12px;padding:12px;bottom:14px}.interaction{bottom:76px}}@media (width<=520px){h1 span,.brand .eyebrow{display:none}.inventory{min-width:120px}.inventory strong{font-size:26px}.controls{gap:7px;font-size:10px}.controls kbd{padding:3px}.interaction{min-width:290px}}.gold-inventory{border-top:1px solid #61736466;justify-content:space-between;padding-top:12px;font-size:13px}.gold-inventory b{color:#efcc75;font-weight:500}.pan-backdrop{z-index:10;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0a1b19bd;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.pan-dialog{background:#1b302c;border:1px solid #627363;border-radius:18px;width:min(1050px,100%);max-height:95vh;padding:26px 32px;overflow:auto;box-shadow:0 25px 90px #0005}.pan-heading{border-bottom:1px solid #5e766344;justify-content:space-between;align-items:center;gap:16px;padding-bottom:16px;display:flex}.pan-heading h2{margin:8px 0 0;font:400 30px Georgia,serif}.pan-heading button{white-space:nowrap;width:auto;font-size:12px}.pan-layout{grid-template-columns:minmax(0,1fr) 275px;align-items:center;gap:30px;display:grid}.pan-stage{text-align:center;min-width:0}.pan-stage canvas{aspect-ratio:1;touch-action:none;cursor:grab;width:100%;max-width:600px;display:block}.pan-stage canvas:active{cursor:grabbing}.pan-stage p{color:#bfcbb7;margin:0 0 10px;font-size:12px}.pan-sidebar h3{margin:10px 0;font:400 24px Georgia,serif}.pan-sidebar p{color:#b7c7b5;font-size:13px;line-height:1.6}.pan-meter{color:#d1d9c4;margin-top:22px;font-size:13px;display:block}.pan-meter output{float:right;color:#e6d6a2}progress{background:#3b5147;border:0;border-radius:4px;width:100%;height:6px;margin-top:10px;display:block;overflow:hidden}progress::-webkit-progress-bar{background:#3b5147}progress::-webkit-progress-value{background:#d2b36e}#water-meter::-webkit-progress-value{background:#83b6b5}#pan-tilt{accent-color:#ddbc75;cursor:pointer;width:100%;margin:14px 0 4px}.tilt-scale{color:#96ab99;justify-content:space-between;font-size:10px;display:flex}.pan-dialog button{color:#e7ead7;cursor:pointer;background:#344c41;border:1px solid #6b8064;border-radius:7px;width:100%;margin:10px 0;padding:12px 16px;font:13px Segoe UI,sans-serif;display:block}.pan-dialog button:hover{background:#45604d}.pan-dialog .primary{color:#243b31;background:#d6b774;border-color:#d6b774;font-weight:600}.pan-dialog .primary:hover{background:#e9cb88}.pan-dialog :focus-visible{outline-offset:4px;outline:2px solid #f5d584}.pan-dialog small{color:#91a894;margin-top:12px;font-size:11px;line-height:1.6;display:block}#pan-hint{color:#e1cd9b;min-height:42px;font-size:12px}.gold-result{color:#f1cc76;margin-top:26px;font:42px Georgia,serif;display:block}#pan-result dl{margin:25px 0;font-size:13px}#pan-result dl div{border-bottom:1px solid #60735a44;justify-content:space-between;padding:12px 0;display:flex}#pan-result dd{color:#e9d8a5;margin:0}#pan-result dt{color:#afc1ad}.pan-dialog .pan-heading button{flex-shrink:0;width:auto}.pan-heading>div{min-width:0}@media (width<=750px){.pan-backdrop{padding:8px}.pan-dialog{max-height:97vh;padding:18px}.pan-heading h2{font-size:22px}.pan-heading .eyebrow{font-size:8px}.pan-layout{grid-template-columns:1fr;gap:14px}.pan-stage canvas{max-width:400px;margin:auto}.pan-sidebar{width:100%;max-width:440px;margin:auto}.pan-meter{margin-top:14px}.pan-stage p{font-size:11px}}@media (prefers-reduced-motion:reduce){.pan-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}.production-backdrop{z-index:11;background:#0c211abc;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.production-dialog{color:#e9ecd7;background:#1b302c;border:1px solid #6c8067;border-radius:16px;width:100%;max-width:1000px;max-height:94vh;padding:25px;overflow:auto}.production-dialog header{border-bottom:1px solid #61715a55;justify-content:space-between;align-items:center;gap:20px;padding-bottom:16px;display:flex}.production-dialog h2{margin:10px 0;font:27px Georgia,serif}.production-layout{align-items:center;gap:28px;display:flex}.production-layout>div{flex:1;min-width:0}.production-controls{padding:10px 0}.production-dialog canvas{aspect-ratio:560/460;width:100%;height:auto;display:block}.production-dialog label{color:#c5cfb8;margin:15px 0;font-size:13px;display:block}.production-dialog input,.production-dialog select{color:#f1e3b5;background:#304b3c;border:1px solid #738367;border-radius:5px;width:100%;margin-top:9px;padding:9px;font:15px Segoe UI;display:block}.production-dialog input[type=range]{accent-color:#d8b970;padding:0}.production-dialog button{color:#e9e5cd;cursor:pointer;background:#34523e;border:1px solid #657d5b;border-radius:7px;margin:6px 0;padding:11px 15px;font:13px Segoe UI}.production-dialog .primary{color:#243a2b;background:#d5b773;width:100%;font-weight:600}.production-dialog button:disabled{opacity:.4;cursor:not-allowed}.production-dialog :focus-visible{outline-offset:2px;outline:2px solid #efcd73}.production-dialog dl{margin:8px 0 20px;font-size:13px}.production-dialog dl div{border-bottom:1px solid #526e4e44;justify-content:space-between;padding:7px 0;display:flex}.production-dialog dd{color:#edce83;margin:0}.production-dialog .muted{color:#a9bda7;font-size:12px;line-height:1.6}.production-dialog output{float:right}.production-dialog #furnace-temperature{color:#edc87b;font:36px Georgia}.production-dialog #production-error{color:#e8a780;font-size:13px}.production-dialog #production-result{color:#ecd291;font:18px/1.6 Georgia}.workbench-backdrop{pointer-events:none;background:0 0;justify-content:flex-end;align-items:flex-end;padding-bottom:100px}.workbench-backdrop .production-dialog{pointer-events:auto;width:390px;max-height:75vh;box-shadow:0 8px 30px #07181155}.workbench-backdrop h2{font-size:22px}.workbench-backdrop header{gap:10px}.workbench-backdrop header button{font-size:11px}.inventory .resource-row{justify-content:space-between;gap:18px;margin-top:8px;font-size:11px;display:flex}.resource-row b{color:#e8ce90}.game-actions{pointer-events:auto;flex-direction:column;gap:7px;display:flex;position:absolute;bottom:28px;left:28px}.game-actions button{color:#d1d7bc;cursor:pointer;background:#223d30;border:1px solid #667b59;border-radius:5px;padding:8px}.game-actions small{color:#b6c5ac;max-width:210px;font-size:10px}.toast{z-index:30;pointer-events:none;background:#223d30;border:1px solid #d8b976;border-radius:10px;max-width:500px;padding:14px 22px;font-size:14px;position:fixed;top:150px;left:50%;transform:translate(-50%)}.toast:empty{display:none}@media (width<=800px){.production-layout{flex-direction:column;gap:5px}.production-layout>div{width:100%}.production-dialog canvas{max-height:290px}.production-dialog h2{font-size:22px}.workbench-backdrop{padding:10px 10px 80px}.game-actions{bottom:80px;left:10px}.inventory .resource-row{font-size:10px}.production-dialog header button{white-space:nowrap}}[hidden]{display:none!important}.trade-tabs{gap:10px;margin:12px 0 24px;display:flex}#equipment-shop{max-width:540px;padding:10px 0 30px}.sluice-backdrop .production-dialog{width:min(440px,94vw);max-height:90vh;overflow:auto}.sluice-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.sluice-actions input{width:100%}.sluice-actions label{font-size:12px}.sluice-backdrop progress{width:100%;margin:8px 0}#sluice-message{color:#d4bb83;font-size:13px}.sluice-backdrop dl{margin:8px 0}.sluice-backdrop dl div{justify-content:space-between;gap:8px;font-size:13px;display:flex}.sluice-backdrop dd{margin:0}#install-sluice{color:#ffe0a0}.worker-panel{z-index:10;width:355px;max-height:78vh;padding:20px;position:fixed;bottom:100px;right:20px;box-shadow:0 8px 30px #07181155}.worker-panel h2{font-size:21px}.worker-panel header{gap:6px}.worker-panel dd{text-align:right;max-width:205px}.worker-panel label{margin:8px 0}.worker-buttons{gap:8px;display:flex}.worker-panel .muted{margin-bottom:0}#worker-error{color:#e8a780;font-size:12px}@media (width<=700px){.worker-panel{width:min(340px,95vw);bottom:80px;right:8px}}.land-panel{z-index:15;width:min(530px,100vw - 48px);max-height:calc(100vh - 48px);position:fixed;top:24px;left:24px;overflow:auto;box-shadow:0 16px 60px #0008}.land-panel header{justify-content:space-between;align-items:start;gap:12px;display:flex}.land-card{border-top:1px solid #71846c55;padding:12px 0}.land-card h3{color:#ebca81;margin:8px 0}.land-ownership{color:#acd0b8;font-size:13px}.sample-table{overflow-x:auto}.sample-table table{border-collapse:collapse;width:100%;font-size:12px}.sample-table th,.sample-table td{text-align:left;border-bottom:1px solid #71846c44;padding:8px 4px}#survey-mode[aria-pressed=true]{color:#233e36;background:#d8bd7a}.game-actions{flex-wrap:wrap;max-width:calc(100vw - 32px)}@media (width<=700px){.land-panel{width:calc(100vw - 24px);max-height:calc(100vh - 24px);top:12px;left:12px}.game-actions{max-width:300px}.brand h1{font-size:20px}}.staff-row{border:1px solid #61715a66;border-radius:8px;margin:9px 0;padding:10px;font-size:12px;line-height:1.6}.staff-row.selected{background:#29463a;border-color:#d8b970}.staff-row button{margin-right:8px;padding:6px 12px;font-size:11px}.worker-panel{width:min(430px,100vw - 28px);max-height:calc(100vh - 130px)}.worker-panel summary{cursor:pointer;color:#e5c483;margin-top:20px}.worker-panel dd{text-align:right;overflow-wrap:anywhere;max-width:58%}.worker-panel header{z-index:2;background:#1b302c;padding-top:12px;position:sticky;top:-20px}.career-panel{z-index:16;width:min(430px,100vw - 48px);max-height:calc(100vh - 48px);position:fixed;top:24px;left:24px}.career-panel ol{padding:0;font-size:14px;line-height:1.5;list-style:none}.career-panel li{color:#b9c6b2;padding:7px 0}.career-panel li.done{color:#eed18c}.career-finish{width:min(600px,100vw - 40px);margin:auto}.career-finish::backdrop{background:#0c211add}.career-finish h2{line-height:1.35}#career-error{color:#e8a780}.region-panel{width:min(680px,100vw - 32px);margin:auto}.region-panel::backdrop{background:#0c211abb}.region-map{text-align:center;color:#eed29b;background:linear-gradient(135deg,#3f543b 43%,#527e7c 44% 49%,#344d36 50%);border:1px dashed #859773;border-radius:60% 20%;margin:18px 0;padding:35px 12px}.region-panel .land-card{border-bottom:1px solid #61715a55;padding:12px 0}.region-panel #region-error{color:#e8a780}.audio-panel{z-index:25;width:min(320px,100vw - 30px);max-height:85vh;position:fixed;bottom:30px;left:180px}.audio-panel input[type=checkbox]{width:auto;display:inline}.audio-panel input[type=range]{accent-color:#d5b773}@media (width<=650px){.audio-panel{bottom:90px;left:15px}}#hud .brand{width:200px;box-shadow:none;border-radius:8px;padding:10px 14px;top:14px;left:16px}#hud .brand h1{letter-spacing:.2px;margin:0;font-size:20px}#hud .location{box-shadow:none;background:0 0;border:0;margin-top:5px;padding:0;display:block;position:static}#hud .location .eyebrow{letter-spacing:.8px;color:#b8c4ad;font-size:10px;line-height:1.2}#hud .inventory{pointer-events:auto;min-width:0;box-shadow:none;border-radius:8px;justify-content:flex-end;align-items:stretch;gap:0;padding:0;display:flex;top:14px;left:232px;right:16px}#hud .inventory>.resource-chip{border-left:1px solid #72816b33;flex-direction:column;flex:1;justify-content:center;align-items:flex-start;gap:5px;margin:0;padding:11px 20px;display:flex}#hud .resource-chip>span,#hud .gold-details summary>span:first-child{text-transform:uppercase;letter-spacing:1px;color:#b7c2ac;font-size:10px;line-height:1}#hud .resource-chip b,#hud .gold-details summary b{color:#ead097;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:15px;font-weight:600}#hud .gold-details{border-left:1px solid #72816b33;flex:1;position:relative}#hud .gold-details summary{cursor:pointer;flex-direction:column;justify-content:center;gap:5px;height:100%;padding:11px 30px 11px 20px;list-style:none;display:flex}#hud .gold-details summary::-webkit-details-marker{display:none}#hud .chevron{color:#c0b78b;font-size:11px;position:absolute;top:24px;right:12px}#hud .gold-breakdown{z-index:8;background:#1b302cf5;border:1px solid #6c8067;border-radius:8px;width:250px;padding:14px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 8px 25px #0005}#hud .gold-breakdown h2{margin:0 0 12px;font-size:13px;font-weight:600}#hud .gold-breakdown .resource-row{justify-content:space-between;gap:10px;margin:8px 0;font-size:12px;display:flex}#hud #shovel-warning{color:#efc28b;background:#433e2cf0;border-radius:5px;margin:0;padding:6px 9px;font-size:11px;display:block;position:absolute;top:calc(100% + 5px);right:0}#hud .game-actions{flex-wrap:nowrap;gap:5px;width:156px;max-width:none;top:92px;bottom:auto;left:16px}#hud .game-actions button{text-align:left;background:#1b302ce8;border-color:#71806555;border-radius:6px;min-height:34px;padding:9px 11px;font-size:12px}#hud .game-actions button:hover{background:#385342;border-color:#b5b584}#hud .game-actions button#survey-mode[aria-pressed=true]{color:#263c30;background:#cfb475}#hud #save-status{opacity:.65;font-size:10px;position:fixed;bottom:12px;left:16px}#hud .interaction{white-space:normal;background:#192f29ed;border-radius:6px;min-width:0;max-width:calc(100vw - 360px);padding:8px 14px;font-size:12px;bottom:48px}#hud .progress{height:2px;margin-top:6px}#hud .controls{box-shadow:none;background:#1b302cbb;border:0;border-radius:5px;gap:18px;padding:5px 10px;font-size:10px;bottom:10px}#hud .controls kbd{padding:2px 4px;font-size:10px}#hud .context-panel{pointer-events:auto;border-radius:8px;width:264px;padding:15px;top:92px;right:16px}.context-panel h2{margin:8px 0;font:20px Georgia,serif}.context-panel p{color:#bec8b2;margin:8px 0 12px;font-size:12px;line-height:1.5}.context-panel dl{margin:10px 0;font-size:12px}.context-panel dl>div{border-top:1px solid #6d7d6133;justify-content:space-between;gap:12px;padding:7px 0;display:flex}.context-panel dd{color:#e0c58d;text-align:right;margin:0}.context-panel button{color:#233b30;cursor:pointer;background:#c6ad73;border:1px solid #b69e68;border-radius:5px;width:100%;padding:9px;font:600 12px Segoe UI}#hud :focus-visible{outline-offset:3px;outline:2px solid #e0c683}:is(.production-backdrop:has(#production-title),.sluice-backdrop,.production-backdrop:has(#store-stock)){pointer-events:none;background:0 0;justify-content:flex-end;align-items:flex-start;width:380px;padding:0;inset:92px 16px 48px auto}:is(.production-backdrop:has(#production-title)>.production-dialog,.sluice-backdrop>.production-dialog,.production-backdrop:has(#store-stock)>.production-dialog){pointer-events:auto;border-radius:9px;width:100%;max-height:100%;padding:16px;box-shadow:0 12px 35px #07181155}.production-backdrop:has(#production-title) .production-layout{flex-direction:column;align-items:stretch;gap:8px;display:flex}.production-backdrop:has(#production-title) .production-layout>div{flex:auto;width:100%}.production-backdrop:has(#production-title) canvas{object-fit:contain;max-height:220px}:is(.production-backdrop:has(#production-title) h2,.sluice-backdrop h2){margin:4px 0;font-size:21px}:is(.production-backdrop:has(#production-title) header,.sluice-backdrop header){gap:10px;padding-bottom:10px}:is(.production-backdrop:has(#production-title) .eyebrow,.sluice-backdrop .eyebrow){letter-spacing:1px;font-size:9px}.production-dialog button{padding:8px 11px;font-size:12px}.production-dialog label{margin:10px 0;font-size:12px}.production-dialog input,.production-dialog select{margin-top:5px;padding:7px;font-size:13px}.production-dialog .trade-tabs{gap:5px;margin:10px 0}.trade-tabs button{flex:1;padding:8px 5px}.production-dialog #production-result{font-size:15px}.production-dialog #furnace-temperature{font-size:26px}.worker-panel{border-radius:9px;width:380px;max-height:calc(100vh - 140px);padding:16px;top:92px;bottom:auto;right:16px}.worker-panel header{top:-16px}.audio-panel{z-index:22!important;width:330px!important;max-height:calc(100vh - 110px)!important;padding:18px!important;inset:92px auto auto 184px!important}.audio-panel h2{font-size:22px}.audio-panel input[type=checkbox]{width:auto;margin-right:7px;display:inline}.audio-panel #new-game{color:#e2c7a2;background:#443b30;border-color:#897453;width:100%;margin-top:20px;display:block}.career-panel{width:350px!important;max-height:calc(100vh - 110px)!important;padding:18px!important;top:92px!important;bottom:auto!important;left:184px!important}.career-panel h2{font-size:22px}.land-panel{max-height:calc(100vh - 110px);top:92px;left:184px}.toast{max-width:420px;padding:10px 15px;font-size:12px;top:84px}@media (width<=1000px){#hud .brand{width:172px}#hud .brand h1{font-size:18px}#hud .inventory{left:200px}#hud .inventory>.resource-chip{padding:11px 10px}#hud .gold-details summary{padding-left:10px}#hud .context-panel{width:235px}#hud .interaction{max-width:calc(100vw - 320px)}}@media (width<=760px){#hud .brand{width:auto;padding:7px 10px;top:8px;left:8px}#hud .brand h1{font-size:16px}#hud .brand .location{display:none}#hud .inventory{top:50px;left:8px;right:8px}#hud .inventory>.resource-chip{padding:8px}#hud .gold-details summary{padding:8px 18px 8px 8px}#hud .resource-chip b,#hud .gold-details summary b{font-size:12px}#hud .resource-chip>span,#hud .gold-details summary>span:first-child{font-size:9px}#hud .game-actions{width:134px;top:110px;left:8px}#hud .context-panel{width:210px;padding:12px;top:110px;right:8px}:is(.production-backdrop:has(#production-title),.sluice-backdrop,.production-backdrop:has(#store-stock)){width:min(380px,100vw - 16px);top:110px;right:8px}.worker-panel{width:min(380px,100vw - 16px);max-height:calc(100vh - 160px);top:110px;right:8px}.audio-panel,.career-panel{width:min(350px,100vw - 16px)!important;max-height:calc(100vh - 125px)!important;top:110px!important;left:8px!important}#hud .interaction{width:max-content;max-width:calc(100vw - 16px)}#hud .controls{gap:8px}#save-status{display:none}}.production-dialog .stock-details,.production-dialog .market-details{border-bottom:1px solid #6c806733;margin:8px 0;padding:5px 0 10px}.production-dialog .stock-details summary,.production-dialog .market-details summary{cursor:pointer;color:#c5c9ad;font-size:12px}:is(.production-backdrop:has(#production-title)>.production-dialog>header,.sluice-backdrop>.production-dialog>header,.production-backdrop:has(#store-stock)>.production-dialog>header){z-index:2;background:#1b302c;padding-top:8px;position:sticky;top:-16px}.production-dialog header button{white-space:nowrap;flex-shrink:0}.production-backdrop:has(#production-title) .production-controls{padding-top:0}.land-panel.production-dialog{width:350px;padding:16px;font-size:12px}.land-panel.production-dialog header{z-index:2;background:#1b302c;align-items:center;padding:8px 0 10px;position:sticky;top:-16px}.land-panel.production-dialog h2{margin:0;font-size:21px}.land-panel.production-dialog .land-card{padding:10px 0}.land-panel.production-dialog h3{margin:0 0 5px;font-size:15px}.land-panel.production-dialog dl{margin:7px 0}.land-panel.production-dialog dl div{padding:3px 0}.land-panel.production-dialog p{margin:7px 0;font-size:11px;line-height:1.45}.land-panel.production-dialog #land-error:empty{display:none}#hud-jar{float:left;width:32px;height:38px;margin-right:6px}.weighing-dialog{max-width:1060px}.weigh-layout{grid-template-columns:minmax(0,720px) 230px;gap:24px;display:grid}.weigh-layout canvas{touch-action:none;cursor:grab;border-radius:12px;width:100%}.weigh-layout aside{flex-direction:column;gap:12px;display:flex}.weigh-layout select{color:#eadbb2;background:#294438;width:100%;padding:8px;display:block}#weigh-reading{color:#ddd18b;font:28px monospace}#weigh-history{max-height:180px;overflow:auto}@media (width<=800px){.weigh-layout{grid-template-columns:1fr}.weigh-layout aside{gap:6px}}#gold-storage{min-width:280px;max-height:300px;overflow-y:auto}.gold-object-row{border-top:1px solid #91a18730;align-items:center;gap:8px;padding:3px 0;display:flex}.gold-object-row span{flex:1;font-size:12px}.gold-object-row button{padding:5px 7px;font-size:11px}.gold-object-row canvas{flex:0 0 44px}#clean-gold-canvas{width:100%;max-width:420px}#hud .gold-breakdown{width:320px;max-width:calc(100vw - 32px)}#gold-storage button{color:#e7dfbf;cursor:pointer;background:#304b3e;border:1px solid #6c8067;border-radius:5px;padding:6px 8px}#gold-storage button:disabled{opacity:.6;cursor:default}#gold-storage h3{margin:14px 0 8px;font-size:13px}@media (width>=761px){#hud .brand{width:184px;padding:8px 12px}#hud .brand h1{font-size:19px}#hud .location{margin-top:3px}#hud .inventory{background:#182e2af7;border-color:#71866b88;height:62px;left:216px}#hud .inventory>.resource-chip{border-color:#81937555;gap:4px;padding:7px 16px}#hud .gold-details{border-color:#81937555;flex:1.35}#hud .gold-details summary{gap:4px;padding:7px 24px 7px 47px;position:relative}#hud-jar{float:none;width:32px;height:38px;margin:0;position:absolute;top:10px;left:9px}#hud .chevron{top:24px;right:9px}#hud .game-actions{gap:5px;width:144px;top:86px}#hud .game-actions button{background:#1b302cf5;border-color:#81937566;min-height:30px;padding:7px 10px}#hud .context-panel{background:#1b302cf7;border-color:#81937588;width:244px;padding:11px 12px;top:86px}:is(.production-backdrop:has(#production-title),.sluice-backdrop,.production-backdrop:has(#store-stock)){width:352px;top:86px}:is(.production-backdrop:has(#production-title)>.production-dialog,.sluice-backdrop>.production-dialog,.production-backdrop:has(#store-stock)>.production-dialog){padding:12px}.worker-panel{width:352px;max-height:calc(100vh - 126px);padding:12px;top:86px}.audio-panel,.career-panel{padding:14px!important;top:86px!important;left:172px!important}.land-panel{top:86px;left:172px}}.context-panel h2{overflow-wrap:anywhere;margin:5px 0;font-size:18px}.context-panel p{color:#c9d1bf;margin:5px 0 8px;line-height:1.35}.context-panel dl{margin:7px 0}.context-panel dl>div{gap:8px;padding:5px 0}.context-panel dt{color:#c3cebb}.context-panel button{padding:7px}.production-dialog label{margin:7px 0}.production-dialog input,.production-dialog select{margin-top:3px;padding:6px}.production-dialog button{padding:7px 9px}.production-dialog .trade-tabs{margin:7px 0}.worker-panel .staff-row{margin:4px 0;padding:5px}#hud .interaction{color:#f3e9c9;background:#172e28fa;border-color:#91a18099;padding:6px 10px;font-size:13px}#status kbd{color:#20392e;background:#c6ad73;border-color:#dac58f;margin-right:5px;padding:2px 5px;font-weight:700}#hud .controls{color:#cbd3bf;background:#1b302cf0;gap:14px}#hud .gold-breakdown{background:#1b302cfa;width:310px;max-height:calc(100vh - 100px);padding:10px;overflow:auto}#gold-storage{min-width:0;max-height:260px}#gold-storage-error:empty{display:none}.gold-object-row{gap:5px}.gold-object-row canvas{flex-basis:32px;width:32px;height:41px}#hud .resource-chip>span,#hud .gold-details summary>span:first-child{color:#c7d0ba;letter-spacing:.5px}.sluice-backdrop>.equipment-dialog{flex-direction:column;max-height:100%;padding:12px;display:flex;overflow:hidden}.sluice-backdrop>.equipment-dialog>header{flex:none;align-items:flex-start;padding:0 0 8px;position:static}.equipment-dialog header h2{font-size:20px}.equipment-dialog #machine-state{color:#d4d9c3;margin:4px 0;font-size:12px;line-height:1.3}.equipment-summary{justify-content:space-between;gap:8px;padding:6px 0;font-size:11px;display:flex}.equipment-summary span{flex-direction:column;gap:4px;display:flex}.equipment-summary b{color:#e5cd96;font-size:13px}.equipment-tabs{flex:none;gap:4px;margin:8px 0;display:flex}.equipment-tabs button{flex:1;padding:7px 3px!important;font-size:11px!important}.equipment-tabs [aria-pressed=true]{color:#20392e;background:#c6ad73;border-color:#e1c68e}.equipment-body{min-height:0;padding-right:3px;overflow-y:auto}.equipment-body [hidden]{display:none!important}.equipment-body .sluice-actions{flex-wrap:wrap;gap:6px;margin:7px 0;display:flex}.equipment-body .sluice-actions label{justify-content:space-between;align-items:center;gap:10px;width:100%;margin:0;display:flex}.equipment-body input{width:90px;margin:0}.equipment-body .sluice-actions button{flex:1;min-width:120px}.equipment-body .action-reason{color:#bbc6b2;flex-basis:100%;font-size:11px;line-height:1.2;display:block}.equipment-pump{flex-wrap:wrap;gap:6px;margin:10px 0;display:flex}.equipment-pump button{flex:1}.equipment-pump .stop-pump{color:#f0debc;background:#574438;border-color:#a78a68}.equipment-body p{margin:8px 0;font-size:12px;line-height:1.4}.equipment-body h3{margin:12px 0 5px;font-size:14px}.equipment-body button:disabled{opacity:.55;cursor:default}.fuel-stocks{border-block:1px solid #81937544;padding:7px 0}.equipment-body [data-page="0"] .sluice-actions,.equipment-body [data-page="0"] .equipment-pump{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:6px 0;display:grid}.equipment-body [data-page="0"] .sluice-actions label{grid-column:1/-1}.equipment-body [data-page="0"] .sluice-actions button{min-width:0}.equipment-body [data-page="0"] .action-reason{display:none}.equipment-body [data-page="0"] button{min-height:32px;padding:7px 6px;line-height:1.25}.equipment-body [data-page="0"] .fuel-stocks{margin:6px 0;padding:5px 0}.equipment-body #sluice-message{margin:6px 0;font-size:11px}.processing-menu{width:380px;max-width:calc(100vw - 32px)}.processing-menu>button{width:100%;margin:5px 0}.processing-menu h2{font-size:20px}#mobile-controls{z-index:8;pointer-events:none;position:fixed;inset:0}#mobile-controls button,#mobile-stick{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none}#mobile-controls button{color:#f0dfad;background:#29483de8;border:1px solid #b6ad77;border-radius:14px;min-height:46px;padding:10px 16px;font:16px sans-serif}#mobile-stick{left:max(20px,env(safe-area-inset-left));bottom:max(20px,env(safe-area-inset-bottom));background:#203d3388;border:2px solid #b6ad7788;border-radius:50%;place-items:center;width:112px;height:112px;display:grid;position:absolute}#mobile-stick span{pointer-events:none;background:#c5b47dbb;border-radius:50%;width:44px;height:44px}#mobile-action{right:max(24px,env(safe-area-inset-right));bottom:max(30px,env(safe-area-inset-bottom));width:72px;height:72px;position:absolute;border-radius:50%!important;font-size:26px!important}#mobile-placement{gap:12px;display:flex;position:absolute;bottom:20px;right:20px}.mobile-orientation{display:none}@media (pointer:coarse){body{overscroll-behavior:none}#game canvas{touch-action:none}button,select,summary{touch-action:manipulation}button,select,input{min-height:42px}#hud .brand,#hud .controls,#hud #save-status{display:none}#hud .inventory{top:env(safe-area-inset-top,0px);left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);height:52px}#hud .inventory>.resource-chip{padding:5px 8px}#hud .gold-details summary{padding:5px 18px 5px 8px}#hud .resource-chip b,#hud .gold-details summary b{font-size:12px}#hud .resource-chip>span,#hud .gold-details summary>span:first-child{font-size:9px}#hud .game-actions{top:calc(56px + env(safe-area-inset-top));left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));flex-direction:row;width:auto;max-height:46px;display:flex;overflow-x:auto}#hud .game-actions button{white-space:nowrap;flex-shrink:0;min-height:42px}#hud .context-panel{display:none}#hud .interaction{bottom:max(8px,env(safe-area-inset-bottom));max-width:calc(100vw - 270px);padding:5px 8px;font-size:11px}#hud .gold-breakdown{max-width:calc(100vw - 16px);max-height:calc(100dvh - 65px);position:fixed;top:54px;right:8px;overflow:auto}:is(.pan-backdrop,.production-backdrop,.production-backdrop:has(#production-title),.sluice-backdrop,.production-backdrop:has(#store-stock),.workbench-backdrop){width:auto;padding:max(5px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));pointer-events:auto;background:#102a24e8;justify-content:center;align-items:center;inset:0}.pan-dialog,.production-dialog,.sluice-backdrop>.production-dialog,.workbench-backdrop .production-dialog{overscroll-behavior:contain;border-radius:10px;width:100%;max-width:100%;max-height:calc(100dvh - 16px);padding:10px;overflow:auto}.production-backdrop:has(#production-title)>.production-dialog{overscroll-behavior:contain;border-radius:10px;width:100%;max-width:100%;max-height:calc(100dvh - 16px);padding:10px;overflow:auto}.worker-panel,.land-panel,.audio-panel,.career-panel{z-index:22;top:max(8px,env(safe-area-inset-top))!important;left:max(8px,env(safe-area-inset-left))!important;width:calc(100vw - 32px)!important;max-height:calc(100dvh - 24px)!important;bottom:auto!important;right:8px!important}.pan-heading{gap:8px;padding-bottom:4px}.pan-heading h2{margin:2px 0;font-size:18px}.pan-heading .eyebrow{display:none}.pan-heading button{width:auto;min-width:100px;margin:0}.pan-layout{grid-template-columns:minmax(0,1fr) 230px;align-items:start;gap:10px}.pan-stage canvas{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 80px);margin:auto}.pan-stage p,.pan-sidebar h3,.pan-sidebar .eyebrow,.pan-sidebar #pan-controls>p:not(#pan-hint),.pan-sidebar #pan-controls>small{display:none}.pan-sidebar p{margin:5px 0;font-size:11px;line-height:1.3}.pan-meter{margin-top:7px;font-size:11px}.pan-meter progress{margin-top:4px}.pan-dialog button{min-height:42px;margin:5px 0;padding:8px}.phone-pan select{color:#eadbb2;background:#29483d;border:1px solid #6b8064;border-radius:5px;width:100%}.phone-pan label{align-items:center;gap:6px;font-size:12px;display:flex}.phone-pan input{width:100%;min-width:0}.phone-pan small{font-size:10px;display:block}.weigh-layout{grid-template-columns:minmax(0,1fr) 220px;gap:10px}.production-dialog button{min-height:42px}.production-dialog canvas{touch-action:none}.toast{max-width:65vw;padding:6px 10px;font-size:11px;top:100px}@media (orientation:portrait){.mobile-orientation{color:#e6d7ad;font-size:11px;display:block;position:absolute;bottom:145px;left:20px}.pan-layout,.weigh-layout{grid-template-columns:1fr}.pan-stage canvas{max-height:48dvh}.pan-sidebar{width:100%}#hud .interaction{max-width:calc(100vw - 180px);bottom:130px}}.pan-dialog .pan-heading{padding-bottom:3px}.pan-dialog .pan-heading button{min-height:38px;margin:0;padding:6px 10px}.pan-layout{grid-template-columns:minmax(0,1fr) 310px;gap:8px}#pan-controls{grid-template-columns:1fr 1fr;gap:5px 8px;display:grid}.phone-pan{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:4px 6px;display:grid}.phone-pan select,.phone-pan label,.phone-pan small{grid-column:1/-1}.phone-pan label{height:30px;margin:0}.pan-dialog .phone-pan button{min-height:40px;margin:0;padding:4px 6px;font-size:11px;line-height:1.15}#pan-controls .pan-meter{margin:0;font-size:11px}#pan-controls progress{height:4px;margin-top:3px}#pan-controls #pan-hint{grid-column:1/-1;min-height:26px;margin:0;font-size:10px;line-height:1.2}#pan-controls>button{min-height:40px;margin:0;padding:5px;font-size:12px}.pan-stage canvas{max-height:calc(100dvh - 72px)}.weigh-layout{grid-template-columns:minmax(0,1fr) 250px;align-items:start;gap:8px}.weigh-layout aside{grid-template-columns:1fr 1fr;gap:4px 8px;font-size:11px;display:grid}.weigh-layout aside label{min-width:0;margin:0}.weigh-layout select{min-height:36px;padding:4px;font-size:12px}.weigh-layout aside button{min-height:40px;margin:0;padding:4px;font-size:11px}.weigh-layout aside p{margin:2px 0;font-size:11px}.weigh-layout aside small{display:none}#weigh-hint,#weigh-reading,#weigh-confirm,#weigh-result{grid-column:1/-1}#weigh-reading{font-size:22px}.production-backdrop:has(#furnace-canvas) .production-layout{grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:10px;display:grid}.production-backdrop:has(#furnace-canvas) .production-layout>div{width:100%;min-width:0}.production-backdrop:has(#furnace-canvas) canvas{object-fit:contain;max-height:calc(100dvh - 85px)}.production-backdrop:has(#furnace-canvas) header{padding:0 0 4px}.production-backdrop:has(#furnace-canvas) header .eyebrow{display:none}.production-backdrop:has(#furnace-canvas) h2{margin:0;font-size:18px}.production-backdrop:has(#furnace-canvas) .production-layout>div>p.muted{display:none}.production-backdrop:has(#furnace-canvas) label{margin:4px 0;font-size:11px}.production-backdrop:has(#furnace-canvas) button{min-height:38px;margin:3px 0;padding:5px 8px}:is(.production-backdrop:has(#furnace-canvas) input,.production-backdrop:has(#furnace-canvas) select){min-height:32px;margin-top:3px;padding:4px}.production-backdrop:has(#furnace-canvas) p{margin:4px 0;font-size:11px;line-height:1.25}.production-backdrop:has(#furnace-canvas) .stock-details{margin:2px 0;padding:3px 0}@media (orientation:portrait){.pan-layout,.weigh-layout{grid-template-columns:1fr}.production-backdrop:has(#furnace-canvas) .production-layout{grid-template-columns:1fr}.pan-stage canvas{max-height:35dvh}:is(.weigh-layout canvas,.production-backdrop:has(#furnace-canvas) canvas){object-fit:contain;max-height:32dvh}}.pan-backdrop:has(#pan-canvas){background:#1b302c;align-items:stretch;padding:0}.pan-dialog:has(#pan-canvas){width:100%;height:100dvh;max-height:100dvh;padding:max(4px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border:0;border-radius:0;grid-template-rows:auto minmax(0,1fr);gap:3px;display:grid;overflow:hidden}.pan-dialog:has(#pan-canvas) .pan-heading h2{font-size:15px}.pan-dialog:has(#pan-canvas) .pan-heading button{min-height:34px;padding:4px 8px;font-size:11px}.pan-dialog:has(#pan-canvas) .pan-layout{grid-template-columns:minmax(0,1fr) 270px;align-items:stretch;gap:5px;min-height:0}.pan-stage{place-items:center;min-width:0;min-height:0;display:grid;container-type:size}.pan-dialog .pan-stage canvas{aspect-ratio:1;max-width:none;height:auto;max-height:none;margin:0;width:min(100cqw,100cqh)!important}.pan-sidebar{min-height:0;overflow:auto}#pan-controls{gap:3px 6px}.phone-pan{gap:2px 5px}.phone-pan select{min-height:32px;font-size:11px}.pan-dialog .phone-pan button{min-height:34px;padding:3px 5px;font-size:10px}.phone-pan label{height:26px;font-size:11px}.phone-pan input{min-height:24px}.phone-pan small{min-height:12px;font-size:9px;line-height:1.1}#pan-controls .pan-meter{font-size:10px}#pan-controls #pan-hint{min-height:22px;font-size:9px}#pan-controls>button{min-height:36px;font-size:11px}@media (orientation:portrait){.pan-dialog:has(#pan-canvas) .pan-layout{grid-template-rows:minmax(0,1fr) auto;grid-template-columns:1fr}.pan-sidebar{max-height:46dvh}}}
