/* ─── Theme Variables ─────────────────────────────────────────────── */
:root {
  --color-bg-outer: #05060f;
  --color-bg-outer-end: #0c0f1f;
  --color-bg: #0d0d0d;
  --color-text: #f3f4ff;
  --color-text-muted: rgba(235, 238, 255, 0.68);
  --color-text-on-dark: #ffffff;
  --color-text-muted-on-dark: rgba(255, 255, 255, 0.55);
  --color-accent: #b49bff;
  --color-accent-glow: rgba(180, 155, 255, 0.45);

  --font-family: "Inter", system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.6875rem;
  --font-size-sm: 0.8125rem;
  --font-size-base: 0.9375rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  --spacing-xs: 0.375rem;
  --spacing-sm: 0.625rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  --content-width: 400px;
  --content-padding: 1.5rem;

  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --color-surface: #1a1a1a;
  --color-surface-hover: #242424;
  --color-surface-active: #2e2e2e;
  --color-shadow-glow: rgba(232, 160, 180, 0.25);
}

/* ─── Reset & Base ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--color-text);
  background: #040404;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--spacing-lg);
  overflow-x: hidden;
  position: relative;
}

html.is-entering,
html.is-entering body {
  overflow: hidden;
}

/* ─── Enter Overlay ───────────────────────────────────────────────── */
.enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: #fff;
}

.enter-overlay[hidden] {
  display: none;
}

.enter-overlay__veil {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.42);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  transition: transform 600ms cubic-bezier(0, 0, 0.2, 1);
}

.enter-overlay.is-leaving .enter-overlay__veil {
  transform: translate3d(0, -100%, 0);
}

.enter-overlay__copy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 600ms cubic-bezier(0, 0, 0.2, 1);
}

.enter-overlay.is-leaving .enter-overlay__copy {
  opacity: 0;
}

.enter-overlay__text {
  padding: 0 1.5rem;
  text-align: center;
  font-family: "Pixelify Sans", ui-monospace, monospace;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.55);
  animation: enter-pulse 1.8s ease-in-out infinite;
}

.enter-overlay__text p {
  margin: 0;
}

@keyframes enter-pulse {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* ─── Page Starfield ──────────────────────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% 32%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 65% 50% at 18% 78%,
      rgba(255, 255, 255, 0.035) 0%,
      transparent 55%
    );
}

#page-starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.5px);
  background: #040404;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Accessibility ───────────────────────────────────────────────── */
.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ─── Page Wrapper ────────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--content-width) + var(--content-padding) * 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: calc(100dvh - var(--spacing-lg) * 2);
}

.reveal-item {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  will-change: opacity, transform;
}

html.is-entered .reveal-item {
  animation: reveal-in 0.75s cubic-bezier(0.22, 0.8, 0.25, 1) both;
  animation-delay: calc(var(--reveal-i, 0) * 0.14s + 0.06s);
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ─── Profile Layout ──────────────────────────────────────────────── */
.profile {
  width: 100%;
  max-width: var(--content-width);
  padding: var(--content-padding);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Header ────────────────────────────────────────────────────── */
.profile-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  width: 100%;
  min-height: 0;
  padding: 1.125rem 1.125rem 1.25rem;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 40px -18px rgba(0, 0, 0, 0.45);
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

.profile-banner-clip {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.profile-banner {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(6, 6, 8, 0.78) 0%,
    rgba(6, 6, 8, 0.42) 38%,
    rgba(6, 6, 8, 0.14) 68%,
    rgba(6, 6, 8, 0.08) 100%
  );
}

.profile-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.profile-intro,
.profile-socials {
  position: relative;
  z-index: 2;
}

.profile-intro {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 35%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(6, 6, 8, 0.55);
}

.profile-status-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  border: 2px solid #0a0a0c;
  background: #80848e;
}

.profile-status-dot[data-status="online"] {
  background: #22c55e;
}

.profile-status-dot[data-status="idle"] {
  background: #eab308;
}

.profile-status-dot[data-status="dnd"] {
  background: #ef4444;
}

.profile-status-dot[data-status="offline"] {
  background: #80848e;
}

.profile-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}

.username {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bio {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
  max-width: 32ch;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

/* ─── Section Labels ────────────────────────────────────────────── */
.section-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

/* ─── Status Card ─────────────────────────────────────────────────── */
.status-section {
  display: flex;
  flex-direction: column;
}

.status-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.875rem 1rem;
  border-radius: 14px;
  background: rgba(10, 10, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  user-select: none;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.status-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
}

.status-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.status-card__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.status-card__avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  margin-top: 0.1rem;
  border-radius: 999px;
}

.status-card__pip {
  --pip: 16px;
  --pip-gap: 3.5px;
  --pip-hole: calc(var(--pip) / 2 + var(--pip-gap));
  --pip-at: calc(100% - var(--pip-hole));
}

.status-card__pip-face {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  mask-image: radial-gradient(
    circle at var(--pip-at) var(--pip-at),
    transparent var(--pip-hole),
    #000 calc(var(--pip-hole) + 0.5px)
  );
  -webkit-mask-image: radial-gradient(
    circle at var(--pip-at) var(--pip-at),
    transparent var(--pip-hole),
    #000 calc(var(--pip-hole) + 0.5px)
  );
}

.status-card__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.status-card__status {
  position: absolute;
  right: var(--pip-gap);
  bottom: var(--pip-gap);
  z-index: 2;
  width: var(--pip);
  height: var(--pip);
  border-radius: 999px;
  background: #80848e;
  box-shadow: 0 0 0 3px rgba(10, 10, 14, 0.95);
}

.status-card__status[data-status="online"] {
  background: #23a55a;
}

.status-card__status[data-status="idle"] {
  background: #f0b232;
}

.status-card__status[data-status="dnd"] {
  background: #f23f43;
}

.status-card__status[data-status="offline"] {
  background: #80848e;
}

.status-card__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding-top: 0.05rem;
}

