/* 연출 도구 한 벌(js/calib-games/juice.js) — 입자 캔버스 · 피격 빛 복사본 · 어지러운 별.
   css/calib-games.css 가 1,500줄 가까이라 손맛 연출의 새 규칙은 이 파일에 둔다(파일 크기 규칙).
   색은 없다 — 입자 색은 캔버스가 칠하고, 하얀 빛은 그림 복사본에 filter 를 걸어 만든다. */

/* 입자 캔버스 — 무대(host)마다 한 장 · 화면 전체 · 눌림을 가로채지 않는다.
   캔버스는 대체 요소라 inset 만으로는 늘어나지 않는다 — 보이는 크기(100%)를 따로 준다.
   그리는 크기(창 × 기기 배율)는 juice.js 가 맞춘다.
   층 — .cgfx 조각과 같은 104: 과녁(101) 위 · 점수 글자(106) 아래. */
.cg-juice-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 104;
}

/* 피격 빛 — 대상 그림의 하얀 실루엣. 대상 «안»에 붙어 대상의 찌그러짐 · 내려앉음을 그대로 따른다.
   배경 그림 · 크기 · 자리는 juice.js 가 대상에서 읽어 넣는다. 투명도만 움직인다. */
.cg-juice-flash {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0;
  filter: brightness(0) invert(1);
}

/* 어지러운 별 — 감싸개는 점 하나(크기 0)이고, 별은 그 둘레 타원으로 옮겨진다.
   별 크기는 그림(star.png 132×90) 비율 그대로 40×27 · 가운데를 점에 맞춘다. */
.cg-juice-dizzy { position: fixed; width: 0; height: 0; z-index: 104; pointer-events: none; }
.cg-juice-dizzy i {
  position: absolute; left: 0; top: 0; width: 40px; height: 27px; margin: -13.5px 0 0 -20px;
  background: url('../img/minigames/star.png?v=20260813-2') center/100% 100% no-repeat;
}

/* 하얀 «펑» — 들쭉날쭉 별 SVG 가 든 상자. 크기(px)는 juice.js 가 지름 92 × 배율로 넣고, 움직임은 WAAPI 가 한다.
   SVG 안 요소에는 CSS filter 를 쓰지 않는다(사파리가 그리지 않는다). 층 = 입자 캔버스와 같은 104. */
.cg-juice-pow { position: fixed; pointer-events: none; z-index: 104; }
.cg-juice-pow svg { display: block; }

/* 노란 «쾅» — impact.png 한 장(504×330 의 절반) · 0.6 → 1.3배 · 0.18초에 사라진다. 잔잔한 판 · 움직임 줄이기는 쓰지 않는다.
   층 = 입자 캔버스와 같은 104 · 자리는 js/calib-games/theme-moles.js 가 넣는다(가운데를 점에 맞춘다). */
