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

.sb {
  display: flex;
  gap: 8px;
  width: min(88vw, 300px);
  height: min(56vw, 176px);
}

.sb__viewport {
  flex: 1;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.06);
}

.sb__viewport::-webkit-scrollbar {
  display: none;
}

.sb__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.sb__card {
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(23, 20, 26, 0.07);
}

.sb__cardTitle {
  margin: 0 0 2px;
  color: #17141a;
  font-weight: 700;
  font-size: 12px;
}

.sb__cardLine {
  margin: 0;
  color: rgba(23, 20, 26, 0.62);
  font-size: 10px;
  line-height: 1.4;
}

.sb__track {
  position: relative;
  width: 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
}

.sb__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #0a4fe8;
  transition: transform 220ms ease-out;
  cursor: grab;
}

.sb__thumb:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

.sb__thumbGloss {
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateY(-120%);
  pointer-events: none;
}

.sb__thumbGloss.is-sweeping {
  animation: glossSweep 520ms linear;
}

@keyframes glossSweep {
  0% {
    transform: translateY(-120%);
  }
  100% {
    transform: translateY(220%);
  }
}
@media (max-width: 340px) {
  .sb {
    width: min(94vw, 260px);
    height: 148px;
  }
  .sb__cardTitle {
    font-size: 11px;
  }
  .sb__cardLine {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sb__thumb {
    transition: none;
  }
  .sb__thumbGloss.is-sweeping {
    animation: none;
  }
}
