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

.vw {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  width: min(100%, 400px);
}

.vw__row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.vw__view {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: clamp(96px, 34vw, 156px);
  border-radius: 16px;
  overflow: hidden;
  background: #231f28;
  overscroll-behavior: contain;
  touch-action: pan-x;
}

.vw__view:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.vw__track {
  --i: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateY(calc(var(--i) * -100%));
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.vw__shot {
  position: relative;
  flex: 0 0 100%;
}

.vw__photo {
  position: absolute;
  inset: 0;
  display: block;
}

.vw__photo--stair {
  background: repeating-linear-gradient(196deg, rgba(23, 20, 26, 0.3) 0 10px, rgba(23, 20, 26, 0) 10px 26px), linear-gradient(160deg, #b9a0ff 4%, #0a4fe8 98%);
}

.vw__photo--curtain {
  background: repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.26) 0 6px, rgba(255, 255, 255, 0) 6px 22px), radial-gradient(44% 48% at 22% 20%, rgba(255, 210, 63, 0.74), rgba(255, 210, 63, 0) 72%), linear-gradient(168deg, #fff7e6 6%, #ff9ebb 96%);
}

.vw__photo--sign {
  background: radial-gradient(26% 22% at 74% 34%, rgba(255, 77, 31, 0.86), rgba(255, 77, 31, 0) 74%), radial-gradient(22% 20% at 28% 62%, rgba(110, 200, 255, 0.8), rgba(110, 200, 255, 0) 76%), linear-gradient(176deg, #231f28 8%, #0a4fe8 98%);
}

.vw__photo--path {
  background: linear-gradient(to right, rgba(23, 20, 26, 0.44) 0 30%, rgba(23, 20, 26, 0) 44%, rgba(23, 20, 26, 0) 56%, rgba(23, 20, 26, 0.44) 70% 100%), radial-gradient(18% 62% at 50% 96%, rgba(255, 247, 230, 0.62), rgba(255, 247, 230, 0) 74%), radial-gradient(40% 34% at 52% 18%, rgba(255, 210, 63, 0.6), rgba(255, 210, 63, 0) 76%), linear-gradient(164deg, #2b9d74 6%, #4cd4a6 98%);
}

.vw__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  font-weight: 700;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1.5;
  white-space: nowrap;
}

.vw__steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
}

.vw__step {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.34);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vw__step[aria-current=true] {
  background: #2f6df6;
  transform: scaleY(2.2);
}

.vw__step:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.vw__bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vw__nav {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 247, 230, 0.28);
  border-radius: 999px;
  background: #231f28;
  color: #fff7e6;
  font-size: 14px;
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vw__nav:hover {
  transform: scale(1.08);
}

.vw__nav:active {
  transform: scale(0.94);
}

.vw__nav:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.vw__hint {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(255, 247, 230, 0.78);
  font-weight: 500;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1.4;
}

@media (max-width: 340px) {
  .vw__row {
    gap: 8px;
  }
  .vw__cap {
    left: 8px;
    bottom: 8px;
    padding: 0 8px;
  }
  .vw__nav {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .vw__hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vw__track, .vw__nav, .vw__step {
    transition: none;
  }
}
