/* Inventory UI with approved Work icons; gameplay and ownership are unchanged. */
#inventory-toggle{position:absolute;top:12px;right:12px;z-index:8;min-height:44px;padding:8px 13px;border:1px solid #879c9e;background:#101b25ed;color:#eee7d8;font:14px/1.2 Arial,sans-serif;touch-action:manipulation;box-shadow:0 3px 12px #0006}
#inventory-toggle kbd{margin-left:12px;padding:2px 5px;border:1px solid #657c83;color:#aed7dc;font:12px/1 monospace}
#inventory-toggle:disabled{opacity:.45;cursor:default}
#inventory-toggle:hover:not(:disabled){background:#253a46}
.nova-inventory{box-sizing:border-box;width:min(880px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid #7e969c;background:#0e151d;color:#ede6d6;box-shadow:0 15px 80px #000c;font:16px/1.5 Arial,sans-serif;overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.nova-inventory::backdrop{background:#03060bd6}
.nova-inventory *{box-sizing:border-box}
.inventory-panel{padding:24px}
.nova-inventory button{font:inherit;color:inherit;min-height:44px;padding:10px 15px;background:#192530;border:1px solid #495b64;cursor:pointer;touch-action:manipulation}
.nova-inventory button:hover{background:#263c48}
.nova-inventory button:focus-visible,.nova-inventory [tabindex]:focus-visible,#inventory-toggle:focus-visible{outline:2px solid #b4e4e8;outline-offset:3px}
.nova-inventory .inventory-header{position:sticky;top:0;z-index:2;height:auto;min-height:0;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 0 18px;border-bottom:1px solid #33434e;background:#0e151d;letter-spacing:0}
.inventory-eyebrow{margin:0 0 4px;font:11px/1.4 Arial,sans-serif;letter-spacing:2px;text-transform:uppercase;color:#a8cbd0}
.nova-inventory h2{font:normal 28px/1.2 Georgia,serif;letter-spacing:.5px;margin:0}
.inventory-equipped{padding:10px 0;margin:3px 0 9px;color:#c4b899;font-size:14px}
.inventory-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:18px}
.inventory-tabs button{padding:9px 7px;font-size:12px;line-height:1.3;text-transform:uppercase;letter-spacing:.5px}
.inventory-tabs [aria-selected=true]{background:#28414a;border-color:#9ec9cd;color:#eaf6f5;box-shadow:inset 0 -2px #a8d9dc}
.inventory-body{display:grid;grid-template-columns:minmax(210px,1fr) minmax(260px,1.25fr);gap:22px;min-height:270px}
.inventory-list{display:flex;flex-direction:column;gap:6px;align-self:start;max-height:40dvh;overflow:auto;padding:3px}
.inventory-list button{display:flex;justify-content:space-between;align-items:center;gap:18px;text-align:left;background:#131f29;flex-shrink:0}
.inventory-list [aria-pressed=true]{border-color:#87afb6;background:#203640}
.inventory-item-name{font-size:14px}
.inventory-item-count{font-size:12px;color:#bbccd0;white-space:nowrap}
.inventory-detail{padding:18px 20px;min-width:0;background:#131d26;border:1px solid #34444f;align-self:start;min-height:270px;overflow-wrap:anywhere}
.inventory-detail h3{font:normal 23px/1.3 Georgia,serif;margin:8px 0 14px;color:#f1e9d8}
.inventory-description{font-size:15px;line-height:1.6;margin:0 0 20px;white-space:pre-wrap}
.inventory-quantity,.inventory-ammo{font-size:13px;margin:6px 0;color:#b6c8cd}
.inventory-protection{font-size:12px;color:#bcb29a;margin-top:12px}
.inventory-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.inventory-actions button{font-size:14px}
.inventory-icon{float:right;object-fit:contain;image-rendering:pixelated;margin:0 0 10px 12px}
.inventory-content{white-space:pre-wrap;padding:15px 0 0;margin-top:18px;border-top:1px solid #40515b;font-size:15px;line-height:1.6}
.inventory-content audio{max-width:100%;width:100%;margin-top:12px}
.inventory-content p{margin:0}
.inventory-empty{color:#a9b7bc;font-size:14px;padding:8px 0;margin:0}
.inventory-status{min-height:22px;font-size:13px;color:#b6d6c1;margin:18px 0 0}
.inventory-help{font-size:12px;color:#9dabb2;margin:8px 0 0}
@media(max-width:600px){
 #inventory-toggle{top:8px;right:8px;padding:8px 11px;font-size:13px}
 #inventory-toggle kbd{display:none}
 .nova-inventory{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
 .inventory-panel{padding:16px}
 .inventory-tabs{grid-template-columns:repeat(2,1fr);margin-bottom:12px}
 .inventory-body{grid-template-columns:1fr;gap:12px;min-height:0}
 .inventory-list{max-height:26dvh;min-height:54px}
 .inventory-detail{min-height:180px;padding:16px}
 .inventory-detail h3{font-size:21px}
 .inventory-description{margin-bottom:12px}
 .inventory-status{margin-top:12px}
 .inventory-help{display:none}
}
@media(max-height:540px) and (orientation:landscape){
 .inventory-panel{padding:14px 18px}
 .nova-inventory .inventory-header{padding-bottom:8px}
 .inventory-body{grid-template-columns:1fr 1.2fr;gap:14px;min-height:0}
 .inventory-tabs{grid-template-columns:repeat(4,1fr);margin-bottom:10px}
 .inventory-equipped{padding:5px 0;margin:0}
 .inventory-list{max-height:32dvh}
 .inventory-detail{min-height:160px}
 .inventory-help{display:none}
}
@media(min-width:960px) and (pointer:fine){.expanded-display #inventory-toggle{top:48px}}

/* Work inventory icons: use the delivered transparent 64 px PNGs directly. */
.inventory-item-icon{width:40px;height:40px;flex:0 0 40px;object-fit:contain;image-rendering:pixelated}
.inventory-list .inventory-item-name{flex:1;min-width:0}
.inventory-list button{gap:10px}
.inventory-ammo-icon{width:28px;height:28px;object-fit:contain;image-rendering:pixelated;vertical-align:middle;margin-right:8px}
.inventory-container-icon{clear:right}

/* Full artwork replaces the small icon only in the selected item's detail panel. */
.inventory-object-detail{display:block;width:auto;height:auto;max-width:100%;max-height:min(255px,34dvh);margin:0 auto 14px;object-fit:contain;image-rendering:auto}

/* The postcard has higher-resolution artwork and a larger dedicated display. */
.inventory-object-detail.inventory-cartolina-detail{max-height:min(390px,48dvh);max-width:100%;width:auto;height:auto;image-rendering:auto}

/* Mira photograph: printed paper border, limited to the inventory detail. */
.inventory-object-detail[alt="Fotografia di Mira"]{padding:9px 9px 14px;background:#e6d9c2;border:1px solid #aa9477;box-shadow:2px 3px 6px #0007;image-rendering:pixelated}
