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

.fl {
  box-sizing: border-box;
  width: min(400px, 90vw);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.fl__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.fl__chip {
  box-sizing: border-box;
  border: 1px solid rgba(23, 20, 26, 0.4);
  background: transparent;
  color: #17141a;
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 1.4, 0.4, 1), border-color 220ms cubic-bezier(0.2, 1.4, 0.4, 1), transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.fl__chip[aria-pressed=true] {
  background: #fff7e6;
  border-color: #fff7e6;
  color: #c93000;
}

.fl__clear {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(23, 20, 26, 0.8);
  font: inherit;
  font-weight: 700;
  font-size: 11px;
  text-decoration: underline;
  padding: 8px 4px;
}

.fl__count {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #17141a;
}

.fl__count-num {
  color: #17141a;
  font-weight: 800;
}

.fl__chip.is-demo {
  animation: fl-press 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.fl__chip.is-demo:nth-child(1) {
  animation-delay: 0s;
}

.fl__chip.is-demo:nth-child(2) {
  animation-delay: 0.3s;
}

.fl__chip.is-demo:nth-child(3) {
  animation-delay: 0.6s;
}

.fl__chip.is-demo:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes fl-press {
  0%, 100% {
    transform: scale(1);
    background: transparent;
    border-color: rgba(23, 20, 26, 0.4);
    color: #17141a;
  }
  20% {
    transform: scale(1.06);
    background: #fff7e6;
    border-color: #fff7e6;
    color: #c93000;
  }
  40% {
    transform: scale(1);
    background: #fff7e6;
    border-color: #fff7e6;
    color: #c93000;
  }
}
@media (max-width: 340px) {
  .fl__chip {
    padding: 4px 12px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fl__chip.is-demo {
    animation: none !important;
  }
  .fl__chip {
    transition: none;
  }
}
