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

.tq {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: min(100%, 300px);
  --row-step: 46px;
  --row-h: 40px;
}

.tq__add {
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  color: #17141a;
  background: #4cd4a6;
  cursor: pointer;
}

.tq__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: calc(var(--row-step, 46px) * 3);
}

.tq__row {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: var(--row-h, 40px);
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(calc(var(--i, 0) * var(--row-step, 46px)));
  opacity: 1;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.tq__row--out {
  opacity: 0;
  transform: translateY(calc(var(--i, 0) * var(--row-step, 46px) + 10px));
}

.tq__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4cd4a6;
  flex: 0 0 auto;
}

.tq__text {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 340px) {
  .tq {
    gap: 12px;
    --row-step: 36px;
    --row-h: 32px;
  }
  .tq__row {
    padding: 0 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tq__row {
    transition: none !important;
  }
}
