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

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

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

.tp__input {
  flex: 1 1 100px;
  min-width: 60px;
  border: none;
  background: transparent;
  color: #fff7e6;
  font-size: 12px;
  outline: none;
}

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

.tp__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;
  animation-duration: 600ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
}

.tp__chip--enter {
  animation-name: tpChipIn;
  animation-delay: calc(var(--i, 0) * 90ms);
}

.tp__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;
}

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

.tp__meta {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 247, 230, 0.72);
}

.tp__meta b {
  color: #fff7e6;
  font-weight: 700;
}

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

@keyframes tpChipIn {
  0% {
    transform: scale(0.4) translateY(6px);
    opacity: 0;
  }
  60% {
    transform: scale(1.08) translateY(0);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
@media (max-width: 340px) {
  .tp {
    width: 100%;
  }
  .tp__row {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tp__chip--enter {
    animation: none;
  }
}
