@import url('./account.css?v=2df565d7c08a');
@font-face{font-family:Lacquer;src:url("assets/fonts/Lacquer-Regular.ttf?v=2df565d7c08a") format("truetype");font-style:normal;font-weight:400;font-display:swap}
:root{--game-font:"Lacquer",system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#172e30;color:#ede6d4;font:14px/1.4 var(--game-font)}#world{display:block;width:100vw;height:100vh;touch-action:none}#interface-root{position:fixed;top:0;left:0;transform-origin:0 0;pointer-events:none;--ui-vw:1vw;--ui-vh:1vh}#interface-root button,#interface-root select,#interface-root input,#interface-root section{pointer-events:auto}button,select{background:#203c35;color:#f5ecd6;border:1px solid #9eb29a66;border-radius:5px;padding:7px 11px;font:inherit;cursor:pointer}button:hover{background:#395848}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #efd893;outline-offset:2px}button:disabled{opacity:.35;cursor:default}.window{width:min(540px,calc(100% - 24px));height:560px;max-height:calc(100% - 24px);overflow:auto;padding:18px;background:#172e2b;border:1px solid #8caa8580;border-radius:10px}.window h1{font:27px var(--game-font);margin:0 0 6px}.window p{color:#c5d2c3;margin:0 0 8px}.window button{margin-right:8px}#save-info{font-size:12px;margin-top:10px}fieldset{margin:8px 0 0;border:1px solid #7a9673;border-radius:5px;padding:6px}output{font-size:11px;margin-left:8px}#map{position:absolute;inset:0;background:#0c1d25df;display:flex;flex-direction:column;min-height:0;gap:8px}#map-image{display:block;width:100%;height:100%;flex:1;min-height:0;object-fit:fill;border:1px solid #859d87}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#172e30;font:24px var(--game-font)}[hidden]{display:none!important}.quality-control{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.quality-control select{width:180px;padding:4px 8px;font-size:12px}.hitch-controls{display:flex;gap:8px;margin-top:6px}.hitch-controls button{height:29px;width:135px;padding:4px 8px;font-size:12px;margin:0}.review-control{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12px}.review-control label{flex:1}.review-control select{width:170px;max-width:50%;padding:4px 8px;font-size:12px}.review-control button{margin:0;padding:4px 10px;font-size:12px}#sound{display:flex;gap:12px;align-items:center;font-size:12px}#sound label{display:flex;align-items:center;gap:5px}#sound input[type=range]{width:75px}#sound input[type=checkbox]{margin:0}#hotbar-stack{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);max-width:98%;display:flex;flex-direction:column;align-items:center;gap:3px}#held-name{position:absolute;bottom:calc(100% + 5px);translate:-50% 0;pointer-events:none;white-space:nowrap;background:#132b25e6;padding:2px 9px;border-radius:4px;font-size:12px;min-height:21px}#hotbar{position:relative;display:flex;gap:3px;padding:4px;background:#132b25e6;border:1px solid #8caa8570;border-radius:7px;max-width:100%}.item-slot{position:relative;width:48px;flex:0 0 48px;height:48px;padding:2px;border-radius:4px;background:#203c35;touch-action:none}.item-slot img{display:block;width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}.slot-key,.slot-count{position:absolute;font-size:11px;line-height:13px;text-shadow:0 1px 2px #000;pointer-events:none}.slot-key{left:3px;top:1px}.slot-count{right:3px;bottom:2px;background:#132b25a0}.item-slot.active{border:2px solid #efd893}.item-slot.selected{background:#48634b}.pack-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.pack-heading strong{font:22px var(--game-font)}.pack-heading button{padding:4px 8px;font-size:12px}.pack-heading>div{display:flex;gap:5px}.pack-capacity{font-size:12px;color:#c5d2c3;margin:4px 0 8px}.pack-layout{display:grid;grid-template-columns:minmax(0,1fr) 205px;gap:12px}.pack-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.pack-grid .item-slot{width:100%;height:46px}.inspect{border-left:1px solid #8caa8540;padding-left:12px;min-width:0}#gather-hud{position:absolute;top:0;left:0;width:max-content;max-width:240px;text-align:center;padding:0;line-height:20px;pointer-events:none}#pickup-feedback{position:absolute;top:calc(52% - 95px);left:50%;pointer-events:none;z-index:1}.pickup-note{position:absolute;bottom:0;left:0;display:flex;align-items:center;gap:5px;translate:-50% 0;width:max-content;max-width:min(340px,calc(var(--ui-vw)*100 - 24px));padding:3px 7px;border-radius:4px;background:#102126ed;color:#d8edb8;font-size:12px;white-space:normal}.pickup-note img{flex:0 0 24px;width:24px;height:24px;object-fit:contain;image-rendering:pixelated}.compact-ui #hotbar .item-slot{width:calc((var(--ui-vw)*100 - 78px)/10);flex-basis:calc((var(--ui-vw)*100 - 78px)/10);max-width:48px;height:42px}.compact-ui .pack-layout{grid-template-columns:1fr;gap:6px}.compact-ui .inspect{border-left:0;border-top:1px solid #8caa8540;padding:6px 0 0}.compact-ui #sound{gap:7px}.compact-ui #sound input[type=range]{width:60px}

#death,#title-screen,#cloud-panel{position:absolute;inset:0;display:grid;place-items:center;background:#0c1d25dc;z-index:3}.save-window{width:min(530px,calc(100% - 32px));height:auto;min-height:280px;padding:24px;background:#172e2b;border:1px solid #8caa8580;border-radius:8px;display:flex;flex-direction:column;gap:12px;overflow:hidden}.save-window .work-heading{display:flex;align-items:stretch;gap:16px;padding:0 12px 0 18px;min-height:54px;background:#0d181bd9;border-bottom:1px solid var(--menu-line);flex:none}.save-window h2{font-size:18px;margin:10px 0 6px}.save-window p{font-size:13px}.save-window label,.title-shell label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;margin:12px 0}.save-window input,.title-shell input{min-width:0;width:65%;padding:9px;background:#102723;color:#f5ecd6;border:1px solid #8caa8580;border-radius:4px;font:inherit}.save-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.save-actions button{font:inherit;padding:8px 12px}/* File selection shares the menu's thin framing and restrained selected states. */
.title-shell{width:min(1040px,calc(100% - 48px));height:min(560px,calc(100% - 48px));padding:24px;display:flex;flex-direction:column;background:#142124;border:1px solid #6f7c716b;border-radius:2px;box-shadow:0 24px 80px #0006;color:#e0e4d9;--title-line:#81917b38}
.title-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid var(--title-line);flex-shrink:0}
.title-heading h1{font:bold 36px var(--game-font);margin:4px 0 0;letter-spacing:-.5px}.title-heading h1 em{font-style:normal;color:#d5be7f}.title-eyebrow{font-size:10px;letter-spacing:2px;color:#aabfb1}.title-heading button{width:30px;height:30px;padding:0;font-size:20px}
.title-main{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;min-height:0;flex:1}.title-shell h2{font:600 11px/1.4 var(--game-font);letter-spacing:.08em;text-transform:uppercase;color:#bbc8b6;margin:0 0 12px}
.title-library{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--title-line);padding-right:20px}.title-library [data-local-list]{display:flex;flex-direction:column;gap:5px;min-height:0;overflow:auto;flex:1;scrollbar-width:thin}.title-library small{font-size:12px;color:#abc1b3}
.title-library [data-save-card]{border:1px solid var(--title-line);border-radius:1px;flex-shrink:0}.title-library [data-save-card]>button{display:grid;grid-template-columns:20px minmax(0,1fr);gap:4px;width:100%;min-height:62px;text-align:left;border:0;background:transparent;padding:10px}.title-library [data-save-card] strong{overflow-wrap:anywhere}.title-library [data-save-card] small{grid-column:2;overflow-wrap:anywhere}.title-shell .selected{border-color:#d5bd82;background:#9d8f5d20;box-shadow:inset 2px 0 #d5bd82}
.save-source{grid-row:1 / 3;align-self:start;color:#d5be7f}.save-source svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.title-library-actions{display:flex;gap:8px;padding-top:16px;flex-shrink:0}.title-library-actions button{flex:1;padding:8px 10px;white-space:nowrap}
.title-adventure{min-width:0;min-height:0;position:relative}.title-adventure [data-save-details]{display:flex;flex-direction:column;height:100%;min-height:0}.save-identity{display:flex;gap:18px;align-items:center;margin:0 0 18px;padding:12px;background:#0b171b70}.save-identity canvas{width:64px;height:77px;image-rendering:pixelated;flex-shrink:0}.save-identity h2{font:600 28px/1.2 var(--game-font);margin:0;text-transform:none;letter-spacing:0;color:#e6e8d9;overflow-wrap:anywhere}.save-identity p{font-size:12px;color:#afc2b6;margin:5px 0 0}
.save-card-stats{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;padding:0 0 12px;font-size:13px;font-variant-numeric:tabular-nums}.save-card-stats>span{overflow-wrap:anywhere;padding:7px 0;border-bottom:1px solid var(--title-line)}.save-card-stats strong{font-size:15px;font-weight:400;color:#efd893}.save-card-stats>span>span{color:#e0e4d9;font-size:13px}.title-adventure [data-save-date]{color:#9eb5a6;font-size:12px}
.title-play-actions{display:flex;flex-wrap:wrap;align-content:flex-end;gap:6px;margin-top:auto;padding-top:16px;border-top:1px solid var(--title-line);flex-shrink:0}.title-play-actions button{padding:8px 12px;white-space:nowrap}.title-play-actions .primary{min-width:124px;background:#15282bb3;color:#efd893;border-color:#d5be7f}
.title-play-actions .primary:hover{background:#d5be7f30;border-color:#efd893}.title-account{border-top:1px solid var(--title-line);margin-top:18px;padding-top:12px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0}.title-account>div{display:grid;gap:4px;min-width:0}.title-account strong{font-size:14px;overflow-wrap:anywhere}.title-account span{font-size:12px;color:#afc4b5}.title-shell [data-save-message]{font-size:13px;color:#d5be7f;min-height:18px;margin:8px 0 0;flex-shrink:0}
.title-adventure:has(>[data-new-form]:not([hidden]),>[data-overwrite]:not([hidden]),>[data-statistics-panel]:not([hidden]))>[data-save-details]{visibility:hidden}
.title-shell [data-new-form],.title-shell [data-overwrite],.title-shell [data-statistics-panel]{position:absolute;inset:0;background:#142124}.title-shell [data-new-form]{padding:12px 0}.title-shell [data-new-cloud]{width:auto}.title-shell [data-overwrite]{padding:12px}.title-shell [data-overwrite] p{font-size:13px;color:#bacdbb}.title-shell [data-overwrite-list]{display:grid;gap:10px;margin:20px 0}
.title-shell [data-statistics-panel]{display:flex;flex-direction:column;gap:12px}.title-shell [data-statistics-content]{overflow:auto;flex:1;min-height:0}.title-shell [data-statistics-content] div{display:flex;justify-content:space-between;gap:20px;font-size:13px;padding:7px 0;border-bottom:1px solid #78988733}.title-shell [data-statistics-content] strong{text-align:right;max-width:65%;font-weight:400;color:#ede6d4}.title-shell [data-statistics-content] div>span{color:#d5bd82}.title-shell [data-statistics-back]{align-self:flex-end}.title-shell [data-statistics-content] summary{cursor:pointer;font-size:13px;color:#d5be7f;padding:9px 0}
.title-shell[aria-busy=true] button,.save-window [aria-busy=true] button{pointer-events:none}
.title-shell button{border-radius:2px;background:#24333570;border-color:#61756c66;color:#dce2d5}.title-shell button:hover{background:#42534780}.title-shell input{border-radius:2px;background:#0c191d99;border-color:#61756c66}.title-empty{padding:24px 12px;border-left:2px solid #d5bd82;background:#0b171b70}.title-empty h2{font:600 25px/1.2 var(--game-font);letter-spacing:0;text-transform:none;color:#e6e8d9;margin:0 0 10px}.title-empty p{font-size:13px;color:#afc2b6;margin:0;max-width:32em}
@media(max-width:700px){.title-shell{padding:20px;width:calc(100% - 24px);height:calc(100% - 24px)}.title-heading{margin-bottom:16px}.title-heading h1{font-size:34px}.title-main{grid-template-columns:155px minmax(0,1fr);gap:16px}.title-library{padding-right:12px}.title-library-actions{flex-wrap:wrap}.save-identity{gap:10px;margin:10px 0 16px}.save-identity h2{font-size:23px}.save-card-stats{gap:10px}.title-account{margin-top:16px;padding-top:12px}.title-eyebrow{letter-spacing:1px;font-size:8px}}
@media(max-width:480px){.title-shell{padding:16px}.title-main{grid-template-columns:1fr;grid-template-rows:164px minmax(0,1fr);gap:12px}.title-library{padding:0;border:0}.title-library h2{font-size:16px;margin-bottom:8px}.title-library [data-save-card]>button{min-height:62px;padding:8px}.title-library-actions{padding-top:8px}.save-identity{margin:0 0 12px}.save-identity canvas{width:48px;height:58px}.title-play-actions{padding-top:12px}.title-play-actions button{padding:7px 9px}.title-account strong{font-size:12px}}
@media(max-height:580px){.title-shell{padding:16px;height:calc(100% - 16px)}.title-heading{margin-bottom:12px}.title-heading h1{font-size:30px}.title-eyebrow{display:none}.save-identity{margin:0 0 12px}.save-identity canvas{width:48px;height:58px}.save-card-stats{padding-bottom:10px;gap:8px}.title-play-actions{padding-top:10px}.title-play-actions button{padding:6px 10px}.title-account{margin-top:12px;padding-top:10px}}


.map-tools{display:flex;justify-content:center;align-items:center;gap:6px}.map-tools button{padding:4px 8px}.map-tools label{font-size:12px}#map-image{touch-action:none}

/* Shared menu geometry: pack, recipe browser and action rail; one stable shell. */
#work-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(1320px,calc(100% - 32px));height:min(795px,calc(100% - 32px));display:flex;flex-direction:column;overflow:hidden;background:#142124f7;border:1px solid #6f7c716b;border-radius:2px;color:#e0e4d9;box-shadow:0 15px 60px #0006;--detail-width:290px;--menu-line:#81917b38;}
.work-heading{display:flex;align-items:center;gap:8px;padding:8px 14px;min-height:56px;background:linear-gradient(110deg,#1d3030,#15282c);border-bottom:1px solid #3b5355;flex:none}
.work-title{font:600 19px var(--game-font);min-width:155px;max-width:230px;display:flex;align-items:center;line-height:1.2}.work-tabs{display:flex;gap:0;min-width:0;flex:1;align-items:stretch}.work-heading button{padding:8px 10px;font-size:12px;white-space:nowrap}#work-panel button,#pack button{background:#24333570;border-color:#61756c66;color:#dce2d5;border-radius:2px}#work-panel button:hover,#pack button:hover{background:#42534780}
.work-vitals{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:20px;padding:8px 18px;height:44px;flex:none;border-bottom:1px solid var(--menu-line);background:#142124}.menu-vital{display:grid;grid-template-columns:1fr auto;gap:2px 6px;font-size:11px;align-content:center}.menu-vital b{white-space:nowrap}.menu-vital progress{grid-column:1/-1;width:100%;height:3px;appearance:none;-webkit-appearance:none;border:0;background:#304443;accent-color:var(--vital-color)}.menu-vital progress::-webkit-progress-bar{background:#304443}.menu-vital progress::-webkit-progress-value{background:var(--vital-color)}.menu-vital progress::-moz-progress-bar{background:var(--vital-color)}
.work-content{flex:1;min-height:0;overflow:hidden}.recipe-layout{display:grid;grid-template-columns:155px minmax(0,1fr);height:100%;min-height:0}.recipe-layout.with-pack{grid-template-columns:285px minmax(0,1fr)}.craft-workspace{padding:12px 16px;min-width:0;min-height:0;display:flex;flex-direction:column}.recipe-points{height:26px;display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:.08em;text-transform:uppercase;border-bottom:1px solid var(--menu-line);margin-bottom:10px;flex:none;color:#bbc8b6}.rp-total{color:#edcc80;font-size:14px;letter-spacing:0;white-space:nowrap}.recipe-columns{display:grid;grid-template-columns:minmax(0,1fr) var(--detail-width);gap:16px;flex:1;min-height:0}.recipe-column{display:flex;flex-direction:column;min-width:0;min-height:0}.recipe-column>input{width:100%;height:32px;padding:6px 9px;font:12px var(--game-font);background:#0c191d99;color:#dce2d5;border:1px solid #61756c66;border-radius:2px}.recipe-list{display:flex;flex-wrap:wrap;align-content:start;gap:14px 12px;overflow:auto;scrollbar-width:thin;scrollbar-gutter:stable;flex:1;min-height:0;padding-right:5px}.category-heading{display:flex;align-items:center;gap:6px;width:100%;padding:4px 0!important;margin:2px 0 7px;border:0!important;border-bottom:1px solid var(--menu-line)!important;background:transparent!important;font-size:10px;letter-spacing:.07em;text-transform:uppercase;text-align:left;color:#c3cdbb!important}.category-heading>span:first-child{color:#d5bd82;width:10px}.category-heading small{margin-left:auto;color:#afbfba}.recipe-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:5px}.recipe-row{position:relative;width:100%;height:67px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px!important;min-width:0;background:#0e1c2060!important}.recipe-row img{width:36px;height:36px;object-fit:contain;image-rendering:pixelated}.recipe-row>span{font-size:10px;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:14px}.recipe-lock{position:absolute;right:2px;top:0;color:#91c7dc;font-size:11px}.recipe-detail{min-width:0;min-height:280px;flex:1;overflow:auto;border:0;padding:10px 12px;background:#0b171b70;scrollbar-width:thin;display:flex;flex-direction:column}.recipe-detail-heading{display:flex;align-items:center;gap:10px;height:62px;min-height:62px;overflow:hidden}.recipe-icon{width:48px;height:48px;object-fit:contain;image-rendering:pixelated;flex:none}.recipe-detail h2{font:600 20px/1.15 var(--game-font);margin:3px 0}.recipe-materials-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;height:26px;min-height:26px}.recipe-materials-heading .section-label{margin:0;min-width:0}.recipe-component-toggle{font-size:10px!important;padding:4px 6px!important}.recipe-plan-load{grid-column:1/-1;font-size:11px}.recipe-plan-load .stat-pair{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;white-space:normal;margin:0}.recipe-plan-load .stat-value{white-space:nowrap}.recipe-plan-note{grid-column:1/-1;font-size:10px;line-height:1.4;color:#b8c7bf}.recipe-costs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 4px;margin-top:8px;height:112px;min-height:112px;align-content:start;overflow:auto}.material-cost{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px}.material-cost img{width:28px;height:28px;object-fit:contain;image-rendering:pixelated;flex:none}.material-cost>span{display:flex;flex-direction:column;gap:2px;min-width:0;line-height:1.2;overflow-wrap:anywhere}.material-cost b{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.missing{color:#e6a58a}.menu-queue{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;height:44px;align-items:center;font-size:12px;color:#afbfba;border-top:1px solid var(--menu-line);margin-top:8px;flex:none}.menu-queue button{font-size:11px;padding:4px 6px}.recipe-stations{padding:12px 8px 12px 12px;border-right:1px solid #3b5355;overflow:auto;font-size:11px}.recipe-stations strong{display:block;margin-bottom:8px;color:#afbfba}.recipe-stations button{display:block;width:100%;text-align:left;background:transparent!important;border-color:transparent!important;padding:4px 6px;font-size:11px;margin:2px 0}.recipe-stations button.chosen{border-color:#d5bd82!important;background:#344039!important}.recipe-stations button.filtered{color:#edcc80}
#work-panel #pack{position:static;transform:none;width:100%;height:100%;padding:12px 16px;border:0;border-right:1px solid var(--menu-line);border-radius:0;background:transparent;overflow:auto;scrollbar-width:thin;min-height:0;display:flex;flex-direction:column}#work-panel .pack-heading strong{font:600 11px var(--game-font);color:#c3cdbb;text-transform:uppercase;letter-spacing:.1em}#work-panel .pack-heading [data-close]{display:none}#work-panel .pack-capacity{font-size:11px;margin:6px 0}#work-panel .pack-layout{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}#work-panel .pack-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;align-content:start}#work-panel .pack-grid .item-slot{height:46px;background:#0e1c2060;border-color:#61756c66}#work-panel .inspect{border-left:0;border-top:1px solid var(--menu-line);padding:10px 0 0;min-height:82px;flex:0 0 82px;overflow:visible;margin-top:auto}
.menu-hotbar-dock{position:relative;min-height:62px;flex:none;border-top:1px solid var(--menu-line);display:flex;align-items:center;justify-content:space-between;padding:5px 14px;font-size:11px;background:#0d181b80}.menu-hotbar-dock #hotbar-stack{position:static;transform:none;margin:0 auto;max-width:75%}.menu-hotbar-dock #hotbar{background:transparent;border:0}.menu-sections{display:none;padding:4px 12px;gap:5px}.menu-sections button{font-size:11px;padding:4px 7px}
.character-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;height:100%;padding:16px 20px;overflow:auto}.character-layout canvas{width:105px;height:125px;image-rendering:pixelated;align-self:start;justify-self:center}.character-layout h2{font:26px var(--game-font);margin:6px 0}.character-layout p{font-size:12px;margin:8px 0}.character-layout h3{font-size:15px}.character-layout small{font-size:12px;color:#b3c4bd}
.station-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:12px;height:100%;min-height:0}.station-layout>div{min-width:0;overflow:auto;padding:12px}.station-layout h2{font-size:16px;margin:0 0 6px}.station-output{display:grid;grid-template-columns:repeat(auto-fill,47px);gap:5px}.station-layout .item-slot{width:47px;height:47px}.transfer-actions{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0;padding:8px 0;border-top:1px solid #3b5355;border-bottom:1px solid #3b5355}.transfer-actions button{font-size:12px;padding:6px 9px}.device-status{min-height:30px;font-size:12px;color:#d5bd82}.station-layout p{font-size:12px}.station-layout>div>.item-slot{display:inline-block;margin-right:8px}
#work-panel #debug{margin:12px;height:calc(100% - 24px);overflow:auto}#vitals{position:absolute;top:20px;left:24px;display:grid;grid-template-columns:repeat(5,48px);gap:9px;width:max-content;padding:0}#craft-progress{position:absolute;bottom:140px;left:50%;transform:translateX(-50%);background:#132b25eb;display:grid;grid-template-columns:28px minmax(0,1fr) 22px;grid-template-rows:auto 7px;gap:4px 8px;width:240px;max-width:calc(var(--ui-vw)*100 - 24px);padding:7px 8px;border-radius:5px;font-size:12px}.craft-card progress{grid-column:2;grid-row:2;width:100%;height:7px;accent-color:#efd893}.craft-card button{grid-column:3;grid-row:1/3;align-self:center;padding:1px 5px}#recipe-tracker{position:absolute;right:20px;top:65px;width:max-content;max-width:calc(var(--ui-vw)*100 - 40px);background:#132b25eb;padding:8px;font-size:12px;border-radius:5px}.tracker-heading{display:grid;grid-template-columns:18px auto auto;align-items:center;gap:6px;margin-bottom:3px}.tracker-heading span{text-align:right}.tracker-item{display:grid;grid-template-columns:18px auto auto;align-items:center;gap:6px}.tracker-heading img,.tracker-item img{width:18px;height:18px;object-fit:contain;image-rendering:pixelated}.tracker-item span:last-child{text-align:right}

.recipe-category{flex:0 0 100%;min-width:0}.recipe-category.small-category{flex:0 1 var(--category-width);max-width:100%}.craft-detail-rail{display:flex;flex-direction:column;min-width:0;min-height:0;border-left:1px solid var(--menu-line);padding-left:12px;overflow:auto;scrollbar-width:thin}.section-label{font:600 9px/1.4 var(--game-font);letter-spacing:.1em;text-transform:uppercase;color:#a6b89f}.recipe-controls{margin-top:auto;padding-top:6px;flex:none}.work-heading .work-tabs button,.character-tabs button{border:0!important;border-radius:0!important;background:transparent!important;flex:1}.work-heading .work-tabs button.chosen,.character-tabs button.chosen{background:#a6b07915!important;box-shadow:inset 0 -2px #d5bd82;color:#f0dfad!important}.work-heading [data-work-close]{align-self:center;width:30px;height:30px;padding:0;font-size:17px}.recipe-row.locked:not(.chosen) img{opacity:.55}.recipe-row.learned:not(.chosen){border-color:#99b79e88!important}.recipe-row.chosen{background:#9d8f5d28!important}.craft-detail-rail .menu-queue{position:sticky;bottom:0;background:#142124;z-index:1}.craft-detail-rail .menu-queue .craft-card span{display:none}.craft-detail-rail .menu-queue .craft-card img{grid-column:1;grid-row:1}.craft-detail-rail .menu-queue .craft-card progress{grid-column:1/-1}.craft-detail-rail .menu-queue .craft-card button{grid-column:2;grid-row:1}.craft-detail-rail .menu-queue .craft-card::after{content:attr(data-quantity);position:absolute;right:5px;bottom:6px;font:10px/1 var(--game-font);color:#e0e4d9;text-shadow:0 1px 2px #000;pointer-events:none}.character-condition h3,.character-effects h3{font:600 11px var(--game-font);letter-spacing:.1em;text-transform:uppercase;color:#bbc8b6;border-bottom:1px solid var(--menu-line);padding-bottom:8px}.character-gear .item-slot:disabled{opacity:.7;background:transparent!important}
@media(max-width:1200px){#work-panel{--detail-width:250px}.work-heading{flex-wrap:wrap;min-height:92px}.work-title{flex:1}.work-tabs{order:2;flex-basis:100%}.recipe-layout.with-pack,.station-layout{grid-template-columns:245px minmax(0,1fr)}}
.compact-ui #work-panel{--detail-width:165px}.compact-ui .work-title{min-width:0;max-width:none}.compact-ui .work-heading{padding:6px 8px;flex-wrap:wrap;min-height:84px;gap:4px}.compact-ui .work-heading button{font-size:11px;padding:5px 6px}.compact-ui .work-tabs{order:2;flex-basis:100%;overflow-x:auto;scrollbar-width:thin;flex-wrap:nowrap}.compact-ui .work-vitals{height:54px;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px 6px;padding:5px 8px}.compact-ui .menu-vital{font-size:10px}.compact-ui .menu-sections:not([hidden]){display:flex}.compact-ui .recipe-layout.with-pack{display:block}.compact-ui #work-panel[data-mobile=backpack][data-mode=craft] .craft-workspace{display:none}.compact-ui #work-panel[data-mobile=crafting] #pack{display:none!important}.compact-ui #work-panel .craft-workspace{height:100%;padding:8px}.compact-ui #work-panel .pack-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.compact-ui #work-panel #pack{padding:8px}.compact-ui .recipe-layout:not(.with-pack){grid-template-columns:85px minmax(0,1fr)}.compact-ui #work-panel[data-mode=recipes]{--detail-width:140px}.compact-ui .recipe-columns{gap:6px}.compact-ui .recipe-detail{padding:6px}.compact-ui .recipe-detail h2{font-size:16px}.compact-ui .recipe-row{width:100%;height:56px}.compact-ui .recipe-tiles{grid-template-columns:repeat(auto-fill,minmax(46px,1fr))}.compact-ui .recipe-row img{width:28px;height:28px}.compact-ui .recipe-costs{grid-template-columns:1fr;height:192px;min-height:192px}.compact-ui .craft-detail-rail{overflow:auto}.compact-ui .craft-detail-rail .menu-queue{grid-template-columns:repeat(5,minmax(38px,1fr));overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.compact-ui .recipe-detail{padding:6px;min-height:310px;flex:none}.compact-ui .recipe-detail-heading{height:66px;min-height:66px;gap:4px}.compact-ui .recipe-icon{width:30px;height:30px}.compact-ui .recipe-stations{padding:8px 4px;font-size:10px}.compact-ui .menu-hotbar-dock{padding:4px;min-height:55px}.compact-ui .menu-hotbar-dock #hotbar-stack{max-width:100%}.compact-ui .character-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);padding:8px;gap:8px;overflow:hidden}.compact-ui .character-layout>div:last-child{grid-column:1/-1}.compact-ui .station-layout{grid-template-columns:1fr;overflow:auto}.compact-ui #recipe-tracker{right:12px;top:98px;max-width:calc(var(--ui-vw)*100 - 24px)}.compact-ui #vitals{left:10px;top:10px;grid-template-columns:repeat(5,38px);gap:6px;padding:0}

#work-panel .window{width:100%;height:100%;max-height:none;background:transparent;border:0;border-radius:0;padding:12px;overflow:auto}#work-panel .window h1{display:none}#work-panel #map{position:static;height:100%;background:transparent;overflow:hidden;padding:10px}#work-panel .window fieldset{max-width:600px;margin:10px 0;padding:10px}#work-panel .window fieldset legend{font-size:16px}#work-panel #sound{display:flex;flex-direction:column;align-items:stretch}#work-panel .review-control{display:flex}.device-workspace{display:flex;flex-direction:column}.transfer-group{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.transfer-actions label{font-size:11px;display:flex;align-items:center;gap:4px}.device-feedback{height:24px;flex:none;color:#d5bd82;font-size:11px;margin:0}.reserve-row{display:flex;align-items:center;gap:10px;border-top:1px solid #3b5355;padding:8px 0}.reserve-state{flex:1;min-width:0}.reserve-state strong{display:block;font-size:12px}.reserve-state progress{display:block;height:5px;width:min(220px,100%);accent-color:#d5bd82;margin:5px 0}.reserve-state small{font-size:11px;color:#b3c4bd}.station-output{flex:1;align-content:start;overflow:auto;min-height:110px}.compact-ui #work-panel[data-mode=station][data-mobile=backpack] .device-workspace{display:none}.compact-ui #work-panel[data-mode=station][data-mobile=crafting] #pack{display:none!important}.compact-ui .device-workspace{height:100%}

.character-card{padding:12px;background:#0b171b70;border:0;border-radius:0;align-self:start}.character-card>strong,.character-main>strong{font-size:11px;color:#afbfba}.character-card canvas{display:block;margin:6px auto}.character-card>progress{width:100%;height:5px;accent-color:#d5bd82}.character-card>small{display:block;margin-top:6px}.character-main{overflow:auto;min-height:0}.character-tabs{display:flex;gap:0;margin-bottom:12px;border-bottom:1px solid var(--menu-line)}.character-tabs button{font-size:12px;min-width:100px;height:34px}.character-stats{display:grid;grid-template-columns:1fr;gap:0}.stat-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 10px;border-bottom:1px solid var(--menu-line);padding:5px 0;min-height:29px}.stat-card progress{grid-column:1/-1;width:100%;height:3px;accent-color:#d5bd82}.stat-card strong{font-size:14px;margin:0}.options-grid{display:grid;grid-template-columns:minmax(0,360px) minmax(0,320px);gap:18px;width:min(100%,700px);align-items:start}.options-save-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding-top:12px}.options-save-actions p{width:100%}.compact-ui .options-grid{grid-template-columns:1fr;gap:6px}.compact-ui .character-stats{grid-template-columns:1fr}.compact-ui .character-card{padding:8px;display:grid;grid-template-columns:80px minmax(0,1fr);gap:3px 10px;grid-column:1/-1}.compact-ui .character-card canvas{grid-column:1;grid-row:1/5;width:70px;height:84px;margin:0}.compact-ui .character-card>h2,.compact-ui .character-card>p,.compact-ui .character-card>progress,.compact-ui .character-card>small{grid-column:2;margin:0}.compact-ui .character-gear{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:6px}.compact-ui .character-gear .item-slot{height:32px}.compact-ui .character-card h2{font-size:20px}

#work-panel .options-grid fieldset{height:auto;max-width:none;background:#0b171b70;border:1px solid var(--menu-line);border-radius:2px;padding:10px 12px;margin:0}#work-panel .options-grid{padding:2px 0 0}#work-panel #sound{gap:0}#work-panel #sound legend{font:600 15px var(--game-font)}#work-panel #sound label{font-size:12px;margin:0;display:flex;justify-content:space-between}#work-panel #sound output{color:#d5bd82;font-size:12px}#work-panel #sound input[type=range]{width:100%;accent-color:#d5bd82;margin:0}#work-panel #sound .option-switch{justify-content:flex-start;gap:7px}#work-panel .options-grid>div:last-child{display:flex;flex-direction:column;gap:12px}#work-panel .options-grid>div:last-child fieldset{height:auto}.options-save-actions button{font-size:12px}

.condition-bar{appearance:none;display:block;width:100%;height:8px;border:1px solid #b2ba8670;border-radius:3px;overflow:hidden;background:#13221e;margin:5px 0}
.condition-bar::-webkit-progress-bar{background:#13221e}.condition-bar::-webkit-progress-value{background:linear-gradient(#c7d28b,#85984f)}.condition-bar::-moz-progress-bar{background:#9dac65}
#gather-health{display:block;width:140px;margin:5px auto 1px}.slot-condition{position:absolute;bottom:2px;left:5px;width:calc(100% - 10px);height:4px;margin:0;pointer-events:none}.item-slot.broken img{opacity:.45}.item-slot.broken .condition-bar{border-color:#b97057}


#save-alert{position:absolute;top:16px;right:16px;max-width:280px;padding:8px 12px;background:#472d28;color:#f0c9b3;border-radius:5px;font-size:12px}


#work-panel #sound .audio-row{display:grid;grid-template-columns:82px minmax(0,1fr) 35px;gap:8px;align-items:center;height:34px}#work-panel #sound .audio-row output{text-align:right;margin:0}#work-panel #sound .option-switch{margin-top:10px}#work-panel #hotbar-stack{max-width:100%}.recipe-list{scrollbar-color:#6b7b66 #142728}

#mobile-menu{display:none;position:fixed;right:16px;bottom:90px;width:44px;height:44px;padding:0;font-size:22px;z-index:3}@media(max-width:700px) and (pointer:coarse) and (hover:none){#mobile-menu{display:block}}

.item-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:32px 32px;gap:5px}.item-actions button{height:32px;min-width:0;padding:4px!important;font:12px var(--game-font)!important;white-space:nowrap}.item-actions [data-move]{grid-area:1/1}.item-actions [data-drop]{grid-area:1/2}.item-actions [data-destroy]{grid-area:1/3}.item-actions [data-use]{grid-area:2/1}.item-actions [data-repair]{grid-area:2/2}.item-actions [data-store]{grid-area:2/3}
.batch-controls{display:grid;grid-template-columns:minmax(26px,1fr) 22px minmax(30px,1fr) 22px minmax(26px,1fr);width:100%;gap:4px;margin:8px 0}.batch-controls button,.batch-controls input{height:32px;min-width:0;width:100%;padding:3px!important;font:12px var(--game-font)!important;white-space:nowrap}.batch-controls input{text-align:center;background:#102025;color:#dce2d5;border:1px solid #3b5355;appearance:textfield}.batch-controls input::-webkit-inner-spin-button{appearance:none}.recipe-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:100%;height:32px}.recipe-actions button{height:32px;min-width:0;padding:3px!important;font:12px var(--game-font)!important;white-space:nowrap}
#item-tooltip{position:absolute;z-index:20;pointer-events:none;width:265px;max-width:calc(var(--ui-vw)*100 - 16px);padding:13px 15px;background:#11252bf7;border:1px solid #8f9d84;border-radius:7px;box-shadow:0 9px 28px #0008;color:#e7e7d9}#item-tooltip strong{font:16px var(--game-font);color:#efdab0}#item-tooltip p{font:13px/1.5 var(--game-font);margin:7px 0;color:#d0dad2}#item-tooltip dl{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;font-size:12px;margin:0}#item-tooltip dd{margin:0;text-align:right}#item-tooltip dt{color:#b8c7bf}#item-tooltip .item-comparison{font-size:12px;margin:6px 0}#item-tooltip .item-comparison-from{font-size:11px;color:inherit}
.stack-split{position:absolute;z-index:6;width:240px;height:145px;padding:14px;background:#172e2bf5;border:1px solid #d5bd82;border-radius:7px;display:grid;gap:6px;grid-template-columns:1fr 70px}.stack-split strong,.stack-split input{grid-column:1/-1}.stack-split input{width:100%}.stack-split output{font-size:13px}.stack-split button{font-size:12px}
.controls-page{width:min(100%,700px);height:100%;overflow:auto}.controls-page h2{font:20px var(--game-font);margin:12px 0}.binding-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px}.binding-list label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;margin:0}.binding-list button{width:124px;height:30px;font-size:11px!important;padding:3px!important;white-space:nowrap}.control-footer{display:flex;align-items:center;gap:10px;margin-top:12px;font-size:12px;min-height:32px}.inventory-shortcuts{font-size:12px;line-height:1.7;margin-top:12px;color:#b8c7bf}.compact-ui .binding-list{grid-template-columns:1fr}

#work-panel button.chosen,#work-panel .item-slot.selected,#hotbar .item-slot.selected{border-color:#d5bd82;background:#344039;box-shadow:inset 0 -2px #d5bd82}

.recipe-meta{display:block;font:10px/1.3 var(--game-font);color:#a8bbae;margin-top:4px}.compact-ui .batch-controls{grid-template-columns:minmax(22px,1fr) 18px minmax(26px,1fr) 18px minmax(22px,1fr);gap:2px}

.burdened{color:#edb17e!important}



.options-save-actions a{color:#d5bd82;font-size:12px;align-self:center;pointer-events:auto}

.craft-card img{grid-column:1;grid-row:1/3;width:28px;height:28px;object-fit:contain;image-rendering:pixelated}.craft-card span{grid-column:2;grid-row:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.world-hint{position:absolute;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:max-content;padding:0;font-size:12px;pointer-events:none}.world-hint kbd{font:700 12px var(--game-font);min-width:12px;text-align:center;border:0;padding:0;background:none;color:#f3d69a}

.debug-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;max-width:740px}.debug-tools fieldset{display:flex;flex-direction:column;gap:8px;min-width:0}.debug-tools input[type=search],.debug-tools select{width:100%;font:12px var(--game-font)}.debug-tools select{height:160px}.debug-row{display:flex;gap:6px}.debug-row input{min-width:0;width:80px}.debug-tools label{font-size:12px}.debug-tools output{margin:0;font-size:12px}@media(max-width:600px){.debug-tools{grid-template-columns:1fr}}

.debug-tools input[type=search],.debug-row input{background:#102126;color:#ede6d4;border:1px solid #52676b;border-radius:4px;padding:6px 8px;font:12px var(--game-font)}.debug-tools input::placeholder{color:#adbfc0}

#work-panel .menu-queue .craft-card img{width:20px;height:20px}#work-panel .menu-queue .craft-card button{padding:0 4px;height:18px}#work-panel .menu-queue .craft-card{position:relative;transform:none;left:auto;bottom:auto;display:grid;grid-template-columns:minmax(0,1fr) 14px;grid-template-rows:24px 3px;gap:3px;width:100%;max-width:100%;height:36px;min-width:0;padding:3px;font-size:10px;background:transparent;border:1px solid var(--menu-line);border-radius:1px}.menu-queue .queue-empty{background:#1b303440}.craft-card[hidden]{display:none!important}

.pack-capacity{display:flex;align-items:center;justify-content:space-between;gap:5px;white-space:nowrap;margin-bottom:3px;font-variant-numeric:tabular-nums}.encumbrance-bar{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:2px;overflow:hidden;background:#304443;margin:0 0 8px;accent-color:#94b8a0}.encumbrance-bar::-webkit-progress-bar{background:#304443}.encumbrance-bar::-webkit-progress-value{background:#94b8a0}.encumbrance-bar::-moz-progress-bar{background:#94b8a0}.encumbrance-bar.burdened{accent-color:#cd8a73}.encumbrance-bar.burdened::-webkit-progress-value{background:#cd8a73}.encumbrance-bar.burdened::-moz-progress-bar{background:#cd8a73}#interface-settings .quality-control+.quality-control{margin-top:8px}

/* Progression reuses the existing fixed menu shell; only lists scroll. */
.objectives-layout{height:100%;min-height:0;padding:14px;display:flex;flex-direction:column;gap:12px}
.objective-tiers{display:flex;flex-wrap:wrap;gap:5px;flex-shrink:0}.objective-tiers button{font-size:11px;padding:7px 9px}
.objective-journal{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.3fr);gap:20px;flex:1;min-height:0}
.objective-library{display:flex;flex-direction:column;min-width:0;min-height:0}.objective-sections{display:flex;gap:6px;padding-bottom:10px;border-bottom:1px solid var(--menu-line)}.objective-sections button{flex:1;font-size:12px}
.objective-list{min-height:0;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:7px;padding:7px 3px}
.objective-card{position:relative;background:#0b171b70;border:1px solid var(--menu-line);border-radius:1px;padding:11px 12px;flex-shrink:0;cursor:pointer}
.objective-card strong,.objective-card small{display:block}.objective-card strong{font-size:14px}.objective-card small{font-size:11px;color:#b7c8bf;margin-top:4px}
.objective-card.active{background:#293b35}.objective-card.selected strong{color:#efd893}.objective-card.complete{border-color:#698b70}.objective-card:focus-visible{outline:2px solid #efd893;outline-offset:2px}
.objective-notes{min-width:0;overflow:auto;scrollbar-width:thin;padding:4px 16px 20px 20px;border-left:1px solid var(--menu-line)}
.objective-notes h2{font-size:25px;margin:7px 0 12px;color:#efd893}.objective-notes h3{font-size:12px;letter-spacing:.06em;text-transform:uppercase;margin:22px 0 10px;padding-bottom:7px;border-bottom:1px solid var(--menu-line);color:#d5bd82}
.objective-eyebrow{font-size:11px;color:#b7c8bf}.objective-summary{font-size:14px;line-height:1.5}.objective-notes ol{padding-left:22px;margin:8px 0}.objective-notes li{font-size:13px;line-height:1.65;margin:0 0 12px;padding-left:4px}
.objective-note,.objective-recipes p{font-size:12px;line-height:1.65;color:#b7c8bf}.objective-recipes>div{padding:8px 0;border-bottom:1px solid var(--menu-line)}.objective-recipes strong{font-size:13px}.objective-recipes p{margin:4px 0}
.objective-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;font-size:12px}.objective-status progress{width:110px;height:4px;accent-color:#d5bd82}.objective-status small{margin-left:auto;color:#edcc80}.objective-empty{font-size:11px;color:#9caea5;margin-top:20px}
@media(max-width:700px){.objectives-layout{padding:8px;gap:7px}.objective-tiers{gap:3px}.objective-tiers button{font-size:10px;padding:5px 6px}.objective-journal{grid-template-columns:1fr;grid-template-rows:minmax(90px,30%) minmax(0,1fr);gap:10px}.objective-notes{padding:10px 6px 20px;border-left:0;border-top:1px solid var(--menu-line)}.objective-notes h2{font-size:21px}.objective-sections{padding-bottom:5px}.objective-card{padding:8px}.objective-card strong{font-size:12px}}
.advancement-screen{position:absolute;left:50%;top:72px;transform:translateX(-50%);width:min(350px,90vw);padding:16px 24px;background:linear-gradient(100deg,#11292bf5,#294441ed,#11292bf5);border:0;border-top:2px solid #d5bd82;border-radius:2px;box-shadow:0 8px 24px #0006;z-index:45;text-align:center;pointer-events:none;overflow:hidden}.advancement-screen[hidden]{display:none}.advancement-screen img{width:52px;height:52px;padding:7px;border:1px solid #d5bd8280;border-radius:50%;background:#d5bd8215;object-fit:contain;image-rendering:pixelated}.advancement-screen small{display:block;color:#edcc80;letter-spacing:.04em;margin:7px 0}.advancement-screen h2{font:600 22px var(--game-font);margin:8px 0}.advancement-screen h2.has-transition{line-height:30px}.advancement-arrow{display:inline-block;position:relative;width:1em;height:.6em}.advancement-arrow::before{content:"";position:absolute;left:0;top:50%;width:100%;border-top:2px solid currentColor}.advancement-arrow::after{content:"";position:absolute;right:0;top:50%;width:.35em;height:.35em;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:translateY(-50%) rotate(45deg)}.advancement-screen p{font-size:13px;color:#b7c8bf;margin:8px 0 0}.advancement-screen progress{width:100%;height:2px;opacity:.6;accent-color:#d5bd82;margin-top:14px}

.skills-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px;max-width:100%;align-content:start;align-items:stretch}.skill-card{display:flex;flex-direction:column;margin:0;padding:10px;background:#0b171b70;border:0;border-top:2px solid #74886b80;border-radius:0}.skill-card h3{display:flex;align-items:center;gap:7px;margin:0;font-size:13px}.skill-card h3 img{width:28px;height:28px;object-fit:contain;image-rendering:pixelated}.skill-card progress{margin-top:auto;width:100%;height:5px;accent-color:#d5bd82}.skill-card p{font-size:11px;color:#b7c8bf;line-height:1.35;margin:6px 0}.skill-benefits{display:grid;gap:3px;margin:6px 0}.skill-benefits>div{display:flex;justify-content:space-between;gap:10px;font-size:11px}.skill-benefits strong{color:#edcc80;font-size:11px}.skill-card small{font-size:10px}

.station-panel{flex:none;min-width:0;border-top:1px solid var(--menu-line);margin-top:8px;padding-top:8px}.station-toolbar{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:6px;min-height:34px}.station-toolbar .device-status{min-height:0;font-size:11px;white-space:normal;line-height:1.4}.station-toolbar .transfer-actions{border:0;padding:0;margin:0;flex-wrap:wrap}.station-toolbar button{height:28px;padding:3px 7px;font:11px var(--game-font);white-space:nowrap}.station-panel .reserve-row{border:0;padding:4px 0;height:52px}.station-panel .reserve-row>.item-slot,.station-panel .station-output>.item-slot{width:42px;height:42px}.station-panel .station-output{grid-template-columns:repeat(auto-fill,42px);flex:none;min-height:42px;max-height:210px;overflow:auto;gap:4px}.craft-workspace .station-output{height:auto;max-height:88px;grid-auto-rows:42px;overflow-x:hidden}.station-panel .device-feedback{height:18px;margin:0;font-size:11px}.station-panel .reserve-state progress{width:100%}.station-panel .reserve-state small{font-size:10px}.compact-ui .station-toolbar{min-height:64px;align-items:stretch;flex-direction:column;gap:2px}.compact-ui .station-toolbar .transfer-actions{flex-wrap:wrap}.compact-ui .craft-workspace .station-output{height:auto}

.weather-hud{width:196px;height:60px;position:absolute;top:18px;right:18px;display:flex;align-items:center;gap:9px;padding:7px 10px;border-radius:6px;background:#132b25d9;color:#dedfcd;pointer-events:auto;font-size:11px}.weather-hud svg{width:22px;height:22px;flex:none}.weather-symbol{color:#d6c38e}.weather-hud>div:not(.weather-forecast){display:flex;flex-direction:column;line-height:14px}.weather-temperature{font-size:13px}.weather-wind{color:#adbfbc}.weather-forecast{display:flex;gap:5px;border-left:1px solid #6e847630;padding-left:8px}.weather-forecast svg{width:16px;height:16px}.weather-forecast>span{display:grid;justify-items:center;width:16px;flex:none}.weather-forecast small{min-height:7px;font-size:7px;line-height:7px;letter-spacing:0;color:#d6c38e}.weather-forecast svg,.weather-forecast small{opacity:.6}.weather-forecast>span:is(:hover,:focus-visible,.virtual-hover,:has(.virtual-hover))::after{content:attr(aria-label);position:absolute;top:calc(100% + 6px);right:0;width:230px;max-width:calc(var(--ui-vw)*100 - 36px);padding:8px 10px;box-sizing:border-box;border:1px solid #81917b70;border-radius:5px;background:#11252bf7;color:#ede6d4;font:12px/1.5 var(--game-font);white-space:normal;pointer-events:none;z-index:5}.weather-hud.climate-danger{border:1px solid #df9474}.weather-shade{position:fixed;inset:0;pointer-events:none;background:#0c132e;opacity:0;transition:opacity 1s linear}.weather-precip{position:fixed;left:-128px;right:-128px;top:0;bottom:-384px;background-repeat:repeat;pointer-events:none;will-change:transform}.character-gear{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0 0}.character-gear .item-slot{width:100%;height:42px;min-width:0}.character-gear small{text-transform:capitalize;font-size:10px}

#recipe-tracker{top:100px}.compact-ui .weather-hud{top:12px;right:12px;width:126px}.compact-ui .weather-forecast{display:none}

.water-container .condition-bar::-webkit-progress-value{background:#87b9ce}.water-container .condition-bar::-moz-progress-bar{background:#87b9ce}

.weather-exposure{position:absolute;left:10px;bottom:3px;width:calc(100% - 20px);height:2px;appearance:none;border:0}.weather-exposure::-webkit-progress-bar{background:#40554944}.weather-exposure::-webkit-progress-value{background:#d5bd82}.climate-danger .weather-exposure::-webkit-progress-value{background:#df9474}

#cloud-panel .save-window{height:min(500px,calc(100% - 32px))}.cloud-world-details{display:grid;gap:5px}.cloud-world-details small{font-size:12px;color:#b5c8b8}

.status-effects{position:absolute;top:calc(100% + 8px);left:0;width:100%;display:flex;flex-wrap:wrap;gap:5px;pointer-events:auto}.status-effect{position:relative;width:29px;height:34px;display:grid;justify-items:center;align-content:center;color:#d9bf78;border:1px solid #a28d6550;border-radius:4px;background:#142b25}.status-effect svg{width:21px;height:21px}.status-effect small{font-size:9px;line-height:9px;letter-spacing:1px}.status-effect[data-severity="0"]{color:#a6cfaa}.status-effect[data-severity="2"]{color:#e6a26b}.status-effect[data-severity="3"],.status-effect[data-severity="4"]{color:#f18475}.world-time{font-size:10px;color:#c1c7ac}

.weather-hud.in-cave .weather-forecast,.weather-hud.in-cave .weather-wind{display:none}
.weather-hud.in-cave:is(:hover,:focus-within,.virtual-hover,:has(.virtual-hover)) .weather-forecast{display:flex;position:absolute;top:100%;right:0;padding:8px;border:1px solid #81917b70;border-radius:5px;background:#11252bf7;z-index:5}
.weather-hud.in-cave{cursor:help}.weather-hud.in-cave{width:126px;cursor:help}

.vital-icon svg{width:16px;height:16px;display:block}.status-effect[data-effect=fatigue]{color:#82aade}

#title-screen,#cloud-panel{background:#0c1d25}

.weather-symbol{display:grid;justify-items:center}.weather-severity{font-size:9px;letter-spacing:2px;line-height:9px}

.advancement-screen[data-kind=objective]{border-color:#98c9a0}.advancement-screen[data-kind=skill]{border-color:#91bad0}



.hud-vital{position:relative;width:48px;height:48px;border-radius:50%;background:conic-gradient(#59696a calc((100 - var(--fill,100))*1%),var(--vital-color) 0);box-shadow:0 1px 3px #0005}.hud-vital .vital-icon{position:absolute;inset:9px;background:#1c2e31e8;border-radius:50%;display:grid;place-items:center}.hud-vital .vital-icon svg{width:22px;height:22px;background:conic-gradient(#59696a calc((100 - var(--fill,100))*1%),var(--vital-color) 0);mask-size:contain;mask-repeat:no-repeat;mask-position:center}.meter-ticks{position:absolute;inset:0;width:100%;height:100%;color:#192f32df;z-index:1;pointer-events:none}.hud-vital progress{position:absolute;opacity:0;width:1px;height:1px}.hud-xp{grid-column:1/-1;width:100%;height:4px;appearance:none;border:0;border-radius:3px;overflow:hidden;background:#354548}.hud-xp::-webkit-progress-bar{background:#354548}.hud-xp::-webkit-progress-value{background:#d5bd82}.hud-xp::-moz-progress-bar{background:#d5bd82}.compact-ui .hud-vital{width:38px;height:38px}.compact-ui .hud-vital .vital-icon{inset:7px}.compact-ui .hud-vital .vital-icon svg{width:18px;height:18px}.character-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:28px}.character-overview h3{margin:0 0 10px}.effect-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:9px}.effect-card{padding:10px;border:0;border-left:2px solid #8d9a6c66;border-radius:0;background:#0b171b70}.effect-card>div{display:flex;align-items:center;gap:7px;margin-bottom:5px}.effect-card .effect-line{display:block;font:400 12px/1.35 var(--game-font);color:#b7c8bf;margin:3px 0}.effect-card .effect-modifiers{display:flex;flex-wrap:wrap;gap:3px 8px;margin:3px 0}.effect-modifiers span{font:400 12px/1.35 var(--game-font);color:#ede6d4}.effect-card svg{width:22px;height:22px;color:#d5bd82}.compact-ui .character-overview{grid-template-columns:1fr;gap:12px}.compact-ui .effect-cards{grid-template-columns:1fr}

.objective-hud{position:absolute;right:12px;top:100px;max-width:230px;padding:7px 10px;border-left:2px solid #d5bd82;background:#132b25e8;font-size:12px;pointer-events:none}.objective-hud strong{display:block;font-size:12px}.objective-hud ul{margin:4px 0 0;padding-left:13px;color:#b7c8bf;font-size:11px}.objective-hud li{margin:2px 0;line-height:1.4}






.world-hint>div{display:flex;align-items:center;gap:3px}.world-hint>div[hidden]{display:none}

/* One selection frame: the angled gap travels, not the rectangle or its contents. */
@property --selection-angle{syntax:'<angle>';initial-value:0deg;inherits:false}
:is(#work-panel button,.title-shell button,#hotbar .item-slot,#work-panel .objective-card){position:relative}
:is(#work-panel button:not([data-tab]):not([data-objective-tier]):not([data-objective-view]):not([data-track-objective]),.title-shell button:not([data-local-save]):not([data-cloud-save]),#hotbar .item-slot):is(:hover,:focus-visible,.chosen,.filtered,.active,.selected):not(:disabled)::before,.title-shell [data-continue]:not(:disabled)::before,#work-panel [data-track-objective].chosen:not(:disabled)::before{content:'';position:absolute;inset:0;border:1px solid #d5bd82;border-bottom-width:3px;border-radius:inherit;pointer-events:none;z-index:2;mask-image:conic-gradient(from var(--selection-angle),#0000 0deg 5deg,#000 7deg 357deg,#0000 360deg);animation:selection-orbit 10s linear infinite}
:is(#work-panel button:not([data-objective-tier]):not([data-objective-view]),#hotbar .item-slot):is(.chosen,.filtered,.active,.selected){border-color:transparent!important;box-shadow:none!important}
.title-shell [data-save-card].selected{border-color:#d5bd82;box-shadow:none}.title-shell [data-save-card]>button{overflow:hidden}
@keyframes selection-orbit{to{--selection-angle:360deg}}
@media(prefers-reduced-motion:reduce){:is(#work-panel button,.title-shell button,#hotbar .item-slot)::before,#work-panel .objective-card::before{animation:none!important}}

/* Shared item follow-up states; fixed geometry and opacity-only danger feedback. */
.item-slot.ghost-slot img{opacity:.2;filter:grayscale(1)}.item-slot progress.freshness{accent-color:var(--fresh-color,#94c89b)}.item-slot progress.freshness::-webkit-progress-value{background:var(--fresh-color,#94c89b)}
.recipe-actions [data-unlock]:disabled{opacity:.65}#recipe-tracker.ready{background:#214b34ee;box-shadow:inset 0 0 0 1px #709f76}.tracker-item .missing{color:#ed8b83}
.recipe-uses{pointer-events:auto;width:min(680px,calc(100vw - 32px));max-height:min(620px,calc(100vh - 40px));overflow:auto;padding:20px;background:#142c30;color:#dce2d5;border:1px solid #8d9b82;border-radius:10px;box-shadow:0 12px 50px #0008}.recipe-uses::backdrop{background:#06171ab0}.recipe-uses header{display:flex;align-items:center;gap:12px}.recipe-uses header img{width:40px;height:40px;object-fit:contain;image-rendering:pixelated}.recipe-uses h2{font-size:22px;margin:0;flex:1}.recipe-uses header button{width:32px;height:32px;padding:0}.recipe-uses>p{color:#b8c8c2;margin:8px 0 18px}.recipe-uses h3{font:600 13px var(--game-font);color:#d9c57e;margin:16px 0 8px}.recipe-use-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:7px}.recipe-use-grid button{display:grid;grid-template-columns:36px 1fr;text-align:left;align-items:center;gap:3px 9px;padding:9px}.recipe-use-grid img{grid-row:1/3;width:36px;height:36px;object-fit:contain;image-rendering:pixelated}.recipe-use-grid strong{font-size:13px}.recipe-use-grid small{font-size:11px;color:#b9cbc5}
#danger-vignette{position:fixed;inset:0;z-index:2;pointer-events:none;background:radial-gradient(ellipse at center,transparent 48%,#a01c2870 80%,#a8172bd9 100%);opacity:.45;animation:danger-breath 2s ease-in-out infinite}#danger-vignette[data-severity="2"]{background:radial-gradient(ellipse at center,transparent 40%,#ab162c88 75%,#a8172be8 100%);animation-duration:1.2s}@keyframes danger-breath{0%,100%{opacity:.3}50%{opacity:.7}}@media(prefers-reduced-motion:reduce){#danger-vignette{animation:none;opacity:.5}}

.marker-editor{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 12px;background:#172f32;border:1px solid #526e6c;border-radius:6px}.marker-editor input{flex:1;min-width:90px;max-width:280px;padding:7px;background:#10262b;border:1px solid #526e6c;color:#e4e4d2;border-radius:4px}.marker-editor select{max-width:130px}.map-tools{flex-wrap:wrap}

.interaction-key{position:absolute;pointer-events:none;padding:0;text-align:center;white-space:nowrap}.head-stamina{position:absolute;pointer-events:none;width:22px;height:22px;color:#ff6d65;filter:drop-shadow(0 1px 2px #07191b)}.head-stamina svg{width:100%;height:100%}

#hotbar .light-slot{margin-right:6px;border-color:#a78d59}#hotbar .light-slot.lit{border-color:#e2b765;background:#4c402c}

.station-panel.storage-panel .station-output{height:auto;max-height:none;overflow:visible}.stomach-fullness{font-size:11px;white-space:nowrap;color:#b7c8bf;align-self:center}.compact-ui .stomach-fullness{grid-column:1/-1;text-align:right}.hud-vital.stamina-debt{outline:1px solid #e36464;outline-offset:2px;--vital-color:#e36464!important;animation:stamina-debt-pulse .9s ease-in-out infinite}.hud-vital.stamina-debt .vital-icon{color:#e36464}@keyframes stamina-debt-pulse{50%{opacity:.45}}@media(prefers-reduced-motion:reduce){.hud-vital.stamina-debt{animation:none}}#pickup-feedback{z-index:70}.pickup-note.failure{color:#ee8d86}

.spawn-confirm{background:#1b3034;color:#ede6d4;border:1px solid #9a956b;border-radius:7px;padding:24px}.spawn-confirm::backdrop{background:#0008}.spawn-confirm h2{margin:0 0 18px;font:22px var(--game-font)}.spawn-confirm form>div{display:flex;justify-content:flex-end;gap:10px}.spawn-confirm button{min-width:75px}

#film-grain-layer{position:fixed;inset:-64px;pointer-events:none;opacity:.025;background-repeat:repeat;will-change:transform;animation:grain-drift .8s steps(1,end) infinite}
@keyframes grain-drift{0%,100%{transform:translate(0,0)}25%{transform:translate(-31px,17px)}50%{transform:translate(23px,-29px)}75%{transform:translate(-11px,-37px)}}
@media(prefers-reduced-motion:reduce){#film-grain-layer{animation:none}}

#gather-hud,.interaction-key,.world-hint{background:none;border:0;border-radius:0;box-shadow:none;color:#f3e7ca;text-shadow:0 1px 2px #000,0 0 5px #071416,0 1px 5px #071416}
#gather-hud,.interaction-key{font:500 13px/1.5 var(--game-font);letter-spacing:.15px;-webkit-font-smoothing:antialiased}

#sleep-screen{position:fixed;inset:0;z-index:100;background:#000;display:grid;place-items:center;pointer-events:none;color:#d8d1c2}
#sleep-screen p{margin:0 24px;max-width:34em;text-align:center;font:400 clamp(17px,2vw,23px)/1.6 var(--game-font);letter-spacing:.3px}

#work-panel .recipe-actions button.rp-action{background:#245b7b;border-color:#6ca9c8;color:#f0f9ff}#work-panel .recipe-actions button.rp-action:hover:not(:disabled){background:#32769c}
.character-gear img{width:36px}
.stat-card>small:last-child:not(:first-child){grid-column:1/-1;font-size:9px;color:#92a99b;margin-top:-2px}.character-condition h3,.character-effects h3{margin:4px 0 8px}

#gather-hud,.interaction-key{animation:world-label-float 4s ease-in-out infinite;will-change:transform}#gather-hud::after,.interaction-key::after{content:'';position:absolute;left:50%;bottom:-3px;width:22px;height:1px;background:linear-gradient(90deg,transparent,#dfd1a880,transparent);translate:-50% 0;pointer-events:none}
@keyframes world-label-float{50%{transform:translate3d(0,-2px,0)}}@media(prefers-reduced-motion:reduce){#gather-hud,.interaction-key{animation:none;will-change:auto}}

.ammo-hud{position:absolute;translate:-50% 0;pointer-events:none;white-space:nowrap;font:500 11px/1.4 var(--game-font);color:#e4dac4;text-shadow:0 1px 2px #000,0 0 4px #071416}

.title-shell [data-new-cloud-row]{justify-content:flex-start;gap:10px}.title-shell [data-new-cloud]{width:auto;margin:0;accent-color:#87a9cc}.stat-value{display:inline-flex;align-items:center;gap:7px}.stat-modifier{font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}.stat-modifier.positive{color:#8bcea5}.stat-modifier.negative{color:#f0988c}

.coop-panel{width:min(560px,100%);margin:24px auto;padding:20px;box-sizing:border-box}.coop-panel h2,.coop-join h2{margin:0 0 12px}.coop-panel p,.coop-join p{color:#bdceca;line-height:1.5}.coop-actions{display:flex;gap:10px;margin:18px 0}.coop-panel [data-invite]{display:flex;gap:10px;align-items:end;margin:24px 0}.coop-panel label,.coop-join label{display:grid;gap:8px}.coop-code{font-family:var(--game-font);font-size:20px;letter-spacing:.08em;max-width:100%;width:275px}.coop-join{margin-top:24px;padding-top:20px;border-top:1px solid #3d5659}.coop-panel small{display:block;color:#a9bdb8;line-height:1.6}.coop-panel [data-coop-status],.coop-join [data-coop-status]{min-height:1.5em}

.title-library-actions{flex-wrap:wrap}.title-library-actions [data-join-coop]{flex-basis:100%}.title-shell .coop-join{position:absolute;inset:0;margin:0;padding:12px 0;border:0;background:#142124;overflow:auto}.title-shell .coop-join label{display:grid;justify-content:stretch;gap:8px;max-width:340px}.title-shell .coop-join input{box-sizing:border-box;width:100%;font-family:var(--game-font);font-size:17px;letter-spacing:.04em}.coop-actions{flex-wrap:wrap}.coop-panel [data-invite]{flex-wrap:wrap}.coop-panel [data-invite] label{min-width:0}.coop-code{box-sizing:border-box}

.coop-join [data-join-code]{box-sizing:border-box;width:min(340px,100%);padding:9px;background:#102723;color:#f5ecd6;border:1px solid #8caa8580;border-radius:4px;font-family:var(--game-font);font-size:17px;letter-spacing:.04em}

.coop-panel:has(>.coop-join:not([hidden]))> :not(.coop-join){display:none}.coop-panel:has(>.coop-join:not([hidden])) .coop-join{margin:0;padding:0;border:0}

.station-accepts{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;font-size:10px;color:#b3c4bd;padding:2px 0 5px}.station-accepts>span{display:inline-flex;align-items:center;gap:4px}.station-accepts img{width:20px;height:20px;object-fit:contain;image-rendering:pixelated}

.status-effect[data-timed=true]{width:54px}.status-effect[data-timed=true] small{font-size:9px;letter-spacing:0}

.title-heading-actions{display:flex;align-items:center;gap:8px}
.title-heading [data-title-music]{width:auto;height:32px;padding:4px 9px;font:13px var(--game-font);white-space:nowrap}

/* Title-only scenery stays outside menu layout and never receives input. */
#title-screen{isolation:isolate;overflow:hidden}
.title-backdrop,.title-backdrop>img,.title-leaves{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.title-backdrop{z-index:-1;overflow:hidden;background:#0c1d25;contain:strict}
.title-backdrop>img{object-fit:cover;object-position:50% 55%}
.title-backdrop::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#07141933,transparent 50%,#07141922),linear-gradient(#07141911,#07141944)}
#title-screen .title-shell{background:#142124b3;backdrop-filter:blur(6px)}
.title-leaves{z-index:1}
.title-leaf{position:absolute;top:0;width:var(--size);height:calc(var(--size)*.7);color:var(--tint);opacity:.65;will-change:transform}
.title-leaf svg{display:block;width:100%;height:100%;overflow:visible}
.leaf-body{fill:currentColor;stroke:#c5a46a;stroke-width:.4;stroke-opacity:.35}
.leaf-veins{fill:none;stroke:#dfc28e;stroke-width:.65;stroke-opacity:.55;stroke-linecap:round;stroke-linejoin:round}
@media(prefers-reduced-motion:reduce){.title-leaf{display:none;will-change:auto}}

#title-screen[hidden] .title-leaf{will-change:auto}

/* Item selection text shares the existing warm yellow accent. */
#work-panel .recipe-row.chosen,#work-panel .item-slot:is(.selected,.active),#hotbar .item-slot:is(.selected,.active){color:#efd893!important}
.item-slot:is(.selected,.active) :is(.slot-count,.slot-key){color:inherit}
/* Top-level pause tabs use a narrow static dot texture translated across the tab. */
#work-panel .work-tabs [data-tab]{overflow:hidden}
#work-panel .work-tabs [data-tab]:is(.chosen,:hover,:focus-visible):not(:disabled)::before,.title-shell [data-save-card]:is(.selected,:hover,:focus-within)>button::before{content:'';position:absolute;inset:0 auto 0 0;width:34%;pointer-events:none;background:radial-gradient(circle,#f0d38f70 .65px,transparent .9px) 0 0/3px 3px;mask-image:linear-gradient(90deg,transparent,#0008 35%,#000 55%,transparent);animation:tab-shimmer 7s ease-in-out infinite;will-change:transform}
#work-panel .work-tabs [data-tab].chosen::after,.title-shell [data-save-card].selected>button::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:#d5bd82;pointer-events:none}
@keyframes tab-shimmer{0%{transform:translateX(-110%)}80%,100%{transform:translateX(410%)}}
.loading-dots{display:inline-block;width:1.2em;text-align:left}
.loading-dots i{font-style:normal}
.loading-dots i:nth-child(2){animation:loading-dot-two 1.8s step-end infinite}
.loading-dots i:nth-child(3){animation:loading-dot-three 1.8s step-end infinite}
@keyframes loading-dot-two{0%{opacity:0}33.333%,100%{opacity:1}}
@keyframes loading-dot-three{0%{opacity:0}66.667%,100%{opacity:1}}
#loading[hidden] .loading-dots i{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){#work-panel .work-tabs [data-tab]::before{animation:none!important;display:none;will-change:auto}.loading-dots i{animation:none!important;opacity:1}}

.game-links{display:flex;flex-wrap:wrap;gap:6px;align-items:center;pointer-events:auto}
.title-library-actions .game-links{width:100%}.game-links .game-link{padding:7px 10px;border:1px solid #61756c66;border-radius:2px;background:#24333570;color:#dce2d5;font-size:12px;text-decoration:none;flex:1;text-align:center;white-space:nowrap;pointer-events:auto}
.game-links .game-link:hover,.game-links .game-link:focus-visible{color:#efd893;border-color:#d5bd82;background:#42534780}.game-links [role=status]{flex-basis:100%;font-size:11px;color:#efb398}

/* Journal navigation is static; only the explicitly tracked action animates. */
#work-panel :is([data-objective-tier],[data-objective-view]).chosen{color:#efd893;border-color:#d5bd82!important;background:#9d8f5d20;box-shadow:none}
#work-panel .objective-card:is(.selected,.active){border-color:#d5bd82;box-shadow:none}
#work-panel .objective-card:is(.selected,.active) strong{color:#efd893}
#work-panel [data-track-objective]{color:#efd893;border-color:#d5bd82;background:#9d8f5d18}
/* One quiet surface and right edge for weather, recipe and objective HUD panels. */
:is(.weather-hud,#recipe-tracker,.objective-hud){right:18px;box-sizing:border-box;background:#132b25eb;border:1px solid #81917b70;border-radius:5px;padding:8px 10px}
:is(.weather-hud:not(.in-cave),#recipe-tracker,.objective-hud){width:230px;max-width:calc(var(--ui-vw)*100 - 36px)}
.compact-ui :is(.weather-hud,#recipe-tracker,.objective-hud){right:12px;max-width:calc(var(--ui-vw)*100 - 24px)}
.compact-ui .weather-hud:not(.in-cave){width:126px}

.compact-ui .objective-hud{top:98px}

/* Shared utility and stat presentation; proportional art-font digits occupy fixed cells. */
.number-digit{display:inline-block;width:.68em;text-align:center;font-variant-numeric:tabular-nums}
.stat-name,#item-tooltip dt,.stat-card>small:first-child,.skill-benefits>div>span{color:#d5bd82}
.stat-value,#item-tooltip dd,.stat-card .stat-value strong,.skill-benefits strong{color:#ede6d4}
.stat-pair{display:inline-flex;align-items:baseline;gap:.5em;margin-right:1em;white-space:nowrap}.stat-pair .stat-value{display:inline-block}
.utility-on{color:#8ed9a1}.utility-off{color:#ed8e85}
.utility-hover{position:absolute;z-index:35;max-width:300px;padding:8px 10px;background:#11272af2;border:1px solid #8ca99766;pointer-events:none;font-size:11px}.utility-hover>strong{display:block;color:#d5bd82;margin-bottom:5px}.utility-hover-stats{display:grid;gap:3px}.utility-hover .stat-pair{display:flex;justify-content:space-between;margin:0}
button[aria-disabled=true]{opacity:.45;cursor:default}
.recipe-tiles{padding:3px 2px 4px}.recipe-row{margin:0;overflow:visible}.recipe-row img{object-fit:contain;flex-shrink:0;max-height:calc(100% - 18px)}
.craft-detail-rail{overflow:hidden}.craft-detail-rail .recipe-detail{min-height:0}.craft-workspace>.station-panel{flex:none;width:100%;min-height:0;margin-top:8px}.craft-workspace>.station-panel .station-output{height:auto;min-height:42px;max-height:none;overflow:visible;grid-template-columns:repeat(auto-fill,minmax(42px,42px))}.station-panel .station-output{min-height:42px;max-height:none;overflow:visible}.station-layout .device-workspace{overflow:auto}.station-panel .device-status{color:#ede6d4}

/* Reserve and utility controls share a compact row above the full-width tray. */
.station-panel [data-auto-off-option]{display:flex;align-items:center;gap:5px;color:#ede6d4}
.station-accepts>[data-auto-off-option]{flex-basis:100%}
.craft-workspace>.station-panel>[data-auto-off-option]{grid-column:1;grid-row:1;align-self:center}
.craft-workspace>.station-panel{display:grid;grid-template-columns:minmax(200px,1fr) minmax(300px,1.5fr);gap:3px 16px}
.craft-workspace>.station-panel>.reserve-row{grid-column:1;grid-row:1;margin:0}
.craft-workspace>.station-panel>.station-accepts{grid-column:1;grid-row:2}
.craft-workspace>.station-panel>[data-utility-toggle]{grid-column:2;grid-row:1;justify-self:end;align-self:start;z-index:1}
.craft-workspace>.station-panel>.station-toolbar{grid-column:2;grid-row:1/span 2}
.craft-workspace>.station-panel:has(>[data-utility-toggle]) .device-status{padding-right:100px}
.craft-workspace>.station-panel>.station-output{grid-column:1/-1;grid-row:3}
.craft-workspace>.station-panel>.device-feedback{grid-column:1/-1;grid-row:4}
.utility-hover>.utility-hover-stats{display:grid;align-items:stretch}
@media(max-width:700px){.craft-workspace>.station-panel{grid-template-columns:1fr}.craft-workspace>.station-panel>.station-toolbar{grid-column:1;grid-row:3}.craft-workspace>.station-panel>[data-utility-toggle]{grid-column:1}.craft-workspace>.station-panel>.station-output{grid-row:4}.craft-workspace>.station-panel>.device-feedback{grid-row:5}.craft-workspace>.station-panel:has(>[data-utility-toggle]) .device-status{padding-right:0}}

body{cursor:url("assets/survivor-cursor.svg?v=2df565d7c08a") 14 14,crosshair}.virtual-mouse,.virtual-mouse *{cursor:none!important}.virtual-pointer{position:fixed;left:0;top:0;width:28px;height:28px;z-index:2147483647;pointer-events:none;background:url("assets/survivor-cursor.svg?v=2df565d7c08a") center/contain no-repeat;filter:drop-shadow(0 1px 2px #06171dcc)}button.virtual-hover,button:has(.virtual-hover){border-color:#80d7ff}

body:not(.virtual-mouse) :is(button,select,a,input[type=range],input[type=checkbox]){cursor:url("assets/survivor-cursor.svg?v=2df565d7c08a") 14 14,crosshair}

/* Companion pages reuse the pack/work menu geometry. */
.pet-layout{width:100%;height:100%;min-height:0}.pet-workspace{padding:20px;min-width:0;overflow:auto}.pet-workspace h2{color:#ddc47c;font-size:24px}.pet-workspace p{max-width:650px}.pet-name-header{position:relative;display:flex;align-items:center;gap:10px;max-width:650px;height:44px;margin-bottom:12px}.pet-name-header h2{flex:1;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pet-name-header>button{flex:none}.pet-name-form{position:absolute;inset:0;display:flex;align-items:center;gap:6px}.pet-name-form input{flex:1;min-width:0;width:0;box-sizing:border-box;background:#10252b;color:#e5e7dc;border:1px solid #9eb29a66;border-radius:5px;padding:7px;font:inherit}.pet-name-form button{flex:none;padding:7px}.pet-name-form [aria-invalid=true]{border-color:#de987d}.pet-stats{display:grid;gap:9px;max-width:650px;margin:20px 0}.pet-stats .stat-pair{display:flex;justify-content:space-between;gap:25px}.pet-commands{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:10px;max-width:650px}.pet-commands button[aria-pressed=true]{border-color:#ddc47c;color:#ddc47c}.pet-feedback{color:#ddc47c;min-height:1.5em}.pet-lure-radial{width:120px;height:120px;position:relative;margin:20px 0}.pet-lure-radial svg{width:100%;height:100%;transform:rotate(-90deg);fill:none;stroke:#354843;stroke-width:5}.pet-lure-radial .pet-countdown{stroke:#ddc47c;stroke-dasharray:276.46;transition:stroke-dashoffset .2s linear}.pet-lure-radial strong{position:absolute;inset:0;display:grid;place-items:center;color:#e5e7dc}
@media(max-width:760px){.pet-commands{grid-template-columns:1fr 1fr}.pet-workspace{padding:12px}}

.compact-ui #work-panel[data-mode=pet][data-mobile=backpack] .pet-workspace{display:none}.compact-ui .pet-layout.recipe-layout.with-pack{display:block}.compact-ui .pet-workspace{height:100%;min-height:0}.pet-stats .stat-value{white-space:normal;text-align:right}
@media(max-width:760px){#work-panel[data-mode=pet] .menu-sections:not([hidden]){display:flex}#work-panel[data-mode=pet][data-mobile=crafting] #pack{display:none}#work-panel[data-mode=pet][data-mobile=backpack] .pet-workspace{display:none}.pet-layout.recipe-layout.with-pack{display:block}.pet-workspace{height:100%;min-height:0}}

.crop-controls{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.crop-controls>div:first-child{display:flex;flex-direction:column;gap:4px}.crop-controls progress{width:100%;height:8px}.crop-controls .transfer-actions{flex-wrap:wrap;margin:0;padding:0;border:0}

.pet-cargo>p{margin-top:12px}.pet-cargo-stats{display:flex;flex-direction:column;gap:8px;margin:20px 0}.pet-cargo .transfer-actions{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;padding:0;border:0}.pet-cargo .station-output{display:grid;grid-template-columns:repeat(auto-fit,42px);max-width:277px;gap:5px}.pet-cargo .item-slot{width:42px;height:42px}.pet-tabs{margin-bottom:12px}

.controller-settings{border-top:1px solid #304443;margin-top:20px;padding-top:4px}.controller-status{font-size:12px;overflow-wrap:anywhere;color:#b8c7bf}.controller-options{display:grid;gap:8px;margin:12px 0}.controller-options>label{display:flex;align-items:center;gap:10px;font-size:12px}.controller-options input[type=range]{width:140px}.controller-options output{min-width:65px}.controller-settings summary{cursor:pointer;padding:10px 0}.controller-bindings label>span{flex:1}.controller-bindings .binding-clear{width:24px;min-width:24px;padding:0!important}.controller-settings [data-controller-feedback]{overflow-wrap:anywhere}

.marker-editor [data-marker-track]{min-width:88px}
.destination-hud{position:absolute;left:18px;bottom:118px;width:230px;height:44px;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:5px 8px;background:#10262be8;border:1px solid #526e6c;border-radius:6px;pointer-events:none}.destination-hud svg{width:22px;height:22px;flex-shrink:0;fill:#8fd9ed;stroke:#234552;stroke-width:1.5}.destination-hud div{min-width:0;flex:1}.destination-hud strong,.destination-hud span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.destination-hud strong{color:#e2cc87;font-weight:normal;font-size:14px}.destination-hud span{color:#e9e3c9;font-size:12px}.destination-hud button{padding:2px 6px;pointer-events:auto}

#gather-hud,.interaction-key,.world-hint,.head-stamina{left:0;top:0}

.attachment-slot{position:absolute;right:3px;top:3px;width:15px;height:15px;color:#d5bd82;background:#0e1c20cc;border-radius:2px;opacity:.5;pointer-events:none}.attachment-slot.filled{opacity:1}.attachment-slot svg{display:block;width:100%;height:100%}

.alteration-panel{display:grid;grid-template-rows:26px 66px 88px 56px 122px 38px 44px;gap:8px;height:514px;min-width:0;padding:12px;background:#0b1b1e;border:1px solid #304342;box-sizing:border-box}.alteration-panel h3{margin:0;font-size:16px}.alteration-target{position:relative;display:flex;align-items:center;gap:12px;min-width:0}.alteration-target>img{width:48px;height:48px;object-fit:contain}.alteration-target>div{min-width:0}.alteration-target strong,.alteration-target small{display:block}.alteration-target strong{font-size:16px}.alteration-target small{font-size:11px;margin-top:6px;color:#b8c7bf}.alteration-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-width:0}.alteration-part{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;padding:5px!important;font-size:11px!important;line-height:1.1!important}.alteration-part img{width:28px;height:28px;object-fit:contain}.alteration-part[aria-pressed="true"]{border-color:#d5bd82;background:#d5bd821a}.alteration-part .slot-count{position:absolute;top:3px;right:4px;font-size:11px}.alteration-description{margin:0;font-size:12px;line-height:1.4;overflow:auto}.alteration-stats{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:5px 10px;font-size:12px;margin:0;overflow:auto}.alteration-stats dd{margin:0;text-align:right}.alteration-stats small{font-size:11px;color:inherit}.alteration-message{margin:0;color:#d5bd82;font-size:12px;line-height:1.4;overflow:auto}.alteration-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.alteration-actions button{padding:5px!important;font-size:12px!important}

.alteration-preview{display:grid;grid-template-rows:18px minmax(0,1fr);gap:4px;min-width:0}.alteration-preview-title{font-size:11px;color:#b8c7bf}

.alteration-part[aria-pressed="true"]:disabled{opacity:.85}

.recipe-use-grid button{position:relative}

.alteration-workspace{display:flex;flex-direction:column;gap:10px;min-width:0;overflow:auto}.alteration-tabs{flex:none}.alteration-workspace .alteration-panel{flex:1 1 auto;height:auto;min-height:374px;max-height:514px;grid-template-rows:22px 56px 78px minmax(28px,.5fr) minmax(66px,1fr) 26px 38px;gap:6px}.alteration-worn{display:flex;gap:6px;flex:none}.alteration-worn .item-slot{width:50px;height:50px}

.alteration-worn[hidden]{display:none}.compact-ui .alteration-workspace{gap:6px}.compact-ui .alteration-worn .item-slot{width:40px;height:40px}.compact-ui .alteration-workspace .alteration-panel{min-height:350px;padding:10px;grid-template-rows:20px 48px 72px minmax(28px,.6fr) minmax(62px,1fr) 24px 36px}

.pet-training{display:grid;gap:10px}.pet-training[hidden]{display:none}.pet-training>p{margin:0 0 8px;font-size:12px;color:#b7c8bf}.pet-training-card{padding:10px;border:1px solid #3b5355;display:grid;gap:7px}.pet-training-card>strong{color:#d5bd82}.pet-training-card button{justify-self:start;min-width:140px}.pet-training .stat-value{font-variant-numeric:tabular-nums}

.compact-ui .pet-training{gap:8px}.compact-ui .pet-training-card{padding:8px;gap:5px}.compact-ui .pet-training>p{font-size:11px;margin-bottom:4px}

.item-actions .stash-keep-option{grid-area:2/3;display:flex;align-items:center;justify-content:center;gap:4px;height:32px;font-size:11px;line-height:1.15;margin:0}.stash-keep-option input{margin:0;flex:none;accent-color:#8fd9ed}.stash-keep-badge{position:absolute;left:2px;top:2px;width:13px;height:13px;color:#8fd9ed;background:#10252be6;border-radius:2px;pointer-events:none}.stash-keep-badge svg{display:block;width:100%;height:100%}

.commission-panel{display:flex;flex-direction:column;min-height:0;height:100%;gap:8px}.commission-panel>p{margin:0;padding:8px 12px}.commission-list{overflow:auto;min-height:0;padding:8px 12px;display:grid;align-content:start;gap:12px}.commission-card{padding:12px;border:1px solid #355055;background:#10202380}.commission-card.chosen{border-color:#edcc80}.commission-card h3{color:#edcc80;margin:0 0 8px}.commission-card dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:0}.commission-card dt{color:#edcc80}.commission-card dd{margin:0;color:#e6e5d9}.commission-card p{color:#b7c8bf;font-size:13px}.commission-actions{display:flex;gap:8px;min-height:42px;flex-wrap:wrap}

.commission-rewards span{color:#edcc80}.commission-rewards strong{color:#e6e5d9;font-weight:normal}

.waystone-panel{border-top:1px solid #355054;margin-top:12px;padding-top:12px;display:grid;gap:10px;min-width:0}
.waystone-name{display:flex;gap:8px;align-items:end}.waystone-name label{flex:1;min-width:0}
.waystone-panel label{display:grid;gap:6px}.waystone-panel input,.waystone-panel select{width:100%;min-width:0;color:var(--text,#e4e9dc)}
.waystone-panel progress{width:100%;height:9px}.waystone-actions{display:flex;gap:8px}.waystone-actions button{flex:1}
.waystone-status{min-height:2.8em;margin:0}.waystone-panel .device-feedback{min-height:2.8em;margin:0}

.drill-settings{border-top:1px solid #344746;margin-top:12px;padding-top:12px}.drill-settings label{display:grid;gap:8px;color:#d5bd82}.drill-settings select{max-width:100%;min-width:0;color:#ede6d4}.drill-settings p{font-size:.85em;margin:8px 0}

.production-settings{grid-column:1/-1;min-width:0;border-top:1px solid #344746;margin-top:8px;padding-top:8px}.production-settings summary{color:#d5bd82;cursor:pointer}.production-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}.production-fields label{display:grid;gap:4px;color:#d5bd82;font-size:11px}.production-fields input,.production-fields select{min-width:0;width:100%;box-sizing:border-box;color:#ede6d4}.production-actions{display:flex;flex-wrap:wrap;gap:6px}.production-note,.production-status{font-size:11px;line-height:1.4}.production-status{min-height:20px;color:#ede6d4}.production-settings .device-feedback{height:36px;overflow:auto}@media(max-width:480px){.production-fields{grid-template-columns:1fr}}

.production-progress{width:100%;height:5px;margin-top:8px;accent-color:#82cce0}.production-actions button{min-width:112px}

.production-fields input{background:#1c3531;border:1px solid #526c63;border-radius:3px;padding:6px 8px;font:inherit}.craft-workspace:has(.production-settings[open])>.recipe-columns{display:none}.craft-workspace:has(.production-settings[open])>.station-panel{flex:1;overflow:auto}

.exchange-tabs{flex:none;padding:8px 12px}.exchange-tabs button[aria-pressed="true"]{border-color:#edcc80;color:#edcc80}.exchange-ledger{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:0;padding:8px 12px}.exchange-ledger dt{color:#edcc80}.exchange-ledger dd{color:#e6e5d9;margin:0}[data-exchange]>button{align-self:flex-start;margin:0 12px}[data-exchange] .commission-list{flex:1}
