/* Expedition equipment: dark leather, aged brass, readable paper labels. */
:root{--ui-leather:#222925;--ui-border:#8d744b;--ui-parchment:#e3d1ac;--ui-muted:#c0b59b;--ui-copper:#bc925c}
button:focus-visible,a:focus-visible{outline:2px solid #f3ce87;outline-offset:4px}
.overlay{background:#111a18c9;backdrop-filter:blur(9px)}
#inventory{padding:24px}
.panel.satchel-panel{width:min(1120px,96vw);max-width:none;max-height:92dvh;overflow:auto;padding:0;text-align:left;background:linear-gradient(125deg,#33372d,#1a2320);color:#e6d6b3;border:1px solid #b18e58;border-radius:5px;box-shadow:0 0 0 5px #171f1c,0 0 0 6px #66563d,0 24px 100px #0009}
.satchel-heading{display:flex;align-items:center;gap:18px;padding:24px 30px;border-bottom:1px solid #8b724957;background:linear-gradient(90deg,#68533b33,transparent);position:relative}
.satchel-emblem{width:64px;height:64px;border:1px solid #99794a;background:radial-gradient(#69523b66,#121b17);border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 4px #242b23}
.satchel-emblem img{width:52px;height:52px;object-fit:contain}
.satchel-heading .eyebrow{color:#c8a773;font:10px 'Courier New',monospace;letter-spacing:2px}
.satchel-heading h2{font:32px Georgia,serif;color:#f1dfbb;margin:5px 0}
.satchel-heading p{color:#b9b29e;margin:0;font:12px system-ui,sans-serif}
.satchel-heading .close-panel{right:20px;top:20px;width:36px;height:36px;border:1px solid #92784d;border-radius:50%;color:#e4cba1;background:#1a231f;font-size:26px;line-height:1}
.satchel-body{display:grid;grid-template-columns:220px minmax(250px,1fr) 300px;min-height:430px}
.equipment-column{padding:24px 20px;border-right:1px solid #8b724940;background:#111a183b}
.section-label{font:10px 'Courier New',monospace;letter-spacing:1.6px;color:#c8ae80;display:block}
.gear-slot{width:100%;display:flex;align-items:center;gap:8px;padding:12px 8px;margin-top:14px;color:#e8d6b3;background:linear-gradient(120deg,#4a49372b,#111c18);border:1px solid #8d744b88;text-align:left;border-radius:3px;cursor:pointer}
.gear-slot:hover{border-color:#debc7d;background:#61513733}
.gear-slot img{width:44px;height:52px;object-fit:contain;filter:drop-shadow(0 3px 5px #0008)}
.gear-slot small{display:block;color:#b3a484;font:8px 'Courier New',monospace;letter-spacing:1px;margin-bottom:5px}
.gear-slot strong{font:13px Georgia,serif;line-height:1.4}
.gear-check{margin-left:auto;color:#9fb9a3;font-size:12px}
.mixer{display:grid;gap:9px;margin:16px 0 8px;padding:10px 14px 12px;border:1px solid #6b4f2a55;border-radius:3px;background:#3a2a1410}
.mixer legend{padding:0 6px;color:#6b5230;font:10px 'Courier New',monospace;letter-spacing:1px;text-transform:uppercase}
.mixer label{display:flex;align-items:center;gap:12px;color:#3a2a14;font:13px Georgia,serif}
.mixer label span{width:72px}.mixer input{flex:1;accent-color:#8a5a1e}
.gear-empty{flex:none;width:44px;height:52px;border:1px dashed #8d744b88;border-radius:3px;background:#0b140f66}
.gear-slot:has(.gear-empty) strong{color:#9d9279;font-style:italic}
.gear-stats{margin:24px 0;border-block:1px solid #92784d44;padding:8px 0}
.gear-stats>div{display:flex;justify-content:space-between;padding:8px 0;font:12px system-ui,sans-serif;color:#c9bea5}
.gear-stats strong{font:19px Georgia,serif;color:#f0d4a2}
.resource-purse{display:flex;align-items:center;gap:12px}.resource-purse img{width:34px;height:40px;object-fit:contain}.resource-purse strong{display:block;font:22px Georgia,serif}.resource-purse small{display:block;color:#b9ad94;font:10px system-ui,sans-serif;margin-top:4px}
.panel .equipment-caption{font:11px/1.7 system-ui,sans-serif;color:#a9a38e;margin:22px 0 0}
.satchel-storage{padding:24px}
.storage-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.storage-heading>span:last-child{color:#a9a38e;font:10px system-ui,sans-serif}
.item-filters{display:flex;flex-wrap:wrap;gap:4px;margin:19px 0}
.item-filters button{border:1px solid transparent;border-bottom:1px solid #746243;padding:8px 9px;background:none;color:#bdb6a2;font:11px system-ui,sans-serif;cursor:pointer}
.item-filters button[aria-pressed=true]{background:#b28a4f22;border-color:#ba985e;color:#ffe2ad;border-radius:2px}
.satchel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}
.satchel-item{border:1px solid #756346;background:linear-gradient(145deg,#56533a24,#101916);padding:0;color:#d9c9a7;border-radius:3px;overflow:hidden;cursor:pointer;text-align:center;transition:border-color .15s,background .15s}
.satchel-item:hover{background:#80613b2e;border-color:#bd9b62}.satchel-item.selected{border-color:#e5bd76;box-shadow:0 0 0 1px #e5bd7633,inset 0 0 18px #d0a15c15}
.item-art{display:grid;place-items:center;position:relative;height:97px;background:radial-gradient(ellipse at center,#ac854422,transparent 70%)}
.item-art img{width:72px;height:76px;object-fit:contain;filter:drop-shadow(0 5px 4px #0008);transition:transform .15s}.satchel-item:hover img{transform:translateY(-2px)}
.item-art b{position:absolute;right:7px;bottom:7px;font:11px system-ui,sans-serif;color:#f0d5a7}
.equipped-label{position:absolute;left:0;bottom:0;background:#3a5148;color:#d6e8d6;font:9px system-ui,sans-serif;padding:3px 6px}
.item-name{display:block;min-height:38px;padding:8px 4px;border-top:1px solid #78634255;background:#121b1888;font:11px/1.35 Georgia,serif}
.depleted .item-art{opacity:.4}
.item-detail{padding:24px;background:linear-gradient(135deg,#e7d5b0,#cbb48a);color:#352d24;border-left:3px solid #a17e4b;box-shadow:inset 5px 0 16px #70553522;display:flex;flex-direction:column;align-items:flex-start}
.item-illustration{height:110px;width:100%;display:grid;place-items:center;background:radial-gradient(ellipse,#a37a4430,transparent 68%);margin-bottom:18px}.item-illustration img{width:100px;height:110px;object-fit:contain;filter:drop-shadow(2px 5px 4px #65503355)}
.item-detail .eyebrow{font:9px 'Courier New',monospace;letter-spacing:1.5px;color:#755435}.item-detail h3{font:25px/1.15 Georgia,serif;margin:9px 0 13px;color:#342a1e}
.panel .item-detail p{font:12px/1.75 system-ui,sans-serif;color:#5b4933;margin:0 0 18px}
.item-comparison{font:12px/1.6 system-ui,sans-serif;border-block:1px solid #93744866;padding:12px 0;width:100%;color:#4b3b26;margin-bottom:13px}
.item-comparison[data-change=better]{color:#28533c}.item-comparison[data-change=worse]{color:#8a3528}
.panel .item-detail .item-note{font-size:10px;color:#6e5b40}
.item-detail .primary-button{margin-top:auto;width:100%;justify-content:center;min-height:44px;padding:12px 15px;font:13px Georgia,serif;background:linear-gradient(#4c6050,#2e4338);color:#ffe3b4;border:1px solid #6a6e4b;border-radius:2px;box-shadow:inset 0 0 0 2px #283f3155}
.item-detail .primary-button:disabled{background:#8c7c6025;color:#79674e;border-color:#9b835966;cursor:default;transform:none;box-shadow:none;opacity:1}
.satchel-footer{padding:14px 24px;border-top:1px solid #8b724957;display:flex;justify-content:space-between;gap:14px;font:10px system-ui,sans-serif;color:#bcb29a}.satchel-footer i{display:inline-block;width:5px;height:5px;background:#94ae95;border-radius:50%;margin-right:7px}.satchel-footer kbd{font-size:9px}
.ability-icon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #0008)}
@media(max-width:950px){.satchel-body{grid-template-columns:175px 1fr 250px}.satchel-storage{padding:20px 16px}.satchel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.equipment-column{padding:24px 12px}.satchel-heading h2{font-size:27px}.item-detail{padding:20px}}
@media(max-width:700px){#inventory{padding:12px}.panel.satchel-panel{max-height:94dvh;width:100%}.satchel-heading{padding:20px 16px;gap:12px}.satchel-heading h2{font-size:23px;max-width:230px}.satchel-heading .eyebrow{font-size:8px;letter-spacing:1px}.satchel-emblem{display:none}.satchel-heading .close-panel{right:12px;top:12px}.satchel-body{grid-template-columns:1fr}.equipment-column{padding:16px;display:grid;grid-template-columns:1fr 1fr;gap:10px;border-right:0;border-bottom:1px solid #8b724940}.equipment-column>.section-label{grid-column:1/-1}.gear-slot{margin:0}.gear-stats{margin:0;display:flex;gap:20px;align-items:center}.gear-stats>div{gap:10px}.resource-purse{justify-content:flex-end}.equipment-caption{display:none}.satchel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.item-art{height:80px}.item-art img{height:65px}.item-detail{border-left:0;border-top:3px solid #a17e4b;display:block}.item-illustration{float:right;width:88px;height:88px;margin:0 0 12px 12px}.item-illustration img{width:80px;height:88px}.item-detail h3{font-size:23px}.satchel-footer{padding:12px;font-size:9px;flex-wrap:wrap}.item-filters button{min-height:38px}}
@media(prefers-reduced-motion:reduce){.satchel-item,.item-art img{transition:none}}
/* Desktop equipment progression: the third slot and forge action stay inside the satchel. */
@media(min-width:951px){
 .panel.satchel-panel{width:min(1200px,96vw);max-height:94dvh}
 .satchel-heading{padding:14px 24px}
 .satchel-emblem{width:48px;height:48px;flex:none}
 .satchel-emblem img{width:40px;height:40px}
 .satchel-heading h2{font-size:28px;margin:3px 0}
 .satchel-body{grid-template-columns:240px minmax(280px,1fr) 330px;min-height:0}
 .equipment-column{padding:16px 18px}
 .gear-slot{padding:7px;margin-top:9px;min-height:60px}
 .gear-slot img{width:37px;height:43px}
 .gear-stats{margin:12px 0;padding:3px 0}
 .gear-stats>div{padding:5px 0}
 .resource-purse img{width:25px;height:30px}
 .panel .equipment-caption{margin:10px 0 0;font-size:10px}
 .satchel-storage{padding:16px}
 .item-filters{margin:10px 0}
 .satchel-grid{gap:8px}
 .item-art{height:76px}
 .item-art img{height:64px}
 .item-name{min-height:33px;padding:6px 4px}
 .item-detail{padding:16px}
 .item-illustration{height:75px;margin-bottom:8px}
 .item-illustration img{height:75px}
 .item-detail h3{font-size:22px;margin:6px 0}
 .panel .item-detail p{margin-bottom:10px;line-height:1.5}
 .item-comparison{padding:8px 0;margin-bottom:8px}
 .satchel-footer{padding:9px 16px}
}
.gear-slot em{display:block;margin-top:4px;color:#cbb58b;font:10px system-ui,sans-serif;font-style:normal}
.gear-stats #satchelCost{font:12px Georgia,serif;white-space:nowrap}
.item-comparison{white-space:pre-line}
.item-detail .upgrade-button{width:100%;min-height:42px;margin-top:9px;padding:10px 12px;border:1px solid #8a6b42;border-radius:2px;background:#d9c397;color:#3d3627;font:12px Georgia,serif;cursor:pointer}
.item-detail .upgrade-button:hover:not(:disabled){background:#f0d7a4;border-color:#73512d}
.item-detail .upgrade-button:disabled{opacity:.55;cursor:default}
.item-detail .upgrade-button[hidden]{display:none}
