.me-hero-card,
.player-hero-card {
  overflow: hidden;
  container-type: size;
  container-name: hero;
  border: 2px solid rgba(255, 214, 189, 0.2);
  border-radius: var(--profile-radius-lg, 22px);
  background:
    linear-gradient(135deg, rgba(255, 220, 187, 0.08), transparent 28%),
    linear-gradient(var(--profile-panel-gradient-angle, 180deg), rgba(var(--profile-panel-custom-rgb, 21, 14, 55), var(--profile-panel-custom-opacity, 0)), rgba(var(--profile-panel-custom-rgb-2, 7, 7, 22), var(--profile-panel-custom-opacity, 0))),
    linear-gradient(var(--profile-panel-gradient-angle, 180deg), rgba(var(--profile-panel-base-rgb, 21, 14, 55), var(--profile-panel-base-opacity, 0.96)), rgba(var(--profile-panel-base-rgb-2, 7, 7, 22), var(--profile-panel-base-opacity, 0.96)));
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 24px rgba(255, 121, 183, 0.08);
}

.me-hero-card,
.player-hero-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--profile-portrait-rail-width);
  gap: 16px;
  min-height: 0;
  padding: 26px;
  align-items: start;
}

.me-hero-card__backdrop,
.player-hero-card__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-position: center;
  background-size: cover;
  filter: saturate(0.9);
  pointer-events: none;
}

