/* BlackVeil enhancement / shadow inheritance. No animations, polls or timers on render. */
.bv-enhance-overlay[hidden]{display:none!important}
.bv-enhance-overlay{position:fixed;inset:0;z-index:93;display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(1,5,3,.8);box-sizing:border-box}
.bv-enhance-window{width:min(860px,100%);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(155deg,#282720,#111510 76%);border:1px solid #a38958;border-radius:5px;box-shadow:0 14px 90px #000e;color:#e2d4b9;font:12px/1.5 'Hahmlet','Malgun Gothic',sans-serif}
.bv-enhance-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #725d3d}
.bv-enhance-head strong{font-size:17px;color:#e6c38a}.bv-enhance-head small{display:block;color:#a89b81;font:9px/1.4 serif;letter-spacing:1px}
.bv-enhance-head button{background:none;color:#dbc69d;border:1px solid #6d5e44;padding:6px 12px;cursor:pointer}
.bv-enhance-tabs{display:flex;overflow-x:auto;padding:8px 12px;gap:7px;border-bottom:1px solid #4e4736}
.bv-enhance-tabs button,.bv-enhance-actions button{background:#302b21;color:#dbcdad;border:1px solid #776341;padding:8px 12px;cursor:pointer;white-space:nowrap;border-radius:3px}
.bv-enhance-tabs button.active{background:#645037;color:#fff0c8;border-color:#b18c52}
.bv-enhance-columns{display:grid;grid-template-columns:minmax(190px,1fr) minmax(250px,1.25fr);gap:15px;padding:13px;overflow:auto;min-height:0}
.bv-enhance-bag h3{font-size:12px;margin:0 0 10px;color:#c3ab7a}.bv-enhance-bag-items{display:flex;flex-direction:column;gap:5px;max-height:min(57dvh,470px);overflow:auto}
.bv-enhance-gear{display:flex;gap:8px;align-items:center;border:1px solid #463f30;background:#161c16;padding:4px}
.bv-enhance-gear.selected{border-color:#d5a85d;background:#373022}
.bv-enhance-gear-select{flex:1;display:flex;align-items:center;gap:10px;min-width:0;text-align:left;background:none;border:0;color:#ead7aa;cursor:pointer;font:11px/1.3 'Hahmlet',sans-serif}
.bv-enhance-gear-select img{width:36px;height:36px;object-fit:contain}.bv-enhance-gear input{accent-color:#b6955b}
.bv-enhance-control{min-width:0;display:flex;flex-direction:column;gap:12px}
.bv-enhance-control>[data-detail]{font-weight:bold;color:#e8ce94;font-size:14px}
.bv-enhance-setting{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid #504a3b}
.bv-enhance-setting>span{max-width:48%}.bv-enhance-setting select,.bv-enhance-setting input[type=number]{background:#0e1410;color:#e5d7b7;border:1px solid #6d5c3f;border-radius:3px;padding:8px;max-width:60%;min-width:0;font:11px/1.4 'Hahmlet',sans-serif}
.bv-enhance-summary{white-space:pre-line;color:#afa68c;font-size:11px}.bv-enhance-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.bv-enhance-actions button{background:linear-gradient(#715232,#3b2c1c);border-color:#be9252;min-height:38px}
.bv-enhance-actions button:disabled{opacity:.42;cursor:not-allowed}.bv-enhance-quote{width:100%;margin:3px 0;white-space:pre-line;color:#e1c38e;font-size:11px}
.bv-enhance-status{min-height:30px;padding:8px 14px;border-top:1px solid #50452f;color:#d1a882;box-sizing:border-box;overflow-wrap:anywhere}
@media(max-width:630px){.bv-enhance-columns{grid-template-columns:1fr;gap:8px}.bv-enhance-bag-items{max-height:24dvh}.bv-enhance-window{max-height:calc(100dvh - 12px)}.bv-enhance-head{padding:7px 10px}.bv-enhance-columns{padding:8px}.bv-enhance-tabs{padding:6px}.bv-enhance-control{gap:7px}}

/* Inventory icon-grid selection and large central target, Maple-style interaction. */
.bv-enhance-columns{grid-template-columns:minmax(195px,.9fr) minmax(280px,1.25fr);align-items:start}
.bv-enhance-bag-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:5px;max-height:min(55dvh,430px)}
.bv-enhance-gear{position:relative;display:block;aspect-ratio:1;padding:2px;border:1px solid #52432f;min-width:0}
.bv-enhance-gear.selected{border:2px solid #e8bc69;box-shadow:0 0 10px #b6863c55}
.bv-enhance-gear-select{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:1px;color:#e7cca2;overflow:hidden}
.bv-enhance-gear-select img{width:80%;height:75%;object-fit:contain;image-rendering:pixelated}
.bv-enhance-gear-stage{font-size:10px;line-height:1.1;color:#e3ce93}
.bv-enhance-gear>input[type=checkbox]{position:absolute;right:0;top:0;z-index:1;margin:0;width:16px;height:16px}
.bv-enhance-gear-select:focus-visible{outline:2px solid #e8ba72;outline-offset:-2px}
.bv-enhance-bag h3{margin-bottom:8px}
.bv-enhance-gear-select:hover{background:#5b49292e}
@media(max-width:630px){.bv-enhance-columns{grid-template-columns:1fr}.bv-enhance-bag-items{grid-template-columns:repeat(8,minmax(0,1fr));max-height:22dvh}.bv-enhance-gear-stage{font-size:9px}}
@media(max-width:420px){.bv-enhance-bag-items{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* v0.2.70.3: level at bottom-right; original stacked rune socket at top-left. */
.bv-enhance-gear-select{overflow:hidden;}
.bv-enhance-gear-stage{position:absolute;right:2px;bottom:2px;z-index:4;display:block;
  padding:0;border:0;border-radius:0;background:transparent;color:#fff0b7;
  font:900 12px/1.05 Arial,'Malgun Gothic',sans-serif;-webkit-text-stroke:.85px #080806;
  text-shadow:0 0 3px #000,0 1px 2px #000,1px 1px 0 #000,-1px -1px 0 #000;pointer-events:none;}
.bv-enhance-gear-select>.bv-socket-stack{top:2px!important;left:2px!important;}
/* The existing game's custom finger cursor should apply to checkboxes too,
   not the global text-caret cursor assigned to non-range inputs. */
.bv-enhance-overlay input[type='checkbox'],
.bv-enhance-overlay .bv-enhance-setting:has(input[type='checkbox']){
  cursor:url('../assets/cursors/point.png') 7 5,pointer!important;
}
html.cursor-pressed .bv-enhance-overlay input[type='checkbox'],
html.cursor-pressed .bv-enhance-overlay .bv-enhance-setting:has(input[type='checkbox']){
  cursor:url('../assets/cursors/point_pressed.png') 7 5,pointer!important;
}
@media(max-width:630px){.bv-enhance-gear-stage{font-size:10px;right:1px;bottom:1px;}}
