/* 재생 전에는 숨겨 둡니다 */
.poster.intro .spill, .poster.intro h1 img, .poster.intro .motif, .poster.intro .spark, .poster.intro .sub, .poster.intro .actions, .poster.intro .rain img { opacity: 0; animation: none; }

/* 1) 가방이 위에서 떨어져 출렁이고, 아래로 쏟아집니다 (0 ~ 1.9s) */
.poster.intro.play .spill { opacity: 1; animation:
  bagdrop 1.15s cubic-bezier(.3,.9,.35,1) both,
  swing 5s ease-in-out 2s infinite alternate; }
@keyframes bagdrop { 0% { transform: translateY(-115%) rotate(-16deg); } 60% { transform: translateY(5%) rotate(7deg); } 80% { transform: translateY(-2%) rotate(-3deg); } 100% { transform: none; } }
@keyframes pour { from { clip-path: inset(0 0 62% 0); } to { clip-path: inset(-5% -5% -5% -5%); } }

/* 2) 구슬과 참이 입구에서 튀어나와 떨어집니다 */
.rain { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.rain img { position: absolute; left: 50%; top: 24%; width: var(--s); height: var(--s); object-fit: contain; margin: calc(var(--s) / -2); }
.poster.intro.play .rain img { animation: fall 1.7s cubic-bezier(.25,.6,.55,1) calc(.8s + var(--d)) both; }
@keyframes fall {
  0% { opacity: 0; translate: 0 0; scale: .3; rotate: 0deg; }
  12% { opacity: 1; }
  45% { translate: calc(var(--x) * .65) calc(var(--y) * .15); scale: 1.1; }
  100% { opacity: .96; translate: var(--x) var(--y); scale: 1; rotate: var(--r); }
}

/* 3) 달랑 등장 (1.7s) */
.poster.intro.play h1 img { animation: burst .9s cubic-bezier(.25,1.7,.4,1) 1.7s both; }
@keyframes burst { 0% { opacity: 0; scale: .15; rotate: -14deg; } 35% { opacity: 1; } 100% { opacity: 1; scale: 1; rotate: 0deg; } }

/* 4) 양옆 모티프 (2.4s부터 차례로) */
.motifs { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.motif { position: absolute; display: block; }
.motif img { display: block; width: 100%; filter: drop-shadow(0 12px 14px #7a0a5045); }
.motif .puff { position: static; display: inline-block; }
.poster .motif .puff { position: static; animation: none; }
.poster.intro.play .motif { animation: popin .6s cubic-bezier(.25,1.8,.45,1) calc(2.4s + var(--d)) both, bob 4.5s ease-in-out calc(3.2s + var(--d)) infinite alternate; }
.poster.intro.play .motif.m1 { animation-duration: .6s, 5.6s; }
.poster.intro.play .motif.m2 { animation-duration: .6s, 3.8s; }
@keyframes popin { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
.poster.intro.play .spark { animation: popin .4s calc(2.6s + var(--d)) both, twinkle 2.2s ease-in-out calc(3s + var(--d)) infinite; }

/* 5) 소개 문장과 버튼 */
.poster.intro.play .sub { animation: rise .6s ease-out 2.9s both; }
.poster.intro.play .actions { animation: rise .6s ease-out 3.1s both; }
@keyframes rise { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

.replay { position: absolute; right: 14px; bottom: 12px; z-index: 5; padding: 4px 14px; font-size: .8rem; font-weight: 800; color: #7a0a50; background: #ffffffc0; border: 1px solid #fff; border-radius: 99px; cursor: pointer; }

@media (max-width: 760px) { .poster .motif .puff { font-size: .68rem; padding: 5px 9px; } .rain img { width: calc(var(--s) * .65); height: calc(var(--s) * .65); } }
@media (prefers-reduced-motion: reduce) {
  .poster.intro .spill, .poster.intro h1 img, .poster.intro .motif, .poster.intro .spark, .poster.intro .sub, .poster.intro .actions { opacity: 1; animation: none !important; }
  .rain, .replay { display: none; }
}

/* 가방은 잘리지 않게 전체를 보여주고, 상단바 아래 여백을 둡니다 */
.poster.intro .spill { top: 18px; height: 70%; clip-path: none; object-fit: contain; }
@media (max-width: 760px) { .poster.intro .spill { height: 58%; } }

/* 모바일: 버튼과 안 겹치게 위쪽 모서리에 */
@media (max-width: 760px) { .replay { top: 8px; right: 8px; bottom: auto; padding: 2px 10px; font-size: .72rem; } }
