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);
}

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

.dg__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.dg__ava {
  position: relative;
  width: 68px;
  height: 68px;
}

.dg__ring {
  position: absolute;
  inset: 0;
  border: 2px solid #4cd4a6;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(76, 212, 166, 0.55), inset 0 0 10px rgba(76, 212, 166, 0.45);
}

.dg__halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  box-shadow: 0 0 26px 4px rgba(76, 212, 166, 0.55);
  opacity: 0.35;
  pointer-events: none;
}

.dg__avatar {
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(rgba(76, 212, 166, 0.28), rgba(47, 109, 246, 0.2)), rgba(255, 255, 255, 0.05);
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.dg__init {
  color: #fff7e6;
  filter: drop-shadow(0 0 6px rgba(76, 212, 166, 0.9));
}

.dg__dot {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4cd4a6;
  box-shadow: 0 0 10px rgba(76, 212, 166, 0.8);
}

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

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

.dg__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);
}

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

.dg__follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  margin: 12px 0 0;
  padding: 0 16px;
  background: rgba(76, 212, 166, 0.1);
  border: 1px solid rgba(76, 212, 166, 0.7);
  border-radius: 12px;
  color: #fff7e6;
  font-family: inherit;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(76, 212, 166, 0.3);
  transition: box-shadow 600ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dg__follow:hover {
  background: rgba(76, 212, 166, 0.2);
  box-shadow: 0 0 22px rgba(76, 212, 166, 0.55);
}

.dg__follow:focus-visible {
  outline: 2px solid #4cd4a6;
  outline-offset: 2px;
}

.dg__follow[aria-pressed=true] {
  box-shadow: 0 0 20px rgba(76, 212, 166, 0.5);
}

.dg__i {
  display: inline-flex;
}

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

.dg__follow[aria-pressed=true] .dg__i--plus {
  display: none;
}

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

.dg.is-demo .dg__halo {
  animation-name: dg-breathe;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.dg.is-demo .dg__dot {
  animation-name: dg-dot-breathe;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-delay: 120ms;
  animation-fill-mode: backwards;
}

@keyframes dg-breathe {
  0% {
    opacity: 0.18;
    transform: scale(0.92);
  }
  38% {
    opacity: 1;
    transform: scale(1.1);
  }
  62% {
    opacity: 1;
    transform: scale(1.1);
  }
  88% {
    opacity: 0.18;
    transform: scale(0.92);
  }
  100% {
    opacity: 0.18;
    transform: scale(0.92);
  }
}
@keyframes dg-dot-breathe {
  0% {
    opacity: 0.4;
    transform: scale(0.86);
  }
  38% {
    opacity: 1;
    transform: scale(1.12);
  }
  62% {
    opacity: 1;
    transform: scale(1.12);
  }
  88% {
    opacity: 0.4;
    transform: scale(0.86);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.86);
  }
}
@media (max-width: 340px) {
  .dg__card {
    width: 272px;
    padding: 8px 12px;
  }
  .dg__ava {
    width: 56px;
    height: 56px;
  }
  .dg__avatar {
    inset: 6px;
    font-size: 14px;
    line-height: 16px;
  }
  .dg__halo {
    inset: -6px;
  }
  .dg__dot {
    width: 10px;
    height: 10px;
    bottom: 0;
  }
  .dg__name {
    margin-top: 4px;
    font-size: 13px;
    line-height: 16px;
  }
  .dg__role {
    margin-top: 0;
    font-size: 11px;
    line-height: 14px;
  }
  .dg__stats {
    margin-top: 4px;
    gap: 12px;
    font-size: 11px;
    line-height: 15px;
  }
  .dg__follow {
    height: 32px;
    margin-top: 4px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dg.is-demo .dg__halo,
  .dg.is-demo .dg__dot {
    animation: none !important;
  }
  .dg__follow {
    transition: none;
  }
}
