﻿/* ============================================================================
   mock-league.css — 모의투자 리그 현황 팝업 (.ml-*)
   테마 토큰(theme.css)만 쓴다. 팝업 틀은 calendar-panel.css 의 .rightside-popup-cp 를 재사용.
   ============================================================================ */
.rightside-popup-league { width: min(94vw, 1080px); }
.ml-host { padding: 0 14px 18px; }
.ml { color: var(--text-primary); font-size: calc(13px * var(--fs-scale, 1)); line-height: 1.45; }
.ml .is-up { color: var(--red-up); }
.ml .is-down { color: var(--blue-down); }
.ml-muted { color: var(--text-muted); font-size: calc(13px * var(--fs-scale, 1)); }
.ml-note { margin: 8px 2px 0; color: var(--text-muted); font-size: calc(13px * var(--fs-scale, 1)); }
.ml-empty { margin: 0; padding: 22px 0; text-align: center; color: var(--text-muted); }

/* 시즌 선택 */
.ml-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 8px; flex-wrap: wrap; }
.ml-season select { appearance: none; -webkit-appearance: none; padding: 8px 32px 8px 12px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; color: var(--text-primary); font-size: calc(15px * var(--fs-scale, 1)); font-weight: 700; cursor: pointer; }
.ml-basis { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* 배너 */
.ml-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 16px; overflow: hidden;
    background: linear-gradient(100deg, #ff8a3d 0%, #ff5a6e 55%, #ff3d8d 100%); color: #fff; box-shadow: 0 10px 30px rgba(255, 90, 110, .25); }
.ml-banner-slogan { margin: 0 0 4px; font-weight: 600; opacity: .95; }
.ml-banner-title { margin: 0; font-size: calc(24px * var(--fs-scale, 1)); font-weight: 900; letter-spacing: -.02em; }
.ml-banner-r { display: flex; flex-direction: column; gap: 8px; margin-right: 70px; font-variant-numeric: tabular-nums; }
.ml-banner-row { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.ml-tag { padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #e8443f; font-weight: 700; font-size: calc(13px * var(--fs-scale, 1)); }
.ml-banner-trophy { position: absolute; right: 18px; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: 64px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }

/* 2단 */
.ml-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; margin-top: 14px; }
.ml-col { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.ml-sec { min-width: 0; }
.ml-h { margin: 0 0 10px; font-size: calc(16px * var(--fs-scale, 1)); font-weight: 800; letter-spacing: -.01em; }
.ml-h-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
    .ml-h-row .ml-h { margin: 0; }

/* 리그개요 */
.ml-dl { margin: 0; padding: 6px 16px; border-radius: 12px; background: var(--bg-light); border: 1px solid var(--border-subtle); }
    .ml-dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
    .ml-dl > div:last-child { border-bottom: 0; }
    .ml-dl dt { color: var(--text-muted); white-space: nowrap; }
    .ml-dl dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
    .ml-dl-desc dd { text-align: left; font-weight: 500; color: var(--text-secondary); }
    .ml-dl-desc dd .ml-warn { color: var(--red-up); font-weight: 600; }   /* 순위 제외 기준 강조 (2026-10-16) */
.ml-link { border: 0; background: transparent; color: var(--red-up); font-weight: 700; cursor: pointer; padding: 0; font-family: inherit; }
    .ml-link:hover { text-decoration: underline; }

/* 순위 번호 · 로고 */
.ml-no { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(13px * var(--fs-scale, 1)); background: var(--fg-a08); color: var(--text-secondary); }
    .ml-no.is-1 { background: rgba(245, 196, 81, .22); color: #b8860b; }
    .ml-no.is-2 { background: var(--fg-a10); color: var(--text-primary); }
    .ml-no.is-3 { background: rgba(var(--red-up-rgb), .15); color: var(--red-up); }
.ml-logo { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--c-blue), var(--c-purple)); color: #fff; font-weight: 800; font-size: calc(13px * var(--fs-scale, 1)); }

/* 매매종목 상위 */
.ml-rank-list { list-style: none; margin: 0; padding: 0; }
    .ml-rank-list li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border-subtle); }
.ml-stock { flex: 1 1 auto; min-width: 0; text-align: left; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-weight: 600; cursor: pointer; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .ml-stock:hover { text-decoration: underline; }
.ml-amt { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 수익/손실 종목 막대 */
.ml-seg { display: inline-flex; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.ml-seg-btn { border: 0; background: transparent; color: var(--text-muted); padding: 5px 14px; font: inherit; font-weight: 600; cursor: pointer; }
    .ml-seg-btn.is-on { background: var(--bg-lighter); color: var(--text-primary); }
.ml-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; padding: 6px 2px 0; }
.ml-bar { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: transparent; padding: 0; cursor: pointer; font: inherit; color: var(--text-primary); min-width: 0; }
.ml-bar-col { width: 100%; height: 150px; display: flex; align-items: flex-end; }
    .ml-bar-col i { display: block; width: 100%; border-radius: 10px 10px 4px 4px; background: var(--red-up); transition: height .3s ease; }
.ml-bars.is-loss .ml-bar-col i { background: var(--blue-down); }
.ml-bar-rate { font-variant-numeric: tabular-nums; font-size: calc(14px * var(--fs-scale, 1)); }
.ml-bar-name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-secondary); }

/* 업종 */
.ml-sector-list { list-style: none; margin: 0; padding: 0; }
    .ml-sector-list li { display: grid; grid-template-columns: 22px 1fr 110px 48px; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border-subtle); }
.ml-sector-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-sector-bar { height: 8px; border-radius: 999px; background: var(--fg-a08); overflow: hidden; }
    .ml-sector-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c-blue), var(--c-purple)); }
