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

.tags {
  box-sizing: border-box;
  width: min(272px, 84vw);
  background: #fff7e6;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}
.tags__label {
  display: block;
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  font-family: inherit;
  color: #17141a;
}
.tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  min-height: 24px;
}
.tags__chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #0a4fe8;
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
}
.tags__remove {
  border: 0;
  background: rgba(23, 20, 26, 0.25);
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  line-height: 1;
  font-size: 12px;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.tags__remove:hover, .tags__remove:focus-visible {
  background: rgba(255, 255, 255, 0.45);
}
.tags__input {
  box-sizing: border-box;
  width: 100%;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 500;
  font-size: clamp(14px, 4.2vw, 16px);
  font-family: inherit;
  color: #17141a;
  background: #fff;
  transition: border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
.tags__input:focus {
  outline: none;
  border-color: #2f6df6;
}
.tags__hint {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
}

.tags.is-demo .tags__chip {
  animation: pop 220ms cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes pop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  70% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tags__chip {
    animation: none;
  }
  .tags__input, .tags__remove {
    transition: none;
  }
}
