/* Mini App: вещи: кукла, сумка, подсказка. */
/* ---------- вещи: портрет, слоты вокруг, сумка сеткой (как в BG3) ---------- */
.r-common { --r: #8f8570; } .r-uncommon { --r: #5fd04a; } .r-rare { --r: #4a9cff; } .r-veryrare { --r: #b45cff; } .r-legendary { --r: #ff8a2c; } .r-unique { --r: #ffcf6b; }
/* слоты квадратные --slot; портрет ровно в 5 слотов высотой, оружие строкой под ним (как в BG3) */
.inv-top { --slot: 60px; display: grid; grid-template-columns: var(--slot) minmax(0, 1fr) var(--slot); gap: 6px; margin-top: 10px; align-items: start; }
.inv-col { display: flex; flex-direction: column; gap: 6px; }
.inv-mid { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.inv-portrait { position: relative; height: calc(5 * var(--slot) + 4 * 6px); border-radius: var(--r-lg); overflow: hidden; border: 2px solid var(--ochre); background: radial-gradient(80% 80% at 50% 35%, #3a3348, var(--night-3)); box-shadow: 0 6px 16px rgb(5 7 13 / .53); }
.inv-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inv-portrait img.full { object-fit: contain; object-position: center bottom; padding: 6px 4px 0; }   /* party/art/<id>-full.png: герой в полный рост без фона */
.inv-portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--parch-dim); }
.inv-portrait .ph .i { width: 56px; height: 56px; opacity: .4; }
.eq-ac { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--night-3) 85%, transparent); border: 1px solid var(--line); font: 700 17px "Cormorant SC", serif; color: var(--candle); font-variant-numeric: tabular-nums; }
.inv-weap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.eq-slot { position: relative; width: 100%; height: var(--slot); min-height: 0; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--night-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 2px; }
.eq-slot.full { border: 2px solid var(--r); background: radial-gradient(90% 90% at 50% 30%, color-mix(in srgb, var(--r) 22%, var(--card)), var(--night-3)); }
.eq-slot .gl { display: grid; place-items: center; width: 30px; height: 30px; color: var(--parch-dim); opacity: .4; }
.eq-slot .gl .i { width: 24px; height: 24px; }
.em { display: grid; place-items: center; width: 100%; height: 100%; color: var(--parch-dim); }
.eq-slot .em { font-size: 24px; height: 34px; }
.eq-slot img { width: 34px; height: 34px; object-fit: contain; }
.eq-slot small { font-size: 12px; line-height: 1.15; color: var(--parch-dim); text-align: center; max-width: 100%; padding: 0 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.eq-slot.full small { color: var(--parch); }
.eq-slot.fit { border: 2px dashed var(--candle); box-shadow: 0 0 0 3px #ffcf6b33; }
.eq-slot.fit.no { border-color: var(--wine-2); box-shadow: none; opacity: .6; }
.eq-slot:active { transform: scale(.97); }
.eq-fight { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border-radius: var(--r-md); border: 1px solid var(--wine-2); background: #7a2e2e2a; color: var(--danger-soft); font-size: 13px; }
.inv-h { display: flex; align-items: baseline; gap: 8px; }
.inv-h small { margin-left: auto; font: 400 12px "PT Sans"; color: var(--parch-dim); }
.inv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.inv-cell { position: relative; aspect-ratio: 1; min-height: 44px; border-radius: var(--r-sm); border: 2px solid var(--r);
  background: radial-gradient(90% 90% at 50% 30%, color-mix(in srgb, var(--r) 20%, var(--card)), var(--night-3)); display: grid; place-items: center; overflow: hidden; }
.inv-cell img { width: 82%; height: 82%; object-fit: contain; }
.inv-cell .em { font-size: 24px; }
.inv-cell .q { position: absolute; right: 3px; bottom: 1px; font: 700 11px "PT Sans"; color: var(--parch); text-shadow: 0 1px 2px var(--shadow), 0 0 3px var(--shadow); }
.inv-cell .w { position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--candle); color: var(--ink); display: grid; place-items: center; }
.inv-cell .w .i { width: 10px; height: 10px; stroke-width: 3; }
.inv-cell[aria-pressed="true"] { outline: 3px solid var(--candle); outline-offset: 1px; }
.inv-tip { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar) + var(--safe-b) + 8px); z-index: 25; max-height: 52dvh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, color-mix(in srgb, var(--r) 14%, var(--card-2)), var(--card-2) 40%); border: 2px solid var(--r); border-radius: var(--r-lg); padding: 10px 12px 12px; box-shadow: 0 10px 28px rgb(5 7 13 / .8); }
.inv-tip .top { display: flex; align-items: flex-start; gap: 10px; }
.inv-tip .ico { width: 52px; height: 52px; flex: none; border-radius: var(--r-sm); border: 2px solid var(--r); background: var(--night-3); display: grid; place-items: center; overflow: hidden; }
.inv-tip .ico img { width: 90%; height: 90%; object-fit: contain; } .inv-tip .ico .em { font-size: 24px; }
.inv-tip .nm { font: 700 20px/1.15 "Cormorant SC", serif; color: var(--r); }
.inv-tip .kd { font-size: 12px; color: var(--parch-dim); }
.inv-tip .x { margin-left: auto; width: 44px; height: 44px; margin: -6px -8px 0 auto; display: grid; place-items: center; color: var(--parch-dim); flex: none; }
.inv-tip .short { font-size: 15px; margin-top: 8px; }
.inv-tip details { background: none; border: 0; margin: 4px 0 0; }
.inv-tip details summary { min-height: 36px; padding: 0; font: 700 13px "PT Sans"; color: var(--ochre); }
.inv-tip .full { font-size: 13px; color: var(--parch); white-space: pre-wrap; }
.inv-tip .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.inv-tip .acts button { flex: 1 1 120px; min-height: 44px; border-radius: var(--r-md); padding: 4px 10px; font-weight: 700; background: var(--ochre); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.inv-tip .acts button.off { background: var(--card); color: var(--parch); border-color: var(--line); box-shadow: none; }
.inv-tip .acts button:disabled { filter: grayscale(1); opacity: .5; box-shadow: none; }
.inv-tip .hint { font-size: 12px; color: var(--parch-dim); margin-top: 6px; }
.inv-tip .why { font-size: 12px; color: var(--danger-soft); margin-top: 6px; } .inv-tip .wn { font-size: 12px; color: var(--candle); margin-top: 4px; }
.eq-cur { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--r); border-radius: var(--r-md); background: color-mix(in srgb, var(--r) 10%, var(--night-2)); margin-top: 6px; }
.eq-cur .body { flex: 1; min-width: 0; }
.eq-cur .nm, .eq-opt .nm { font-weight: 700; color: var(--r); }
.eq-cur .tag { font-size: 12px; color: var(--parch-dim); }
.eq-off { margin-left: auto; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); color: var(--parch); font-weight: 700; flex: none; }
.eq-off:disabled { opacity: .45; }
.eq-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; min-height: 56px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--night-2); text-align: left; margin-top: 6px; }
.eq-opt:disabled { opacity: .55; }
.eq-opt .ico, .eq-cur .ico { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--night-3); border: 2px solid var(--r); color: var(--r); overflow: hidden; }
.eq-opt .ico img, .eq-cur .ico img { width: 90%; height: 90%; object-fit: contain; } .eq-opt .ico .em, .eq-cur .ico .em { font-size: 24px; }
.eq-opt .body { flex: 1; min-width: 0; }
.eq-opt .short { font-size: 12px; color: var(--parch-dim); margin-top: 2px; }
.pvs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pv { font-size: 12px; padding: 1px 7px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--parch); font-variant-numeric: tabular-nums; }
.pv.up { border-color: #4f8a4a; color: #9fe08a; } .pv.down { border-color: var(--wine-2); color: var(--danger-soft); }
.cmp { margin-top: 8px; } .cmp-h { font-size: 12px; color: var(--parch-dim); }
.eq-opt .why, .eq-opt .wn, .eq-cur .why { font-size: 12px; margin-top: 4px; color: var(--danger-soft); }
.eq-opt .wn { color: var(--candle); }