.cg-juice-impact {
  position: fixed; width: 252px; height: 165px; margin: -82.5px 0 0 -126px;
  z-index: 104; pointer-events: none; opacity: 0;
  background: url('../img/minigames/impact.png?v=20260813-2') center/100% 100% no-repeat;
  animation: cg-juice-impact 180ms linear forwards;
}
/* 두더지 «쾅» — 검수 2차 회신 3A 의 만화 충격 별(img/minigames/fx-impact · 316×320) · 같은 키프레임(0.6 → 1.15 → 1.3배)을 0.2초에 */
.cg-juice-impact.cg-mole-impact {
  width: 190px; height: 192px; margin: -96px 0 0 -95px;
  background: url('../img/minigames/fx-impact.0bfa7ab8.webp') center/100% 100% no-repeat;
  animation-duration: 200ms;
}
/* 망치가 나타날 때 반짝이 «뿅»(fx-appear) · 내려칠 때 바람 자국(fx-swoosh) — 자리 · 크기 · 돌림은 js/calib-games/theme-moles.js 가 준다 */
.cg-mole-fx { position: fixed; z-index: 104; pointer-events: none; background: center/100% 100% no-repeat; }
.cg-mole-fx.m-fx-appear { background-image: url('../img/minigames/fx-appear.34d32bac.webp'); animation: cg-mole-appear .36s ease-out forwards; }
@keyframes cg-mole-appear { 0% { scale: .3; opacity: 0; } 30% { scale: 1.05; opacity: 1; } 100% { scale: 1.25; opacity: 0; } }
.cg-mole-fx.m-fx-swoosh { background-image: url('../img/minigames/fx-swoosh.0a7db3ba.webp'); animation: cg-mole-swoosh .24s ease-out forwards; }
@keyframes cg-mole-swoosh { 0% { opacity: 0; } 25% { opacity: .95; } 100% { opacity: 0; } }
@keyframes cg-juice-impact {
  0%   { transform: scale(.6); opacity: 1; }
  40%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* ══ 보통 두더지 손맛(js/calib-games/theme-moles.js «손맛» 시각표 · 손맛 설계 = docs/superpowers/specs/2026-10-22-minigame-juice-design.md §6-3) ══════════════════
   시각 0 = 망치가 닿는 순간(누르기 0.4초 끝). 망치 길(cg-hammer-swing)은 css/calib-games.css 의 확정값 그대로다. */

/* 망치 잔상 — 감싸개는 두더지 상자와 같은 칸(투명도 · 흐림만 바뀐다 · 시안과 같은 .6 / .38 · 흐림 2.5px — 손맛 설계 §6-3 «흐림 · 60%»)
   · 안쪽 .m-hammer 복사본(.m-hg)은 진짜 망치와
   «같은 이름» cg-hammer-swing 을 30 · 60ms 늦게 돈다(조율 패널이 그 키프레임을 덮어써도 같은 길을 따라간다).
   ★맞은 뒤에도 그 길을 마저 따라가며 사라진다★ — 선택자를 .cg-mole.hit .m-hammer(튕김)보다 세게 쓴다.
   층 5 = 진짜 망치와 같다(문서 순서가 앞이라 진짜 망치가 위) · 두더지 그림보다 위. */
.cg-mole .m-hammer-ghost {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  filter: blur(2.5px); --cgm-ghost-op: .6;
  animation: cg-hammer-ghost-fade var(--cg-hold) linear forwards;
}
.cg-mole .m-hammer-ghost.g2 { --cgm-ghost-op: .38; }
.cg-mole .m-hammer-ghost .m-hammer.m-hg { animation: cg-hammer-swing var(--cg-hold) cubic-bezier(.42,.02,.6,1) 30ms forwards; }
.cg-mole .m-hammer-ghost.g2 .m-hammer.m-hg { animation-delay: 60ms; }
@keyframes cg-hammer-ghost-fade {   /* 누르기 56% 전에는 안 보인다 — 그 뒤 앞 .6 · 뒤 .38 */
  0%, 55.9% { opacity: 0; }
  56%, 100% { opacity: var(--cgm-ghost-op); }
}
/* 닿은 뒤 — 멈칫(80ms) 동안 그대로 보이다 0.12초에 사라진다(이 애니메이션은 멈칫이 걸린 뒤에 시작해 멈칫이 붙잡지 않는다) */
.cg-mole.hit .m-hammer-ghost { animation: cg-hammer-ghost-out 200ms linear forwards; }
@keyframes cg-hammer-ghost-out {
  0%, 40% { opacity: var(--cgm-ghost-op); }
  100%    { opacity: 0; }
}

/* 멈칫 동안 진짜 망치는 닿은 자세(cg-hammer-swing 끝)에 머문다 — 이름이 같아 휘두르던 애니메이션이 그대로 이어진다.
   ★그 자리에서 70px 눌러 내린다(translate · 키프레임은 그대로)★ — 몸이 발치 기준으로 세로 .7 로 납작해지면 머리가
   약 60px 내려가, 그대로 두면 망치가 머리 위에 떠 보인다(2026-10-23 정지 화면 실측 · 10px 더 눌러 머리에 닿게). 멈칫이 풀리면 theme-moles.js 가
   cgm-stop 을 떼고, 지금의 cg-hammer-bounce 로 튕겨 나간다. */
.cg-mole.hit.cgm-stop > .m-hammer { animation: cg-hammer-swing var(--cg-hold) cubic-bezier(.42,.02,.6,1) forwards; translate: 0 70px; }

/* 왕관 두더지 — 닿는 순간 망치를 납작해진 머리까지 40px 눌러 내린다(위 보통 두더지의 70px 와 같은 까닭).
   튕김(cg-hammer-bounce) 첫 자세의 망치는 납작해진 머리 위 31px 에 떠 있었다(2026-10-23 영상 · 시험 CJ6) — 10px 더 눌러 닿게.
   ★그림 칸 .gm-hm 의 translate 만★ — 부모 .m-hammer 의 cg-hammer-bounce · 그림 칸의 크기 곱(인라인 scale 1.7)은 그대로(시험 T3).
   몸이 납작한 동안(80ms) 누른 채 → 튕김이 끝나는 200ms 에 0. 잔잔한 판 · 움직임 줄이기는 theme-moles.js 가 gm-push 를 달지 않는다. */
.cg-gold-mole.hit.gm-push .gm-hm { animation: gm-hit-push 200ms linear forwards; }
@keyframes gm-hit-push {
  0%, 40% { translate: 0 40px; }
  100%    { translate: 0 0; }
}

/* 맞은 몸(그림 = 아파하는 얼굴 mole-hurt → 27% 에 어지러운 얼굴 mole-dizzy · 처음 그림은 css/calib-games.css) — 왕관 두더지도 같은 몸을 쓴다.
   ★이름 · 선택자 · 길이(1100ms = theme-moles.js HIT_MS)는 조율 패널(tuner-panel.js «표정 시간»)이 덮어쓰는 자리라 그대로★
   축 = 상자 아래 가운데(구멍 가장자리 쪽). 0~7% 납작한 채(멈칫 80ms) → 20% 넘침 → 27% 몸 높이 12% 무렵(24px) 내려앉음
   → 좌우 2px 흔들림 두 번 → 38% «쏙» 시작 → 53% 구멍 속으로 사라짐.
   ★53% 안에 끝낸다★ 다음 두더지가 나올 때(닿고 respawnMs 600ms) 엔진이 앞 두더지를 걷는다(core.js spawnTarget) —
   그 뒤(53 → 100%)는 숨은 채로 시간을 채운다(토끼 · 왕관 차례라 늦게 걷힐 때도 같은 모습). */
.cg-mole.hit .m-fig, .cg-gold-mole.hit .m-fig { transform-origin: 50% 100%; animation: cg-mole-hit 1100ms linear forwards; }
@keyframes cg-mole-hit {
  0%    { transform: translate(0, 0) scale(1.25, .7); opacity: 1; background-image: url('../img/minigames/mole-hurt.ed451816.png'); }
  7%    { transform: translate(0, 0) scale(1.25, .7); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  20%   { transform: translate(0, 16px) scale(.96, 1.08); animation-timing-function: ease-in-out; }
  26.9% { background-image: url('../img/minigames/mole-hurt.ed451816.png'); }
  27%   { transform: translate(0, 24px) scale(1, 1); background-image: url('../img/minigames/mole-dizzy.49935c10.png'); }
  29.5% { transform: translate(2px, 24px) scale(1, 1); }
  32%   { transform: translate(-2px, 24px) scale(1, 1); }
  34.5% { transform: translate(1px, 24px) scale(1, 1); }
  37%   { transform: translate(0, 24px) scale(1, 1); }
  38%   { transform: translate(0, 24px) scale(1, 1); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  53%, 100% { transform: translate(0, 64px) scale(1, .42); opacity: 0; background-image: url('../img/minigames/mole-dizzy.49935c10.png'); }
}
/* 잔잔한 판 — 넘침 · 흔들림 없이 덜 납작하게(세로 .86 · 가로 1.12) · 내려앉음 2/3 · 천천히 펴진다 · «쏙»은 같은 때 */
.cg-mole.hit.cgm-calm .m-fig, .cg-gold-mole.hit.cgm-calm .m-fig { animation-name: cg-mole-hit-calm; }
@keyframes cg-mole-hit-calm {
  0%    { transform: translate(0, 0) scale(1.12, .86); opacity: 1; animation-timing-function: ease-out; background-image: url('../img/minigames/mole-hurt.ed451816.png'); }
  26.9% { background-image: url('../img/minigames/mole-hurt.ed451816.png'); }
  27%   { background-image: url('../img/minigames/mole-dizzy.49935c10.png'); }
  30%   { transform: translate(0, 16px) scale(1, 1); }
  38%   { transform: translate(0, 16px) scale(1, 1); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .9, .6); }
  53%, 100% { transform: translate(0, 56px) scale(1, .42); opacity: 0; background-image: url('../img/minigames/mole-dizzy.49935c10.png'); }
}

/* 움직임 줄이기 — 몸은 움직이지 않고 맞은 얼굴을 보인 뒤 같은 때(38 → 53%) 흐려진다. 잔상 · 멈칫은 테마가 만들지 않는다.
   ★!important★ — css/calib-games.css 의 움직임 줄이기 블록이 두더지 그림의 animation 을 !important 로 끈다. */
@media (prefers-reduced-motion: reduce) {
  .cg-mole.hit .m-fig, .cg-gold-mole.hit .m-fig { animation: cg-mole-hit-still 1100ms linear forwards !important; }
}
@keyframes cg-mole-hit-still {
  0%, 38%   { opacity: 1; }
  53%, 100% { opacity: 0; }
}

/* ══ 풍선 부풀기 손맛(js/calib-games/theme-balloons.js · 3단계 Task 3) ══════════════════════════
   몸통 크기는 transform 배율이다(처음 크기 124×201 그대로 · 상자 .cg-balloon 은 움직이지 않는다 — 시선 영점).
   기본 부풀기(0.25초)는 css/calib-games.css 가 CSS 만으로 한다. 여기는 잔잔한 판의 느린 전환과 반짝임 «.b-hi».
   잔잔한 판(.calm) = 0.4초에 천천히(ease-in-out) 부풀고, 놓으면 0.33초에 돌아간다. */
.cg-balloon.calm .b-body { transition: transform .33s ease-in-out, filter var(--cg-hold) linear; }
.cg-balloon.calm.holding .b-body { transition: transform .4s ease-in-out, filter var(--cg-hold) linear; }

/* 반짝임 — 몸통 위 왼쪽의 하얀 부드러운 타원(-32°). 투명도와 배율만 움직인다(움직임은 JS 의 WAAPI).
   자리는 색마다 다르다(그림 안 몸통 가운데 cx · cy 비율 · 시안과 같은 값). 크기 = 그림 가로의 26% × (가로의 20%). */
.cg-balloon .b-hi {
  position: absolute; left: 18.18%; top: 12.36%; width: 26%; height: 12.34%;
  border-radius: 50%; pointer-events: none; opacity: 0; transform: rotate(-32deg);
  background: radial-gradient(ellipse at center, rgba(255,255,255,.95) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 72%);
  transition: opacity .22s ease-out;
}
.cg-balloon.c1 .b-hi { left: 21.05%; top: 15.11%; }
.cg-balloon.c2 .b-hi { left: 22.87%; top: 15.92%; }
.cg-balloon.c3 .b-hi { left: 20.79%; top: 13.33%; }
.cg-balloon.holding .b-hi { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  .cg-balloon .b-hi { transition: none !important; }
}

/* ══ 선물 별 풍선 — 선물 상자 그림 · 둘레 원 감춤(js/calib-games/theme-balloons.js · 사용자 회신 2026-10-23) ══
   상자 = Meshy 그림 한 장을 뚜껑 · 몸통 둘로 자른 것(둘 다 가로 240 · 뚜껑 132줄 + 몸통 166줄).
   자리는 별 그림 좌표(viewBox 120 × 210 · .gs-body 안 비율) — 가운데 x 60 · 너비 54 · 바닥 202 · 높이 67.05(위 134.95).
   뚜껑은 몸통 안에 있어 덜컹 · 툭을 함께 받고, 상자가 열릴 때만 따로 난다(둘 다 아래 가운데를 축으로). */
.cg-gold-giftstar .gs-box {
  position: absolute; left: 27.5%; width: 45%; top: 64.26%; height: 31.93%;
  background: url('../img/minigames/gift-box.e8f7f0c4.png') center bottom / 100% auto no-repeat;
  transform-origin: 50% 100%; filter: drop-shadow(0 6px 8px var(--cg-gs-shadow));
}
.cg-gold-giftstar .gs-lid {
  position: absolute; left: 0; top: 0; width: 100%; height: 44.3%;
  background: url('../img/minigames/gift-lid.afb89fde.png') center top / 100% 100% no-repeat;
  transform-origin: 50% 100%;
}
/* 둘레 원만 감춘다 — 자리(상자 크기)는 남긴다. 별 넷은 원 아래에 두면 선물 상자 매듭에 묻히므로 원 위로 올린다. */
.cg-gold-ring.cg-ring-bare .cg-ring-svg { visibility: hidden; }
.cg-gold-ring.cg-ring-bare .cg-ring-pips { top: auto; bottom: calc(100% + 4px); }

/* ── 황금 동전 누르는 동안(js/calib-games/theme-dots.js · 손맛 4단계 · 검수 6차) ──
   몸통 겹: .cg-gold-bob > .gc-press(눌림) > .gc-body(커지기) — 모두 상자를 가득 채운다. 움직임은 JS(transform · WAAPI). */
.cg-gold-coin .gc-press { position: absolute; inset: 0; }
/* 가득 참(1.4초) — 3색 고리에 금빛 번짐 */
.cg-gold-ring.cg-ring-max .cg-ring-svg { filter: drop-shadow(0 0 3px rgba(255, 214, 80, .95)) drop-shadow(0 0 8px rgba(255, 186, 40, .8)); }

/* ══ 화살 피하기 다람쥐 손맛(js/calib-games/panel-core.js «깡충» · 손맛 설계 §6-4 · 5단계) ══════════════════
   몸 겹: .cg-ap-hero(상자 · 깡충 translate · 그림자 filter · 움찔 translate/rotate 속성 = css/calib-games.css)
     > .cg-ap-hero-s(찌그러짐 · 기울기 · 발 = 아래 가운데 축) > .cg-ap-fig(서 있는 · 기뻐함 · 아야 그림 · 피격 빛 대상)
                                                              + .cg-ap-pose(깡충 자세 웅크림 · 공중 · 착지 — 깡충 중에만 · 그동안 .cg-ap-fig 는 숨김).
   그림은 배경 그림이다 — 피격 빛(CalibJuice.hurtFlash)이 대상의 배경 그림으로 하얀 복사본을 만든다(<img> 는 자식을 그리지 않는다).
   상자 비율 = 서 있는 그림 226:300 · 기뻐함(232:300) · 아야(230:300)는 상자 안에 줄여 발을 맞춘다(contain · 아래 가운데).
   자세 그림 3장(245×337)은 서 있는 그림 상자를 왼쪽 4 · 위 37 에 품은 캔버스라 % 상자 하나로 맞는다.
   눌림은 칸이 받는다 — 다람쥐 · 잔상은 눌림을 가로채지 않는다(시험 P4 «9칸 모두 눌림»). */
.cg-ap-hero { position: absolute; pointer-events: none; }
.cg-ap-hero-s { position: absolute; inset: 0; transform-origin: 50% 100%; }
.cg-ap-fig { position: absolute; inset: 0; background: center bottom / contain no-repeat; }
.cg-ap-pose, .cg-ap-hghost i {
  position: absolute; left: -1.7699%; top: -12.3333%; width: 108.4071%; height: 112.3333%;
  background: center bottom / 100% 100% no-repeat;
}
.cg-ap-pose { display: none; }
/* 잔상 — 공중 길에서 50 · 100 · 150ms 뒤처진 깡충 그림(자리 · 투명도 .30/.20/.10 은 엔진) · 판 자식 · 다람쥐(z 2) 아래 층.
   상자는 다람쥐 상자와 같고, 찌그러짐 · 기울기는 한 transform 에 같은 발 축으로 든다. */
.cg-ap-hghost { position: absolute; z-index: 1; pointer-events: none; opacity: 0; transform-origin: 50% 100%; }

/* 쏘기 전 활 당김 · 쏘는 순간 끝 빛(손맛 설계 §6-4) */
.cg-ap-board { --cg-ap-tip: rgb(255, 226, 122); --cg-ap-string: rgb(236, 196, 132); --cg-ap-string-toy: rgb(246, 244, 250); }
/* 활 = 상자(떨림 translate · 날개 휨 scale · 세로 줄은 rotate 속성 90° — scale 이 그림 축으로 든다) > 시위 없는 그림 + 엔진이 그리는 «<» 자 시위(꼭짓점 = 화살 오늬) */
.cg-ap-bow { position: absolute; pointer-events: none; }
.cg-ap-bow > img { left: 0; top: 0; width: 100%; height: 100%; }
.cg-ap-string { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--cg-ap-string); stroke-linecap: round; stroke-linejoin: round; }
.cg-ap-bow.toy .cg-ap-string { stroke: var(--cg-ap-string-toy); }
/* 활 당김(쏘기 0.6초 전) — 날개 끝이 조금 모인다 · 시위 꼭짓점은 엔진이 오늬를 따라 옮긴다 */
.cg-ap-bow.draw { scale: 1 .96; transition: scale 600ms cubic-bezier(.3, .6, .4, 1); }
.cg-ap-tipf { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgb(255, 255, 255) 0%, var(--cg-ap-tip) 45%, transparent 72%); }