.status-card__name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.status-card__name {
  margin: 0;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-card__badges {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.status-card__badges:empty {
  display: none;
}

.status-card__badge-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  opacity: 0.75;
}

.status-card__guild-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.status-card__guild-badge {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.status-card__guild-text {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1;
}

.status-card__custom {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
}

.status-card__custom[hidden] {
  display: none;
}

.status-card__custom-emoji {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  font-size: 14px;
  line-height: 1;
}

.status-card__custom-emoji[hidden] {
  display: none;
}

.status-card__custom-emoji img {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.status-card__custom-emoji-glow {
  transform: scale(1.25);
  filter: blur(3px) saturate(1.2);
  opacity: 0.38;
  pointer-events: none;
}

.status-card__custom-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-card__custom-text[hidden] {
  display: none;
}

.status-card__app {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  margin-top: 0.15rem;
  padding: 0.4rem 0.45rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.status-card__app[hidden] {
  display: none;
}

.status-card__app-art {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.status-card__app-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-card__app-art img[hidden] {
  display: none;
}

.status-card__app-art-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.status-card__app-art:has(img:not([hidden])) .status-card__app-art-empty {
  display: none;
}

.status-card__app-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.05rem;
}

.status-card__app-title {
  font-size: 0.78rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-card__app-detail {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-card__app-detail[hidden] {
  display: none;
}

.status-card--offline {
  opacity: 0.92;
}


/* ─── Server Widget ───────────────────────────────────────────────── */
.server-section {
  display: flex;
  flex-direction: column;
}

.server-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(6, 6, 8, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 40px -15px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.server-widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

.server-widget:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.server-widget__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.server-widget__avatar {
  position: relative;
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.server-widget__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-widget__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  overflow: hidden;
}

.server-widget__name {
  margin: 0;
  min-width: 0;
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.25;
  color: #f3f4f6;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent);
}

.server-widget__counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.server-widget__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.server-widget__count strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.server-widget__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  background: currentColor;
}

.server-widget__dot--online {
  color: #23a55a;
  box-shadow: 0 0 0 3px rgba(35, 165, 90, 0.18);
}

.server-widget__dot--members {
  color: #80848e;
}

.server-widget__join {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  width: fit-content;
  margin-top: 1px;
  padding: 3px 11px;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.server-widget__join svg {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.server-widget__join:hover {
  opacity: 0.8;
}

.server-widget__join[hidden] {
  display: none;
}

.server-widget__message {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(229, 231, 235, 0.7);
}

.server-widget__message[hidden] {
  display: none;
}

.server-widget--error .server-widget__dot--online {
  color: #80848e;
  box-shadow: none;
}

/* ─── Social Icons ────────────────────────────────────────────────── */
.social-icon {
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  opacity: 0.88;
}

.social-icon:hover {
  transform: scale(1.08);
  opacity: 1;
}

.social-icon__wrap {
  display: inline-block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.social-icon__glyph {
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-mask-image: var(--icon-mask);
  mask-image: var(--icon-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript-notice {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 100;
  max-width: 22rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(18, 18, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

/* ─── Responsive Breakpoints ──────────────────────────────────────── */
@media (max-width: 420px) {
  :root {
    --content-padding: 1rem;
  }

  body {
    justify-content: safe center;
    align-items: center;
    padding: var(--spacing-md) 0;
  }

  .page-wrapper {
    animation: none;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    min-height: auto;
  }

  .profile {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin: 0 auto;
    gap: 0.875rem;
  }

  .profile-header {
    padding: 1rem 1rem 1.125rem;
    gap: 0.75rem;
  }

  .profile-avatar-wrap,
  .profile-avatar {
    width: 64px;
    height: 64px;
  }

  .username {
    font-size: 1.125rem;
  }
}

@media (min-width: 421px) and (max-width: 768px) {
  :root {
    --content-width: 380px;
    --content-padding: 1.375rem;
  }

  body {
    justify-content: safe center;
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .page-wrapper {
    flex: 0 0 auto;
    min-height: auto;
  }
}

@media (min-width: 769px) {
  :root {
    --content-width: 420px;
  }

  body {
    justify-content: safe center;
    padding: var(--spacing-xl);
  }

  .page-wrapper {
    flex: 0 0 auto;
    min-height: auto;
  }

  .profile-header {
    padding: 1.25rem 1.25rem 1.4rem;
  }

  .profile-avatar-wrap,
  .profile-avatar {
    width: 76px;
    height: 76px;
  }

  .username {
    font-size: 1.35rem;
  }
}

/* ─── Reduced Motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .page-wrapper {
    animation: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .enter-overlay__text {
    animation: none;
  }

  .enter-overlay__veil,
  .enter-overlay__copy {
    transition: none;
  }
}
