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

.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(255, 255, 255, 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(255, 255, 255, 0.08);
}

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

.sb__cardLine {
  margin: 0;
  color: rgba(255, 247, 230, 0.68);
  font-size: 10px;
  line-height: 1.4;
}

.sb__track {
  position: relative;
  width: 8px;
  border-radius: 999px;
  --pos: 0;
  background: linear-gradient(180deg, rgba(255, 158, 187, 0.28), rgba(110, 200, 255, 0.28) calc(var(--pos) * 100%), rgba(255, 255, 255, 0.1));
}

.sb__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-radius: 999px;
  --pos: 0;
  background: linear-gradient(#ff9ebb, #b9a0ff calc(var(--pos) * 100%), #6ec8ff);
  transition: transform 2s ease-out;
  cursor: grab;
}

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

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