/**
 * Profile cosmetic packs.
 * Packs change: frame, username style, badge, page atmosphere, and the
 * profile shell tokens so live chrome matches the Look-picker mockups.
 * Do not paint theme.png onto the page (those mockups include profile UI).
 */

/* ----- Frame locked to the avatar box ----- */
.hw-profile-shell.hw-cosmetic-pack .hw-profile__avatar-wrap {
  --hw-avatar-box: clamp(96px, 12vw, 120px);
  position: relative !important;
  width: var(--hw-avatar-box) !important;
  height: var(--hw-avatar-box) !important;
  margin: var(--hw-frame-clearance, 1.75rem) !important;
  overflow: visible !important;
  flex-shrink: 0;
  z-index: 3;
}

.hw-profile-shell.hw-cosmetic-pack .hw-profile__avatar-wrap .hw-profile__avatar,
.hw-profile-shell.hw-cosmetic-pack .hw-profile__avatar-wrap img.avatar {
  position: relative;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: scale(var(--hw-avatar-fill, 1.1));
  transform-origin: center center;
}

.hw-profile-shell.hw-cosmetic-pack .hw-profile__avatar-wrap > .hw-cosmetic-frame {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  display: block !important;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
  /* Rightmost translate runs first: slide the PNG hole onto the photo, then scale. */
  transform:
    translate(-50%, -50%)
    scale(var(--hw-frame-scale, 2.2))
    translate(var(--hw-frame-ox, 0%), var(--hw-frame-oy, 0%));
  transform-origin: center center;
}

.hw-profile-shell.hw-cosmetic-pack .hw-cosmetic-frame__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.hw-profile-shell.hw-cosmetic-pack .hw-profile__avatar-wrap .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hw-profile-shell.hw-cosmetic-pack .hw-profile__avatar-edit {
  display: none !important;
}

.hw-cosmetic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.3rem;
  vertical-align: middle;
  flex-shrink: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  border-radius: 0;
  line-height: 0;
  box-shadow: none;
}

.hw-cosmetic-badge__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  background: transparent !important;
}

.hw-profile__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}

/* Per-pack hole fit: scale = image/hole, oy shifts horns/spikes so the ring is concentric. */
.hw-profile-shell.hw-cosmetic-pack--emberline {
  --hw-frame-scale: 2.52;
  --hw-frame-oy: -3.4%;
  --hw-frame-clearance: 2.35rem;
}
.hw-profile-shell.hw-cosmetic-pack--inkline {
  --hw-frame-scale: 1.56;
  --hw-frame-oy: 0%;
  --hw-frame-clearance: 1.45rem;
}
.hw-profile-shell.hw-cosmetic-pack--steel-night {
  --hw-frame-scale: 2.02;
  --hw-frame-oy: -5.8%;
  --hw-frame-clearance: 2.1rem;
}
.hw-profile-shell.hw-cosmetic-pack--rose-binding {
  --hw-frame-scale: 2.16;
  --hw-frame-oy: -0.6%;
  --hw-frame-clearance: 2rem;
}
.hw-profile-shell.hw-cosmetic-pack--archive-brass {
  --hw-frame-scale: 1.94;
  --hw-frame-oy: -1%;
  --hw-frame-clearance: 1.85rem;
}
.hw-profile-shell.hw-cosmetic-pack--first-flame {
  --hw-frame-scale: 2.08;
  --hw-frame-oy: -2.9%;
  --hw-frame-clearance: 2.05rem 4.25rem 1.7rem 2.15rem;
}

/* Compact frames on comments / reviews / social / shop previews. */
.hw-flair-avatar {
  --hw-avatar-box: 2.5rem;
  position: relative;
  display: inline-block;
  width: var(--hw-avatar-box);
  height: var(--hw-avatar-box);
  flex-shrink: 0;
  overflow: visible;
  vertical-align: middle;
  line-height: 0;
}

.hw-flair-avatar > img,
.hw-flair-avatar .hw-profile__avatar {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 0;
  box-shadow: none;
  /* Fill the frame hole so card “whites” don’t show as a ring. */
  transform: scale(var(--hw-avatar-fill, 1));
  transform-origin: center center;
}

.hw-flair-avatar.hw-cosmetic-pack > img,
.hw-flair-avatar.hw-cosmetic-pack .hw-profile__avatar {
  --hw-avatar-fill: 1.12;
}

