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

.av {
  position: relative;
  box-sizing: border-box;
  width: min(212px, 84vw);
  padding-bottom: 104px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.av__label {
  display: block;
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(23, 20, 26, 0.72);
  margin: 0 0 4px;
}

.av__btn {
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid rgba(23, 20, 26, 0.16);
  background: #fff;
  border-radius: 12px;
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.av__slot-wrap, .av__name {
  display: inline-grid;
}

.av__slot {
  grid-area: 1/1;
  place-self: center start;
}

.av__slot--b {
  opacity: 0;
}

.av__empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.07);
  color: rgba(23, 20, 26, 0.4);
}

.av__pic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.av__pic--a {
  background: #2f8f6d;
  color: #17141a;
}

.av__pic--b {
  background: #9c9fce;
}

.av__pic--c {
  background: #ba9273;
  color: #17141a;
}

.av__caret {
  margin-left: auto;
  display: inline-flex;
  color: rgba(23, 20, 26, 0.4);
}

.av__list {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.av.is-open .av__list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.av__opt {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.av__opt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 8px;
  background: rgba(47, 109, 246, 0.12);
  opacity: 0;
}

.av__opt[aria-selected=true]::after, .av__opt.is-at::after, .av__opt:hover::after {
  opacity: 1;
}

.av__who {
  color: rgba(23, 20, 26, 0.82);
}

.av__dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.22);
}

.av__dot--on {
  background: #50a26e;
}

.av__dot--away {
  background: #bea57a;
}

.av.is-demo .av__slot--a {
  animation: av-swap-a 2s steps(1, end) infinite;
}

.av.is-demo .av__slot--b {
  animation: av-swap-b 2s steps(1, end) infinite;
}

.av.is-demo .av__opt--b::after {
  animation: av-in 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.av.is-demo .av__opt--b .av__pic {
  animation: av-pop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes av-swap-a {
  0%, 25% {
    opacity: 1;
  }
  26%, 73% {
    opacity: 0;
  }
  74%, 100% {
    opacity: 1;
  }
}
@keyframes av-swap-b {
  0%, 25% {
    opacity: 0;
  }
  26%, 73% {
    opacity: 1;
  }
  74%, 100% {
    opacity: 0;
  }
}
@keyframes av-in {
  0%, 100% {
    opacity: 0;
    transform: scale(0.4);
  }
  26%, 74% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes av-pop {
  0%, 100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.18);
  }
  40%, 74% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .av.is-demo .av__slot--a, .av.is-demo .av__slot--b,
  .av.is-demo .av__opt--b::after, .av.is-demo .av__opt--b .av__pic {
    animation: none !important;
  }
  .av__list {
    transition: none;
  }
}
