/* =============================================
   ranking.css - Championship Gold v4
   ranking.html / ranking.js 현재 구조 기준
   ============================================= */

.rank-sub-page {
  --bg-0: #100d13;
  --bg-1: rgba(19, 16, 24, 0.96);
  --panel: rgba(24, 21, 31, 0.80);
  --text: #fdfcff;
  --muted: #a49bae;
  --muted-2: #6f6879;
  --gold: #ffd700;
  --gold-soft: #f8e1a1;
  --gold-deep: #d9ad33;
  --champagne: #f2dca0;
  --purple: #8a2be2;
  --purple-soft: #bf90ff;
  --line: rgba(255,255,255,0.08);
  --shadow: 0 22px 56px rgba(0,0,0,0.42);
}

.ranking-page { gap: 18px; padding-top: 24px !important; }

/* =============================================
   히어로
   ============================================= */
.ranking-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(125, 211, 252, .22);
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, .16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(232, 184, 75, .10), transparent 30%),
    linear-gradient(180deg, #121821, #0d1218);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.ranking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.025) 35%, transparent 70%);
  pointer-events: none;
}

.ranking-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 211, 252, .45) 20%,
    rgba(255,255,255,.14) 50%,
    rgba(232, 184, 75, .35) 80%,
    transparent
  );
  pointer-events: none;
  z-index: 2;
}

.ranking-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.ranking-hero-inner::before,
.ranking-hero-inner::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  pointer-events: none;
  z-index: 2;
  opacity: .25;
}

.ranking-hero-inner::before {
  top: 14px;
  left: 14px;
  border-top: 1px solid rgba(125, 211, 252, .60);
  border-left: 1px solid rgba(125, 211, 252, .60);
  border-radius: 8px 0 0 0;
}

.ranking-hero-inner::after {
  bottom: 14px;
  right: 14px;
  border-bottom: 1px solid rgba(232, 184, 75, .60);
  border-right: 1px solid rgba(232, 184, 75, .60);
  border-radius: 0 0 8px 0;
}

@keyframes heroParticle1 {
  0%, 100% { opacity: .12; transform: translate(0,0) scale(1); }
  50% { opacity: .22; transform: translate(8px,-6px) scale(1.1); }
}

@keyframes heroParticle2 {
  0%, 100% { opacity: .08; transform: translate(0,0) scale(1); }
  50% { opacity: .16; transform: translate(-6px,8px) scale(1.05); }
}

.ranking-hero-left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.ranking-hero-left::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 15%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, .14), transparent 70%);
  animation: heroParticle1 6s ease-in-out infinite;
  pointer-events: none;
}

.ranking-hero-left::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 8%;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 184, 75, .12), transparent 70%);
  animation: heroParticle2 8s ease-in-out infinite;
  pointer-events: none;
}

.ranking-hero-kicker {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 800;
  color: #8fdcff;
}

.ranking-hero-title {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.3px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #bfe9ff 30%, #ffffff 55%, #f3d488 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroTitleShimmer 6s ease-in-out infinite;
}

@keyframes heroTitleShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

.ranking-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(125, 211, 252, .10);
  border: 1px solid rgba(125, 211, 252, .18);
  color: #d9f3ff;
  font-size: 11px;
  font-weight: 800;
  width: fit-content;
}

.ranking-hero-desc {
  font-size: 13px;
  line-height: 1.85;
  color: #8a94a8;
  max-width: 700px;
}

