body:is([data-screen=inventory], [data-screen=market]) {
  background: radial-gradient(ellipse at 50% 0, #130d20 0, #07060d 66%);
}
body:is([data-screen=inventory], [data-screen=market]) .topbar { display: none !important; }
body:is([data-screen=inventory], [data-screen=market]) #view {
  --ast56-view-top: clamp(10px, 2.6vw, 19px);
  padding-top: var(--ast56-view-top);
  padding-bottom: calc(var(--ast48-dock-height) + var(--ast48-dock-bottom) + 4px) !important;
}
.ast54-inventory.ast44-home { gap: clamp(10px, 2.9vw, 20px); }
.ast54-inventory .h37-profile { margin-inline: 0; }

.ast54-inventory-hero {
  min-height: max(146px, 45.2cqw);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 4.6cqw 5.55cqw;
  overflow: hidden;
  border: 1px solid #76519d75;
  border-radius: 3.5cqw;
  background: #170c29 url('assets/ast/reference/inventory-v54.webp') right center / cover no-repeat;
  box-shadow: inset 0 1px 1px #c9a6ff16;
}
.ast54-inventory-copy { width: 56%; }
.ast54-inventory-copy h1 {
  margin: 0;
  font-size: clamp(24px, 7.3cqw, 49px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.035em;
  color: #d790ff;
  background: linear-gradient(100deg, #be58fb, #e4a2ff 85%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ast54-inventory-copy p {
  margin: 1.5cqw 0 1.8cqw;
  color: #c4b5d2;
  font-size: clamp(10px, 3.55cqw, 24px);
  line-height: 1.09;
  text-transform: uppercase;
}
.ast54-inventory-copy > b {
  display: block;
  padding: 2.7cqw 1cqw;
  border: 1px solid #ac6ff42e;
  border-radius: 1.8cqw;
  background: linear-gradient(105deg, #201132e6, #3a1b5cbd);
  font-size: clamp(10px, 3.25cqw, 22px);
  text-align: center;
  font-weight: 900;
}
.ast54-inventory-copy strong, .ast54-empty strong { color: #bd82ff; }
.ast54-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.3cqw;
}
.ast54-total {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1cqw;
  min-height: clamp(40px, 12.6cqw, 83px);
  padding-inline: 1.1cqw;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 3.25cqw;
  background: linear-gradient(#0d0b19, #0d0b19) padding-box, linear-gradient(110deg, #6a4b94, #2d6c9f) border-box;
  font-size: clamp(12px, 3.85cqw, 26px);
  font-weight: 900;
  overflow-wrap: anywhere;
}
.ast54-total--stars {
  background: linear-gradient(#23172b, #23172b) padding-box, linear-gradient(110deg, #9f50e5, #f3ae6d) border-box;
}
.ast54-total img, .ast54-star { width: max(13px, 3.7cqw); height: max(13px, 3.7cqw); flex: none; }
.ast54-star {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff5be;
  background: linear-gradient(145deg, #f4be62, #c16a18);
  box-shadow: inset 0 0 0 1px #ffedab91;
}
.ast54-star .ic { width: 72%; height: 72%; fill: currentColor; }
.ast54-inventory .ast54-inventory-cta {
  display: block;
  min-height: clamp(46px, 13.7cqw, 89px);
  padding: 1.4cqw 3cqw;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(105deg, #9848ed, #087fc1);
  font-size: clamp(12px, 3.55cqw, 24px);
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 1px #e2d4ff35;
}
.ast54-inventory .ast54-inventory-cta:disabled { opacity: .5; cursor: default; filter: none; }
.ast54-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65cqw;
  box-sizing: border-box;
  padding: 8cqw 4cqw 2.8cqw;
  border: 1px solid transparent;
  border-radius: 3.3cqw;
  background: linear-gradient(130deg, #0d0919, #070916) padding-box, linear-gradient(140deg, #b946ed, #644098 56%, #7c359e) border-box;
  text-align: center;
}
.ast54-empty h2 { margin: 0; font-size: clamp(16px, 4.7cqw, 31px); font-weight: 900; }
.ast54-empty p {
  max-width: 57cqw;
  margin: 5.9cqw 0 5.8cqw;
  color: #bdb1ce;
  font-size: clamp(11px, 4cqw, 26px);
  line-height: 1.26;
  text-transform: uppercase;
}
.ast54-empty strong { overflow-wrap: anywhere; }
.ast54-empty .ast54-inventory-cta { width: 77%; margin-top: auto; flex-shrink: 0; }
.ast54-inventory .ast54-inventory-sync {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .65em;
  color: #cfaff6;
  font-size: clamp(12px, 2.6cqw, 17px);
}
.ast54-inventory-sync .ic { width: 1em; height: 1em; }
.ast56-gift-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 1.5cqw;
  margin-top: 1.5cqw;
}
.ast55-gift-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4cqw;
}
.ast55-gift {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1.45cqw;
  align-content: start;
  padding: 3.4cqw 4.45cqw 4.6cqw;
  min-width: 0;
  border: 1px solid #2183af9c;
  border-radius: 3.45cqw;
  background:
    radial-gradient(ellipse at 47% 33%, #15658d92, transparent 60%),
    radial-gradient(circle at 23% 21%, #59ccf494 0 1px, transparent 2px),
    radial-gradient(circle at 79% 31%, #378ac494 0 1px, transparent 2px),
    radial-gradient(circle at 14% 54%, #4099bc82 0 1px, transparent 2px),
    linear-gradient(160deg, #081c2c, #050912 56%, #071120);
  box-shadow: inset 0 1px #71c9ef2e, 0 8px 20px #0006;
}
.ast55-gift::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: clamp(4px, 1.3cqw, 9px);
  background: linear-gradient(90deg, #055883, #23a5bf 47%, #0b5a83);
  pointer-events: none;
}
.ast58-transfer-fee {
  position: absolute;
  z-index: 1;
  inset: 3.2cqw auto auto 5.25cqw;
  display: inline-flex;
  align-items: center;
  gap: .7cqw;
  padding: .35em .48em;
  border-radius: 999px;
  background: #05141cc9;
  color: #fd596b;
  font-size: clamp(9px, 3.25cqw, 20px);
  font-weight: 900;
  line-height: 1;
}
.ast58-transfer-fee .ic { width: 1em; height: 1em; }
.ast55-gift-art {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: clamp(88px, 29cqw, 184px);
}
.ast55-gift-art > * { grid-area: 1 / 1; }
.ast55-gift-art > img, .ast58-gift-motion {
  width: min(100%, 31cqw);
  height: 100%;
  min-height: 0;
  filter: drop-shadow(0 6px 10px #21a9d23e);
  visibility: hidden;
}
.ast55-gift-art > img { object-fit: contain; }
.ast55-gift-art.has-model:not(.has-animation) > img, .has-animation > .ast58-gift-motion { visibility: visible; }
.ast55-gift-art:is(.has-model,.has-animation) > .ic { visibility: hidden; }
.ast55-gift-art .ic { width: 36%; height: auto; color: #76b5db; }
.ast55-gift-price {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8cqw;
  min-height: 1.3em;
  font-size: clamp(15px, 5cqw, 32px);
  line-height: 1.05;
  font-weight: 900;
}
.ast55-gift-price img, .ast55-gift-price .ast54-star {
  width: max(13px, 4cqw);
  height: max(13px, 4cqw);
}
.ast55-gift-price > small { font-size: .55em; }
.ast55-gift-controls { display: grid; gap: 1.2cqw; }
.ast54-inventory .ast55-gift-controls button {
  min-height: clamp(34px, 9.8cqw, 58px);
  padding: .5em;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(108deg, #a755f7, #6861f4 47%, #008cf4);
  color: white;
  font-size: clamp(11px, 3.1cqw, 19px);
  font-weight: 900;
  text-align: center;
}
.ast54-inventory .ast55-gift-controls button + button {
  background: linear-gradient(110deg, #261642, #092e49);
  color: #ddd6e4;
}
.ast54-inventory .ast55-gift-controls button:disabled { opacity: .48; cursor: default; filter: none; }
