/* motion.css — 구멍이 움직이는 사진. 공통 색·버튼은 app.css, 머리글·제목은 thumb.css 를 그대로 쓴다. */
.mo-wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 32px; }
.mo-wrap * { min-width: 0; }
.mo-hero { padding-bottom: 24px; }
.mo-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px 16px; margin-bottom: 12px; }
.mo-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.mo-h h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); }
.mo-s { font-size: 14px; font-weight: 600; color: var(--ink-faint); white-space: nowrap; }
.mo-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-faint); }

.mo-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 420px) { .mo-photos { grid-template-columns: repeat(3, 1fr); } }
.mo-ph { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #f2f4f6; }
.mo-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-ph-n { position: absolute; left: 6px; top: 6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgba(17,24,39,.72); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
/* 작은 사진 위 버튼도 손가락 닿는 영역은 44px */
.mo-ph-x, .mo-ph-mv { position: absolute; width: 44px; height: 44px; border: 0; padding: 0; background: none; display: grid; place-items: center; color: #fff; }
.mo-ph-x { right: 0; top: 0; }
.mo-ph-mv { left: 0; bottom: 0; }
.mo-ph-x svg, .mo-ph-mv svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: rgba(17,24,39,.72); box-sizing: border-box; }
.mo-add { aspect-ratio: 1; border: 2px dashed #c7d6f7; border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--primary); }
.mo-add:hover { background: #f8fbff; border-color: var(--primary); }
.mo-add span { font-size: 26px; font-weight: 700; line-height: 1; }
.mo-add b { font-size: 14px; font-weight: 800; }
.mo-add small { font-size: 12px; color: var(--ink-faint); font-weight: 600; }
.mo-photos:has(.mo-ph) .mo-add span { font-size: 22px; }

.mo-stage { border-radius: 16px; overflow: hidden; background: #f7f8fa; border: 1px solid var(--border); }
.mo-stage canvas { display: block; width: 100%; height: auto; }

.mo-opt { margin-top: 16px; }
.mo-opt-l { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.mo-seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #f2f4f6; }
.mo-seg button { flex: 1; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(17,24,39,.12); }
.mo-go { flex: 1; }
/* 아래 버튼을 위 카드 폭(560px)에 맞춰 가운데로 */
.motion-body .bottom-in, .motion-body.thumb-body .bottom-in { max-width: 560px; padding: 12px 16px; justify-content: center; }

/* 상세페이지 위 창으로 열렸을 때 */
.mo-embed .top, .mo-embed .mo-hero { display: none; }
.mo-embed .mo-wrap { padding-top: 16px; }
.mo-embed body { --top-h: 0px; }
