/* ---------- 포스터 덱 — 밀어서 다음 장 ---------- */
.deck {
  position: relative;
  aspect-ratio: var(--poster);
  height: 100%;
  overflow: hidden;
  background: var(--stage);
  --split: 0%;
  cursor: ew-resize;
  touch-action: pan-y;
}

.deck img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 아래 장은 항상 깔려 있고, 위 장을 오른쪽으로 벗겨낸다 */
.deck-under { z-index: 1; }
.deck-top {
  z-index: 2;
  clip-path: inset(0 0 0 var(--split));
}

.deck-edge {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 1px;
  background: rgba(251,250,248,.85);
  pointer-events: none;
  z-index: 3;
  transition: opacity .2s;
}
.deck-edge::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  border: 1px solid rgba(251,250,248,.85);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(12,13,15,.35);
}
.deck-edge::before {
  content: '›';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-45%, -52%);
  z-index: 1;
  font-size: 20px;
  line-height: 1;
  color: rgba(251,250,248,.9);
}

.deck-range {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  margin: 0;
  cursor: ew-resize;
  z-index: 4;
}

.deck-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}
.deck-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(251,250,248,.35);
  transition: background .25s, transform .25s;
  pointer-events: auto;
  cursor: pointer;
}
.deck-dots span.on { background: rgba(251,250,248,.95); transform: scale(1.25); }

.deck-hint {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: rgba(251,250,248,.6);
  pointer-events: none;
  transition: opacity .3s;
}
.deck:hover .deck-hint { opacity: 0; }
