html, body {
  margin: 0;
  overflow: hidden;
}

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

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

.ml__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(23, 20, 26, 0.14);
  border-radius: 16px;
}

.ml__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(23, 20, 26, 0.22);
  border-radius: 50%;
  background: rgba(47, 109, 246, 0.08);
  color: #17141a;
  font-size: 17px;
  line-height: 20px;
  font-weight: 700;
}

.ml__name {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #17141a;
  text-align: center;
}

.ml__role {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: rgba(23, 20, 26, 0.64);
}

.ml__line {
  display: block;
  height: 2px;
  background: #17141a;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ml__line--name {
  width: 56px;
  margin: 4px auto 0;
}

.ml__line--btn {
  position: absolute;
  left: -1px;
  bottom: -1px;
  width: calc(100% + 2px);
  background: #2f6df6;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.ml__stats {
  display: flex;
  gap: 16px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: rgba(23, 20, 26, 0.64);
}

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

.ml__follow {
  position: relative;
  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(23, 20, 26, 0.14);
  border-radius: 12px;
  color: #17141a;
  font-family: inherit;
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ml__follow:hover {
  border-color: rgba(23, 20, 26, 0.3);
}

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

.ml__i {
  display: inline-flex;
}

.ml__i--check {
  display: none;
  color: #2f6df6;
}

.ml__follow[aria-pressed=true] .ml__i--plus {
  display: none;
}

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

.ml__name:hover .ml__line--name,
.ml__follow:hover .ml__line--btn,
.ml__follow:focus-visible .ml__line--btn,
.ml__follow[aria-pressed=true] .ml__line--btn {
  transform: scaleX(1);
}

.ml.is-demo .ml__line--name {
  animation-name: ml-draw-name;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.ml.is-demo .ml__line--btn {
  animation-name: ml-draw-btn;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: 167ms;
  animation-fill-mode: backwards;
}

@keyframes ml-draw-name {
  0% {
    transform: scaleX(0);
  }
  25% {
    transform: scaleX(0.7);
  }
  29% {
    transform: scaleX(1);
  }
  54% {
    transform: scaleX(1);
  }
  80% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes ml-draw-btn {
  0% {
    transform: scaleX(0);
  }
  25% {
    transform: scaleX(0.4);
  }
  29% {
    transform: scaleX(1);
  }
  54% {
    transform: scaleX(1);
  }
  80% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(0);
  }
}
@media (max-width: 340px) {
  .ml__card {
    width: 272px;
    padding: 12px;
  }
  .ml__avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
    line-height: 16px;
  }
  .ml__name {
    margin-top: 4px;
    font-size: 13px;
    line-height: 16px;
  }
  .ml__line--name {
    width: 44px;
    margin-top: 0;
  }
  .ml__role {
    margin-top: 0;
    font-size: 11px;
    line-height: 14px;
  }
  .ml__stats {
    margin-top: 4px;
    gap: 12px;
    font-size: 11px;
    line-height: 15px;
  }
  .ml__follow {
    height: 32px;
    margin-top: 4px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ml.is-demo .ml__line--name,
  .ml.is-demo .ml__line--btn {
    animation: none !important;
  }
  .ml__line {
    transition: none;
  }
}
