
/* ===== 작업 Y · 1번 ~ 3번(D-477 ⑫ · D-479 ⑫ · D-284): 벼락치기 까망 그림 (uiy.css · uiy.js · uiy_html.py) ===== */
/* 상자: 까망이(부품) + 옷 · 장신구. 색은 부품 색 변수(--kkm-*)와 아래 --kyc-* 만 쓴다 */
.kyc { position: relative; display: inline-block; vertical-align: middle; flex: none;
  --kyc-c0: #FFFFFF; --kyc-c1: #F8F7F4; --kyc-c2: #E6E3EB; --kyc-fold: #CDC8D8; --kyc-fold-hi: #FFFFFF; --kyc-line: #514A6C;
  --kyc-g1: #FFD45A; --kyc-g2: #E3A529; --kyc-g3: #8F6210; --kyc-ghi: #FFF6CC;
  --kyc-flash1: #FFFBE6; --kyc-flash2: #FFD54A;
  --kyc-shade: #140F28; --kyc-zap: #FFF3B8;
  --kyc-bolt: #FFE83A; --kyc-bolt-edge: #F4B400; --kyc-bolt-core: #FFFCE0; --kyc-bolt-glow: #FFE24A;
  --kyc-xray: #0A1236; --kyc-xray-edge: #3D7BFF; --kyc-bone: #E4F2FF; --kyc-bone-glow: #7CC0FF; --kyc-soot: #1E140C; --kyc-burn: #5A3A1E; --kyc-smoke: #8D8A96; --kyc-tear: #3B2A46;
  --kyc-blush: #FF4F6E; }
:root[data-mode="dark"] .kyc:not([data-kyc-mode="light"]), .kyc[data-kyc-mode="dark"] {
  --kyc-c0: #F7F6F3; --kyc-c1: #E9E7E3; --kyc-c2: #CDC8D4; --kyc-fold: #A9A3B9; --kyc-fold-hi: #FFFFFF; --kyc-line: #3E3858;
  --kyc-shade: #07050F; }
.kyc-kk { position: absolute; inset: 0; display: block; }
.kyc-kk > .kkm { width: 100% !important; height: 100% !important; }
/* 머리털(6번): 부품 뒷머리 깃 층을 그대로 쓴다(꼴만 uiy.js가 바꿈, 빛깔 · 표정 움직임은 부품 그대로) */
/* 천 */
.kyc-cloth-l { fill: none; stroke: var(--kyc-line); stroke-width: .9; stroke-linejoin: round; }
.kyc-fold { fill: var(--kyc-fold); opacity: .3; }
.kyc-fold-hi { fill: none; stroke: var(--kyc-fold-hi); stroke-width: .6; stroke-linecap: round; opacity: .85; }
.kyc-top-sh { fill: var(--kyc-fold); opacity: .4; }
.kyc-top-hi { fill: none; stroke: var(--kyc-fold-hi); stroke-width: .7; stroke-linecap: round; }
.kyc-wsh { fill: var(--kyc-fold); opacity: .45; }
.kyc-hem1 { fill: none; stroke: var(--kyc-g2); stroke-width: .8; }
.kyc-tipf { stroke-width: 1.1; }   /* 9번: 꼬리 끝 깃(작은 잎이 테에 묻히지 않게 부품 꼬리 테 1.6보다 가늘게) */
.kyc-hem2 { fill: none; stroke: var(--kyc-g2); stroke-width: .7; }
.kyc-belt-o { fill: none; stroke: var(--kyc-g3); stroke-width: 1.5; stroke-linecap: round; }
.kyc-belt { fill: none; stroke: var(--kyc-g1); stroke-width: .8; stroke-linecap: round; }
.kyc-cord { fill: none; stroke: var(--kyc-g2); stroke-width: .5; stroke-linecap: round; }
/* 금빛 장신구 */
.kyc-gold { fill: var(--kyc-g1); stroke: var(--kyc-g3); stroke-width: .5; stroke-linejoin: round; }
.kyc-bro { stroke-width: .6; }
.kyc-bro-ring { fill: none; stroke: var(--kyc-g2); stroke-width: .4; }
.kyc-bro-bolt { fill: var(--kyc-g3); }
.kyc-gold-hi { fill: none; stroke: var(--kyc-ghi); stroke-width: .5; stroke-linecap: round; }
.kyc-star { fill: var(--kyc-flash1); }
.kyc-aura { opacity: .3; }   /* 브로치가 늘 옅게 비추는 빛 */
/* 작은 크기 판(48px 이하): 테를 굵게 */
.kyc-sm .kyc-cloth-l { stroke-width: 1.3; }
.kyc-sm .kyc-hem1 { stroke-width: 1.3; }
.kyc-sm .kyc-belt-o { stroke-width: 2; } .kyc-sm .kyc-belt { stroke-width: 1.1; }
.kyc-sm .kyc-fold { opacity: .38; }
/* 움직임: 모두 6.4초 한 바퀴(번쩍 6.4 · 번개 장식 3.2×2 · 숨쉬기 3.2×2) */
.kyc .kkm-move, .kyc .kkm-tuft { animation-duration: 3.2s !important; }   /* 6번: 부품 머리털이 보이므로 머리털 늦게 따라옴도 같은 길이 */
.kyc .kyc-charm { animation: kycCharm 3.2s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes kycCharm { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
/* 번쩍: 6.4초마다 두 번 깜빡(0.5초). 첫 번쩍은 그린 뒤 6.4초(작업 X 콰광 0 ~ 1.1초와 겹치지 않음) */
.kyc-flash { opacity: 0; animation: kycFlash 6.4s linear 1.2s infinite; }
.kyc-gold-on { fill: var(--kyc-ghi); opacity: 0; animation: kycGoldOn 6.4s linear 1.2s infinite; }   /* 45번: 브로치 · 끈 장식이 반짝일 때 같은 꼴의 밝은 금 겹(테두리 같음)의 투명도만 바꿈. 전에는 fill을 바꿔(kycGold) 쉬는 동안에도 매 프레임 스타일 · 배치를 다시 셈 */
@keyframes kycFlash { 0%, 80% { opacity: 0; } 81% { opacity: 1; } 82.5% { opacity: .2; } 84% { opacity: 1; } 89%, 100% { opacity: 0; } }
@keyframes kycGoldOn { 0%, 80% { opacity: 0; } 81%, 84% { opacity: 1; } 89%, 100% { opacity: 0; } }
/* 선 그림(하단 메뉴 · 까망 버튼): 브로치 둘레 반짝 선이 같은 때 번쩍 */
.kyc-lspark { opacity: 0; animation: kycFlash 6.4s linear 1.2s infinite; }
.kyc-hush .kyc-flash { animation-play-state: paused; opacity: 0; }
.kyc-still .kyc-charm, .kyc-still .kyc-flash, .kyc-still .kyc-gold-on, .kyc-line.kyc-still .kyc-lspark { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .kyc .kyc-charm, .kyc .kyc-flash, .kyc .kyc-gold-on, .kyc-line .kyc-lspark { animation: none !important; } }
/* ---- 화남 먹구름 · 번개(10 ~ 12번을 거쳐 13번 판): 화난 얼굴일 때만. 먹구름 · 번개는 까망이 뒤 층(.kyc-sky), 몸의 그림자 · 빛 · 붉은 기는 앞 층(.kyc-storm) ----
   13번: 이마 위 앞쪽의 작은 먹구름(까망이 몸 칠 · 둘레 선 · 흰 얼굴)이 뿅 하고 끼어 씩씩대며 흔들리고, 금빛 선 번개 둘이 번갈아(1.2초에 0.4 · 1초) 그려지듯 번쩍. 번쩍일 때 구름이 부풂 */
.kyc-sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.kyc:has(.kkm[data-face="angry"]) .kyc-sky { opacity: 1; }
.kyc-storm { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.kkm[data-face="angry"] .kyc-storm { opacity: 1; }
.kyc-shade { opacity: .5; }   /* 13번: 구름이 작아 몸 그림자는 옅게(번개 맞는 장면 몰려옴에서는 짙게) */
.kyc.kyc-z1 .kyc-shade { opacity: 1; }
.kyc-cloud, .kyc-cloud-b { transform-origin: 49.6px 3px; }
.kyc-cloud-c { stroke-width: 1.5; stroke-linejoin: round; }   /* 까망이 둘레 선과 같은 결(몸 칠 · 파랑 보라 테) */
.kyc-cloud-hi { fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; opacity: .55; }   /* 까망이 머리 빛 줄 결 */
.kyc-cloud-face circle { fill: var(--kkm-dot); }
.kyc-cloud-face path { fill: none; stroke: var(--kkm-brow); stroke-width: .95; stroke-linecap: round; stroke-linejoin: round; }
.kyc-strike { opacity: 0; }
.kyc-strike path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.kyc-bolt-e { stroke: var(--kyc-g2); stroke-width: 2.7; }   /* 브로치 금빛 테 */
.kyc-bolt-f { stroke: var(--kyc-g1); stroke-width: 1.9; }
.kyc-bolt-w { stroke: var(--kyc-ghi); stroke-width: .6; }
.kyc-strike-o { fill: none; stroke: var(--kyc-bolt-glow); stroke-width: 2.4; stroke-linejoin: round; opacity: .45; }   /* 번개 맞는 장면의 굵은 번개 */
.kyc-strike-i { fill: var(--kyc-bolt); stroke: var(--kyc-bolt-edge); stroke-width: .7; stroke-linejoin: round; }
.kyc-strike-c { fill: var(--kyc-bolt-core); }
.kyc-zap { opacity: 0; }
.kyc:has(.kkm[data-face="angry"]) .kyc-cloud { animation: kycCloudIn .5s cubic-bezier(.3, 1.5, .5, 1) both, kycBob 1.2s cubic-bezier(.45, 0, .55, 1) .5s infinite alternate; }
.kyc:has(.kkm[data-face="angry"]) .kyc-cloud-b { animation: kycHuff .6s cubic-bezier(.3, .7, .4, 1) .4s infinite; }
.kyc:has(.kkm[data-face="angry"]) .kyc-strike-l, .kkm[data-face="angry"] .kyc-zap-l { animation: kycStrike 1.2s linear .4s infinite; }
.kyc:has(.kkm[data-face="angry"]) .kyc-strike-r, .kkm[data-face="angry"] .kyc-zap-r { animation: kycStrike 1.2s linear 1s infinite; }
.kyc:has(.kkm[data-face="angry"]) .kyc-strike-l path { animation: kycBoltDraw 1.2s linear .4s infinite; }
.kyc:has(.kkm[data-face="angry"]) .kyc-strike-r path { animation: kycBoltDraw 1.2s linear 1s infinite; }
@keyframes kycCloudIn { from { opacity: 0; transform: translateY(2px) scale(.4); } to { opacity: 1; transform: none; } }   /* 뿅: 작게 솟아 살짝 넘쳤다 자리 잡음 */
@keyframes kycBob { from { transform: translateY(-.6px) rotate(-2deg); } to { transform: translateY(.6px) rotate(2deg); } }   /* 씩씩대며 갸웃갸웃 */
@keyframes kycHuff { 0% { transform: none; } 18% { transform: scale(1.1, .9); } 45% { transform: scale(.97, 1.04); } 70%, 100% { transform: none; } }   /* 번개 칠 때 부풂 */
@keyframes kycStrike { 0% { opacity: 0; } 4% { opacity: 1; } 8% { opacity: .2; } 12% { opacity: 1; } 34% { opacity: 1; } 42%, 100% { opacity: 0; } }   /* 1.2초 가운데 0.5초 번쩍 · 머묾, 둘이 0.6초 엇갈려 번갈아 */
@keyframes kycBoltDraw { 0% { stroke-dashoffset: 100; } 7% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }   /* 구름에서 아래로 그려지듯 */
.kyc-still .kyc-cloud, .kyc-still .kyc-cloud-b, .kyc-still .kyc-strike, .kyc-still .kyc-strike path, .kyc-still .kyc-zap { animation: none !important; }
.kyc-still .kyc-strike { opacity: 1; }
.kyc-still .kyc-strike path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .kyc .kyc-cloud, .kyc .kyc-cloud-b, .kyc .kyc-strike, .kyc .kyc-strike path, .kyc .kyc-zap { animation: none !important; } .kyc .kyc-strike { opacity: 1; } .kyc .kyc-strike path { stroke-dashoffset: 0; } .kyc-sky, .kyc-storm { transition: none; } }
/* ---- 번개 맞는 장면(11번): KkCramArt.zap()이 .kyc에 kyc-z1 ~ z6을 차례로 끼운다(2.6초). 장면 그림은 앞 층 .kyc-zfx ---- */
.kyc-zfx { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.kyc-zfx > g { opacity: 0; }
.kyc.kyc-z .kyc-strike, .kyc.kyc-z .kyc-zap { animation: none !important; opacity: 0 !important; }   /* 장면 동안 화남 번개는 쉼 */
.kyc.kyc-z .kkm-tuft { animation: none !important; }   /* 탄 머리털 끝이 머리털과 어긋나지 않게 */
/* 1 몰려옴: 먹구름이 낮게 내려오고 몸에 그림자 */
.kyc.kyc-z1 .kyc-sky, .kyc.kyc-z1 .kyc-storm { opacity: 1; transition: opacity .25s ease; }
.kyc.kyc-z1 .kyc-cloud { animation: kycCloudRush .38s cubic-bezier(.2, .7, .3, 1) both; }   /* 13번: 이마 위 작은 먹구름이 머리 위 가운데로 몰려와 커짐 */
@keyframes kycCloudRush { from { opacity: 0; transform: translate(-6px, -2px) scale(.8); } to { opacity: 1; transform: translate(-18.6px, 0) scale(1.3); } }
/* 2 콰광: 번개 · 하얀 번쩍 한 번 · 몸이 눌렸다 펴짐 */
.kyc.kyc-z2 .kyc-z-hit { opacity: 1; }
.kyc-z-flash { opacity: 0; }
.kyc.kyc-z2 .kyc-z-flash { animation: kycZFlash .15s linear both; }
@keyframes kycZFlash { 0% { opacity: 0; } 25% { opacity: .95; } 100% { opacity: 0; } }
.kyc-z-star { fill: var(--kyc-bolt-core); stroke: var(--kyc-bolt-edge); stroke-width: .5; stroke-linejoin: round; }
.kyc-kk, .kyc-zfx { transform-origin: 46% 98%; }
.kyc.kyc-z2 .kyc-kk, .kyc.kyc-z2 .kyc-zfx { animation: kycZSquish .4s cubic-bezier(.3, .7, .4, 1) both; }
.kyc.kyc-z2 .kkm-tuft-w { animation: kycZPop .5s cubic-bezier(.3, .7, .4, 1) both; }   /* 맞는 순간 머리털이 쭈뼛 섰다 내려앉음 */
@keyframes kycZPop { 0% { transform: none; } 30% { transform: scaleY(1.18) rotate(-6deg); } 60% { transform: scaleY(.94) rotate(4deg); } 100% { transform: none; } }
@keyframes kycZSquish { 0% { transform: none; } 30% { transform: scale(1.05, .9); } 70% { transform: scale(.98, 1.03); } 100% { transform: none; } }
/* 3 지지직 엑스레이: 검은 몸 · 굵은 만화 뼈 · 전기 불티, 몸이 잘게 떨림. 엑스레이는 두 번만 짧게 끊김 */
.kyc.kyc-z3 .kyc-z-xray { opacity: 1; animation: kycZXray .6s linear both; }
@keyframes kycZXray { 0%, 22% { opacity: 1; } 26% { opacity: .2; } 32%, 62% { opacity: 1; } 66% { opacity: .25; } 72%, 100% { opacity: 1; } }
.kyc.kyc-z3 .kyc-z-hit { opacity: 1; }
.kyc.kyc-z3 .kyc-z-hit .kyc-z-flash { opacity: 0; }
.kyc.kyc-z3 .kyc-kk, .kyc.kyc-z3 .kyc-zfx { animation: kycZJit .12s steps(2) infinite; }
@keyframes kycZJit { 0% { transform: translate(-.6px, .3px); } 50% { transform: translate(.6px, -.3px); } 100% { transform: translate(-.4px, -.2px); } }
.kyc-z-dark { fill: var(--kyc-xray); stroke: var(--kyc-xray-edge); stroke-width: .8; stroke-linejoin: round; }
.kyc-z-bone-g { fill: none; stroke: var(--kyc-bone-glow); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.kyc-z-bone { fill: none; stroke: var(--kyc-bone); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kyc-z-bone .kyc-z-fill { fill: var(--kyc-bone); }
.kyc-z-bone .kyc-z-thin { stroke-width: 1.2; }
.kyc-z-eye { fill: var(--kyc-xray); stroke: none; }
.kyc-z-spark { fill: none; stroke: var(--kyc-bolt); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.kyc.kyc-z3 .kyc-z-spark { animation: kycZSpark .2s steps(2) infinite; }
@keyframes kycZSpark { 0% { opacity: 1; } 50% { opacity: .35; } 100% { opacity: 1; } }
/* 4 · 5 그을림 · 멍 */
.kyc.kyc-z4 .kyc-z-burn { opacity: 1; transition: opacity .12s; }
.kyc-z-tear path { fill: var(--kyc-tear); stroke: var(--kyc-burn); stroke-width: .7; stroke-linejoin: round; }
.kyc-z-smoke { fill: none; stroke: var(--kyc-smoke); stroke-width: 1; stroke-linecap: round; opacity: 0; }   /* 12번: 머리털 층 안(zap이 붙임), 그을림부터 보임 */
.kyc.kyc-z4 .kyc-z-smoke { opacity: .8; }
.kyc.kyc-z4 .kyc-z-smoke path { animation: kycZSmoke 1.2s ease-out infinite; }
.kkm-tuft-svg { overflow: visible; }
.kyc.kyc-z4 .kyc-z-smoke path + path { animation-delay: .4s; }
@keyframes kycZSmoke { 0% { opacity: 0; transform: translateY(1.5px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-3px); } }
.kyc-z-smile { fill: #fff; }
.kyc-z-dust { fill: var(--kyc-soot); opacity: 0; }
/* 6 머리 털기: 좌우로 세 번 털면 그을음이 털려 날아가고 원래대로 */
.kyc.kyc-z6 .kyc-kk, .kyc.kyc-z6 .kyc-zfx { transform-origin: 46% 62%; animation: kycZShimmy .6s cubic-bezier(.3, .6, .4, 1) both; }   /* 12번: 밑점이 아니라 몸 가운데를 축으로, 잦아드는 흔들림(오뚜기 꼴 아님) */
@keyframes kycZShimmy { 0% { transform: none; } 10% { transform: translateX(-1.2px) rotate(-5deg); } 25% { transform: translateX(1.2px) rotate(5deg); } 40% { transform: translateX(-.7px) rotate(-3.4deg); } 55% { transform: translateX(.4px) rotate(2.2deg); } 70% { transform: rotate(-1.1deg); } 85% { transform: rotate(.4deg); } 100% { transform: none; } }
.kyc.kyc-z6 .kkm-tuft-w { animation: kycZTuft .8s cubic-bezier(.3, .6, .4, 1) .06s both; }   /* 머리털은 조금 늦게 더 크게 따라오다 잦아듦 */
@keyframes kycZTuft { 0% { transform: none; } 12% { transform: rotate(-16deg); } 28% { transform: rotate(14deg); } 44% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } 76% { transform: rotate(-3deg); } 90% { transform: rotate(1deg); } 100% { transform: none; } }
.kyc.kyc-z6 .kyc-z-soot, .kyc.kyc-z6 .kyc-z-tear, .kyc.kyc-z6 .kyc-z-smile { animation: kycZOut .55s ease-in both; }
.kyc.kyc-z6 .kyc-z-smoke { animation: kycZOut .3s ease-in both; }
@keyframes kycZOut { 0%, 30% { opacity: 1; } 100% { opacity: 0; } }
.kyc.kyc-z6 .kyc-z-dust circle { animation: kycZDust .5s cubic-bezier(.2, .7, .4, 1) .08s both; }
@keyframes kycZDust { 0% { opacity: 0; transform: none; } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
.kyc.kyc-z6 .kyc-z-dust { opacity: 1; }
/* 움직임 줄이기: 그을린 멈춘 그림(엑스레이 · 번쩍 · 떨림 · 연기 움직임 없음) */
.kyc.kyc-zr, .kyc.kyc-zr * { animation: none !important; }
/* ---- 12번: 화날 때 이마 · 볼 붉은 기 ---- */
.kyc-blush { opacity: 0; transition: opacity .5s ease; }
.kkm[data-face="angry"] .kyc-blush { opacity: 1; animation: kycBlush 1.6s cubic-bezier(.45, 0, .55, 1) .5s infinite alternate; }
@keyframes kycBlush { from { opacity: .75; } to { opacity: 1; } }
.kyc-still .kyc-blush { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .kyc .kyc-blush { animation: none !important; } }