.me-hero-card--default-backdrop .me-hero-card__backdrop,
.player-hero-card--default-backdrop .player-hero-card__backdrop {
  opacity: 0.52;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(153, 255, 255, 0.16), transparent 20%),
    radial-gradient(circle at 78% 22%, rgba(255, 121, 183, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(255, 214, 189, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(12, 9, 30, 0.12), rgba(7, 6, 20, 0.72));
  background-size: auto, auto, auto, cover;
  filter: saturate(1) contrast(1.04);
}

.me-hero-card--custom-backdrop .me-hero-card__backdrop {
  opacity: 0.34;
  background-color: rgb(7, 6, 20);
  background-image:
    linear-gradient(180deg, rgba(7, 6, 20, 0.18), rgba(7, 6, 20, 0.76)),
    var(--me-profile-backdrop-image);
  background-size: cover, contain;
  background-repeat: no-repeat, no-repeat;
  filter: saturate(1) contrast(1.05);
}

.player-hero-card--custom-backdrop .player-hero-card__backdrop {
  opacity: 0.34;
  background-color: rgb(7, 6, 20);
  background-image:
    linear-gradient(180deg, rgba(7, 6, 20, 0.18), rgba(7, 6, 20, 0.76)),
    var(--player-profile-backdrop-image);
  background-size: cover, contain;
  background-repeat: no-repeat, no-repeat;
  filter: saturate(1) contrast(1.05);
}

.me-hero-card__copy,
.me-hero-card__portrait,
.me-hero-card__meta,
.player-hero-card__copy,
.player-hero-card__portrait,
.player-hero-card__meta {
  position: relative;
  z-index: 1;
}

.me-hero-card__copy,
.player-hero-card__copy {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding-right: 6px;
}

.me-hero-card__identity-row,
.player-hero-card__identity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.me-hero-card__kicker,
.me-panel__eyebrow,
.me-meta-block__label,
.me-link__kind,
.me-link__label,
.me-identity-links__title,
.me-identity-link__label,
.player-hero-card__kicker,
.player-panel__eyebrow,
.player-meta-block__label,
.player-link__kind,
.player-link__label,
.player-identity-links__title,
.player-identity-link__label {
  margin: 0;
  color: #ffd7b9;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.me-hero-card__kicker,
.player-hero-card__kicker {
  text-align: center;
}

.me-hero-card__name,
.player-hero-card__name {
  margin: 0;
  max-width: 100%;
  flex: 1 1 auto;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.34);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.me-presence-dot,
.player-presence-dot {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(10, 8, 26, 0.72);
  box-shadow: 0 0 16px currentColor;
}

.me-presence-dot--online,
.player-presence-dot--online {
  color: #7dff8d;
  background: currentColor;
}

.me-presence-dot--away,
.player-presence-dot--away {
  color: #ffd76f;
  background: currentColor;
}

.me-presence-dot--busy,
.player-presence-dot--busy {
  color: #ff8f8f;
  background: currentColor;
}

.me-presence-dot--offline,
.player-presence-dot--offline {
  color: rgba(255, 248, 255, 0.42);
  background: currentColor;
}

.me-hero-card__tagline,
.player-hero-card__tagline {
  margin: 0;
  max-width: 100%;
  color: #fff8ff;
  font-size: 0.96rem;
  line-height: 1.4;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.me-hero-card__bio,
.player-hero-card__bio {
  margin: 0;
  max-width: 100%;
  color: rgba(255, 248, 255, 0.82);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.me-hero-card__meta,
.player-hero-card__meta {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.me-meta-block,
.player-meta-block {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 214, 189, 0.12);
  border-radius: var(--profile-radius-sm, 12px);
  background: rgba(255, 255, 255, 0.04);
  background:
    linear-gradient(180deg, rgba(var(--profile-panel-element-rgb, 255, 255, 255), 0.08), rgba(var(--profile-panel-element-rgb, 255, 255, 255), 0.03)),
    rgba(255, 255, 255, 0.04);
}

.me-meta-block__value,
.player-meta-block__value {
  color: #fff8ff;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.me-hero-card__portrait,
.player-hero-card__portrait {
  display: grid;
  justify-self: end;
  justify-items: center;
  align-content: start;
  width: var(--profile-portrait-rail-width);
  min-height: 0;
  padding: 4px 0 0;
}

.me-hero-card__portrait-shell,
.player-hero-card__portrait-shell {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, var(--profile-avatar-frame-size));
}

.me-hero-card__portrait-frame,
.player-hero-card__portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--profile-avatar-frame-size);
  aspect-ratio: 1 / 1;
  padding: var(--profile-avatar-frame-padding);
  border-radius: 22px;
  border: 1px solid rgba(var(--profile-panel-element-rgb, 255, 214, 189), 0.2);
  background:
    radial-gradient(circle at 50% 32%, rgba(var(--profile-panel-element-rgb, 255, 214, 189), 0.18), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(var(--profile-panel-element-rgb, 255, 121, 183), 0.16), transparent 34%),
    linear-gradient(180deg, rgba(9, 9, 22, 0.6), rgba(7, 6, 18, 0.92));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.me-hero-card__portrait-frame::after,
.player-hero-card__portrait-frame::after {
  content: "";
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border: 1px solid rgba(var(--profile-panel-element-rgb, 153, 255, 255), 0.18);
  pointer-events: none;
}

.me-hero-card__portrait-fallback,
.me-hero-card__portrait-image,
.player-hero-card__portrait-fallback,
.player-hero-card__portrait-image {
  grid-area: 1 / 1;
}

.me-hero-card__portrait-fallback,
.player-hero-card__portrait-fallback {
  display: grid;
  place-items: center;
  width: var(--profile-avatar-image-size);
  aspect-ratio: 1 / 1;
  padding: 16px;
  border-radius: 50%;
  border: 2px solid rgba(var(--profile-panel-element-rgb, 255, 214, 189), 0.3);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 248, 255, 0.32), rgba(255, 121, 183, 0.14) 38%, rgba(7, 6, 18, 0.96) 72%);
  color: #fff8ff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  box-shadow:
    0 0 24px rgba(255, 121, 183, 0.18),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.me-hero-card__portrait-image,
.player-hero-card__portrait-image {
  width: var(--profile-avatar-image-size);
  height: var(--profile-avatar-image-size);
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid rgba(var(--profile-panel-element-rgb, 255, 214, 189), 0.28);
  box-shadow:
    0 0 18px rgba(255, 121, 183, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.me-hero-card--default-avatar .me-hero-card__portrait-frame,
.player-hero-card--default-avatar .player-hero-card__portrait-frame {
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 248, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 52%, rgba(255, 121, 183, 0.22), transparent 36%),
    linear-gradient(180deg, rgba(18, 14, 42, 0.7), rgba(7, 6, 18, 0.96));
}

.me-hero-card--default-avatar .me-hero-card__portrait-image,
.player-hero-card--default-avatar .player-hero-card__portrait-image {
  object-position: center top;
  box-shadow:
    0 0 22px rgba(255, 121, 183, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.me-hero-card--custom-avatar .me-hero-card__portrait-frame,
.player-hero-card--custom-avatar .player-hero-card__portrait-frame {
  background:
    radial-gradient(circle at 50% 24%, rgba(153, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 50% 52%, rgba(255, 121, 183, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(12, 9, 30, 0.7), rgba(7, 6, 18, 0.96));
}

.me-hero-card--avatar-fallback .me-hero-card__portrait-image,
.player-hero-card--avatar-fallback .player-hero-card__portrait-image {
  display: none;
}

.me-hero-card__copy,
.player-hero-card__copy {
  grid-column: 2 / 3;
}

.me-hero-card__portrait,
.player-hero-card__portrait {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
  justify-self: start;
  width: 100%;
}

.me-hero-card__meta,
.player-hero-card__meta {
  grid-column: 2 / 3;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.me-hero-card__tagline,
.player-hero-card__tagline {
  text-transform: none;
}

.me-identity-links,
.player-identity-links {
  display: grid;
  gap: 10px;
}

.me-identity-link,
.player-identity-link {
  display: grid;
  gap: 4px;
}

.me-identity-link__value,
.player-identity-link__value {
  margin: 0;
  color: rgba(255, 248, 255, 0.84);
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.me-identity-link__value:hover,
.me-identity-link__value:focus-visible,
.player-identity-link__value:hover,
.player-identity-link__value:focus-visible {
  color: #99ffff;
}

@media (max-width: 640px) {
  .me-hero-card,
  .player-hero-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px 18px;
  }

  .me-hero-card__portrait,
  .player-hero-card__portrait {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: center;
  }

  .me-hero-card__copy,
  .me-hero-card__meta,
  .player-hero-card__copy,
  .player-hero-card__meta {
    grid-column: 1 / -1;
  }
}
