/* 랭킹 상위 20명 연출 — gx 디자인 (2026-08-20 확정, /ranking-design 목업에서 이관.
 *                        2026-08-25 10명 → 20명 확장, 구간은 /rank20-design 목업에서 골랐다)
 * ─────────────────────────────────────────────────────────────────────────────
 * 이전 rank-fx.css(빌드 생성물)를 대체한다. 이 파일은 손으로 관리한다.
 *
 * 설계 두 축
 *   · 티어(t-legend / t-epic / t-rare / t-unc) = 강도. 프레임·광량·스윕·아트 유무만 바꾼다.
 *     순위 구간은 1 / 2~3 / 4~10 / 11~20 이다.
 *     화면에 "전설/영웅" 같은 등급 글자는 쓰지 않는다 (2026-08-20 사용자 결정).
 *   · 원소색(--e) = 정체성. 용 주홍 / 불사조 금 / 이무기 청록 / 그리핀 보라 / 늑대 청람 …
 *     한 줄 안의 프레임·순위 숫자·아이템명·값·글로우가 전부 --e 하나에서 나온다.
 *
 * 구도는 영화 포스터를 따른다 — 왼쪽은 스크림(어둠) 위의 타이포, 오른쪽은 아트.
 * 생물은 마스크된 오른쪽 구역에서만 보이므로 이름 위를 지나가지 않는다.
 *
 * 쓰는 법 (세 화면 공통):
 *   <div class="rank-row${IjwRankGx.cls(rank)}">${IjwRankGx.layers(rank)}
 *     … <span class="nm">${IjwRankGx.name(rank, 이름)}</span> …
 *   </div>
 * 21위 이하는 cls·layers가 빈 문자열이라 기존 줄 그대로 렌더된다.
 */

/* ═══════════════ 공통 엔진 ═══════════════ */
.gx{position:relative;overflow:hidden;isolation:isolate;border-color:transparent !important;
  /* 각 화면의 줄·시상대가 이미 밝은 배경을 갖고 있고(.pod.p1의 금색 그라데 등) 그쪽 선택자가 더 세거나
     인라인 <style>이 뒤에 오므로, 바탕만은 !important로 확실히 덮는다 */
  background:rgb(var(--gr,16 12 26)) !important;
  --frame:.34;--glow:.3;--artA:1;--dA:1}
.gx>*{position:relative;z-index:5}

/* 원소 광원 — 파티클을 늘리는 대신 빛으로 생동감을 만든다 */
.gx .gxL{position:absolute;inset:-30% -10% -60% 20%;z-index:1;pointer-events:none;
  background:radial-gradient(60% 100% at 72% 100%,rgb(var(--e) / var(--glow)),transparent 70%);
  animation:gxBreath 6.5s ease-in-out infinite}
@keyframes gxBreath{0%,100%{opacity:.72;transform:scale(1)}50%{opacity:1;transform:scale(1.07)}}

/* 그레인 — 평평한 그라데이션을 필름 질감으로 바꾸는 한 겹 */
.gx .gxN{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:.07;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E")}

/* 좌측 스크림 — 어떤 이펙트 위에서도 글자가 읽힌다 (검정 알약이 필요 없어진다) */
.gx .gxS{position:absolute;inset:0;z-index:4;pointer-events:none;
  background:
    linear-gradient(90deg,rgb(var(--gr) / .94) 0%,rgb(var(--gr) / .74) 30%,rgb(var(--gr) / .1) 58%,transparent 74%),
    radial-gradient(120% 150% at 50% 50%,transparent 48%,rgb(0 0 0 / .4) 100%)}

/* 스펙큘러 스윕 — 넓고 옅게, 8초에 한 번 */
.gx .gxW{position:absolute;top:-60%;bottom:-60%;width:26%;z-index:5;pointer-events:none;
  transform:rotate(14deg);opacity:0;
  background:linear-gradient(90deg,transparent,rgb(255 255 255 / .16),rgb(var(--e2) / .1),transparent);
  animation:gxSweep 8s cubic-bezier(.5,0,.3,1) infinite}
@keyframes gxSweep{0%{left:-30%;opacity:0}6%{opacity:var(--swA,.9)}
  26%{opacity:var(--swA,.9)}34%,100%{left:118%;opacity:0}}

/* 프레임 — 내부 하이라이트 + 바닥 그림자로 두께감 */
.gx .gxF{position:absolute;inset:0;z-index:7;pointer-events:none;border-radius:inherit;
  border:1px solid rgb(var(--e) / var(--frame));
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .13),inset 0 -26px 44px rgb(0 0 0 / .42)}

/* 아트 — 마스크된 오른쪽 구역 안에서만 등장하고 사라진다 */
.gx .gxA{position:absolute;top:0;bottom:0;right:0;width:62%;z-index:2;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 32%,#000 86%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 32%,#000 86%,transparent 100%)}
.gx .gxA i{position:absolute;right:0;top:50%;height:178%;aspect-ratio:2 / 1;display:block;
  background-repeat:no-repeat;background-size:calc(var(--n,1) * 100%) 100%;
  filter:drop-shadow(0 0 12px rgb(var(--e) / .55));
  transform:translate(-92%,-50%);
  animation:gxCross var(--dur,9s) linear infinite,gxStrip .5s steps(var(--n,1)) infinite}
/* 배경 퍼센트 좌표는 (컨테이너-이미지) 기준 — 끝값 100%×N/(N-1)이라야 프레임이 정확히 밟힌다 */
@keyframes gxStrip{to{background-position-x:var(--stripto,200%)}}
@keyframes gxCross{
  0%{transform:translate(-92%,-50%);opacity:0}
  16%{opacity:var(--artA)}
  74%{opacity:var(--artA)}
  100%{transform:translate(16%,-50%);opacity:0}}

/* ═══════════════ 티어 사다리 (글자 없이 강도만) ═══════════════ */
/* 2026-08-25 — 연출을 20등까지 늘리면서 경계를 1 / 2~3 / 4~10 / 11~20으로 옮기고(A안),
   구간끼리의 차이를 "뚜렷"하게 벌렸다. 시그니처 파티클(--dA)은 사용자 결정으로 건드리지 않는다
   — 11~20위도 장식 자체는 또렷이 보이고, 프레임·광량·아트·스윕만 조용해진다.
   숫자를 고르는 데 쓴 목업은 /rank20-design 이다. */
.t-legend{--frame:.62;--glow:.5;--artA:1}
.t-epic{--frame:.4;--glow:.37;--artA:.93}
.t-rare{--frame:.24;--glow:.26;--artA:.57;--swA:.56}
.t-unc{--frame:.04;--glow:.04;--artA:.04;--swA:.04}
.t-rare .gxW{animation-duration:11s}
.t-unc .gxW{animation-duration:20s}
.gx.t-legend .gxF{border-width:1.5px;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .2),inset 0 -30px 50px rgb(0 0 0 / .45),
             0 0 0 1px rgb(var(--e) / .18)}

/* ═══════════════ 장식(스킨)별 색 ═══════════════
   순위에 고정돼 있던 것을 키로 바꿨다 — TOP10 학생이 직접 고르기 때문(2026-08-21).
   고른 게 없으면 rank-gx.js가 순위 기본값(1위=dragon … 10위=warp)을 쓴다. */
.gs-dragon{--e:255 122 52;--e2:255 205 128;--gr:22 10 6;--dur:9s;--dA:.9}
.gs-phoenix{--e:255 190 74;--e2:255 236 176;--gr:24 16 4;--dur:8.4s;--dA:.9}
.gs-serpent{--e:56 220 202;--e2:186 255 246;--gr:4 24 30;--dur:9.6s;--dA:.9}
.gs-griffin{--e:154 126 255;--e2:214 202 255;--gr:10 10 30;--dur:10s;--dA:.6}
.gs-wolf{--e:112 168 255;--e2:198 224 255;--gr:9 15 30;--dur:7.2s;--dA:.6}
.gs-gold{--e:226 174 74;--e2:255 228 168;--gr:26 19 6}
.gs-obsidian{--e:255 120 70;--e2:255 190 150;--gr:18 10 10}
.gs-aurora{--e:80 226 176;--e2:186 255 232;--gr:6 22 26;--dA:.95}
.gs-deepspace{--e:134 148 255;--e2:204 212 255;--gr:8 9 26}
.gs-warp{--e:128 156 255;--e2:200 216 255;--gr:7 8 26}
/* 2026-08-20 추가분 — 남성형 5 */
.gs-steel{--e:150 185 230;--e2:228 242 255;--gr:10 15 22}
.gs-bolt{--e:140 195 255;--e2:222 240 255;--gr:7 10 26}
.gs-magma{--e:255 120 45;--e2:255 212 140;--gr:20 7 4}
.gs-moon{--e:255 95 110;--e2:255 195 200;--gr:18 5 12}
.gs-sonic{--e:90 205 255;--e2:205 242 255;--gr:5 13 24}
/* 여성형 5 */
.gs-sakura{--e:255 150 200;--e2:255 222 236;--gr:46 17 35}
.gs-fairy{--e:196 165 255;--e2:236 222 255;--gr:23 16 42}
.gs-ocean{--e:95 220 235;--e2:202 250 255;--gr:6 29 42}
.gs-heart{--e:255 120 175;--e2:255 208 226;--gr:44 13 31}
.gs-crystal{--e:170 232 255;--e2:236 250 255;--gr:17 25 44}

/* ── 순위별 시그니처 연출 ────────────────────────────────────────
   티어를 낮춘다고 아무것도 없는 검은 막대가 되면 안 된다. 순위마다 고유 연출은 그대로 두고
   오른쪽 구역에 모아 둔 뒤, 속도·불투명도·개수만 티어에 따라 낮춘다. */
