.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.hero::before {
  content: "";
  position: absolute;
  top: calc(var(--avatar) * -0.6);
  left: 50%;
  z-index: -1;
  width: calc(var(--avatar) * 3);
  height: calc(var(--avatar) * 3);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 111, 181, 0.26), transparent 70%);
  pointer-events: none;
}

.avatar-wrap {
  position: relative;
  width: var(--avatar);
  height: var(--avatar);
  margin-bottom: var(--avatar-gap);
  border-radius: 50%;
}

.avatar-glow {
  position: absolute;
  inset: -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 111, 181, 0.42),
    rgba(192, 132, 252, 0.14) 55%,
    transparent 75%
  );
  filter: blur(14px);
  opacity: 0.8;
  animation: breathe 6s ease-in-out infinite;
  transition: opacity 0.6s var(--ease);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-3),
    var(--accent),
    #ffd1e8,
    var(--accent-2),
    var(--accent-3)
  );
  animation: spin 9s linear infinite;
  will-change: transform;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.avatar {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  border-radius: 50%;
  border: 3px solid var(--bg);
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--bg-2);
  transition: transform 0.6s var(--ease);
}

.avatar-wrap:hover .avatar,
.avatar-wrap:active .avatar {
  transform: scale(1.035);
}
.avatar-wrap:hover .avatar-glow {
  opacity: 1;
}

.name {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  margin: 0;
  font-size: var(--name-size);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 0.72em;
  height: 0.72em;
  color: var(--verified);
  filter: drop-shadow(0 0 10px rgba(61, 165, 255, 0.45));
}
.verified svg {
  width: 100%;
  height: 100%;
}

.handle {
  margin: 0;
  color: var(--text-2);
  font-weight: 500;
  font-size: 15px;
}

.tagline {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  margin-top: var(--meta-gap);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: var(--chip-pad-y) 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.chip svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}
.chip--live {
  color: var(--text);
  border-color: rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.07);
}
.chip--offline {
  color: var(--text-2);
}
.chip--offline .live-dot {
  background: #8e8a97;
  box-shadow: none;
  animation: none;
}
.chip__emoji[hidden] {
  display: none;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.stats {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 420px;
  margin-top: var(--stats-gap);
  padding: 4px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.stats li {
  flex: 1 1 0;
  padding: var(--stat-pad-y) 6px;
  text-align: center;
}
.stats li + li {
  border-left: 1px solid var(--border);
}
.stats strong {
  display: block;
  font-size: var(--stat-size);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stats span {
  display: block;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stats strong.is-updated {
  animation: statFlash 1.2s var(--ease);
}
@keyframes statFlash {
  0% {
    color: var(--live);
  }
  100% {
    color: inherit;
  }
}