.hw-flair-avatar.hw-cosmetic-pack > .hw-cosmetic-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  pointer-events: none;
  z-index: 1;
  line-height: 0;
  transform:
    translate(-50%, -50%)
    scale(var(--hw-frame-scale, 2.2))
    translate(var(--hw-frame-ox, 0%), var(--hw-frame-oy, 0%));
  transform-origin: center center;
}

.hw-flair-avatar.hw-cosmetic-pack > .hw-cosmetic-frame .hw-cosmetic-frame__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.hw-flair-avatar.hw-cosmetic-pack--emberline {
  --hw-frame-scale: 2.52;
  --hw-frame-oy: -3.4%;
}
.hw-flair-avatar.hw-cosmetic-pack--inkline {
  --hw-frame-scale: 1.56;
  --hw-frame-oy: 0%;
}
.hw-flair-avatar.hw-cosmetic-pack--steel-night {
  --hw-frame-scale: 2.02;
  --hw-frame-oy: -5.8%;
}
.hw-flair-avatar.hw-cosmetic-pack--rose-binding {
  --hw-frame-scale: 2.16;
  --hw-frame-oy: -0.6%;
}
.hw-flair-avatar.hw-cosmetic-pack--archive-brass {
  --hw-frame-scale: 1.94;
  --hw-frame-oy: -1%;
}
.hw-flair-avatar.hw-cosmetic-pack--first-flame {
  --hw-frame-scale: 2.08;
  --hw-frame-oy: -2.9%;
}

/*
 * Compact frames draw larger than the avatar box (transform scale).
 * Keep just enough overhang clearance — avoid huge gaps to the byline.
 */
.hw-flair-avatar.hw-cosmetic-pack {
  --hw-frame-overhang: calc(var(--hw-avatar-box) * (var(--hw-frame-scale, 2.2) - 1) / 2);
  --hw-frame-breath: 0.2rem;
  margin-inline: calc(var(--hw-frame-overhang) * 0.85 + var(--hw-frame-breath));
  margin-block: calc(var(--hw-frame-overhang) * 0.4);
}

.hw-flair-avatar.hw-cosmetic-pack--first-flame {
  margin-inline-start: calc(var(--hw-frame-overhang) * 0.75 + 0.3rem);
  margin-inline-end: calc(var(--hw-frame-overhang) * 0.7 + 0.5rem);
}

.hw-flair-avatar.hw-cosmetic-pack--emberline {
  --hw-avatar-fill: 1.16;
}
.hw-flair-avatar.hw-cosmetic-pack--inkline {
  --hw-avatar-fill: 1.06;
}
.hw-flair-avatar.hw-cosmetic-pack--steel-night {
  --hw-avatar-fill: 1.14;
}
.hw-flair-avatar.hw-cosmetic-pack--rose-binding {
  --hw-avatar-fill: 1.13;
}
.hw-flair-avatar.hw-cosmetic-pack--archive-brass {
  --hw-avatar-fill: 1.12;
}
.hw-flair-avatar.hw-cosmetic-pack--first-flame {
  --hw-avatar-fill: 1.14;
}

.hw-reviewer-mini > .hw-flair-avatar,
.hw-reviewer-mini .hw-flair-avatar {
  --hw-avatar-box: 42px;
  flex: 0 0 auto;
  overflow: visible;
  border-radius: 0;
}

.hw-reviewer-mini:has(.hw-flair-avatar.hw-cosmetic-pack) {
  gap: 0.35rem;
  align-items: center;
  overflow: visible;
}

.hw-featured-reviews .hw-featured-profile {
  overflow: visible;
}

.hw-featured-reviews .hw-featured-profile .hw-flair-avatar {
  --hw-avatar-box: 84px;
  overflow: visible;
}

.hw-featured-reviews .hw-featured-profile:has(.hw-flair-avatar.hw-cosmetic-pack) {
  padding: 0.85rem 0.45rem 0.75rem !important;
  gap: 0.45rem !important;
  overflow: visible !important;
}

.hw-featured-reviews .hw-featured-profile .hw-flair-avatar.hw-cosmetic-pack {
  --hw-frame-breath: 0.15rem;
  margin-inline: calc(var(--hw-frame-overhang) * 0.45 + var(--hw-frame-breath));
  margin-block: calc(var(--hw-frame-overhang) * 0.55) calc(var(--hw-frame-overhang) * 0.35);
}

