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

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

.rb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.rb__view {
  position: relative;
  width: min(228px, 84vw);
  height: 132px;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  touch-action: none;
  cursor: grab;
}

.rb__view:active {
  cursor: grabbing;
}

.rb__view:focus-visible {
  outline: 3px solid rgba(23, 20, 26, 0.5);
  outline-offset: 2px;
}

.rb__inner {
  transition: transform 600ms cubic-bezier(0.2, 1.4, 0.4, 1);
  will-change: transform;
}

.rb__row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(23, 20, 26, 0.07);
  background: #fff;
}

.rb__row strong {
  flex: 1;
  font-size: 12px;
  line-height: 14px;
  font-weight: 700;
  color: #17141a;
}

.rb__row time {
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.72);
}

.rb__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d1f;
}

.rb__dot--pink {
  background: #ff9ebb;
}

.rb__dot--blue {
  background: #2f6df6;
}

.rb__dot--lilac {
  background: #b9a0ff;
}

.rb__end {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  background: #17141a;
  color: #fff7e6;
  font-size: 10px;
  line-height: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 220ms steps(1, end);
  pointer-events: none;
}

.rb__end--top {
  top: 0;
}

.rb__end--bottom {
  bottom: 0;
  transform: translateY(100%);
}

.rb__end.is-on {
  opacity: 1;
}

.rb__hint {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.72);
}

.rb.is-demo .rb__inner {
  animation: rb-band 2s infinite;
}

@keyframes rb-band {
  0%, 8% {
    transform: translateY(0);
  }
  22% {
    transform: translateY(13px);
  }
  30% {
    transform: translateY(-5px);
  }
  36%, 46% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-13px);
  }
  68% {
    transform: translateY(5px);
  }
  74%, 100% {
    transform: translateY(0);
  }
}
.rb.is-demo .rb__end {
  transition: none;
}

.rb.is-demo .rb__end--top {
  animation: rb-endt 2s steps(1, end) infinite;
}

.rb.is-demo .rb__end--bottom {
  animation: rb-endb 2s steps(1, end) infinite;
}

@keyframes rb-endt {
  0%, 21% {
    opacity: 0;
  }
  22%, 34% {
    opacity: 1;
  }
  35%, 100% {
    opacity: 0;
  }
}
@keyframes rb-endb {
  0%, 59% {
    opacity: 0;
  }
  60%, 72% {
    opacity: 1;
  }
  73%, 100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rb.is-demo .rb__inner,
  .rb.is-demo .rb__end {
    animation: none !important;
  }
  .rb__inner {
    transition: none;
  }
}
