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

.ts05-timeline {
  position: relative;
  width: min(280px, 84vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ts05-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 247, 230, 0.18);
  transform: translateX(-50%);
}

.ts05-row {
  display: flex;
}
.ts05-row--l {
  justify-content: flex-start;
}
.ts05-row--r {
  justify-content: flex-end;
}

.ts05-card {
  width: 44%;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 8px;
  background: #0a4fe8;
  color: #fff7e6;
  font: 700 12px/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  opacity: 0;
}

.ts05-row--l .ts05-card {
  transform: translateX(-24px);
}

.ts05-row--r .ts05-card {
  transform: translateX(24px);
}

@supports (animation-timeline: view()) {
  .ts05-row--l .ts05-card {
    animation: ts05-in-l 2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 60%;
  }
  .ts05-row--r .ts05-card {
    animation: ts05-in-r 2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 60%;
  }
}
@supports not (animation-timeline: view()) {
  .ts05-card {
    opacity: 1;
    transform: none;
  }
}
@keyframes ts05-in-l {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes ts05-in-r {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.ts05-timeline.is-demo .ts05-row--l .ts05-card {
  animation: ts05-in-l 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ts05-timeline.is-demo .ts05-row--r .ts05-card {
  animation: ts05-in-r 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: 0.18s;
}

.ts05-timeline.is-demo .ts05-row:nth-child(3) .ts05-card {
  animation-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .ts05-card, .ts05-timeline.is-demo .ts05-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
