/* ================================================================
   RANKINGS PAGE — Dark Athletic Luxury
   ================================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Rankings Page Variables */
:root {
  --rk-bg:           #080B14;
  --rk-card:         #111827;
  --rk-card-hover:   #151e30;
  --rk-border:       #1F2937;
  --rk-border-hover: #374151;
  --rk-gold:         #F5C842;
  --rk-gold-dim:     rgba(245, 200, 66, 0.15);
  --rk-silver:       #C0C8D8;
  --rk-silver-dim:   rgba(192, 200, 216, 0.12);
  --rk-bronze:       #CD7F32;
  --rk-bronze-dim:   rgba(205, 127, 50, 0.12);
  --rk-green:        #10B981;
  --rk-green-dim:    rgba(16, 185, 129, 0.12);
  --rk-text:         #F9FAFB;
  --rk-text-sec:     #6B7280;
  --rk-text-dim:     #4B5563;
  --rk-accent:       #3B82F6;
  --rk-font-impact:  'Bebas Neue', 'Impact', sans-serif;
  --rk-font-body:    'DM Sans', 'Inter', sans-serif;
}

/* ─── RANKINGS ROOT ─── */
.rk-root {
  font-family: var(--rk-font-body);
  color: var(--rk-text);
  padding-bottom: 32px;
}

/* ─── HEADER ─── */
.rk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.rk-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rk-header-trophy {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rk-gold-dim), rgba(245, 200, 66, 0.05));
  border: 1px solid rgba(245, 200, 66, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rk-gold);
  flex-shrink: 0;
}

.rk-header-title {
  font-family: var(--rk-font-impact);
  font-size: 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rk-text);
  line-height: 1;
}

.rk-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rk-notif {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rk-card);
  border: 1px solid var(--rk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rk-text-sec);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rk-notif:hover {
  border-color: var(--rk-border-hover);
  color: var(--rk-text);
}

.rk-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--rk-bg);
}

.rk-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.rk-user-avatar:hover {
  transform: scale(1.05);
}

/* ─── MONTH NAVIGATOR ─── */
.rk-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  opacity: 0;
  animation: rkFadeSlideUp 0.5s ease 0.1s forwards;
}

.rk-month-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rk-card);
  border: 1px solid var(--rk-border);
  color: var(--rk-text-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rk-month-btn:hover {
  background: var(--rk-card-hover);
  border-color: var(--rk-border-hover);
  color: var(--rk-text);
}

.rk-month-label {
  font-family: var(--rk-font-impact);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rk-text);
  min-width: 160px;
  text-align: center;
}

/* ─── POSITION CARDS (Sua Posição) ─── */
.rk-position-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.rk-pos-card {
  background: var(--rk-card);
  border: 1px solid var(--rk-border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.rk-pos-card:nth-child(1) { animation: rkFadeSlideUp 0.5s ease 0.2s forwards; }
.rk-pos-card:nth-child(2) { animation: rkFadeSlideUp 0.5s ease 0.35s forwards; }

.rk-pos-card:hover {
  border-color: var(--rk-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rk-pos-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rk-accent), transparent);
  opacity: 0.5;
}

.rk-pos-card.is-first::before {
  background: linear-gradient(90deg, var(--rk-gold), transparent);
  opacity: 1;
}

/* Gold glow for #1 */
.rk-pos-card.is-first {
  border-color: rgba(245, 200, 66, 0.25);
  box-shadow: 0 0 30px rgba(245, 200, 66, 0.08), inset 0 0 30px rgba(245, 200, 66, 0.03);
  animation: rkFadeSlideUp 0.5s ease 0.35s forwards, rkGlowPulse 3s ease-in-out infinite 1s;
}

.rk-pos-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rk-text-sec);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rk-pos-label i {
  width: 14px;
  height: 14px;
}

.rk-pos-number {
  font-family: var(--rk-font-impact);
  font-size: 48px;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--rk-text);
}

