*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: #262626;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #fafafa 0%, #f0f0f0 55%, #e8e8e8 100%);
}

.page {
  width: min(100%, 420px);
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.avatar-ring {
  width: clamp(120px, 32vw, 168px);
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
}

.username {
  margin: 0;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bubble {
  position: relative;
  max-width: 16rem;
  margin-top: 0.35rem;
  padding: 0.85rem 1.15rem;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 1.25rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  animation: pop 0.45s ease both;
}

.bubble::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #dbdbdb;
  border-top: 1px solid #dbdbdb;
  transform: translateX(-50%) rotate(45deg);
}

.bubble p {
  margin: 0;
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.35;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 768px) {
  body {
    background:
      radial-gradient(ellipse 70% 50% at 50% 20%, #fafafa 0%, #efefef 100%);
  }
}
