.hb {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1.88;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 70%);
}

.hb-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .32) 0%, transparent 32%, transparent 48%, rgba(0, 0, 0, .5) 100%);
}

.hb-top {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hb-name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.hb-icon,
.hb-plus {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .18s var(--ease);
}

.hb-icon {
  width: 34px;
  height: 34px;
}

.hb-icon .i {
  width: 17px;
  height: 17px;
}

.hb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .18s var(--ease);
}

.hb-ava {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(160deg, #8e8e93, #48484a);
}

.hb-bottom {
  position: absolute;
  left: 20px;
  bottom: 16px;
  display: grid;
  gap: 2px;
}

.hb-label {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.hb-balance {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}

.hb-balance .cur,
.sc-price .cur,
.pprice-now .cur {
  font-style: normal;
  margin-left: .18em;
  font-size: .64em;
  opacity: .55;
}

.hb-plus {
  width: 28px;
  height: 28px;
  margin-left: 10px;
}

.hb-plus .i {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.hb-icon:active,
.hb-plus:active,
.hb-avatar:active {
  transform: scale(.9);
}

.hb + .s {
  margin-top: 12px;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sc {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / .94;
  min-height: 160px;
  padding: 14px 14px 13px;
  border-radius: 24px;
  background: var(--card);
  text-align: left;
  transition: transform .18s var(--ease);
}

.sc:active {
  transform: scale(.97);
}

.sc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 44px;
}

.sc-badge {
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--card-2);
  font-weight: 600;
  font-size: 11px;
  line-height: 22px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.sc-badge.is-out {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  letter-spacing: 0;
}

.sc-title {
  margin-top: 12px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.sc-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.sc-price {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.sc-from {
  margin-right: 5px;
  font-weight: 500;
  font-size: 13px;
  color: var(--hint);
  letter-spacing: 0;
}

.sc-stock {
  flex: none;
  font-size: 12.5px;
  color: var(--hint);
  font-variant-numeric: tabular-nums;
}

.sc-stock.is-low {
  color: var(--warn);
}

.sc-bar {
  display: block;
  height: 4px;
  margin-top: 9px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--fill-2);
}

.sc-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, .5);
  transform-origin: 0 50%;
}

:root[data-theme="light"] .sc-bar i {
  background: rgba(0, 0, 0, .35);
}

.sc-bar.is-low i {
  background: var(--warn);
}

.sc-bar.is-none {
  visibility: hidden;
}

.sc-wait {
  font-size: 13px;
  color: var(--hint);
  line-height: 22px;
}

.sc.is-out .emo {
  opacity: .45;
}

.sc.is-out .sc-title {
  opacity: .5;
}

.media-banner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: var(--card);
}

.media-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-banner.is-emoji {
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(255, 255, 255, .08), transparent 70%),
    var(--card);
}

.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-row .h1 {
  font-size: 26px;
  overflow-wrap: anywhere;
}

.hint-rich {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
}
