@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.gr {
  display: grid;
  place-items: center;
  user-select: none;
  -webkit-user-select: none;
}

.gr__rim {
  width: 300px;
  padding: 4px;
  border-radius: 16px;
  background: conic-gradient(from var(--angle), #2f6df6, #ff9ebb, #4cd4a6, #b9a0ff, #2f6df6);
  animation-name: gr-spin;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes gr-spin {
  to {
    --angle: 360deg;
  }
}
.gr__face {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background-color: #17141a;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06));
}

.gr__avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f6df6, #ff9ebb);
  color: #17141a;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.gr__name {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #fff7e6;
}

.gr__role {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.gr__stats {
  display: flex;
  gap: 16px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.gr__stat strong {
  margin-right: 4px;
  font-weight: 700;
  color: #fff7e6;
  font-variant-numeric: tabular-nums;
}

.gr__follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin: 12px 0 0;
  padding: 0 16px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: #fff7e6;
  font-family: inherit;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gr__follow:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gr__follow:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.gr__follow[aria-pressed=true] {
  border-color: rgba(76, 212, 166, 0.65);
}

.gr__i {
  display: inline-flex;
}

.gr__i--check {
  display: none;
  color: #4cd4a6;
}

.gr__follow[aria-pressed=true] .gr__i--star {
  display: none;
}

.gr__follow[aria-pressed=true] .gr__i--check {
  display: inline-flex;
}

@media (max-width: 340px) {
  .gr__rim {
    width: 272px;
  }
  .gr__face {
    padding: 12px;
  }
  .gr__avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
    line-height: 16px;
  }
  .gr__name {
    margin-top: 4px;
    font-size: 13px;
    line-height: 16px;
  }
  .gr__role {
    margin-top: 0;
    font-size: 11px;
    line-height: 14px;
  }
  .gr__stats {
    margin-top: 4px;
    gap: 12px;
    font-size: 11px;
    line-height: 15px;
  }
  .gr__follow {
    height: 32px;
    margin-top: 4px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gr__rim {
    animation: none !important;
  }
  .gr__follow {
    transition: none;
  }
}
