/* 접속 기록 움직임 — access-log-motion.js 가 body 에 alm(움직여도 됨) · alm-in 을, 칸마다 alm-grow · alm-light · alm-rows · alm-bump · alm-tap · alm-pop · alm-more 를 붙이고 뗀다.
   ① 네 칸 톡 · 열쇠 돌림 · 사람 카드 · 출석 칸 · 시간대 막대 · 확인할 것 · 자물쇠  ② 기간 바꾸면 숫자 톡 · 막대 · 출석 다시
   ③ 사람 고르기 톡 · 칩 톡 · 줄 차례로  ④ 날 카드 · 얼굴 차례로 · 새 기기 반짝  ⑤ 더 보기 새 줄만.  움직임 줄이기면 alm 이 붙지 않는다. 글자는 바꾸지 않는다. */
body { --alm-ease: cubic-bezier(.22, 1, .36, 1); --alm-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* ① */
body.alm.alm-in #stats .stat { animation: alm-pop .5s var(--alm-spring) both; animation-delay: calc(var(--i, 0) * .08s); }
body.alm.alm-in #stats .stat:first-child .sv-ic svg { animation: alm-key 1s var(--alm-ease) both; animation-delay: .45s; }
body.alm.alm-in #summary .who { animation: alm-rise .45s var(--alm-ease) both; animation-delay: calc(.2s + var(--i, 0) * .05s); }
body.alm.alm-in #watch .w { animation: alm-row .45s var(--alm-ease) both; animation-delay: calc(.3s + var(--i, 0) * .06s); }
body.alm.alm-in #watch .w.lock .wic svg { animation: alm-jiggle .6s ease-in-out 2; animation-delay: .9s; }
/* ① ② 출석 칸 · 시간대 막대 */
body.alm #attend.alm-light .g i.on { animation: alm-on .35s var(--alm-spring) both; animation-delay: calc(.2s + var(--k, 0) * .045s); }
body.alm #hours.alm-grow i { transform-origin: 50% 100%; animation: alm-grow .5s var(--alm-spring) both; animation-delay: calc(.2s + var(--i, 0) * .025s); }
body.alm #stats.alm-bump .stat b { display: inline-block; transform-origin: 0 70%; animation: alm-bump .5s var(--alm-spring) both; }
/* ③ ④ 내역 */
body.alm #summary .who.alm-tap { animation: alm-tap .45s var(--alm-spring) both; }
body.alm #whoChip.alm-pop { animation: alm-pop .4s var(--alm-spring) both; }
body.alm #body.alm-rows > .dcard { animation: alm-rise .45s var(--alm-ease) both; animation-delay: calc(var(--i, 0) * .07s); }
body.alm #body.alm-rows .lrow { animation: alm-row .4s var(--alm-ease) both; animation-delay: calc(.1s + var(--i, 0) * .07s + var(--r, 0) * .035s); }
body.alm #body.alm-rows .faces .face { animation: alm-pop .4s var(--alm-spring) both; animation-delay: calc(.25s + var(--i, 0) * .07s + var(--f, 0) * .06s); }
body.alm #body.alm-rows .lrow.new .alp { animation: alm-shine 1.2s ease-out both; animation-delay: .8s; }
/* ⑤ */
body.alm #body .lrow.alm-more { animation: alm-row .4s var(--alm-ease) both; animation-delay: calc(var(--m, 0) * .04s); }

@keyframes alm-pop { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes alm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes alm-row { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes alm-key { 0% { transform: rotate(0); } 50% { transform: rotate(-90deg); } 70% { transform: rotate(-80deg); } 100% { transform: rotate(0); } }
@keyframes alm-jiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes alm-on { 0% { transform: scale(.3); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes alm-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes alm-bump { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: none; } }
@keyframes alm-tap { 0% { transform: scale(1); } 40% { transform: scale(.95); } 100% { transform: none; } }
@keyframes alm-shine { 0% { filter: brightness(1); } 30% { filter: brightness(1.7); transform: scale(1.08); } 100% { filter: none; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #stats .stat, #stats svg, #stats b, #summary .who, #watch .w, #watch svg, #attend i, #hours i, #whoChip, #body .dcard, #body .lrow, #body .face, #body .alp { animation: none !important; }
}
@media print { #stats .stat, #summary .who, #hours i, #body .dcard, #body .lrow { animation: none !important; } }
