/* 랭킹 단상·상태 표시(v2.6). index.html .podium 기본 모양 위에 덧씀 */

/* 받침 높이 차이를 확실하게: 1등 > 2등 > 3등 */
.podium .p { position: relative; }
.podium .p1 .step { height: 64px; }
.podium .p2 .step { height: 44px; }
.podium .p3 .step { height: 28px; }

/* 「대결」 버튼·「대결 중」·「게임 중」은 캐릭터 오른쪽 위에 겹쳐 띄움(칸 높이를 바꾸지 않게) */
.podium .duel-go, .podium .duel-busy { position: absolute; top: 2px; right: 0; margin: 0; z-index: 1; }
.play-busy { background: #3d7a3a; }

/* 1~3등 캐릭터 움직임: 1등은 통통 뛰며 반짝, 2·3등은 살랑 */
.podium canvas { transform-origin: 50% 96%; }
.podium .p1 canvas { animation: podHop 1.5s ease-in-out infinite; }
.podium .p2 canvas { animation: podSway 2.4s ease-in-out infinite; }
.podium .p3 canvas { animation: podSway 2.4s ease-in-out -1.2s infinite; }
@keyframes podHop {
  0%, 100% { transform: translateY(0) scale(1.03, .97); }
  40% { transform: translateY(-7%) scale(.97, 1.03); }
  60% { transform: translateY(-5%) scale(.99, 1.01); }
}
@keyframes podSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.podium .p1::before, .podium .p1::after { content: ""; position: absolute; width: 14px; height: 14px; background: #ffd95a;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: podTwinkle 1.8s ease-in-out infinite; pointer-events: none; }
.podium .p1::before { top: 8%; left: 6%; }
.podium .p1::after { top: 26%; right: 4%; width: 10px; height: 10px; animation-delay: -.9s; }
@keyframes podTwinkle { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
.podium .p1 .step { background: linear-gradient(180deg, #ffd95a, #f4bf3a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.podium .p1 .pn { color: #a8700a; }
.podium .p.me .pn { color: var(--leaf); }
@media (prefers-reduced-motion: reduce) { .podium canvas, .podium .p1::before, .podium .p1::after { animation: none; } }

/* 내 줄 초록 테두리를 줄 안쪽에(스크롤 목록 끝에서 아래가 잘렸음, PC) */
.rank li.me { outline-offset: -2px; }

/* 대결 승률 랭킹: 전적을 이름 아래 둘째 줄로(한 줄이면 「대결」 버튼과 겹쳐 「1승 0패 · 2…」로 잘렸음) */
#duelRankList .nm { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
#duelRankList .nm > span, #duelRankList .nm small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#duelRankList .nm small { margin-left: 0; font-size: 0.7rem; }

/* 윈도우: 기본 스크롤바가 17px로 두꺼워 목록·채팅 폭을 먹음 → 얇게(맥은 원래 겹쳐 보이는 얇은 막대) */
.rank, .chatlog, .history, .duel-list, .closet-dlg *, .notice-dlg, .share-dlg { scrollbar-width: thin; scrollbar-color: #cdbba8 transparent; }
.podium .p1 .duel-go, .podium .p1 .duel-busy { right: -8px; top: 6px; }

/* 성장 랭킹 탭(v4.2, grow-rank.js): 켜면 점수 랭킹(단상·목록·명예의 전당)을 숨김. 대결 탭(duel.css)과 같은 방식 */
#growRankList, p.grow-rank-empty, p.grow-head { display: none; }
.grow-scope #growRankList { display: flex; }
.grow-scope p.grow-rank-empty:not([hidden]), .grow-scope p.grow-head { display: block; }
.grow-scope #rankPodium, .grow-scope #rankList, .grow-scope #rankEmpty, .grow-scope #hall { display: none !important; }
p.grow-head { margin: 0 0 6px; font-size: 0.74rem; color: var(--muted); }
#growRankList li { grid-template-columns: 26px minmax(0, 1fr) auto auto; }
#growRankList li .pt { grid-column: 4; color: var(--leaf); }
#growRankList li .duel-go, #growRankList li .duel-busy { grid-column: 3; }
#growRankList li .nm small { display: block; margin-left: 0; font-size: 0.7rem; }
#growRankList li.unranked { opacity: .7; }
#growRankList li.grow-top { background: #e6f4d8; }
#growRankList li.grow-top .no::after { content: "새싹"; display: block; font: 0.55rem var(--display); color: var(--leaf); }
#scopeGrow[aria-pressed="true"] { background: var(--leaf); color: #fff; }
