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

.mc {
  position: relative;
  box-sizing: border-box;
  width: min(228px, 84vw);
  padding-bottom: 96px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.mc__label {
  display: block;
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 4px;
}

.mc__field {
  box-sizing: border-box;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: text;
}

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

.mc__chips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.mc__chip {
  box-sizing: border-box;
  height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px 0 8px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.mc__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.mc__chip--ghost {
  transform: scale(0.5);
  opacity: 0;
}

.mc__caret {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.5);
}

.mc__list {
  position: absolute;
  top: 60px;
  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);
}

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

.mc__opt {
  box-sizing: border-box;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  border-radius: 8px;
  color: #17141a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.mc__opt.is-at, .mc__opt:hover {
  background: rgba(47, 109, 246, 0.1);
}

.mc__tick {
  display: inline-flex;
  color: #2f6df6;
  opacity: 0;
}

.mc__opt.is-on .mc__tick {
  opacity: 1;
}

.mc.is-demo .mc__chip--ghost {
  animation: mc-chip 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.mc.is-demo .mc__opt--pulse .mc__tick {
  animation: mc-tick 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes mc-chip {
  0%, 100% {
    transform: scale(0.5);
    opacity: 0;
  }
  24% {
    transform: scale(1);
    opacity: 1;
  }
  76% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes mc-tick {
  0%, 100% {
    opacity: 0;
  }
  24% {
    opacity: 1;
  }
  76% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mc.is-demo .mc__chip--ghost,
  .mc.is-demo .mc__opt--pulse .mc__tick {
    animation: none !important;
  }
  .mc__list {
    transition: none;
  }
}