.ml-sector-pct { text-align: right; font-variant-numeric: tabular-nums; }

/* 보상 */
.ml-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ml-prize { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.ml-prize-img { width: 120px; height: 120px; border-radius: 50%; background: var(--bg-light); border: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 6px; }
    .ml-prize-img img { width: 100%; height: 100%; object-fit: cover; }
.ml-prize-ph { font-size: 44px; }
.ml-prize-cond { color: var(--text-muted); }
.ml-prize-title { font-size: calc(14px * var(--fs-scale, 1)); }
.ml-prize-desc { color: var(--text-muted); }

/* 참가현황 */
.ml-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 10px; border-radius: 12px; background: var(--bg-light); border: 1px solid var(--border-subtle); text-align: center; }
    .ml-stats div { display: flex; flex-direction: column; gap: 4px; }
    .ml-stats span { color: var(--text-muted); }
    .ml-stats b { font-size: calc(17px * var(--fs-scale, 1)); font-variant-numeric: tabular-nums; }
.ml-share { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ml-share-row { position: relative; display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 12px; border-radius: 10px; overflow: hidden; background: var(--bg-light); }
    .ml-share-row i { position: absolute; left: 0; top: 0; bottom: 0; z-index: 0; }
    .ml-share-row.is-up i { background: rgba(var(--red-up-rgb), .12); }
    .ml-share-row.is-down i { background: rgba(var(--blue-down-rgb), .12); }
    .ml-share-row .ml-share-lbl, .ml-share-row b { position: relative; z-index: 1; }
    .ml-share-row.is-up b { color: var(--red-up); }
    .ml-share-row.is-down b { color: var(--blue-down); }

/* 랭킹 */
.ml-me { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg-light); border: 1px solid var(--border-subtle); margin-bottom: 14px; }
    .ml-me span { color: var(--text-muted); }
    .ml-me b:nth-of-type(1) { flex: 1 1 auto; }
    .ml-me.is-on { cursor: pointer; border-color: var(--border-strong); }
.ml-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; padding: 6px 0 14px; }
.ml-pod { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: transparent; padding: 0; font: inherit; color: var(--text-primary); cursor: pointer; min-width: 0; }
    .ml-pod.is-vacant { cursor: default; opacity: .5; }
