/* 마지막 장(OUTRO) — 플러스엑스 KOLON MALL 끝 장면 구성(사용자 10/20 "제일 마지막에 이거 같이"): 어두운 바탕 위 브랜드 레드 큰 카드,
   양옆 큰 조각 단어 BOX(지시) · ACK(대답), 사이에 기울인 사진 카드 넷 · 컷아웃 둘 · 알약 둘, 왼쪽 아래 로고.
   모션: 카드가 들어오는 동안 안의 조각이 각자 다른 속도로 아래에서 떠올라 제자리에(outro.js, transform 만). 멈춘 뒤엔 가만히.
   자리 = 카드 폭 기준 %(--x 왼 · --y 위 · --w 폭), 폰은 --mx · --my · --mw. 색은 브랜드 레드 #EF1B2D(로고와 같은 값, 상태색 아님) */
.outro { background: #0E0E10; padding: 20vh var(--gut-wide, 4vw) 16vh; display: grid; place-items: center; }
.oc { position: relative; width: min(100%, 1320px); aspect-ratio: 1.56; border-radius: 50px;   /* 큰 판 = 50px(개념 · 레이아웃 · HUD 비교와 같게) */ background: #EF1B2D; overflow: hidden; container-type: inline-size; }
.oc > * { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--w) * 1%); margin: 0; }
/* 조각 단어: Pretendard 800, 흰색 — 로고 캡슐 안 글자와 같은 흰색 */
.oc .ow { width: auto; font: 800 11.2cqw/0.8 var(--f); letter-spacing: -0.045em; color: #fff; z-index: 1; }
/* 사진 카드: 둥근 모서리 · 살짝 기울임 */
.oc .op { aspect-ratio: var(--ar, 4 / 5); border-radius: 2.2cqw; overflow: hidden; rotate: var(--r, 0deg); z-index: 2; box-shadow: 0 2.4cqw 4cqw -1.6cqw rgba(60, 0, 8, .45); }
.oc .op img, .oc .oo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 컷아웃(배경 없는 물건): 그림자만 */
.oc .oo { rotate: var(--r, 0deg); z-index: 3; filter: drop-shadow(0 1.6cqw 1.6cqw rgba(60, 0, 8, .4)); }
.oc .oo img { height: auto; }
/* 알약: 지시(검정, 오른쪽 화살표) · 대답(흰색, ACK 초록 점) */
.oc .opl { width: auto; z-index: 4; display: inline-flex; align-items: center; gap: .7cqw; padding: .55cqw 1.3cqw .55cqw .55cqw; border-radius: 999px; font: 700 1.25cqw/1 var(--f); letter-spacing: .01em; white-space: nowrap; }
.oc .opl i { width: 2.1cqw; height: 2.1cqw; border-radius: 50%; flex: none; display: grid; place-items: center; }
.oc .opl.cmd { background: #111214; color: #fff; }
.oc .opl.cmd i { background: #EF1B2D url(../img/outro/logo.svg) center / 78% no-repeat; }
.oc .opl.ack { background: #fff; color: #111214; }
.oc .opl.ack i { background: #03D466; }
.oc .opl.ack i::after { content: ""; width: .5cqw; height: .9cqw; border: solid #06210F; border-width: 0 .22cqw .22cqw 0; rotate: 45deg; translate: 0 -.12cqw; }
.oc .opl b { font-weight: 800; font-variant-numeric: tabular-nums; }
/* 왼쪽 아래 로고 · 한 줄 */
.oc .olg { z-index: 1; }
.oc .olg img { display: block; width: 100%; }
.oc .olg p { margin-top: .9cqw; font: 700 .95cqw/1.3 var(--f); letter-spacing: .14em; color: rgba(255, 255, 255, .78); white-space: nowrap; }

/* 모션: outro.js 가 --t(0 → 1, 카드가 아래에서 들어와 가운데쯤 올 때 1)를 칸마다 속도(--s)로 나눠 쓴다 */
.oc .om { translate: 0 calc((1 - var(--t, 1)) * var(--s, 1) * 18cqw); }
.oc.live .om { will-change: translate; }
.oc .opl { scale: var(--ps, 1); transform-origin: 0 50%; transition: scale .5s cubic-bezier(.34, 1.56, .64, 1); }
.oc .opl.ack { transform-origin: 100% 50%; }
.oc.pre .opl { --ps: 0; }

@media (max-width: 760px) {
  .outro { padding: 12vh 16px; }
  .oc { aspect-ratio: 4 / 5.6; border-radius: 22px; }
  .oc > * { left: calc(var(--mx, var(--x)) * 1%); top: calc(var(--my, var(--y)) * 1%); width: calc(var(--mw, var(--w)) * 1%); }
  .oc .ow { font-size: 19cqw; }
  .oc .opl { font-size: 2.9cqw; gap: 1.4cqw; padding: 1.1cqw 2.6cqw 1.1cqw 1.1cqw; }
  .oc .opl i { width: 4.6cqw; height: 4.6cqw; }
  .oc .opl.ack i::after { width: 1.1cqw; height: 2cqw; border-width: 0 .45cqw .45cqw 0; }
  .oc .olg p { font-size: 1.5cqw; letter-spacing: .08em; margin-top: 1.4cqw; }
  .oc .om { translate: 0 calc((1 - var(--t, 1)) * var(--s, 1) * 26cqw); }
  .oc .car { display: none; }   /* 폰: 칸이 좁아 차 컷아웃은 뺌 */
}
@media (prefers-reduced-motion: reduce) { .oc .om { translate: none; } .oc .opl { transition: none; } .oc.pre .opl { --ps: 1; } }