.rk-pos-card.is-first .rk-pos-number {
  background: linear-gradient(135deg, var(--rk-gold), #FFE082);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rk-pos-change {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
}

.rk-pos-change.up {
  color: var(--rk-green);
  background: var(--rk-green-dim);
}

.rk-pos-change.down {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

.rk-pos-change.stable {
  color: var(--rk-text-sec);
  background: rgba(107, 114, 128, 0.12);
}

.rk-pos-crown {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 24px;
  animation: rkCrownFloat 3s ease-in-out infinite;
}

/* ─── RANKING SECTION ─── */
.rk-section {
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
}

.rk-section:nth-child(1) { animation: rkFadeSlideUp 0.6s ease 0.5s forwards; }
.rk-section:nth-child(2) { animation: rkFadeSlideUp 0.6s ease 0.7s forwards; }

.rk-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.rk-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rk-section-icon.km {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.rk-section-icon.disc {
  background: linear-gradient(135deg, var(--rk-green-dim), rgba(16, 185, 129, 0.05));
  color: var(--rk-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.rk-section-title {
  font-family: var(--rk-font-impact);
  font-size: 22px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rk-text);
  line-height: 1.2;
}

.rk-section-sub {
  font-size: 12px;
  color: var(--rk-text-sec);
  font-weight: 500;
}

/* ─── PODIUM (3D layout) ─── */
.rk-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px 0 0;
  min-height: 260px;
}

.rk-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 140px;
  opacity: 0;
  transform: translateY(60px);
}

.rk-podium-slot.pos-1 { animation: rkPodiumRise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards; z-index: 3; }
.rk-podium-slot.pos-2 { animation: rkPodiumRise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s forwards; z-index: 2; }
.rk-podium-slot.pos-3 { animation: rkPodiumRise 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s forwards; z-index: 1; }

/* Mobile adjustments */
@media (max-width: 480px) {
  .rk-podium { gap: 6px; min-height: 220px; }
  .rk-podium-slot { max-width: 110px; }
}

/* Avatar container */
.rk-podium-avatar-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rk-podium-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rk-font-impact);
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rk-podium-slot.pos-1 .rk-podium-avatar {
  width: 68px;
  height: 68px;
  font-size: 24px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  border: 3px solid var(--rk-gold);
  box-shadow: 0 0 20px rgba(245, 200, 66, 0.3);
}

.rk-podium-slot.pos-2 .rk-podium-avatar {
  background: linear-gradient(135deg, #94A3B8, #64748B);
  border: 2px solid var(--rk-silver);
  box-shadow: 0 0 15px rgba(192, 200, 216, 0.2);
}

.rk-podium-slot.pos-3 .rk-podium-avatar {
  background: linear-gradient(135deg, #B45309, #92400E);
  border: 2px solid var(--rk-bronze);
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.2);
}

.rk-podium-slot:hover .rk-podium-avatar {
  transform: scale(1.1);
}

/* Current user highlight on avatar */
.rk-podium-slot.is-me .rk-podium-avatar {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4), 0 0 50px rgba(59, 130, 246, 0.15);
  border-color: #3B82F6 !important;
}

/* Medal badge */
.rk-podium-medal {
  position: absolute;
  top: -8px;
  right: -6px;
  font-size: 22px;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.rk-podium-slot:hover .rk-podium-medal {
  transform: rotateY(180deg) scale(1.15);
}

.rk-podium-slot.pos-1 .rk-podium-medal {
  font-size: 26px;
  top: -12px;
  right: -8px;
}

/* Name & Value */
.rk-podium-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--rk-text);
  text-align: center;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.rk-podium-value {
  font-family: var(--rk-font-impact);
  font-size: 18px;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 8px;
}

.rk-podium-slot.pos-1 .rk-podium-value {
  font-size: 22px;
  color: var(--rk-gold);
}

.rk-podium-slot.pos-2 .rk-podium-value {
  color: var(--rk-silver);
}

.rk-podium-slot.pos-3 .rk-podium-value {
  color: var(--rk-bronze);
}

/* Podium base (pedestal) */
.rk-podium-base {
  width: 100%;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--rk-font-impact);
  font-size: 28px;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.rk-podium-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.rk-podium-slot.pos-1 .rk-podium-base {
  height: 100px;
  background: linear-gradient(180deg, rgba(245, 200, 66, 0.15), rgba(245, 200, 66, 0.05));
  border: 1px solid rgba(245, 200, 66, 0.2);
  border-bottom: none;
  color: var(--rk-gold);
}

.rk-podium-slot.pos-2 .rk-podium-base {
  height: 72px;
  background: linear-gradient(180deg, rgba(192, 200, 216, 0.12), rgba(192, 200, 216, 0.04));
  border: 1px solid rgba(192, 200, 216, 0.15);
  border-bottom: none;
  color: var(--rk-silver);
}

.rk-podium-slot.pos-3 .rk-podium-base {
  height: 52px;
  background: linear-gradient(180deg, rgba(205, 127, 50, 0.12), rgba(205, 127, 50, 0.04));
  border: 1px solid rgba(205, 127, 50, 0.15);
  border-bottom: none;
  color: var(--rk-bronze);
}

/* ─── 4th PLACE CARD ─── */
.rk-fourth-card {
  background: var(--rk-card);
  border: 1px solid var(--rk-border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: rkFadeSlideUp 0.5s ease 1.1s forwards;
}

.rk-fourth-card:hover {
  border-color: var(--rk-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.rk-fourth-card.is-me {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.rk-fourth-pos {
  font-family: var(--rk-font-impact);
  font-size: 22px;
  color: var(--rk-text-dim);
  letter-spacing: 1px;
  min-width: 28px;
}

.rk-fourth-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #374151, #1F2937);
  border: 2px solid var(--rk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--rk-text-sec);
  flex-shrink: 0;
}

.rk-fourth-info {
  flex: 1;
  min-width: 0;
}

.rk-fourth-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--rk-text);
  margin-bottom: 2px;
}

.rk-fourth-sub {
  font-size: 11px;
  color: var(--rk-text-sec);
}

.rk-fourth-value {
  font-family: var(--rk-font-impact);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--rk-text-sec);
}

/* ─── PROGRESS BAR ─── */
.rk-progress-wrap {
  width: 100%;
  margin-top: 4px;
}

.rk-progress-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.rk-progress-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.rk-progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
  border-radius: 4px;
}

