/* Лидерборд: топ-3 в стиле нового сайта (чёрный + жёлтый). Подключается ПОСЛЕ leaderboard-polish.css.
   Убрана «пиксельная» фаска-коробка, гало и искры; ступенчатый подиум 2–1–3 остался. */
html body.lb-page:not(.x) .podium { grid-template-columns: 1fr 1.14fr 1fr; gap: 20px; align-items: end; margin: 40px 0 14px; }

html body.lb-page:not(.x) .podium .podium-card {
  gap: 6px; padding: 30px 20px 26px; overflow: hidden;
  border-radius: 20px !important; border: 1px solid rgba(255,255,255,.09) !important; border-image: none !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 9%, #131514), #131514 58%) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.45) !important;
  transition: transform .25s ease, border-color .25s ease;
}
html body.lb-page:not(.x) .podium .podium-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pc) 45%, transparent) !important; }
html body.lb-page:not(.x) .podium .place-1 { min-height: 392px; padding-top: 34px; border-color: rgba(245,197,24,.4) !important; box-shadow: 0 0 0 1px rgba(245,197,24,.18), 0 30px 80px rgba(245,197,24,.12) !important; }
html body.lb-page:not(.x) .podium .place-2 { min-height: 336px; }
html body.lb-page:not(.x) .podium .place-3 { min-height: 312px; }

/* цветная планка места — внутри скруглений, а не на весь край */
html body.lb-page:not(.x) .podium .podium-card::before { left: 28px; right: 28px; height: 3px; border-radius: 0 0 4px 4px; }
/* мягкий свет сверху вместо яркой «шторки» */
html body.lb-page:not(.x) .podium .podium-card::after { top: 0; height: 190px; opacity: .55; background: radial-gradient(ellipse 60% 100% at 50% 0, color-mix(in srgb, var(--pc) 24%, transparent), transparent 72%); }

/* кубок: поменьше, без гало и искр, чёткая мягкая тень */
html body.lb-page:not(.x) .podium .trophy-wrap { width: 108px; height: 108px; }
html body.lb-page:not(.x) .podium .place-1 .trophy-wrap { width: 136px; height: 136px; }
html body.lb-page:not(.x) .podium .trophy-wrap::before, html body.lb-page:not(.x) .podium .spark { display: none; }
html body.lb-page:not(.x) .podium .trophy { width: 78px; height: 90px; filter: drop-shadow(0 10px 12px rgba(0,0,0,.55)); }
html body.lb-page:not(.x) .podium .place-1 .trophy { width: 98px; height: 113px; }

/* место — аккуратная «таблетка» */
html body.lb-page:not(.x) .podium .rank {
  padding: 6px 14px; border-radius: 999px; font: 800 14px/1 Rubik, sans-serif; letter-spacing: .08em;
  color: var(--pc); background: color-mix(in srgb, var(--pc) 14%, transparent); text-shadow: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pc) 50%, transparent);
}
html body.lb-page:not(.x) .podium .name { margin-top: 10px; font: 800 24px/1.15 Rubik, sans-serif; }
html body.lb-page:not(.x) .podium .place-1 .name { font-size: 28px; }
html body.lb-page:not(.x) .podium .name .avatar-head.sm { width: 34px; height: 34px; border-radius: 8px; outline: 0; }
html body.lb-page:not(.x) .podium .score { margin: 0 0 8px; font: 700 17px Rubik, sans-serif; }
html body.lb-page:not(.x) .podium .lb-cards { margin-top: 8px; }

/* свободное место */
html body.lb-page:not(.x) .podium .ghost { background: transparent !important; border: 1px dashed rgba(255,255,255,.14) !important; box-shadow: none !important; }
html body.lb-page:not(.x) .podium .ghost:hover { transform: none; }

/* кнопка «Информация» (раньше рисовалась пустым квадратом) */
html body.lb-page:not(.x) .btn.btn-icon { width: 46px; height: 46px; border-radius: 12px; background: #141716; border: 1px solid rgba(255,255,255,.12); color: #e8ebe9; margin-top: 4px; }
html body.lb-page:not(.x) .btn.btn-icon svg { width: 20px !important; height: 20px !important; fill: none !important; stroke: currentColor; filter: none; }
html body.lb-page:not(.x) .btn.btn-icon:hover { color: #f5c518; border-color: rgba(245,197,24,.6); }

@media (max-width: 760px) {
  html body.lb-page:not(.x) .podium { grid-template-columns: 1fr; }
  html body.lb-page:not(.x) .podium .podium-card { min-height: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { html body.lb-page:not(.x) .podium .podium-card { transition: none; } }