.hw-featured-reviews .hw-featured-profile strong {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.15rem 0.2rem !important;
  overflow: visible !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
}

.hw-featured-review-card:has(.hw-flair-avatar.hw-cosmetic-pack),
.hw-featured-reviews .hw-featured-layout:has(.hw-flair-avatar.hw-cosmetic-pack) {
  overflow: visible !important;
}

.hw-discussion-avatar.hw-flair-avatar {
  --hw-avatar-box: 32px;
  width: 32px;
  height: 32px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.hw-discussion-comment-meta:has(.hw-flair-avatar.hw-cosmetic-pack) {
  gap: 0.35rem;
  padding-block: 0;
  overflow: visible;
  align-items: center;
}

.hw-discussion-avatar.hw-flair-avatar.hw-cosmetic-pack {
  --hw-frame-breath: 0.15rem;
  align-self: center;
  /* Nudge so the ornate frame’s visual center meets the byline midline. */
  position: relative;
  top: -0.28rem;
}

.hw-discussion-comment-meta:has(.hw-flair-avatar.hw-cosmetic-pack) .hw-discussion-author-block {
  display: flex;
  align-items: center;
  min-height: 0;
}

.hw-community__author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
}

.hw-community__author:has(.hw-community__author-avatar.hw-cosmetic-pack) {
  column-gap: 0.45rem;
  row-gap: 0.25rem;
  align-items: center;
  overflow: visible;
}

.hw-community__author-avatar {
  --hw-avatar-box: 1.85rem;
  margin-right: 0;
}

.hw-community__author-avatar.hw-cosmetic-pack {
  --hw-frame-breath: 0.15rem;
}

.hw-community__author-cluster {
  display: inline-flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem 0.45rem;
  min-width: 0;
  overflow: visible;
  vertical-align: middle;
  line-height: 1.3;
}

.hw-community__author-cluster .hw-community__author-link {
  white-space: nowrap;
}

.hw-community__topic-meta:has(.hw-flair-avatar.hw-cosmetic-pack),
.hw-community__topic-row:has(.hw-flair-avatar.hw-cosmetic-pack),
.hw-community__lede--meta:has(.hw-flair-avatar.hw-cosmetic-pack),
.hw-community__post:has(.hw-flair-avatar.hw-cosmetic-pack) {
  overflow: visible;
}

.hw-community__topic-meta > span:has(.hw-flair-avatar) {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  overflow: visible;
}

.hw-community__lede--meta:has(.hw-flair-avatar) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  overflow: visible;
}

.hw-profile__guestbook-avatar.hw-flair-avatar,
.hw-flair-avatar.hw-profile__guestbook-avatar {
  --hw-avatar-box: 40px;
  width: var(--hw-avatar-box);
  height: var(--hw-avatar-box);
  border-radius: 0;
  overflow: visible;
}

/*
 * Guestbook uses a fixed 40px grid column — scaled frames paint into the copy.
 * Switch to flex so frame overhang margins actually reserve space.
 */
.hw-profile__guestbook-note:has(.hw-flair-avatar.hw-cosmetic-pack) {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  overflow: visible;
  padding-block: 0.55rem 0.35rem;
  padding-inline: 0.15rem;
}

.hw-profile__guestbook-note:has(.hw-flair-avatar.hw-cosmetic-pack) .hw-profile__guestbook-copy {
  min-width: 0;
  flex: 1 1 auto;
  padding-top: 0.15rem;
}

.hw-flair-avatar.hw-profile__guestbook-avatar.hw-cosmetic-pack {
  --hw-frame-breath: 0.4rem;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-inline: calc(var(--hw-frame-overhang) * 0.95 + var(--hw-frame-breath));
  margin-block: calc(var(--hw-frame-overhang) * 0.55) calc(var(--hw-frame-overhang) * 0.25);
}

.hw-flair-avatar.hw-profile__guestbook-avatar.hw-cosmetic-pack--first-flame {
  margin-inline-end: calc(var(--hw-frame-overhang) * 1.05 + 0.85rem);
}

.hw-flair-avatar.hw-profile__guestbook-avatar.hw-cosmetic-pack--emberline {
  margin-inline-end: calc(var(--hw-frame-overhang) * 1 + 0.55rem);
}

