/* POWER SCORE — 게임 세트 7(네온 골드 스튜디오) · 파워사다리 2안 (game/set-7-2/ladder.html)
   1안(game/set-7/ladder.html · set-7.css)에 얹어 쓴다. 1안과 다른 점만 여기에 둔다:
   - 배경을 박사가 없는 빈 무대(ladder2-bg.webp)로 바꾸고, 박사는 따로 뽑은 그림을 받침 뒤에 세워 손만 움직인다
   - 박사 손의 구체 · 오른쪽 번개 구체 · 사다리를 타는 번개 구슬 · 받침 양옆 바닥에서 전기가 튄다 (줄기는 js/ladder-s7-fx.js 가 그린다)
   - 오른쪽 번개 구체 둘레를 궤도 고리가 돈다 */
.s7 .cast[data-g="ld"] .scene { background-image: url(../img/s7/ladder2-bg.webp); }

/* ---------- 왼쪽 박사 · 오른쪽 번개 구체의 움직임 ----------
   배경(ladder2-bg.webp)은 빈 무대이고, 박사는 따로 뽑은 그림을 원형 받침 뒤에 세운다: 허리 위만 보이고 아래는 받침에 가려진다.
   받침이 앞을 가리도록 배경을 한 장 더 겹쳐 받침의 바깥 고리 모양(.s7-front 의 타원)만 남긴다. 받침 왼쪽 바깥은 박사 그림의 아래를 흐려 바닥에 녹인다.
   몸은 움직이지 않는다. 손+구체(.s7-prof__hand)만 손목(그림의 67.4% · 42.4%)을 축으로 까딱이고, 전기(.s7-spark)가 그 안에 들어 있어 구체를 따라간다 */
.s7-prof { position: absolute; left: -.6cqw; top: 11cqw; width: 38cqw; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 69%, transparent 75%); mask-image: linear-gradient(to bottom, #000 69%, transparent 75%); filter: drop-shadow(0 0 1.2cqw rgba(50,130,255,.4)); }
.s7-prof img { display: block; width: 100%; height: auto; }
.s7-prof__body { position: relative; }
.s7-prof__hand { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 67.4% 42.4%; animation: s7profHand 2.4s ease-in-out infinite; }
@keyframes s7profHand { 0%, 100% { transform: rotate(2.5deg); } 22% { transform: rotate(-4deg); } 36% { transform: rotate(-1.5deg); } 50% { transform: rotate(-4.5deg); } 74% { transform: rotate(1.5deg); } }
.s7-front { position: absolute; inset: 0; background: url(../img/s7/ladder2-bg.webp) center / cover no-repeat; clip-path: ellipse(46% 14.1% at 50% 79.4%); pointer-events: none; }   /* 받침의 가장 바깥(맨 아래) 고리: 무대 좌표로 가운데 (450,429) · 반지름 414 × 76 */
/* 박사와 받침이 만나는 자리에 푸른 전기 빛을 깔아 잘린 선이 도드라지지 않게 한다 */
.s7-mist { position: absolute; left: -4cqw; top: 38.5cqw; width: 34cqw; height: 9cqw; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(ellipse at 50% 50%, rgba(90,190,255,.5) 0, rgba(40,110,255,.26) 38%, rgba(30,80,255,0) 70%); animation: s7mist 2.6s ease-in-out infinite alternate; }
@keyframes s7mist { from { opacity: .65; } to { opacity: 1; } }

/* 전기 줄기: js/ladder-s7.js 가 0.08초마다 새로 그린다. 칸의 한가운데가 구체의 한가운데다.
   .is-burst 는 크게 터지는 순간(구체가 밝아진다). 왼쪽(파랑)은 박사 손의 구체에서 밖으로 튀고, 오른쪽(빨강 · --red)은 구체 안에서만 튄다 */
.s7-spark { position: absolute; left: 78.7%; top: 28.3%; width: 57.4%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.s7-spark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 .35cqw #6FE0FF) drop-shadow(0 0 1.1cqw #2B8CFF); }
.s7-spark path { fill: none; stroke: #F2FCFF; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.s7-spark path.thin { stroke-width: .9; stroke: #C9F2FF; }
.s7-spark__glow { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; margin: -23% 0 0 -23%; border-radius: 50%; background: radial-gradient(circle, rgba(190,245,255,.75) 0, rgba(70,190,255,.38) 32%, rgba(40,110,255,0) 68%); opacity: .35; mix-blend-mode: screen; animation: s7spark .46s steps(1) infinite; }
.s7-spark.is-burst .s7-spark__glow { transform: scale(1.25); animation: s7sparkB .16s steps(1) infinite; }
@keyframes s7sparkB { 0% { opacity: 1; } 50% { opacity: .7; } }
@keyframes s7spark { 0% { opacity: .3; } 22% { opacity: .62; } 40% { opacity: .22; } 61% { opacity: .5; } 80% { opacity: .34; } }
/* 오른쪽 구체(무대 좌표 782,222 · 반지름 61) 안의 빨간 전기: 구체 모양으로 잘라 밖으로 새지 않게 한다 */
.s7-spark--red { left: 86.89%; top: 41.11%; width: 13.2cqw; border-radius: 50%; overflow: hidden; mix-blend-mode: screen; }
.s7-spark--red svg { filter: drop-shadow(0 0 .3cqw #FF6A7A) drop-shadow(0 0 .9cqw #FF1E4A); }
.s7-spark--red path { stroke: #FFE9EC; stroke-width: 2.6; }
.s7-spark--red path.thin { stroke: #FFB3BF; stroke-width: 1.6; }
.s7-spark--red .s7-spark__glow { width: 100%; height: 100%; margin: -50% 0 0 -50%; background: radial-gradient(circle, rgba(255,150,170,.55) 0, rgba(255,40,90,.3) 40%, rgba(255,30,80,0) 72%); }

/* 받침 양옆 바닥을 기어 나오는 전기: 왼쪽 파랑(__b) · 오른쪽 빨강(__r) */
.s7-floor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.s7-floor path { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.s7-floor path.thin { stroke-width: 1.7; }
.s7-floor__b { filter: drop-shadow(0 0 2px #8FE4FF) drop-shadow(0 0 6px #2B8CFF) drop-shadow(0 0 12px #1E5BFF); }
.s7-floor__r { filter: drop-shadow(0 0 2px #FFA0AE) drop-shadow(0 0 6px #FF2A55) drop-shadow(0 0 12px #FF1040); }

/* 사다리를 타는 번개 구슬에서 튀는 전기 (구슬과 함께 움직인다. 줄기는 js/ladder-s7.js 가 그린다) */
.s7-zap { filter: drop-shadow(0 0 2px #FFF2A8) drop-shadow(0 0 5px #FFC400) drop-shadow(0 0 10px #FF9A00); }
.s7-zap path { fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.s7-zap path.thin { stroke: #FFF3B8; stroke-width: 1.7; }

/* 오른쪽 구체를 도는 궤도 고리: 고리가 팽이처럼 천천히 기울었다 돌아오고, 빛 알갱이가 고리를 따라 돈다 */
.s7-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 .5cqw rgba(255,190,60,.9)); }
.s7-ring__wob { animation: s7ringWob 4.2s ease-in-out infinite alternate; }
.s7-ring__dot { fill: #FFFBE0; filter: drop-shadow(0 0 3px #FFD23F); }
@keyframes s7ringWob { from { transform: rotate(-9deg); } to { transform: rotate(5deg); } }
.s7 .cast.is-soon .s7-ring__wob { animation-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) { .s7-prof__hand, .s7-ring__wob, .s7-spark__glow { animation: none; } }