/* 화살 비행(손맛 설계 §6-4 · 엔진 flightStart) — 줄 층 안 · 화살 아래. 자리 · 투명도 · 각도는 엔진이 틀마다 transform 으로 쓰고 꽂힘 · 길 끝에서 걷는다.
   잔상 = 화살 그림 복사본(진짜 3 · 장난감 2 · 상자는 화살과 같다) · 바람 줄 = 꼬리 뒤 흰 → 투명 2줄(오른쪽 끝 = 꼬리 쪽이 축 · 판 (0, 0)).
   잔잔한 판 · 움직임 줄이기는 엔진이 만들지 않는다. */
.cg-ap-ghost { opacity: 0; }
.cg-ap-wind { position: absolute; top: -.75px; height: 1.5px; border-radius: 999px; pointer-events: none; transform-origin: 100% 50%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .7)); }

/* ══ 화살 피하기 «실드 라운드»(js/calib-games/panel-arrows.js ARROW_SHIELD · 손맛 설계 §6-5 · 6단계 b) ══════════════
   상자 = 엔진(panel-core.js «실드» 절)이 둔다 — 아이템 .cg-ap-shield(실드 칸 가운데 · 칸 간격 × 0.62 · 칸 위 · 화살 · 다람쥐 아래) ·
   막 .cg-ap-dome(다람쥐 상자 가운데 · 지름 = 상자 높이 × 1.25 · 판 맨 끝 자식). 둘 다 누름을 가로채지 않는다(엔진 인라인 pointer-events:none).
   그림 3장(Meshy · img/minigames/arrows/shield-*)은 상자를 가득 채운다(.cg-ap-board img 의 absolute 를 받는다).
   막은 엔진이 켤 때 .on 을 단다 — 보이는 것은 이 절의 전환(켬 0.12초 · 끔 0.15초)뿐이다. 누르는 빛 · 튀어나옴 · 물결 · 튕김은 JS(WAAPI).
   아이템 겹: .cgsh-pop(등장 튀어나옴 — 엔진 상자 자체는 커지지 않는다) > .cgsh-glow(뒤 빛) + .cgsh-bob(둥실) > img.cgsh-item.
   상태: 아이템 .hide(켜진 동안) · .under(꺼진 채 다람쥐가 그 칸에 서 있음 = 다람쥐 뒤 흐리게) · .gone(끝) / 막 .out(끝 — 커지며 흐려짐).
   «꾹 누르세요!» 표시 .cg-ap-shint(실드 칸 상자 · 막 위 층) — 엔진이 .show 를 단다(실드가 꺼져 있고 실드 칸을 누르는 중이 아닐 때).
     고리 .cgsh-ring · 손가락 .cgsh-hand(검지 끝이 칸 가운데 조금 오른쪽 아래) · 글 b.cgsh-say(칸 위쪽 · 칸 너비에 맞춘 글자 크기). */
