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

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  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(340px, 100%);
  padding-bottom: calc(24px * 4 + 4px * 3);
}

.mc__row {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px;
  border-radius: 8px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.mc__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: #17141a;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
}

.mc__at {
  flex: none;
  color: #7c90be;
}

.mc__x {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #17141a;
  cursor: pointer;
}

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

.mc__av {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b4a63;
  color: #fff7e6;
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
}

.mc__av--blue {
  background: #7c90be;
}

.mc__av--violet {
  background: #9791c9;
}

.mc__av--teal {
  background: #479082;
}

.mc__av--plum {
  background: #ab5488;
}

.mc__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #17141a;
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
}

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

.mc.is-demo .mc__input::placeholder {
  color: transparent;
}

.mc__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  border-radius: 8px;
  background: #fff7e6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.mc__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: #17141a;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.mc__opt[hidden] {
  display: none;
}

.mc:not(.is-demo) .mc__opt[aria-selected=true] {
  background: rgba(23, 20, 26, 0.1);
}

.mc__bar {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 4px;
  height: 24px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.14);
  pointer-events: none;
}

.mc:not(.is-demo) .mc__bar {
  visibility: hidden;
}

.mc.is-demo .mc__bar {
  animation-name: mcBar;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

@keyframes mcBar {
  0% {
    transform: translateY(0);
  }
  36% {
    transform: translateY(72px);
  }
  54% {
    transform: translateY(72px);
  }
  86%, 100% {
    transform: translateY(0);
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .mc {
    width: 100%;
  }
  .mc__row {
    min-height: 32px;
  }
  .mc__chip {
    height: 20px;
  }
  .mc__input {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mc__bar {
    animation: none !important;
  }
}
