/* 마지막 장(OUTRO) 모션 더하기 — 사용자 10/20 "얘도 레퍼런스처럼 모션 있게"(플러스엑스 KOLON MALL 끝 장면)
   outro.css · outro.js(다른 세션: 스크롤에 붙어 조각이 각자 속도로 떠오름, --t 0 → 1)는 그대로 두고 그 위에 얹는다:
   ① 들어올 때: 카드가 살짝 작게 → 제 크기, 조각은 더 기울어 있다가 제 각도로, BOX 는 왼쪽 · ACK 는 오른쪽에서 밀려 들어옴
   ② 자리 잡은 뒤: 조각마다 다른 주기로 천천히 둥실(멈춘 화면이 되지 않게) + 마우스 쪽으로 깊이마다 다르게 따라옴(outro-motion.js 가 --px · --py)
   ③ 알약: BOX THIS LAP 먼저 → 0.6초 뒤 ACK 가 튀어나오며 +0.0s → +2.6s 로 셈(지시 → 대답 순서) */
.oc { scale: calc(.93 + .07 * var(--t, 1)); }
.oc .op.om, .oc .oo.om { rotate: calc(var(--r, 0deg) + (1 - var(--t, 1)) * var(--s, 1) * 7deg); }
.oc .ow.om { translate: calc((1 - var(--t, 1)) * var(--dx, 0) * 1cqw) calc((1 - var(--t, 1)) * var(--s, 1) * 18cqw); }
.oc .ow.om:nth-child(1) { --dx: -34; }
.oc .ow.om:nth-child(2) { --dx: 34; }

/* 둥실 + 마우스 깊이: transform 만(translate · rotate · scale 과 따로 합쳐짐). 깊이 --d 는 속도 --s 와 같은 순서(가까운 것일수록 많이) */
.oc .om { --d: calc(var(--s, 1) * .9); animation: ocFloat var(--fp, 7s) ease-in-out var(--fd, 0s) infinite; }
.oc .om:nth-child(3n)   { --fp: 6.2s; --fd: -1.4s; }
.oc .om:nth-child(3n+1) { --fp: 7.6s; --fd: -3.1s; }
.oc .om:nth-child(3n+2) { --fp: 8.8s; --fd: -5.2s; }
.oc .ow.om, .oc .olg.om { --fa: .25; }
@keyframes ocFloat {
  0%, 100% { transform: translate(calc(var(--px, 0) * var(--d) * 1cqw), calc(var(--py, 0) * var(--d) * 1cqw)); }
  50%      { transform: translate(calc(var(--px, 0) * var(--d) * 1cqw), calc(var(--py, 0) * var(--d) * 1cqw - var(--fa, .7) * 1cqw)); }
}
.oc:not(.live) .om { animation-play-state: paused; }

/* 알약 순서: ACK 는 BOX 뒤에 */
.oc:not(.pre) .opl.ack { transition-delay: .6s; }

@media (max-width: 760px) {
  .oc .ow.om { translate: calc((1 - var(--t, 1)) * var(--dx, 0) * 1cqw) calc((1 - var(--t, 1)) * var(--s, 1) * 26cqw); }
}
@media (prefers-reduced-motion: reduce) {
  .oc { scale: none; } .oc .om { animation: none; } .oc .ow.om { translate: none; }
  .oc .op.om, .oc .oo.om { rotate: var(--r, 0deg); }
}