.ml-pod-name { display: flex; align-items: center; gap: 4px; max-width: 100%; }
.ml-pod-rate { font-variant-numeric: tabular-nums; }
.ml-pod-block { width: 100%; height: 50px; margin-top: 6px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-secondary); background: var(--fg-a05); }
.ml-pod.is-1 .ml-pod-block { height: 70px; background: rgba(245, 196, 81, .18); color: #b8860b; }
.ml-pod.is-3 .ml-pod-block { height: 40px; background: rgba(var(--red-up-rgb), .10); color: var(--red-up); }
.ml-avatar { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: inline-block; position: relative; }
    .ml-avatar::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; transform: translate(-50%, -62%); border-radius: 50%; background: rgba(255, 255, 255, .85); }
    .ml-avatar::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 80%; height: 40%; transform: translateX(-50%); border-radius: 50% 50% 0 0; background: rgba(255, 255, 255, .85); }
    .ml-avatar.is-lg { width: 52px; height: 52px; }
    .ml-avatar { overflow: hidden; }
    .ml-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #fff; }
    .ml-avatar.has-img::before, .ml-avatar.has-img::after { display: none; }
.ml-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ml-chip { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-style: normal; font-size: calc(13px * var(--fs-scale, 1)); font-weight: 700; line-height: 18px; }
    .ml-chip.is-me { background: var(--red-up); color: var(--on-accent); }
    .ml-chip.is-win { background: rgba(245, 196, 81, .22); color: #b8860b; }
    .ml-chip.is-off { border: 1px solid var(--border-color); color: var(--text-muted); line-height: 16px; }   /* 보상 자격 미달 (2026-10-27) */
.ml-list { list-style: none; margin: 0; padding: 0; }
.ml-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--border-subtle); background: transparent; color: var(--text-primary); font: inherit; text-align: left; cursor: pointer; }
    .ml-row[data-ml-player]:hover { background: var(--fg-a05); }
    .ml-row.is-me { background: rgba(var(--red-up-rgb), .06); }
.ml-row-no { width: 26px; text-align: center; font-variant-numeric: tabular-nums; color: var(--text-secondary); flex: 0 0 auto; }
.ml-row .ml-nm { flex: 1 1 auto; }
.ml-row-rate { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ml-pager { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.ml-pg { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border-subtle); background: var(--bg-light); color: var(--text-primary); cursor: pointer; font: inherit; }
    .ml-pg.is-active { background: var(--text-primary); color: var(--bg-dark); border-color: var(--text-primary); font-weight: 700; }
    .ml-pg:disabled { opacity: .4; cursor: default; }

@media (max-width: 760px) {
    .ml-grid { grid-template-columns: 1fr; }
    .ml-banner { flex-direction: column; align-items: flex-start; }
    .ml-banner-r { margin-right: 0; }
    .ml-banner-trophy { display: none; }
    .ml-prizes { grid-template-columns: repeat(3, 1fr); }
}

/* 여백 — 팝업 안이 답답하지 않게 */
.rightside-popup-league .rightside-popup-header { padding: 16px 26px; }
.ml-host { padding: 0 26px 30px; }
.ml-top { padding: 14px 2px 12px; }
.ml-banner { margin: 2px 0 6px; padding: 26px 30px; }
.ml-grid { gap: 12px 36px; margin-top: 22px; }
.ml-col { gap: 30px; }
.ml-h { margin-bottom: 12px; }
.ml-h-row { margin-bottom: 12px; }
.ml-dl { padding: 8px 18px; }
.ml-rank-list li, .ml-sector-list li { padding: 11px 6px; }
.ml-prizes { gap: 14px; padding: 4px 0; }
.ml-stats { padding: 18px 12px; }
/* 종목 로고: tomato.co.kr/images/CompanyLogo/{6자리코드}.png (관심목록 모의계좌·증시동향과 같은 규칙), 없으면 첫 글자 배지 */
.ml-logo { position: relative; overflow: hidden; }
    .ml-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); clip-path: circle(46.3% at 50% 50%); }   /* 흰 테 방지 (2026-10-12) — 흰 배경을 깔면 원 가장자리에 비친다. 회사 로고 PNG 는 가장자리까지 불투명이라 배경이 필요 없다 */