.hw-profile__guestbook-list:has(.hw-flair-avatar.hw-cosmetic-pack) {
  padding: 0.65rem 0.35rem 0.5rem;
  overflow-x: hidden;
}

.hw-social-post__header .hw-flair-avatar {
  --hw-avatar-box: 2.5rem;
}

.hw-social-post:has(.hw-flair-avatar.hw-cosmetic-pack) {
  overflow: visible;
}

.hw-social-post__main:has(.hw-flair-avatar.hw-cosmetic-pack) {
  gap: 0.85rem;
  overflow: visible;
  align-items: flex-start;
}

.hw-social-post__content:has(> .hw-social-post__header .hw-flair-avatar.hw-cosmetic-pack) {
  overflow: visible;
}

.hw-social-post__header:has(.hw-flair-avatar.hw-cosmetic-pack) {
  gap: 0.55rem;
  align-items: center;
  padding-block: 0.15rem;
  overflow: visible;
}

.hw-social-post__header .hw-flair-avatar.hw-cosmetic-pack {
  --hw-frame-breath: 0.2rem;
}

.hw-social-comment__row:has(.hw-flair-avatar.hw-cosmetic-pack),
.hw-social-comment__head:has(.hw-flair-avatar.hw-cosmetic-pack) {
  overflow: visible;
}

.hw-social-comment__head:has(.hw-flair-avatar.hw-cosmetic-pack) {
  gap: 0.45rem;
  align-items: center;
  padding-block: 0;
}

.hw-social-comment__head .hw-flair-avatar.hw-cosmetic-pack {
  --hw-frame-breath: 0.15rem;
}

.hw-featured-reviews .hw-featured-profile .hw-flair-avatar .hw-cosmetic-frame,
.hw-featured-reviews .hw-featured-profile .hw-flair-avatar .hw-cosmetic-frame__img,
.hw-reviewer-mini .hw-flair-avatar .hw-cosmetic-frame,
.hw-reviewer-mini .hw-flair-avatar .hw-cosmetic-frame__img,
.hw-discussion-avatar.hw-flair-avatar .hw-cosmetic-frame,
.hw-discussion-avatar.hw-flair-avatar .hw-cosmetic-frame__img {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  object-fit: contain !important;
}

.hw-featured-reviews .hw-featured-profile .hw-flair-avatar > img.hw-profile__avatar,
.hw-reviewer-mini .hw-flair-avatar > img.hw-profile__avatar {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
}

