.profile-portrait {
  position: relative;
  display: inline-block;
  width: var(--portrait-size, 24px);
  height: var(--portrait-size, 24px);
  flex: 0 0 var(--portrait-size, 24px);
  vertical-align: middle;
  line-height: 1;
  isolation: isolate;
}
.profile-portrait > img.profile-portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 50%;
  object-fit: contain;
}
.profile-portrait > img.profile-rank-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 2;
  width: clamp(10px, calc(var(--portrait-size) * .38), 24px);
  height: clamp(10px, calc(var(--portrait-size) * .38), 24px);
  max-width: none;
  border-radius: 50%;
  border: 1px solid #96a4bd;
  background: #101924;
  object-fit: contain;
}
.site-user-level-badge.profile-shop-preview {
  width: 138px;
  height: 138px;
  flex-basis: 138px;
  border-radius: 50%;
  margin: 12px;
}
.profile-preview-note { font-size: .78rem; color: #b6bed5; text-align: center; }
.profile-wardrobe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.profile-wardrobe-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 14px; border: 1px solid #3c415b; border-radius: 16px; background: linear-gradient(150deg, #232b40, #141d26); text-align: center; }
.profile-wardrobe-card.is-equipped { border-color: #bc9dfb; box-shadow: inset 0 0 0 1px #bc9dfb55; }
.profile-wardrobe-card strong { color: #f1edff; font-size: .95rem; }
.profile-wardrobe-card small { color: #bcc3d1; }
.site-user-level-badge.profile-wardrobe-preview { width: 82px; height: 82px; flex-basis: 82px; border-radius: 50%; }
.profile-wardrobe-card form { width: 100%; margin-top: auto; }
.profile-wardrobe-card button { width: 100%; }
.profile-wardrobe-card button:disabled { opacity: .55; cursor: default; }
.profile-wardrobe-intro { color: #bbc8d5; font-size: .85rem; margin-bottom: 20px; }
.profile-shop-link { display: block; margin-top: 12px; color: #cab4ff; font-size: .85rem; }
.shop-item.is-profile-product { width: 100%; max-width: 380px; justify-self: start; }
.shop-item.is-profile-product .item-image-container {
  height: 210px;
  min-height: 210px;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #342c59, #111a28);
}
.shop-item.is-profile-product.is-premium-profile {
  position: relative;
  border-color: rgba(255, 204, 92, .72);
  background: linear-gradient(155deg, #2b2416, #14141c 58%, #221a2f);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 231, 157, .12), 0 0 28px rgba(255, 191, 59, .12);
}
.shop-item.is-premium-profile .item-image-container {
  background: radial-gradient(circle at 50% 45%, rgba(255, 210, 100, .22), transparent 38%), linear-gradient(150deg, #332817, #121721 72%);
}
.profile-premium-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 10px;
  border: 1px solid rgba(255, 238, 176, .6);
  border-radius: 999px;
  color: #241804;
  background: linear-gradient(135deg, #fff0a8, #e5a92e);
  box-shadow: 0 5px 14px rgba(229, 169, 46, .3);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.shop-item.is-premium-profile .item-price small {
  color: #f4d277;
  font-size: .72em;
}
.profile-progressive-price {
  margin: -3px 0 8px;
  color: #e9cb7a;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
