/* v251 inventory spacing, stat filters and explicit equipment swaps. */
#holegame .hole-inventory-tools{position:sticky;top:-6px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#191812;padding:8px;border:1px solid #615844;color:#d5c8aa;font:11px monospace}
#holegame .hole-inventory-tools label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#holegame .hole-inventory-tools small{color:#a99c80}
#holegame .hole-inventory-result-count,#holegame .hole-inventory-empty{font:11px/1.5 monospace;color:#bbb095;margin:8px}
#holegame .hole-goal-item-value,#holegame .hole-goal-item-bonus{display:block;font:10px/1.45 monospace;margin-top:5px;overflow-wrap:anywhere}
#holegame .hole-goal-item-value{color:#f1d780;font-weight:bold}
#holegame .hole-goal-item-bonus{color:#a8c6d4}
#holegame [data-gear-control],#holegame #hole-outfit-name{box-sizing:border-box;max-width:100%;min-height:34px;background:#090a09;border:1px solid #82765b;color:#e7ddc7;padding:6px;font:12px 'Courier New',monospace}
#holegame .hole-copy-found{outline:2px solid #f3d485;outline-offset:2px;background:#282219}
#holegame .hole-item-copy>button+button{margin-left:5px}
#holegame .hole-outfits{margin-top:10px;padding-top:8px;border-top:1px solid #615844;color:#d5c8aa;font:11px/1.5 monospace}
#holegame .hole-outfits summary{cursor:pointer;font-weight:bold;padding:5px 0}
#holegame .hole-outfits>small{display:block;color:#afa38a;margin:5px 0}
#holegame .hole-outfit-create{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#holegame #hole-outfit-name{flex:1;min-width:140px;width:160px}
#holegame .hole-outfit-row{border-top:1px solid #403a2d;padding:8px 0;margin-top:8px}
#holegame .hole-outfit-row>b{display:block;overflow-wrap:anywhere;color:#efe0b6}
#holegame #hole-loot-overview .hole-outfit-row button{margin:6px 5px 0 0;padding:6px 9px}
#holegame .hole-gear-comparison{margin-top:10px;padding:10px;background:#10110f;border:1px solid #847654;font:11px/1.5 monospace;color:#d6c9a8;scroll-margin-top:8px}
#holegame .hole-gear-comparison>b,#holegame .hole-gear-comparison>small{display:block;margin-bottom:8px}
#holegame .hole-gear-comparison label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:8px}
#holegame .hole-gear-comparison select{width:100%}
#holegame .hole-swap-pair{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:6px;margin:10px 0;align-items:start}
#holegame .hole-swap-card{display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid #66604f;background:#191914;padding:8px;min-width:0;text-align:center}
#holegame .hole-swap-card.outgoing{border-color:#9a655e}
#holegame .hole-swap-card.incoming{border-color:#6f9c79}
#holegame .hole-swap-card>small{font-weight:bold;letter-spacing:1px;color:#eac0b2}
#holegame .hole-swap-card.incoming>small{color:#b7e2bd}
#holegame .hole-swap-card img{width:44px;height:44px;object-fit:contain}
#holegame .hole-swap-card>b{font:11px/1.5 monospace;overflow-wrap:anywhere;color:#f0e3c5}
#holegame .hole-swap-card>span{font:9px/1.4 monospace;color:#aaa18f}
#holegame .hole-swap-card details{width:100%;font:9px/1.4 monospace}
#holegame .hole-swap-card details>summary{cursor:pointer;padding:6px 0}
#holegame .hole-swap-card .hole-rolled-stat{display:block;overflow-wrap:anywhere}
#holegame .hole-swap-card .hole-rolled-stat b{display:block}
#holegame .hole-swap-arrow{align-self:center;font:bold 17px monospace;color:#d4c394}
#holegame .hole-swap-retained{color:#c2d2b6}
#holegame .hole-swap-delta-title{font:10px/1.5 monospace;margin-top:10px}
#holegame .hole-gear-comparison [data-gear-action="compare-apply"]{width:100%;overflow-wrap:anywhere}
#holegame .hole-gear-delta{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid #292b25}
#holegame .hole-gear-delta.gain{color:#8cdb9c}
#holegame .hole-gear-delta.loss{color:#f29a91}
#holegame .hole-gear-delta b{white-space:nowrap}
#holegame .hole-gear-notice{font:11px/1.4 monospace;color:#eed797;overflow-wrap:anywhere;margin:8px 0 0}
#holegame .hole-gear-notice:empty{display:none}
#holegame .hole-equipment-info>.hole-gear-comparison,#holegame .hole-equipment-info>.hole-gear-notice{grid-column:1/-1}
@media(max-width:620px){#holegame .hole-gear-delta{font-size:10px}#holegame .hole-inventory-tools{gap:3px}}
@media(max-width:480px){#holegame #hole-player-bar{flex-wrap:wrap;gap:5px}#holegame #hole-player-bar .hole-player-controls{flex-basis:100%;flex-wrap:wrap}}

/* Give copies more reading room; equipment remains visible and accessible. */
#holegame .hole-inventory-scroll{height:400px;max-height:55dvh;padding-top:10px;padding-bottom:12px}
#holegame .hole-inventory-tools{margin-bottom:10px}
#hole-focus-shell #holegame .hole-equipment-dock{max-height:max(140px,45%)}
@container hole-gear-window (min-width:720px) and (min-height:352px){
 #hole-focus-shell #holegame.hole-focus-desktop .hole-equipment-dock{max-height:none}
}
@media(max-width:620px){#holegame .hole-inventory-scroll{height:360px;max-height:50dvh}}

/* Recovery is a native top-layer modal, above loot and mastery dialogs. */
#holegame{position:relative}
#holegame>#hole-recovery-shade{position:absolute;inset:0;z-index:2147483646;background:#000b;pointer-events:auto}
#holegame>#hole-save-standby.hole-recovery-dialog[open]{display:block;position:fixed;inset:auto;left:var(--recovery-x);top:var(--recovery-y);transform:translate(-50%,-50%);z-index:2147483647;margin:0;width:var(--recovery-width,480px);max-width:calc(100vw - 24px);height:fit-content;max-height:var(--recovery-height,calc(100dvh - 24px));overflow:auto;box-sizing:border-box;padding:18px;background:#171717;border:2px solid #94745c;font:12px/1.6 'Courier New',monospace;color:#eee}
#hole-save-standby.hole-recovery-dialog::backdrop{background:transparent;pointer-events:none}
#holegame>#hole-save-standby.hole-recovery-dialog button{width:auto;max-width:100%;min-height:42px;padding:8px 16px;margin:12px auto 0;white-space:normal}
dialog.hole-recovery-held{visibility:hidden!important}

/* Compact, non-modal game settings; recovery still sits above this popover. */
#holegame #hole-player-bar #hole-settings-button{float:none!important;width:auto!important;min-width:0!important;min-height:0!important;height:20px!important;margin:0!important;padding:0 7px!important;font:bold 8px/18px 'Courier New',monospace!important;white-space:nowrap;border:1px solid #766c50!important;background:#201c15!important;color:#d8c69e!important}
#holegame #hole-player-bar #hole-settings-button[aria-expanded="true"]{color:#ffe49a!important;border-color:#c3a76a!important}
#holegame #hole-settings{position:fixed;inset:auto;left:var(--hole-settings-x,12px);top:var(--hole-settings-y,12px);margin:0;width:var(--hole-settings-width,320px);max-width:calc(100vw - 24px);max-height:var(--hole-settings-height,calc(100dvh - 24px));overflow:auto;box-sizing:border-box;padding:14px;background:#16140f;border:1px solid #95805a;color:#e7dab9;font:12px/1.4 'Courier New',monospace;box-shadow:0 8px 24px #0008;z-index:10000}
#holegame #hole-settings[data-fallback]{position:absolute}
#holegame #hole-settings[hidden]{display:none!important}
#hole-settings::backdrop{background:transparent;pointer-events:none}
#holegame #hole-settings .hole-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #4c4231;color:#ffe49a}
#holegame #hole-settings .hole-settings-heading button{float:none;width:30px;min-width:30px;height:30px;min-height:30px;padding:0;margin:0;font:bold 20px 'Courier New',monospace;background:#292015;color:#e7dab9;border:1px solid #716247;cursor:pointer}
#holegame #hole-settings .hole-settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;min-height:44px;margin:0;padding:9px 0;border-bottom:1px solid #342e22;cursor:pointer}
#holegame #hole-settings .hole-settings-row small{display:block;font-size:10px;color:#a99d83;margin-top:3px}
#holegame #hole-settings select{box-sizing:border-box;width:auto;max-width:120px;min-height:36px;padding:6px;background:#080908;color:#f0dfae;border:1px solid #827154;font:11px 'Courier New',monospace}
#holegame #hole-settings input[type="checkbox"]{flex:none;width:20px;height:20px;min-width:20px;margin:0;accent-color:#d8bd79;cursor:pointer}
#holegame #hole-settings h3{font:bold 11px 'Courier New',monospace;color:#c4b28b;margin:18px 0 0;padding:0}
#holegame #hole-settings .hole-settings-master{color:#ffe49a}
#holegame #hole-settings #hole-settings-sound-status{margin:10px 0 0;min-height:28px;font-size:10px;color:#e1c888}
#holegame #hole-settings #hole-settings-sound-status:empty{visibility:hidden}
#holegame #hole-settings .hole-settings-note{display:block;font-size:10px;color:#978e7a;margin-top:12px}
#holegame #hole-settings :focus-visible{outline:2px solid #ffe49a;outline-offset:3px}

/* Complete boss sets share a quiet frame glow; no connecting lines or animation. */
#holegame .hole-equipment-slot>button.hole-boss-set-active{
 border-color:var(--boss-set-color);
 outline:1px solid color-mix(in srgb,var(--boss-set-color),transparent 30%);
 outline-offset:1px;
 box-shadow:inset 0 0 7px color-mix(in srgb,var(--boss-set-color),transparent 78%),0 0 7px color-mix(in srgb,var(--boss-set-color),transparent 45%),0 0 2px var(--boss-set-color);
}
