/* 말틈 · 등장 애니메이션 손질 · 홈 배너 넘김 · 누르는 목록 칸 (2026-11-26, js/routes/motion.js?v=8b36bc0-202611271755)
 * 새 움직임은 넣지 않는다. 화면 판에 이미 있던 등장(.pop · .drop · .rise)만 「보이게」 고친다:
 *   - 화면이 바뀐 뒤 첫 그림이 실제로 화면에 나온 다음(두 프레임 뒤)부터 재생한다(그 전에는 멈춰 둔다)
 *   - 짧은 시작 지연 · 조금 긴 재생 · 칸마다 순서대로 들어오는 간격
 * 값은 아래 변수 한 곳에서 고친다. prefers-reduced-motion이면 mz-base.css의 규칙이 모두 끈다. */
:root {
  --mz-in-delay: 110ms;       /* 화면이 바뀐 뒤 등장이 시작되기까지 */
  --mz-in-dur: 480ms;         /* 등장 한 번의 길이(판 원래 값 .25s → .48s) */
  --mz-in-step: 75ms;         /* 칸마다 순서대로 들어오는 간격 */
  --mz-in-ease: cubic-bezier(.2, .8, .2, 1);
  --mz-in-y: 10px;            /* 등장할 때 아래에서 올라오는 거리 */
  --mz-arrow-hide: 1.5s;      /* 배너 화살표: 손을 뗀 뒤 사라지기까지(js에서 읽음) */
}

/* ───── 등장 ───── */
@keyframes mzIn { from { opacity: 0; transform: translateY(var(--mz-in-y)) scale(.94); } to { opacity: 1; transform: none; } }
#app.mz-entering .pop { animation: mzIn var(--mz-in-dur) var(--mz-in-ease) both; animation-delay: calc(var(--mz-in-delay) + var(--mz-i, 0) * var(--mz-in-step)); }
#app.mz-entering .drop, #app.mz-entering .rise { animation-duration: var(--mz-in-dur); animation-delay: calc(var(--mz-in-delay) + var(--mz-i, 0) * var(--mz-in-step)); animation-fill-mode: both; }
/* 첫 그림이 화면에 나오기 전에는 멈춰 둔다(숨은 채로 재생이 끝나 버리지 않게) */
#app.mz-hold .pop, #app.mz-hold .drop, #app.mz-hold .rise { animation-play-state: paused; }

/* ───── 홈 배너: 점 누르는 범위 · 좌우 화살표 ───── */
.mz-dots { gap: 14px !important; }
.mz-dot { position: relative; }
.mz-dot::before { content: ""; position: absolute; left: -7px; right: -7px; top: -19px; bottom: -19px; }   /* 보이는 점은 그대로, 누르는 범위만 44px 높이 · 점 사이 간격만큼 */
.mz-hero-arrow { width: 48px !important; z-index: 2; pointer-events: none; }
.mz-hero-arrow::after {
  content: ""; position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  background: rgba(23, 28, 42, .38) no-repeat center / 16px 16px; opacity: 0; transition: opacity .18s ease;
}
.mz-hero-arrow.prev::after { left: 8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E"); }
.mz-hero-arrow.next::after { right: 8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"); }
.mz-hero-arrow.next { pointer-events: auto; }   /* 오른쪽 끝 누르기 넘김은 원래대로(왼쪽은 숨었을 때 글 · 단추를 가리지 않게 막아 둔다) */
[data-mz-hero].mz-arrows-on .mz-hero-arrow { pointer-events: auto; }
[data-mz-hero].mz-arrows-on .mz-hero-arrow::after { opacity: 1; }
.mz-hero-arrow:focus-visible::after { opacity: 1; outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* ───── 누르는 목록 칸(라운지 글 카드 등): 칸 전체가 눌리는 표시 · 글자 긁힘 막기 ───── */
.mz-hit { cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .mz-hit:hover { background-color: rgba(51, 80, 138, .045) !important; } }
.mz-hit:active { background-color: rgba(51, 80, 138, .09) !important; }
.mz-hit:focus-visible { outline: 2px solid #33508A; outline-offset: 2px; }
#app a:not([href]), #app [role="button"], #app [role="tab"], #app [role="switch"] { cursor: pointer; }
