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

.uc {
  position: relative;
  box-sizing: border-box;
  width: min(300px, 100%);
  padding-top: 24px;
  padding-bottom: calc(48px * 2 + 12px);
}

.uc__line {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
}

.uc__ago {
  flex: none;
  margin-right: 4px;
  color: #4a4452;
}

.uc__rest {
  margin-left: 4px;
}

.uc__trigger {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #17141a;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.uc__trigger:hover {
  background: rgba(23, 20, 26, 0.06);
}

.uc__trigger:focus-visible {
  outline: 2px solid #7c90be;
  outline-offset: 2px;
}

.uc__av, .uc__bigav {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #7c90be;
  color: #fff7e6;
  font-weight: 700;
  line-height: 1;
}

.uc__av {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.uc__bigav {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.uc__card {
  position: absolute;
  top: calc(24px + 32px + 4px);
  left: 0;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  width: calc(48px * 4);
  padding: 12px;
  border-radius: 16px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.uc__card[hidden] {
  display: none;
}

.uc__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uc__who {
  display: grid;
  gap: 4px;
  margin: 0;
}

.uc__cardName {
  color: #17141a;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.uc__job {
  color: #4a4452;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
}

.uc__stats {
  display: flex;
  gap: 16px;
}

.uc__stat {
  display: grid;
  gap: 4px;
  margin: 0;
}

.uc__val {
  color: #17141a;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.uc__lab {
  color: #4a4452;
  font-weight: 500;
  font-size: 10px;
  line-height: 1;
}

.uc__fill {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
  overflow: hidden;
}

.uc__fillIn {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #7c90be;
  transform: scaleX(0);
  transform-origin: left center;
}

.uc__pointer {
  position: absolute;
  top: 0;
  left: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7c90be;
  box-shadow: 0 0 0 4px #ffffff;
  pointer-events: none;
}

.uc:not(.is-demo) .uc__pointer {
  visibility: hidden;
}

.uc.is-demo .uc__card {
  animation-name: ucCard, ucWipe;
  animation-duration: 2s, 2s;
  animation-timing-function: ease-out, ease-in;
  animation-iteration-count: infinite, infinite;
}

.uc.is-demo .uc__fillIn {
  animation-name: ucFill;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.uc.is-demo .uc__pointer {
  animation-name: ucPointer;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes ucCard {
  0% {
    opacity: 0;
    transform: translateY(6px);
    animation-timing-function: steps(1, end);
  }
  26% {
    opacity: 1;
    transform: translateY(6px);
    animation-timing-function: ease-out;
  }
  34%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ucWipe {
  0%, 84% {
    clip-path: inset(0 0 0 0);
    animation-timing-function: ease-in;
  }
  92%, 100% {
    clip-path: inset(0 0 100% 0);
  }
}
@keyframes ucFill {
  0%, 28% {
    transform: scaleX(0);
  }
  84%, 100% {
    transform: scaleX(1);
  }
}
@keyframes ucPointer {
  0% {
    translate: 0 0;
  }
  26% {
    translate: 64px 22px;
  }
  40% {
    translate: 64px 26px;
  }
  54% {
    translate: 64px 22px;
  }
  84% {
    translate: 64px 22px;
  }
  92%, 100% {
    translate: 0 0;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .uc {
    padding-top: 16px;
  }
  .uc__line {
    font-size: 12px;
  }
  .uc__trigger {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .uc__card {
    animation: none !important;
  }
  .uc__fillIn {
    animation: none !important;
    transform: scaleX(1) !important;
  }
  .uc__pointer {
    animation: none !important;
  }
}
