/* 모돈 자료 점검 움직임 — sow-consistency-motion.js 가 body 에 smc(움직여도 됨)를, 칸마다 smc-hunt · smc-in · smc-cards · smc-new · smc-num · smc-sel · smc-drop 을 붙이고 뗀다.
   ① 단추 아이콘 휘젓기  ② 세 칸 차례로 · 확실 칸 흔들림  ③ 카드 · 어긋난 줄 차례로 · 확실 줄 빨간 띠 · 이상 없음 ✓  ④ 지금 값에 줄 · 이력대로 값 밀려 들어옴
   ⑤ 거른 칸 빛 · 카드 다시 · 알림 줄  ⑥ 다음 쪽 새 카드만 · 바뀐 숫자 톡.
   움직임 줄이기면 smc 가 붙지 않는다. 글자는 바꾸지 않는다. 계속 도는 움직임은 없다 (확실 칸 빛은 원래 화면 것). */
body { --smc-ease: cubic-bezier(.22, 1, .36, 1); --smc-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* ① */
body.smc .smc-hunt { animation: smc-hunt .8s ease-in-out both; }
/* ② */
body.smc #scNow.smc-in .sc-t { animation: smc-rise .5s var(--smc-ease) both; animation-delay: calc(var(--i, 0) * .1s); }
body.smc #scNow.smc-in .sc-t .ic { animation: smc-pop .5s var(--smc-spring) both; animation-delay: calc(.2s + var(--i, 0) * .1s); }
body.smc #scNow.smc-in .sc-t.hot { animation: smc-rise .5s var(--smc-ease) both, smc-shake .5s ease-in-out .6s both; }
body.smc #scNow .sc-t b.smc-num { display: inline-block; animation: smc-roll .5s var(--smc-spring) both; }
/* ③ 카드 · 어긋난 줄 */
body.smc #out:is(.smc-cards) .sow, body.smc #out .sow.smc-new { animation: smc-rise .45s var(--smc-ease) both; animation-delay: calc(.25s + var(--i, 0) * .1s); }
body.smc #out:is(.smc-cards) .iss, body.smc #out .sow.smc-new .iss { animation: smc-in-l .4s var(--smc-ease) both; animation-delay: calc(.45s + var(--i, 0) * .1s + var(--k, 0) * .08s); }
body.smc #out:is(.smc-cards) .iss.sure, body.smc #out .sow.smc-new .iss.sure { animation: smc-in-l .4s var(--smc-ease) both, smc-shake .45s ease-in-out both; animation-delay: calc(.45s + var(--i, 0) * .1s + var(--k, 0) * .08s), calc(.9s + var(--i, 0) * .1s + var(--k, 0) * .08s); }
body.smc #out:is(.smc-cards) .sow[data-clean] .vp.g, body.smc #out .sow.smc-new[data-clean] .vp.g { display: inline-block; animation: smc-pop .45s var(--smc-spring) both; animation-delay: calc(.6s + var(--i, 0) * .1s); }
/* ④ 지금 → 이력대로 */
body.smc #out:is(.smc-cards) .dt .now, body.smc #out .sow.smc-new .dt .now { text-decoration-line: line-through; text-decoration-thickness: 2px;
  animation: smc-strike 1.4s var(--smc-ease) both; animation-delay: calc(.8s + var(--i, 0) * .1s + var(--k, 0) * .08s); }
body.smc #out:is(.smc-cards) .dt .want, body.smc #out .sow.smc-new .dt .want { animation: smc-in-r .45s var(--smc-ease) both; animation-delay: calc(1s + var(--i, 0) * .1s + var(--k, 0) * .08s); }
body.smc #out .dt { overflow-x: clip; }
/* ⑤ (고른 칸은 그림자가 고른 표시라 outline 으로) */
body.smc #scNow .sc-t.smc-sel { animation: smc-ring 1s ease-out both; }
body.smc #scOnly.smc-drop { animation: smc-drop .45s var(--smc-spring) both; }

@keyframes smc-rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes smc-drop { from { opacity: 0; translate: 0 -10px; } to { opacity: 1; translate: 0 0; } }
@keyframes smc-in-l { from { opacity: 0; translate: -14px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes smc-in-r { from { opacity: 0; translate: 16px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes smc-pop { 0% { opacity: 0; scale: .6; } 60% { opacity: 1; scale: 1.1; } 100% { opacity: 1; scale: 1; } }
@keyframes smc-roll { from { opacity: 0; translate: 0 60%; } to { opacity: 1; translate: 0 0; } }
@keyframes smc-shake { 0%, 100% { translate: 0 0; } 20%, 60% { translate: -4px 0; } 40%, 80% { translate: 4px 0; } }
@keyframes smc-strike { 0% { text-decoration-color: transparent; } 35%, 75% { text-decoration-color: currentColor; } 100% { text-decoration-color: transparent; } }   /* 값에 줄이 그어졌다 걷힌다 (값 모양은 그대로) */
@keyframes smc-hunt { 0% { rotate: 0deg; } 25% { rotate: -18deg; } 50% { rotate: 14deg; } 75% { rotate: -8deg; } 100% { rotate: 0deg; } }
@keyframes smc-ring { 0% { outline: 2px solid var(--c, var(--accent)); outline-offset: 0; } 100% { outline: 2px solid transparent; outline-offset: 10px; } }

@media (prefers-reduced-motion: reduce) {
  #scNow .sc-t, #scNow .ic, #scNow b, #scOnly, #out .sow, #out .iss, #out .vp, #out .dt span, #main button svg { animation: none !important; }
}
@media print { #scNow .sc-t, #out .sow, #out .iss, #out .dt span { animation: none !important; } }
