:root{font-family:system-ui,-apple-system,sans-serif;color:#f6f7ec;background:#aacfe6;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}#game{width:100vw;height:100dvh;display:block;touch-action:none}button,input,select{font:inherit}button,.file{border:1px solid #ffffff30;background:#233c36ed;color:#fff;padding:12px 16px;cursor:pointer;touch-action:manipulation;border-radius:6px}button:hover,.file:hover{background:#3b5b50}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #e4d77e}button:disabled{opacity:.45;cursor:default}header{position:fixed;left:18px;right:18px;top:16px;display:flex;align-items:center;gap:14px;pointer-events:none}header>*{pointer-events:auto}.brand{display:flex;gap:10px;align-items:center;background:#183a35c9;padding:9px 14px;font-size:24px;border:1px solid #ffffff20;border-radius:6px}.brand span{font-size:9px;letter-spacing:2px;line-height:1.7}.brand b{display:block;font-size:12px;letter-spacing:1px}#status{background:#183a35c9;border-radius:6px;padding:9px 13px;font-size:11px;margin-left:auto}#world-status{position:fixed;left:18px;top:86px;z-index:4;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:max-content;max-width:min(460px,calc(100vw - 36px));pointer-events:none}#world-status>div{max-width:100%;overflow-wrap:anywhere;line-height:1.35}#world-status>div:empty{display:none}#coordinates{font:11px monospace;background:#183a3580;padding:6px 8px;border-radius:3px}#aim{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);font-size:24px;color:#fff;text-shadow:0 1px 3px #000;pointer-events:none}#hint{position:fixed;bottom:116px;left:50%;transform:translateX(-50%);font-size:11px;text-shadow:0 1px 3px #000;background:#16392f80;padding:6px 12px;border-radius:3px;white-space:nowrap}#selected-name{position:fixed;bottom:88px;left:50%;transform:translateX(-50%);font-size:13px;font-weight:600;text-shadow:1px 2px 3px #000;pointer-events:none}#hotbar,#inventory-hotbar{display:flex;gap:3px;background:#2a2a2abf;border:2px solid #292b2c;padding:4px;box-shadow:inset 1px 1px #ffffff55,0 3px 8px #0003}#hotbar{position:fixed;bottom:20px;left:50%;transform:translateX(-50%)}.slot{position:relative;width:52px;height:52px;border:2px solid #696b65;border-radius:0;background:#8a8c8090;box-shadow:inset 2px 2px #ffffff50,inset -2px -2px #0005;padding:2px;display:grid;place-items:center}.slot img{width:42px;height:42px;image-rendering:pixelated;pointer-events:none}.slot.selected{border-color:#fcf9d9;outline:2px solid #fdf8ce;outline-offset:-2px;background:#a6a18b}.slot span{position:absolute;left:3px;top:1px;font-size:9px;text-shadow:1px 1px #000;color:#ffffffbb}#inventory-button{position:fixed;bottom:22px;left:calc(50% + 265px);font-size:25px;padding:7px 13px;border-radius:0;background:#555d52dd;border:2px solid #aaa}#actions{position:fixed;right:20px;bottom:25px;display:flex;gap:5px}#actions button{font-size:12px}.overlay{position:fixed;inset:0;background:#152b2570;display:flex;align-items:center;justify-content:center;padding:32px;backdrop-filter:blur(2px);overflow:auto}.card{position:relative;width:min(470px,100%);padding:32px;border-radius:16px;background:#18382ef5;border:1px solid #ffffff29;box-shadow:0 20px 60px #0003}.eyebrow{font-size:10px;color:#d8d48f;letter-spacing:2px;font-weight:700}h1{font-size:49px;line-height:1.08;letter-spacing:-2px;margin:24px 0}h1 em{font-style:normal;color:#d8e7a6}h2{font-size:28px;letter-spacing:-.8px;font-weight:600}p{color:#d0ded7;font-size:13px;line-height:1.7}label{display:block;color:#ccd7cd;font-size:12px;margin:17px 0}input,select{display:block;width:100%;padding:12px;margin-top:7px;background:#102c24;color:#fff;border:1px solid #ffffff30;border-radius:5px}.primary{width:100%;background:#d8e4a9;color:#18382c;font-weight:700;border:0}.primary:hover{background:#e6eec7}small,#join-note{display:block;color:#b6cbbd;font-size:11px;line-height:1.7;margin-top:14px}small{color:#95b4a0}.hidden{display:none!important}.settings{margin:auto;width:min(500px,100%)}.close{position:absolute;right:12px;top:9px;font-size:25px;border:0;background:transparent;padding:6px 12px}.row{display:flex;gap:8px;margin-top:12px}.row>*{flex:1;font-size:11px;text-align:center}.file{margin:0}.file input{display:none}.note{font-size:11px}.settings #resume{width:100%;margin-top:15px}details{font-size:12px;color:#c8d5c6}details p{font-size:11px}#toast{position:fixed;bottom:165px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:6px;background:#173c30f5;box-shadow:0 4px 15px #0002;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90%;text-align:center;z-index:5}#toast.show{opacity:1}#touch{display:none}.pad button,.vertical button{min-width:50px;min-height:50px;background:#143c35ae;border:2px solid #c5d3bd80;border-radius:4px}.pad>button{margin-left:55px}.pad div{display:flex;gap:5px}.pad{position:fixed;left:18px;bottom:110px}.vertical{position:fixed;right:18px;bottom:160px;display:grid;gap:7px}#loading{position:fixed;top:86px;right:18px;font-size:10px;background:#173b3060;padding:6px 9px;border-radius:4px}.inventory-panel{width:min(800px,100%);max-height:90dvh;background:#deded1;color:#30382e;padding:22px;border:4px solid #5c6857;box-shadow:inset 2px 2px #ffffffe0,inset -2px -2px #949a88;display:flex;flex-direction:column}.inventory-header{position:relative;display:flex;align-items:center;justify-content:space-between}.inventory-header .close{color:#3b4335}.inventory-header h2{margin:4px 0 16px;font-size:24px}.inventory-panel .eyebrow{color:#60744e;font-size:9px}.inventory-panel input{background:#f3f3e9;color:#293025;border:2px solid #959d85;margin:0 0 12px}.inventory-panel #categories{display:flex;gap:4px;overflow-x:auto;flex-shrink:0;padding-bottom:5px}.inventory-panel #categories button{white-space:nowrap;font-size:11px;color:#394335;border:1px solid #959d85;border-radius:2px;padding:7px 10px;background:#c6cabb}.inventory-panel #categories button.active{background:#576c45;color:#fff}.inventory-info{display:flex;justify-content:space-between;font-size:10px;color:#60705a;margin:10px 0}.inventory-panel #block-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:4px;min-height:140px;max-height:43dvh;overflow:auto;padding:4px;background:#909881;border:2px solid #77806a}.block-tile{background:#c6cbbb!important;border:2px solid #e7e9da!important;border-radius:0!important;padding:4px!important;min-height:69px;color:#313a2a!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}.block-tile:hover{background:#e8ecd8!important;border-color:#536947!important}.block-tile img{width:38px;height:38px;image-rendering:pixelated;pointer-events:none}.block-tile span{font-size:8px;text-align:center;line-height:1.1}.inventory-panel #inventory-hotbar{margin:15px auto 8px;background:#909881}.inventory-panel #inventory-hotbar .slot{width:47px;height:45px}.inventory-panel #block-description{font-size:11px;color:#4e5d43;min-height:28px;text-align:center}.inventory-panel #inventory-hotbar img{width:36px;height:36px}
@media(pointer:coarse){#touch{display:block}#hint{bottom:auto;top:112px;font-size:10px;max-width:90%;white-space:normal;text-align:center}#actions{bottom:100px;right:18px}#actions button{padding:12px 10px}header{top:10px;left:12px;right:12px;gap:8px}#world-status{top:74px;left:12px;max-width:min(460px,calc(100vw - 24px))}#loading{top:74px;right:12px}#status{max-width:145px;font-size:10px;padding:8px}.brand{padding:8px;font-size:20px}.brand span{font-size:8px}.brand b{font-size:10px}#hotbar{bottom:16px;gap:1px;padding:4px}.slot{width:42px;height:44px}.slot img{width:34px;height:34px}#inventory-button{bottom:17px;left:calc(50% + 203px);padding:5px 10px;font-size:24px}#selected-name{bottom:71px}.overlay{padding:18px}.card{padding:26px}h1{font-size:41px}#toast{bottom:275px}.inventory-panel{padding:14px}.inventory-panel #inventory-hotbar .slot{width:42px;height:42px}.inventory-panel #inventory-hotbar img{width:32px;height:32px}}
@media(max-width:620px){#hotbar .slot{width:33px;height:38px}#hotbar .slot img{width:28px;height:28px}#inventory-button{left:calc(50% + 160px);font-size:21px;padding:4px 9px;bottom:19px}.brand{font-size:17px}.brand span{font-size:7px}.brand b{font-size:9px}#status{max-width:123px}#inventory-hotbar .slot{width:32px!important;height:34px!important}#inventory-hotbar .slot img{width:26px!important;height:26px!important}.inventory-info span:last-child{display:none}.inventory-panel #block-grid{grid-template-columns:repeat(auto-fill,minmax(54px,1fr))}#actions{bottom:94px}.pad{bottom:99px;left:10px}.pad button{min-width:44px;min-height:44px}.pad>button{margin-left:49px}.vertical{right:12px;bottom:148px}#hint{display:none}#coordinates{font-size:9px}#actions button{font-size:11px}#selected-name{bottom:65px}}@media(max-height:620px){.overlay{align-items:flex-start}.card{margin:auto}.card h1{font-size:32px;margin:12px 0}.card p{font-size:12px}.card{padding:23px}#hint{display:none}.inventory-panel{max-height:95dvh}.inventory-panel #block-grid{max-height:37dvh}.inventory-header h2{font-size:20px;margin:4px 0 8px}.inventory-panel #inventory-hotbar{margin:8px auto 5px}}
#vitals{color:#fff;text-shadow:1px 2px #222;font-weight:800;pointer-events:none}#systems-panel{margin:12px 0;padding:12px;background:#eee9d9;border-radius:12px}.bag-grid{display:grid;grid-template-columns:repeat(9,minmax(32px,1fr));gap:5px}.bag-grid .slot{width:100%;height:52px;position:relative}.bag-grid .slot span{font-size:10px}.bag-grid .slot img{width:32px}#recipes{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px;max-height:300px;overflow:auto}.recipe{text-align:left;font-size:13px}.recipe small{display:block;font-size:10px;margin-top:5px}.recipe:disabled{opacity:.45}#creative-items{display:flex;gap:6px;flex-wrap:wrap;max-height:180px;overflow:auto}.item-tile{font-size:12px;padding:8px}.inventory-panel{overflow-y:auto!important}#death{z-index:100}#station-slots .bag-grid{margin-bottom:10px}@media(max-width:600px){#vitals{font-size:12px}.bag-grid .slot{height:42px}.bag-grid .slot img{width:25px}.bag-grid{gap:3px}}



#systems-panel details,#systems-panel p{color:#344638}#systems-panel summary{padding:10px;margin:6px 0;background:#d2d4c3;color:#244237;cursor:pointer;border:1px solid #b2b69f;border-radius:5px}#systems-panel{flex-shrink:0}.inventory-header,#inventory-hotbar,#block-description{flex-shrink:0}

#crafting-grid{display:grid;gap:4px}#crafting-grid .slot,#crafting-output .slot{width:48px;height:48px}.crafting-workbench{display:flex;align-items:center;gap:22px}.craft-arrow{font-size:32px;color:#616653}.crafting-workbench h4{font-size:13px;margin:4px 0 9px}.craft-help{font-size:11px!important}.crafting-workbench button#clear-crafting{font-size:11px}.block-tile{position:relative}.inventory-panel #block-grid{grid-template-columns:repeat(9,minmax(44px,1fr))}.block-tile span{font-size:9px}.block-tile:hover{outline:2px solid #fff}.inventory-panel #categories button{font-size:13px;padding:10px 16px}@media(max-width:620px){.inventory-panel #block-grid{grid-template-columns:repeat(6,minmax(36px,1fr))}.crafting-workbench{gap:12px}.inventory-panel #categories button{font-size:11px;padding:8px}}

#actions,#actions button,#touch,#touch button{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#sprint-touch.active{background:#688151;border-color:#e4efc9}
#joystick{position:fixed;left:22px;bottom:100px;width:136px;height:136px;border-radius:50%;border:3px solid #e0eddda0;background:radial-gradient(circle,#53756480,#163d3490);box-shadow:inset 0 0 20px #0004;touch-action:none;user-select:none}#joystick-knob{position:absolute;left:50%;top:50%;width:56px;height:56px;border-radius:50%;background:#e2e7d4bd;border:3px solid #fff9;transform:translate(-50%,-50%);box-shadow:0 3px 10px #0005;pointer-events:none}#flight-toggle.active{background:#7a8750}.vertical{bottom:160px}.vertical button{font-size:12px}#game{touch-action:none;-webkit-user-select:none;-webkit-touch-callout:none}@media(pointer:coarse){#actions #place,#actions #break{display:none}#actions{bottom:100px;right:20px}#hint{display:none}.vertical{bottom:160px}#joystick{bottom:105px}}@media(max-height:620px){#joystick{width:110px;height:110px;bottom:80px}.vertical{bottom:120px}.vertical button{min-height:38px;padding:8px}#actions{bottom:70px}}

@media(pointer:coarse){#flight-desktop{display:none}}#flight-desktop{font-size:12px;padding:10px}

#partner-status{color:#fff;text-shadow:1px 2px #222;font-size:13px;font-weight:700;pointer-events:none}#partner-status[data-paused="true"]{color:#ffe19b}@media(max-width:600px){#partner-status{font-size:12px}}

.adventure-panel,.character-panel{margin:16px 0;padding:14px;background:#e3e4d5;border:1px solid #b6bdab;border-radius:10px}.destination-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.destination-grid button{text-align:left;min-height:64px;padding:10px;color:#eefaed;background:linear-gradient(135deg,#284e4a,#476257);border:1px solid #698574}.destination-grid small{display:block;opacity:.8;font-size:10px;margin-top:3px}.character-panel summary{cursor:pointer;font-weight:800;padding:8px}.character-layout{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.character-layout>div{flex:1;min-width:170px}.character-layout canvas{width:180px;height:200px;background:radial-gradient(ellipse,#b8d0cf,#314e55);border-radius:10px}.color-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.color-grid input{width:100%;min-height:36px;padding:3px}.color-grid label{font-size:12px}@media(max-width:500px){.character-layout canvas{width:130px;height:150px}.destination-grid button{font-size:12px}}

.overlay{z-index:20}.adventure-panel,.character-panel{color:#24473d}.adventure-panel .note,.character-panel .note{color:#425c50}.character-panel label,.character-panel summary{color:#24473d}.character-panel input,.character-panel select{color:#f1f6ef}.adventure-panel button small{color:#d8e8da;opacity:1}

#flight-toggle,#flight-desktop,#use,#sprint-touch{display:none!important}#inspect-toggle{width:38px;height:38px;padding:0;border-radius:6px;font-weight:900}#inspect-toggle.active{background:#39bb73;color:#fff}#joystick{border-radius:12px!important;overflow:visible!important}#joystick:after{content:'»';position:absolute;inset:-16px;border:6px solid #ddd8b180;border-radius:16px;pointer-events:none;color:#f5e7ba;text-align:center;font-size:20px;line-height:9px}#joystick.fast:after{border-color:#50e090;color:#50e090;box-shadow:0 0 18px #50e09080}#down,#jump{width:48px!important;min-width:48px!important;font-size:22px!important}#idea-text{width:100%;padding:10px;background:#183a35;color:#fff;border:1px solid #557f71;border-radius:6px}.idea-row{padding:10px;border-bottom:1px solid #8caa94}.idea-row p{white-space:pre-wrap;overflow-wrap:anywhere}#help-text{white-space:pre-wrap;color:#e5efdf}.gear-note{font-size:12px}#help-panel{z-index:80}

#hint{display:none!important}.slot img{max-width:100%;max-height:100%}

#inspect-toggle{position:fixed;right:14px;top:70px;z-index:90;pointer-events:auto}

#flight{display:none!important}

.activity-check{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:14px}.activity-check input{width:20px;height:20px;margin:0;flex-shrink:0;accent-color:#3c9e75}

#build-progress-list details{padding:10px 0;border-bottom:1px solid #c7d5ce}.scope-task{font-size:13px;line-height:1.5}.scope-task.partial{color:#855e27}.scope-task.queued{color:#636e77}.scope-task.implemented{color:#286449}

#graphics-notice{position:fixed;z-index:150;top:80px;left:50%;transform:translateX(-50%);width:min(90vw,480px);padding:18px;border-radius:14px;background:#fff5de;color:#263d35;box-shadow:0 8px 30px #0004}#graphics-notice p{margin:0 0 12px}

#travel-loading{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:#263d51;color:white;font:700 20px system-ui;pointer-events:all}#travel-loading.hidden{display:none}

#vehicle-controls{position:fixed;bottom:142px;right:18px;display:flex;gap:8px;z-index:6}#vehicle-controls.hidden{display:none}#vehicle-controls button{width:48px;height:48px;font-size:26px;background:#143f4ee8;color:white;border:2px solid #bfe8e0;border-radius:9px}

#navigation-dial{position:fixed;top:142px;left:16px;z-index:5;width:64px;height:64px;padding:1px;border:1px solid #e6e4c777;border-radius:12px;background:#143d49c9}#navigation-dial.hidden{display:none}

.bag-grid.brewing-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding-bottom:28px;max-width:410px}.brewing-grid .slot{width:100%;height:56px}.brewing-slot-label{position:absolute;top:100%;left:-3px;right:-3px;margin-top:4px;font-size:10px;line-height:12px;text-align:center}.brewing-grid button:disabled{opacity:.45;cursor:default}

#boat-storage{padding:9px}#boat-storage svg{display:block;margin:auto}

/* Anvil fields sit inside the light inventory panel. */
#station-slots .anvil-input{display:block;color:#304b42;font-size:14px;margin:12px 0 6px}#station-slots .anvil-input select{display:block;width:100%;color:#263f36;background:#fffdf3;font-size:14px}#station-slots .anvil-input option{color:#263f36;background:#fffdf3}

#potion-effects{position:fixed;right:14px;top:142px;z-index:12;display:flex;flex-direction:column;gap:5px}#potion-effects button{padding:7px 10px;border:1px solid #91bdae;border-radius:8px;background:#214d43e8;color:#fff8df;font-size:14px;font-weight:700}

#guide-light-card{z-index:80}#guide-light-text{white-space:pre-wrap;color:#e5efdf}#guide-light-button{width:38px;height:38px;padding:0}

#sign-editor{z-index:65;background:rgba(15,35,30,.65)}.sign-editor-card{width:min(440px,94vw);max-height:92vh;overflow:auto;padding:24px;background:#f4f2e4;color:#163c36;border-radius:18px}.sign-editor-card label,.sign-editor-card p{color:#304b42}.sign-editor-card label{display:block;margin:9px 0}.sign-editor-card input{display:block;width:100%;font-size:18px}.sign-editor-card button{margin:8px 8px 0 0}

.stonecut-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px}.stonecut-options .item-tile{min-height:100px;display:flex;flex-direction:column;align-items:center;gap:5px}.stonecut-options small{font-size:11px;line-height:1.3;color:inherit}

#performance-panel{z-index:170}#performance-panel .performance-card{width:min(650px,100%);max-height:90vh;overflow:auto;background:#eef5ec;color:#233c34}#performance-panel h2{font-size:27px;color:#233c34}#performance-panel p,#performance-panel label,#performance-panel .note,#performance-panel summary{color:#233c34}#performance-panel textarea{width:100%;color:#233c34;background:#fff}#performance-panel pre{font-size:11px;max-height:220px;overflow:auto;white-space:pre-wrap;background:#fff;padding:12px}#performance-panel .row{flex-wrap:wrap}#performance-panel button:disabled{opacity:.5}

#performance-panel .close{color:#233c34}

/* Fourfall: seven large touch columns and symbol + color tokens. */
.fourfall-card{max-width:520px;color:#29464b;background:#edf8f4;max-height:92dvh;overflow:auto}.fourfall-card p{color:#29464b}.fourfall-card button{min-height:44px;color:#173b44;background:#d0e9e4}.fourfall-card button:disabled{opacity:.48}.fourfall-card #fourfall-columns,.fourfall-card #fourfall-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.fourfall-card #fourfall-columns button{min-width:0;padding:4px}.fourfall-card #fourfall-grid{padding:8px;background:#234b59;border-radius:12px;margin:8px 0}.fourfall-cell{display:grid;place-items:center;aspect-ratio:1;border:2px solid #487480;border-radius:50%;font-size:26px}.fourfall-cell.gold{background:#f7be43;color:#5a3700}.fourfall-cell.aqua{background:#52cce0;color:#0b3e4e}.fourfall-cell.empty{color:#8cb9bc}.fourfall-cell.winning{outline:3px solid #fff;outline-offset:-3px}.fourfall-card #fourfall-actions{display:flex;flex-wrap:wrap;gap:6px}.fourfall-label{position:fixed;z-index:8;pointer-events:none;padding:6px 10px;border-radius:8px;background:#173f4be8;color:#e5fff4;font:600 14px system-ui;transform:translate(-50%,-100%)}

.fourfall-card h2{color:#173b44;margin-top:0}

.fourfall-card #fourfall-close{float:right;width:44px;min-width:44px;padding:0;font-size:25px;margin:0 0 8px 8px}.fourfall-card h2{padding-top:5px}

.atlas-icon{background-repeat:no-repeat}

/* Installation help stays legible inside the dark welcome card. */
#welcome #home-screen-help{background:#173b31;border:1px solid #527366;color:#edf3df}
#welcome #home-screen-help summary{color:#e3edb6}
#welcome #home-screen-help p{color:#d2e1d7;font-size:13px;line-height:1.5}

/* Deliberate speed control: full joystick travel remains available for walking. */
#joystick:after{display:none}#joystick.fast{border-color:#73ebbe!important;box-shadow:0 0 0 3px #173a31,0 0 18px #50e09050}#touch #sprint-touch{display:grid!important;place-items:center;width:48px;min-width:48px;padding:8px}#camera-toggle{width:38px;height:38px;padding:6px;display:grid;place-items:center}#camera-toggle[aria-pressed="true"]{background:#345a72;border-color:#9cddff}#sprint-touch.active{background:#247451;border-color:#9fffd1;color:white}

/* Workshop inventory: stable library and backpack panes, visible hotbar footer. */
#inventory{padding:20px;background:#101c29a3;backdrop-filter:blur(5px)}
#inventory .inventory-panel{width:min(1200px,100%);height:min(850px,94dvh);max-height:94dvh;padding:18px;overflow:hidden!important;border:3px solid #242f3d;border-radius:5px;background:#cdd2d7;color:#222c38;box-shadow:inset 2px 2px #ffffff, inset -2px -2px #7c8997,0 24px 80px #0008;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;column-gap:16px;row-gap:8px}
#inventory .inventory-header{grid-column:1/-1;min-width:0;border-bottom:2px solid #9aa6b2;padding-bottom:8px}#inventory .inventory-header h2{font-size:25px;margin:4px 0 0;letter-spacing:-.5px}#inventory .eyebrow{color:#496377;font-weight:800;letter-spacing:1.8px}#inventory .close{color:#26384a;right:0;top:0;background:#e4e8eb;border:2px solid #8f9eaa;border-radius:2px;width:40px;height:40px;padding:0}
.inventory-library{grid-column:1;grid-row:2;min-height:0;min-width:0;display:flex;flex-direction:column}#inventory #search{height:42px;min-height:42px;margin:0 0 8px;background:#eff2f4;border:2px solid #8897a5;box-shadow:inset 2px 2px #0001;border-radius:2px;font-size:14px;color:#243747}#inventory #categories{gap:4px;min-height:44px;flex-shrink:0}#inventory #categories button{padding:9px 11px;font-size:11px;font-weight:700;border:2px solid #91a0ad;background:#e2e7eb;box-shadow:inset 1px 1px #fff;color:#354b5d;border-radius:2px}#inventory #categories button.active{background:#35566c;color:#fff;border-color:#254459;box-shadow:inset 0 2px #5c8ba7}#inventory .inventory-info{color:#4c6272;margin:7px 0;font-size:10px;flex-shrink:0}
#inventory #block-grid{flex:1;min-height:0;max-height:none;grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:82px;align-content:start;gap:4px;padding:7px;background:#687987;border:2px solid #3d4f5d;box-shadow:inset 2px 2px #0003;overflow:auto;overscroll-behavior:contain;scrollbar-color:#9bacbb #596a78}
#inventory .block-tile{min-height:0;padding:4px 2px!important;border:2px solid!important;border-color:#e9edf0 #8a99a5 #81929f #e1e7eb!important;background:linear-gradient(#c8d1d8,#afbdc8)!important;color:#263746!important;box-shadow:inset 1px 1px #fff4;border-radius:0!important;gap:3px}#inventory .block-tile img{width:48px;height:48px;max-width:90%;object-fit:contain;filter:drop-shadow(0 3px 1px #18253240)}#inventory .block-tile span{font-size:9px;line-height:1.1;max-width:100%;min-height:20px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}#inventory .block-tile:hover,#inventory .block-tile:focus-visible{background:#e2eef5!important;outline:2px solid #6edfc5;outline-offset:-3px}
#inventory #systems-panel{grid-column:2;grid-row:2;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:12px;background:#b8c3cb;border:2px solid #8193a1;border-radius:2px;box-shadow:inset 1px 1px #e8f0f4}#inventory #station-title{font-size:15px;line-height:1.4;margin:0 0 12px;color:#293f50}#inventory .crafting-workbench{gap:12px;flex-wrap:wrap;padding:12px;background:#d4dde2;border:2px solid #94a6b4;box-shadow:inset 1px 1px #f7fafc}#inventory .crafting-workbench h4{color:#334e60}#inventory .crafting-workbench #clear-crafting{font-size:10px;padding:7px;background:#526d80;color:white}#inventory .craft-help{font-size:11px!important;line-height:1.5;margin:10px 0 14px}#inventory .bag-grid{grid-template-columns:repeat(9,minmax(0,1fr));gap:3px}#inventory .bag-grid .slot{height:auto;min-height:32px;aspect-ratio:1}.inventory-panel .slot{background:#7c8c98;border-color:#536777 #e4ebef #e4ebef #536777;box-shadow:inset 2px 2px #26384838;color:white}#inventory .bag-grid .slot img{width:90%;height:90%;object-fit:contain}#inventory .slot.selected{background:#9eb8c6;border-color:#f4ffff;outline:2px solid #67cfb7;outline-offset:-2px}#inventory .slot span{font-size:10px;color:white;text-shadow:1px 1px 2px #10202d;left:auto;right:2px;top:auto;bottom:0;font-weight:700}#inventory #systems-panel .row{flex-wrap:wrap;gap:5px;margin-top:9px}#inventory #systems-panel .row button{flex:1 1 90px;font-size:10px;padding:9px 6px;min-height:36px;background:#496579;border:1px solid #344e61;border-radius:2px}#inventory #systems-panel summary{background:#d8e1e7;color:#2c4658;border:1px solid #91a3b1;border-radius:2px}#inventory #systems-panel .recipe{background:#e0e8ec;color:#294253;border:1px solid #899fab}#inventory #systems-panel .recipe small{color:#486270}#inventory #systems-panel .item-tile{background:#61798a;color:white;border-radius:2px}#inventory #systems-panel .item-tile img{width:34px;height:34px}#inventory #shield-equipment{align-items:center}#inventory #shield-equipment>span{color:#364f60;font-size:10px}#inventory #shield-equipment>.slot{flex:0 0 40px;height:40px}
#inventory #inventory-hotbar{grid-row:3;grid-column:1/-1;margin:4px auto 0;background:#5c7181;padding:5px;border:2px solid #364f60;max-width:100%}#inventory #inventory-hotbar .slot{width:48px;height:48px}#inventory #inventory-hotbar img{width:40px;height:40px}#inventory #block-description{grid-row:4;grid-column:1/-1;margin:0;min-height:20px;font-size:11px;color:#334f61}#inventory.survival-inventory .inventory-library{display:none}#inventory.survival-inventory .inventory-panel{grid-template-columns:1fr;max-width:760px}#inventory.survival-inventory #systems-panel{grid-column:1}
@media(max-width:850px){#inventory .inventory-panel{grid-template-columns:minmax(0,1fr) minmax(300px,1fr);padding:12px;column-gap:10px}#inventory #block-grid{grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:78px}#inventory #categories button{padding:9px 8px;font-size:10px}#inventory .inventory-info span:last-child{display:none}}
@media(max-width:650px){#inventory{padding:8px}#inventory .inventory-panel{height:97dvh;max-height:97dvh;grid-template-columns:1fr;grid-template-rows:auto minmax(170px,.9fr) minmax(140px,1fr) auto auto;padding:10px;gap:8px}#inventory .inventory-header h2{font-size:20px}#inventory .inventory-library{grid-row:2;grid-column:1}#inventory #systems-panel{grid-row:3;grid-column:1}#inventory #block-grid{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:72px}#inventory .block-tile img{width:40px;height:40px}#inventory #inventory-hotbar{grid-row:4}#inventory #block-description{grid-row:5}#inventory .crafting-workbench{padding:8px}#inventory.survival-inventory .inventory-panel{grid-template-rows:auto minmax(0,1fr) auto auto}#inventory.survival-inventory #systems-panel{grid-row:2}#inventory.survival-inventory #inventory-hotbar{grid-row:3}#inventory.survival-inventory #block-description{grid-row:4}}

#inventory #systems-panel #shield-equipment>.slot{flex:0 0 40px;width:40px;height:40px} @media(max-width:450px){#inventory #block-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Adventure palette requested after live review: dark stone, deep teal, warm loot accents. */
#inventory .inventory-panel{background:#202b35;color:#e6edf1;border-color:#10171e;box-shadow:inset 2px 2px #51606c,inset -2px -2px #0c141c,0 24px 80px #000a}#inventory .inventory-header{border-color:#485662}#inventory .inventory-header h2{color:#f2e9cc}#inventory .eyebrow{color:#78c9bc}#inventory .close{background:#354651;color:#f3ead0;border-color:#607783}#inventory #search{background:#111d27;color:#edf2ee;border-color:#465e6d;box-shadow:inset 2px 2px #0006}#inventory #search::placeholder{color:#a2b6bf}#inventory #categories button{background:#2d414d;color:#c5d7de;border-color:#49616f;box-shadow:inset 1px 1px #65798555}#inventory #categories button.active{background:#315f58;color:#f2e7bf;border-color:#83c7b5}#inventory .inventory-info{color:#a3b8be}#inventory #block-grid{background:#101a23;border-color:#09121a;scrollbar-color:#4a6c77 #162630}#inventory .block-tile{background:linear-gradient(#344b58,#263943)!important;color:#dce9ec!important;border-color:#607a88 #152731 #12222c #56717f!important;box-shadow:inset 1px 1px #8799aa20}#inventory .block-tile:hover,#inventory .block-tile:focus-visible{background:#456659!important;outline-color:#e5d49a}#inventory .block-tile img{filter:drop-shadow(0 4px 2px #0008)}#inventory #systems-panel{background:#172630;border-color:#3b5260;box-shadow:inset 1px 1px #5a738133}#inventory #station-title,#inventory .crafting-workbench h4{color:#e4d6ae}#inventory .crafting-workbench{background:#243743;border-color:#47606c;box-shadow:inset 1px 1px #6c839333}#inventory .craft-arrow{color:#d7c590}#inventory #systems-panel p{color:#aec4cc}#inventory .slot{background:#152630;border-color:#07131b #4e6673 #4e6673 #07131b;color:#eef5f3}#inventory .slot.selected{background:#3a5c59;border-color:#cce7c8;outline-color:#f0d69b}#inventory #systems-panel summary{background:#2a404c;color:#d6e2dd;border-color:#476170}#inventory #systems-panel .row button,#inventory .crafting-workbench #clear-crafting{background:#35554e;border-color:#577b6c;color:#efe7ce}#inventory #systems-panel .recipe{background:#2a404c;color:#e1e8e3;border-color:#45616e}#inventory #systems-panel .recipe small{color:#a6c3c7}#inventory #systems-panel .item-tile{background:#2c4550;color:#e5ede6}#inventory #shield-equipment>span{color:#a9c4cc}#inventory #inventory-hotbar{background:#152832;border-color:#48636c;box-shadow:inset 1px 1px #78908455,0 4px 12px #0005}#inventory #block-description{color:#b4c9c7}

#sprint-touch.active{background:#167648!important;border:3px solid #a9ffd0!important;box-shadow:0 0 12px #50e09088;position:relative}#sprint-touch.active:after{content:'✓';position:absolute;right:2px;top:0;font-size:12px;color:#fff}#jump[aria-pressed="true"]{background:#225e8a;border-color:#a3deff;box-shadow:0 0 8px #73b8eb66}

.destination-grid .destination-featured{grid-column:1/-1;padding:22px;background:linear-gradient(135deg,#183f45,#2d6557);border:2px solid #83ceb0;text-align:left;font-size:20px}.destination-grid button:disabled,#free-explore:disabled{opacity:.48;filter:grayscale(1);cursor:not-allowed;background:#30383d;color:#b8c0c5}.destination-grid button small{display:block;line-height:1.45;margin-top:7px;font-size:12px;font-weight:400}.destination-featured small{color:#d9efe2}
/* Deliberate optional speed gate sits outside the ordinary movement pad. */
#joystick[data-speed-style="gear"]::after{content:'⇈';position:absolute;left:calc(50% - 22px);top:-40px;width:44px;height:28px;text-align:center;line-height:26px;color:#aef7e1;border:2px solid #55bd9e;background:#112b2b;pointer-events:none}
#joystick[data-speed-style="analog"]{outline:2px dashed #63b99b;outline-offset:8px}
#settings label[hidden]{display:none}

.brand #running-version{margin:2px 0 0;color:#e1f3cf;font-size:9px;line-height:1.25;letter-spacing:0;white-space:nowrap}.running-release{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:10px 0}.running-release #menu-running-version{font-size:13px;font-weight:700;color:#d8edc8}.running-release button{min-height:44px;font-size:12px}@media(max-width:430px){.brand #running-version{font-size:8px}}