.ml-logo:has(img) { background: none; }   /* 로고가 있으면 뒤의 글자 배지 색이 가장자리로 비치지 않게 */

/* 여백 2차 — calendar-panel.css 의 .rightside-popup-cp .rightside-popup-content(두 클래스) 가 .ml-host 한 클래스보다 우선해 앞의 여백이 안 먹었다 */
.rightside-popup-league { width: min(94vw, 1140px); }
.rightside-popup-league .rightside-popup-content.ml-host { padding: 0 44px 48px; }
.rightside-popup-league .rightside-popup-header { padding: 18px 30px; }
.ml-top { padding: 22px 2px 18px; }
.ml-banner { margin: 4px 0 12px; padding: 30px 34px; }
.ml-grid { gap: 20px 56px; margin-top: 34px; }
.ml-col { gap: 40px; }
.ml-h, .ml-h-row { margin-bottom: 16px; }
.ml-dl { padding: 10px 20px; }
.ml-rank-list li, .ml-sector-list li { padding: 13px 8px; }
.ml-prizes { gap: 20px; padding: 8px 0; }
.ml-stats { padding: 22px 14px; }
.ml-share { margin-top: 14px; gap: 10px; }
.ml-me { padding: 14px 16px; margin-bottom: 18px; }
.ml-podium { padding: 10px 0 20px; }
.ml-bars { padding: 12px 6px 4px; gap: 12px; }
@media (max-width: 760px) {
    .rightside-popup-league .rightside-popup-content.ml-host { padding: 0 18px 28px; }
    .ml-grid { gap: 20px; }
}

/* ───────── 보상 신청 팝업 (iframe) ───────── */
.rightside-popup-claim { width: min(94vw, 640px); }
/* 팝업 높이는 안쪽 내용만큼 (mock-league.js 가 iframe 높이를 맞춘다) — 고정 88vh 면 내용이 짧을 때 아래가 비었다 */
.rightside-popup-cp.rightside-popup-claim { height: auto; max-height: 88vh; }
.rightside-popup-claim .rightside-popup-content.ml-claim-host { padding: 0; overflow: hidden; display: flex; }
.ml-claim-host iframe { display: block; width: 100%; height: min(60vh, 560px); max-height: 100%; border: 0; background: transparent; }

/* ───────── 당첨 배너 ───────── */
.ml-win-banner {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9000;
    display: flex; align-items: center; gap: 12px; max-width: min(92vw, 560px); padding: 12px 14px 12px 16px;
    border-radius: 14px; background: var(--bg-light); border: 1px solid var(--border-strong);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .35); color: var(--text-primary);
    font-size: calc(13px * var(--fs-scale, 1)); line-height: 1.4;
    animation: mlWinIn .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes mlWinIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ml-win-ico { font-size: 26px; line-height: 1; flex: 0 0 auto; }
.ml-win-body { min-width: 0; flex: 1; }
.ml-win-title { font-weight: 700; }
.ml-win-title b { color: var(--red-up); }
.ml-win-sub { color: var(--text-secondary); font-size: calc(12px * var(--fs-scale, 1)); margin-top: 2px; }
.ml-win-sub b { color: var(--text-primary); font-weight: 600; }
.ml-win-btn {
    flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 10px; border: 0; cursor: pointer;
    background: var(--red-up); color: #fff; font: inherit; font-weight: 700;
}
.ml-win-btn:hover { filter: brightness(1.08); }
.ml-win-close { flex: 0 0 auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--text-secondary); font-size: 20px; line-height: 1; cursor: pointer; }
.ml-win-close:hover { background: var(--fg-a10); color: var(--text-primary); }

/* 시즌 순위 마감 안내 (2026-10-07) */
.ml-lock { margin: 0 0 8px; padding: 7px 10px; border-radius: 8px; background: rgba(245, 158, 11, .12); }

