*{box-sizing:border-box}body{margin:0;background:#18232a;color:#eee8db;font:14px/1.6 system-ui,sans-serif}canvas{position:fixed;inset:0;width:100%;height:100%;display:block}header{position:absolute;top:32px;left:36px;pointer-events:none;text-shadow:0 2px 15px #000}h1{font-size:40px;letter-spacing:-1.5px;margin:4px 0;font-weight:600}header p{margin:0;color:#d0d2cb}.eyebrow{font-size:11px;letter-spacing:3px;color:#f1bc7b}aside{position:absolute;bottom:28px;left:36px;max-width:470px;background:#10191de8;border:1px solid #ffffff26;border-radius:10px;padding:16px 20px}aside p{margin:0 0 12px}button{font:inherit;color:#f3eada;background:#314247;border:1px solid #ffffff30;border-radius:5px;padding:7px 10px;margin:0 5px 12px 0;cursor:pointer}button:hover{background:#465c60}small{color:#b9bcb6}#status{color:#f1bc7b;font-variant-numeric:tabular-nums}@media(max-width:600px){header{top:18px;left:18px}h1{font-size:30px}aside{bottom:15px;left:15px;right:15px;padding:12px;font-size:12px}}
label{display:block;font-size:12px;color:#c8cdc7}select{display:block;width:100%;font:inherit;background:#26383e;color:#f3eada;border:1px solid #ffffff30;border-radius:5px;padding:6px;margin:3px 0 12px}
#belt{position:fixed;bottom:24px;left:65%;display:flex;gap:4px;background:#151b1ccc;padding:5px;border-radius:5px}.item-slot{position:relative;width:58px;height:58px;margin:0;padding:3px;background:#242b2de8;border:1px solid #a3aaa750}.item-slot img{width:100%;height:100%;object-fit:contain}.item-slot span{position:absolute;right:4px;bottom:0;color:white;text-shadow:0 1px 3px #000}.item-slot small{position:absolute;left:3px;top:0;color:#ddd}.item-slot.selected{border-color:#e2bf7a}.item-slot.picked{outline:2px solid #fff}dialog{width:min(900px,95vw);max-height:92vh;overflow:auto;background:#202729;color:#eee8db;border:1px solid #69716b;border-radius:8px;padding:20px}dialog::backdrop{background:#0009}.inventory-heading{display:flex;justify-content:space-between;gap:10px;align-items:start}.inventory-heading h2{margin:0}.inventory-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}#pack{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}#pack .item-slot{width:100%;aspect-ratio:1;height:auto;min-height:42px}#equipment{display:flex;gap:5px}#recipe-details ul{padding-left:20px}dialog h3{font-size:15px;color:#d7bf98}dialog p{font-size:13px}@media(max-width:900px){#belt{top:150px;bottom:auto;left:auto;right:15px}.item-slot{width:43px;height:43px}.inventory-columns{grid-template-columns:1fr}#pack .item-slot{min-height:30px}}
@media(min-width:901px){#belt{left:auto;right:24px}}
#inventory-belt{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}#inventory-belt .item-slot{width:100%;aspect-ratio:1;height:auto;min-height:30px}
button:disabled{opacity:.45;cursor:default}button:disabled:hover{background:#314247}
#use-hint{position:fixed;left:50%;top:56%;transform:translateX(-50%);pointer-events:none;font-size:16px;font-weight:600;color:#fff;text-shadow:0 1px 4px #000,0 0 12px #000}#use-hint:empty{display:none}
/* RPOS use-hover label (use-hover.mjs): bitmap ProFont at 2x, nearest-neighbour like its point-filtered texture. With it, #use-hint is kept for assistive tech only. */
#use-hover{position:fixed;pointer-events:none;z-index:4;line-height:0}#use-hover[hidden]{display:none}#use-hover canvas{position:static;inset:auto;max-width:none;display:block;image-rendering:pixelated;image-rendering:crisp-edges}
body.use-hover-native #use-hint{position:fixed;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#loot{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin-bottom:6px}#loot .item-slot{width:100%;aspect-ratio:1;height:auto;min-height:30px}#loot-panel{margin-bottom:12px;padding-bottom:6px;border-bottom:1px solid #ffffff20}
#notices{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);pointer-events:none;text-align:center}#notices p{margin:2px 0;font-weight:600;color:#fff;text-shadow:0 1px 4px #000,0 0 10px #000}
#vitals{position:fixed;right:24px;bottom:96px;background:#151b1ccc;padding:4px 10px;border-radius:5px;font-weight:600;color:#e9e3d6}@media(max-width:900px){#vitals{top:212px;bottom:auto;right:15px}}#death[hidden]{display:none}
#item-menu{position:absolute;z-index:3;background:#151b1c;border:1px solid #69716b;border-radius:5px;padding:4px}#item-menu[hidden]{display:none}#item-menu button{margin:0;display:block;width:100%}

/* ContextUI OnGUI (context-ui.mjs): screen-pixel GUI over the cameras, ctxbox/ctxbutton GUISkin styles. */#crosshair{pointer-events:none;z-index:3}#crosshair[hidden]{display:none}#context-ui{position:fixed;inset:0;z-index:6;pointer-events:none;overflow:hidden}#context-ui[hidden]{display:none}#context-ui canvas{position:absolute;inset:auto;width:auto;height:auto;max-width:none;image-rendering:pixelated;pointer-events:none}#context-ui .ctx-button{position:absolute;pointer-events:auto;cursor:default}#context-ui .ctx-text{position:absolute;display:block;text-align:center;white-space:pre;overflow:visible;pointer-events:none;user-select:none}

/* #lock-entry: original LockEntry dfGUI panel (lock-entry.mjs), styled in frontend.css with the other .df-host layers. */

#game-hud{position:fixed;right:5px;bottom:17px;width:122px;height:50px;pointer-events:none;font:10px/12px Arial,sans-serif;color:white;text-shadow:0 1px 2px #000}#game-hud[hidden],.hud-plaque[hidden]{display:none}.hud-status{position:absolute;inset:0;background:#141414e8;border:1px solid #7775;border-radius:2px}.hud-row{position:absolute;left:5px;right:5px;height:12px}.hud-health{top:12px}.hud-food{top:27px}.hud-rads{top:39px}.hud-row span{position:absolute;left:0;font-size:8px;color:#ccc}.hud-row i{position:absolute;left:44px;top:1px;width:50px;height:10px;background:#111}.hud-row b{display:block;height:100%;background:#875902}.hud-row output{position:absolute;left:49px;top:0;width:50px;text-align:center;font-size:12px}.hud-plaques{position:absolute;right:0;bottom:71px;display:flex;flex-direction:column-reverse;gap:5px;width:124px}.hud-plaque{min-height:23px;padding:4px 7px;background:#5e2925e8;border:1px solid #e3916d66;color:#f0d5bc;font-size:11px;letter-spacing:1px}.hud-plaque[data-plaque="Cold"]{background:#234854e8}.hud-plaque[data-plaque="Warm"]{background:#674d29e8}.hud-active #vitals{display:none}.hud-active #belt{left:50%;right:auto;top:auto;bottom:10px;transform:translateX(-50%);gap:10px;padding:0;background:transparent}.hud-active #belt .item-slot{width:64px;height:64px;border-radius:0;background:#2b2b2bd9}.hud-active #belt .item-slot.selected{border-color:#e0c58e}@media(max-width:700px){.hud-active #belt{gap:5px;width:calc(100vw - 24px)}.hud-active #belt .item-slot{width:calc((100vw - 49px)/6);height:auto;aspect-ratio:1}#game-hud{bottom:85px}}

.hud-bitmap{color:transparent!important;text-shadow:none!important;position:relative}.hud-bitmap canvas{position:absolute;left:50%;top:0;transform:translateX(-50%);image-rendering:pixelated;pointer-events:none}.hud-row span.hud-bitmap{font-size:12px;width:42px;top:-2px}.hud-row span.hud-bitmap canvas{left:0;transform:none}.hud-row output.hud-bitmap canvas{top:-1px}.hud-status{background-color:transparent;background-size:100% 100%;border:0;border-radius:0}.hud-status-title{position:absolute;left:40px;top:0;width:44px;height:12px;font-size:12px}.hud-status-title canvas{top:-1px}.hud-plaques{width:108px;right:11px;bottom:48px;gap:2px}.hud-plaque{height:26px;min-height:26px;padding:0;background:#2f2d2d!important;border:1px solid #454141;border-radius:2px;position:relative;letter-spacing:0}.hud-plaque img{position:absolute;object-fit:fill;image-rendering:pixelated}.hud-plaque span{position:absolute;font-size:12px;white-space:nowrap;line-height:12px}.hud-plaque span canvas{left:0;transform:none}.hud-active #belt .item-slot{background-image:var(--belt-cell);background-size:100% 100%;background-color:transparent}

.hud-bitmap canvas{inset:auto;left:50%;top:0;width:auto;height:auto;max-width:none}.hud-row span.hud-bitmap canvas,.hud-plaque span.hud-bitmap canvas{left:0}.hud-active #belt .item-slot{background-image:linear-gradient(#0b0b0bbf,#0b0b0bbf),var(--belt-cell);background-color:#1d1d1d;background-blend-mode:normal,multiply}

/* Recovered RPOS inventory grid and cell skin. Window packing reflows on narrow screens. */
.rpos-text{font-size:0!important;line-height:0!important}
#recipe[hidden],label[for=recipe][hidden]{display:none}#blueprint-list{max-height:240px;overflow:auto;margin-bottom:14px;border-bottom:1px solid #555;padding-bottom:6px;scrollbar-color:#777 #222}#blueprint-list h4{height:16px;font-size:12px;font-weight:normal;margin:0;line-height:16px}#inventory #blueprint-list button{display:block;width:100%;height:16px;min-height:16px;border:0;background:transparent;margin:0;padding:0 0 0 10px;text-align:left;white-space:nowrap}#blueprint-list button.active canvas{filter:url(#rpos-yellow)}#craft-quantity{display:flex;align-items:center;gap:5px;margin-bottom:10px}#craft-quantity label{color:white;font-size:12px}#craft-quantity input{width:65px;min-width:0;padding:3px;background:#181818;border:1px solid #777;color:white;text-align:center;font:inherit}#craft-quantity button{margin:0;padding:2px 8px;min-width:28px}#craft-progress{display:block;width:100%;height:12px;accent-color:#aaa;margin-bottom:5px}#craft-progress[hidden]{display:none}
.item-slot .rpos-armor-label{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);opacity:.5;font-weight:normal;font-size:12px}#armor-panel h4{font-size:12px;font-weight:normal;margin:18px 0 10px;height:14px}#armor-totals:empty{display:none}
#inventory.rpos-inventory{width:min(1000px,calc(100vw - 24px));padding:16px;border:solid transparent;border-width:var(--rpos-border);border-image:var(--rpos-shadow) var(--rpos-slices) fill / var(--rpos-border);border-radius:0;background:#111b;color:white}
.rpos-inventory .inventory-columns{grid-template-columns:116px minmax(0,434px) minmax(220px,1fr);gap:18px;align-items:start}.rpos-inventory .inventory-heading{justify-content:flex-end}.rpos-inventory .inventory-heading h2,.rpos-inventory .inventory-heading small{display:none}.rpos-inventory h3{font-size:12px;height:14px;line-height:14px;margin:0 0 14px;color:white;font-weight:normal}.rpos-inventory p,.rpos-inventory small{font-size:12px;color:#ccc}.rpos-inventory button,.rpos-inventory select{border-radius:0;background-color:#333}.rpos-inventory section{min-width:0}
.rpos-inventory #pack{grid-template-columns:repeat(var(--rpos-columns,6),minmax(0,1fr));gap:var(--rpos-gap,10px)}.rpos-inventory #inventory-belt{gap:10px}.rpos-inventory #equipment{display:grid;grid-template-columns:64px;gap:4.3px;justify-content:start}.rpos-inventory #equipment .item-slot{width:64px;height:64px}.rpos-inventory #loot{grid-template-columns:repeat(3,minmax(0,64px));gap:8px}
.item-slot{border-radius:0;background-image:var(--rpos-cell);background-color:#1d1d1d;background-blend-mode:multiply;background-size:100% 100%;padding:0}.rpos-inventory .item-slot{background-color:#1d1d1d}/* RPOSInventoryCell prefab: the AmountBackground GameObject is inactive (SetItem only toggles its sprite), so no box is drawn behind StackLabel. */.item-slot .rpos-count{right:0;bottom:0;top:auto;left:auto;padding:0 6px;height:16px;line-height:16px;text-align:right;background:none;white-space:nowrap;text-shadow:none}.rpos-text{color:transparent!important;position:relative;text-shadow:none!important}.rpos-text canvas{position:relative;inset:auto;width:auto;height:auto;max-width:none;display:block;image-rendering:pixelated;pointer-events:none}.item-slot .rpos-count canvas{position:absolute;right:1px;bottom:0;left:auto;top:auto}.item-slot .rpos-number{left:1px;top:1px;line-height:12px}.item-slot .rpos-mods{position:absolute;display:flex;gap:1px;left:4px;bottom:3px;pointer-events:none}.item-slot .rpos-mods img{width:6px;height:6px;object-fit:fill;filter:none}.rpos-filters{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}#armor-totals{display:grid;grid-template-columns:1fr auto;column-gap:8px;row-gap:3px;margin-top:18px}#armor-totals dt,#armor-totals dd{font-size:12px;line-height:14px;height:14px;margin:0}
@media(max-width:950px){.rpos-inventory .inventory-columns{grid-template-columns:80px minmax(0,434px);justify-content:center}.rpos-inventory .inventory-columns>section:last-child{grid-column:1/-1}.rpos-inventory #loot{grid-template-columns:repeat(3,64px)}}
@media(max-width:600px){#inventory.rpos-inventory{padding:12px}.rpos-inventory .inventory-columns{display:flex;flex-direction:column;gap:20px}.rpos-inventory .inventory-columns>section{width:100%}.rpos-inventory #pack{gap:5px}.rpos-inventory #inventory-belt{gap:5px}.rpos-inventory #armor-panel{order:2}.rpos-inventory #equipment{grid-template-columns:repeat(4,64px);gap:8px}.rpos-inventory #armor-totals{max-width:180px}.rpos-inventory .rpos-bag{order:0}.rpos-inventory .inventory-columns>section:last-child{order:1}.rpos-inventory .rpos-count{padding:0 2px}.rpos-inventory #pack .item-slot{min-height:0}}
/* Native item detail rows and cursor-held icons; modal children share its top layer. */
#item-tooltip{position:fixed;inset:auto;bottom:auto;right:auto;width:250px;max-width:calc(100vw - 8px);max-height:calc(100vh - 8px);overflow:hidden;background:#151515f5;border:1px solid #777;border-radius:0;padding:12px;pointer-events:none;z-index:10000;line-height:14px}
#item-tooltip[hidden],#item-drag[hidden]{display:none}.rpos-line{display:block;min-height:14px}#item-tooltip .tooltip-title{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;align-items:center;min-height:64px;margin-bottom:6px}#item-tooltip .tooltip-title>img{width:64px;height:64px;object-fit:contain}#item-tooltip .tooltip-section{border-bottom:1px solid #555;padding-top:8px;margin-bottom:4px}#item-tooltip .tooltip-description{border-top:1px solid #555;margin-top:8px;padding-top:8px}#item-tooltip .tooltip-stat{display:flex;justify-content:space-between}#item-tooltip .tooltip-progress{display:grid;grid-template-columns:1fr 96px 28px;gap:3px;align-items:center}#item-tooltip progress{width:96px;height:12px;accent-color:#888}
#item-drag{position:fixed;width:64px;height:64px;pointer-events:none;z-index:10001}#item-drag>img{width:64px;height:64px;object-fit:contain}.drag-origin>img,.drag-origin>.rpos-count,.drag-origin>.rpos-mods{visibility:hidden}.rpos-inventory .inventory-columns>section{position:relative;background:#151515d9}.rpos-window-title{cursor:move;touch-action:none;user-select:none}
#craft-ingredients{width:100%;border-collapse:collapse;margin:8px 0}#craft-ingredients th,#craft-ingredients td{padding:0 4px 0 0;text-align:left;font-weight:normal;height:14px;line-height:14px}#craft-ingredients td:not(:first-child){text-align:right}#craft-ingredients td>img{width:12px;height:12px;object-fit:contain}#craft-ingredients canvas{max-width:100%}
#inventory #loot.rpos-shaped-container{display:block;position:relative;max-width:100%}#loot.rpos-shaped-container>.item-slot{position:absolute;margin:0}#loot .rpos-container-label{top:auto;bottom:2px;left:2px;right:auto;max-width:60px;background:none;pointer-events:none}#loot .rpos-container-label canvas{max-width:60px}
/* Desktop RPOS: original separate windows, bottom-centre anchors and unscaled 64px cells. */
#inventory.rpos-inventory{position:fixed;inset:0;margin:0;width:100vw;height:100vh;max-width:none;max-height:none;padding:0;border:0;border-image:none;background:transparent;overflow:visible;color:white}
#inventory.rpos-inventory::backdrop{background:transparent}#inventory .inventory-heading{height:0;margin:0;padding:0}#inventory .inventory-heading>div{display:none}#inventory-close{position:fixed;right:0;top:0;width:76px;height:18px;margin:0;padding:1px 8px;border:1px solid #181818;background:#333;border-radius:0;line-height:14px}
#inventory .inventory-columns{display:contents}#inventory .inventory-columns>.rpos-window{position:absolute;left:calc(50% + var(--window-left) + var(--drag-x,0px));top:calc(100% - var(--window-bottom) + var(--drag-y,0px));width:var(--window-width);height:var(--window-height);min-width:0;background:none;padding:0;border:0;box-sizing:border-box;isolation:isolate}
#inventory .rpos-window::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border:solid transparent;border-width:var(--rpos-border);border-image:var(--rpos-shadow) var(--rpos-slices) fill / var(--rpos-border)}
#inventory .rpos-window[hidden]{display:none}#inventory .rpos-window h3{position:absolute;width:auto;max-width:210px;height:14px;line-height:14px;margin:0;font-size:12px;padding:0;white-space:nowrap}#inventory .rpos-window-close{position:absolute;width:12px;height:12px;min-height:0;margin:0;padding:0;border:0;font-size:12px;line-height:12px}#inventory .rpos-window-close[hidden]{display:none}
/* RPOSBumper (browser/rpos-layout.mjs): button and strip geometry from the export; colours from #rpos-button-colors. The original buttons look the same whether or not their window is shown. */.inventory-nav{position:fixed;left:calc(50% + var(--bumper-left,-112.5px));top:var(--bumper-top,0px);display:flex;gap:var(--bumper-gap,5px);height:var(--bumper-height,20px)}.inventory-nav .rpos-bumper-strip{position:absolute;display:block;border:1px solid #000;pointer-events:none}.inventory-nav button{position:relative;display:flex;align-items:center;justify-content:center;width:var(--bumper-width,75px);height:var(--bumper-height,20px);min-height:0;margin:0;padding:0 0 2px;border-radius:0}
#inventory .rpos-bag>p,#inventory .rpos-bag>h3:not(:first-child),#inventory #inventory-belt,#inventory #craft-panel>small,#inventory #loot-panel>p{display:none}
#inventory #pack{position:absolute;left:14px;top:40px;width:434px;height:360px;display:grid;grid-template-columns:repeat(6,64px);grid-auto-rows:64px;gap:10px;overflow:hidden}
#inventory #pack>.item-slot,#inventory #equipment>.item-slot,#inventory #loot>.item-slot,#belt>.item-slot{width:64px;height:64px;min-height:0;aspect-ratio:auto;margin:0;padding:0;border:0;border-radius:0;background-color:#1d1d1d}
#inventory #equipment{position:absolute;display:grid;grid-template-columns:64px;grid-auto-rows:64px;gap:4.3px;width:64px;margin:0;padding:0}#inventory #armor-panel h4{position:absolute;height:14px;margin:0;font-weight:normal}#inventory #armor-totals{position:absolute;display:grid;grid-template-columns:84px 32px;gap:0;margin:0;font-size:12px;line-height:12px}#inventory #armor-totals:empty{display:none}#inventory #armor-totals dt,#inventory #armor-totals dd{height:12px;line-height:12px}
#belt{position:fixed;left:calc(50% - 209px);top:auto;right:auto;bottom:10px;display:grid;grid-template-columns:repeat(6,64px);grid-auto-rows:64px;gap:10px;width:434px;height:64px;background:none;border:0;border-radius:0;margin:0;padding:0}.item-slot.selected{border-color:transparent;box-shadow:none}.item-slot.selected::after{content:"";position:absolute;inset:0;background:#80808018;pointer-events:none}.item-slot.picked{outline:0}.item-slot.picked>img,.item-slot.picked>.rpos-count,.item-slot.picked>.rpos-mods{visibility:hidden}
#inventory #blueprint-list{position:absolute;left:8px;top:48px;width:225px;height:250px;max-height:none;margin:0;padding:0;border:0;overflow:hidden}/* RPOS_Craft_BlueprintList: CategoryHeaderPrefab at x 0 (221×14 background, label at +10, a 150×1 line at +61/+7) and ItemPlaquePrefab rows at x 10 (207×14 background, label at +10), 16 px apart. */#inventory #blueprint-list h4{position:relative;width:221px;height:14px;line-height:14px;margin:0 0 2px;padding:0 0 0 10px;font-size:12px;font-weight:normal;background:#1d1d1d}#inventory #blueprint-list h4::after{content:"";position:absolute;left:61px;top:7px;width:150px;height:1px;background:#727272}#inventory #blueprint-list button{width:207px;height:14px;line-height:14px;margin:0 0 2px 10px;padding:0 0 0 10px;min-height:0}
#inventory #recipe-details{position:absolute;left:14px;top:312px;width:224px}#inventory #recipe-details>p:first-child{display:none}#inventory #craft-ingredients{margin:0;width:224px;table-layout:fixed}#inventory #craft-ingredients th:first-child,#inventory #craft-ingredients td:first-child{width:143px}#inventory #craft-ingredients th:nth-child(2),#inventory #craft-ingredients td:nth-child(2){width:33px}#inventory #craft-ingredients th:nth-child(3),#inventory #craft-ingredients td:nth-child(3){width:33px}#inventory #craft-ingredients th:last-child,#inventory #craft-ingredients td:last-child{width:15px}
#inventory #craft-quantity{position:absolute;left:92px;bottom:6px;display:flex;gap:2px;height:15px;margin:0;font-size:12px}#inventory #craft-quantity label{display:none}#inventory #craft-quantity button{width:12px;min-width:12px;height:14px;min-height:0;padding:0;margin:0;border:0;background:#444;line-height:12px}#inventory #craft-amount{width:26px;height:14px;padding:0;border:0;border-radius:0;font-size:12px;line-height:12px;background:#111}
#inventory #craft{position:absolute;right:16px;bottom:6px;width:65px;height:16px;min-height:0;margin:0;padding:0;border:0;background:#444;line-height:14px;font-size:12px}#inventory #craft-requirement{position:absolute;top:72px;left:0;width:224px;height:14px;text-align:center;font-size:12px;line-height:14px;margin:0}#inventory #craft-progress{position:absolute;left:16px;bottom:8px;width:72px;height:12px;margin:0}#inventory #craft-status{position:absolute;left:16px;bottom:7px;width:72px;margin:0;overflow:hidden;white-space:nowrap;font-size:10px;line-height:12px}
#inventory #loot{position:absolute;left:14px;top:48px;display:grid;grid-template-columns:repeat(3,64px);grid-auto-rows:64px;gap:8px;align-content:start;height:286px;overflow:hidden;margin:0;padding:0}#inventory #loot.rpos-shaped-container{left:21px;top:36px;display:block;max-height:none;overflow:visible}#inventory #loot-action{position:absolute;bottom:16px;left:80px;width:100px;height:15px;padding:0;margin:0;border:0;border-radius:0;font-size:12px;line-height:14px;background:#444}
#item-tooltip .tooltip-title .rpos-line canvas{height:28px;width:auto;max-width:145px;image-rendering:pixelated}#item-tooltip .tooltip-title .rpos-line{min-height:28px}
body:has(#inventory[open])>header,body:has(#inventory[open])>aside{visibility:hidden}

/* PopupUI pnlPopup layer (full-screen dfPanel, pixel-perfect GameUI Root): PopupInventory entries are positioned by browser/popup-ui.mjs. */
#popup-ui{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:5}#popup-ui .popup-inventory{position:absolute;left:0;top:0;will-change:transform}#popup-ui .popup-inventory>*{position:absolute;display:block;margin:0;padding:0;font-style:normal;font-weight:normal;white-space:nowrap;overflow:visible}#popup-ui .popup-background{inset:0}

/* HUD ChatUI pnlChat (browser/chat.mjs places every control from the exported dfControl layout). pnlChat and pnlChatLine
   clip their children (clipChildren 1); the dfTextbox has no background sprite. Hidden with the HUD while the menu shows. */
#chat-ui{position:fixed;inset:0;pointer-events:none;z-index:5}#chat-ui .chat-panel,#chat-ui .chat-container,#chat-ui .chat-textbox,#chat-ui .chat-line,#chat-ui .chat-label,#chat-ui .chat-quotes{position:absolute;margin:0;padding:0;box-sizing:border-box}
#chat-ui .chat-panel,#chat-ui .chat-line{overflow:hidden}#chat-ui .chat-label{white-space:pre;overflow:visible;font-weight:normal;font-style:normal}#chat-ui .chat-sprite{display:inline-block;vertical-align:top}
#chat-ui .chat-textbox[hidden]{display:none}#chat-ui .chat-quotes{white-space:pre;font-weight:normal;font-style:normal}
#chat-input{position:absolute;inset:0;width:100%;height:100%;margin:0;border:0;border-radius:0;outline:0;background:transparent;box-sizing:border-box;pointer-events:auto;font-weight:normal}#chat-input::selection{background:var(--chat-selection)}
body.rlb-menu-open #chat-ui{visibility:hidden}
/* RPOS is a non-modal dialog (inventory-ui.mjs): over the HUD, notices, context popup and lock entry as the modal top
   layer was, under the death screen, the main menu and the F1 console; chat (usable with RPOS up) stays over it. */
#inventory.rpos-inventory{z-index:800}body:has(#inventory[open]) #chat-ui{z-index:801}

/* GameUI DeathScreen (browser/death-screen.mjs positions every control from the exported dfControl layout; these are 1280x720 fallbacks).
   Background BLANK_TEXTURE sprite fades to opaque #1a1a1a; RobotoCondensed-Bold title/buttons, Regular reason label. */
#death{position:fixed;inset:0;z-index:900;overflow:hidden;color:#fff;font-family:RobotoCondensed-Regular,Arial,sans-serif;cursor:default}
#death>*{position:absolute;margin:0;padding:0}#death .death-background{left:-48px;top:-48px;right:-48px;bottom:-48px;background:#1a1a1a00;pointer-events:none}
#death .death-title{left:calc(50% - 772px);top:56px;width:1544px;height:488px;opacity:0;pointer-events:none}#death .death-title>span{position:absolute;display:block;white-space:pre;overflow:visible;font-family:RobotoCondensed-Bold,Arial,sans-serif;text-align:center;color:rgb(205,65,44)}
#death .death-you-are{left:-74px;top:32px;width:1692px;height:248px;font-size:71px;line-height:71px;letter-spacing:2.7px}#death .death-dead{left:-38px;top:72px;width:1620px;height:414px;font-size:172px;line-height:172px}
#death .death-gradient{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;background-repeat:repeat-y;background-origin:content-box}
#death .death-info{left:calc(50% - 250px);top:calc(50% - 98px);width:500px;padding-top:100px;font-size:22px;line-height:21.3px;text-align:center;color:rgba(185,185,185,0);overflow-wrap:break-word;pointer-events:none}
#death .death-buttons{right:104px;bottom:32px;width:288px;height:160px;opacity:0}#death .death-buttons button{position:absolute;margin:0;padding:0;border:0;border-radius:0;background:none;white-space:pre;font-family:RobotoCondensed-Bold,Arial,sans-serif;color:var(--text,#a3a3a3);cursor:pointer}
#death .death-buttons button:hover{background:none;color:var(--hover,#fff)}#death .death-buttons button:active{color:var(--pressed,#cd412c)}
#death #respawn{left:18px;top:0;width:253px;height:64px;font-size:64px;line-height:64px;text-align:left}#death #respawn-camp{left:6px;top:64px;width:276px;height:32px;font-size:32px;line-height:32px;text-align:right}
/* DeathScreen.OutroAnimations: FadeOut plays, the cursor unlocks for play again, Hide() follows 5 s later. */
#death.death-outro,#death.death-outro *{pointer-events:none}
/* DeathTransfer: rposLimitFlags KeepOff|HideInventory|HideContext|HideSprites while dead (RPOS closed, belt panel and HUD hidden); the debug vitals line stays hidden too. */
body.player-dead #vitals,body.player-dead #belt,body.player-dead #game-hud,body.player-dead #use-hint,body.player-dead #use-hover{display:none!important}
/* RPOSCraftWindow bottom row, window-local from WindowBackground (-108,18): Progress Bar (-92,-395) 75x12 with secondslabel centred at +37
   (craftingSecondsRemaining "0.0", only while crafting), MinusButton -9 / AmountInput -2 (25 wide) / PlusButton 31 (12x12), CraftButton 87.67,-394.86 (100x15). */
#inventory #craft-progress{left:16px;top:407px;bottom:auto;width:75px;height:12px}
#inventory #craft-status{left:16px;top:407px;bottom:auto;width:75px;height:12px;display:flex;justify-content:center;align-items:center;overflow:visible;font-size:12px;line-height:12px;pointer-events:none}#inventory #craft-status[hidden]{display:none}
#inventory #craft-quantity{left:93px;top:407px;bottom:auto;height:12px;gap:0}#inventory #craft-quantity button{height:12px}#inventory #craft-quantity #craft-minus{margin-right:1px}#inventory #craft-quantity #craft-amount{width:25px;height:12px}#inventory #craft-quantity #craft-plus{margin-left:2px}
#inventory #craft{left:146px;top:405px;right:auto;bottom:auto;width:100px;height:15px}
/* RPOSInventoryCell.Update: the belt cell holding the inventory's active item tints its BackgroundDarkener ("white" atlas sprite, 64x64) Color.grey;
   other cells keep the serialized darkener colour (0.045,0.045,0.045,0.749). Empty selected slots are not highlighted. */
#belt>.item-slot.selected::after{content:none}
#belt>.item-slot.active-item,.hud-active #belt .item-slot.active-item{background-image:linear-gradient(#808080,#808080),var(--belt-cell);background-blend-mode:normal,multiply}
/* Original StatusPanel (browser/hud.mjs places every element from the exported NGUI locals; origin = StatusPanel transform). */
#game-hud.hud-native .hud-status{inset:auto}#game-hud.hud-native .hud-row{left:0;top:0;right:auto;width:0;height:0}
#game-hud.hud-native .hud-row span,#game-hud.hud-native .hud-row output{position:absolute;width:auto;height:18px;font-size:12px;line-height:12px}#game-hud.hud-native .hud-row span.hud-bitmap canvas,#game-hud.hud-native .hud-row output.hud-bitmap canvas{left:0;top:0;transform:none}
#game-hud.hud-native .hud-row i{position:absolute;box-sizing:border-box;background:#000}#game-hud.hud-native .hud-row b{display:block;position:static}
#game-hud.hud-native .hud-status{width:0;height:0;background:none}#game-hud.hud-native .hud-panel{position:absolute;display:block;background-size:100% 100%;background-repeat:no-repeat}
/* GameTooltipManager name tags (name-tags.mjs): prefabTooltip dfLabel, RobotoCondensed-Bold 16 x textScale 3, white, centred, no outline/shadow. */
#name-tags{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2}.name-tag{position:absolute;left:0;top:0;height:48px;line-height:48px;font:48px "RobotoCondensed-Bold",sans-serif;white-space:nowrap;text-align:center;transform-origin:0 0;color:#fff;will-change:transform,opacity}.name-tag[hidden]{display:none}
body.rlb-menu-open #name-tags{display:none}
/* gui.hide (GUIHide on the RPOS UI Root and the GameUI Overlay): HUD, belt, inventory windows and name tags. */
body.rlb-gui-hidden #game-hud,body.rlb-gui-hidden #belt,body.rlb-gui-hidden #vitals,body.rlb-gui-hidden #inventory,body.rlb-gui-hidden #item-tooltip,body.rlb-gui-hidden #item-drag,body.rlb-gui-hidden #name-tags{visibility:hidden!important}
/* UIDraggablePanel lists (browser/rpos-scroll.mjs): the clip hides overflow and the contents move by --rpos-scroll; UIScrollBar track/thumb colours and alpha are set inline. */.rpos-scrolled:not(.rpos-shaped-container){overflow:hidden!important}.rpos-scrolled:not(.rpos-shaped-container)>*{translate:0 calc(-1 * var(--rpos-scroll,0px))}#inventory .rpos-scroll-bar{position:absolute;z-index:2;touch-action:none}#inventory .rpos-scroll-thumb{position:absolute;left:0;width:100%}#inventory #loot.rpos-shaped-container~.rpos-scroll-bar{display:none}
/* RPOSRepairBenchWindow labels and Repair button at their layout nodes (inventory-ui repairFrame, rpos.mjs placeLabel/placeSprite). */#inventory #repair-info{position:absolute;inset:0;pointer-events:none}#inventory #repair-info[hidden],#inventory .rpos-repair-label[hidden]{display:none}#inventory .rpos-repair-label{position:absolute;margin:0;padding:0;white-space:nowrap}#inventory #loot-action.rpos-repair-button{display:flex;align-items:center;justify-content:center;box-sizing:border-box}#inventory #loot-action[hidden]{display:none}
/* Start-up failures outside the original game (webgl-support.mjs): no WebGL 2, a lost GPU, a failed start. */
#startup-error{position:fixed;inset:0;margin:auto;height:fit-content;box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;z-index:20000;padding:24px 28px;background:#141414;color:#eee;border:1px solid #444;font:15px/1.5 system-ui,"Segoe UI",sans-serif}
#startup-error h2{margin:0 0 8px;font-size:20px}#startup-error p{margin:0 0 8px}#startup-error ul{margin:0 0 12px;padding-left:20px}
#startup-error button{font:inherit;padding:8px 18px;background:#cd5a28;color:#fff;border:0;cursor:pointer}#startup-error button:focus-visible{outline:2px solid #fff;outline-offset:2px}