/* ----- Username (profile + sitewide comments / reviews / posts) ----- */
/* Defaults tuned for dark charcoal / story surfaces (keep midtones bright). */
.hw-uname--emberline,
.hw-profile-shell .hw-profile__name-text.hw-uname--emberline,
.hw-profile-shell--v3 .hw-profile__name-text.hw-uname--emberline {
  background: linear-gradient(180deg, #f0c4a8 0%, #e07040 52%, #c45a32 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
}

.hw-uname--inkline,
.hw-profile-shell .hw-profile__name-text.hw-uname--inkline,
.hw-profile-shell--v3 .hw-profile__name-text.hw-uname--inkline {
  color: #211b16 !important;
  background: none !important;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.05em;
  text-shadow: none !important;
}

.hw-uname--steel-night,
.hw-profile-shell .hw-profile__name-text.hw-uname--steel-night,
.hw-profile-shell--v3 .hw-profile__name-text.hw-uname--steel-night {
  background: linear-gradient(180deg, #d7e6ff 0%, #8eb4f0 48%, #6b9fef 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
}

.hw-uname--rose-binding,
.hw-profile-shell .hw-profile__name-text.hw-uname--rose-binding,
.hw-profile-shell--v3 .hw-profile__name-text.hw-uname--rose-binding {
  background: linear-gradient(180deg, #f0d4da 0%, #d48a98 50%, #b86b7c 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
}

.hw-uname--archive-brass,
.hw-profile-shell .hw-profile__name-text.hw-uname--archive-brass,
.hw-profile-shell--v3 .hw-profile__name-text.hw-uname--archive-brass {
  background: linear-gradient(180deg, #f6e7c8 0%, #d4b06a 48%, #c49a48 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
}

.hw-uname--first-flame,
.hw-profile-shell .hw-profile__name-text.hw-uname--first-flame,
.hw-profile-shell--v3 .hw-profile__name-text.hw-uname--first-flame {
  background: linear-gradient(180deg, #ffe2b0 0%, #f0a01c 50%, #e07040 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: none !important;
}

.hw-discussion-author.hw-uname--inkline,
.hw-featured-profile .hw-uname--inkline,
.hw-reviewer-mini .hw-uname--inkline {
  color: #f4efe6 !important;
  border-bottom-color: rgba(244, 239, 230, 0.75);
}

/*
 * Light ivory / parchment surfaces: pale gradient tops wash out.
 * Use ink-forward brass/ember stops so the full name stays readable.
 */
.hw-social-post .hw-uname--archive-brass,
.hw-social-comment .hw-uname--archive-brass,
.hw-community__author .hw-uname--archive-brass,
.hw-reader-theme-light .hw-uname--archive-brass {
  background: linear-gradient(180deg, #6e5528 0%, #9a7a3e 45%, #5a441c 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.hw-social-post .hw-uname--emberline,
.hw-social-comment .hw-uname--emberline,
.hw-community__author .hw-uname--emberline,
.hw-reader-theme-light .hw-uname--emberline {
  background: linear-gradient(180deg, #8f4027 0%, #c45a32 48%, #6e3018 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.hw-social-post .hw-uname--steel-night,
.hw-social-comment .hw-uname--steel-night,
.hw-community__author .hw-uname--steel-night,
.hw-reader-theme-light .hw-uname--steel-night {
  background: linear-gradient(180deg, #2f4f8a 0%, #4a74c4 50%, #243a66 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.hw-social-post .hw-uname--rose-binding,
.hw-social-comment .hw-uname--rose-binding,
.hw-community__author .hw-uname--rose-binding,
.hw-reader-theme-light .hw-uname--rose-binding {
  background: linear-gradient(180deg, #7a3f4c 0%, #a86b7a 50%, #5c2e38 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.hw-social-post .hw-uname--first-flame,
.hw-social-comment .hw-uname--first-flame,
.hw-community__author .hw-uname--first-flame,
.hw-reader-theme-light .hw-uname--first-flame {
  background: linear-gradient(180deg, #9a4a18 0%, #d47820 48%, #7a3410 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}

.hw-social-post .hw-uname--inkline,
.hw-social-comment .hw-uname--inkline,
.hw-community__author .hw-uname--inkline {
  color: #211b16 !important;
  border-bottom-color: rgba(33, 27, 22, 0.55);
}

/* ----- Atmosphere + shell tokens (never theme.png) ----- */
body.hw-profile-page.hw-has-cosmetic-theme {
  background-color: var(--hw-cosmetic-theme-fallback, #f7f3ed) !important;
  background-image: var(--hw-cosmetic-theme-wash, none) !important;
  background-size: auto, auto, auto, auto, auto !important;
  background-repeat: no-repeat !important;
  background-position: top left, top right, center, top center, top center !important;
  background-attachment: fixed !important;
}

body.hw-profile-page.hw-has-cosmetic-theme::before,
body.hw-profile-page.hw-has-cosmetic-theme::after,
.hw-profile-shell.hw-cosmetic-pack::before,
.hw-profile-shell.hw-cosmetic-pack::after {
  display: none !important;
  content: none !important;
  background-image: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

body.hw-profile-page.hw-has-cosmetic-theme .hw-profile-shell {
  background: transparent !important;
}

body.hw-profile-page.hw-has-cosmetic-theme .hw-profile-shell .hw-profile__hero--cinema {
  --hw-pf-ink: var(--hw-fe-text);
  --hw-pf-soft: var(--hw-fe-text-soft);
  --hw-pf-muted: var(--hw-fe-muted);
  --hw-pf-gold: var(--hw-fe-accent-light);
  --hw-pf-line: var(--hw-fe-border);
}

body.hw-profile-page.hw-has-cosmetic-theme .hw-profile-shell .hw-profile__hero-veil {
  background: transparent !important;
}

.hw-profile-shell.hw-cosmetic-pack {
  --hw-pf-ink: var(--hw-fe-text);
  --hw-pf-soft: var(--hw-fe-text-soft);
  --hw-pf-muted: var(--hw-fe-muted);
  --hw-pf-flame: var(--hw-fe-accent);
  --hw-pf-gold: var(--hw-fe-accent-light);
  --hw-pf-line: var(--hw-fe-border);
  --hw-pf-glass: var(--hw-fe-elevated);
  --hw-pf-glass-2: var(--hw-fe-bg-soft);
  --hw-pf-deep: var(--hw-fe-bg);
  --hw-pf-accent: var(--hw-fe-accent);
  --hw-pf-accent-rgb: var(--hw-fe-accent-rgb);
  color: var(--hw-fe-text);
}

/* Emberline — ivory desk, terracotta posters, cream cards */
body.hw-profile-page.hw-cosmetic-pack--emberline {
  --hw-cosmetic-theme-fallback: #f7f3ed;
  --hw-cosmetic-theme-wash:
    linear-gradient(135deg, #c45a32 0 11%, transparent 11.08%),
    linear-gradient(135deg, transparent 0 56%, #c45a32 56.08%),
    radial-gradient(ellipse 28% 22% at 8% 18%, rgba(201, 114, 79, 0.12), transparent 70%),
    linear-gradient(180deg, #f7f3ed 0%, #f3ebe3 100%);
}
.hw-profile-shell.hw-cosmetic-pack--emberline {
  --hw-fe-bg: #f7f3ed;
  --hw-fe-bg-soft: #f3ebe3;
  --hw-fe-surface: #efe4d8;
  --hw-fe-elevated: #fcfaf7;
  --hw-fe-panel: rgba(252, 250, 247, 0.96);
  --hw-fe-panel-solid: #fcfaf7;
  --hw-fe-text: #211b16;
  --hw-fe-text-soft: #5c564e;
  --hw-fe-muted: #8a8379;
  --hw-fe-text-rgb: 33, 27, 22;
  --hw-fe-accent: #b85c3a;
  --hw-fe-accent-strong: #8f4027;
  --hw-fe-accent-light: #c9724f;
  --hw-fe-accent-rgb: 184, 92, 58;
  --hw-fe-border: #e4ded4;
  --hw-fe-border-soft: rgba(33, 27, 22, 0.08);
}

/* Inkline — ivory + charcoal diagonal slabs */
body.hw-profile-page.hw-cosmetic-pack--inkline {
  --hw-cosmetic-theme-fallback: #f7f3ed;
  --hw-cosmetic-theme-wash:
    linear-gradient(128deg, #161311 0 20%, transparent 20.1%),
    linear-gradient(128deg, transparent 0 79%, #161311 79.1%),
    linear-gradient(180deg, #f7f3ed 0%, #f4efe8 100%);
}
.hw-profile-shell.hw-cosmetic-pack--inkline {
  --hw-fe-bg: #f7f3ed;
  --hw-fe-bg-soft: #f1ebe2;
  --hw-fe-surface: #ece6dc;
  --hw-fe-elevated: #fcfaf7;
  --hw-fe-panel: rgba(252, 250, 247, 0.96);
  --hw-fe-panel-solid: #fcfaf7;
  --hw-fe-text: #211b16;
  --hw-fe-text-soft: #3a3530;
  --hw-fe-muted: #6f6962;
  --hw-fe-text-rgb: 33, 27, 22;
  --hw-fe-accent: #b85c3a;
  --hw-fe-accent-strong: #211b16;
  --hw-fe-accent-light: #c9724f;
  --hw-fe-accent-rgb: 184, 92, 58;
  --hw-fe-border: #d9d2c6;
  --hw-fe-border-soft: rgba(33, 27, 22, 0.1);
}

/* Steel Night — midnight facets, dark cards, steel type */
body.hw-profile-page.hw-cosmetic-pack--steel-night {
  --hw-cosmetic-theme-fallback: #08090b;
  --hw-cosmetic-theme-wash:
    repeating-linear-gradient(32deg, transparent 0 54px, rgba(107, 159, 239, 0.07) 54px 55px),
    repeating-linear-gradient(-38deg, transparent 0 72px, rgba(70, 110, 170, 0.05) 72px 73px),
    radial-gradient(ellipse 48% 36% at 8% 8%, rgba(107, 159, 239, 0.22), transparent 62%),
    radial-gradient(ellipse 40% 30% at 92% 0%, rgba(107, 159, 239, 0.12), transparent 58%),
    linear-gradient(180deg, #0b1018 0%, #08090b 100%);
}
.hw-profile-shell.hw-cosmetic-pack--steel-night {
  --hw-fe-bg: #08090b;
  --hw-fe-bg-soft: #12161e;
  --hw-fe-surface: #10141c;
  --hw-fe-elevated: #161b24;
  --hw-fe-panel: rgba(18, 22, 30, 0.94);
  --hw-fe-panel-solid: #161b24;
  --hw-fe-text: #eef0f3;
  --hw-fe-text-soft: #c5ccd6;
  --hw-fe-muted: #9aa3b0;
  --hw-fe-text-rgb: 238, 240, 243;
  --hw-fe-accent: #b85c3a;
  --hw-fe-accent-strong: #d4784e;
  --hw-fe-accent-light: #6b9fef;
  --hw-fe-accent-rgb: 184, 92, 58;
  --hw-fe-border: rgba(150, 180, 220, 0.18);
  --hw-fe-border-soft: rgba(238, 240, 243, 0.08);
  --hw-fe-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  --hw-fe-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Rose Binding — blush ivory, rose posters, cream cards */
body.hw-profile-page.hw-cosmetic-pack--rose-binding {
  --hw-cosmetic-theme-fallback: #f7f0f2;
  --hw-cosmetic-theme-wash:
    linear-gradient(135deg, #d4a0ab 0 10%, transparent 10.08%),
    linear-gradient(135deg, transparent 0 56%, #c47a8a 56.08%),
    radial-gradient(ellipse 26% 22% at 10% 20%, rgba(212, 160, 171, 0.16), transparent 70%),
    linear-gradient(180deg, #f8f1f3 0%, #f3e8eb 100%);
}
.hw-profile-shell.hw-cosmetic-pack--rose-binding {
  --hw-fe-bg: #f7f0f2;
  --hw-fe-bg-soft: #f3e8eb;
  --hw-fe-surface: #efe0e4;
  --hw-fe-elevated: #fcf8f9;
  --hw-fe-panel: rgba(252, 248, 249, 0.96);
  --hw-fe-panel-solid: #fcf8f9;
  --hw-fe-text: #3a2a30;
  --hw-fe-text-soft: #5c4050;
  --hw-fe-muted: #8a6e78;
  --hw-fe-text-rgb: 58, 42, 48;
  --hw-fe-accent: #b85c3a;
  --hw-fe-accent-strong: #a86b7a;
  --hw-fe-accent-light: #c47a8a;
  --hw-fe-accent-rgb: 184, 92, 58;
  --hw-fe-border: #e8d6db;
  --hw-fe-border-soft: rgba(58, 42, 48, 0.08);
}

/* Archive Brass — warm dark archive, brass hairlines */
body.hw-profile-page.hw-cosmetic-pack--archive-brass {
  --hw-cosmetic-theme-fallback: #0f0d0b;
  --hw-cosmetic-theme-wash:
    linear-gradient(135deg, rgba(196, 165, 116, 0.28) 0 12%, transparent 12.1%),
    linear-gradient(135deg, transparent 0 72%, rgba(196, 165, 116, 0.22) 72.1%),
    radial-gradient(ellipse 40% 30% at 92% 4%, rgba(196, 165, 116, 0.16), transparent 60%),
    linear-gradient(180deg, #16130f 0%, #0f0d0b 100%);
}
.hw-profile-shell.hw-cosmetic-pack--archive-brass {
  --hw-fe-bg: #0f0d0b;
  --hw-fe-bg-soft: #1a1612;
  --hw-fe-surface: #181410;
  --hw-fe-elevated: #1c1814;
  --hw-fe-panel: rgba(22, 18, 14, 0.94);
  --hw-fe-panel-solid: #1c1814;
  --hw-fe-text: #f2ebe1;
  --hw-fe-text-soft: #d4c4b0;
  --hw-fe-muted: #b09a80;
  --hw-fe-text-rgb: 242, 235, 225;
  --hw-fe-accent: #b85c3a;
  --hw-fe-accent-strong: #c4a574;
  --hw-fe-accent-light: #c4a574;
  --hw-fe-accent-rgb: 184, 92, 58;
  --hw-fe-border: rgba(196, 165, 116, 0.28);
  --hw-fe-border-soft: rgba(242, 235, 225, 0.08);
  --hw-fe-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --hw-fe-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* First Flame — founders charcoal, gold geometry */
body.hw-profile-page.hw-cosmetic-pack--first-flame {
  --hw-cosmetic-theme-fallback: #140f0c;
  --hw-cosmetic-theme-wash:
    linear-gradient(135deg, rgba(232, 165, 75, 0.35) 0 10%, transparent 10.1%),
    linear-gradient(135deg, transparent 0 70%, rgba(232, 165, 75, 0.22) 70.1%),
    radial-gradient(ellipse 46% 34% at 88% 0%, rgba(232, 165, 75, 0.2), transparent 58%),
    linear-gradient(180deg, #1a140f 0%, #140f0c 100%);
}
.hw-profile-shell.hw-cosmetic-pack--first-flame {
  --hw-fe-bg: #140f0c;
  --hw-fe-bg-soft: #1c1612;
  --hw-fe-surface: #1a1410;
  --hw-fe-elevated: #201a14;
  --hw-fe-panel: rgba(28, 22, 16, 0.94);
  --hw-fe-panel-solid: #201a14;
  --hw-fe-text: #f5ebe0;
  --hw-fe-text-soft: #dcc8b0;
  --hw-fe-muted: #c4a888;
  --hw-fe-text-rgb: 245, 235, 224;
  --hw-fe-accent: #b85c3a;
  --hw-fe-accent-strong: #e8a54b;
  --hw-fe-accent-light: #e8a54b;
  --hw-fe-accent-rgb: 184, 92, 58;
  --hw-fe-border: rgba(232, 165, 75, 0.28);
  --hw-fe-border-soft: rgba(245, 235, 224, 0.08);
  --hw-fe-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --hw-fe-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ----- Look picker ----- */
.hw-cosmetic-packs { border: 0; margin: 0; padding: 0; }
.hw-cosmetic-packs legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--hw-pf-text, #f5ebe0);
}
.hw-cosmetic-packs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
@media (min-width: 720px) {
  .hw-cosmetic-packs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hw-cosmetic-pack-opt { display: block; cursor: pointer; margin: 0; }
.hw-cosmetic-pack-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hw-cosmetic-pack-opt__card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 235, 224, 0.12);
  background: rgba(12, 10, 8, 0.45);
}
.hw-cosmetic-pack-opt__card--none { flex-direction: row; align-items: flex-start; }
.hw-cosmetic-pack-opt__card--none .hw-cosmetic-pack-opt__swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #efe8dc, #211b16);
  border: 1px solid rgba(245, 235, 224, 0.2);
}
.hw-cosmetic-pack-opt__scene {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1410;
  border: 1px solid rgba(245, 235, 224, 0.1);
}
.hw-cosmetic-pack-opt__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hw-cosmetic-pack-opt__row { display: flex; gap: 0.65rem; align-items: flex-start; }
.hw-cosmetic-pack-opt__preview {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--hw-cp-a, #f7f3ed), var(--hw-cp-b, #b85c3a));
  border: 1px solid rgba(245, 235, 224, 0.18);
  overflow: hidden;
}
.hw-cosmetic-pack-opt__preview img { width: 40px; height: 40px; object-fit: contain; }
.hw-cosmetic-pack-opt__meta { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.hw-cosmetic-pack-opt__meta strong { font-size: 0.95rem; color: var(--hw-pf-text, #f5ebe0); }
.hw-cosmetic-pack-opt__meta small { font-size: 0.78rem; line-height: 1.35; color: rgba(245, 235, 224, 0.62); }
.hw-cosmetic-pack-opt input:checked + .hw-cosmetic-pack-opt__card,
.hw-cosmetic-pack-opt input:focus-visible + .hw-cosmetic-pack-opt__card {
  border-color: rgba(var(--hw-pf-accent-rgb, 184, 92, 58), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--hw-pf-accent-rgb, 184, 92, 58), 0.16);
}
.hw-cosmetic-pack-opt.is-locked { opacity: 0.55; cursor: not-allowed; }
.hw-cosmetic-pack-opt--legendary .hw-cosmetic-pack-opt__card {
  border-color: rgba(232, 165, 75, 0.35);
  background: linear-gradient(160deg, rgba(232, 165, 75, 0.1), rgba(12, 10, 8, 0.45) 42%);
}
.hw-cosmetic-pack-opt__exclusive {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.1rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #140f0c;
  background: linear-gradient(105deg, #f0c878, #e8a54b);
}