/* ─── 리그 현황 등장 연출 (2026-10-30 · mock-league.js playIntro · 키프레임은 order-panel.css 의 mo*) ─── */
@keyframes mlPopIn { from { transform: translateY(14px) scale(.97); opacity: 0; } }
.rightside-popup-league { animation: mlPopIn .32s cubic-bezier(.2, .8, .3, 1) both; }
.ml-pod { position: relative; }
.ml-pod-block { position: relative; overflow: hidden; }
.is-intro .ml-pod-block { transform-origin: 50% 100%; animation: moPodRise .6s cubic-bezier(.2, .9, .3, 1.15) both; }
.is-intro .ml-pod.is-3 .ml-pod-block { animation-delay: .05s; }
.is-intro .ml-pod.is-2 .ml-pod-block { animation-delay: .18s; }
.is-intro .ml-pod.is-1 .ml-pod-block { animation-delay: .32s; }
.is-intro .ml-pod > .ml-avatar { animation: moPop .5s cubic-bezier(.3, 1.4, .5, 1) both; }
.is-intro .ml-pod.is-3 > .ml-avatar { animation-delay: .3s; }
.is-intro .ml-pod.is-2 > .ml-avatar { animation-delay: .42s; }
.is-intro .ml-pod.is-1 > .ml-avatar { animation: moPop .55s cubic-bezier(.3, 1.4, .5, 1) .58s both, moGlow 1.1s ease .9s 1; }
.is-intro .ml-pod-name, .is-intro .ml-pod-rate { animation: moFadeUp .4s ease .5s both; }
.is-intro .ml-pod.is-1 .ml-pod-block::after {
    content: ''; position: absolute; inset: 0; width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 236, 170, .55), transparent);
    animation: moShine .9s ease .85s both;
}
.is-intro .ml-me { animation: moFadeUp .45s ease .55s both; }
.is-intro .ml-list > li { animation: moRowIn .38s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(.6s + var(--i, 0) * 28ms); }
.is-intro-list .ml-list > li { animation: moRowIn .34s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(var(--i, 0) * 24ms); }
@media (prefers-reduced-motion: reduce) {
    .rightside-popup-league, .is-intro *, .is-intro-list * { animation: none !important; }
}