:root {
  --cgsh-glow-1: rgba(255, 248, 205, 1);
  --cgsh-glow-2: rgba(80, 176, 255, .6);
  --cgsh-item-shadow: rgba(16, 42, 92, .35);
  --cgsh-hint-ring: rgb(255, 255, 255);
  --cgsh-hint-ring-edge: rgba(120, 70, 10, .6);
  --cgsh-hint-bg: rgba(46, 30, 14, .84);
  --cgsh-hint-ink: rgb(255, 255, 255);
  --cgsh-hand-fill: rgb(255, 255, 255);
  --cgsh-hand-line: rgb(74, 48, 26);
}
.cg-ap-shield { transition: opacity .12s ease-out; }
.cg-ap-shield span { position: absolute; inset: 0; pointer-events: none; }
.cg-ap-shield .cgsh-pop { animation: cgsh-in .35s ease-out; }
.cg-ap-shield .cgsh-glow {
  inset: -30%; border-radius: 50%; opacity: .7;
  background: radial-gradient(closest-side, var(--cgsh-glow-1), var(--cgsh-glow-2) 55%, transparent);
  animation: cgsh-glow 1.1s ease-in-out infinite alternate;
}
.cg-ap-shield .cgsh-bob { animation: cgsh-bob 1.2s ease-in-out infinite alternate; }
.cg-ap-shield .cgsh-item { left: 0; top: 0; width: 100%; height: 100%; filter: drop-shadow(0 4px 5px var(--cgsh-item-shadow)); }
.cg-ap-shield.under { opacity: .45; }
.cg-ap-shield.hide, .cg-ap-shield.gone { opacity: 0; }
.cg-ap-shield.gone { transition-duration: .3s; }
@keyframes cgsh-in { 0% { scale: .3; } 60% { scale: 1.12; } 100% { scale: 1; } }
@keyframes cgsh-in-calm { from { scale: .85; } to { scale: 1; } }
@keyframes cgsh-bob { from { translate: 0 0; } to { translate: 0 -7%; } }
@keyframes cgsh-glow { from { opacity: .45; scale: .92; } to { opacity: .9; scale: 1.08; } }
/* 막 — 다람쥐(z 2 · 앞 자식) 위 층(같은 층 번호면 뒤 자식이 위) · 다람쥐가 막 안에 보인다(막 그림 가운데가 투명) */
.cg-ap-dome { z-index: 2; }
.cg-ap-dome .cgsh-wrap { position: absolute; inset: 0; opacity: 0; transition: opacity .15s ease-out; }
.cg-ap-dome.on .cgsh-wrap { opacity: 1; transition-duration: .12s; }
.cg-ap-dome.out .cgsh-wrap { opacity: 0; scale: 1.15; transition: opacity .4s ease-out, scale .4s ease-out; }
.cg-ap-dome .cgsh-dome { left: 0; top: 0; width: 100%; height: 100%; }
.cg-ap-dome.on .cgsh-dome { animation: cgsh-breathe 1.4s ease-in-out infinite alternate; }
.cg-ap-dome .cgsh-burst { left: -20%; top: -20%; width: 140%; height: 140%; }
@keyframes cgsh-breathe { from { scale: 1; } to { scale: 1.03; } }
/* 튕겨 나가는 화살 — 판 자식 · 막 위 층(자리 · 크기 · 움직임은 JS) */
.cg-ap-board .cgsh-deflect { z-index: 3; }
/* «꾹 누르세요!» — 한 바퀴 1.6초: 손가락이 내려와 누르고(0 ~ 22%) 버티고(~ 78%) 든다 · 누르는 순간 고리가 퍼지고 글이 살짝 튄다 */
.cg-ap-shint { z-index: 3; opacity: 0; transition: opacity .15s ease-out; container-type: size; }
.cg-ap-shint.show { opacity: 1; }
.cg-ap-shint:not(.show) * { animation-play-state: paused; }
.cg-ap-shint .cgsh-ring { position: absolute; inset: 14%; border-radius: 50%; border: 4px solid var(--cgsh-hint-ring); opacity: 0;
  filter: drop-shadow(0 0 2px var(--cgsh-hint-ring-edge)); animation: cgsh-ring 1.6s ease-out infinite; }
