    html, body {
      height: 100%;
    }
    body {
      background-color: #05060A;
      color: #F8FAFC;
      font-family: 'Plus Jakarta Sans', sans-serif;
      overflow-x: hidden;
      -webkit-tap-highlight-color: transparent;
    }

    .premium-mesh {
      background-image: 
        radial-gradient(at 50% 0%, rgba(255, 84, 30, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 194, 255, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
    }

    .glass {
      background: rgba(14, 17, 26, 0.75);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .glass-input {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.08);
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .glass-input:focus {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 84, 30, 0.4);
      box-shadow: 0 0 16px rgba(255, 84, 30, 0.12);
    }

    .modal-backdrop {
      transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .modal-content-anim {
      transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      transform: scale(0.95);
    }

    .modal-active .modal-content-anim {
      transform: scale(1);
    }

    @media (max-width: 640px) {
      .modal-sheet {
        border-bottom-left-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .modal-sheet.active {
        transform: translateY(0);
      }
    }

    .view-transition {
      transition: opacity 0.25s ease, transform 0.25s ease;
    }

    ::-webkit-scrollbar {
      width: 4px;
      height: 4px;
    }
    ::-webkit-scrollbar-track {
      background: #05060A;
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 99px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: #FF541E;
    }
    
    #radial-elo-fill, #preview-radial-elo-fill {
      transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* ===================== Season Podium (top-3 poster) ===================== */

    #season-podium-section {
      /* Плавный переход, когда пользователь переключается между главной
         страницей и другими разделами (профиль, вход, рейтинг, кланы) —
         секция слегка "расфокусируется" и гаснет вместо резкого исчезновения. */
      transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      opacity: 1;
      filter: blur(0);
    }
    #season-podium-section.season-podium-leaving {
      opacity: 0;
      filter: blur(4px);
    }

    .season-podium-poster {
      position: relative;
      width: 100%;
      overflow: hidden;
      background-color: #05060A;
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      /* Высота подстраивается под реальные пропорции загруженного баннера
         (через width:100% + height:auto у самой картинки), а не под
         фиксированный aspect-ratio — так блок никогда не "врёт" про
         пропорции изображения и не обрезает/растягивает его непредсказуемо. */
      display: flex;
      flex-direction: column;
    }

    /* Если баннер не найден (404) — картинка скрывается через onerror,
       и постер вместо этого показывает тёмный градиентный фон с
       достаточной высотой, чтобы карточки топ-3 не "схлопнулись". */
    .season-podium-poster.season-podium-no-banner {
      min-height: 260px;
      background:
        radial-gradient(at 50% 100%, rgba(255, 84, 30, 0.14) 0%, transparent 65%),
        #0B0E16;
    }
    @media (min-width: 640px) {
      .season-podium-poster.season-podium-no-banner { min-height: 320px; }
    }

    .season-podium-bg {
      display: block;
      width: 100%;
      height: auto;
      /* Не даём баннеру быть выше ~70% высоты экрана на телефоне и ~60%
         на десктопе, чтобы очень вытянутая по вертикали картинка не
         вытолкнула весь остальной сайт вниз. */
      max-height: 62vh;
      object-fit: cover;
      object-position: center 22%;
      opacity: 0;
      filter: blur(6px);
      transform: scale(1.02);
      animation: podiumBgIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @media (max-width: 640px) {
      .season-podium-bg {
        /* На телефонах баннер крупнее и меньше обрезан по краям —
           картинка занимает больше высоты экрана. */
        max-height: 78vh;
        object-position: center 18%;
      }
    }

    @keyframes podiumBgIn {
      from { opacity: 0; filter: blur(6px); transform: scale(1.02); }
      to   { opacity: 1; filter: blur(0); transform: scale(1); }
    }

    /* Лоадер — оверлей поверх баннера (не встроен в поток контента),
       по центру всего постера, с лёгким блюром фона под собой. Плавно
       гаснет, когда данные о топ-3 готовы (renderSeasonPodium добавляет
       класс .hidden). */
    .season-podium-loader-overlay {
      position: absolute;
      inset: 0;
      z-index: 5;
      display: flex;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      background: rgba(5, 6, 10, 0.25);
      opacity: 1;
      transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    }
    .season-podium-loader-overlay.hidden {
      opacity: 0;
      pointer-events: none;
      visibility: hidden;
      /* Переопределяем Tailwind-класс .hidden (display:none), чтобы
         анимация fade-out успевала проиграться. */
      display: flex;
    }

    .season-podium-loader-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: #E2E8F0;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 11px;
      font-weight: 600;
      background: rgba(14, 17, 26, 0.7);
      border: 1px solid rgba(255,255,255,0.08);
      padding: 14px 20px;
      border-radius: 18px;
    }

    .season-podium-fade {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(5, 6, 10, 0.35) 0%,
        rgba(5, 6, 10, 0.15) 35%,
        rgba(5, 6, 10, 0.55) 72%,
        rgba(5, 6, 10, 0.96) 100%
      );
    }

    .season-podium-veil {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(at 50% 100%, rgba(255, 84, 30, 0.16) 0%, transparent 60%),
        linear-gradient(to top, #05060A 0%, transparent 22%);
      pointer-events: none;
    }

    .season-podium-inner {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding-top: 14px;
      padding-bottom: 0;
      pointer-events: none;
    }
    .season-podium-inner > * {
      pointer-events: auto;
    }

    .season-podium-heading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      text-align: center;
      padding-top: 14px;
      padding-bottom: 4px;
      opacity: 0;
      animation: podiumFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    }

    .season-podium-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #FF7B54;
      background: rgba(255, 84, 30, 0.1);
      border: 1px solid rgba(255, 84, 30, 0.25);
      padding: 3px 10px;
      border-radius: 999px;
    }

    .season-podium-title {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 900;
      letter-spacing: -0.01em;
      text-transform: uppercase;
      font-size: 16px;
      color: #F8FAFC;
      text-shadow: 0 2px 18px rgba(0,0,0,0.5);
    }
    @media (min-width: 640px) {
      .season-podium-title { font-size: 22px; }
    }

    .season-podium-stage {
      position: relative;
      flex: 1;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 6px;
      padding-bottom: 14px;
      min-height: 0;
    }
    @media (min-width: 640px) {
      .season-podium-stage { gap: 18px; padding-bottom: 20px; }
    }

    .season-podium-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      color: #94A3B8;
      font-size: 11px;
      padding-bottom: 24px;
    }

    .podium-card {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
      opacity: 0;
      transform: translateY(16px);
      animation: podiumFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      width: 30%;
      max-width: 168px;
    }
    .podium-card:hover { transform: translateY(-4px); }
    .podium-card:active { transform: translateY(-1px) scale(0.98); }

    .podium-card[data-rank="1"] { animation-delay: 0.28s; z-index: 3; width: 34%; max-width: 190px; }
    .podium-card[data-rank="2"] { animation-delay: 0.4s;  z-index: 2; }
    .podium-card[data-rank="3"] { animation-delay: 0.4s;  z-index: 2; }

    @keyframes podiumFadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .podium-avatar-wrap {
      position: relative;
      border-radius: 999px;
      padding: 3px;
      background: conic-gradient(from 180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08));
    }
    .podium-card[data-rank="1"] .podium-avatar-wrap {
      background: conic-gradient(from 180deg, #FFD84D, #FF541E, #FFD84D);
      box-shadow: 0 0 28px rgba(255, 216, 77, 0.35);
    }
    .podium-card[data-rank="2"] .podium-avatar-wrap {
      background: conic-gradient(from 180deg, #E2E8F0, #94A3B8, #E2E8F0);
      box-shadow: 0 0 18px rgba(226, 232, 240, 0.18);
    }
    .podium-card[data-rank="3"] .podium-avatar-wrap {
      background: conic-gradient(from 180deg, #E0A458, #B36A2B, #E0A458);
      box-shadow: 0 0 18px rgba(224, 164, 88, 0.18);
    }

    .podium-avatar {
      width: 64px;
      height: 64px;
      border-radius: 999px;
      border: 2px solid #05060A;
      object-fit: cover;
      display: block;
      background: #141926;
    }
    .podium-card[data-rank="1"] .podium-avatar { width: 88px; height: 88px; }
    @media (min-width: 640px) {
      .podium-avatar { width: 76px; height: 76px; }
      .podium-card[data-rank="1"] .podium-avatar { width: 104px; height: 104px; }
    }

    .podium-rank-badge {
      position: absolute;
      bottom: -4px;
      left: 50%;
      transform: translateX(-50%);
      width: 22px;
      height: 22px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 900;
      font-size: 11px;
      border: 2px solid #05060A;
      color: #05060A;
    }
    .podium-card[data-rank="1"] .podium-rank-badge { background: linear-gradient(135deg, #FFE28A, #FF541E); width: 26px; height: 26px; font-size: 13px; }
    .podium-card[data-rank="2"] .podium-rank-badge { background: linear-gradient(135deg, #F1F5F9, #94A3B8); }
    .podium-card[data-rank="3"] .podium-rank-badge { background: linear-gradient(135deg, #F0C48A, #B36A2B); }

    .podium-name {
      margin-top: 10px;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 800;
      color: #F8FAFC;
      font-size: 11px;
      text-align: center;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    }
    .podium-card[data-rank="1"] .podium-name { font-size: 13px; }
    @media (min-width: 640px) {
      .podium-name { font-size: 13px; }
      .podium-card[data-rank="1"] .podium-name { font-size: 16px; }
    }

    .podium-stats {
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 5px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 9px;
      font-weight: 700;
      color: #94A3B8;
      background: rgba(5, 6, 10, 0.55);
      border: 1px solid rgba(255,255,255,0.08);
      padding: 2px 8px;
      border-radius: 999px;
      backdrop-filter: blur(6px);
      white-space: nowrap;
    }
    .podium-stats .dot { color: rgba(255,255,255,0.2); }
    .podium-stats .kd-value { color: #10B981; }
    @media (min-width: 640px) {
      .podium-stats { font-size: 10.5px; padding: 3px 10px; }
    }

    .podium-plinth {
      margin-top: 10px;
      width: 100%;
      border-radius: 10px 10px 0 0;
      background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
      border: 1px solid rgba(255,255,255,0.08);
      border-bottom: none;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding-top: 4px;
    }
    .podium-plinth span {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 900;
      color: rgba(255,255,255,0.35);
    }
    .podium-card[data-rank="1"] .podium-plinth { height: 44px; }
    .podium-card[data-rank="2"] .podium-plinth { height: 30px; }
    .podium-card[data-rank="3"] .podium-plinth { height: 20px; }
    @media (min-width: 640px) {
      .podium-card[data-rank="1"] .podium-plinth { height: 64px; }
      .podium-card[data-rank="2"] .podium-plinth { height: 44px; }
      .podium-card[data-rank="3"] .podium-plinth { height: 30px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .season-podium-bg, .season-podium-heading, .podium-card {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
      }
    }