/* ─── 시상대 메달색 · 왕관 (2026-10-30 v2) ─── */
.ml-pod { position: relative; }
.ml-pod .ml-pod-block {
    position: relative; overflow: hidden;
    border: 1px solid transparent; border-top-width: 2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ml-pod.is-1 .ml-pod-block { background: linear-gradient(180deg, rgba(255, 214, 92, .62) 0%, rgba(242, 183, 5, .28) 55%, rgba(242, 183, 5, .10) 100%); border-color: rgba(255, 214, 92, .55); border-top-color: #ffd65c; }
.ml-pod.is-2 .ml-pod-block { background: linear-gradient(180deg, rgba(226, 232, 240, .50) 0%, rgba(148, 163, 184, .22) 55%, rgba(148, 163, 184, .08) 100%); border-color: rgba(203, 213, 225, .45); border-top-color: #dbe3ee; }
.ml-pod.is-3 .ml-pod-block { background: linear-gradient(180deg, rgba(255, 176, 120, .55) 0%, rgba(205, 127, 50, .24) 55%, rgba(205, 127, 50, .08) 100%); border-color: rgba(240, 160, 110, .45); border-top-color: #f3a774; }
/* 블록 윗면 광택 */
.ml-pod:not(.is-vacant) .ml-pod-block::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent);
    pointer-events: none;
}
/* 1위 블록 — 4초마다 은은한 광택이 지나간다 */
.ml-pod.is-1 .ml-pod-block::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 246, 200, .55), transparent);
    transform: translateX(-140%) skewX(-18deg);
    animation: moGloss 4s ease-in-out 2.2s infinite;
    pointer-events: none;
}
@keyframes moGloss { 0%, 70% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(300%) skewX(-18deg); } }
/* 프로필 메달색 링 */
.ml-pod.is-1 > .ml-avatar { box-shadow: 0 0 0 3px #ffd65c, 0 0 18px rgba(255, 200, 60, .45); }
.ml-pod.is-2 > .ml-avatar { box-shadow: 0 0 0 3px #cfd8e3; }
.ml-pod.is-3 > .ml-avatar { box-shadow: 0 0 0 3px #f0a070; }
/* 1위 왕관 */
.ml-pod.is-1:not(.is-vacant)::before {
    content: ''; position: absolute; left: 50%; top: -15px; z-index: 2;
    width: 30px; height: 21px; transform: translateX(-50%) rotate(-8deg);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 18'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1a8'/%3E%3Cstop offset='1' stop-color='%23f2b705'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M2 16 L1 4 L7.5 9 L13 1.5 L18.5 9 L25 4 L24 16 Z' fill='url(%23g)' stroke='%23b8860b' stroke-width='1.2' stroke-linejoin='round'/%3E%3Ccircle cx='13' cy='12' r='1.6' fill='%23e5484d'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45));
}
.ml-pod.is-1 .ml-pod-rate { font-size: 16px; font-weight: 800; }

/* 리그 현황 블록 안 순위 숫자 — 메달 배지처럼 */
.ml-pod .ml-pod-block { font-size: 20px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.ml-pod.is-1 .ml-pod-block { color: #fff6cf; }
.ml-pod.is-2 .ml-pod-block, .ml-pod.is-3 .ml-pod-block { color: #fff; }

.is-intro .ml-pod .ml-pod-block { transform-origin: 50% 100%; animation: moGrow .5s cubic-bezier(.2, .9, .3, 1.2) both !important; }
.is-intro .ml-pod.is-3 .ml-pod-block { animation-delay: .05s !important; }
.is-intro .ml-pod.is-2 .ml-pod-block { animation-delay: .15s !important; }
.is-intro .ml-pod.is-1 .ml-pod-block { animation-delay: .25s !important; }
.is-intro .ml-pod > .ml-avatar { animation: moDrop .7s cubic-bezier(.3, .8, .4, 1) both !important; }
.is-intro .ml-pod.is-3 > .ml-avatar { animation-delay: .35s !important; }
.is-intro .ml-pod.is-2 > .ml-avatar { animation-delay: .5s !important; }
.is-intro .ml-pod.is-1 > .ml-avatar { animation-delay: .65s !important; }
.is-intro .ml-pod.is-1:not(.is-vacant)::before { animation: moCrown .7s cubic-bezier(.3, 1.3, .5, 1) 1.05s both; }
.is-intro .ml-pod.is-1 .ml-pod-block::after { animation: moGloss 4s ease-in-out 1.6s infinite; }
@media (prefers-reduced-motion: reduce) {
    .ml-pod.is-1 .ml-pod-block::after, .is-intro .ml-pod.is-1:not(.is-vacant)::before { animation: none !important; }
}

/* ─── 리그 현황 팝업 등장 (2026-10-30 v2) — 배경이 흐려지며 창이 떠오르고, 배너·카드·시상대가 차례로 ─── */
@keyframes mlDimIn { from { background-color: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
@keyframes mlDimOut { to { background-color: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
@keyframes mlRise { from { transform: translateY(34px) scale(.94); opacity: 0; filter: blur(3px); } 60% { filter: blur(0); } to { transform: none; opacity: 1; } }
@keyframes mlSink { to { transform: translateY(16px) scale(.97); opacity: 0; } }
@keyframes mlBannerIn { from { transform: translateX(-24px); opacity: 0; clip-path: inset(0 100% 0 0 round 16px); } to { transform: none; opacity: 1; clip-path: inset(0 0 0 0 round 16px); } }
@keyframes mlSweep { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes mlTrophy { 0% { transform: translateY(-120%) rotate(-30deg) scale(.5); opacity: 0; } 55% { transform: translateY(-46%) rotate(10deg) scale(1.12); opacity: 1; } 75% { transform: translateY(-52%) rotate(-12deg); } 100% { transform: translateY(-50%) rotate(-8deg); } }
@keyframes mlFloat { 0%, 100% { transform: translateY(-50%) rotate(-8deg); } 50% { transform: translateY(-56%) rotate(-4deg); } }
@keyframes mlSecIn { from { transform: translateY(14px); opacity: 0; } }
.ml-overlay { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: mlDimIn .3s ease both; }
.ml-overlay .rightside-popup-league { animation: mlRise .5s cubic-bezier(.2, .9, .25, 1.05) both; }
.ml-overlay.is-closing { animation: mlDimOut .22s ease both; }
.ml-overlay.is-closing .rightside-popup-league { animation: mlSink .22s ease both; }
/* 배너 — 왼쪽에서 열리고 빛이 한 번 지나간다 · 트로피가 떨어져 흔들린 뒤 둥실 */
.ml-banner-trophy { animation: mlFloat 3.6s ease-in-out infinite; }
.is-intro .ml-top { animation: mlSecIn .35s ease both; }
.is-intro .ml-banner { animation: mlBannerIn .6s cubic-bezier(.2, .8, .25, 1) .08s both; }
.is-intro .ml-banner::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 35%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    animation: mlSweep .9s ease .55s both; pointer-events: none;
}
.is-intro .ml-banner-trophy { animation: mlTrophy .8s cubic-bezier(.3, 1.2, .5, 1) .45s both, mlFloat 3.6s ease-in-out 1.3s infinite; }
/* 섹션 카드 — 차례로 떠오른다 */
.is-intro .ml-sec { animation: mlSecIn .45s cubic-bezier(.2, .8, .3, 1) both; animation-delay: calc(.35s + var(--s, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) {
    .ml-overlay, .ml-overlay .rightside-popup-league, .ml-banner-trophy, .is-intro .ml-banner, .is-intro .ml-banner::after, .is-intro .ml-sec { animation: none !important; }
}
/* ─── 리그 현황 창 크기 · 뒤 배경 (2026-10-30) — 더 넓고 높게, 뒤 화면 흐림은 없앤다 ─── */
.ml-overlay { -webkit-backdrop-filter: none; backdrop-filter: none; animation: mlDimIn2 .25s ease both; }
.ml-overlay.is-closing { animation: mlDimOut2 .22s ease both; }
@keyframes mlDimIn2 { from { background-color: rgba(0, 0, 0, 0); } }
@keyframes mlDimOut2 { to { background-color: rgba(0, 0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .ml-overlay { animation: none !important; } }
/* ─── 시상대 비율 고정 (2026-10-30) — 창을 넓혀도 블록이 납작·길게 늘지 않게 가운데 일정 폭으로 ─── */
.ml-podium { max-width: 420px; margin: 0 auto; padding-top: 22px; gap: 12px; }
.ml-pod .ml-avatar.is-lg { width: 48px; height: 48px; }
.ml-pod.is-1 .ml-avatar.is-lg { width: 56px; height: 56px; }
.ml-pod.is-1:not(.is-vacant)::before { top: -18px; }
/* 이름과 '자격 미달'은 두 줄로 — 한 줄에 붙이면 이름이 밀려 들쭉날쭉했다 */
.ml-pod-name { flex-direction: column; gap: 3px; text-align: center; }
.ml-pod-name .ml-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-pod-name .ml-chip { order: 2; font-size: 13px; opacity: .8; }
.ml-pod .ml-pod-rate { order: 0; }
/* 리그 현황 창 크기는 원래대로 (2026-10-30 · 크게 키웠던 규칙 되돌림 — .rightside-popup-league 최대 1140px · 88vh) */
/* 리그 랭킹 — 오른쪽 열이 왼쪽 열(업종현황 상위) 바닥까지 늘어나고 페이지 버튼은 맨 아래에 붙는다 → 양쪽 끝이 맞는다 */
.ml-grid > .ml-col:last-child > .ml-sec:last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
.ml-grid > .ml-col:last-child > .ml-sec:last-child #mlPager { margin-top: auto; padding-top: 12px; }
