.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;
}
/* Frame the original 4:3 Doge photo around its face, without altering the source. */
.profile-doge-face-crop,
.profile-heogeodeong-crop {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
}
.profile-heogeodeong-crop > img {
  position: absolute;
  width: 174.194%;
  height: 202.903%;
  max-width: none;
  left: -38.71%;
  top: -39.516%;
  border-radius: 0;
  object-fit: fill;
}
.profile-doge-face-crop > img {
  position: absolute;
  width: 208.333%;
  height: 156.25%;
  max-width: none;
  left: -52.083%;
  top: 0;
  border-radius: 0;
  object-fit: fill;
}
.profile-portrait > img.profile-portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 50%;
  object-fit: contain;
  transition: opacity .14s ease;
}
.profile-portrait > img.profile-portrait-image--hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}
.profile-portrait--hover-animated {
  cursor: pointer;
}
.profile-portrait--hover-animated.is-hover-animating > img.profile-portrait-image--still {
  opacity: 0;
}
.profile-portrait--hover-animated.is-hover-animating > img.profile-portrait-image--hover {
  opacity: 1;
}
.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;
}
.profile-portrait[data-profile-link] {
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.profile-portrait[data-profile-link]:hover {
  z-index: 4;
  transform: scale(1.08);
  filter: brightness(1.08);
}
.profile-portrait[data-profile-link]:focus-visible {
  z-index: 4;
  outline: 2px solid #bca4ff;
  outline-offset: 3px;
}
.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; }

.shop-item .profile-purchase-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--site-border, #4c626c);
  border-radius: 12px;
  background: var(--site-inset, #172126);
  color: var(--site-text, #eef5f3);
}
.profile-purchase-benefit-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--site-warning-bg, #3b3020);
  font-size: 1.2rem;
}
.profile-purchase-benefit-copy { min-width: 0; }
.profile-purchase-benefit-label {
  display: block;
  margin-bottom: 4px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--site-warning, #ffe0a3);
}
.shop-item .profile-purchase-benefit-copy p {
  display: grid;
  gap: 3px;
  margin: 0;
  line-height: 1.5;
  font-size: .8rem;
  color: var(--site-text, #eef5f3);
  overflow-wrap: anywhere;
}
.profile-purchase-benefit-copy p span {
  color: var(--site-muted, #b6cbd1);
  font-size: .74rem;
}
.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 { position: relative; 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;
}
.profile-animated-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 10px;
  border: 1px solid rgba(218, 204, 255, .68);
  border-radius: 999px;
  color: #f4efff;
  background: linear-gradient(135deg, #7757d5, #473188);
  box-shadow: 0 5px 14px rgba(101, 72, 189, .32);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.shop-item.is-popular-item .profile-animated-badge { top: 48px; }
.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;
}

.profile-six-seven {
  display:block;
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
}
.profile-six-seven-art {
  position:absolute;
  width:78%;
  height:84.084%;
  left:11%;
  top:7.958%;
}
.profile-six-seven-art > img {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:fill;
  border-radius:0;
}
.profile-six-seven-numbers { clip-path:polygon(0 0,100% 0,100% 59%,53% 59%,53% 51.5%,0 51.5%); }
.profile-six-seven-art > .profile-six-seven-hand--left { top:-5.7%; clip-path:inset(0 50% 0 0); transform-origin:25% 78.7%; }
.profile-six-seven-art > .profile-six-seven-hand--right { top:-4%; clip-path:inset(0 0 0 50%); transform-origin:77% 81%; }
.profile-six-seven-hand--left { animation:sixSevenLeft .18s ease-in-out infinite alternate; }
.profile-six-seven-hand--right { animation:sixSevenRight .18s ease-in-out infinite alternate; }
@keyframes sixSevenLeft { from { transform:translateY(3%) rotate(-9deg); } to { transform:translateY(-4%) rotate(9deg); } }
@keyframes sixSevenRight { from { transform:translateY(-4%) rotate(9deg); } to { transform:translateY(3%) rotate(-9deg); } }
@media (prefers-reduced-motion:reduce) {
  .profile-portrait .profile-six-seven-hand { animation:none !important; }
}
