/* Сетка скинов на странице инвентаря — в стиле карточек апгрейда */

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 26px 0 30px;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.inv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  height: 135px;
  padding: 0 7px 8px;
  overflow: hidden;
  border-bottom: 5px solid var(--rarity);
  background: radial-gradient(ellipse at 50% 42%, #8e9296 0%, #686c71 42%, #4b4f54 100%);
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
}

.inv-card:hover, .inv-card:focus-visible {
  color: #fff;
  filter: brightness(1.12);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.35), inset 0 0 0 2px var(--rarity);
  outline: none;
}

.inv-card img {
  position: absolute;
  top: 6px;
  left: 4%;
  width: 92%;
  height: 98px;
  object-fit: cover;
  filter: drop-shadow(0 6px 6px rgba(0,0,0,.45));
  pointer-events: none;
  transition: transform .2s ease;
}

.inv-card:hover img { transform: scale(1.06); }

.inv-card-price { position: absolute; z-index: 1; top: 5px; right: 7px; font-size: 15px; font-weight: 700; }
.inv-card-wear { position: absolute; z-index: 1; top: 26px; right: 7px; color: #e1e3e5; font-size: 12px; font-weight: 700; }
.inv-card-name, .inv-card-skin { position: relative; z-index: 1; overflow: hidden; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.inv-card-name { font-size: 14px; font-weight: 700; }
.inv-card-skin { font-size: 14px; }

.inv-coin { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; fill: currentColor; }
.inv-coin .inv-coin-cut { fill: rgba(0,0,0,.55); }

@media (max-width: 560px) {
  .inv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .inv-card { height: 122px; }
  .inv-card img { height: 84px; }
}
