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

.ptr {
  width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.ptr__view {
  box-sizing: border-box;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  touch-action: none;
}

.ptr__zone {
  --pull-px: 0px;
  box-sizing: border-box;
  padding: 12px;
  transform: translateY(var(--pull-px));
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ptr__zone.is-dragging {
  transition: none;
}

.ptr__indicator {
  display: flex;
  justify-content: center;
  height: 28px;
  margin-bottom: 4px;
  opacity: 0;
}

.ptr__spinner {
  --spin-deg: 0deg;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #b9a0ff;
  transform: rotate(var(--spin-deg));
}

.ptr__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ptr__row {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
}
.ptr__row.is-swept::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(185, 160, 255, 0.38), transparent);
  transform: translateX(-140%);
  animation-name: ptrSweep;
  animation-duration: 600ms;
  animation-timing-function: ease-out;
}

.ptr__value {
  color: #5b8cf8;
}

@keyframes ptrSweep {
  to {
    transform: translateX(140%);
  }
}
.ptr__hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 11px;
}

@media (max-width: 340px) {
  .ptr {
    gap: 4px;
  }
  .ptr__view {
    height: 130px;
  }
  .ptr__row {
    padding: 4px 8px;
    font-size: 11px;
  }
  .ptr__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ptr__zone {
    transition: none;
  }
  .ptr__row.is-swept::after {
    animation: none;
    opacity: 0;
  }
}
