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

.chips {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  transition: width 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #17141a;
  white-space: nowrap;
}

.chip__label {
  color: #ffffff;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
}

.chip__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
}

@media (max-width: 340px) {
  .chip {
    padding: 4px 8px;
    gap: 4px;
  }
  .chip__label {
    font-size: 11px;
  }
  .chip__x {
    width: 14px;
    height: 14px;
  }
  .chips {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chips {
    transition: none;
  }
}
