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

.wrap {
  width: 280px;
  display: grid;
  gap: 8px;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.headTitle {
  color: #17141a;
  font-size: 13px;
  font-weight: 700;
}

.rewindBtn {
  appearance: none;
  border: none;
  background: rgba(23, 20, 26, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #17141a;
  cursor: pointer;
}
.rewindBtn svg {
  width: 15px;
  height: 15px;
}
.rewindBtn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  min-height: 40px;
}

.timelineLine {
  position: absolute;
  left: 5px;
  width: 2px;
  background: #5b8cf8;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 220ms ease-out, height 220ms ease-out;
}

.entry {
  position: relative;
  display: grid;
  grid-template-columns: 12px auto 1fr;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.entry.in {
  opacity: 1;
  transform: translateX(0);
}
.entry.out {
  opacity: 0;
  transform: translateX(6px);
  transition-duration: 220ms;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2f6df6;
}

.entryTime {
  color: rgba(23, 20, 26, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.entryText {
  color: #17141a;
  font-size: 12px;
}

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

@media (max-width: 340px) {
  .wrap {
    width: 220px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .timelineLine {
    transition: none !important;
  }
  .entry {
    transition: none !important;
  }
}