.cg-ap-shint .cgsh-hand { position: absolute; left: 54%; top: 52%; width: 34%; margin-left: -16%;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .3)); animation: cgsh-press 1.6s ease-in-out infinite; } /* [design-ok] 그림 그림자 — 상자 그림자 토큰(box-shadow)이 아니다 */
.cg-ap-shint .cgsh-hand svg { display: block; width: 100%; height: auto; overflow: visible; }
/* Meshy 장갑 손(2026-11-09 · 꾸욱 알려 주기와 같은 그림) — 손가락 끝이 그림 너비의 31% 자리라 그만큼 왼쪽으로 당겨 끝을 같은 자리(54%)에 둔다 */
.cg-ap-shint .cgsh-hand.cgsh-hand-art { width: 28%; margin-left: -6.3%; }   /* 손등 손(손가락 끝 0.365) — 끝이 칸 가운데에 오게 */
.cg-ap-shint .cgsh-hand-img { display: block; width: 100%; height: auto; }
.cg-ap-shint .cgsh-hand .o { fill: var(--cgsh-hand-line); stroke: var(--cgsh-hand-line); stroke-width: 5; stroke-linejoin: round; }
.cg-ap-shint .cgsh-hand .f { fill: var(--cgsh-hand-fill); }
.cg-ap-shint .cgsh-say { position: absolute; left: 50%; top: 3%; translate: -50% 0; white-space: nowrap; word-break: keep-all;
  padding: .12em .55em; border-radius: 999px; background: var(--cgsh-hint-bg); color: var(--cgsh-hint-ink);
  font-weight: 800; line-height: 1.35; letter-spacing: -.01em;
  font-size: var(--text-md); font-size: clamp(var(--text-xs), 12cqw, var(--text-2xl));
  animation: cgsh-say 1.6s ease-out infinite; }
