/* INV-01 Inventory */
#inv-body { --r-common: #8a96a3; --r-uncommon: #4caf50; --r-rare: #2f9bff; --r-epic: #b05cff; --r-legendary: #ffb020; }
.inv-top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .inv-top .gl-tabs { flex: 1; }
.inv-cr { font-size: 18px; }
.inv-carrybar { margin: 0 0 10px; padding: 6px 10px; border: 1px dashed var(--line); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inv-wrap { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 16px; align-items: start; }
@media (max-width: 760px) { .inv-wrap { grid-template-columns: 1fr; } }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.inv-slot { position: relative; aspect-ratio: 1 / 1.18; padding: 6px 6px 22px; background: var(--panel2); border: 2px solid var(--rc, var(--r-common)); border-radius: 6px;
  cursor: pointer; display: flex; flex-direction: column; overflow: hidden; box-shadow: inset 0 -30px 40px -30px var(--rc, transparent); }
.inv-slot:hover, .inv-slot.on { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent), inset 0 -30px 40px -30px var(--rc); }
.inv-slot > i { flex: 1; background: center / contain no-repeat; font-style: normal; }
.inv-noimg { display: grid; place-items: center; font-size: 30px; opacity: .6; }
.inv-slot small { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.inv-n { position: absolute; right: 5px; top: 3px; font-size: 12px; text-shadow: 0 1px 2px #000; }
.inv-pin { position: absolute; left: 4px; top: 2px; font-size: 11px; } .inv-carry { position: absolute; left: 4px; bottom: 20px; font-size: 12px; color: var(--accent); }
.r-common { --rc: var(--r-common); } .r-uncommon { --rc: var(--r-uncommon); } .r-rare { --rc: var(--r-rare); } .r-epic { --rc: var(--r-epic); } .r-legendary { --rc: var(--r-legendary); }
.inv-slot.r-legendary { animation: invShine 3s linear infinite; }
@keyframes invShine { 50% { box-shadow: 0 0 12px var(--r-legendary), inset 0 -30px 40px -30px var(--r-legendary); } }
.inv-detail { position: sticky; top: 70px; background: var(--panel); border: 1px solid var(--line); padding: 14px; border-radius: 8px; }
.inv-big { height: 200px; border: 2px solid var(--rc); border-radius: 6px; background: var(--panel2); display: flex; }
.inv-big > i { flex: 1; background: center / contain no-repeat; font-style: normal; }
.inv-detail h2 { margin: 10px 0 6px; } .inv-detail h2 small { opacity: .6; }
.inv-tags { display: flex; gap: 6px; flex-wrap: wrap; } .inv-tags .tag.r-common, .inv-tags .tag[class*="r-"] { border-color: var(--rc); color: var(--rc); }
.inv-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .inv-acts button.on { border-color: var(--accent); color: var(--accent); }
.inv-empty { padding: 40px 10px; text-align: center; }
.inv-read small { letter-spacing: .3em; color: var(--accent); } .inv-paper { white-space: pre-wrap; background: #fffdf6; color: #2b2b2b; padding: 20px 24px; margin-top: 8px; line-height: 1.6; max-height: 60vh; overflow: auto; }
/* ITEM GET */
.inv-get { position: fixed; right: 20px; top: 80px; z-index: 9300; background: #0d1117f2; border: 2px solid var(--rc, #8a96a3); border-radius: 10px; padding: 10px 14px 12px;
  min-width: 250px; cursor: pointer; box-shadow: 0 10px 30px #000a, 0 0 18px color-mix(in srgb, var(--rc) 40%, transparent); animation: invIn .45s cubic-bezier(.2,1.4,.4,1) both; color: #fff; }
.inv-get.out { opacity: 0; transform: translateX(30px); transition: .5s; }
.inv-get > small { letter-spacing: .4em; color: var(--rc); font-weight: 700; }
.inv-get-in { display: flex; gap: 10px; align-items: center; margin-top: 6px; } .inv-get-in > i { width: 52px; height: 52px; background: center / contain no-repeat #ffffff10; border-radius: 6px; font-style: normal; }
.inv-get-in b { display: block; font-size: 16px; }
@keyframes invIn { from { opacity: 0; transform: translateX(40px) scale(.9); } }
/* MIC-01 map icon converter */
.mi-wrap { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0; } .mi-wrap canvas { width: 300px; height: 300px; border: 1px solid var(--line); border-radius: 6px; }
.mi-label { font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }
.mi-ctl { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; }
#xmodal.mi-modal .xm-box { width: min(700px, 96vw); }
.mi-th { display: inline-block; width: 44px; height: 44px; flex: none; background: center / contain no-repeat #0b1622; border: 1px solid var(--line); border-radius: 6px; }
.mi-th[data-tint="1"] { background: var(--c); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; border: 0; }
.mi-none { display: inline-grid; place-items: center; color: var(--muted); font-size: 20px; }
.mi-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin-bottom: 10px; }
.mi-row { display: flex; align-items: center; gap: 8px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; } .mi-row > span:nth-child(2) { flex: 1; }
