.market-card{width:159px;min-width:159px;max-width:159px;height:148px;border-radius:5px;background:var(--panel2);cursor:pointer;box-shadow:none;transition:border-color .12s,box-shadow .12s}
.market-card:hover{border-color:color-mix(in srgb,var(--rarity) 72%,var(--line));outline:2px solid color-mix(in srgb,var(--rarity) 86%,#fff 14%);outline-offset:-2px;box-shadow:0 0 0 1px color-mix(in srgb,var(--rarity) 70%,transparent),0 0 18px color-mix(in srgb,var(--rarity) 38%,transparent)}
.market-card:hover .item-art.real img{transform:scale(1.06)}
.item-qty{position:absolute;right:5px;top:4px;z-index:4;color:rgba(245,248,255,.78);font-size:11px;font-weight:500;text-shadow:0 1px 3px rgba(0,0,0,.55)}
.sale-price{position:absolute;right:2px;bottom:4px;z-index:4;display:flex;align-items:center;justify-content:center;gap:4px;background:var(--green);color:#f2ffe8;border:1px solid rgba(208,255,184,.18);border-radius:6px;padding:2px 6px;font-size:13px;font-weight:600;line-height:1;box-shadow:0 2px 6px rgba(0,0,0,.18);transition:filter .16s ease,box-shadow .16s ease}
.market-card:hover .sale-price{filter:brightness(1.12);box-shadow:0 0 10px rgba(107,190,74,.34),0 2px 6px rgba(0,0,0,.2)}
.price-from{font-size:12px;font-weight:600;opacity:.95;line-height:1;transform:translateY(.5px)}
.market-card{height:176px;display:flex;flex-direction:column}
.market-card .item-art{flex:0 0 150px;height:150px;background:transparent}
.market-card .item-art.real{background:transparent}
.market-card .item-art.real img{height:120px;bottom:auto;padding:13px 16px 11px}
.market-card .sale-price{right:6px;bottom:8px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#ff8424;font-size:16px;font-weight:900;line-height:.95;letter-spacing:-.32px}
.market-card .price-from{font-size:10px;font-weight:700;color:var(--muted);opacity:1;transform:none}
.market-card:hover{border-color:var(--line);outline:0;box-shadow:none}
.market-card:hover .sale-price{filter:none;box-shadow:none}
.market-card .sale-price{color:#2f7d32}
.market-card .item-qty{top:auto;right:auto;left:8px;bottom:9px;color:var(--muted);font-size:9px;font-weight:800;text-shadow:none}
.market-card .price-from{align-self:flex-end;font-size:9px;line-height:.85;transform:translateY(2px)}
html[data-theme="dark"] .market-card .sale-price{color:#7fdc70}
html[data-theme="light"] .market-card .sale-price{color:#2f7d32}
.market-card .sale-price,html[data-theme="dark"] .market-card .sale-price,html[data-theme="light"] .market-card .sale-price{bottom:5px;color:var(--text);font-weight:600}
.market-card .item-qty{bottom:5px;font-weight:700}
.market-card .sale-price,html[data-theme="dark"] .market-card .sale-price,html[data-theme="light"] .market-card .sale-price{font-weight:500}
.market-card .item-qty{font-size:10px}
.market-card .price-from{font-size:10px;font-weight:600}
.market-card .sale-price,html[data-theme="dark"] .market-card .sale-price,html[data-theme="light"] .market-card .sale-price{gap:6px;font-size:15px}
.market-card .price-from{align-self:center;transform:none;line-height:1}
.market-card .sale-price{align-items:flex-end}
.market-card .price-from{align-self:flex-end;line-height:.95;transform:none}
.market-card .item-art.real img{height:128px;padding:13px 16px 3px}
.market-card .sale-price{bottom:3px}
.market-card .sale-price,.market-card .item-qty{bottom:1px}
.market-card .sale-price,.market-card .item-qty{bottom:3px}
.market-card .market-price-row{position:absolute;left:8px;right:6px;bottom:3px;z-index:4;display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.market-card .market-price-row .item-qty,.market-card .market-price-row .sale-price{position:static;inset:auto;bottom:auto;left:auto;right:auto}
.market-card .market-price-row .item-qty{line-height:1}
.market-card .market-price-row .sale-price{display:flex;align-items:flex-end;gap:6px;line-height:1}
.market-card .market-price-row .price-from{align-self:flex-end;line-height:1;transform:none}
.market-card .market-price-row{right:3px}
.market-card .market-price-row{left:4px}
.market-card .market-price-row .item-qty,.market-card .market-price-row .price-from{font-size:11px}
:root{
  --m1-market-card-width:159px;
  --m1-market-card-height:176px;
  --m1-market-card-radius:10px;
  --m1-market-card-bg:#30333d;
  --m1-market-art-height:150px;
  --m1-market-img-height:128px;
  --m1-market-name-height:26px;
}
body[data-page="market"] .market-grid{
  grid-template-columns:repeat(auto-fill,var(--m1-market-card-width))!important;
  justify-content:center!important;
  gap:9px!important;
}
body[data-page="market"] .market-card{
  color:inherit!important;
  text-decoration:none!important;
  position:relative!important;
  width:var(--m1-market-card-width)!important;
  height:var(--m1-market-card-height)!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  padding:0!important;
  border-radius:var(--m1-market-card-radius)!important;
  background:var(--m1-market-card-bg)!important;
  cursor:pointer!important;
}
body[data-page="market"] .market-card .item-art{
  position:relative!important;
  overflow:hidden!important;
  height:var(--m1-market-art-height)!important;
  min-height:var(--m1-market-art-height)!important;
}
body[data-page="market"] .market-card .item-art.real img{
  box-sizing:border-box!important;
  width:100%!important;
  height:var(--m1-market-img-height)!important;
  object-fit:contain!important;
  padding:13px 16px 3px!important;
}
body[data-page="market"] .market-card .market-price-row{
  position:absolute!important;
  left:4px!important;
  right:3px!important;
  bottom:3px!important;
  z-index:4!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:9px!important;
}
body[data-page="market"] .market-card .item-qty,
body[data-page="market"] .market-card .sale-price{
  position:static!important;
  inset:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body[data-page="market"] .market-card .item-qty{
  color:#9da7b8!important;
  font-size:11px!important;
  line-height:11px!important;
  white-space:nowrap!important;
}
body[data-page="market"] .market-card .sale-price{
  color:#e7edf8!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:15px!important;
  white-space:nowrap!important;
}
body[data-page="market"] .market-card .namebar{
  position:relative!important;
  z-index:5!important;
  background:var(--rarity)!important;
  background-image:none!important;
  height:var(--m1-market-name-height)!important;
  min-height:var(--m1-market-name-height)!important;
  padding:3px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  overflow:hidden!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}
html[data-theme="light"]{
  --m1-market-card-bg:#f3f6fb;
}
html[data-theme="light"] body[data-page="market"] .market-card{
  border-color:#cdd6e4!important;
  box-shadow:0 1px 2px rgba(20,35,55,.08)!important;
}
html[data-theme="light"] body[data-page="market"] .market-card .item-art{
  background:linear-gradient(180deg,#fff,#eef3f9)!important;
}
html[data-theme="light"] body[data-page="market"] .market-card .sale-price{
  color:#1f2937!important;
}

body[data-page="market"] .market-card{
  border:1px solid var(--line)!important;
  overflow:hidden!important;
  text-align:left!important;
}
body[data-page="market"] .market-card .item-art,
body[data-page="market"] .market-card .item-art.real{
  position:relative!important;
  background:transparent!important;
  box-shadow:none!important;
}
body[data-page="market"] .market-card .item-art:not(.real):before{
  content:attr(data-mark);
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:32px;
  font-weight:900;
}

body[data-page="market"] .market-card .sale-price.sale-price--empty{
  color:#9da7b8!important;
  font-size:11px!important;
  font-weight:700!important;
  line-height:11px!important;
  letter-spacing:0!important;
}
