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

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.fc {
  box-sizing: border-box;
  width: min(248px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.fc__chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 22px;
}

.fc__chips li[hidden] {
  display: none;
}

.fc__chip {
  position: relative;
  height: 22px;
  margin: 0;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(23, 20, 26, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #17141a;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transform-origin: left center;
}

.fc__chip:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.fc__x {
  font-size: 11px;
  line-height: 1;
  color: rgba(23, 20, 26, 0.72);
}

.fc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fc__panel {
  position: relative;
  box-sizing: border-box;
  height: 88px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  overflow: hidden;
}

.fc__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc__rows[hidden] {
  display: none;
}

.fc__row {
  height: 20px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 600;
}

.fc__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.fc__empty[hidden] {
  display: none;
}

.fc__icon {
  display: block;
  font-size: 26px;
  line-height: 0;
  color: rgba(23, 20, 26, 0.62);
}

.fc__msg {
  margin: 0;
  font-size: 10px;
  line-height: 12px;
  font-weight: 700;
}

.fc__clear {
  height: 22px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.fc__clear:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.fc.is-demo .fc__chip {
  animation: fc-off 2s steps(1, end) infinite;
}

.fc.is-demo li:nth-child(2) .fc__chip {
  animation-delay: 180ms;
}

.fc.is-demo li:nth-child(3) .fc__chip {
  animation-delay: 360ms;
}

@keyframes fc-off {
  0%, 32% {
    opacity: 1;
    transform: scaleX(1);
  }
  33%, 74% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  75%, 100% {
    opacity: 1;
    transform: scaleX(1);
  }
}
.fc.is-demo .fc__clear {
  animation: fc-call 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes fc-call {
  0%, 44% {
    transform: translateY(4px) scale(0.86);
    opacity: 0;
  }
  58%, 70% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  84%, 100% {
    transform: translateY(4px) scale(0.86);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fc.is-demo .fc__chip,
  .fc.is-demo .fc__clear {
    animation: none !important;
  }
}