.ranking-hero-desc strong.op { color: #8fdcff; font-weight: 900; }
.ranking-hero-desc strong.favor { color: #f3d488; font-weight: 900; }
.ranking-hero-desc strong.point { color: #ffffff; font-weight: 900; }
.ranking-hero-desc strong.lock { color: #ffb6c9; font-weight: 900; }








.ranking-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #d7deeb;
}

.ranking-hero-pill.time {
  color: #8fdcff;
  border-color: rgba(125, 211, 252, .18);
  background: rgba(125, 211, 252, .07);
}

.ranking-hero-pill.data {
  color: #f3d488;
  border-color: rgba(232, 184, 75, .18);
  background: rgba(232, 184, 75, .07);
}

.ranking-hero-pill.unlock {
  color: #d9f3ff;
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.ranking-hero-right {
  width: 220px;
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.ranking-hero-stat-card {
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.ranking-hero-stat-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 6px;
}

.ranking-hero-stat-value {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 3px;
}

.ranking-hero-stat-sub {
  font-size: 10px;
  color: #7c879c;
  line-height: 1.5;
}






/* =============================================
   챔피언 헤드
   ============================================= */
.ranking-champion-head {
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px;
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas: "title title" "period mode" "state state";
  gap: 14px 18px; align-items: center;
  background: radial-gradient(circle at top right, rgba(255,215,0,.10), transparent 24%), radial-gradient(circle at bottom left, rgba(138,43,226,.04), transparent 26%), linear-gradient(180deg, rgba(20,17,26,.92), rgba(11,9,15,.96));
  border: 1px solid rgba(255,255,255,.06); box-shadow: 0 18px 44px rgba(0,0,0,.26);
}
.ranking-champion-head::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(140deg, rgba(255,255,255,.02), transparent 42%); }
.ranking-champion-top { display: contents; }
.ranking-champion-title-wrap { grid-area: title; position: relative; z-index: 1; min-width: 0; }
.ranking-champion-kicker { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 900; color: var(--gold); margin-bottom: 6px; }
.ranking-champion-title { margin: 0; font-size: 25px; line-height: 1.18; font-weight: 900; color: #fff; letter-spacing: -.2px; text-shadow: 0 0 14px rgba(255,215,0,.08); }
.ranking-champion-desc { margin-top: 8px; font-size: 12px; line-height: 1.75; color: var(--muted); max-width: 760px; }

/* 기간 탭 */
.ranking-period-cards { position: relative; z-index: 1; grid-area: period; display: flex; align-items: stretch; gap: 10px; min-width: 0; }
.ranking-period-card {
  position: relative; overflow: hidden; flex: 0 0 auto; min-width: 155px; min-height: 62px; padding: 12px 16px 10px; border-radius: 14px;
  border: 2px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), rgba(24,20,16,.88);
  color: #f8f4e8; text-align: left; cursor: pointer; transition: .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.22), 0 4px 14px rgba(0,0,0,.20);
}
.ranking-period-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at top right, rgba(255,215,0,.08), transparent 28%), linear-gradient(120deg, transparent 0%, rgba(255,255,255,.025) 46%, transparent 82%); }
.ranking-period-card:hover { transform: translateY(-3px); border-color: rgba(255,215,0,.30); background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)), rgba(30,25,18,.94); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.22), 0 14px 28px rgba(0,0,0,.24), 0 0 16px rgba(255,215,0,.12); }
.ranking-period-card.active { border-color: rgba(255,215,0,.40); background: linear-gradient(135deg, rgba(255,215,0,.22), rgba(138,43,226,.08), rgba(255,255,255,.04)), rgba(28,23,16,.96); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -2px 0 rgba(0,0,0,.24), 0 0 0 1px rgba(255,215,0,.08), 0 0 22px rgba(255,215,0,.16), 0 0 10px rgba(138,43,226,.06); }
.ranking-period-card.active::after { content: ""; position: absolute; inset: auto 14px 0 14px; height: 3px; border-radius: 999px 999px 0 0; background: linear-gradient(90deg, transparent, rgba(138,43,226,.95), rgba(255,215,0,.98), transparent); box-shadow: 0 0 12px rgba(255,215,0,.18), 0 0 12px rgba(138,43,226,.14); }
.period-card-label { position: relative; z-index: 1; display: block; font-size: 13px; font-weight: 900; color: #fff; margin-bottom: 5px; }
.period-card-date { position: relative; z-index: 1; display: block; font-size: 11px; line-height: 1.55; color: var(--muted); font-weight: 700; white-space: normal; word-break: keep-all; }

/* 모드 버튼 */
.ranking-mode-tabs { position: relative; z-index: 1; grid-area: mode; justify-self: end; display: inline-flex; gap: 8px; align-items: center; }
.ranking-mode-btn {
  min-height: 44px; padding: 0 20px; border-radius: 14px;
  border: 2px solid rgba(255,255,255,.10); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), rgba(24,20,16,.88);
  color: var(--muted); font-size: 13px; font-weight: 900; cursor: pointer; transition: .18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -2px 0 rgba(0,0,0,.20), 0 4px 14px rgba(0,0,0,.18);
}
.ranking-mode-btn:hover { color: #fff; transform: translateY(-2px); border-color: rgba(255,215,0,.22); background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)), rgba(30,25,18,.92); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -2px 0 rgba(0,0,0,.22), 0 12px 24px rgba(0,0,0,.22), 0 0 12px rgba(255,215,0,.08); }
.ranking-mode-btn.active { color: #fff; border-color: rgba(255,215,0,.38); background: linear-gradient(135deg, rgba(255,215,0,.26), rgba(138,43,226,.10)), rgba(28,23,16,.96); box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -2px 0 rgba(0,0,0,.22), 0 0 18px rgba(255,215,0,.16), 0 0 10px rgba(138,43,226,.06); }

/* 상태 배지 */
.ranking-state-badge { position: relative; z-index: 1; grid-area: state; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); color: #f3eddc; font-size: 12px; font-weight: 800; }
.ranking-state-icon { font-size: 14px; }

/* =============================================
   TOP 3
   ============================================= */
.ranking-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.podium-section {
  position: relative; overflow: visible; border-radius: 24px; padding: 24px 20px 20px;
  background: linear-gradient(180deg, rgba(20,17,26,.84), rgba(11,9,15,.95));
  border: 1px solid rgba(255,255,255,.06); box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.podium-section::before { content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none; background: radial-gradient(circle at top right, rgba(255,215,0,.08), transparent 28%), linear-gradient(140deg, rgba(255,255,255,.02), transparent 42%); }
.podium-section::after { content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px; background: linear-gradient(135deg, rgba(255,215,0,.18), rgba(138,43,226,.14), rgba(255,255,255,.03)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.podium-section-title { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 15px; font-weight: 900; color: #fff; }
.podium-trio { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 10px; align-items: end; }

.pod-card {
  position: relative; overflow: visible; border-radius: 18px; padding: 20px 10px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  transition: .18s ease; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.pod-card:hover { transform: translateY(-3px); }

/* ===== 포디움 1위: 붉은색 ===== */
.pod-card.pod-1st {
  min-height: 164px; order: 2;
  background: linear-gradient(180deg, rgba(255,80,80,.10), rgba(255,255,255,.02));
  border: 1.5px solid rgba(255,80,80,.32);
  box-shadow: 0 0 0 1px rgba(255,80,80,.07) inset, 0 0 22px rgba(255,80,80,.14);
}
.pod-card.pod-1st::before { content: "🥇"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 26px; line-height: 1; filter: drop-shadow(0 0 14px rgba(255,80,80,.30)); }
.pod-card.pod-1st::after {
  content: ""; position: absolute; top: -30px; left: 50%; width: 180px; height: 180px; transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255,80,80,.30) 0%, rgba(255,80,80,.13) 24%, rgba(255,80,80,.05) 44%, transparent 62%);
  animation: championHalo 3.2s ease-in-out infinite;
}

/* ===== 포디움 2위: 파란색 ===== */
.pod-card.pod-2nd {
  min-height: 132px; order: 1;
  background: linear-gradient(180deg, rgba(60,140,255,.08), rgba(255,255,255,.02));
  border: 1.5px solid rgba(60,140,255,.28);
  box-shadow: 0 0 0 1px rgba(60,140,255,.06) inset, 0 0 16px rgba(60,140,255,.10);
}
.pod-card.pod-2nd::before { content: "🥈"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 20px; }
.pod-card.pod-2nd::after {
  content: ""; position: absolute; top: -20px; left: 50%; width: 140px; height: 140px; transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(60,140,255,.22) 0%, rgba(60,140,255,.08) 28%, transparent 56%);
  animation: championHalo 3.8s ease-in-out infinite;
}

/* ===== 포디움 3위: 초록색 ===== */
.pod-card.pod-3rd {
  min-height: 132px; order: 3;
  background: linear-gradient(180deg, rgba(60,220,120,.06), rgba(255,255,255,.02));
  border: 1.5px solid rgba(60,220,120,.24);
  box-shadow: 0 0 0 1px rgba(60,220,120,.05) inset, 0 0 14px rgba(60,220,120,.08);
}
.pod-card.pod-3rd::before { content: "🥉"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 20px; }
.pod-card.pod-3rd::after {
  content: ""; position: absolute; top: -20px; left: 50%; width: 130px; height: 130px; transform: translateX(-50%); border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(60,220,120,.18) 0%, rgba(60,220,120,.06) 28%, transparent 56%);
  animation: championHalo 4.2s ease-in-out infinite;
}

.pod-rank { font-size: 12px; font-weight: 900; letter-spacing: .4px; }
.pod-card.pod-1st .pod-rank { color: #ff5050; }
.pod-card.pod-2nd .pod-rank { color: #4a9eff; }
.pod-card.pod-3rd .pod-rank { color: #3cdc78; }





.pod-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(18,18,28,.96), rgba(10,10,18,.98));
  border: 2px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 8px rgba(255,255,255,.04);
}

.pod-icon::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
  opacity: .9;
}

.pod-card.pod-1st .pod-icon {
  width: 56px;
  height: 56px;
  border-color: #ff5050;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 14px rgba(255,80,80,.30),
    0 0 24px rgba(255,80,80,.16);
  transform: scale(1.06);
}

.pod-card.pod-1st .pod-icon::before {
  inset: -7px;
  border-color: rgba(255,80,80,.26);
  box-shadow:
    0 0 16px rgba(255,80,80,.20),
    0 0 28px rgba(255,80,80,.10);
}

.pod-card.pod-2nd .pod-icon {
  border-color: #4a9eff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 12px rgba(74,158,255,.26),
    0 0 22px rgba(74,158,255,.12);
  transform: scale(1.03);
}

.pod-card.pod-2nd .pod-icon::before {
  inset: -6px;
  border-color: rgba(74,158,255,.24);
  box-shadow:
    0 0 14px rgba(74,158,255,.16),
    0 0 22px rgba(74,158,255,.08);
}

.pod-card.pod-3rd .pod-icon {
  border-color: #3cdc78;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 0 12px rgba(60,220,120,.22),
    0 0 20px rgba(60,220,120,.10);
  transform: scale(1.03);
}

.pod-card.pod-3rd .pod-icon::before {
  inset: -6px;
  border-color: rgba(60,220,120,.22);
  box-shadow:
    0 0 12px rgba(60,220,120,.14),
    0 0 20px rgba(60,220,120,.06);
}

.pod-icon img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}




.pod-name { font-size: 13px; font-weight: 900; color: #fff; }
.pod-card.pod-1st .pod-name { font-size: 15px; }

.pod-card.pod-1st .pod-val { color: #ff7070; font-size: 12px; font-weight: 900; }
.pod-card.pod-2nd .pod-val { color: #70d6ff; font-size: 12px; font-weight: 900; }
.pod-card.pod-3rd .pod-val { color: #7ef0a8; font-size: 12px; font-weight: 900; }
.ps-rate .pod-card.pod-1st .pod-val { color: #ff7070; }
.ps-rate .pod-card.pod-2nd .pod-val { color: #70d6ff; }
.ps-rate .pod-card.pod-3rd .pod-val { color: #7ef0a8; }

/* 1위 파티클 (이미지 안 덮게 z-index: -1) */
.podium-section .pod-card.pod-1st .pod-icon::after {
  content: ""; position: absolute; top: -16px; right: -20px; width: 100px; height: 80px; pointer-events: none; z-index: -1; opacity: .90;
  background: radial-gradient(circle, rgba(255,80,80,.34) 0 10%, transparent 11%), radial-gradient(circle, rgba(255,180,180,.24) 0 6%, transparent 7%), radial-gradient(circle, rgba(255,100,100,.24) 0 8%, transparent 9%), radial-gradient(circle, rgba(255,220,220,.18) 0 5%, transparent 6%);
  background-size: 12px 12px, 18px 18px, 22px 22px, 10px 10px; background-position: 0 0, 24px 16px, 50px 6px, 74px 24px; background-repeat: no-repeat;
  animation: redDustFloat 4s linear infinite;
}

/* =============================================
   랭킹 리스트
   ============================================= */
.ranking-board-section {
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px;
  background: linear-gradient(180deg, rgba(20,17,26,.86), rgba(11,9,15,.96));
  border: 1px solid rgba(255,255,255,.06); box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.ranking-board-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at top right, rgba(255,215,0,.05), transparent 20%), radial-gradient(circle at bottom left, rgba(138,43,226,.025), transparent 26%); }

.ranking-board-topbar { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.ranking-board-title { font-size: 24px; font-weight: 900; color: #fff; line-height: 1.2; }
.ranking-board-sub { font-size: 12px; color: var(--muted); line-height: 1.6; }

#rankingList { position: relative; z-index: 1; display: grid; gap: 8px; }

.rank-row {
  position: relative; display: grid;
  grid-template-columns: 56px 52px 1.25fr 170px 170px 200px;
  gap: 12px; align-items: center; padding: 15px 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.05); backdrop-filter: blur(10px); transition: .18s ease;
}
.rank-row:hover { transform: translateY(-2px); border-color: rgba(255,215,0,.18); box-shadow: 0 10px 26px rgba(0,0,0,.25), 0 0 14px rgba(255,215,0,.06); }
.rank-row.row-hidden { opacity: .14; filter: blur(5px); user-select: none; pointer-events: none; }

/* ===== 1위 row: 붉은색 ===== */
.rank-row.row-1st {
  background: linear-gradient(90deg, rgba(255,60,60,.10), rgba(255,120,80,.05) 56%, rgba(255,255,255,.02));
  border-color: rgba(255,70,70,.28);
  box-shadow: 0 0 0 1px rgba(255,70,70,.08) inset, 0 0 22px rgba(255,60,60,.14), 0 0 14px rgba(255,120,80,.08);
}
.rank-row.row-1st::before {
  content: ""; position: absolute; top: -16px; right: 6px; width: 160px; height: 120px; pointer-events: none; z-index: -1; opacity: .95;
  background: radial-gradient(circle, rgba(255,60,60,.36) 0 10%, transparent 11%), radial-gradient(circle, rgba(255,140,140,.26) 0 7%, transparent 8%), radial-gradient(circle, rgba(255,80,60,.28) 0 9%, transparent 10%), radial-gradient(circle, rgba(255,200,180,.22) 0 5%, transparent 6%), radial-gradient(circle, rgba(255,60,60,.20) 0 8%, transparent 9%), radial-gradient(circle, rgba(255,100,80,.24) 0 6%, transparent 7%);
  background-size: 16px 16px, 22px 22px, 28px 28px, 12px 12px, 20px 20px, 14px 14px; background-position: 0 0, 30px 22px, 60px 8px, 90px 30px, 120px 14px, 140px 40px; background-repeat: no-repeat;
  animation: redDustFloat 3.8s linear infinite;
}

/* ===== 2위 row: 파란색 ===== */
.rank-row.row-2nd {
  background: linear-gradient(90deg, rgba(60,140,255,.08), rgba(80,180,255,.04) 56%, rgba(255,255,255,.02));
  border-color: rgba(70,150,255,.24);
  box-shadow: 0 0 0 1px rgba(70,150,255,.06) inset, 0 0 18px rgba(60,140,255,.12), 0 0 12px rgba(80,180,255,.06);
}
.rank-row.row-2nd::before {
  content: ""; position: absolute; top: -14px; right: 8px; width: 140px; height: 100px; pointer-events: none; z-index: -1; opacity: .90;
  background: radial-gradient(circle, rgba(60,140,255,.32) 0 10%, transparent 11%), radial-gradient(circle, rgba(130,200,255,.24) 0 7%, transparent 8%), radial-gradient(circle, rgba(60,160,255,.26) 0 9%, transparent 10%), radial-gradient(circle, rgba(180,220,255,.20) 0 5%, transparent 6%), radial-gradient(circle, rgba(60,140,255,.18) 0 7%, transparent 8%);
  background-size: 14px 14px, 20px 20px, 26px 26px, 10px 10px, 18px 18px; background-position: 0 0, 26px 20px, 52px 8px, 78px 28px, 110px 14px; background-repeat: no-repeat;
  animation: blueDustFloat 4.2s linear infinite;
}

/* ===== 3위 row: 초록색 ===== */
.rank-row.row-3rd {
  background: linear-gradient(90deg, rgba(60,220,120,.06), rgba(80,255,160,.03) 56%, rgba(255,255,255,.02));
  border-color: rgba(60,220,120,.20);
  box-shadow: 0 0 0 1px rgba(60,220,120,.05) inset, 0 0 14px rgba(60,220,120,.08), 0 0 10px rgba(80,255,160,.05);
}
.rank-row.row-3rd::before {
  content: ""; position: absolute; top: -12px; right: 10px; width: 120px; height: 88px; pointer-events: none; z-index: -1; opacity: .85;
  background: radial-gradient(circle, rgba(60,220,120,.28) 0 10%, transparent 11%), radial-gradient(circle, rgba(120,255,180,.20) 0 6%, transparent 7%), radial-gradient(circle, rgba(60,220,120,.22) 0 8%, transparent 9%), radial-gradient(circle, rgba(180,255,210,.18) 0 5%, transparent 6%);
  background-size: 12px 12px, 18px 18px, 24px 24px, 10px 10px; background-position: 0 0, 24px 18px, 48px 6px, 74px 24px; background-repeat: no-repeat;
  animation: greenDustFloat 4.8s linear infinite;
}

/* 순위 숫자 */
.rank-num { font-size: 18px; font-weight: 900; color: var(--muted); text-align: center; letter-spacing: -.2px; }
.row-1st .rank-num { color: #ff5050; }
.row-2nd .rank-num { color: #4a9eff; }
.row-3rd .rank-num { color: #3cdc78; }

/* 아이콘 */
.rank-icon-wrap {
  width: 50px; height: 50px; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(18,18,28,.96), rgba(10,10,18,.98));
  border: 1.5px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: .16s ease;
}
.rank-icon-wrap img { width: 40px; height: 40px; object-fit: contain; display: block; }

.row-1st .rank-icon-wrap { border-color: #ff5050; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 12px rgba(255,60,60,.65); transform: scale(1.08); }
.row-2nd .rank-icon-wrap { border-color: #4a9eff; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 10px rgba(60,140,255,.6); transform: scale(1.05); }
.row-3rd .rank-icon-wrap { border-color: #3cdc78; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 10px rgba(60,220,120,.55); transform: scale(1.05); }

.rank-info { min-width: 0; }
.rank-name { font-size: 15px; font-weight: 900; color: #fff; line-height: 1.2; word-break: keep-all; }
.rank-job { font-size: 11px; color: var(--muted); margin-top: 3px; }

.metric-block { min-width: 0; }
.metric-title { font-size: 10px; font-weight: 800; color: var(--muted-2); margin-bottom: 3px; letter-spacing: .2px; }
.metric-main { font-size: 15px; font-weight: 900; color: #fff; margin-bottom: 6px; }

.meter { width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.04); }
.meter-fill { height: 100%; border-radius: 999px; transition: width .28s ease; }

/* 게이지바 기본 */
.meter-fill.win { background: linear-gradient(90deg, #ffcf47, #ffd700, #f0a800); box-shadow: 0 0 10px rgba(255,215,0,.22), inset 0 1px 0 rgba(255,255,255,.18); }
.meter-fill.rate { background: linear-gradient(90deg, #79dbff, #8a2be2, #b57cff); box-shadow: 0 0 10px rgba(138,43,226,.22), inset 0 1px 0 rgba(255,255,255,.15); }

.meter-fill.win { background: linear-gradient(90deg, #ffcf47, #ffd700, #f0a800); ... }
.meter-fill.rate { background: linear-gradient(90deg, #79dbff, #8a2be2, #b57cff); ... }

.rank-detail { text-align: right; min-width: 0; }
.rank-detail-text { font-size: 12px; color: var(--muted); line-height: 1.6; white-space: nowrap; }

/* =============================================
   잠금 / 로딩 / 푸터
   ============================================= */
.ranking-lock-bar { padding: 16px; border-radius: 14px; background: rgba(255,215,0,.06); border: 1px solid rgba(255,215,0,.12); text-align: center; font-size: 13px; font-weight: 800; color: #f1e7c7; line-height: 1.6; margin: 4px 0; }
.ranking-lock-bar strong { color: var(--gold); }
.ranking-board-footer { margin-top: 14px; font-size: 11px; color: var(--muted-2); text-align: right; }
.ranking-board-empty { text-align: center; padding: 34px; font-size: 13px; color: var(--muted); }

.ranking-loading-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; }
.ranking-loading-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 24px; font-size: 13px; color: var(--muted); }
.ranking-loading-spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--gold); border-right-color: var(--purple); animation: rankSpin .8s linear infinite; }
.ranking-loading-spinner.sm { width: 20px; height: 20px; border-width: 2px; }
.ranking-loading-text { font-size: 13px; color: var(--muted); font-weight: 700; }

/* 이용 안내 */
.ranking-guide-section { margin-top: 4px; }
.ranking-guide-box { border-radius: 20px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); border: 1px solid rgba(255,255,255,.06); }
.ranking-guide-title { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.ranking-guide-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ranking-guide-box li { position: relative; padding-left: 18px; font-size: 13px; color: #c8d0e0; line-height: 1.7; }
.ranking-guide-box li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,215,0,.50); box-shadow: 0 0 6px rgba(255,215,0,.30); }
.ranking-guide-box li strong { color: #fff; font-weight: 800; }

/* =============================================
   애니메이션
   ============================================= */
@keyframes rankSpin { to { transform: rotate(360deg); } }

@keyframes championHalo {
  0%, 100% { opacity: .35; transform: translateX(-50%) scale(1); }
  35% { opacity: .95; transform: translateX(-50%) scale(1.12); }
  70% { opacity: .60; transform: translateX(-50%) scale(1.04); }
}

@keyframes goldDustFloat {
  0% { opacity: .15; transform: translateY(0) translateX(0) scale(1); }
  15% { opacity: .85; transform: translateY(-4px) translateX(2px) scale(1.1); }
  40% { opacity: .95; transform: translateY(-12px) translateX(-4px) scale(1.2); }
  65% { opacity: .70; transform: translateY(-20px) translateX(3px) scale(1.0); }
  100% { opacity: .10; transform: translateY(-30px) translateX(8px) scale(.8); }
}

@keyframes redDustFloat {
  0% { opacity: .20; transform: translateY(0) translateX(0) scale(1); }
  15% { opacity: .90; transform: translateY(-5px) translateX(2px) scale(1.12); }
  40% { opacity: 1; transform: translateY(-14px) translateX(-5px) scale(1.22); }
  65% { opacity: .75; transform: translateY(-22px) translateX(4px) scale(1.05); }
  100% { opacity: .12; transform: translateY(-34px) translateX(8px) scale(.8); }
}

@keyframes blueDustFloat {
  0% { opacity: .18; transform: translateY(0) translateX(0) scale(1); }
  15% { opacity: .82; transform: translateY(-4px) translateX(3px) scale(1.10); }
  40% { opacity: .95; transform: translateY(-12px) translateX(-4px) scale(1.18); }
  65% { opacity: .68; transform: translateY(-20px) translateX(3px) scale(1.0); }
  100% { opacity: .10; transform: translateY(-28px) translateX(7px) scale(.82); }
}

@keyframes greenDustFloat {
  0% { opacity: .15; transform: translateY(0) translateX(0) scale(1); }
  15% { opacity: .75; transform: translateY(-3px) translateX(2px) scale(1.08); }
  40% { opacity: .88; transform: translateY(-10px) translateX(-3px) scale(1.14); }
  65% { opacity: .60; transform: translateY(-18px) translateX(3px) scale(.98); }
  100% { opacity: .08; transform: translateY(-24px) translateX(6px) scale(.8); }
}

@keyframes goldSparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  25% { opacity: 1; transform: scale(1.1) rotate(45deg); }
  50% { opacity: .8; transform: scale(.95) rotate(90deg); }
  75% { opacity: .4; transform: scale(.6) rotate(135deg); }
}

/* =============================================
   반응형
   ============================================= */
@media (max-width: 1180px) {
  .rank-row { grid-template-columns: 52px 48px 1fr 150px 150px 160px; }
}

@media (max-width: 980px) {
  .ranking-hero-inner { flex-direction: column; }
  .ranking-hero-right { width: 100%; flex: 1 1 auto; flex-direction: row; gap: 10px; }
  .ranking-hero-right .ranking-hero-stat-card { flex: 1; }
  .ranking-summary { grid-template-columns: 1fr; }
  .ranking-champion-head { grid-template-columns: 1fr; }
  .ranking-mode-tabs { grid-column: 1 / -1; justify-self: start; }
  .ranking-period-cards { grid-column: 1 / -1; flex-wrap: wrap; }
  .ranking-period-card { min-width: 0; flex: 1 1 220px; }
  .rank-row { grid-template-columns: 48px 44px 1fr 130px 130px; }
  .rank-detail { display: none; }
}



@media (max-width: 768px) {
  .ranking-page { padding-top: 14px !important; gap: 12px; }
  .ranking-hero { padding: 18px; border-radius: 22px; }
  .ranking-hero-title { font-size: 22px; }
  .ranking-hero-desc { font-size: 12px; }
  .ranking-hero-pill { min-height: 26px; padding: 0 10px; font-size: 10px; }
  .ranking-hero-right { display: none !important; }




  .ranking-champion-head {
    padding: 16px;
    border-radius: 20px;
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "period"
      "mode"
      "state";
    gap: 12px;
  }

  .ranking-champion-title { font-size: 20px; }
  .ranking-champion-desc { font-size: 11px; }

  .ranking-period-cards {
    grid-area: period;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .ranking-period-card {
    min-width: 0;
    min-height: 60px;
    padding: 10px 10px 8px;
    border-radius: 12px;
  }

  .period-card-label {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .period-card-date {
    font-size: 9px;
    line-height: 1.35;
  }

  .ranking-mode-tabs {
    grid-area: mode;
    justify-self: stretch;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .ranking-mode-btn {
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }



  .podium-section { padding: 16px; border-radius: 20px; }
  .pod-card { padding: 18px 8px 10px; border-radius: 14px; }
  .pod-card.pod-1st::before { top: -18px; font-size: 18px; }
  .pod-card.pod-2nd::before,
  .pod-card.pod-3rd::before { top: -15px; font-size: 17px; }
  .pod-icon { width: 40px; height: 40px; }
  .pod-card.pod-1st .pod-icon { width: 46px; height: 46px; }
  .pod-icon img { width: 28px; height: 28px; }
  .pod-name { font-size: 11px; }
  .pod-card.pod-1st .pod-name { font-size: 13px; }

  .ranking-board-section { padding: 16px; border-radius: 20px; }
  .ranking-board-title { font-size: 18px; }

  .rank-row {
    grid-template-columns: 34px 40px minmax(0, 1fr) 68px 68px;
    gap: 8px;
    padding: 12px 10px;
    border-radius: 14px;
    align-items: center;
  }

  .rank-num { font-size: 13px; }
  .rank-icon-wrap { width: 42px; height: 42px; border-radius: 9px; }
  .rank-icon-wrap img { width: 32px; height: 32px; }

  .rank-info {
    min-width: 0;
    display: block;
  }

  .rank-name {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rank-job {
    font-size: 9px;
    margin-top: 2px;
  }

  .metric-block {
    display: block;
    min-width: 0;
  }

  .metric-title {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .metric-main {
    font-size: 11px;
    margin-bottom: 3px;
  }

  .meter {
    height: 6px;
    margin-top: 2px;
  }

  

  .rank-detail {
    display: block;
    grid-column: 4 / 6;
    min-width: 0;
    margin-top: 2px;
    text-align: right;
    justify-self: stretch;
  }

  .rank-detail-text {
    font-size: 9px;
    line-height: 1.35;
    white-space: normal;
    text-align: right;
  }


  .ranking-guide-box { padding: 18px; border-radius: 16px; }
  .ranking-guide-title { font-size: 15px; }
  .ranking-guide-box li { font-size: 12px; padding-left: 16px; }
  .ranking-guide-box li::before { top: 7px; width: 5px; height: 5px; }
}



@media (max-width: 480px) {
  .ranking-hero {
    padding: 16px;
  }

  .ranking-hero-title {
    font-size: 20px;
  }

  .pod-card {
    padding: 16px 6px 8px;
  }

  .pod-icon {
    width: 34px;
    height: 34px;
  }

  .pod-card.pod-1st .pod-icon {
    width: 38px;
    height: 38px;
  }

  .pod-icon img {
    width: 24px;
    height: 24px;
  }

  .pod-name {
    font-size: 10px;
  }

  .rank-row {
    grid-template-columns: 28px 34px minmax(0, 1fr) 54px 54px;
    gap: 6px;
    padding: 10px 8px;
    align-items: center;
  }

  .rank-num {
    font-size: 11px;
  }

  .rank-icon-wrap {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .rank-icon-wrap img {
    width: 24px;
    height: 24px;
  }

  .rank-name {
    font-size: 11px;
  }

  .rank-job {
    font-size: 8px;
  }

  .metric-block {
    display: block;
    min-width: 0;
  }

  .metric-title {
    font-size: 7px;
    margin-bottom: 1px;
  }

  .metric-main {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .meter {
    height: 5px;
    margin-top: 2px;
  }

   .rank-detail {
    grid-column: 4 / 6;
    display: block;
    margin-top: 2px;
    text-align: right;
  }

  .rank-detail-text {
    font-size: 8px;
    line-height: 1.35;
    white-space: normal;
    text-align: right;
  }
}