@keyframes cgsh-press { 0%, 100% { translate: 0 -18%; scale: 1; } 22%, 78% { translate: 0 0; scale: .9; } }
@keyframes cgsh-ring { 0%, 20% { opacity: 0; scale: .7; } 26% { opacity: 1; scale: .75; } 80%, 100% { opacity: 0; scale: 1.3; } }
@keyframes cgsh-say { 0%, 20%, 45%, 100% { scale: 1; } 28% { scale: 1.08; } }
/* 잔잔한 판(판에 .cg-ap-calm) — 등장 · 둥실 · 빛 숨 · 막 숨을 느리고 작게 · 끝에 막이 커지지 않고 흐려지기만 */
.cg-ap-calm .cg-ap-shield .cgsh-pop { animation: cgsh-in-calm .5s ease-out; }
.cg-ap-calm .cg-ap-shield .cgsh-bob { animation-duration: 2s; }
.cg-ap-calm .cg-ap-shield .cgsh-glow { animation-duration: 1.8s; }
.cg-ap-calm .cg-ap-dome.on .cgsh-dome { animation-duration: 2.2s; }
.cg-ap-calm .cg-ap-dome.out .cgsh-wrap { scale: none; }
.cg-ap-calm .cg-ap-shint .cgsh-hand, .cg-ap-calm .cg-ap-shint .cgsh-ring { animation-duration: 2.4s; }
.cg-ap-calm .cg-ap-shint .cgsh-say { animation: none; }
/* 큰 숫자 «+N» 뒤 🌰 그림(테마가 bigNumber 의 art 로 숫자 칸 끝에 붙인다) — 숫자 칸의 글자 칠(그라데이션 · 투명 글자색 · 테두리)은
   글자에만 든다 · 그림은 제 색으로 그린다. 크기 0.85em · 줄 가운데 · 왼쪽 작은 틈 */
.cgfx-bignum-n .cga-numicon { display: inline-block; width: .85em; height: .85em; margin-left: .12em; vertical-align: middle; }
.cgfx-bignum-n .cga-numicon svg { display: block; width: 100%; height: 100%; }
/* 움직임 줄이기 — 등장 · 둥실 · 빛 숨 · 막 숨 · 끝에 커짐 없음(막 · 아이템 · 흐려짐은 남는다) · 튀어나옴 · 튕김은 JS 가 만들지 않는다 */
@media (prefers-reduced-motion: reduce) {
  .cg-ap-shield .cgsh-pop, .cg-ap-calm .cg-ap-shield .cgsh-pop, .cg-ap-shield .cgsh-bob, .cg-ap-shield .cgsh-glow, .cg-ap-dome.on .cgsh-dome { animation: none; }
  /* «꾹 누르세요!» — 멈춘 채(누른 손가락 · 고리 · 글) */
  .cg-ap-shint .cgsh-hand, .cg-ap-shint .cgsh-ring, .cg-ap-shint .cgsh-say { animation: none; }
  .cg-ap-shint .cgsh-ring { opacity: .85; scale: .8; }
  .cg-ap-dome.out .cgsh-wrap { scale: none; }
}
