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

.pvt {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  aspect-ratio: 480/300;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #fff7e6;
}

.pvt__rail {
  flex: 0 0 auto;
  height: 17%;
  overflow: hidden;
  background: #17141a;
  padding: 4px 0;
  box-sizing: border-box;
}

.pvt__track {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  height: 100%;
  will-change: transform;
}

.pvt__thumb {
  flex: 0 0 auto;
  width: 15%;
  min-width: 34px;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #fff7e6;
  padding: 4px;
  box-sizing: border-box;
  cursor: pointer;
}
.pvt__thumb--active {
  border-color: #5b8cf8;
}

.pvt__miniTitle {
  height: 3px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.32);
  margin-bottom: 4px;
}

.pvt__miniLine {
  height: 2px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.16);
  margin-top: 4px;
}

.pvt__doc {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px;
  box-sizing: border-box;
  scrollbar-width: none;
}
.pvt__doc::-webkit-scrollbar {
  display: none;
}

.doc__page {
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 6px rgba(23, 20, 26, 0.1);
}

.doc__title {
  height: 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.32);
  margin-bottom: 4px;
}

.doc__line {
  height: 5px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.16);
  margin-top: 4px;
}

.doc__fig {
  height: 30px;
  border-radius: 8px;
  margin-top: 4px;
  background: rgba(47, 109, 246, 0.18);
}

.pvt__badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

@media (max-width: 340px) {
  .pvt__badge {
    font-size: 9px;
    padding: 4px 8px;
  }
  .doc__page {
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pvt__doc {
    scroll-behavior: auto;
  }
}