.gx .gxD{position:absolute;top:0;bottom:0;right:0;width:68%;z-index:2;pointer-events:none;
  overflow:hidden;opacity:var(--dA,1);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 32%,#000 93%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 32%,#000 93%,transparent 100%)}
.gx .gxD i{position:absolute}
@keyframes dSpin{to{transform:rotate(1turn)}}
@keyframes dDrift{to{transform:translateX(28px)}}
@keyframes dPulse{0%{opacity:.32}100%{opacity:1}}
@keyframes dTwinkle{0%,100%{opacity:.2;transform:scale(.7)}50%{opacity:1;transform:scale(1.4)}}
@keyframes dStreak{0%{left:-20%;opacity:0;transform:scaleX(.4)}
  14%{opacity:1}82%{opacity:1}100%{left:112%;opacity:0;transform:scaleX(1.5)}}
@keyframes dEmber{0%{transform:translate(0,0) scale(.5);opacity:0}
  18%{opacity:.9}100%{transform:translate(-16px,-170%) scale(1.1);opacity:0}}
@keyframes dMeteor{0%{left:-18%;top:6%;opacity:0}6%{opacity:1}
  22%{opacity:1}30%,100%{left:112%;top:76%;opacity:0}}

/* 1위 용 — 불씨 */
.d-ember::before{content:"";position:absolute;inset:0;
  background:radial-gradient(70% 130% at 72% 118%,rgb(255 90 0 / .5),transparent 68%)}
.d-ember i{bottom:-8%;width:5px;height:5px;border-radius:50%;
  background:radial-gradient(circle,#fff6d5,#ff8a00 52%,transparent 74%);
  animation:dEmber 2.2s ease-out infinite}
.d-ember i:nth-child(1){left:48%}
.d-ember i:nth-child(2){left:66%;animation-delay:-.7s}
.d-ember i:nth-child(3){left:82%;animation-delay:-1.3s}
.d-ember i:nth-child(4){left:94%;animation-delay:-1.8s}

/* 2위 불사조 — 금빛 부챗살과 불깃털 */
.d-plume::before{content:"";position:absolute;inset:-130% -50%;opacity:.45;
  background:repeating-conic-gradient(from 0deg at 74% 50%,
    transparent 0 4deg,rgb(255 250 220 / .6) 5deg,transparent 6deg 15deg);
  animation:dSpin 22s linear infinite}
.d-plume i{width:5px;height:9px;border-radius:60% 60% 40% 40%;top:-12%;
  background:linear-gradient(180deg,#fff6d5,#ff9d00);animation:dPlumeFall 3s ease-in infinite}
.d-plume i:nth-child(1){left:50%}
.d-plume i:nth-child(2){left:68%;animation-delay:-1s}
.d-plume i:nth-child(3){left:88%;animation-delay:-2s}
@keyframes dPlumeFall{0%{transform:translate(0,0) rotate(0);opacity:0}
  16%{opacity:.95}100%{transform:translate(-18px,80px) rotate(140deg);opacity:0}}

/* 3위 이무기 — 물빛과 기포 */
.d-bub::before{content:"";position:absolute;inset:0;
  background:radial-gradient(70% 130% at 70% 110%,rgb(0 200 220 / .4),transparent 70%),
             repeating-radial-gradient(circle at 74% 40%,rgb(180 255 250 / .18) 0 2px,transparent 2px 15px)}
.d-bub i{bottom:-10%;border-radius:50%;border:1.5px solid rgb(220 255 255 / .8);
  background:radial-gradient(circle at 35% 30%,rgb(255 255 255 / .55),transparent 55%);
  animation:dBubble 3.4s linear infinite}
.d-bub i:nth-child(1){left:48%;width:7px;height:7px}
.d-bub i:nth-child(2){left:66%;width:5px;height:5px;animation-delay:-1.2s;animation-duration:2.8s}
.d-bub i:nth-child(3){left:82%;width:9px;height:9px;animation-delay:-2.1s;animation-duration:4s}
.d-bub i:nth-child(4){left:94%;width:6px;height:6px;animation-delay:-.6s}
@keyframes dBubble{0%{transform:translate(0,0) scale(.6);opacity:0}
  14%{opacity:.95}100%{transform:translate(7px,-175%) scale(1.15);opacity:0}}

/* 4·9위 심우주 — 성운 위로 별이 반짝이고 유성이 지나간다 */
.d-space::before{content:"";position:absolute;inset:-80% -40%;filter:blur(13px);opacity:.6;
  background:conic-gradient(from 0deg at 58% 50%,#3b1d7a,#7b2ff7,#1e5cff,#00c2c7,#3b1d7a);
  animation:dSpin 30s linear infinite}
.d-space::after{content:"";position:absolute;height:2px;width:78px;border-radius:2px;
  transform:rotate(15deg);background:linear-gradient(90deg,transparent,#fff,rgb(160 200 255 / .9),transparent);
  filter:drop-shadow(0 0 6px #9fc4ff);animation:dMeteor 7.5s linear infinite}
.d-space i{width:2px;height:2px;border-radius:50%;background:#fff;
  animation:dTwinkle 2.8s ease-in-out infinite}
.d-space i:nth-child(1){left:38%;top:30%}
.d-space i:nth-child(2){left:52%;top:70%;animation-delay:-.6s}
.d-space i:nth-child(3){left:64%;top:24%;animation-delay:-1.2s}
.d-space i:nth-child(4){left:77%;top:62%;animation-delay:-1.8s}
.d-space i:nth-child(5){left:88%;top:36%;animation-delay:-.3s}
.d-space i:nth-child(6){left:96%;top:72%;animation-delay:-2.4s}

/* 5위 질풍 늑대 — 뇌운과 속도선 */
.d-speed::before{content:"";position:absolute;inset:0;
  background:radial-gradient(70% 140% at 68% 122%,rgb(120 170 255 / .45),transparent 66%)}
.d-speed i{height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,rgb(190 220 255 / .95),transparent);
  animation:dStreak 1.15s linear infinite}
.d-speed i:nth-child(1){top:28%;width:42px;animation-delay:-.1s}
.d-speed i:nth-child(2){top:56%;width:60px;animation-delay:-.45s}
.d-speed i:nth-child(3){top:78%;width:32px;animation-delay:-.8s}

/* 6위 황금 개선 — 오른쪽 소실점에서 부챗살 광선이 아주 느리게 돈다 */
.d-gold::before{content:"";position:absolute;inset:-130% -50%;opacity:.5;
  background:repeating-conic-gradient(from 0deg at 76% 50%,
    transparent 0 4deg,rgb(255 240 196 / .55) 5deg,transparent 6deg 17deg);
  animation:dSpin 26s linear infinite}
.d-gold::after{content:"";position:absolute;inset:0;
  background:radial-gradient(58% 120% at 78% 62%,rgb(255 198 96 / .5),transparent 72%)}
.d-gold i{width:5px;height:5px;border-radius:50%;
  background:radial-gradient(circle,#fff 20%,#ffe9a8 48%,transparent 74%);
  animation:dTwinkle 2.6s ease-in-out infinite}
.d-gold i:nth-child(1){left:46%;top:26%}
.d-gold i:nth-child(2){left:68%;top:66%;animation-delay:-.9s}
.d-gold i:nth-child(3){left:86%;top:34%;animation-delay:-1.7s}

/* 7위 흑요석 균열 — 갈라진 틈으로 용암이 새어 나온다 */
.d-lava::before{content:"";position:absolute;inset:0;
  background:radial-gradient(70% 130% at 82% 108%,rgb(255 90 0 / .55),transparent 68%),
             radial-gradient(40% 90% at 52% 112%,rgb(255 183 3 / .32),transparent 70%)}
.d-lava i{top:-12%;bottom:-12%;width:2px;
  background:linear-gradient(180deg,transparent,#ff7a1a,#ffd76a,#ff5a00,transparent);
  filter:drop-shadow(0 0 6px rgb(255 106 0 / .95));
  animation:dPulse 2.4s ease-in-out infinite alternate}
.d-lava i:nth-child(1){left:44%;transform:rotate(9deg)}
.d-lava i:nth-child(2){left:62%;transform:rotate(-7deg);animation-delay:-.7s}
.d-lava i:nth-child(3){left:79%;transform:rotate(11deg);animation-delay:-1.3s}
.d-lava i:nth-child(4){left:93%;transform:rotate(-5deg);animation-delay:-1.9s}

/* 8위 오로라 — 색이 계속 순환한다 */
.d-aurora::before{content:"";position:absolute;inset:-70% -30%;filter:blur(15px);opacity:.62;
  background:conic-gradient(from 200deg at 62% 50%,#00e5a0,#4dd0ff,#a77dff,#ff6ab0,#00e5a0);
  animation:dSpin 19s linear infinite}
.d-aurora::after{content:"";position:absolute;inset:0;
  background:repeating-linear-gradient(100deg,transparent 0 26px,rgb(190 250 255 / .11) 26px 28px);
  animation:dDrift 3.6s linear infinite}

/* 10위 워프 — 별빛이 늘어나며 지나간다 */
.d-warp::before{content:"";position:absolute;inset:0;
  background:radial-gradient(60% 120% at 70% 50%,rgb(90 120 255 / .42),transparent 70%)}
.d-warp i{height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,#fff,rgb(150 190 255 / .9),transparent);
  animation:dStreak 1.7s linear infinite}
.d-warp i:nth-child(1){top:22%;width:40px;animation-delay:-.15s}
.d-warp i:nth-child(2){top:44%;width:58px;animation-delay:-.6s}
.d-warp i:nth-child(3){top:66%;width:30px;animation-delay:-1.05s}
.d-warp i:nth-child(4){top:84%;width:48px;animation-delay:-1.4s}

/* ═══════════════ 이름 ═══════════════ */
.gx .gt{display:block;color:#fff;font-weight:900;letter-spacing:-.3px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  text-shadow:0 1px 3px rgb(0 0 0 / .75)}
.gx .gsub{display:block;margin-top:2px;font-size:10.5px;font-weight:850;letter-spacing:.3px;
  color:rgb(var(--e));text-shadow:0 1px 3px rgb(0 0 0 / .7);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ═══════════════ 화면 ① 전체 랭킹 · 홈 — 순위 줄 ═══════════════ */
.rank-row.gx{min-height:56px;padding:9px 14px;gap:12px;border-radius:13px;
  transition:transform .16s cubic-bezier(.22,1,.36,1)}
.rank-row.gx:hover{transform:translateY(-2px)}
.rank-row.gx:hover .gxW{animation:gxSweep 1.15s cubic-bezier(.5,0,.3,1)}
.rank-row.gx::before{content:"";position:absolute;left:0;top:16%;bottom:16%;width:2px;z-index:8;
  border-radius:0 2px 2px 0;background:rgb(var(--e) / .55)}
.rank-row.gx .rk{width:auto;min-width:24px;height:auto;border-radius:0;
  background:none !important;font-size:19px;font-weight:900;letter-spacing:-1px;
  color:rgb(var(--e)) !important;font-variant-numeric:tabular-nums;
  text-shadow:0 1px 10px rgb(var(--e) / .5),0 1px 2px rgb(0 0 0 / .6)}
.rank-row.gx.t-legend .rk,.rank-row.gx.t-epic .rk{
  background:linear-gradient(170deg,#fff 8%,rgb(var(--e2)) 42%,rgb(var(--e)) 92%) !important;
  -webkit-background-clip:text;background-clip:text;color:transparent !important;
  filter:drop-shadow(0 1px 4px rgb(var(--e) / .55))}
.rank-row.gx .nm{white-space:normal;line-height:1.18}
.rank-row.gx .gt{font-size:15.5px}
.rank-row.gx .vl{color:#fff !important;font-size:14.5px;font-weight:900;
  text-shadow:0 1px 4px rgb(0 0 0 / .8)}
/* 내 줄 — 왼쪽 끝 발광 바 */
.rank-row.gx.me-row{background:rgb(var(--gr)) !important;border-color:transparent !important}
.rank-row.gx.me-row::before{width:3px;top:12%;bottom:12%;
  background:linear-gradient(180deg,#fff,rgb(var(--e)));box-shadow:0 0 12px rgb(var(--e) / .9)}

/* ═══════════════ 화면 ① 전체 랭킹 · 홈 — 시상대 ═══════════════
   메달을 크게 놓던 자리를 아트에 내주고, 메달은 코너 배지로 내린다.
   계단(pstep)은 원소색 빛띠가 되고 순위 숫자만 남는다. */
.pod.gx{padding-top:0}
/* 시상대는 아트가 주인공이다. 줄에서 쓰는 가로 스크림을 그대로 두면 카드 왼쪽 절반이 새까매져
   그림이 안 보인다 → 위(그림)는 그대로 두고 아래(글자 영역)만 덮는 세로 스크림으로 바꾼다 */
.pod.gx .gxS{background:
  linear-gradient(180deg,rgb(var(--gr) / .1) 0%,rgb(var(--gr) / .03) 42%,
                         rgb(var(--gr) / .6) 74%,rgb(var(--gr) / .92) 100%),
  radial-gradient(150% 120% at 50% 28%,transparent 58%,rgb(0 0 0 / .28) 100%)}
.pod.gx .gxF{box-shadow:inset 0 1px 0 rgb(255 255 255 / .14),inset 0 -18px 30px rgb(0 0 0 / .3)}
/* 1위 칸을 넓게 — 전체 랭킹 페이지에서만(홈 사이드 칼럼은 폭이 좁아 그대로 둔다) */
/* 전체 랭킹 페이지(폭 860px)에서 시상대를 그대로 두면 칸이 가로로 퍼져 정사각 그림이
   좌우에 여백을 남기고, 그 여백 때문에 아트 판이 네모로 잘려 보인다.
   목업처럼 세로형 카드가 되도록 시상대 폭을 묶는다 (홈 사이드 칼럼은 이미 좁아 해당 없음) */
.card:not(.rank-card) > .podium:has(.pod.gx){grid-template-columns:1.02fr 1.34fr .92fr;
  max-width:560px;margin-left:auto;margin-right:auto;gap:10px}
.pod.gx .gsub{display:none}                    /* 시상대에는 아이템명을 쓰지 않는다 */
.pod.gx .gxA{top:0;bottom:auto;right:0;left:0;width:100%;height:var(--arth,132px);
  -webkit-mask-image:none;mask-image:none}
/* 페이드는 "칸"이 아니라 "그림 자신"에 건다 — 칸에 걸면 그림 크기와 무관하게 늘 같은 자리에서 잘려
   날개·꼬리가 사라진다(목업과 달라 보이던 원인). 그림은 640×640 정사각이라 칸보다 크게 잡아야
   목업(가로 108%)만큼 커 보인다. */
.pod.gx .gxA i{left:50%;right:auto;top:50%;height:116%;width:116%;aspect-ratio:auto;
  background-position:center;background-size:contain;
  -webkit-mask-image:radial-gradient(58% 58% at 50% 48%,#000 66%,transparent 100%);
          mask-image:radial-gradient(58% 58% at 50% 48%,#000 66%,transparent 100%);
  transform:translate(-50%,-50%);animation:gpodBreath 6s ease-in-out infinite}
@keyframes gpodBreath{0%,100%{transform:translate(-50%,-50%) scale(.97)}
  50%{transform:translate(-50%,-52%) scale(1.02)}}

/* ── 시상대 포효 애니메이션 (2026-08-21) ────────────────────────────────
   <이름>-roar-anim.png(640×640 프레임 N장 가로 연결)이 있으면 rank-gx.js가 .roar 를 붙인다.
   ⚠ 프레임이 정사각이라 칸도 정사각이어야 한다 — 여기서 contain 을 버리고 한 변을 --arth 로
     직접 계산한다. min(116%, arth×1.16) 은 contain 이 고르던 값과 정확히 같다 — 홈 랭킹 카드처럼
     칸이 좁은 곳에서 arth 만 보고 잡으면 그림이 커져 좌우가 잘린다(실측 44px 초과). */
.pod.gx .gxA i.roar{width:min(116%,calc(var(--arth,132px) * 1.16));height:auto;aspect-ratio:1;
  background-size:calc(var(--n,1) * 100%) 100%;background-position-y:center;
  animation:gpodBreath 6s ease-in-out infinite,gxRoar4 1.15s steps(1) infinite}
/* 4프레임 핑퐁 1-2-3-4-3-2 — 다뭄→벌림→크게→최대→크게→벌림 이 끝없이 이어진다.
   퍼센트 좌표는 (컨테이너-이미지) 기준이라 프레임 i = 100%×i/(N-1). N=4면 0/33.3/66.7/100. */
@keyframes gxRoar4{
  0%     {background-position-x:0%}
  16.66% {background-position-x:33.333%}
  33.33% {background-position-x:66.666%}
  50%    {background-position-x:100%}
  66.66% {background-position-x:66.666%}
  83.33% {background-position-x:33.333%}
  100%   {background-position-x:0%}}
.pod.gx .ptop{padding-top:var(--arth,132px) !important;position:relative;z-index:6}
.pod.gx.p1{--arth:192px}
.pod.gx.p2{--arth:150px}
.pod.gx.p3{--arth:128px}
/* 홈의 시상대는 사이드 칼럼(높이 고정)이라 아트를 작게 잡는다 — 안 그러면 이름·값이 그림에 파묻힌다.
   3등분 균등이면 1위 칸 폭이 2·3위와 같아 1위 그림이 오히려 작게 나온다(칸 폭이 그림 크기를 제한) → 1위 칸을 넓힌다 */
.rank-card .podium:has(.pod.gx){grid-template-columns:1fr 1.22fr 1fr}
.rank-card .pod.gx{--arth:104px}
.rank-card .pod.gx.p1{--arth:128px}
.rank-card .pod.gx .gt{font-size:13.5px}
.rank-card .pod.gx.p1 .gt{font-size:15.5px}
.rank-card .pod.gx .pmedal img{height:24px !important}
.rank-card .pod.gx.p1 .pmedal img{height:30px !important}
.rank-card .pod.gx .pmedal{left:6px;top:6px}
.rank-card .pod.gx .pname::before{font-size:9.5px;letter-spacing:.8px;margin-bottom:1px}
.rank-card .pod.gx.p1 .pname::before{font-size:11.5px;letter-spacing:1.2px}
.rank-card .pod.gx .pstep{height:11px !important}
.rank-card .pod.gx.p1 .pstep{height:15px !important}
/* 충격파 — 6초에 한 번, 얇고 넓게. 1·2·3위는 시차를 둔다 */
.pod.gx::after{content:"";position:absolute;left:50%;top:calc(var(--arth,132px) / 2);
  width:58%;aspect-ratio:1;z-index:3;border-radius:50%;pointer-events:none;opacity:0;
  border:1.5px solid rgb(var(--e) / .85);animation:gpodRing 6s cubic-bezier(.2,.7,.3,1) infinite}
@keyframes gpodRing{0%,62%{transform:translate(-50%,-50%) scale(.35);opacity:0}
  68%{opacity:.85}92%,100%{transform:translate(-50%,-50%) scale(2.1);opacity:0}}
.pod.gx.p2::after,.pod.gx.p2 .gxA i{animation-delay:-2s}
.pod.gx.p3::after,.pod.gx.p3 .gxA i{animation-delay:-4s}
/* 1위 — 뒤에서 금빛 광선이 아주 느리게 돌고 위에서 빛이 떨어진다 */
.pod.gx.p1 .gxL{inset:-20% -10% 40% -10%;
  background:radial-gradient(60% 90% at 50% 10%,rgb(var(--e) / .42),transparent 72%),
             repeating-conic-gradient(from 0deg at 50% 30%,
               transparent 0 5deg,rgb(255 236 190 / .22) 6deg,transparent 7deg 19deg);
  animation:dSpin 44s linear infinite}
.pod.gx.p1{--frame:.8}
.pod.gx.p3{--frame:.3}
/* 메달 — 코너 배지 */
.pod.gx .pmedal{position:absolute;left:10px;top:10px;height:auto !important;z-index:8;
  font-size:0 !important;display:block !important}
.pod.gx .pmedal img{height:32px !important;width:auto;display:block;
  filter:drop-shadow(0 3px 6px rgb(0 0 0 / .55))}
.pod.gx.p1 .pmedal img{height:46px !important}
.pod.gx.p3 .pmedal img{height:28px !important}
/* 이름·값 */
.pod.gx .pname{color:#fff !important;margin-top:0}
.pod.gx .pname::before{display:block;font-size:12px;font-weight:900;letter-spacing:1.4px;
  color:rgb(var(--e));margin-bottom:3px;text-shadow:0 1px 8px rgb(var(--e) / .6)}
.pod.gx.p1 .pname::before{content:"1위";font-size:16px;letter-spacing:2px;
  background:linear-gradient(170deg,#fff 6%,rgb(var(--e2)) 40%,rgb(var(--e)) 94%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 1px 5px rgb(var(--e) / .7))}
.pod.gx.p2 .pname::before{content:"2위"}
.pod.gx.p3 .pname::before{content:"3위";font-size:11px}
.pod.gx .gt{font-size:17px}
.pod.gx.p1 .gt{font-size:24px;letter-spacing:-.7px}
.pod.gx.p3 .gt{font-size:15px}
.pod.gx .pval{color:#fff !important;font-weight:900;
  text-shadow:0 1px 4px rgb(0 0 0 / .85),0 0 10px rgb(0 0 0 / .5)}
.pod.gx.p1 .pval{font-size:19px}
/* 계단 → 원소색 빛띠 */
.pod.gx .pstep{background:linear-gradient(180deg,rgb(var(--e) / .62),rgb(var(--e) / .12)) !important;
  color:transparent !important;font-size:0 !important;height:16px !important;z-index:6}
.pod.gx.p1 .pstep{height:22px !important}
.pod.gx.p3 .pstep{height:11px !important}
.pod.gx.p1 .pstep{background:linear-gradient(180deg,rgb(var(--e) / .85),rgb(var(--e) / .16)) !important}
.pod.gx .pyou{background:rgb(255 255 255 / .2) !important;
  box-shadow:inset 0 0 0 1px rgb(255 255 255 / .35);z-index:8}
/* 시상대 정면 포효 그림 — 옆모습 스트립 대신 정면 그림을 쓴다 */
.pod.gx.gs-dragon .gxA i{background-image:url("/assets/rank/dragon-roar.png?v=1") !important}
.pod.gx.gs-phoenix .gxA i{background-image:url("/assets/rank/phoenix-roar.png?v=1") !important}
.pod.gx.gs-serpent .gxA i{background-image:url("/assets/rank/serpent-roar.png?v=1") !important}

/* ═══════════════ 화면 ② 홈 — 최근 공부한 친구 ═══════════════ */
.peer-row.gx{border-radius:12px;padding:9px 12px}
.peer-row.gx .gsub{display:none}
.peer-row.gx .gt{display:inline-block;font-size:14px;vertical-align:-1px}
.peer-row.gx .rc-cnt,.peer-row.gx .rc-ago{color:#fff !important;text-shadow:0 1px 3px rgb(0 0 0 / .8)}
.peer-row.gx .rc-tag{color:#fff !important;background:rgb(255 255 255 / .22) !important;
  text-shadow:0 1px 2px rgb(0 0 0 / .6)}
.peer-row.gx .rc-dot{background:rgb(var(--e)) !important;
  box-shadow:0 0 8px rgb(var(--e) / .9)}

/* ═══════════════ 화면 ③ 전광판 (/srs-ranking) ═══════════════
   컨테이너 쿼리 단위(cqw)로 짜인 화면이라 글자 크기는 건드리지 않고 색만 덮는다. */
.rank-row.gx .rank-no{color:rgb(var(--e)) !important;
  text-shadow:0 1px 10px rgb(var(--e) / .5),0 1px 3px rgb(0 0 0 / .7)}
.rank-row.gx .avatar{background:rgb(255 255 255 / .16) !important;color:#fff !important;
  box-shadow:inset 0 0 0 1px rgb(255 255 255 / .3)}
.rank-row.gx .score{color:#fff !important;text-shadow:0 1px 4px rgb(0 0 0 / .8)}
.rank-row.gx .score small{color:rgb(255 255 255 / .68) !important}
.rank-row.gx::after{display:none}              /* 전광판 기본 줄의 흰 광택은 gxW가 대신한다 */
.rank-row.gx .name .gt{font-size:inherit}
.rank-row.gx .name .gsub{font-size:.62em}
.pod.gx .pod-body{position:relative;z-index:6;padding-top:var(--arth,132px)}
.pod.gx .medal{position:absolute;left:1.2cqw;top:1.2cqw;z-index:8}
.pod.gx .pod-name{color:#fff !important}
.pod.gx .pod-class{color:rgb(255 255 255 / .85) !important;text-shadow:0 1px 3px rgb(0 0 0 / .7)}
.pod.gx .pod-score{color:#fff !important;text-shadow:0 1px 4px rgb(0 0 0 / .8)}
.pod.gx .step{background:linear-gradient(180deg,rgb(var(--e) / .62),rgb(var(--e) / .12)) !important;
  color:#fff !important;z-index:6}

/* ═══════════════ 추가 장식 10종 (남성형 5 · 여성형 5) ═══════════════ */
/* ── 남성형 ─────────────────────────────────────────────────── */

/* 강철 요새 — 금속판 위를 스캐너가 훑고 리벳이 빛난다 */
.d-steel::before { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(126deg, rgb(255 255 255 / .05) 0 3px, transparent 3px 9px),
              linear-gradient(150deg, rgb(120 150 185 / .38), rgb(30 44 62 / .1) 60%),
              radial-gradient(60% 120% at 82% 40%, rgb(150 190 235 / .3), transparent 72%); }
.d-steel::after { content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgb(190 225 255 / .95), transparent);
  box-shadow: 0 0 12px rgb(150 200 255 / .8); animation: dScan 3.6s linear infinite; }
@keyframes dScan { 0% { top: -6%; opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { top: 104%; opacity: 0; } }
.d-steel i { width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #eaf4ff, #6b8bb0 60%, #2b3d55);
  box-shadow: inset 0 -1px 1px rgb(0 0 0 / .5), 0 0 6px rgb(160 200 255 / .5); }
.d-steel i:nth-child(1) { left: 40%; top: 22%; }
.d-steel i:nth-child(2) { left: 40%; top: 74%; }
.d-steel i:nth-child(3) { left: 92%; top: 22%; }
.d-steel i:nth-child(4) { left: 92%; top: 74%; }

/* 뇌전 — 2.9초마다 번개가 내리치고 줄 전체가 하얗게 뜬다 */
.d-bolt::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(75% 140% at 66% 132%, rgb(96 150 250 / .7), transparent 68%),
              radial-gradient(45% 90% at 88% 20%, rgb(180 215 255 / .3), transparent 70%),
              linear-gradient(180deg, rgb(150 190 255 / .22), transparent 58%); }
.d-bolt::after { content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(180deg, rgb(226 242 255 / .9), rgb(150 200 255 / .2) 55%, transparent);
  animation: dFlash 2.9s linear infinite; }
@keyframes dFlash { 0%, 82% { opacity: 0; } 85% { opacity: .85; } 88% { opacity: 0; }
  91% { opacity: .55; } 94%, 100% { opacity: 0; } }
.d-bolt i { width: 16px; height: 32px; top: 50%; margin-top: -16px; opacity: 0;
  background: linear-gradient(180deg, #ffffff, #a9d4ff);
  filter: drop-shadow(0 0 8px rgb(140 200 255 / .95));
  clip-path: polygon(54% 0, 20% 56%, 46% 56%, 34% 100%, 80% 40%, 52% 40%, 68% 0);
  animation: dBolt 2.9s linear infinite; }
.d-bolt i:nth-child(1) { left: 46%; }
.d-bolt i:nth-child(2) { left: 68%; height: 40px; margin-top: -20px; animation-delay: .06s; }
.d-bolt i:nth-child(3) { left: 88%; height: 26px; margin-top: -13px; animation-delay: .12s; }
@keyframes dBolt { 0%, 83% { opacity: 0; transform: scaleY(.6); }
  85% { opacity: 1; transform: scaleY(1); } 89% { opacity: 0; }
  92% { opacity: .8; } 95%, 100% { opacity: 0; } }

/* 용암 심연 — 갈라진 바닥에서 용암이 흐르고 불티가 튄다 */
.d-magma::before { content: ""; position: absolute; inset: -20% -10%;
  background: radial-gradient(50% 90% at 30% 110%, #ff4d00, transparent 60%),
              radial-gradient(45% 80% at 66% 118%, #ffab00, transparent 62%),
              radial-gradient(50% 90% at 96% 106%, #ff2d00, transparent 58%);
  filter: blur(6px); animation: dBlob 3.4s ease-in-out infinite alternate; }
@keyframes dBlob { to { transform: translate(-6%, -8%) scale(1.14); } }
.d-magma::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(20 6 3 / .68), transparent 62%); }
.d-magma i { bottom: -6%; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle, #fff6d5, #ff7a00 55%, transparent 74%);
  animation: dEmber 2s ease-out infinite; }
.d-magma i:nth-child(1) { left: 40%; }
.d-magma i:nth-child(2) { left: 56%; animation-delay: -.5s; }
.d-magma i:nth-child(3) { left: 72%; animation-delay: -1s; }
.d-magma i:nth-child(4) { left: 86%; animation-delay: -1.4s; }
.d-magma i:nth-child(5) { left: 96%; animation-delay: -1.7s; }

/* 혈월 — 붉은 달이 뜨고 안개가 흐른다 */
.d-moon::before { content: ""; position: absolute; right: 14%; top: 50%; width: 74px; height: 74px;
  margin-top: -37px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #ff9a9a, #e0344a 58%, #7d0f22);
  box-shadow: 0 0 26px rgb(255 60 80 / .65), 0 0 60px rgb(200 20 50 / .45);
  animation: dMoonRise 7s ease-in-out infinite; }
@keyframes dMoonRise { 0%, 100% { transform: translateY(4px) scale(.97); opacity: .9; }
  50% { transform: translateY(-4px) scale(1); opacity: 1; } }
.d-moon::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(96deg, transparent 0 22px, rgb(255 120 140 / .1) 22px 44px);
  filter: blur(3px); animation: dDrift 5s linear infinite; }
.d-moon i { bottom: -6%; width: 3px; height: 3px; border-radius: 50%;
  background: rgb(255 120 130 / .95); box-shadow: 0 0 6px rgb(255 60 80 / .9);
  animation: dEmber 3.4s ease-out infinite; }
.d-moon i:nth-child(1) { left: 44%; }
.d-moon i:nth-child(2) { left: 62%; animation-delay: -1.2s; }
.d-moon i:nth-child(3) { left: 84%; animation-delay: -2.3s; }

/* 초음속 — 충격파 링이 퍼지고 속도선이 따라붙는다 */
.d-sonic::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 74% 50%, rgb(60 190 255 / .4), transparent 70%); }
.d-sonic::after { content: ""; position: absolute; right: 16%; top: 50%; width: 46px; height: 46px;
  margin-top: -23px; border-radius: 50%; border: 2px solid rgb(150 230 255 / .9); opacity: 0;
  box-shadow: 0 0 18px rgb(80 200 255 / .7); animation: dShock 2.2s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes dShock { 0% { transform: scale(.3); opacity: 0; } 12% { opacity: .95; }
  70%, 100% { transform: scale(2.4); opacity: 0; } }
.d-sonic i { height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgb(190 240 255 / .95), transparent);
  animation: dStreak 1s linear infinite; }
.d-sonic i:nth-child(1) { top: 26%; width: 48px; animation-delay: -.1s; }
.d-sonic i:nth-child(2) { top: 52%; width: 66px; animation-delay: -.4s; }
.d-sonic i:nth-child(3) { top: 78%; width: 36px; animation-delay: -.7s; }

/* ── 여성형 ─────────────────────────────────────────────────── */

/* 벚꽃 바람 — 꽃잎이 흩날린다 */
.d-sakura::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(78% 140% at 74% 18%, rgb(255 196 224 / .62), transparent 72%),
              linear-gradient(160deg, rgb(255 160 205 / .34), transparent 62%); }
.d-sakura i { width: 12px; height: 12px; border-radius: 50% 3px 50% 3px; top: -14%;
  background: linear-gradient(150deg, #fff0f7, #ff9ecb 70%, #ef7ab4);
  box-shadow: 0 0 6px rgb(255 150 200 / .55); animation: dPetal 4.4s linear infinite; }
.d-sakura i:nth-child(1) { left: 38%; }
.d-sakura i:nth-child(2) { left: 52%; animation-delay: -1.1s; animation-duration: 5.2s; }
.d-sakura i:nth-child(3) { left: 66%; animation-delay: -2.2s; animation-duration: 3.9s; }
.d-sakura i:nth-child(4) { left: 80%; animation-delay: -3s; animation-duration: 4.8s; }
.d-sakura i:nth-child(5) { left: 92%; animation-delay: -.6s; animation-duration: 4.2s; }
@keyframes dPetal { 0% { top: -16%; opacity: 0; transform: translateX(0) rotate(0); }
  14% { opacity: 1; } 50% { transform: translateX(-14px) rotate(180deg); }
  100% { top: 112%; opacity: 0; transform: translateX(-26px) rotate(400deg); } }

/* 별가루 — 라벤더 성운 위로 반짝이가 흩뿌려진다 */
.d-fairy::before { content: ""; position: absolute; inset: -70% -30%; filter: blur(14px); opacity: .6;
  background: conic-gradient(from 40deg at 62% 50%, #c9a7ff, #8fd8ff, #ffb3e6, #c9a7ff);
  animation: dSpin 24s linear infinite; }
.d-fairy::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 100% at 80% 40%, rgb(255 255 255 / .22), transparent 70%); }
.d-fairy i { width: 11px; height: 11px; background: #fff;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  filter: drop-shadow(0 0 5px rgb(215 180 255 / .95));
  animation: dTwinkle 2.4s ease-in-out infinite; }
.d-fairy i:nth-child(1) { left: 36%; top: 22%; }
.d-fairy i:nth-child(2) { left: 50%; top: 68%; animation-delay: -.5s; }
.d-fairy i:nth-child(3) { left: 62%; top: 30%; animation-delay: -1s; width: 8px; height: 8px; }
.d-fairy i:nth-child(4) { left: 76%; top: 62%; animation-delay: -1.5s; }
.d-fairy i:nth-child(5) { left: 88%; top: 26%; animation-delay: -2s; width: 7px; height: 7px; }
.d-fairy i:nth-child(6) { left: 96%; top: 70%; animation-delay: -.8s; width: 8px; height: 8px; }

/* 인어의 바다 — 물빛이 일렁이고 기포가 떠오른다 */
.d-ocean::before { content: ""; position: absolute; inset: -10%;
  background: repeating-radial-gradient(circle at 30% 40%, rgb(180 255 250 / .3) 0 2px, transparent 2px 14px),
              repeating-radial-gradient(circle at 76% 66%, rgb(150 220 255 / .26) 0 2px, transparent 2px 17px);
  animation: dWave 6s ease-in-out infinite alternate; }
@keyframes dWave { to { transform: translate(8px, -5px) scale(1.06); } }
.d-ocean::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgb(160 240 255 / .2), transparent 50%, rgb(255 150 205 / .18)); }
.d-ocean i { bottom: -10%; border-radius: 50%; border: 1.5px solid rgb(225 255 255 / .85);
  background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / .6), transparent 56%);
  animation: dBubble 3.6s linear infinite; }
.d-ocean i:nth-child(1) { left: 40%; width: 8px; height: 8px; }
.d-ocean i:nth-child(2) { left: 56%; width: 5px; height: 5px; animation-delay: -1.3s; animation-duration: 2.9s; }
.d-ocean i:nth-child(3) { left: 72%; width: 10px; height: 10px; animation-delay: -2.2s; animation-duration: 4.2s; }
.d-ocean i:nth-child(4) { left: 86%; width: 6px; height: 6px; animation-delay: -.7s; }
.d-ocean i:nth-child(5) { left: 96%; width: 7px; height: 7px; animation-delay: -3s; animation-duration: 3.2s; }

/* 하트 오라 — 하트가 퐁퐁 떠오른다 */
.d-heart::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(65% 130% at 74% 118%, rgb(255 110 175 / .6), transparent 68%),
              linear-gradient(150deg, rgb(255 180 215 / .22), transparent 55%);
  animation: dGlowPulse 3.2s ease-in-out infinite; }
@keyframes dGlowPulse { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
.d-heart i { width: 9px; height: 9px; background: linear-gradient(150deg, #ffd3e6, #ff5c9d);
  animation: dHeartUp 3s ease-out infinite;
  filter: drop-shadow(0 0 5px rgb(255 90 155 / .8)); }
.d-heart i::before, .d-heart i::after { content: ""; position: absolute; width: 9px; height: 9px;
  border-radius: 50%; background: inherit; }
.d-heart i::before { top: -4.5px; left: 0; }
.d-heart i::after { top: 0; left: 4.5px; }
.d-heart i:nth-child(1) { left: 40%; }
.d-heart i:nth-child(2) { left: 55%; animation-delay: -.8s; }
.d-heart i:nth-child(3) { left: 70%; animation-delay: -1.5s; }
.d-heart i:nth-child(4) { left: 84%; animation-delay: -2.2s; }
.d-heart i:nth-child(5) { left: 95%; animation-delay: -1.1s; }
@keyframes dHeartUp { 0% { bottom: -12%; opacity: 0; transform: rotate(-45deg) scale(.5); }
  18% { opacity: .95; } 100% { bottom: 116%; opacity: 0; transform: rotate(-45deg) scale(1.05); } }

/* 크리스탈 — 홀로그램 광택 위에서 보석이 반짝인다 */
.d-crystal::before { content: ""; position: absolute; inset: -60% -20%; filter: blur(12px); opacity: .55;
  background: conic-gradient(from 120deg at 60% 50%, #a7f3e4, #a9c6ff, #e3b8ff, #ffd6ec, #a7f3e4);
  animation: dSpin 21s linear infinite; }
.d-crystal::after { content: ""; position: absolute; top: -50%; bottom: -50%; width: 30%;
  transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .55), transparent);
  animation: dPrism 4.2s cubic-bezier(.45, 0, .3, 1) infinite; }
@keyframes dPrism { 0% { left: -34%; opacity: 0; } 10% { opacity: .9; }
  40% { opacity: .9; } 55%, 100% { left: 116%; opacity: 0; } }
.d-crystal i { width: 9px; height: 9px; background: linear-gradient(140deg, #ffffff, #b6f0ff 55%, #cbb4ff);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  filter: drop-shadow(0 0 6px rgb(180 240 255 / .95));
  animation: dTwinkle 2.2s ease-in-out infinite; }
.d-crystal i:nth-child(1) { left: 40%; top: 26%; }
.d-crystal i:nth-child(2) { left: 58%; top: 66%; animation-delay: -.7s; width: 7px; height: 7px; }
.d-crystal i:nth-child(3) { left: 76%; top: 30%; animation-delay: -1.3s; }
.d-crystal i:nth-child(4) { left: 92%; top: 62%; animation-delay: -1.9s; width: 7px; height: 7px; }

/* ═══════════════ 추가 장식 8종 (2026-08-25 사용자 선택 — /rank-skin-design 2차 배치에서 이관) ═══════════════
   실사 배너 3종(성좌 마법사 · 월야 연화 · 천공 페가수스) + CSS 구도 5종(회로 각성 · 콘서트 티켓 ·
   시네마 로즈 · 마카롱 깃발 · 폴라로이드).
   ⚠️ 목업(rank-skin-mockup.html)에서는 구도마다 마크업이 달랐지만(.lay/.txt/.img), 여기서는 전부
      기존 레이어 한 겹(.gxD) 안에서 끝낸다 — 부르는 쪽 마크업이 기존 20종과 똑같아야 하기 때문이다.
   ⚠️ 그림은 줄 밖으로 나가지 않는다: .gx 가 overflow:hidden 이라 무엇을 그려도 줄 안에서 잘리고,
      배너 사진은 오른쪽 자기 구역 안에만 둔다 (목업에서 토끼·벌이 테두리를 뚫고 나오던 문제,
      사용자 지적 2026-08-25). .gxD 기본값이 "오른쪽 68% + 왼쪽 페이드"라,
      줄 전체를 쓰는 구도는 각자 left/width/mask 를 덮어쓴다. */

/* 테두리를 도는 빛(회로 각성)에 쓰는 각도 변수 — 지원 안 되는 브라우저에서는 정지한 채로 보인다 */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ── 색 ── */
.gs-circuit{--e:150 255 120;--e2:214 255 196;--gr:5 18 12}
.gs-concert{--e:255 195 95;--e2:255 232 190;--gr:34 8 28}
.gs-cinema{--e:255 172 192;--e2:255 222 231;--gr:27 12 18}
/* 배너 3종 — 그림 파일과 세로 기준점(--bpy, 얼굴이 잘리지 않는 지점)을 색과 같이 들고 있는다 */
.gs-mage{--e:152 186 255;--e2:214 228 255;--gr:8 11 26;--bpy:30%;
  --bimg:url("/assets/rank/banner-celestial-mage.webp?v=1")}
.gs-lotus{--e:142 232 214;--e2:212 250 242;--gr:5 20 20;--bpy:32%;
  --bimg:url("/assets/rank/banner-crystal-guardian.webp?v=1")}
/* 학생 요청 그림 6종 (2026-08-27) — --bpy는 줄에 보일 가로 띠 위치(얼굴 높이)로 실측해 잡았다.
   줄은 아주 납작해서(높이 60~90px) 이 값이 몇 %만 어긋나도 머리가 잘리거나 배경만 보인다 */
.gs-mooncat{--e:150 195 255;--e2:214 232 255;--gr:8 14 28;--bpy:25%;
  --bimg:url("/assets/rank/banner-mooncat.webp?v=1")}
.gs-cherrycat{--e:255 160 150;--e2:255 220 214;--gr:30 10 16;--bpy:18%;
  --bimg:url("/assets/rank/banner-cherrycat.webp?v=1")}
.gs-snowbunny{--e:168 214 255;--e2:222 240 255;--gr:8 18 32;--bpy:32%;
  --bimg:url("/assets/rank/banner-snowbunny.webp?v=1")}
.gs-mochicat{--e:255 206 130;--e2:255 234 200;--gr:26 18 10;--bpy:58%;
  --bimg:url("/assets/rank/banner-mochicat.webp?v=1")}
.gs-puffbunny{--e:236 170 224;--e2:250 222 246;--gr:24 14 36;--bpy:44%;
  --bimg:url("/assets/rank/banner-puffbunny.webp?v=1")}
.gs-cherrybow{--e:255 138 168;--e2:255 210 222;--gr:32 8 20;--bpy:42%;
  --bimg:url("/assets/rank/banner-cherrybow.webp?v=1")}
.gs-pegasus{--e:150 240 220;--e2:214 252 244;--gr:6 20 24;--bpy:42%;
  --bimg:url("/assets/rank/banner-aurora-pegasus.webp?v=1")}
/* 2026-09-03 추가 5종 — --bpy는 잘린 배너(1400×559)에서 얼굴·태극 원이 오는 세로 위치로 잡았다 */
.gs-taegeukgi{--e:240 120 118;--e2:255 214 210;--gr:8 12 28;--bpy:50%;
  --bimg:url("/assets/rank/banner-taegeukgi.webp?v=1")}
.gs-capybara{--e:240 176 96;--e2:255 226 186;--gr:22 16 10;--bpy:27%;
  --bimg:url("/assets/rank/banner-capybara.webp?v=1")}
.gs-capycub{--e:255 198 128;--e2:255 234 202;--gr:24 18 12;--bpy:32%;
  --bimg:url("/assets/rank/banner-capycub.webp?v=1")}
.gs-moonpegasus{--e:168 200 255;--e2:224 236 255;--gr:6 12 28;--bpy:17%;
  --bimg:url("/assets/rank/banner-moonpegasus.webp?v=1")}
.gs-pegasuscub{--e:186 214 255;--e2:232 242 255;--gr:8 14 32;--bpy:48%;
  --bimg:url("/assets/rank/banner-pegasuscub.webp?v=1")}
/* 2026-09-08 월광 천사 — --bpy 22%는 줄(680x66)에 보일 띠를 cover 계산으로 재현해 고른 값이다.
   더 내리면 얼굴이 잘리고 더 올리면 날개만 보인다. */
.gs-moonangel{--e:196 216 255;--e2:234 242 255;--gr:6 10 26;--bpy:22%;
  --bimg:url("/assets/rank/banner-moonangel.webp?v=1")}
/* 2026-09-08 불꽃 홈런 — --bpy 45%면 배트에 맞는 불꽃과 헬멧·장갑이 한 줄에 같이 들어온다
   (후보 8개를 줄 크기 그대로 그려 보고 고른 값) */
.gs-bballhit{--e:246 196 110;--e2:255 232 190;--gr:26 18 10;--bpy:45%;
  --bimg:url("/assets/rank/banner-bballhit.webp?v=1")}
/* 2026-09-08 3종 — --bpy 는 줄에 보일 66px 띠를 cover 계산으로 재현해 고른 값이다.
   ⚠️ 티파티·들판은 그림이 밝다 — --gr(이름 자리 그늘)은 밝게 두면 흰 글자가 통째로 묻히니
      그림 색과 상관없이 어둡게 잡는다(기존 밝은 배너들과 같은 규칙). */
.gs-goldsniper{--e:240 196 96;--e2:255 232 176;--gr:20 16 8;--bpy:38%;
  --bimg:url("/assets/rank/banner-goldsniper.webp?v=1")}
.gs-sunsetfield{--e:255 190 150;--e2:255 226 204;--gr:30 16 24;--bpy:42%;
  --bimg:url("/assets/rank/banner-sunsetfield.webp?v=1")}
.gs-teaparty{--e:255 168 200;--e2:255 220 236;--gr:36 12 26;--bpy:45%;
  --bimg:url("/assets/rank/banner-teaparty.webp?v=1")}
/* 밝은 바탕 둘 — --ink 는 이 줄에서 쓸 글자색이다 (아래 "밝은 줄" 규칙에서 쓴다) */
.gs-macaron{--e:190 130 200;--e2:122 80 134;--gr:250 244 250;--ink:36 31 56}
.gs-polaroid{--e:206 140 172;--e2:134 78 104;--gr:252 249 242;--ink:44 34 30}

/* ── ① 회로 각성 — 회로 기판 위를 빛 한 점이 테두리를 따라 돈다 (그림 없음) ── */
.d-circuit{left:0;width:auto;-webkit-mask-image:none;mask-image:none}
.d-circuit::before{content:"";position:absolute;inset:0;opacity:.4;
  background:repeating-linear-gradient(90deg,transparent 0 26px,rgb(var(--e) / .5) 26px 27px,transparent 27px 54px),
    repeating-linear-gradient(180deg,transparent 0 15px,rgb(var(--e) / .32) 15px 16px,transparent 16px 34px)}
.d-circuit::after{content:"";position:absolute;inset:0;border-radius:13px;padding:2px;
  background:conic-gradient(from var(--ang),transparent 0 58%,rgb(var(--e) / .12) 68%,
    rgb(var(--e)) 81%,#fff 85%,rgb(var(--e) / .3) 89%,transparent 94%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;animation:dTrace 3.4s linear infinite}
@keyframes dTrace{to{--ang:360deg}}

/* ── ② 콘서트 티켓 — 왼쪽 스터브 + 절취선, 조명 반짝임 ── */
/* 스터브는 순위 숫자 뒤에 깔린다 (.gx>* 가 z-index 5라 숫자가 위에 남는다) */
.d-ticket{left:0;width:auto;-webkit-mask-image:none;mask-image:none}
/* 스터브(순위 숫자가 앉는 왼쪽 칸)와 절취선은 스크림 레이어에 그린다 —
   .gxD(z-index 2)에 그리면 왼쪽 스크림(.gxS, z-index 4)이 그대로 덮어 버린다 */
.gs-concert .gxS{background:
  repeating-linear-gradient(180deg,rgb(var(--e) / .85) 0 4px,transparent 4px 9px) no-repeat 44px 8px / 2px calc(100% - 16px),
  linear-gradient(90deg,rgb(0 0 0 / .46) 0 44px,transparent 44px),
  linear-gradient(90deg,rgb(var(--gr) / .94) 0%,rgb(var(--gr) / .74) 30%,rgb(var(--gr) / .1) 58%,transparent 74%),
  radial-gradient(120% 150% at 50% 50%,transparent 48%,rgb(0 0 0 / .4) 100%)}
.d-ticket i{width:3px;height:3px;border-radius:50%;background:#fff;
  box-shadow:0 0 7px rgb(var(--e) / .9);animation:dTwinkle 2.1s ease-in-out infinite}
.d-ticket i:nth-child(1){left:38%;top:28%}
.d-ticket i:nth-child(2){left:60%;top:66%;animation-delay:-.7s}
.d-ticket i:nth-child(3){left:82%;top:34%;animation-delay:-1.4s}

/* ── ③ 시네마 로즈 — 위아래 필름 구멍이 돌아가고 장미빛 조명이 맥동한다 (그림 없음) ── */
.d-cinema{left:0;width:auto;-webkit-mask-image:none;mask-image:none}
.d-cinema::before,.d-cinema::after{content:"";position:absolute;left:0;right:0;height:9px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Crect x='4' y='3' width='11' height='6' rx='2' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x 0 0 / 20px 9px, rgb(0 0 0 / .78);
  animation:dReel 1.4s linear infinite}
.d-cinema::before{top:0}
.d-cinema::after{bottom:0}
@keyframes dReel{to{background-position-x:-20px}}
/* 장미빛 스포트라이트는 광원 레이어를 빌려 쓴다 — 레이어를 더 늘리지 않으려고 */
.gs-cinema .gxL{inset:-20% 0 -30% 26%;
  background:radial-gradient(56% 130% at 62% 50%,rgb(255 190 205 / var(--glow)),transparent 68%);
  animation:dSpot 4.2s ease-in-out infinite}
@keyframes dSpot{0%,100%{opacity:.45}50%{opacity:1}}

/* ── ④ 마카롱 깃발 — 오른쪽 끝이 제비꼬리로 잘린 밝은 깃발 + 왼쪽 깃대 ── */
/* 제비꼬리에 값(점수)이 잘리지 않게 오른쪽 여백을 더 준다 */
.rank-row.gs-macaron{padding-right:32px;
  clip-path:polygon(0 0,100% 0,calc(100% - 18px) 50%,100% 100%,0 100%);
  animation:dRibbon 5.5s ease-in-out infinite;transform-origin:left center}
.rank-row.gs-macaron:hover{transform:none}
@keyframes dRibbon{0%,100%{transform:skewY(0deg)}50%{transform:skewY(-.7deg)}}
.d-macaron{left:0;width:auto;-webkit-mask-image:none;mask-image:none}
.d-macaron::before{content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,#fff4f8,#ecf0ff)}
/* 깃대는 .gxD(z-index 2) 안에 그리면 밝은 스크림(z-index 4)에 덮인다 —
   줄 왼쪽 강조 막대(.rank-row.gx::before, z-index 8)를 깃대로 키워 쓴다 */
.rank-row.gx.gs-macaron::before{width:6px;top:0;bottom:0;border-radius:0;
  background:linear-gradient(180deg,rgb(var(--e)),rgb(var(--e) / .45));
  box-shadow:0 0 10px rgb(var(--e) / .45)}
.d-macaron i{width:4px;height:4px;border-radius:50%;z-index:2;
  animation:dTwinkle 3.2s ease-in-out infinite}
.d-macaron i:nth-child(1){left:34%;top:40%;background:#ff9ecd}
.d-macaron i:nth-child(2){left:56%;top:70%;background:#8ecfff;animation-delay:-1.1s}
.d-macaron i:nth-child(3){left:76%;top:30%;background:#ffd77a;animation-delay:-2.1s}

/* ── ⑤ 폴라로이드 — 사진이 어긋나게 겹친 밝은 카드 ── */
/* 목업은 겹친 장을 줄 밖으로 내보냈지만(overflow:visible), 여기서는 안쪽에 겹쳐 줄을 넘지 않는다 */
.d-polaroid{left:0;width:auto;-webkit-mask-image:none;mask-image:none}
.d-polaroid::before,.d-polaroid::after{content:"";position:absolute;border-radius:4px;
  border:2px solid rgb(255 255 255 / .96);
  background:linear-gradient(112deg,#d9cfc0,#f6efe3 46%,#cdbfae);
  box-shadow:0 3px 9px rgb(90 74 60 / .34)}
.d-polaroid::before{inset:7px 44% 9px 30%;transform:rotate(-3.4deg)}
.d-polaroid::after{inset:6px 14% 8px 58%;transform:rotate(2.2deg)}
.d-polaroid i{width:4px;height:4px;border-radius:50%;z-index:2;
  animation:dTwinkle 3.4s ease-in-out infinite}
.d-polaroid i:nth-child(1){left:38%;top:34%;background:rgb(206 140 172 / .8)}
.d-polaroid i:nth-child(2){left:62%;top:66%;background:rgb(150 190 210 / .8);animation-delay:-1.2s}
.d-polaroid i:nth-child(3){left:84%;top:38%;background:rgb(224 196 132 / .8);animation-delay:-2.3s}

/* ── ⑥⑦⑧ 실사 배너 — 사진은 오른쪽 자기 구역 안에만 있고 이름 위로 넘어오지 않는다 ── */
/* .gxD 의 기본 위치(오른쪽 68% + 왼쪽 페이드 마스크)를 그대로 쓴다 */
.d-banner{background:var(--bimg) no-repeat 100% var(--bpy,40%) / cover;
  filter:brightness(1.12) saturate(1.04);
  animation:dPan 22s ease-in-out infinite alternate}
@keyframes dPan{from{background-position:100% var(--bpy,40%)}
  to{background-position:84% var(--bpy,40%)}}
/* 왼쪽은 이름 자리라 깊게, 오른쪽 끝은 점수 자리라 얕게 눌러 준다 (목업 .bnr .sc 와 같은 방식).
   사진이 밝으면 흰 숫자가 그대로 묻힌다 — 실제로 월야 연화·천공 페가수스에서 안 읽혔다. */
.gs-mage .gxS,.gs-lotus .gxS,.gs-pegasus .gxS,
.gs-mooncat .gxS,.gs-cherrycat .gxS,.gs-snowbunny .gxS,
.gs-mochicat .gxS,.gs-puffbunny .gxS,.gs-cherrybow .gxS,
.gs-taegeukgi .gxS,.gs-capybara .gxS,.gs-capycub .gxS,
.gs-moonpegasus .gxS,.gs-pegasuscub .gxS,.gs-moonangel .gxS,.gs-bballhit .gxS,
.gs-goldsniper .gxS,.gs-sunsetfield .gxS,.gs-teaparty .gxS{background:
  linear-gradient(90deg,rgb(var(--gr) / .94) 0%,rgb(var(--gr) / .72) 22%,rgb(var(--gr) / .14) 48%,transparent 62%),
  linear-gradient(270deg,rgb(4 6 12 / .6) 0%,rgb(4 6 12 / .24) 9%,transparent 17%),
  radial-gradient(120% 150% at 50% 50%,transparent 48%,rgb(0 0 0 / .4) 100%)}

/* ── 밝은 줄(마카롱 깃발 · 폴라로이드) — 흰 글자를 그대로 두면 안 보인다 ── */
.gs-macaron .gxS,.gs-polaroid .gxS{background:
  linear-gradient(90deg,rgb(var(--gr) / .92) 0%,rgb(var(--gr) / .6) 26%,rgb(var(--gr) / .08) 52%,transparent 68%)}
.gs-macaron .gxF,.gs-polaroid .gxF{
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .9),inset 0 -16px 26px rgb(120 110 180 / .12)}
.gs-macaron .gxN,.gs-polaroid .gxN{opacity:.04}
.gs-macaron .gt,.gs-polaroid .gt{color:rgb(var(--ink));text-shadow:0 1px 2px rgb(255 255 255 / .85)}
.gs-macaron .gsub,.gs-polaroid .gsub{text-shadow:none;
  color:color-mix(in srgb,rgb(var(--e)) 55%,rgb(var(--ink)))}
/* .rank-row.gx.t-legend .rk 와 같은 세기(0,3,0)라 뒤에 오는 이 규칙이 이긴다 */
.rank-row.gx.gs-macaron .rk,.rank-row.gx.gs-polaroid .rk{
  background:none !important;-webkit-background-clip:border-box;background-clip:border-box;filter:none;
  color:color-mix(in srgb,rgb(var(--e)) 62%,rgb(var(--ink))) !important;
  text-shadow:0 1px 2px rgb(255 255 255 / .85)}
.rank-row.gx.gs-macaron .vl,.rank-row.gx.gs-polaroid .vl{
  color:rgb(var(--ink)) !important;text-shadow:0 1px 2px rgb(255 255 255 / .85)}

/* ═══════════════ 시상대 배경 영상 (2026-08-21 시험) ═══════════════
   rank-gx.js가 1등 칸(.pod.p1.gx)에 <video class="gxV">를 깔고 .has-vid 를 붙인다.
   광원(gxL, z1) 위 · 그레인(gxN, z3)과 스크림(gxS, z4) 아래라 글자는 그대로 읽힌다.
   확정되면 스킨별 영상으로 나누고, 아니면 P1_VIDEO를 비우면 원래대로 돌아간다. */
.gx .gxV{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;
  pointer-events:none;border-radius:inherit;display:block}
.pod.gx.has-vid .gxA{display:none}   /* 영상이 주인공 — 정지 그림·포효 스프라이트는 감춘다 */
.pod.gx.has-vid .gxD{opacity:.45}    /* 시그니처 파티클은 영상 위에서 옅게만 */
.pod.gx.has-vid .gxL{opacity:.6}
/* 영상 위 글자 — 아래쪽을 조금 더 눌러 이름·값이 뜨지 않게 한다 */
.pod.gx.has-vid .gxS{background:
  linear-gradient(180deg,rgb(var(--gr) / .12) 0%,rgb(var(--gr) / .06) 40%,
                         rgb(var(--gr) / .72) 76%,rgb(var(--gr) / .95) 100%),
  radial-gradient(150% 120% at 50% 26%,transparent 56%,rgb(0 0 0 / .34) 100%)}

/* ═══════════════ 시상대 정지컷 연출 (2026-08-21 시험) ═══════════════
   영상 대신 "그림 한 장 + 레이어"로 살아있게 만드는 쪽. rank-gx.js가 .pod에 .gxP를 깔고
   .has-still 을 붙인다. 프레임 스프라이트가 아니라 한 장이라 파일이 63KB로 끝나고
   동시 디코더 한도 같은 제약이 없다.
   ⚠ 2026-08-21 1차 시도는 "돌긴 도는데 눈에 안 보인다"로 실패했다 — 11초에 4.5% 확대,
     알파 .55 광원 같은 값은 190×267 카드에서 그냥 정지컷이다. 작은 화면일수록 진폭을 키워야 한다.
   구성: ①그림이 눈에 띄게 숨쉰다 ②불빛이 카드 전체를 불규칙하게 훑는다(화톳불 조명)
        ③불꽃 심지가 툭툭 끊기며 명멸한다 ④엠버가 위로 흐른다 */
.gx .gxP{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden;
  border-radius:inherit}
/* 카드가 190×267밖에 안 돼서 장면 전체를 그대로 담으면 주인공이 어두운 덩어리로 뭉개진다.
   --bs/--bp 로 주인공만 크게 잘라 담고, 작은 크기에서 죽는 대비를 필터로 조금 올린다. */
.gx .gxP .im{position:absolute;inset:-2%;background-repeat:no-repeat;
  background-size:var(--bs,cover);background-position:var(--bp,center);
  filter:brightness(var(--br,1)) contrast(var(--ct,1)) saturate(var(--st,1));
  animation:gpBreathe 7s ease-in-out infinite}
@keyframes gpBreathe{0%,100%{transform:scale(1) translateY(0)}
  50%{transform:scale(1.085) translateY(-1.5%)}}
/* 화톳불 조명 — 카드 전체를 덮는 따뜻한 빛이 불규칙하게 세졌다 약해진다.
   이게 "살아있다"는 인상의 8할이다. 불꽃 자리(--fx/--fy)가 중심. */
.gx .gxP .lit{position:absolute;inset:0;mix-blend-mode:screen;
  background:radial-gradient(120% 90% at var(--fx,70%) var(--fy,20%),
    rgb(255 186 108 / .85),rgb(255 108 32 / .35) 42%,transparent 80%);
  animation:gpLit 1.7s ease-in-out infinite}
@keyframes gpLit{0%{opacity:.3}17%{opacity:.85}31%{opacity:.45}
  48%{opacity:1}62%{opacity:.55}79%{opacity:.9}100%{opacity:.3}}
/* 불꽃 심지 — 매끄럽게 커지지 않는다. steps로 툭툭 끊겨야 불로 읽힌다 */
.gx .gxP .fl{position:absolute;left:var(--fx,70%);top:var(--fy,20%);width:70%;height:46%;
  transform:translate(-50%,-50%);mix-blend-mode:plus-lighter;
  background:radial-gradient(closest-side,rgb(255 245 214 / .95),rgb(255 150 46 / .5) 42%,transparent 76%);
  animation:gpFlare 1.25s ease-in-out infinite}
@keyframes gpFlare{0%,100%{opacity:.45;transform:translate(-50%,-50%) scale(.9)}
  40%{opacity:1;transform:translate(-50%,-50%) scale(1.22)}
  68%{opacity:.6;transform:translate(-50%,-50%) scale(1.02)}}
.gx .gxP .fl2{position:absolute;left:var(--fx,70%);top:var(--fy,20%);width:34%;height:22%;
  transform:translate(-50%,-50%);mix-blend-mode:plus-lighter;
  background:radial-gradient(closest-side,rgb(255 255 240 / 1),rgb(255 190 90 / .55) 48%,transparent 74%);
  animation:gpFlicker .55s steps(1) infinite}
@keyframes gpFlicker{0%{opacity:.95}12%{opacity:.35}24%{opacity:1}38%{opacity:.5}
  50%{opacity:.9}64%{opacity:.3}78%{opacity:.8}90%{opacity:.45}100%{opacity:.95}}
/* 엠버 — 불 자리에서 위로 흩어진다. 카드가 작아 점이 크고 밝아야 보인다 */
.gx .gxP .ep{position:absolute;left:var(--fx,70%);top:var(--fy,20%);width:5px;height:5px;
  border-radius:50%;background:rgb(255 214 158);box-shadow:0 0 10px 2px rgb(255 140 50);
  opacity:0;animation:gpEmber 3.4s linear infinite}
@keyframes gpEmber{0%{opacity:0;transform:translate(0,0) scale(.4)}
  10%{opacity:1}72%{opacity:.9}
  100%{opacity:0;transform:translate(var(--ex,-30px),-135px) scale(1.35)}}
.gx .gxP .ep:nth-of-type(1){--ex:-52px;animation-delay:0s;animation-duration:3.4s}
.gx .gxP .ep:nth-of-type(2){--ex:-14px;animation-delay:.5s;animation-duration:4.1s}
.gx .gxP .ep:nth-of-type(3){--ex:-70px;animation-delay:1s;animation-duration:3s}
.gx .gxP .ep:nth-of-type(4){--ex:14px;animation-delay:1.5s;animation-duration:3.8s}
.gx .gxP .ep:nth-of-type(5){--ex:-36px;animation-delay:2s;animation-duration:3.5s}
.gx .gxP .ep:nth-of-type(6){--ex:-88px;animation-delay:2.5s;animation-duration:4.4s}
.gx .gxP .ep:nth-of-type(7){--ex:34px;animation-delay:2.9s;animation-duration:3.2s}
.gx .gxP .ep:nth-of-type(8){--ex:-26px;animation-delay:3.2s;animation-duration:4s}
/* 정지컷이 주인공일 때는 기존 스프라이트 아트를 숨긴다 */
.pod.gx.has-still .gxA{display:none}
.pod.gx.has-still .gxD{opacity:.4}
@media(prefers-reduced-motion:reduce){
  .gx .gxP .im,.gx .gxP .lit,.gx .gxP .fl,.gx .gxP .fl2,.gx .gxP .ep{animation:none}
  .gx .gxP .ep{opacity:0}
}

/* ═══════════════ 시상대 배경 — 학생이 고른 것 (2026-08-24 사용자 요청) ═══════════════
   rank-gx.js가 .pod[data-bg="<키>"]를 읽어 1등 칸에는 <video class="gxV">를, 2·3등 칸에는
   .gxP.gxB(그림 한 장)를 깔고 .has-bg 를 붙인다. 소재는 380×534(카드 190×267의 2배)로
   이미 잘려 있어 cover 한 겹이면 맞는다 — 정지컷처럼 --bs/--bp로 주인공을 따로 잡을 필요가 없다. */
.gx .gxP.gxB .im{inset:0;background-size:cover;background-position:center;
  animation:gxBgBreathe 12s ease-in-out infinite}
/* 배경은 주인공이 아니라 무대다 — 정지컷(gpBreathe, 7초 8.5%)보다 느리고 얕게 숨쉰다 */
@keyframes gxBgBreathe{0%,100%{transform:scale(1.02)}50%{transform:scale(1.06) translateY(-1%)}}

/* 글자 스크림 — 이 작업에서 제일 중요한 부분.
   ⚠️ 왜 .gxS를 고치지 않고 층을 따로 두는가: .gxS는 화면마다 다른 규칙이 덮어쓰고
      (전체 랭킹은 가로 스크림으로 되돌린다) 각 페이지 인라인 <style>이 이 파일보다 뒤에 와서
      선택자 싸움이 된다. 배경 전용 층이면 아무와도 안 싸우고 !important도 필요 없다.
   ① 아래 절반은 이름·점수 자리다(글자는 --arth 아래에서 시작 — 홈 시상대는 카드가 218px로 작아
      2·3위는 48%부터가 글자다). 밝은 소재(무대 조명·수정정원·벚꽃)에서도 흰 글자가 살아야 해서
      바닥을 거의 불투명하게 눌렀다.
   ② 위쪽도 옅게 덮는다 — 메달과 "1위" 글자가 밝은 하늘 위에서 묻히지 않게.
   ③ 가운데(주인공 얼굴 높이)는 최대한 비운다 — 배경을 고른 보람이 있어야 한다. */
.pod.gx .gxBs{position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;
  background:
    linear-gradient(180deg,rgb(var(--gr) / .52) 0%,rgb(var(--gr) / .14) 18%,
                           rgb(var(--gr) / .06) 34%,rgb(var(--gr) / .46) 56%,
                           rgb(var(--gr) / .84) 76%,rgb(var(--gr) / .96) 100%),
    radial-gradient(150% 130% at 50% 32%,transparent 44%,rgb(0 0 0 / .5) 100%)}
/* 스크림만으로는 밝은 소재에서 획이 가늘어져 흐려진다 — 글자마다 그림자를 한 겹 더 준다 */
.pod.gx.has-bg .pname,.pod.gx.has-bg .pval,
.pod.gx.has-bg .pod-name,.pod.gx.has-bg .pod-score{
  text-shadow:0 1px 3px rgb(0 0 0 / .9),0 0 14px rgb(0 0 0 / .6)}
.pod.gx.has-bg .pmedal img{filter:drop-shadow(0 3px 8px rgb(0 0 0 / .75))}
.pod.gx.has-bg .gxA{display:none}      /* 배경이 주인공 — 스프라이트 그림은 감춘다 */
.pod.gx.has-bg .gxD{opacity:.4}        /* 시그니처 파티클은 배경 위에서 옅게만 */
@media(prefers-reduced-motion:reduce){ .gx .gxP.gxB .im{animation:none} }

/* ═══════════════ 접근성 ═══════════════ */
@media(prefers-reduced-motion:reduce){
  .gx,.gx *{animation:none !important}
  .gx .gxA i{opacity:var(--artA);transform:translate(-30%,-50%)}
  .pod.gx .gxA i{transform:translate(-50%,-50%)}
}

/* ═══════════════ 전체 랭킹(/ranking) 시상대 — 목업(/ranking-design 개선안) 치수에 맞춤 ═══════════════
   2026-08-20 사용자 요청 "전체랭킹 기준으로 목업과 동일하게".
   홈 사이드 랭킹(.rank-card)과 전광판(.pod-body)은 각자 치수를 따로 쓰므로 이 블록 밖이다.
   목업 실측: 카드 218×320 / 166×246 / 150×213, 메달 46·34·30, 순위 17·13·12,
             이름 25·19·16.5, 값 19.5·16·14.5, 그림 폭 = 카드 폭 × 1.08 */
.card:not(.rank-card) > .podium > .pod.gx .ptop{padding-left:14px;padding-right:14px;padding-bottom:14px}
.card:not(.rank-card) > .podium > .pod.gx .pmedal{left:11px;top:11px}
.card:not(.rank-card) > .podium > .pod.gx .pmedal img{height:34px !important}
.card:not(.rank-card) > .podium > .pod.gx.p1 .pmedal img{height:46px !important}
.card:not(.rank-card) > .podium > .pod.gx.p3 .pmedal img{height:30px !important}
.card:not(.rank-card) > .podium > .pod.gx .pname::before{font-size:13px;letter-spacing:1.6px}
.card:not(.rank-card) > .podium > .pod.gx.p1 .pname::before{font-size:17px;letter-spacing:2px}
.card:not(.rank-card) > .podium > .pod.gx.p3 .pname::before{font-size:12px}
.card:not(.rank-card) > .podium > .pod.gx .gt{font-size:19px}
.card:not(.rank-card) > .podium > .pod.gx.p1 .gt{font-size:25px;letter-spacing:-.8px}
.card:not(.rank-card) > .podium > .pod.gx.p3 .gt{font-size:16.5px}
.card:not(.rank-card) > .podium > .pod.gx .pval{font-size:16px}
.card:not(.rank-card) > .podium > .pod.gx.p1 .pval{font-size:19.5px}
.card:not(.rank-card) > .podium > .pod.gx.p3 .pval{font-size:14.5px}
/* 그림 크기는 "카드 폭의 108%" — 칸 높이(arth) 기준으로 잡으면 1·2·3위에서 서로 다른 배율이 돼
   3위 그림만 유독 작아진다(실측 150 vs 목업 163). 원본이 640×640 정사각이라 100% 100%로 늘려도 안 찌그러진다. */
.card:not(.rank-card) > .podium > .pod.gx .gxA i{width:108%;height:auto;aspect-ratio:1;
  top:52%;background-size:100% 100%}
/* 좌측·하단 어둠 — 목업과 같은 스크림으로 되돌린다 (2026-08-21 사용자 요청).
   시상대 공통 규칙이 이걸 "세로형"으로 덮어써서 왼쪽 어둠이 사라져 있었다.
   좌→우로 걷히는 가로 그라데이션 + 가장자리 비네트 조합이라 아래·왼쪽이 자연스럽게 가라앉는다. */
.card:not(.rank-card) > .podium > .pod.gx .gxS{background:
  linear-gradient(90deg,rgb(var(--gr) / .94) 0%,rgb(var(--gr) / .74) 30%,
                        rgb(var(--gr) / .1) 58%,transparent 74%),
  radial-gradient(120% 150% at 50% 50%,transparent 48%,rgb(0 0 0 / .4) 100%)}
/* 카드 안쪽 하단 그림자도 목업 값으로 (기존 -18px/30px/.3 은 너무 옅어 바닥이 뜬다) */
.card:not(.rank-card) > .podium > .pod.gx .gxF{
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .13),inset 0 -26px 44px rgb(0 0 0 / .42)}
.card:not(.rank-card) > .podium > .pod.gx.p1 .gxF{border-width:2px;
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .26),inset 0 -34px 56px rgb(0 0 0 / .48),
             0 0 0 1px rgb(var(--e) / .25),0 16px 42px rgb(var(--e) / .3)}

/* ═══════════════ 장식 고르기 모달 (rank-skin.js) ═══════════════ */
.sk-ov{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:18px;
  background:rgba(24,20,48,.62);backdrop-filter:blur(5px);animation:skFade .22s}
.sk-ov[hidden]{display:none}
@keyframes skFade{from{opacity:0}to{opacity:1}}
@keyframes skPop{from{opacity:0;transform:scale(.94) translateY(14px)}to{opacity:1;transform:none}}
.sk-card-box{position:relative;width:min(880px,100%);max-height:92vh;overflow:auto;
  background:var(--card,#fff);border-radius:26px;padding:26px 24px 20px;
  box-shadow:0 30px 80px rgba(20,14,50,.45);animation:skPop .35s cubic-bezier(.22,1,.36,1)}
.sk-x{position:absolute;right:14px;top:14px;z-index:3;border:0;background:#f1effa;color:#6b6790;
  width:32px;height:32px;border-radius:999px;font-size:14px;font-weight:900;cursor:pointer}
.sk-x:hover{background:#e6e2f6;color:#3d3a5c}
.sk-head{text-align:center;margin-bottom:18px}
.sk-brow{font-size:11.5px;font-weight:900;letter-spacing:1px;color:var(--muted,#8b8aa3)}
.sk-rank{font-size:56px;line-height:1.05;font-weight:900;letter-spacing:-2px;margin:2px 0;
  background:linear-gradient(160deg,#ffd76a,#f0a020 55%,#c97b00);
  -webkit-background-clip:text;background-clip:text;color:transparent}
.sk-rank.plain{background:linear-gradient(160deg,#b3aed0,#7d789e);
  -webkit-background-clip:text;background-clip:text}
/* 등수가 떨어진 안내 — 혼내는 빨강이 아니라 차분한 남보라. 축하(금색)와는 확실히 구분되게 */
.sk-rank.down{background:linear-gradient(160deg,#b7c4ff,#8f9ce0 55%,#6c78c9);
  -webkit-background-clip:text;background-clip:text}
.sk-rank small{font-size:20px;letter-spacing:0;margin-left:2px}
.sk-title{font-size:20px;font-weight:900;letter-spacing:-.4px;margin-top:2px}
.sk-sub{margin:8px 0 0;font-size:13px;line-height:1.7;font-weight:650;color:var(--ink-2,#5b5875)}
.sk-sub b{color:var(--primary-deep,#5445d8)}
.sk-grp{margin-bottom:18px}
.sk-ghead{display:flex;align-items:center;gap:8px;margin:0 2px 9px;flex-wrap:wrap}
.sk-ghead b{font-size:14.5px;font-weight:900;letter-spacing:-.3px}
.sk-medal{font-size:16px}
.sk-chip{font-size:11px;font-weight:900;border-radius:999px;padding:4px 9px}
.sk-chip.now{background:var(--warn,#f59e0b);color:#231a05}
.sk-chip.ok{background:var(--primary-soft,#edeafe);color:var(--primary-deep,#5445d8)}
.sk-chip.lock{background:#efedf7;color:#8b8aa3}
.sk-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(238px,1fr));gap:10px}
.sk-card{display:block;width:100%;text-align:left;padding:8px;cursor:pointer;
  background:var(--card,#fff);border:2px solid transparent;border-radius:16px;
  box-shadow:0 6px 18px rgba(80,70,160,.09);transition:transform .13s,box-shadow .13s,border-color .13s}
.sk-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(80,70,160,.16)}
.sk-card.on{border-color:var(--primary,#6d5ef2);box-shadow:0 10px 26px rgba(109,94,242,.26)}
.sk-card .rank-row{pointer-events:none}
.sk-card .rank-row .gsub{display:none}   /* 카드에는 아래 이름표가 따로 있다 */
.sk-meta{display:flex;align-items:center;gap:6px;margin:9px 3px 2px}
.sk-meta b{font-size:13.5px;font-weight:900;letter-spacing:-.3px}
.sk-fam{font-size:10.5px;font-weight:900;border-radius:999px;padding:3px 7px}
.sk-fam.cute{background:#ffeef6;color:#d63b8b}
.sk-fam.epic{background:var(--warn-soft,#fff7e8);color:var(--warn-deep,#b45309)}
.sk-on{margin-left:auto;font-size:10.5px;font-weight:900;color:var(--primary-deep,#5445d8)}
.sk-card.locked{cursor:not-allowed;background:#faf9fe;box-shadow:none}
.sk-card.locked:hover{transform:none;box-shadow:none}
/* 잠긴 장식도 "뭐가 기다리는지"는 보여야 한다 — 색만 빼고 형태·움직임은 남긴다 (2026-08-25).
   예전 값(opacity .45)은 너무 옅어 카드가 빈 회색 띠로 보였다. */
.sk-card.locked .rank-row{filter:grayscale(1) contrast(.92);opacity:.78}
.sk-card.locked .sk-meta b{color:var(--muted,#8b8aa3)}
.sk-card.locked .sk-fam{opacity:.5}
.sk-lock{display:block;margin:7px 3px 2px;font-size:11.5px;font-weight:850;color:#9a97b5}
@keyframes skShake{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
.sk-card.nope{animation:skShake .35s}
.sk-foot{display:flex;justify-content:center;padding-top:4px}
.sk-later{border:0;background:none;color:var(--muted,#8b8aa3);font-family:inherit;
  font-size:12.5px;font-weight:800;padding:8px 14px;border-radius:10px;cursor:pointer}
.sk-later:hover{color:var(--ink-2,#5b5875);background:#f5f3fc}
.sk-toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);z-index:210;
  background:#1c1a2b;color:#fff;border-radius:999px;padding:12px 20px;font-size:13px;font-weight:800;
  box-shadow:0 14px 34px rgba(20,14,50,.4);opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}
.sk-toast.on{opacity:1;transform:translate(-50%,0)}
/* 이미지 요청함(2026-08-24) — 헤더 바로 아래, 스크롤 없이 항상 보이는 자리. 찾기 쉬워야 해서 링크가 아니라
   또렷한 버튼으로 (2026-08-24 사용자 요청: 맨 아래라 안 보였다). 카드 목록의 시선을 가리지 않게 얇은 점선 테두리로. */
.sk-req{max-width:460px;margin:0 auto 18px;text-align:center}
.sk-reqlink{display:inline-flex;align-items:center;gap:7px;border:1.5px dashed #cdc4ff;background:var(--primary-soft,#edeafe);
  color:var(--primary-deep,#5445d8);font-family:inherit;font-size:13px;font-weight:800;
  border-radius:999px;padding:9px 18px;cursor:pointer;transition:background .15s,border-color .15s}
.sk-reqlink .ic{width:15px;height:15px}
.sk-reqlink:hover{background:#e3ddff;border-color:#b6a9ff}
.sk-reqform{max-width:420px;margin:10px auto 0;text-align:left;background:var(--primary-soft,#edeafe);
  border:1px solid #ddd3ff;border-radius:14px;padding:12px}
.sk-reqtext{width:100%;min-height:64px;resize:vertical;border:1px solid #d9d0fb;border-radius:10px;
  padding:9px 11px;font-family:inherit;font-size:12.5px;color:var(--ink,#2a2740);background:#fff}
.sk-reqtext:focus{outline:2px solid #cdc4ff;outline-offset:1px}
.sk-reqfoot{display:flex;align-items:center;gap:8px;margin-top:8px}
.sk-reqmsg{flex:1;font-size:11px;font-weight:700;color:var(--muted,#8b8aa3)}
.sk-reqsend{display:inline-flex;align-items:center;gap:5px;border:0;background:var(--primary,#6d5ef2);color:#fff;
  font-family:inherit;font-size:12.5px;font-weight:800;border-radius:999px;padding:7px 16px;cursor:pointer}
.sk-reqsend .ic{width:13px;height:13px}
.sk-reqsend:hover{background:var(--primary-deep,#5445d8)}
/* 홈 랭킹 카드의 "장식 바꾸기" 버튼 */
/* 라벨 앞 아이콘은 SVG(icons.js) — 지침상 화면에 이모지를 쓰지 않는다 (2026-08-24 ✨ 교체) */
.skin-btn{border:1px solid #e2dcf7;background:#fff;color:var(--primary-deep,#5445d8);
  font-family:inherit;font-size:11.5px;font-weight:850;border-radius:999px;padding:5px 11px;cursor:pointer;
  display:inline-flex;align-items:center;gap:4px}
.skin-btn [data-icon] svg,.skin-btn .ic{width:13px;height:13px}
.skin-btn:hover{border-color:#c8c0f0;background:#faf9ff}
@media(max-width:560px){.sk-card-box{padding:22px 16px 16px}.sk-rank{font-size:46px}}
/* 로컬 전용 순위 전환 바 (테스터 계정으로 1~3등 확인용) */
.sk-dev{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-8px -6px 14px;
  padding:8px 12px;border-radius:12px;background:#17152a;color:#cfc9ee;
  font-size:11.5px;font-weight:800}
.sk-dev b{background:var(--warn,#f59e0b);color:#231a05;border-radius:6px;padding:2px 7px;font-size:10.5px;font-weight:900}
.sk-dev button{border:0;background:#2f2c46;color:#cfc9ee;font-family:inherit;font-size:11.5px;
  font-weight:800;border-radius:8px;padding:5px 10px;cursor:pointer}
.sk-dev button:hover{background:#3d3960}
.sk-dev button[aria-pressed="true"]{background:var(--warn,#f59e0b);color:#231a05}
.sk-dev span{margin-left:auto;opacity:.55;font-weight:700}

/* ── 배경 고르기 (2026-08-24) — 같은 모달 안의 두 번째 구획 ────────────────────────
   장식과 배경은 별개 선택지라 탭으로 나눈다. 카드는 장식 쪽(.sk-card/.sk-meta/.sk-lock)을
   그대로 쓰고, 다른 건 미리보기 그림뿐이다.
   ⚠️ 후보 그리드는 포스터 이미지만 쓴다 — 13개 <video>를 동시에 띄우면 디코더가 겹쳐 버벅인다.
      실제로 재생되는 건 마우스를 올린 카드 하나(rank-skin.js가 <video> 한 개를 옮겨 다닌다). */
.sk-tabs{display:flex;justify-content:center;gap:6px;margin:0 0 14px}
.sk-tab{display:inline-flex;align-items:center;gap:6px;border:0;background:#f1effa;color:#6b6790;
  font-family:inherit;font-size:13px;font-weight:850;border-radius:999px;padding:8px 18px;cursor:pointer;
  transition:background .13s,color .13s}
.sk-tab .ic{width:14px;height:14px}
.sk-tab:hover{background:#e6e2f6;color:#3d3a5c}
.sk-tab[aria-selected="true"]{background:var(--primary,#6d5ef2);color:#fff}
.sk-tab .sk-chip{margin-left:2px;padding:2px 7px;font-size:10px}
/* 세로형 카드(190×267)라 장식 줄보다 칸을 좁게 잡는다 */
.sk-cards.bg-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}
.bg-thumb{display:block;position:relative;aspect-ratio:190 / 267;border-radius:12px;overflow:hidden;
  background:#17152a}
.bg-thumb img,.bg-thumb video{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;display:block;border:0}
.sk-card.locked .bg-thumb{filter:grayscale(.8);opacity:.5}
.sk-card .bg-thumb + .sk-meta{margin-top:8px}
/* 칸이 좁아 이름+종류 배지가 한 줄에 안 들어간다 — 줄바꿈을 허용한다 */
.bg-card .sk-meta{flex-wrap:wrap;gap:4px}
.bg-card .sk-meta b{font-size:12.5px}
.sk-kind{font-size:10.5px;font-weight:900;border-radius:999px;padding:3px 7px}
.sk-kind.vid{background:var(--primary-soft,#edeafe);color:var(--primary-deep,#5445d8)}
.sk-kind.img{background:var(--warn-soft,#fff7e8);color:var(--warn-deep,#b45309)}
.sk-kind .ic{width:12px;height:12px;vertical-align:-2px;margin-right:2px}
/* 4위 이하 — 배경 구획 전체가 잠긴 상태로 보인다(무엇이 기다리는지는 보여 준다) */
.sk-bgnote{margin:0 auto 14px;max-width:460px;text-align:center;font-size:12.5px;line-height:1.7;
  font-weight:700;color:var(--muted,#8b8aa3)}

/* ═══════════════ 진입 연출 (2026-08-21 사용자 확정, /fx-design 목업에서 이관) ═══════════════
   랭킹 화면에 "들어온 그 순간" 1회만 돈다. 탭·페이지를 바꿀 때는 다시 돌지 않는다(화면 쪽에서 첫 렌더에만 클래스를 붙인다).
   · 순위 줄  : 위에서 충격과 함께 내려앉는다. --gi(0,1,2…) 순서대로 0.06초씩 늦게 들어온다.
   · 시상대   : 아래에서 솟아오르고 메달이 튄다. 3위 → 2위 → 1위 순으로 절정이 오게 지연을 준다
                (DOM 순서는 1·2·3인데 화면 배치는 CSS order라 지연으로 맞춘다).
   색은 기존 원소색(--e/--e2)에서 뽑아 순위마다 자동으로 달라진다. 연출이 없는 11위 이하 줄에도
   미끄러져 들어오는 동작은 그대로 걸리고(변수 폴백), 섬광·충격파만 빠진다. */
@keyframes gxInRow{
  0%{transform:scale(1.14) translateY(-6px);opacity:0;filter:brightness(2.4) saturate(1.6)}
  22%{opacity:1}
  46%{transform:scale(.985) translateY(1px);filter:brightness(1.15)}
  70%{transform:scale(1.004);filter:brightness(1)}
  100%{transform:none;filter:none}}
@keyframes gxInFlash{0%{opacity:.9}100%{opacity:0}}
@keyframes gxInRing{0%{transform:translate(-50%,-50%) scale(.2);opacity:0}
  12%{opacity:.95}100%{transform:translate(-50%,-50%) scale(2.6);opacity:0}}
.rank-row.gx-in{animation:gxInRow .78s cubic-bezier(.16,1,.3,1) both;
  animation-delay:calc(var(--gi,0) * .06s)}
.rank-row.gx-in .gxin{position:absolute;inset:0;z-index:6;pointer-events:none;
  background:linear-gradient(90deg,rgb(var(--e2,255 255 255) / .5),transparent 60%);
  animation:gxInFlash .5s ease-out both;animation-delay:calc(var(--gi,0) * .06s)}
.rank-row.gx-in .gxin::after{content:"";position:absolute;left:26%;top:50%;width:120px;aspect-ratio:1;
  border-radius:50%;border:2px solid rgb(var(--e,255 255 255) / .9);
  animation:gxInRing .8s cubic-bezier(.2,.7,.3,1) both;animation-delay:calc(var(--gi,0) * .06s)}

@keyframes gxInPod{
  0%{transform:translateY(30px) scale(.86);opacity:0;filter:brightness(2.2) saturate(1.5)}
  30%{opacity:1}
  62%{transform:translateY(-5px) scale(1.025);filter:brightness(1.18)}
  100%{transform:none;filter:none}}
@keyframes gxInMedal{0%{transform:scale(0) rotate(-38deg);opacity:0}
  58%{transform:scale(1.28) rotate(7deg);opacity:1}100%{transform:none;opacity:1}}
@keyframes gxInBeam{0%{transform:scaleY(0);opacity:0}24%{opacity:.85}100%{transform:scaleY(1);opacity:0}}
.pod.gx-in{animation:gxInPod .82s cubic-bezier(.16,1,.3,1) both}
.pod.p3.gx-in{animation-delay:0s}
.pod.p2.gx-in{animation-delay:.13s}
.pod.p1.gx-in{animation-delay:.28s}
.pod.gx-in .pmedal{animation:gxInMedal .66s cubic-bezier(.2,1.5,.4,1) both}
.pod.p3.gx-in .pmedal{animation-delay:.16s}
.pod.p2.gx-in .pmedal{animation-delay:.29s}
.pod.p1.gx-in .pmedal{animation-delay:.44s}
.pod.gx-in .gxin{position:absolute;inset:0;z-index:6;pointer-events:none}
.pod.gx-in .gxin::before{content:"";position:absolute;left:50%;top:34%;width:78%;aspect-ratio:1;
  border-radius:50%;border:2px solid rgb(var(--e,255 255 255) / .9);
  animation:gxInRing .8s cubic-bezier(.2,.7,.3,1) both}
.pod.p3.gx-in .gxin::before{animation-delay:.1s}
.pod.p2.gx-in .gxin::before{animation-delay:.23s}
.pod.p1.gx-in .gxin::before{animation-delay:.38s}
/* 1위 칸에만 위에서 빛기둥이 한 번 내려온다 */
.pod.p1.gx-in .gxin::after{content:"";position:absolute;left:50%;top:0;width:44%;height:100%;
  transform-origin:top;translate:-50% 0;
  background:linear-gradient(180deg,rgb(var(--e2,255 255 255) / .55),transparent 78%);
  animation:gxInBeam .9s ease-out both;animation-delay:.3s}

/* 장식 고르기 — 이모지 대신 쓰는 아이콘·메달 그림 (2026-08-21 사용자 지침: 화면에 이모지 금지) */
.sk-medal-img{height:20px;width:auto;display:block;filter:drop-shadow(0 2px 3px rgb(0 0 0 / .25))}
.sk-fam .ic,.sk-lock .ic,.sk-chip .ic,.sk-on .ic{width:12px;height:12px;vertical-align:-2px;margin-right:2px}
.sk-x .ic{width:16px;height:16px}
