html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ts {
  width: min(380px, 88vw);
  height: clamp(150px, 62vh, 216px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.ts__scroll {
  position: relative;
  height: 100%;
  overflow-y: auto;
  scroll-timeline: --ts-scroll block;
  scrollbar-width: none;
}
.ts__scroll::-webkit-scrollbar {
  display: none;
}

.ts__bg {
  position: sticky;
  top: 0;
  height: 100%;
  margin-bottom: -100%;
  background: #fff7e6;
}

@supports (animation-timeline: scroll()) {
  .ts__bg:not(.is-demo) {
    animation: ts-bg linear both;
    animation-timeline: --ts-scroll;
  }
}
@keyframes ts-bg {
  0% {
    background-color: #fff7e6;
  }
  50% {
    background-color: #b8f0d0;
  }
  100% {
    background-color: #ff9db8;
  }
}
.ts__sec {
  position: relative;
  z-index: 1;
  height: 50%;
  display: grid;
  place-items: center;
}

.ts__chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #3c4750;
  font: 700 13px/1.4 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.ts__bg.is-demo {
  animation: ts-loop 2s linear infinite;
}

@keyframes ts-loop {
  0%, 14% {
    background-color: #fff7e6;
  }
  24%, 44% {
    background-color: #b8f0d0;
  }
  54%, 90% {
    background-color: #ff9db8;
  }
  100% {
    background-color: #fff7e6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ts__bg.is-demo {
    animation: none !important;
    background-color: #fff7e6 !important;
  }
  .ts__scroll {
    scroll-behavior: auto;
  }
}