.rk-progress-fill.gold { background: linear-gradient(90deg, var(--rk-gold), #FFE082); }
.rk-progress-fill.silver { background: linear-gradient(90deg, var(--rk-silver), #E2E8F0); }
.rk-progress-fill.bronze { background: linear-gradient(90deg, var(--rk-bronze), #D4A76A); }
.rk-progress-fill.default { background: linear-gradient(90deg, var(--rk-text-dim), #6B7280); }
.rk-progress-fill.green { background: linear-gradient(90deg, var(--rk-green), #34D399); }

/* Podium progress bar in podium slots */
.rk-podium-progress {
  width: 80%;
  margin: 0 auto 8px;
}

.rk-podium-progress .rk-progress-bar {
  height: 3px;
}

/* ─── ANIMATED COUNTER for podium values ─── */
.rk-counter {
  display: inline-block;
}

/* ─── CURRENT USER TAG ─── */
.rk-you-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  margin-left: 6px;
  vertical-align: middle;
}

/* ─── CROWN / TROPHY ANIMATED ─── */
.rk-crown-animated {
  display: inline-block;
  animation: rkCrownFloat 3s ease-in-out infinite, rkCrownShine 4s ease-in-out infinite;
}

/* ─── SECTIONS CONTAINER ─── */
.rk-sections {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── SECTION CARD ─── */
.rk-section-card {
  background: var(--rk-card);
  border: 1px solid var(--rk-border);
  border-radius: 20px;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.rk-section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

/* ─── ANIMATIONS ─── */
@keyframes rkFadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rkPodiumRise {
  0%   { opacity: 0; transform: translateY(60px) scale(0.9); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rkGlowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(245, 200, 66, 0.08), inset 0 0 20px rgba(245, 200, 66, 0.02);
    border-color: rgba(245, 200, 66, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(245, 200, 66, 0.15), inset 0 0 40px rgba(245, 200, 66, 0.05);
    border-color: rgba(245, 200, 66, 0.4);
  }
}

@keyframes rkCrownFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-3px) rotate(-3deg); }
  66%      { transform: translateY(-2px) rotate(3deg); }
}

@keyframes rkCrownShine {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.3); }
}

@keyframes rkMedalSpin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

@keyframes rkShine {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

@keyframes rkGoldGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 200, 66, 0.2), 0 0 30px rgba(245, 200, 66, 0.1);
  }
  50% {
    box-shadow: 0 0 25px rgba(245, 200, 66, 0.35), 0 0 50px rgba(245, 200, 66, 0.15);
  }
}

/* Shine sweep effect on gold podium */
.rk-podium-slot.pos-1 .rk-podium-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245, 200, 66, 0.08), transparent);
  animation: rkShine 4s ease-in-out infinite;
}

/* Gold avatar glow for #1 current user */
.rk-podium-slot.pos-1.is-me .rk-podium-avatar {
  animation: rkGoldGlow 3s ease-in-out infinite;
}

/* ─── RESPONSIVE ─── */
/* ─── RESPONSIVE (Premium & Dense) ─── */
@media (max-width: 768px) {
  .rk-root { padding-bottom: 80px; }
  .rk-header { padding: 0 0 16px 0; gap: 12px; }
  .rk-header-trophy { width: 36px; height: 36px; border-radius: 10px; }
  .rk-header-title { font-size: 24px; letter-spacing: 1px; }
  
  .rk-month-nav { gap: 12px; margin-bottom: 20px; }
  .rk-month-label { font-size: 16px; min-width: 120px; }
  .rk-month-btn { width: 32px; height: 32px; }

  .rk-position-row { gap: 10px; margin-bottom: 24px; }
  .rk-pos-card { padding: 14px; border-radius: 12px; }
  .rk-pos-number { font-size: 34px; }
  .rk-pos-label { font-size: 10px; margin-bottom: 4px; }

  .rk-section-header { margin-bottom: 12px; }
  .rk-section-icon { width: 32px; height: 32px; border-radius: 8px; }
  .rk-section-title { font-size: 16px; letter-spacing: 1px; }
  
  .rk-section-card { padding: 16px; border-radius: 16px; }
  
  .rk-podium { min-height: 180px; padding: 10px 0 0; gap: 4px; }
  .rk-podium-slot { max-width: 100px; }
  
  .rk-podium-avatar { width: 44px; height: 44px; font-size: 14px; }
  .rk-podium-slot.pos-1 .rk-podium-avatar { width: 54px; height: 54px; font-size: 18px; border-width: 2px; }
  
  .rk-podium-medal { font-size: 18px; top: -6px; right: -4px; }
  .rk-podium-slot.pos-1 .rk-podium-medal { font-size: 22px; top: -10px; right: -6px; }
  
  .rk-podium-name { font-size: 10px; }
  .rk-podium-value { font-size: 14px; margin-bottom: 4px; }
  .rk-podium-slot.pos-1 .rk-podium-value { font-size: 16px; }
  
  .rk-podium-base { font-size: 20px; border-radius: 6px 6px 0 0; }
  .rk-podium-slot.pos-1 .rk-podium-base { height: 60px; }
  .rk-podium-slot.pos-2 .rk-podium-base { height: 40px; }
  .rk-podium-slot.pos-3 .rk-podium-base { height: 25px; }
  
  .rk-fourth-card { padding: 10px 12px; gap: 10px; border-radius: 10px; }
  .rk-fourth-avatar { width: 32px; height: 32px; font-size: 12px; }
  .rk-fourth-pos { font-size: 16px; min-width: 20px; }
  .rk-fourth-name { font-size: 13px; }
  .rk-fourth-value { font-size: 18px; }
}

@media (max-width: 480px) {
  .rk-month-label { font-size: 14px; min-width: 100px; }
  .rk-podium-slot { max-width: 85px; }
  .rk-podium-avatar { width: 38px; height: 38px; }
  .rk-podium-slot.pos-1 .rk-podium-avatar { width: 46px; height: 46px; }
}

@media (max-width: 380px) {
  .rk-position-row { grid-template-columns: 1fr; }
  .rk-header-title { font-size: 22px; }
  .rk-podium { gap: 4px; }
  .rk-podium-slot.pos-1 .rk-podium-avatar { width: 50px; height: 50px; }
  .rk-podium-avatar { width: 42px; height: 42px; font-size: 14px; }
}

/* GPU acceleration hints */
.rk-podium-slot,
.rk-pos-card,
.rk-fourth-card,
.rk-podium-avatar,
.rk-podium-medal,
.rk-progress-fill {
  will-change: transform, opacity;
}

/* ─── RANKING SECTION STAGGER (JS applies data-stagger-index) ─── */
.rk-section-card[data-stagger="0"] { animation: rkFadeSlideUp 0.6s ease 0.5s forwards; opacity: 0; }
.rk-section-card[data-stagger="1"] { animation: rkFadeSlideUp 0.6s ease 0.7s forwards; opacity: 0; }
