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

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

.ti__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.18);
  border-radius: 12px;
  padding: 8px 12px;
}

.ti__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  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 220ms cubic-bezier(0.2, 1.4, 0.4, 1), opacity 220ms ease-out;
}

.ti__chip--enter {
  transform: scale(0.6);
  opacity: 0;
}

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

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

.ti__draft {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  box-sizing: border-box;
  background: rgba(255, 247, 230, 0.14);
  border: 1px dashed rgba(255, 247, 230, 0.5);
  border-radius: 999px;
  color: #fff7e6;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  width: 32px;
  transition: width 220ms ease-out;
}

.ti__draftText {
  white-space: nowrap;
}

.ti__caret {
  width: 1px;
  height: 13px;
  background: #fff7e6;
  margin-left: 4px;
  animation: tiBlink 1s steps(1, end) infinite;
}

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

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

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

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

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

@keyframes tiBlink {
  0%, 50% {
    opacity: 1;
  }
  50.01%, 100% {
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .ti {
    width: 100%;
  }
  .ti__row {
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ti__draft {
    transition: none;
  }
  .ti__chip {
    transition: none;
  }
  .ti__caret {
    animation: none;
  }
}
