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

.as {
  width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 24px;
}

.as__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 4px 0 12px;
  background: #0a4fe8;
  color: #fff7e6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transform: scale(1);
  opacity: 1;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease-out;
}

.as__chip--enter {
  transform: scale(0.4);
  opacity: 0;
}

.as__chipX {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 247, 230, 0.22);
  color: #fff7e6;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.as__chipX:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.as__row {
  display: flex;
  align-items: center;
  background: rgba(255, 247, 230, 0.08);
  border: 1px solid rgba(255, 247, 230, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
}

.as__input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  color: #fff7e6;
  font-size: 12px;
  outline: none;
}

.as__input::placeholder {
  color: rgba(255, 247, 230, 0.55);
}

.as__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.as__opt {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  background: rgba(255, 247, 230, 0.1);
  color: #fff7e6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease-out;
}

.as__opt:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.as__opt--lead {
  background: #5b8cf8;
  color: #17141a;
  font-weight: 700;
  transform: scale(1.06);
}

.as__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@media (max-width: 340px) {
  .as {
    width: 100%;
  }
  .as__row {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .as__chip {
    transition: none;
  }
  .as__opt {
    transition: none;
  }
}
