*{box-sizing:border-box}:root{font-family:system-ui,Yu Gothic,sans-serif;color:#e3edf2;background:#081118;color-scheme:dark;font-size:16px}body{margin:0;width:100vw;height:100dvh;overflow:hidden}button,input,select{font:inherit}button{border:1px solid #ad8b58;border-radius:4px;padding:10px 16px;background:#efbb77;color:#13232c;cursor:pointer;margin:4px}button:disabled{opacity:.45;cursor:default}button.secondary{background:#263e4c;color:#eff8fc;border-color:#577381}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #8cf5ff;outline-offset:2px}input{width:5em;max-width:100%;padding:8px}select{padding:6px}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:24px}h2{font-size:26px;margin-top:0}h3{font-size:18px}[hidden]{display:none!important}header{display:flex;justify-content:space-between;padding:20px}.eyebrow{color:#efbb77;letter-spacing:.2em}.edition{color:#91adbe}.intro{max-width:700px;margin:5vh auto;padding:24px}.intro h2{font-size:clamp(28px,5vw,54px)}body:has(#game:not([hidden])) header{display:none}#game{height:100dvh;width:100vw;display:flex;align-items:center;justify-content:center}.viewport{position:relative;width:min(100vw,177.777778dvh);aspect-ratio:16/9}.viewport>canvas{display:block;width:100%;height:100%}.hud{position:absolute;background:#081118c9;border-radius:4px;padding:7px;font-size:13px;pointer-events:none;margin:0}.resources{top:8px;left:8px;width:190px}.resource{display:grid;grid-template-columns:35px 1fr;gap:0 6px}.resource meter{grid-column:1/3;width:100%;height:6px}.resource output{grid-column:2;grid-row:auto;text-align:right;font-variant-numeric:tabular-nums}.resource label{grid-column:1;grid-row:auto}.resource meter{order:3}.resource output{order:2}.resource label{order:1}.depth{top:8px;right:8px;text-align:right}.scan{bottom:8px;left:8px;max-width:30%}.objective{bottom:8px;right:8px;max-width:33%;text-align:right}.target{bottom:8px;left:32%;max-width:34%;text-align:center}.notifications{position:absolute;top:8px;left:29%;width:42%;pointer-events:none;text-align:center;font-size:13px}.notifications p{background:#142937e6;margin:0 0 4px;padding:4px}.notifications p:empty{display:none}#pause-button{position:absolute;right:8px;top:95px;padding:3px 10px;font-size:16px}.menu-panel,.pause-panel{position:fixed;z-index:10;top:50%;left:50%;transform:translate(-50%,-50%);width:min(800px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;background:#142733;border:1px solid #5f7e8c;border-radius:8px;box-shadow:0 0 0 100vmax #0009;padding:24px}.pause-panel{z-index:11}.inventory-table{width:100%;border-collapse:collapse;font-size:14px}.inventory-table th,.inventory-table td{padding:10px 4px;border-bottom:1px solid #3a5563;text-align:left;overflow-wrap:anywhere}.equipment-card{padding:16px 0;border-bottom:1px solid #3a5563}.equipment-card p{margin:8px 0}.menu-panel>button{margin:5px}.hint{color:#afc3cb;font-size:14px}@media(max-width:600px){.hud{font-size:10px;padding:3px}.resources{width:115px;top:3px;left:3px}.resource{grid-template-columns:25px 1fr}.depth{top:3px;right:3px}.notifications{top:58px;left:20%;width:60%;font-size:10px}.scan,.target,.objective{bottom:3px}.scan{left:3px}.objective{right:3px}.menu-panel,.pause-panel{padding:16px}#pause-button{top:55px;right:3px;font-size:12px;padding:1px 6px}.inventory-table{font-size:12px}.inventory-table input{width:4em}header{padding:12px}.intro{padding:20px;margin:0}}#retry-save{position:absolute;z-index:12;top:45%;left:50%;transform:translate(-50%);max-width:90%}#title{max-height:calc(100dvh - 110px);overflow:auto}#title label{display:block;margin:12px 0}#title label input{margin-left:12px;width:12em}#title input[type=checkbox]{width:auto}.map-panel .map-canvas{display:block;width:auto;height:min(29dvh,220px);max-width:100%;margin:0 auto}.map-panel h2{margin-bottom:4px}.map-panel p{font-size:12px;margin:4px 0}.map-panel button{padding:6px 10px;font-size:14px}:root{--ui-scale:1}button,input,select{max-width:100%}.menu-panel,.pause-panel,#title{font-size:calc(16px * var(--ui-scale))}.menu-panel h2,.pause-panel h2{font-size:1.5em}.inventory-table,.hint,.equipment-card p,.map-panel p{font-size:inherit}.inventory-table{table-layout:fixed}.inventory-table input{min-width:0;width:100%}.inventory-table td{word-break:normal}.hud,.notifications{font-size:calc(13px * var(--ui-scale))}.resources{width:min(240px,45%)}.resource{grid-template-columns:2.4em 1fr}.depth{max-width:48%;overflow-wrap:anywhere}.target{bottom:17%;left:30%;max-width:40%}.scan{max-width:38%}.objective{max-width:42%}.notifications{left:30%;width:40%}.notifications.telegraph{visibility:hidden}#interaction-hint{top:22%;left:50%;transform:translate(-50%);max-width:75%;text-align:center}#return-hint{left:8px;max-width:45%}#touch-warning{z-index:4;left:15%;bottom:220px;width:70%;text-align:center;border:3px dashed #ffe69f;background:#18252ee8}#pause-button{min-width:52px;min-height:52px}#settings-panel,#history-panel{z-index:30}#settings-panel label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0;flex-wrap:wrap}#settings-panel fieldset{min-width:0;padding:12px}#settings-panel input[type=checkbox]{width:24px;height:24px}#settings-panel summary{padding:14px;cursor:pointer}#settings-panel select{max-width:100%}.high-contrast{color:#fff;background:#000}.high-contrast .hud,.high-contrast .notifications p,.high-contrast .menu-panel,.high-contrast .pause-panel{background:#000;color:#fff;border:2px solid #fff}.high-contrast button{background:#fff29a;color:#000;border:2px solid #fff}.high-contrast meter{accent-color:#ffff00}.high-contrast .hint{color:#fff}#touch-controls{position:absolute;inset:0;pointer-events:none;z-index:3}#touch-controls button{position:absolute;pointer-events:auto;touch-action:none;user-select:none;min-width:52px;min-height:52px;margin:0;background:#173342b3;color:#fff;border:2px solid #e5daab;white-space:pre-line;line-height:1.8}#touch-controls [data-touch-action=move],#touch-controls [data-touch-action=drill]{width:156px;height:156px;border-radius:50%;bottom:8px}#touch-controls [data-touch-action=move]{left:8px}#touch-controls [data-touch-action=drill]{right:8px}#touch-controls [data-touch-action=scan]{left:calc(50% - 84px);bottom:12px}#touch-controls [data-touch-action=interact]{left:calc(50% - 26px);bottom:12px}#touch-controls [data-touch-action=use]{left:calc(50% + 32px);bottom:12px}#touch-controls [data-touch-action=map]{left:calc(50% - 56px);bottom:70px}#touch-controls [data-touch-action=cargo]{left:calc(50% + 2px);bottom:70px}.touch-ui button,.touch-ui input,.touch-ui select,.touch-ui summary{min-height:52px;min-width:52px}.touch-ui .viewport{width:100vw;height:100dvh;aspect-ratio:auto}.touch-ui .scan,.touch-ui .objective{bottom:170px;max-width:46%}.touch-ui .target{bottom:230px}.touch-ui .notifications{top:110px;left:25%;width:50%}.touch-ui #pause-button{top:80px}.touch-ui #interaction-hint{top:26%}@media(orientation:portrait){.viewport{width:100vw;height:100dvh;aspect-ratio:auto}.hud{padding:5px}.notifications{top:130px;left:15%;width:70%}.target{left:15%;max-width:70%;bottom:22%}.scan,.objective{max-width:48%}.touch-ui #touch-controls [data-touch-action=scan],.touch-ui #touch-controls [data-touch-action=interact],.touch-ui #touch-controls [data-touch-action=use]{bottom:170px}.touch-ui #touch-controls [data-touch-action=map],.touch-ui #touch-controls [data-touch-action=cargo]{bottom:8px}.touch-ui #touch-controls [data-touch-action=map]{left:calc(50% - 26px)}.touch-ui #touch-controls [data-touch-action=cargo]{left:calc(50% - 26px);bottom:66px}.touch-ui .scan,.touch-ui .objective{bottom:230px}.touch-ui .target{bottom:330px}.touch-ui #touch-warning{bottom:290px}.touch-ui #interaction-hint{top:25%}}@media(max-width:600px){.resource{grid-template-columns:2.3em 1fr}.menu-panel,.pause-panel{padding:12px}.inventory-table th,.inventory-table td{padding:8px 2px}.menu-panel>button{margin:4px 2px}.map-panel button{font-size:inherit}.resources{width:48%}.depth{max-width:48%}#pause-button{top:110px}.touch-ui #pause-button{top:125px}.objective{font-size:calc(12px * var(--ui-scale))}}@media(max-height:450px){.touch-ui .scan,.touch-ui .objective{display:none}.touch-ui .target{bottom:170px}.touch-ui #interaction-hint{top:38%}.touch-ui .notifications{top:4px;left:33%;width:34%}.touch-ui #touch-warning{bottom:170px}}@media(orientation:landscape)and (max-height:450px)and (min-width:600px){.touch-ui #return-hint{left:172px;max-width:156px}}#touch-controls button:not([data-touch-action=move]):not([data-touch-action=drill]){width:52px;padding:0;font-size:14px}#touch-controls [data-touch-action=map]{inset:80px 68px auto auto}#touch-controls [data-touch-action=cargo]{inset:80px 128px auto auto}#touch-controls [data-touch-action=scan],#touch-controls [data-touch-action=interact],#touch-controls [data-touch-action=use]{background:#17334270;border-color:#e5daab99}@media(orientation:portrait){.touch-ui #touch-controls [data-touch-action=map]{inset:125px 68px auto auto}.touch-ui #touch-controls [data-touch-action=cargo]{inset:125px 128px auto auto}}@media(max-height:450px){#touch-controls [data-touch-action=scan],#touch-controls [data-touch-action=interact],#touch-controls [data-touch-action=use]{bottom:0;background:#17334255}}#world-canvas{position:relative;z-index:1}.viewport>.optional-scene{position:absolute;inset:0;z-index:0;pointer-events:none;width:100%;height:100%}.hud,.notifications,#pause-button{z-index:2}#machine-preview{position:relative;width:min(100%,360px);height:180px;margin:8px auto;background:radial-gradient(ellipse at center,#294353,#0b1a23);border:1px solid #58717d;border-radius:10px;overflow:hidden}#machine-preview canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#machine-preview.has-three .machine-fallback{visibility:hidden}#audio-enable{position:fixed;z-index:40;bottom:8px;left:50%;transform:translate(-50%);font-size:13px}.ore-icon{width:32px;height:32px;vertical-align:middle;margin-right:6px}#settings-panel input[type=range]{width:min(45%,250px)}#backup-panel{z-index:31}#backup-panel button{margin:5px}#backup-panel a{display:inline-block;padding:12px;color:#bcebef;overflow-wrap:anywhere}.capacity-slot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid #58717d;padding:8px 0}.capacity-slot p{margin:0}.capacity-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px;padding-top:12px}.resources,.depth,.menu-panel,.pause-panel,#title{border:2px solid #82949a;background:linear-gradient(125deg,#ffffff16 0%,transparent 22%,transparent 68%,#91b4c00e 100%),linear-gradient(#203746,#101e29 58%,#09131b);box-shadow:inset 0 0 0 2px #071018,inset 0 1px 18px #b5d6dd1c,0 8px 25px #000a;color:#e3edf2}.resources,.depth{border-radius:12px;padding:8px 10px}.resources{width:min(260px,48%)}.depth{min-width:150px;max-width:48%;line-height:1.7}.resources:before,.depth:before,.menu-panel:before,.pause-panel:before,#title:before{content:"";position:absolute;inset:6px;pointer-events:none;background:radial-gradient(circle at left top,#d7dee2 0 2px,#445765 3px,#061019 4px,transparent 5px),radial-gradient(circle at right top,#d7dee2 0 2px,#445765 3px,#061019 4px,transparent 5px),radial-gradient(circle at left bottom,#d7dee2 0 2px,#445765 3px,#061019 4px,transparent 5px),radial-gradient(circle at right bottom,#d7dee2 0 2px,#445765 3px,#061019 4px,transparent 5px)}.resource{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);grid-template-rows:1fr 1fr auto;gap:0 6px;min-height:62px;padding:3px 8px 4px 4px;border:1px solid #4e6975;border-radius:7px;background:linear-gradient(145deg,#142d3a,#07131c);box-shadow:inset 0 1px 7px #000e;margin:3px 0}.resource label{grid-column:2;grid-row:1;order:initial;color:#c8d8dc;letter-spacing:.08em}.resource output{grid-column:2;grid-row:2;order:initial;font-size:.82em;white-space:nowrap;font-family:ui-monospace,Consolas,monospace;color:#c9f1dd}.resource meter{grid-column:1/-1;grid-row:3;order:initial;width:100%;height:8px;accent-color:#65dfb3}.resource .gauge{grid-column:1;grid-row:1/3;width:48px;height:32px;filter:drop-shadow(0 0 3px #63e7c755)}.gauge-scale{fill:none;stroke:#698a93;stroke-width:4;stroke-dasharray:2 3}.gauge-lit{fill:none;stroke:#75e7bd;stroke-width:2;stroke-dasharray:100;stroke-dashoffset:calc(100 * (1 - var(--value,0)));filter:drop-shadow(0 0 3px #62e9bd)}.gauge-needle{stroke:#fff1ca;stroke-width:2;stroke-linecap:round;transform-origin:40px 36px;transform:rotate(calc(-90deg + 180deg * var(--value,0)));transition:transform .3s ease}.gauge circle{fill:#d5e0df;stroke:#253b44;stroke-width:1}.warning-lamp{position:absolute;top:7px;right:6px;width:7px;height:7px;border-radius:50%;background:#456051;box-shadow:inset 0 0 3px #000}.resource[data-state=warn] .warning-lamp{background:#ffc455;box-shadow:0 0 8px #ffb537;animation:lamp-pulse 1s ease-in-out infinite}.resource[data-state=danger] .warning-lamp{background:#ff615b;box-shadow:0 0 9px #ff3d34;animation:lamp-pulse .7s ease-in-out infinite}.resource[data-state=danger] .gauge-lit{stroke:#ff6058;filter:drop-shadow(0 0 5px #ff473b)}.resource[data-state=danger] .gauge-needle{stroke:#ffe0d0}.flash-weak .warning-lamp{animation:none!important}@keyframes lamp-pulse{50%{opacity:.4}}.depth #depth{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.odometer{display:inline-flex;vertical-align:middle;align-items:center;margin-left:5px;padding:2px 5px;border:1px solid #46687a;border-radius:3px;background:#061018;box-shadow:inset 0 2px 6px #000;color:#a7f1d4;font-family:ui-monospace,Consolas,monospace;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.odometer:after{content:" m";white-space:pre}.odometer-digit{display:inline-block;height:1.2em;width:.7em;overflow:hidden;line-height:1.2}.odometer-wheel{display:flex;flex-direction:column;line-height:1.2;transform:translateY(calc(-1.2em * var(--digit,0)))}.odometer-wheel>span{display:block;height:1.2em}.odometer-mark{line-height:1}#cargo-value,#credits{font-family:ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums;color:#b5eed7}.depth #cargo-value,.depth #credits{display:inline-block;padding:0 5px;border:1px solid #395767;border-radius:3px;background:#061018}.menu-panel,.pause-panel{border-radius:14px;padding:26px;background:linear-gradient(130deg,#ffffff13,transparent 22%),repeating-linear-gradient(0deg,#ffffff04 0 1px,transparent 1px 5px),linear-gradient(#213946,#101f29);box-shadow:inset 0 0 0 3px #07121a,0 0 0 100vmax #000b,0 18px 50px #000c}.menu-panel h2,.pause-panel h2{padding:0 0 10px;margin:0 0 14px;border-bottom:2px solid #67888f;color:#f2e2b1;text-shadow:0 0 10px #f5c56a44;letter-spacing:.07em}.menu-panel h3,.pause-panel h3{color:#e5d4a9}.menu-panel button,.pause-panel button,#title button{background:linear-gradient(#486573,#172d38 48%,#112530 52%,#0c1c26);border:2px solid #7e9ca2;border-bottom-color:#3d555e;border-radius:7px;color:#ebf6f4;box-shadow:inset 0 1px #ffffff4d,0 3px #061119,0 0 12px #6fe8d91a;text-shadow:0 0 7px #adfff866;overflow-wrap:anywhere}.menu-panel button:hover:not(:disabled),.pause-panel button:hover:not(:disabled),#title button:hover:not(:disabled){background:linear-gradient(#638895,#203d4a 55%,#142d39);box-shadow:inset 0 1px #fff6,0 3px #061119,0 0 15px #69e6d866}.menu-panel button:focus-visible,.pause-panel button:focus-visible,#title button:focus-visible{outline:4px solid #f7d685;outline-offset:2px}.menu-panel button:disabled,.pause-panel button:disabled{opacity:.52}.menu-panel:not([hidden]),.pause-panel:not([hidden]){animation:panel-power .18s ease-out both}@keyframes panel-power{0%{opacity:.55;filter:brightness(.45)}to{opacity:1;filter:brightness(1)}}.menu-panel table,.pause-panel table{border:1px solid #53717c;background:#0b1c27}.inventory-table th{background:#24414e;color:#f2e2b1}.inventory-table td{border-color:#48616c}.equipment-card,.capacity-slot{border-color:#56737d}#menus.base-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:24px}#menus.base-panel>h2,#menus.base-panel>p,#menus.base-panel>#machine-preview{grid-column:1/-1;margin:0}#menus.base-panel>button{min-width:0;width:100%;margin:2px 0;padding:12px 5px}#menus.base-panel #machine-preview{width:min(100%,680px);height:clamp(180px,34dvh,300px);margin:8px auto 12px;border:3px solid #8498a0;border-radius:14px;background:radial-gradient(ellipse at center,#385c6c,#101e29 75%);box-shadow:inset 0 0 0 3px #07131c,0 0 22px #79dcd22b}#title{position:relative;width:min(840px,calc(100vw - 24px));min-height:min(70dvh,540px);max-height:calc(100dvh - 110px);border-radius:16px;padding:clamp(22px,4vw,52px);overflow:auto;background-image:linear-gradient(115deg,#07121cf0 5%,#0a2135d9 65%,#091824d9),radial-gradient(ellipse at 70% 35%,#274960,#081118 72%)}.title-art-ready #title{background-image:linear-gradient(115deg,#07121cf2 5%,#0a2135a6 65%,#091824b8),url(../ui/title.webp);background-size:cover,130% auto;animation:title-pan 30s ease-in-out infinite alternate}@keyframes title-pan{0%{background-position:center,0% center}to{background-position:center,100% center}}#title h2{color:#f3e3b9;text-shadow:0 2px 12px #000,0 0 24px #78d2dc55}#title .eyebrow{color:#f3c979}.high-contrast .resources,.high-contrast .depth,.high-contrast .menu-panel,.high-contrast .pause-panel,.high-contrast #title,.high-contrast .resource{background:#000;color:#fff;border-color:#fff;box-shadow:none}.high-contrast .menu-panel h2,.high-contrast .pause-panel h2{color:#fff;border-color:#fff}.high-contrast .menu-panel button,.high-contrast .pause-panel button,.high-contrast #title button{background:#fff29a;color:#000;text-shadow:none;border-color:#fff;box-shadow:none}.high-contrast .menu-panel button:hover:not(:disabled),.high-contrast .pause-panel button:hover:not(:disabled),.high-contrast #title button:hover:not(:disabled){background:#fff;color:#000;box-shadow:none}.high-contrast .odometer,.high-contrast .depth #cargo-value,.high-contrast .depth #credits{background:#000;color:#fff;border-color:#fff}.high-contrast .resource output{color:#fff}.high-contrast .gauge-scale,.high-contrast .gauge-lit,.high-contrast .gauge-needle{stroke:#fff}.high-contrast .warning-lamp{border:1px solid #fff}.high-contrast .inventory-table th{background:#000;color:#fff;border-color:#fff}.touch-ui .depth{padding:3px 6px;line-height:1.1}#pause-button{top:calc(105px * var(--ui-scale))}@media(max-width:600px){.resources,.depth{padding:5px}.resources{width:48%}.resource{grid-template-columns:34px minmax(0,1fr);min-height:52px;padding:2px 5px 3px 2px;gap:0 3px}.resource .gauge{width:34px;height:25px}.resource output{font-size:.69em}.resource meter{height:6px}.depth{min-width:0;line-height:1.45}.odometer{margin-left:2px;padding:1px 3px}#menus.base-panel{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:3px}#menus.base-panel #machine-preview{height:180px;margin:4px auto 7px}.menu-panel,.pause-panel{padding:12px}#title{margin:0 auto;min-height:0;max-height:calc(100dvh - 120px)}}@media(max-width:600px){:root:not(.touch-ui) #pause-button{top:165px}:root:not(.touch-ui) #interaction-hint{top:35%}.touch-ui .depth{padding:3px 5px;line-height:1.1}}@media(prefers-reduced-motion:reduce){.menu-panel:not([hidden]),.pause-panel:not([hidden]),.title-art-ready #title,.warning-lamp{animation:none!important}.gauge-needle,.odometer-wheel{transition:none}}.menu-panel>p,.pause-panel>p{margin:8px 0;padding:8px 10px;border-left:3px solid #6b999b;border-radius:3px;background:linear-gradient(100deg,#081923d9,#1027337a);line-height:1.5}.pause-panel>p:empty:not([role]){display:none}.pause-panel>p[role]:empty{margin:0;padding:0;border:0;background:none;min-height:0}.menu-panel .hint,.pause-panel .hint{color:#b9d6d7}.prose-panel>p{padding-inline-end:max(10px,calc(100% - 68ch));line-height:1.85}.confirm-panel>p,#save-problem>p{border-left-color:#e2b86d;background:linear-gradient(100deg,#2a271dc9,#1427337a)}.menu-panel input,.pause-panel input,#title input,.menu-panel select,.pause-panel select,#title select{min-width:0;max-width:100%;border:2px solid #688b97;border-radius:5px;background-image:linear-gradient(#081720,#12303c);box-shadow:inset 0 2px 7px #000b;color:#e3f4f0}.pause-panel input[type=file]{width:100%}.menu-panel input[type=checkbox],.pause-panel input[type=checkbox],#title input[type=checkbox],.menu-panel input[type=range],.pause-panel input[type=range]{accent-color:#efbb77;box-shadow:none}.menu-panel input[type=number],.pause-panel input[type=number]{font-variant-numeric:tabular-nums}.menu-panel label,.pause-panel label,#title label{overflow-wrap:anywhere}.menu-panel input:focus-visible,.pause-panel input:focus-visible,#title input:focus-visible,.menu-panel select:focus-visible,.pause-panel select:focus-visible,#title select:focus-visible,#settings-panel summary:focus-visible{outline:3px solid #8cf5ff;outline-offset:2px}.menu-panel button:focus-visible,.pause-panel button:focus-visible,#title button:focus-visible{outline-color:#8cf5ff}.inventory-table{border:2px solid #66838d;border-radius:6px;background:#091923;box-shadow:inset 0 1px 10px #0009}.inventory-table th,.inventory-table td{border-right:1px solid #35515d;vertical-align:middle}.inventory-table th:last-child,.inventory-table td:last-child{border-right:0}.inventory-table tr:nth-child(2n) td{background:#18313b9c}.inventory-table th{background:linear-gradient(#36515c,#213b48);color:#f2e2b1}.inventory-table td{line-height:1.45}.inventory-table button{min-width:44px;min-height:44px}.menu-panel nav{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid #526e78;border-radius:6px;background:#0b1c27}.menu-panel nav button[aria-current=true]{border-color:#efbb77;color:#f2e2b1}.equipment-card,.capacity-slot{margin:8px 0;padding:12px;border:1px solid #56737d;border-radius:7px;background:linear-gradient(145deg,#18313d,#0a1b25);box-shadow:inset 0 1px #ffffff18}.equipment-card h3{margin:0 0 8px}.capacity-slot p{min-width:0;overflow-wrap:anywhere}#settings-panel h3{margin:22px 0 8px;padding:6px 10px;border-bottom:1px solid #69858c;color:#f2e2b1;letter-spacing:.05em}#settings-panel fieldset,#settings-panel details{min-width:0;margin:14px 0;border:2px solid #607d86;border-radius:8px;background:linear-gradient(#18313d,#0b1d28);box-shadow:inset 0 0 0 2px #07141c}#settings-panel legend{max-width:100%;padding:0 8px;color:#f2e2b1;overflow-wrap:anywhere}#settings-panel summary{border-radius:5px;background:linear-gradient(#36515c,#152e39);color:#f2e2b1}#settings-panel details[open] summary{border-bottom:1px solid #607d86}#settings-panel details>p,#settings-panel details>label,#settings-panel details>button{margin-left:12px;margin-right:12px}#settings-panel input[type=range]{accent-color:#78e4c0}#settings-panel output{font-variant-numeric:tabular-nums;color:#b5eed7}.map-panel .map-canvas{outline:3px solid #81949a;outline-offset:-3px;border-radius:6px;background:#08131c;box-shadow:inset 0 0 0 2px #071018,0 0 14px #75dccc33}.map-panel button,.map-panel select{min-height:44px}#history-panel>p{border-left-color:#7ad7bb}#backup-panel a,#settings-panel a{color:#bcebef;text-decoration-color:#7bdac5;text-underline-offset:3px}#backup-panel a:focus-visible,#settings-panel a:focus-visible{outline:3px solid #8cf5ff;outline-offset:2px}#save-problem,#save-problem h2{border-color:#d7af75}.high-contrast .menu-panel>p,.high-contrast .pause-panel>p,.high-contrast #save-problem>p,.high-contrast .menu-panel nav,.high-contrast .inventory-table,.high-contrast .inventory-table td,.high-contrast .equipment-card,.high-contrast .capacity-slot,.high-contrast #settings-panel fieldset,.high-contrast #settings-panel details,.high-contrast #settings-panel summary,.high-contrast .map-panel .map-canvas{background:#000;color:#fff;border-color:#fff;box-shadow:none}.high-contrast .menu-panel input,.high-contrast .pause-panel input,.high-contrast #title input,.high-contrast .menu-panel select,.high-contrast .pause-panel select,.high-contrast #title select{background:#000;color:#fff;border-color:#fff;box-shadow:none}.high-contrast .menu-panel input[type=checkbox],.high-contrast .pause-panel input[type=checkbox],.high-contrast #title input[type=checkbox],.high-contrast .menu-panel input[type=range],.high-contrast .pause-panel input[type=range],.high-contrast #settings-panel input[type=range]{accent-color:#ffff00}.high-contrast #settings-panel h3,.high-contrast #settings-panel legend,.high-contrast #settings-panel summary,.high-contrast #settings-panel details[open] summary,.high-contrast #settings-panel output,.high-contrast #history-panel>p,.high-contrast .menu-panel nav button[aria-current=true],.high-contrast #backup-panel a,.high-contrast #settings-panel a{color:#fff;border-color:#fff}.high-contrast .map-panel .map-canvas{outline-color:#fff}.high-contrast .inventory-table tr:nth-child(2n) td{background:#000}.high-contrast #save-problem,.high-contrast #save-problem h2{border-color:#fff}.high-contrast .menu-panel nav button[aria-current=true]{color:#000}@media(max-width:600px){.menu-panel>p,.pause-panel>p{padding:6px 8px}.inventory-table th,.inventory-table td{padding:7px 3px}.inventory-table button{padding:7px 4px}.equipment-card,.capacity-slot{padding:10px}.menu-panel nav button{flex:1 1 44px}#settings-panel details>label{margin-left:8px;margin-right:8px}.map-panel>p{padding:2px 7px;margin:2px 0;line-height:1.3}}.language-switch{position:absolute;right:8px;top:8px;min-width:44px;min-height:44px;z-index:2}#title .language-switch{position:fixed;top:auto;bottom:8px;right:8px}body:has(#settings-panel:not([hidden]),#backup-panel:not([hidden])) #title .language-switch{visibility:hidden}html[lang=en] h1,html[lang=en] h2,html[lang=en] h3,html[lang=en] p,html[lang=en] label,html[lang=en] legend,html[lang=en] td,html[lang=en] th{overflow-wrap:normal;word-break:normal}html[lang=en] button{white-space:normal;word-break:normal}html[lang=en] .menu-panel h2,html[lang=en] .pause-panel h2,html[lang=en] #title h2{letter-spacing:.02em}html[lang=en] .depth,html[lang=en] .capacity-slot p{overflow-wrap:normal}html[lang=en] .resource label{letter-spacing:0}html[lang=en] #touch-controls [data-touch-action=scan],html[lang=en] #touch-controls [data-touch-action=interact],html[lang=en] #touch-controls [data-touch-action=use]{width:84px;font-size:13px}html[lang=en] #touch-controls [data-touch-action=scan]{left:calc(50% - 134px)}html[lang=en] #touch-controls [data-touch-action=interact]{left:calc(50% - 42px)}html[lang=en] #touch-controls [data-touch-action=use]{left:calc(50% + 50px)}html[lang=en] #touch-controls [data-touch-action=move],html[lang=en] #touch-controls [data-touch-action=drill]{width:min(156px,calc((100vw - 24px)/2));height:min(156px,calc((100vw - 24px)/2))}@media(max-width:360px){html[lang=en] #touch-controls [data-touch-action=cargo]{inset:190px auto auto 8px}}@media(orientation:landscape)and (max-height:450px){html[lang=en] #touch-controls [data-touch-action=move],html[lang=en] #touch-controls [data-touch-action=drill]{width:min(156px,calc(100dvh - 230px));height:min(156px,calc(100dvh - 230px));bottom:0}}
