/* ============================================================
   🎨 JASQANAT: ЖЕТІСТІКТЕР КАРТАСЫ (ROADMAP & PROGRESS MAP)
   Светлый, радостный, детский/школьный дизайн с математикой НИШ!
   ============================================================ */

/* --- БАСТЫ ЖАРҚЫН ФОН МЕН МАТЕМАТИКАЛЫҚ ДУДЛ ӨРНЕКТЕРІ --- */
body.roadmap-page,
.roadmap-page {
  background: linear-gradient(180deg, #eaf0f8 0%, #edf4fb 50%, #eaf1f8 100%) !important;
  color: #0f172a !important;
  min-height: 100vh !important;
  font-family: 'Nunito', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  position: relative;
}

/* Көңілді мектеп/математика өрнектері (SVG дудлдар: π, √x, ∑, Δ, %, 📐, 123) */
body.roadmap-page::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cpolygon points='30,40 30,100 90,100' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cline x1='30' y1='80' x2='40' y2='80' stroke='%233b82f6' stroke-width='2'/%3E%3Cline x1='30' y1='60' x2='45' y2='60' stroke='%233b82f6' stroke-width='2'/%3E%3Cpath d='M140,50 Q160,45 180,48 M150,48 L150,75 Q150,80 145,82 M170,48 L170,80 Q170,85 178,82' fill='none' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M220,65 L226,75 L234,48 L265,48' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ctext x='242' y='68' font-family='Arial' font-size='16' font-style='italic' font-weight='bold' fill='%2310b981'%3Ex%3C/text%3E%3Cpath d='M50,160 L70,160 M60,150 L60,170' fill='none' stroke='%23ec4899' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M125,145 L145,165 M145,145 L125,165' fill='none' stroke='%238b5cf6' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='220' y1='160' x2='250' y2='160' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='235' cy='148' r='3' fill='%23f59e0b'/%3E%3Ccircle cx='235' cy='172' r='3' fill='%23f59e0b'/%3E%3Cline x1='35' y1='260' x2='70' y2='225' stroke='%2306b6d4' stroke-width='2.5' stroke-linecap='round'/%3E%3Ccircle cx='42' cy='232' r='4.5' fill='none' stroke='%2306b6d4' stroke-width='2'/%3E%3Ccircle cx='63' cy='253' r='4.5' fill='none' stroke='%2306b6d4' stroke-width='2'/%3E%3Cpath d='M165,225 L135,225 L150,242 L135,260 L165,260' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpolygon points='250,220 254,230 265,231 257,238 259,249 250,243 241,249 243,238 235,231 246,230' fill='%23fde047' stroke='%23f59e0b' stroke-width='1.5'/%3E%3Ctext x='175' y='165' font-family='Arial, sans-serif' font-size='16' font-weight='bold' fill='%233b82f6'%3E1 2 3%3C/text%3E%3Ctext x='75' y='275' font-family='Arial, sans-serif' font-size='13' font-weight='bold' fill='%2310b981'%3E%CF%80r%C2%B2%3C/text%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.roadmap-container {
  max-width: 1720px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 95px 24px 100px 24px;
  position: relative;
}

/* ============================================================
   HERO ШАПКА: ЖАРҚЫН ЖӘНЕ ОҚУШЫЛАРҒА ҚЫЗЫҚТЫ
   ============================================================ */
.roadmap-hero {
  text-align: center;
  margin-bottom: 25px;
}

.roadmap-hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0369a1;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.roadmap-nis-text {
  color: #059669;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.roadmap-title {
  font-size: 36px;
  font-weight: 900;
  color: #0f172a !important;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.roadmap-title span {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.roadmap-subtitle {
  font-size: 15px;
  color: #475569 !important;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
  font-weight: 500;
}

/* ============================================================
   🎖️ БАСТЫ ШАПКАДАҒЫ ДӘРЕЖЕ ЖӘНЕ ХР ВИДЖЕТІ (HERO STATUS CAPSULE)
   Ашық, акцентті, ойын стиліндегі статус капсуласы
   ============================================================ */
.hero-status-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #ffffff;
  border: 2.5px solid #bfdbfe;
  border-radius: 24px;
  padding: 12px 30px;
  margin-top: 18px;
  box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
}

.hsc-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hsc-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.hsc-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hsc-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hsc-val {
  font-size: 17px;
  font-weight: 900;
}

.hsc-val.rank-val {
  color: #0284c7;
}

.hsc-val.xp-val {
  color: #059669;
}

.hsc-divider {
  width: 2px;
  height: 32px;
  background: #e2e8f0;
}

/* ============================================================
   ПӘНДЕРДІ ТАҢДАУ БАТЫРМАЛАРЫ (SUBJECT MODULE TABS)
   НИШ Математика (қызғылт-сары), Сандық сипаттама (жасыл-изумруд), Ағылшын тілі (синий)
   ============================================================ */
.subject-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  position: -webkit-sticky;
  position: sticky;
  top: var(--rm-sticky-tabs-top, 74px);
  z-index: 70;
  background: rgba(234, 240, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
}

.sub-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  outline: none;
  user-select: none;
  text-decoration: none;
  min-width: 195px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  font-family: 'Nunito', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.st-badge.st-badge-locked {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 800;
}

.sub-tab-btn.active .st-badge.st-badge-locked {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

.st-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.22s ease;
  position: relative;
  overflow: visible;
}

.st-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.16));
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.26s ease;
  pointer-events: none;
}

.sub-tab-btn:hover .st-img {
  transform: scale(1.15) translateY(-2px);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.26));
}

.sub-tab-btn.active .st-img {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.32));
}

.st-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.st-name {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
  font-family: 'Nunito', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.st-badge {
  font-size: 11px;
  font-weight: 800;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  width: fit-content;
  line-height: 1.3;
  font-family: 'Nunito', 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

/* 1. НИШ МАТЕМАТИКА (Жылы қызғылт-сары / Jasqanat Math Theme) */
.sub-tab-btn.sub-tab-math {
  background: linear-gradient(145deg, #ffedd5 0%, #fed7aa 100%);
  border: 2px solid #fdba74;
  color: #9a3412;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.16);
}

.sub-tab-btn.sub-tab-math .st-icon {
  background: #ffffff;
  border: 1.5px solid #fdba74;
  box-shadow: 0 2px 6px rgba(251, 146, 60, 0.15);
}

.sub-tab-btn.sub-tab-math .st-name {
  color: #7c2d12;
}

.sub-tab-btn.sub-tab-math .st-badge {
  background: rgba(194, 65, 12, 0.16);
  color: #9a3412;
}

.sub-tab-btn.sub-tab-math:hover:not(.active) {
  border-color: #f97316;
  background: linear-gradient(145deg, #fed7aa 0%, #fdba74 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.28);
}

.sub-tab-btn.sub-tab-math.active {
  background: linear-gradient(135deg, #ff6b35 0%, #ea580c 100%) !important;
  border-color: #c2410c !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px -2px rgba(234, 88, 12, 0.45) !important;
}

.sub-tab-btn.sub-tab-math.active .st-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.sub-tab-btn.sub-tab-math.active .st-name {
  color: #ffffff !important;
}

.sub-tab-btn.sub-tab-math.active .st-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* 2. САНДЫҚ СИПАТТАМА (Мятно-зеленый / Jasqanat Sypat Theme) */
.sub-tab-btn.sub-tab-sypat {
  background: linear-gradient(145deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #6ee7b7;
  color: #065f46;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.16);
}

.sub-tab-btn.sub-tab-sypat .st-icon {
  background: #ffffff;
  border: 1.5px solid #6ee7b7;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

.sub-tab-btn.sub-tab-sypat .st-name {
  color: #064e3b;
}

.sub-tab-btn.sub-tab-sypat .st-badge {
  background: rgba(4, 120, 87, 0.16);
  color: #065f46;
}

.sub-tab-btn.sub-tab-sypat:hover:not(.active) {
  border-color: #10b981;
  background: linear-gradient(145deg, #a7f3d0 0%, #6ee7b7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
}

.sub-tab-btn.sub-tab-sypat.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px -2px rgba(16, 185, 129, 0.45) !important;
}

.sub-tab-btn.sub-tab-sypat.active .st-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.sub-tab-btn.sub-tab-sypat.active .st-name {
  color: #ffffff !important;
}

.sub-tab-btn.sub-tab-sypat.active .st-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* 3. АҒЫЛШЫН ТІЛІ (Корольдік синий / Jasqanat English Theme) */
.sub-tab-btn.sub-tab-eng {
  background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #93c5fd;
  color: #1e40af;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
}

.sub-tab-btn.sub-tab-eng .st-icon {
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

.sub-tab-btn.sub-tab-eng .st-name {
  color: #1e3a8a;
}

.sub-tab-btn.sub-tab-eng .st-badge {
  background: rgba(29, 78, 216, 0.16);
  color: #1e40af;
}

.sub-tab-btn.sub-tab-eng:hover:not(.active) {
  border-color: #3b82f6;
  background: linear-gradient(145deg, #bfdbfe 0%, #93c5fd 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.sub-tab-btn.sub-tab-eng.active {
  background: linear-gradient(135deg, #2563eb 0%, #0057dd 100%) !important;
  border-color: #003d99 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px -2px rgba(0, 87, 221, 0.45) !important;
}

.sub-tab-btn.sub-tab-eng.active .st-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.sub-tab-btn.sub-tab-eng.active .st-name {
  color: #ffffff !important;
}

.sub-tab-btn.sub-tab-eng.active .st-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* 4. ҚАЗАҚ ТІЛІ (Бирюзово-изумрудный / Небесный Қазақстан) */
.sub-tab-btn.sub-tab-kaz {
  background: linear-gradient(145deg, #ccfbf1 0%, #99f6e4 100%);
  border: 2px solid #5eead4;
  color: #115e59;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.16);
}

.sub-tab-btn.sub-tab-kaz .st-icon {
  background: #ffffff;
  border: 1.5px solid #5eead4;
  box-shadow: 0 2px 6px rgba(20, 184, 166, 0.15);
}

.sub-tab-btn.sub-tab-kaz .st-name {
  color: #115e59;
}

.sub-tab-btn.sub-tab-kaz .st-badge {
  background: rgba(13, 148, 136, 0.16);
  color: #115e59;
}

.sub-tab-btn.sub-tab-kaz:hover:not(.active) {
  border-color: #0d9488;
  background: linear-gradient(145deg, #99f6e4 0%, #5eead4 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.28);
}

.sub-tab-btn.sub-tab-kaz.active {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
  border-color: #115e59 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px -2px rgba(13, 148, 136, 0.45) !important;
}

.sub-tab-btn.sub-tab-kaz.active .st-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.sub-tab-btn.sub-tab-kaz.active .st-name {
  color: #ffffff !important;
}

.sub-tab-btn.sub-tab-kaz.active .st-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* 5. ОРЫС ТІЛІ (Кораллово-рубиновый / Теплый қызыл) */
.sub-tab-btn.sub-tab-rus {
  background: linear-gradient(145deg, #ffe4e6 0%, #fecdd3 100%);
  border: 2px solid #fda4af;
  color: #9f1239;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.16);
}

.sub-tab-btn.sub-tab-rus .st-icon {
  background: #ffffff;
  border: 1.5px solid #fda4af;
  box-shadow: 0 2px 6px rgba(244, 63, 94, 0.15);
}

.sub-tab-btn.sub-tab-rus .st-name {
  color: #9f1239;
}

.sub-tab-btn.sub-tab-rus .st-badge {
  background: rgba(225, 29, 72, 0.16);
  color: #9f1239;
}

.sub-tab-btn.sub-tab-rus:hover:not(.active) {
  border-color: #e11d48;
  background: linear-gradient(145deg, #fecdd3 0%, #fda4af 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.28);
}

.sub-tab-btn.sub-tab-rus.active {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  border-color: #9f1239 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px -2px rgba(225, 29, 72, 0.45) !important;
}

.sub-tab-btn.sub-tab-rus.active .st-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.sub-tab-btn.sub-tab-rus.active .st-name {
  color: #ffffff !important;
}

.sub-tab-btn.sub-tab-rus.active .st-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* 6. ЖАРАТЫЛЫСТАНУ (Лаймово-жасыл / Табиғат әлемі) */
.sub-tab-btn.sub-tab-science {
  background: linear-gradient(145deg, #ecfccb 0%, #d9f99d 100%);
  border: 2px solid #bef264;
  color: #3f6212;
  box-shadow: 0 4px 14px rgba(132, 204, 22, 0.16);
}

.sub-tab-btn.sub-tab-science .st-icon {
  background: #ffffff;
  border: 1.5px solid #bef264;
  box-shadow: 0 2px 6px rgba(132, 204, 22, 0.15);
}

.sub-tab-btn.sub-tab-science .st-name {
  color: #3f6212;
}

.sub-tab-btn.sub-tab-science .st-badge {
  background: rgba(101, 163, 13, 0.16);
  color: #3f6212;
}

.sub-tab-btn.sub-tab-science:hover:not(.active) {
  border-color: #65a30d;
  background: linear-gradient(145deg, #d9f99d 0%, #bef264 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(101, 163, 13, 0.28);
}

.sub-tab-btn.sub-tab-science.active {
  background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 100%) !important;
  border-color: #365314 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 28px -2px rgba(101, 163, 13, 0.45) !important;
}

.sub-tab-btn.sub-tab-science.active .st-icon {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.sub-tab-btn.sub-tab-science.active .st-name {
  color: #ffffff !important;
}

.sub-tab-btn.sub-tab-science.active .st-badge {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* ============================================================
   🎯 3-БАҒАНДЫ ЖҮЙЕ (ROADMAP MAIN GRID)
   Сол жақ: Мини-профиль + 7 сатылық дәрежелер сатысы
   Ортасы: 25 нұсқалық кең интерактивті карта
   Оң жақ: Көшбасшылар рейтингі (ТОП-10)
   ============================================================ */
.roadmap-main-grid {
  display: grid;
  grid-template-columns: minmax(280px, 310px) minmax(520px, 860px) minmax(390px, 450px);
  justify-content: center;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  box-sizing: border-box;
}

.roadmap-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.roadmap-col-map {
  min-width: 0;
}

.roadmap-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ============================================================
   👤 СОЛ ЖАҚ: МИНИ-ПРОФИЛЬ КАРТОЧКАСЫ (MINI PROFILE CARD)
   Скриншоттағы жинақты, әдемі ойындық карточка стилі
   ============================================================ */
.mini-profile-card {
  background: #ffffff;
  border: 2px solid #bfdbfe;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
}

.mini-profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #3b82f6, #10b981);
}

.mpc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mpc-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mpc-rank-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.mpc-avatar.season-avatar-1 {
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45), 0 4px 10px rgba(5, 150, 105, 0.18);
}
.mpc-avatar.season-avatar-2 {
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.50), 0 4px 10px rgba(217, 119, 6, 0.20);
}
.mpc-avatar.season-avatar-3 {
  border-color: #ea580c;
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.48), 0 4px 10px rgba(194, 65, 12, 0.18);
}
.mpc-avatar.season-avatar-4 {
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.50), 0 4px 10px rgba(37, 99, 235, 0.20);
}

.mpc-avatar.rank-avatar-wrap-7 {
  width: 54px;
  height: 54px;
  border-radius: 50% !important;
  background: radial-gradient(circle, #f0f9ff 0%, #e0f2fe 70%, #bae6fd 100%) !important;
  border: 2.5px solid #0284c7 !important;
  box-shadow: 0 0 18px rgba(2, 132, 199, 0.58) !important;
  overflow: visible !important;
  position: relative !important;
}
.mpc-avatar.season-avatar-1.rank-avatar-wrap-7 {
  background: radial-gradient(circle, #ecfdf5 0%, #d1fae5 70%, #a7f3d0 100%) !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.56) !important;
}
.mpc-avatar.season-avatar-2.rank-avatar-wrap-7 {
  background: radial-gradient(circle, #fffdf0 0%, #fef3c7 70%, #fde68a 100%) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.58) !important;
}
.mpc-avatar.season-avatar-3.rank-avatar-wrap-7 {
  background: radial-gradient(circle, #fff7ed 0%, #ffedd5 70%, #fed7aa 100%) !important;
  border-color: #ea580c !important;
  box-shadow: 0 0 18px rgba(234, 88, 12, 0.56) !important;
}

.mpc-avatar.rank-avatar-wrap-7 .mpc-rank-avatar-img {
  width: 78px !important;
  height: auto !important;
  max-width: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -52%);
  filter: drop-shadow(0 4px 10px rgba(2, 132, 199, 0.45)) drop-shadow(0 0 12px rgba(56, 189, 248, 0.65)) !important;
  animation: none !important;
  z-index: 4;
}
.mpc-avatar.season-avatar-1.rank-avatar-wrap-7 .mpc-rank-avatar-img {
  filter: drop-shadow(0 4px 10px rgba(5, 150, 105, 0.45)) drop-shadow(0 0 12px rgba(16, 185, 129, 0.65)) !important;
}
.mpc-avatar.season-avatar-2.rank-avatar-wrap-7 .mpc-rank-avatar-img {
  filter: drop-shadow(0 4px 10px rgba(217, 119, 6, 0.45)) drop-shadow(0 0 12px rgba(245, 158, 11, 0.65)) !important;
}
.mpc-avatar.season-avatar-3.rank-avatar-wrap-7 .mpc-rank-avatar-img {
  filter: drop-shadow(0 4px 10px rgba(194, 65, 12, 0.45)) drop-shadow(0 0 12px rgba(234, 88, 12, 0.65)) !important;
}

.mpc-user-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.mpc-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mpc-username {
  font-size: 14.5px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.mpc-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.mpc-subject-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mpc-subj-icon {
  font-size: 14px;
}

.mpc-subj-title {
  font-size: 13px;
  font-weight: 800;
  color: #0284c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* КӨРСЕТКІШТЕР: ОРТАША БАЛЛ МЕН ХР */
.mpc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.mpc-stat-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px;
  text-align: center;
}

.mpc-stat-box.stat-xp {
  background: #fffbeb;
  border-color: #fde68a;
}

.mpc-stat-lbl {
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mpc-stat-val-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.mpc-score-num {
  font-size: 16px;
  font-weight: 900;
  color: #0284c7;
}

.mpc-score-cnt {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}

.mpc-stars {
  font-size: 10px;
  color: #f59e0b;
  margin-top: 1px;
  letter-spacing: 0.5px;
}

.mpc-xp-val {
  font-size: 14.5px;
  font-weight: 900;
  color: #b45309;
}

.mpc-xp-sub {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: #92400e;
  margin-top: 1px;
}

/* ТАПСЫРМА/КЕҢЕС (COACH TIP) */
.mpc-coach-tip {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.mpc-tip-icon {
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1.3;
}

.mpc-tip-text {
  font-size: 11px;
  color: #166534;
  font-weight: 700;
  line-height: 1.35;
}

/* ============================================================
   🏆 ОҢ ЖАҚ: КӨШБАСШЫЛАР ШАПКАСЫ (LEADERBOARD HEADER)
   ============================================================ */
.leaderboard-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #fde68a;
  margin-bottom: 14px;
}

.lbh-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lbh-icon {
  font-size: 28px;
  line-height: 1;
}

.lbh-title-box {
  flex: 1;
  min-width: 0;
}

.leaderboard-title {
  font-size: 17.5px;
  font-weight: 900;
  color: #78350f;
  margin: 0;
  line-height: 1.2;
}

.lb-sub-desc {
  font-size: 11.5px;
  color: #92400e;
  font-weight: 700;
  margin-top: 2px;
}

.leaderboard-subject-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #b45309;
  border: 1.5px solid #fcd34d;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.08);
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   📱 АДАПТАЦИЯ (RESPONSIVE BREAKPOINTS)
   ============================================================ */
@media (max-width: 1280px) {
  .roadmap-main-grid {
    grid-template-columns: 270px 1fr minmax(370px, 420px);
    gap: 16px;
  }
}

/* 📱 Десктопта мобильді батырмалар мен бэкдроп жасырулы */
.roadmap-mobile-drawer-triggers {
  display: none !important;
}

.rm-drawer-header {
  display: none !important;
}

.roadmap-drawer-backdrop {
  display: none;
}

/* ============================================================
   3-БАҒАНДЫ СЕТКА (Grid 3 Columns)
   Сол жақ: Дәрежелер | Ортасы: Карта | Оң жақ: Сайдбар
   ============================================================ */
.roadmap-grid-3col {
  display: grid;
  grid-template-columns: 300px 1fr 390px;
  gap: 20px;
  align-items: start;
}

/* Жалпы карточкалар негізі */
.side-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   СОЛ ЖАҚ: ДӘРЕЖЕЛЕР БАСПАЛДАҒЫ (RANKS LADDER)
   ============================================================ */
.ranks-ladder-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #f0f6ff 0%, #e2eefd 100%);
  border: 2.5px solid #93c5fd;
  border-radius: 24px;
  box-shadow: 0 12px 30px -4px rgba(37, 99, 235, 0.14);
}

.ranks-ladder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px 6px;
  border-bottom: 2px solid #e0f2fe;
}

.rl-header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.rl-title {
  font-size: 17.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.25;
}

.rl-sub {
  font-size: 11.5px;
  color: #475569;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.ranks-ladder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 20px 14px;
  box-sizing: border-box;
}

.ranks-ladder-list::-webkit-scrollbar {
  width: 5px;
}

.ranks-ladder-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.ranks-ladder-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ranks-ladder-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.rank-ladder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
  position: relative;
  width: 100%;
  min-height: 66px;
  box-sizing: border-box;
  cursor: pointer;
  will-change: transform;
}

/* 🌟 ИНТЕРАКТИВНЫЙ ХОВЕР: БЕЗ ВЫЛЕТА ЗА ГРАНИЦЫ БЛОКА */
.rank-ladder-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
  z-index: 50;
}

.rank-ladder-item:hover .rli-badge {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.rank-ladder-item:hover .rli-img:not(.rank-img-7) {
  filter: brightness(1.04) saturate(1.06);
}

.rank-ladder-item:hover .rli-tier-num {
  transform: scale(1.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

/* 🎨 МАУСЫМДЫҚ ЖАРҚЫН ПАЛИТРАЛАР (1=Жасыл Көктем, 2=Сары Жаз, 3=Қызғылт сары Күз, 4=Мұзды көк Қыс) */
.ranks-ladder-list,
.ranks-ladder-list.season-ladder-1 {
  --rl-accent: #10b981;
  --rl-accent-dark: #059669;
  --rl-accent-deep: #065f46;
  --rl-bg: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 55%, #a7f3d0 100%);
  --rl-pill-bg: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --rl-glow: rgba(16, 185, 129, 0.50);
  --rl-glow-soft: rgba(5, 150, 105, 0.22);
  --rl-pill-border: #6ee7b7;
  --rl-ring-glow: rgba(16, 185, 129, 0.45);
}

.ranks-ladder-list.season-ladder-2 {
  --rl-accent: #f59e0b;
  --rl-accent-dark: #d97706;
  --rl-accent-deep: #92400e;
  --rl-bg: linear-gradient(135deg, #fffdf0 0%, #fef3c7 55%, #fde68a 100%);
  --rl-pill-bg: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --rl-glow: rgba(245, 158, 11, 0.55);
  --rl-glow-soft: rgba(250, 204, 21, 0.28);
  --rl-pill-border: #fef08a;
  --rl-ring-glow: rgba(245, 158, 11, 0.55);
}

.ranks-ladder-list.season-ladder-3 {
  --rl-accent: #ea580c;
  --rl-accent-dark: #c2410c;
  --rl-accent-deep: #9a3412;
  --rl-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
  --rl-pill-bg: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  --rl-glow: rgba(234, 88, 12, 0.52);
  --rl-glow-soft: rgba(194, 65, 12, 0.24);
  --rl-pill-border: #fdba74;
  --rl-ring-glow: rgba(234, 88, 12, 0.48);
}

.ranks-ladder-list.season-ladder-4 {
  --rl-accent: #0284c7;
  --rl-accent-dark: #1d4ed8;
  --rl-accent-deep: #1e3a8a;
  --rl-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 55%, #bae6fd 100%);
  --rl-pill-bg: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --rl-glow: rgba(2, 132, 199, 0.54);
  --rl-glow-soft: rgba(37, 99, 235, 0.25);
  --rl-pill-border: #7dd3fc;
  --rl-ring-glow: rgba(2, 132, 199, 0.50);
}

/* 📍 АКТИВТІ РАНГ (ОСЫНДАСЫЗ) — ТЕК ОҚУШЫ ТҰРҒАН НАҚТЫ САТЫДА ҒАНА ЖАРҚЫРАЙДЫ */
.rank-ladder-item.active-rank {
  border: 2.5px solid var(--rl-accent) !important;
  background: var(--rl-bg) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 18px var(--rl-glow), 0 0 0 1px var(--rl-pill-border), 0 6px 14px var(--rl-glow-soft) !important;
  z-index: 20;
  position: relative;
}

/* 🎯 КОГДА КУРСОР НАВОДИТСЯ НА ЛЮБОЙ ДРУГОЙ РАНГ — АКТИВНЫЙ РАНГ ВРЕМЕННО СБРАСЫВАЕТСЯ В ОБЫЧНЫЙ РАЗМЕР */
.ranks-ladder-list:hover .rank-ladder-item.active-rank:not(:hover) {
  transform: translateY(0) !important;
  box-shadow: 0 0 12px var(--rl-glow-soft), 0 2px 6px var(--rl-glow-soft) !important;
  z-index: 1;
}

.ranks-ladder-list:hover .rank-ladder-item.active-rank:not(:hover) .rli-badge {
  box-shadow: 0 0 8px var(--rl-ring-glow);
}

@supports selector(:has(*)) {
  .ranks-ladder-list:hover .rank-ladder-item.active-rank:not(:hover) {
    transform: translateY(-2px);
    box-shadow: 0 0 18px var(--rl-glow), 0 0 0 1px var(--rl-pill-border), 0 6px 14px var(--rl-glow-soft) !important;
    z-index: 20;
  }
  .ranks-ladder-list:has(.rank-ladder-item:not(.active-rank):hover) .rank-ladder-item.active-rank {
    transform: translateY(0) !important;
    box-shadow: 0 0 12px var(--rl-glow-soft), 0 2px 6px var(--rl-glow-soft) !important;
    z-index: 1 !important;
  }
  .ranks-ladder-list:has(.rank-ladder-item:not(.active-rank):hover) .rank-ladder-item.active-rank .rli-badge {
    box-shadow: 0 0 8px var(--rl-ring-glow);
  }
}

/* 💥 КОГДА КУРСОР НАВЕДЕН НАПРЯМУЮ НА АКТИВНЫЙ РАНГ */
.rank-ladder-item.active-rank:hover {
  transform: translateY(-3px) !important;
  border-color: var(--rl-accent-dark) !important;
  box-shadow: 0 0 22px var(--rl-glow), 0 8px 18px var(--rl-glow-soft) !important;
  z-index: 50;
}

.rank-ladder-item.active-rank:hover .rli-badge {
  box-shadow: 0 0 16px var(--rl-glow);
  border-color: var(--rl-accent-dark);
}

.rank-ladder-item.unlocked-rank {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.rank-ladder-item.unlocked-rank:hover {
  border-color: #22c55e !important;
  background: #f0fdf4 !important;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.18), 0 3px 8px rgba(34, 197, 94, 0.08) !important;
}

.rank-ladder-item.unlocked-rank:hover .rli-badge {
  border-color: #16a34a;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.rank-ladder-item.locked-rank {
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.9;
}

.rank-ladder-item.locked-rank:hover {
  opacity: 1 !important;
  border-color: #94a3b8 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(100, 116, 139, 0.14) !important;
}

.rli-badge-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rli-tier-num {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.active-rank .rli-tier-num {
  background: var(--rl-pill-bg);
  border-color: var(--rl-pill-border);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--rl-glow);
}

.unlocked-rank .rli-tier-num {
  background: #16a34a;
  border-color: #86efac;
  color: #fff;
}

.rli-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.unlocked-rank .rli-badge {
  border-color: #86efac;
  box-shadow: none;
}

/* Тек белсенді сатыда ғана (Осындасыз) маусымдық жарқын жиек пен сәулелену болады */
.active-rank .rli-badge {
  border: 2.5px solid var(--rl-accent);
  box-shadow: 0 0 16px var(--rl-glow);
}

.rli-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.24s ease;
}

/* 🦅 7-САТЫ: ҚЫРАН — ҚАЛЫПТЫ КҮЙДЕ ЖАРЫҚСЫЗ, ТЕК БЕЛСЕНДІ БОЛҒАНДА ҒАНА ЖАРҚЫРАЙДЫ */
.rank-ladder-item.rank-item-7,
.rank-ladder-item.rank-tier-7 {
  padding: 10px 12px 10px 14px;
  min-height: 78px;
  gap: 14px;
  position: relative;
  overflow: visible !important;
}

.rank-ladder-item.rank-item-7:hover,
.rank-ladder-item.rank-tier-7:hover {
  transform: translateY(-2px);
  z-index: 50;
}

.rank-ladder-item.rank-item-7.active-rank,
.rank-ladder-item.rank-tier-7.active-rank {
  border: 2.5px solid var(--rl-accent) !important;
  background: var(--rl-bg) !important;
  box-shadow: 0 0 18px var(--rl-glow), 0 0 0 1px var(--rl-pill-border), 0 6px 14px var(--rl-glow-soft) !important;
}

.rank-ladder-item.rank-item-7.active-rank:hover,
.rank-ladder-item.rank-tier-7.active-rank:hover {
  transform: translateY(-3px) !important;
  border-color: var(--rl-accent-dark) !important;
  box-shadow: 0 0 22px var(--rl-glow), 0 8px 18px var(--rl-glow-soft) !important;
}

.rank-wrap-7 {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

.rank-badge-7 {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative !important;
  overflow: visible !important;
  transition: box-shadow 0.28s ease !important;
}
.unlocked-rank .rank-badge-7 {
  border-color: #86efac !important;
}
.active-rank .rank-badge-7 {
  border: 2.5px solid var(--rl-accent) !important;
  box-shadow: 0 0 16px var(--rl-glow) !important;
}
.active-rank .rank-badge-7.season-avatar-1 {
  background: radial-gradient(circle, #f0f9ff 0%, #dbeafe 70%, #bfdbfe 100%) !important;
}
.active-rank .rank-badge-7.season-avatar-2 {
  background: radial-gradient(circle, #fff7ed 0%, #ffedd5 70%, #fed7aa 100%) !important;
}
.active-rank .rank-badge-7.season-avatar-3 {
  background: radial-gradient(circle, #ffffff 0%, #f1f5f9 70%, #e2e8f0 100%) !important;
}
.active-rank .rank-badge-7.season-avatar-4 {
  background: radial-gradient(circle, #fffdf0 0%, #fef3c7 70%, #fde68a 100%) !important;
}

.rli-img.rank-img-7 {
  width: 74px !important;
  height: auto !important;
  max-width: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -52%);
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.16)) !important;
  animation: none !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s ease !important;
  z-index: 4;
  pointer-events: none;
}
.active-rank .rli-img.rank-img-7 {
  filter: drop-shadow(0 4px 10px var(--rl-glow-soft)) drop-shadow(0 0 12px var(--rl-glow)) !important;
}

.rank-ladder-item.rank-item-7.active-rank:hover .rli-img.rank-img-7,
.rank-ladder-item.rank-tier-7.active-rank:hover .rli-img.rank-img-7 {
  transform: translate(-50%, -54%) !important;
  filter: drop-shadow(0 6px 16px var(--rl-glow-soft)) drop-shadow(0 0 22px var(--rl-glow)) !important;
}

.rank-wrap-7 .rli-tier-num {
  width: 19px;
  height: 19px;
  font-size: 10.5px;
  bottom: -1px;
  right: -1px;
  z-index: 6;
}

.rank-item-7 .rli-name,
.rank-tier-7 .rli-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.rank-item-7 .rli-req,
.rank-tier-7 .rli-req {
  color: #0369a1;
  font-weight: 800;
  font-size: 11px;
}

.rank-item-7 .rli-desc,
.rank-tier-7 .rli-desc {
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.active-rank .rli-name {
  color: var(--rl-accent-deep);
  font-weight: 800;
}

.active-rank .rli-req {
  color: var(--rl-accent-dark);
  font-weight: 800;
}

.active-rank .rli-desc {
  color: #1e293b;
}

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

.rli-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.rli-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.rli-status-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.rli-status-tag.current {
  background: var(--rl-pill-bg);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
  box-shadow: 0 2px 10px var(--rl-glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border: 1.5px solid var(--rl-pill-border);
}

.rli-status-tag.unlocked {
  background: #dcfce7;
  color: #15803d;
}

.rli-status-tag.locked {
  background: #e2e8f0;
  color: #475569;
}

.rli-req {
  font-size: 11px;
  color: #0369a1;
  font-weight: 800;
  margin-bottom: 2px;
}

.rli-desc {
  font-size: 11px;
  color: #334155;
  font-weight: 600;
  line-height: 1.35;
}

/* ============================================================
   ОРТАЛЫҚ: БАСТЫ КАРТА (АШЫҚ, ҚЫЗЫҚТЫ, МЕКТЕП-ОЙЫН АЛАҢЫ)
   ============================================================ */
/* ============================================================
   ОРТАЛЫҚ: БАСТЫ КАРТА (2.5D ТАУ БАҒЫТЫ & ДӨҢГЕЛЕКТЕР)
   ============================================================ */
.space-map-card {
  background: #ffffff;
  border: 2.5px solid #bfdbfe;
  border-radius: 26px;
  padding: 16px 16px 22px 16px;
  position: relative;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08);
}

/* КАРТА ТАҚЫРЫБЫ (БАҒЫТ КӨРСЕТКІШІ) */
.map-quest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 16px;
  padding: 10px 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.mqh-badge {
  font-size: 11px;
  font-weight: 800;
  background: #ffffff;
  color: #1d4ed8;
  border: 1.5px solid #93c5fd;
  padding: 3px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.mqh-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

/* 🏔️ 2.5D ТАУ ТАҚТАСЫ (GAME MOUNTAIN BOARD)
   Ұзын вертикалды пропорция (1:2.85–1:3.0), созылмайды, мобилкада батырмалар қысылмайды! */
.game-mountain-board {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  aspect-ratio: 608 / 1728;
  background-image: url('/src/roadmap_bgs/seasons/math_1.webp?v=20261129_v53');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: 3px solid #7dd3fc;
  border-radius: 24px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.22), 0 18px 45px rgba(15, 23, 42, 0.18);
  overflow: visible; /* Пин мен тултиптер шетінен қиылмауы үшін */
  transition: background-image 0.25s ease-in-out;
  --reveal-x: -1000px;
  --reveal-y: -1000px;
}

/* Атмосфералық жеңіл жарық (фонды жаппайды) */
.game-mountain-board::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 21px;
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   ☁️ ЖАНДЫ БҰЛТТАР ТЕҢІЗІ (INTERACTIVE CLOUD SEA)
   Фоновый үздіксіз дрейф + курсордан серпілу + шексіз круговорот
   ============================================================ */
.roadmap-clouds-sea {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 21px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5; /* Төменгі қабат: ойын деңгейлерінің (z-index: 10, 20, 25) астында қалықтайды */
}

.sea-cloud-entity {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.16));
  transition: opacity 0.3s ease;
}

.sea-cloud-entity img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* 🏔️ Табиғи жинақы өлшемдер (-25% кішірейтілген): тек жоғарғы 3 бұлт қалдырылды */
#sea_cloud_c1 { width: clamp(255px, 49.5vw, 420px); opacity: 0.90; }
#sea_cloud_c2 { width: clamp(225px, 43.5vw, 368px); opacity: 0.86; }
#sea_cloud_c3 { width: clamp(240px, 46.5vw, 405px); opacity: 0.85; }

/* ============================================================
   💎 МАТЕМАТИКА ТАҚЫРЫПТЫҚ ЭЛЕМЕНТТЕРІ (3D КРИСТАЛДАР, АУРА, БЛИКТЕР)
   ============================================================ */
.roadmap-subject-elements {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 21px;
  overflow: visible;
  pointer-events: none;
  z-index: 5;
}

.math-crystal {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  z-index: 8;
}

.math-crystal img {
  display: block;
  width: 100%;
  height: auto;
}

.math-crystal-1 {
  width: clamp(52px, 9vw, 86px);
  animation: mathCrystalFloat1 4.8s ease-in-out infinite;
}

.math-crystal-1 img {
  filter: drop-shadow(0 6px 18px rgba(56, 189, 248, 0.7));
}

.math-crystal-2 {
  width: clamp(48px, 8.5vw, 78px);
  animation: mathCrystalFloat2 5.5s ease-in-out infinite 0.8s;
}

.math-crystal-2 img {
  filter: drop-shadow(0 6px 18px rgba(251, 191, 36, 0.7));
}

.math-crystal-3 {
  width: clamp(44px, 7.5vw, 72px);
  animation: mathCrystalFloat3 5.0s ease-in-out infinite 1.5s;
}

.math-crystal-3 img {
  filter: drop-shadow(0 6px 18px rgba(16, 185, 129, 0.7));
}

.math-crystal:hover {
  transform: translate(-50%, -50%) scale(1.22) !important;
  filter: brightness(1.22);
}

.math-crystal:active {
  transform: translate(-50%, -50%) scale(0.92) !important;
}

@keyframes mathCrystalFloat1 {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
  50% { transform: translate(-50%, -50%) translateY(-12px) rotate(4deg); }
}

@keyframes mathCrystalFloat2 {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0deg); }
  50% { transform: translate(-50%, -50%) translateY(-10px) rotate(-5deg); }
}

@keyframes mathCrystalFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50% { transform: translate(-50%, -50%) translateY(-9px) scale(1.06) rotate(3deg); }
}

/* 🏛️ Шыңдағы Дворец Мудрости алтын аурасы */
.math-summit-aura {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(80px, 14vw, 130px);
  height: clamp(80px, 14vw, 130px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45) 0%, rgba(245, 158, 11, 0.16) 48%, transparent 72%);
  pointer-events: none;
  z-index: 2;
  animation: mathSummitPulse 3.5s ease-in-out infinite;
}

@keyframes mathSummitPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.88); opacity: 0.55; }
  50% { transform: translate(-50%, -50%) scale(1.18); opacity: 0.95; }
}

/* 🌊 Архимед бұлағы толқыны */
.math-water-ripple {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(125, 211, 252, 0.7);
  pointer-events: none;
  z-index: 2;
  animation: mathWaterRipple 2.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes mathWaterRipple {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

/* 🔭 Телескоп бликі */
.math-telescope-sparkle {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(circle, #ffffff 15%, #fde047 50%, transparent 75%);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  animation: mathTelescopeGlint 4.2s ease-in-out infinite;
}

@keyframes mathTelescopeGlint {
  0%, 68%, 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  80% { transform: translate(-50%, -50%) scale(1.4) rotate(45deg); opacity: 1; }
  90% { transform: translate(-50%, -50%) scale(0.85) rotate(90deg); opacity: 0.65; }
}

/* ✨ Парящие математические символы */
.roadmap-math-symbols {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 21px;
  z-index: 3;
}

.math-symbol-particle {
  position: absolute;
  font-family: 'Cambria Math', 'Times New Roman', serif;
  font-weight: 900;
  font-size: clamp(14px, 2.5vw, 22px);
  color: #fef08a;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.85), 0 0 20px rgba(234, 88, 12, 0.45);
  pointer-events: none;
  user-select: none;
  animation: mathSymbolFloatUp 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.math-symbol-particle.p-1 { animation-delay: 0s; }
.math-symbol-particle.p-2 { animation-delay: 2s; }
.math-symbol-particle.p-3 { animation-delay: 4.5s; }
.math-symbol-particle.p-4 { animation-delay: 6.5s; }
.math-symbol-particle.p-5 { animation-delay: 8.5s; }
.math-symbol-particle.p-6 { animation-delay: 10.5s; }

@keyframes mathSymbolFloatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.75; }
  100% { transform: translateY(-70px) rotate(15deg); opacity: 0; }
}

/* ============================================================
   🔴 ДӨҢГЕЛЕКТЕР (GAME CIRCLE NODES: 1..25)
   Тау соқпағындағы таза ойындық 3D шайбалар / фишкалар
   ============================================================ */
.game-circle-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: clamp(26px, 3vw, 34px);
  height: clamp(26px, 3vw, 34px);
  cursor: pointer;
  z-index: 10;
  scroll-margin-top: var(--rm-sticky-seasons-top, 170px);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* Саусақпен басуға арналған 44px+ тач-зона (Rule 9 Android WebView стандарты) */
.game-circle-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.game-circle-node:hover {
  transform: translate(-50%, -50%) scale(1.22);
  z-index: 25;
}

.game-circle-node:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* 3D Ойындық шайба (Puck coin) */
.gcn-puck {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: 'Nunito', 'Roboto', 'Inter', -apple-system, sans-serif;
  font-weight: 900;
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: -0.4px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* 🟢 ӨТІЛДІ (COMPLETED: 1..4) — Изумрудты-жасыл 3D шайба */
.game-circle-node.completed .gcn-puck {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  border: 2.5px solid #ffffff;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.5), 0 2.5px 0 #047857, inset 0 2px 3px rgba(255, 255, 255, 0.6);
}

.game-circle-node.completed:hover .gcn-puck {
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.7), 0 2.5px 0 #047857, inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

/* 🔵 АҒЫМДАҒЫ ҚАДАМ (ACTIVE STEP) — Жарқыраған корольдік көк + алтын жиек */
.game-circle-node.active-step {
  z-index: 20;
}

.game-circle-node.active-step .gcn-puck {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border: 3px solid #fde047;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.85), 0 4px 12px rgba(0, 0, 0, 0.35), 0 3px 0 #1d4ed8, inset 0 2px 4px rgba(255, 255, 255, 0.7);
  animation: gcnPulseActive 2s infinite ease-in-out;
}

@keyframes gcnPulseActive {
  0%, 100% {
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.75), 0 4px 10px rgba(0, 0, 0, 0.3), 0 3px 0 #1d4ed8;
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.95), 0 6px 16px rgba(0, 0, 0, 0.35), 0 3px 0 #1d4ed8;
    transform: scale(1.08);
  }
}

/* ⚪ ҚҰЛЫПТАУЛЫ (LOCKED: 6..25) — Тас сұр шайба */
.game-circle-node.locked .gcn-puck {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  border: 2px solid #e2e8f0;
  color: #f8fafc;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 2px 0 #475569, inset 0 1.5px 2px rgba(255, 255, 255, 0.35);
  opacity: 0.94;
}

/* 🔒 ҚОЛЖЕТІМДІЛІК ЖАБЫҚ НЕМЕСЕ ҚОНАҚ РЕТІНДЕ КІРГЕН (ACCESS LOCKED NODES) */
.game-circle-node.access-locked {
  cursor: pointer !important;
}

.game-circle-node.access-locked .gcn-puck {
  background: linear-gradient(180deg, #64748b 0%, #475569 100%) !important;
  border: 2px solid #94a3b8 !important;
  color: #fbbf24 !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 2px 0 #334155, inset 0 1.5px 2px rgba(255, 255, 255, 0.25) !important;
  opacity: 0.96;
}

.game-circle-node.access-locked:hover .gcn-puck {
  transform: translateY(-2px) scale(1.06);
  border-color: #f59e0b !important;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35), 0 2px 0 #d97706, inset 0 1.5px 2px rgba(255, 255, 255, 0.4) !important;
}

.game-circle-node.access-locked .gcn-num {
  font-size: 14px;
  line-height: 1;
}

/* 🏆 МЕЖЕЛІК БЕКЕТТЕР (MILESTONES: 3, 7, 13, 19, 25) */
.game-circle-node.milestone-node .gcn-puck {
  border-color: #fbbf24 !important;
}

.gcn-milestone-mini {
  display: none !important;
}

/* 📍 АВАТАР ПИН: «СЕН 📍» (Floating pointer over active step) */
.gcn-avatar-pin {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 25;
  animation: gcnPinBounce 2s infinite ease-in-out;
}

@keyframes gcnPinBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.gcn-pin-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 2px solid #2563eb;
  color: #1e40af;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
  white-space: nowrap;
}

.gcn-pin-badge {
  font-size: 12px;
}

.gcn-pin-text {
  font-size: 11px;
  font-weight: 800;
}

.gcn-pin-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #2563eb;
  margin-top: -1px;
}

/* 💬 ТУЛТИП (ПОПОВЕР МЕЛКІСІ) — Тышқанмен апарғанда көрінеді */
.gcn-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.18s ease;
  z-index: 30;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.gcn-tt-title {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 2px;
}

.gcn-tt-meta {
  font-size: 11px;
  color: #f1f5f9;
}

.game-circle-node:hover .gcn-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ============================================================
   🏛️ КАРТА АСТЫНДАҒЫ ШЫҢ СТАТУС БЛОГЫ (MAP SUMMIT FOOTER CARD)
   Картаны жаппай, астында көркем тұрады
   ============================================================ */
.map-summit-footer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 60%, #ecfdf5 100%);
  border: 2px solid #f59e0b;
  border-radius: 18px;
  padding: 14px 18px;
  margin-top: 18px;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
  position: relative;
  z-index: 2;
}

.map-summit-footer-card.achieved {
  border-color: #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.map-summit-footer-card.locked-footer-card {
  border-color: #cbd5e1;
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 4px 16px rgba(100, 116, 139, 0.12);
}

.map-summit-footer-card.locked-footer-card .msfc-title {
  color: #334155;
}

.msfc-icon {
  font-size: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.msfc-body {
  flex: 1;
  min-width: 0;
}

.msfc-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 3px;
}

.map-summit-footer-card.achieved .msfc-title {
  color: #065f46;
}

.msfc-sub {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  font-weight: 500;
}

.msfc-action {
  flex-shrink: 0;
}

.msfc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

/* ============================================================
   🏆 ҮЛКЕН ФИНАЛ: НЗМ МЕКТЕБІНЕ ҚАБЫЛДАНУ (VICTORY SUMMIT PORTAL)
   Жарқын мерекелік алтын және изумруд порталы
   ============================================================ */
.victory-row {
  margin-top: 18px;
  width: 100%;
}

.map-victory-portal {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 45%, #ecfdf5 100%);
  border: 3px solid #f59e0b;
  border-radius: 26px;
  padding: 28px 24px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(245, 158, 11, 0.25), 0 0 30px rgba(251, 191, 36, 0.3);
  transition: all 0.35s ease;
  z-index: 2;
}

.map-victory-portal:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35), 0 0 35px rgba(251, 191, 36, 0.4);
}

.map-victory-portal.portal-achieved {
  border-color: #d97706;
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.65), inset 0 0 35px rgba(251, 191, 36, 0.3);
  animation: victoryPortalPulse 2.5s infinite ease-in-out;
}

@keyframes victoryPortalPulse {
  0%, 100% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.45);
  }
  50% {
    box-shadow: 0 0 75px rgba(251, 191, 36, 0.85);
  }
}

.mvp-radiance {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.mvp-rays {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: conic-gradient(from 0deg at 50% 30%, 
    transparent 0deg, rgba(251, 191, 36, 0.12) 20deg, transparent 40deg,
    transparent 90deg, rgba(56, 189, 248, 0.12) 110deg, transparent 130deg,
    transparent 180deg, rgba(251, 191, 36, 0.12) 200deg, transparent 220deg,
    transparent 270deg, rgba(52, 211, 153, 0.12) 290deg, transparent 310deg);
  animation: mvpRaySpin 30s linear infinite;
  pointer-events: none;
  opacity: 0.9;
}

@keyframes mvpRaySpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mvp-emblem-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.mvp-emblem-halo {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  opacity: 0.4;
  filter: blur(10px);
  animation: mvpHaloPulse 2.2s infinite ease-in-out;
}

@keyframes mvpHaloPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.35; }
  50% { transform: scale(1.18); opacity: 0.65; }
}

.mvp-emblem-icon {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 3px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.6);
  z-index: 2;
  animation: mvpCrestFloat 3.2s ease-in-out infinite;
}

@keyframes mvpCrestFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mvp-emblem-crown {
  position: absolute;
  top: -14px;
  font-size: 28px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
  z-index: 3;
  animation: mvpCrownSway 2.4s ease-in-out infinite;
}

@keyframes mvpCrownSway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.mvp-body {
  position: relative;
  z-index: 2;
}

.mvp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.mvp-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.mvp-title {
  font-size: 23px;
  font-weight: 900;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mvp-subtitle {
  font-size: 13px;
  color: #475569;
  margin: 0 0 18px 0;
  line-height: 1.45;
  font-weight: 500;
}

.mvp-progress-box {
  background: #ffffff;
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}

.mvp-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 7px;
}

.mvp-prog-lbl {
  color: #64748b;
}

.mvp-prog-val {
  color: #b45309;
}

.mvp-prog-track {
  width: 100%;
  height: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 9px;
}

.mvp-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #10b981);
  border-radius: 10px;
  transition: width 0.6s ease;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.65);
}

.mvp-prog-status {
  font-size: 12px;
  color: #0f172a;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.mvp-rewards-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mvp-reward-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  transition: transform 0.15s ease;
}

.mvp-reward-chip:hover {
  transform: scale(1.04);
}

.mvp-reward-chip.gold {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

/* ============================================================
   👑 ТӘУЕЛСІЗ ТІРКЕЛГЕН НЗМ ШЫҢЫ ФЛОАТЕРІ (FLOATING CROWN BAR)
   Скролға бағынбайды, экранның төменгі бөлігінде бекітілген
   ============================================================ */
.nis-floater-crown-bar {
  display: none !important;
}

.nis-floater-crown-bar:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18), 0 0 35px rgba(245, 158, 11, 0.4);
  border-color: #d97706;
}

.nfc-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nfc-emblem-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 2px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
  flex-shrink: 0;
}

.nfc-crown-icon {
  font-size: 20px;
  animation: mvpCrownSway 2.5s infinite ease-in-out;
}

.nfc-meta {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.nfc-title {
  font-size: 13px;
  font-weight: 900;
  color: #b45309;
  letter-spacing: -0.2px;
}

.nfc-sub {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.nfc-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nfc-track {
  width: 140px;
  height: 9px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.nfc-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #10b981);
  border-radius: 10px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.nfc-percent {
  font-size: 12px;
  font-weight: 900;
  color: #059669;
  min-width: 34px;
}

.nfc-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nfc-btn {
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nfc-btn-step {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
}

.nfc-btn-step:hover {
  background: #dbeafe;
  color: #1e40af;
  transform: translateY(-1px);
}

.nfc-btn-summit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: 1.5px solid #fde68a;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.nfc-btn-summit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

/* ============================================================
   ОҢ ЖАҚ САЙДБАР: ОРТАША БАЛЛ ЖӘНЕ КӨШБАСШЫЛАР
   ============================================================ */
.roadmap-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 1. Жеке оқушы картасы */
.user-rank-card {
  text-align: center;
  background: linear-gradient(180deg, #ecfdf3 0%, #daf8e7 100%);
  border: 2.5px solid #86efac;
  border-radius: 24px;
  box-shadow: 0 12px 30px -4px rgba(16, 185, 129, 0.14);
}

.urc-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  border: 3px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 10px auto;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.urc-name {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.urc-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.urc-subject-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  color: #1e40af;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transition: all 0.25s ease;
}

.formula-stars {
  font-size: 16px;
  letter-spacing: 2px;
  margin: 4px 0 6px 0;
  color: #f59e0b;
}

/* Формула расчета орташа балл */
.formula-box {
  background: #ffffff;
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.formula-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #166534;
  margin-bottom: 6px;
  font-weight: 800;
}

.formula-display {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 4px;
}

.formula-result {
  font-size: 24px;
  font-weight: 900;
  color: #059669;
}

.formula-caption {
  font-size: 11px;
  color: #475569;
  font-weight: 700;
  margin-top: 4px;
}

/* Келесі дәрежеге кеңес (Coaching Box) */
.user-coach-box {
  text-align: left;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.ucb-title {
  color: #0284c7;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 3px;
}

.ucb-text {
  color: #334155;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

/* 2. Лидерборд (Көшбасшылар) */
.leaderboard-card {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 2.5px solid #fcd34d;
  border-radius: 24px;
  padding: 16px 16px 20px 16px;
  box-shadow: 0 12px 30px -4px rgba(245, 158, 11, 0.14);
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 8px 12px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  position: relative;
}

.lb-item:hover {
  background: #fffdf0;
  border-color: #f59e0b;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

/* ТОП-3 үшін жеке арнайы стилдер */
.lb-item.lb-top-1 {
  background: linear-gradient(90deg, #fffbeb 0%, #ffffff 85%);
  border: 2px solid #fde68a;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.14);
}

.lb-item.lb-top-2 {
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 85%);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 3px 8px rgba(148, 163, 184, 0.12);
}

.lb-item.lb-top-3 {
  background: linear-gradient(90deg, #fff7ed 0%, #ffffff 85%);
  border: 1.5px solid #fed7aa;
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.12);
}

/* Жүйеге кірген қолданушының өз орнын айқын обводкамен ерекшелеу */
.lb-item.lb-me-item {
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 100%) !important;
  border: 2px solid #2563eb !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22) !important;
  position: relative;
}
.lb-me-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  margin-left: 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

/* Позициялар: 3D Гейминг стиліндегі жетондар */
.lb-pos {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 900;
  flex-shrink: 0;
  position: relative;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 🥇 1-орын: Алтын (Бір түсті таза алтын, ішкі градиентсіз) */
.lb-pos.pos-1 {
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: #ffffff;
  background: #f59e0b;
  border: 1.5px solid #d97706;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

/* 🥈 2-орын: Күміс (Бір түсті таза күміс, ішкі градиентсіз) */
.lb-pos.pos-2 {
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: #ffffff;
  background: #94a3b8;
  border: 1.5px solid #64748b;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
}

/* 🥉 3-орын: Қола (Бір түсті таза қола, ішкі градиентсіз) */
.lb-pos.pos-3 {
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: #ffffff;
  background: #ea580c;
  border: 1.5px solid #c2410c;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

/* 4, 5, 6... орындар: Бейтарап сұр түсті дөңгелек */
.lb-pos.pos-other {
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 800;
  background: #f1f5f9;
  color: #64748b;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Аватар контейнері */
.lb-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Барлық орындарға арналған ранг аватарасы */
.lb-rank-avatar {
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.lb-rank-avatar.top-1 {
  width: 38px;
  height: 38px;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 3px 8px rgba(217, 119, 6, 0.2);
}

.lb-rank-avatar.top-2 {
  width: 35px;
  height: 35px;
  border: 1.5px solid #94a3b8;
  box-shadow: 0 0 0 1.5px rgba(148, 163, 184, 0.25), 0 3px 7px rgba(100, 116, 139, 0.15);
}

.lb-rank-avatar.top-3 {
  width: 35px;
  height: 35px;
  border: 1.5px solid #ea580c;
  box-shadow: 0 0 0 1.5px rgba(234, 88, 12, 0.25), 0 3px 7px rgba(234, 88, 12, 0.15);
}

/* 4-10 орындар: Ранг аватары (бұрынғы 👤 сұлбаның орнына) */
.lb-rank-avatar.pos-other {
  width: 34px;
  height: 34px;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lb-rank-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Маусымдық жарқын көшбасшы аватара сәулеленуі */
.lb-rank-avatar.season-avatar-1 {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.44), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.lb-rank-avatar.season-avatar-2 {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.48), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.lb-rank-avatar.season-avatar-3 {
  border-color: #ea580c;
  box-shadow: 0 0 13px rgba(234, 88, 12, 0.46), 0 2px 6px rgba(0, 0, 0, 0.08);
}
.lb-rank-avatar.season-avatar-4 {
  border-color: #0284c7;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.50), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 7-дәреже (Қыран) арнайы визуал */
.lb-rank-avatar.rank-wrap-7 {
  border-color: #0284c7 !important;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.7) !important;
  overflow: visible !important;
}
.lb-rank-avatar.season-avatar-1.rank-wrap-7 {
  border-color: #10b981 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.65) !important;
}
.lb-rank-avatar.season-avatar-2.rank-wrap-7 {
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.68) !important;
}
.lb-rank-avatar.season-avatar-3.rank-wrap-7 {
  border-color: #ea580c !important;
  box-shadow: 0 0 14px rgba(234, 88, 12, 0.65) !important;
}

.lb-rank-img.rank-img-7 {
  width: 52px !important;
  height: auto !important;
  max-width: none !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -52%);
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.55));
  pointer-events: none;
}
.season-avatar-1 .lb-rank-img.rank-img-7 { filter: drop-shadow(0 2px 6px rgba(5, 150, 105, 0.55)); }
.season-avatar-2 .lb-rank-img.rank-img-7 { filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.55)); }
.season-avatar-3 .lb-rank-img.rank-img-7 { filter: drop-shadow(0 2px 6px rgba(194, 65, 12, 0.55)); }

/* 4+ орындар: Адам сұлбасы (👤 человечек) */
.lb-human-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lb-human-icon {
  font-size: 16px;
  line-height: 1;
  color: #64748b;
  opacity: 0.88;
}

.lb-user-info {
  flex: 1;
  min-width: 0;
}

.lb-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.lb-sub {
  font-size: 11.5px;
  color: #475569;
  font-weight: 700;
  margin-top: 2px;
}

.lb-xp {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Бос көй (Empty state) */
.lb-empty-state {
  text-align: center;
  padding: 24px 12px;
}

.lb-empty-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.lb-empty-title {
  color: #0f172a;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}

.lb-empty-sub {
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
  font-weight: 600;
}

/* ============================================================
   📱 МОБИЛЬДІ БЕЙІМДЕЛУ (Android WebView & Смартфондар, Правило 9)
   ============================================================ */
@media (max-width: 991px) {
  /* 📱 Мобильді батырмалар тақтасы (Сатылар мен Көшбасшылар - ровно 50% / 50%) */
  .roadmap-mobile-drawer-triggers {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 14px !important;
    position: static !important;
    top: auto !important;
    z-index: 10 !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .rm-mob-btn {
    flex: 1 1 0 !important;
    width: calc(50% - 4px) !important;
    max-width: calc(50% - 4px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important; /* Touch target >= 44px (Правило 9) */
    padding: 10px 8px !important;
    border-radius: 13px !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
    text-align: center !important;
  }

  .rm-mob-btn:active {
    transform: scale(0.97) !important;
  }

  .rm-mob-btn-ranks {
    border-color: #93c5fd !important;
    background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
    color: #1d4ed8 !important;
  }

  .rm-mob-btn-leaderboard {
    border-color: #fde047 !important;
    background: linear-gradient(135deg, #fffbeb, #ffffff) !important;
    color: #b45309 !important;
  }

  .rm-mob-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: 0.2px !important;
  }

  /* 🗺️ Карта мобильде ортада толық енмен орналасады */
  .roadmap-main-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .roadmap-col-map {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto !important;
  }

  /* 🚪 Сол жақ бүйірлік панель (Drawer): Сатылар */
  .roadmap-col-left {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 88vw !important;
    max-width: 380px !important;
    height: 100% !important;
    z-index: 999999 !important; /* ВЫШЕ бэкдропа 999995 */
    background: #ffffff !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.4) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 14px 60px 14px !important;
    transform: translateX(-105%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
    isolation: isolate !important;
  }

  .roadmap-col-left.drawer-open {
    transform: translateX(0) !important;
  }

  /* 🚪 Оң жақ бүйірлік панель (Drawer): Көшбасшылар */
  .roadmap-col-right {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 88vw !important;
    max-width: 400px !important;
    height: 100% !important;
    z-index: 999999 !important; /* ВЫШЕ бэкдропа 999995 */
    background: #ffffff !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 14px 60px 14px !important;
    transform: translateX(105%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    opacity: 1 !important;
    isolation: isolate !important;
  }

  .roadmap-col-right.drawer-open {
    transform: translateX(0) !important;
  }

  /* 🌌 Мобильді бэкдроп (қарайған фон) */
  .roadmap-drawer-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.65) !important;
    z-index: 999995 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.22s ease !important;
    pointer-events: auto !important;
  }

  .roadmap-drawer-backdrop.active {
    display: block !important;
    opacity: 1 !important;
  }

  /* ✖️ Панельдің мобильді шапкасы және жабу батырмасы */
  .rm-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 16px !important;
    margin: -16px -14px 16px -14px !important;
    background: #f8fafc !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    border-radius: 0 !important;
    position: sticky !important;
    top: -16px !important;
    z-index: 30 !important;
  }

  .rm-drawer-title {
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
  }

  .rm-drawer-close {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 20px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .rm-drawer-close:active {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
  }

  /* 📦 Мобильді шторка ішіндегі карточкалар стилі (СЖАТИЕ ЗАПРЕЩЕНО - 100% толық биіктік) */
  .roadmap-col-left > .side-card,
  .roadmap-col-right > .side-card,
  .roadmap-col-left .mini-profile-card,
  .roadmap-col-left .ranks-ladder-card,
  .roadmap-col-right .leaderboard-card {
    flex-shrink: 0 !important; /* ЗАПРЕТИТЬ СЖАТИЕ */
    min-height: -webkit-fit-content !important;
    min-height: fit-content !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 14px 12px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    background: #ffffff !important;
  }

  /* 👤 Мини-профиль шторкада кең, толық әрі әдемі */
  .roadmap-col-left .mini-profile-card {
    border-color: #bfdbfe !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08) !important;
    display: block !important;
    overflow: visible !important;
  }

  .roadmap-col-left .mini-profile-card .mpc-top {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .roadmap-col-left .mini-profile-card .mpc-avatar {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0 !important;
  }

  .roadmap-col-left .mini-profile-card .mpc-user-meta {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .roadmap-col-left .mini-profile-card .mpc-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .roadmap-col-left .mini-profile-card .mpc-stat-box {
    padding: 8px !important;
    border-radius: 12px !important;
  }

  .roadmap-col-left .mini-profile-card .mpc-coach-tip {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .roadmap-col-left .ranks-ladder-card {
    margin-bottom: 40px !important;
  }

  .roadmap-col-right .side-card.leaderboard-card {
    border-color: #fde047 !important;
    margin-bottom: 40px !important;
  }
}

@media (max-width: 640px) {
  .roadmap-container {
    padding: 85px 12px 90px 12px;
  }

  .roadmap-title {
    font-size: 28px;
  }

  .roadmap-subtitle {
    font-size: 13.5px;
  }

  .hero-status-capsule {
    gap: 12px;
    padding: 10px 16px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
  }

  .hsc-icon {
    font-size: 22px;
  }

  .hsc-val {
    font-size: 14.5px;
  }

  .roadmap-col-left .ranks-ladder-list {
    max-height: none !important;
  }

  .subject-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    margin-bottom: 12px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    top: auto !important;
    z-index: 20 !important;
    box-sizing: border-box !important;
  }
  .subject-tabs::-webkit-scrollbar {
    display: none;
  }

  .sub-tab-btn {
    padding: 7px 9px !important;
    font-size: 12px !important;
    border-radius: 13px !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 7px !important;
    min-height: 54px !important;
    box-sizing: border-box !important;
  }
  .sub-tab-btn .st-info {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
  }
  .sub-tab-btn .st-name {
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  .sub-tab-btn .st-badge {
    font-size: 10px !important;
    padding: 1px 6px !important;
  }

  .st-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
  }

  .st-img {
    width: 22px !important;
    height: 22px !important;
  }

  .st-name {
    font-size: 11.5px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  .st-badge {
    font-size: 10px !important;
    padding: 1px 6px !important;
  }

  .space-map-card {
    padding: 12px 10px 18px 10px;
    border-radius: 20px;
  }

  .game-mountain-board {
    border-radius: 16px;
    border-width: 2px;
  }

  .game-circle-node {
    width: clamp(23px, 6.2vw, 28px);
    height: clamp(23px, 6.2vw, 28px);
  }

  .gcn-puck {
    font-size: clamp(10.5px, 2.7vw, 12.5px);
  }

  .map-summit-footer-card {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  /* Төменгі флоатер алынып тасталған */
  .nis-floater-crown-bar {
    display: none !important;
  }

  /* Үлкен финал порталының мобильді бейімделуі */
  .map-victory-portal {
    padding: 22px 14px;
    border-radius: 20px;
    max-width: 100%;
  }

  .mvp-emblem-wrap {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }

  .mvp-emblem-icon {
    width: 68px;
    height: 68px;
    font-size: 34px;
  }

  .mvp-emblem-crown {
    font-size: 24px;
    top: -10px;
  }

  .mvp-title {
    font-size: 18px;
  }

  .mvp-subtitle {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .mvp-progress-box {
    padding: 12px 12px;
  }

  .mvp-rewards-row {
    gap: 6px;
  }

  .mvp-reward-chip {
    padding: 5px 10px;
    font-size: 10px;
  }

  .side-card {
    padding: 16px;
    border-radius: 16px;
  }

  .rli-badge-wrap {
    width: 48px;
    height: 48px;
  }

  .rli-badge {
    width: 48px;
    height: 48px;
  }

  .rank-wrap-7 {
    width: 54px;
    height: 54px;
  }

  .rank-badge-7 {
    width: 44px !important;
    height: 44px !important;
  }

  .rli-img.rank-img-7 {
    width: 70px !important;
    height: auto !important;
  }

  .rank-ladder-item.rank-item-7,
  .rank-ladder-item.rank-tier-7 {
    min-height: 76px;
    padding: 10px 12px;
  }

  /* 🏆 Лидерборд мобильді бейімделуі (Android WebView, Правило 9) */
  .lb-item {
    padding: 9px 10px;
    gap: 10px;
    border-radius: 14px;
  }
  .lb-pos.pos-1 {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .lb-pos.pos-2, .lb-pos.pos-3 {
    width: 27px;
    height: 27px;
    font-size: 13.5px;
  }
  .lb-pos.pos-other {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  .lb-rank-avatar.top-1 {
    width: 36px;
    height: 36px;
  }
  .lb-rank-avatar.top-2, .lb-rank-avatar.top-3 {
    width: 34px;
    height: 34px;
  }
  .lb-rank-avatar.pos-other {
    width: 32px;
    height: 32px;
  }
  .lb-human-avatar {
    width: 30px;
    height: 30px;
  }
  .lb-human-icon {
    font-size: 14px;
  }
  .lb-name {
    font-size: 13.5px;
  }
  .lb-sub {
    font-size: 11px;
  }
  .lb-xp {
    font-size: 11.5px;
    padding: 3px 8px;
  }
}

/* ============================================================
   🚀 ROADMAP FULLSCREEN TEST STARTER LOADER
   Центральный спиннер и полная блокировка экрана при старте теста
   ============================================================ */
.roadmap-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: wait !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.roadmap-loader-overlay .rlo-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rloFadeIn 0.22s ease-out forwards;
}

.roadmap-loader-overlay .rlo-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 26px;
  padding: 34px 28px 28px 28px;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.6);
  animation: rloScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rlo-spinner-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rlo-spinner-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  border-right-color: #06b6d4;
  border-bottom-color: #10b981;
  animation: rloSpin 0.9s cubic-bezier(0.5, 0.15, 0.5, 0.85) infinite;
}

.rlo-spinner-glow {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  animation: rloPulse 1.8s ease-in-out infinite;
}

.rlo-spinner-center {
  position: relative;
  z-index: 3;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 3px 10px rgba(37, 99, 235, 0.22);
}

.rlo-spinner-icon {
  font-size: 26px;
  display: inline-block;
  animation: rloRocketWiggle 1.6s ease-in-out infinite;
}

.rlo-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.rlo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 13.5px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #bfdbfe;
  margin-bottom: 12px;
}

.rlo-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 16px;
}

.rlo-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.rlo-dot {
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  animation: rloDotBounce 1.4s ease-in-out infinite both;
}

.rlo-dot:nth-child(1) { animation-delay: -0.32s; }
.rlo-dot:nth-child(2) { animation-delay: -0.16s; }
.rlo-dot:nth-child(3) { animation-delay: 0s; }

@keyframes rloSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rloPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

@keyframes rloRocketWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-6deg); }
  75% { transform: translateY(2px) rotate(6deg); }
}

@keyframes rloDotBounce {
  0%, 80%, 100% { transform: scale(0.3); opacity: 0.3; }
  40% { transform: scale(1.2); opacity: 1; }
}

@keyframes rloFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rloScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Мобильная адаптация и Android WebView */
@media (max-width: 640px) {
  .roadmap-loader-overlay {
    padding: 12px;
  }
  .roadmap-loader-overlay .rlo-card {
    padding: 24px 18px 20px 18px;
    max-width: 380px;
    margin: 0 auto;
    border-radius: 20px;
  }
  .rlo-title {
    font-size: 19px;
  }
  .rlo-badge {
    font-size: 12.5px;
    padding: 5px 12px;
  }
  .rlo-desc {
    font-size: 13px;
  }
}

/* ============================================================
   🌸 ☀️ 🍂 ❄️ 4 МАУСЫМ АУЫСТЫРҒЫШ (ROADMAP SEASONS BAR)
   100% Android WebView & Mobile Touch-Friendly
   ============================================================ */
.roadmap-seasons-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
  position: -webkit-sticky;
  position: sticky;
  top: var(--rm-sticky-seasons-top, 158px);
  z-index: 60;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 10px;
  border-radius: 18px;
  border: 1.5px solid rgba(191, 219, 254, 0.7);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  scroll-margin-top: var(--rm-sticky-seasons-top, 158px);
}

.season-tab-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  text-align: left;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.season-tab-btn:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.season-tab-btn:active {
  transform: translateY(0);
}

.season-tab-btn .stb-emoji {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
}

.season-tab-btn:hover .stb-emoji {
  transform: scale(1.12);
}

.season-tab-btn.active .stb-emoji {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.season-tab-btn .stb-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.season-tab-btn .stb-title {
  font-family: 'Nunito', 'Inter', sans-serif !important;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.season-tab-btn .stb-sub {
  font-family: 'Nunito', 'Inter', sans-serif !important;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.season-tab-btn.active .stb-title {
  color: #ffffff !important;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.season-tab-btn.active .stb-sub {
  color: rgba(255, 255, 255, 0.92) !important;
}

.season-tab-btn .stb-lock-badge {
  font-size: 13px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* 🔒 ҚҰЛЫПТАУЛЫ МАУСЫМ КҮЙІ */
.season-tab-btn.season-locked {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  opacity: 0.88;
}

.season-tab-btn.season-locked:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* 🌟 БЕЛСЕНДІ МАУСЫМДАР ГРАДИЕНТІ (МАУСЫМ БОЙЫНША АРНАЙЫ ТҮС) */
.season-tab-btn.active {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

/* 1-маусым: Көктем (Изумрудты жасыл) */
.season-tab-btn[data-season="1"].active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
}
.season-tab-btn[data-season="1"].active .stb-title,
.season-tab-btn[data-season="1"].active .stb-sub {
  color: #ffffff;
}

/* 2-маусым: Жаз (Шуақты сары) */
.season-tab-btn[data-season="2"].active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fbbf24;
}
.season-tab-btn[data-season="2"].active .stb-title,
.season-tab-btn[data-season="2"].active .stb-sub {
  color: #ffffff;
}

/* 3-маусым: Күз (Қызғылт-сары күз) */
.season-tab-btn[data-season="3"].active {
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  border-color: #fb923c;
}
.season-tab-btn[data-season="3"].active .stb-title,
.season-tab-btn[data-season="3"].active .stb-sub {
  color: #ffffff;
}

/* 4-маусым: Қыс (Мұзды сапфир көк) */
.season-tab-btn[data-season="4"].active {
  background: linear-gradient(135deg, #0ea5e9 0%, #1d4ed8 100%);
  border-color: #38bdf8;
}
.season-tab-btn[data-season="4"].active .stb-title,
.season-tab-btn[data-season="4"].active .stb-sub {
  color: #ffffff;
}

/* 👀 АЛДЫН АЛА ҚАРАУ БАННЕРІ (ROADMAP PREVIEW BANNER) */
.roadmap-preview-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08);
  position: relative;
  z-index: 2;
  animation: rloFadeIn 0.3s ease;
}

.roadmap-preview-banner .rpb-badge {
  display: inline-block;
  align-self: flex-start;
  background: #d97706;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
}

.roadmap-preview-banner .rpb-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #92400e;
}

.roadmap-preview-banner .rpb-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: #b45309;
  line-height: 1.4;
}

/* 🏔️ МАУСЫМДЫҚ ТАҚЫРЫПТЫҚ ЖИЕКТЕР МЕН АУРА */
.game-mountain-board.season-theme-1 {
  border-color: #34d399;
  box-shadow: inset 0 0 30px rgba(16, 185, 129, 0.15), 0 18px 45px rgba(15, 23, 42, 0.18);
}

.game-mountain-board.season-theme-2 {
  border-color: #60a5fa;
  box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.15), 0 18px 45px rgba(15, 23, 42, 0.18);
}

.game-mountain-board.season-theme-3 {
  border-color: #fbbf24;
  box-shadow: inset 0 0 30px rgba(245, 158, 11, 0.15), 0 18px 45px rgba(15, 23, 42, 0.18);
}

.game-mountain-board.season-theme-4 {
  border-color: #38bdf8;
  box-shadow: inset 0 0 35px rgba(6, 182, 212, 0.2), 0 18px 45px rgba(15, 23, 42, 0.18);
}

/* Превью режиміндегі тақтаның жеңіл басылуы */
.game-mountain-board.preview-mode-board {
  filter: contrast(0.96) brightness(0.98);
}

/* Құлыптаулы превью нүктелерінің стилі */
.game-circle-node.season-preview-locked .gcn-puck {
  background: rgba(241, 245, 249, 0.88);
  border: 2px dashed #94a3b8;
  color: #64748b;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.game-circle-node.season-preview-locked .gcn-num {
  color: #64748b;
  font-weight: 800;
}

/* 🖥️ ДЕСКТОП ЖӘНЕ ПЛАНШЕТТЕ (≤ 1360px): ОРТАЛЫҚ БАҒАН ТАР БОЛҒАНДЫҚТАН 2 ЖОЛДЫ СЕТКА (repeat(2, minmax(0, 1fr))) */
@media (max-width: 1360px) {
  .roadmap-seasons-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 📱 МОБИЛЬДІ АДАПТАЦИЯ (≤ 860px & ≤ 480px) — ЕКІ ЖОЛДЫ ТАБТАР, СКРОЛЛСЫЗ, ЗАКРЕПЛЕННЫЙ В ЭКРАНЕ */
@media (max-width: 860px) {
  .roadmap-seasons-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: hidden !important;
    top: var(--rm-sticky-seasons-top, 126px) !important;
    padding: 7px 8px !important;
    border-radius: 16px !important;
    scroll-margin-top: var(--rm-sticky-seasons-top, 126px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .season-tab-btn {
    padding: 8px 10px !important;
    min-height: 48px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    flex: none !important;
  }
  .season-tab-btn .stb-emoji {
    font-size: 19px !important;
    width: 28px !important;
    height: 28px !important;
  }
  .season-tab-btn .stb-title {
    font-size: 12px !important;
  }
  .season-tab-btn .stb-sub {
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .roadmap-seasons-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    overflow: hidden !important;
    top: var(--rm-sticky-seasons-top, 118px) !important;
    padding: 6px 6px !important;
    border-radius: 14px !important;
    scroll-margin-top: var(--rm-sticky-seasons-top, 118px) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .season-tab-btn {
    padding: 6px 6px !important;
    gap: 6px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .season-tab-btn .stb-emoji {
    font-size: 15px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 7px !important;
    flex-shrink: 0 !important;
  }
  .season-tab-btn .stb-title {
    font-size: 11px !important;
    letter-spacing: -0.4px !important;
    line-height: 1.2 !important;
  }
  .season-tab-btn .stb-sub {
    font-size: 9px !important;
    letter-spacing: -0.3px !important;
    line-height: 1.15 !important;
  }
  .season-tab-btn .stb-lock-badge {
    font-size: 11px !important;
    flex-shrink: 0 !important;
  }
}

/* ============================================================
   🌸 ☀️ 🍂 ❄️ МАУСЫМДЫҚ АТМОСФЕРАЛЫҚ ЭФФЕКТІЛЕР (НИШ МАТЕМАТИКА)
   GPU-акселерация (translate3d), pointer-events: none, Android WebView 60fps
   ============================================================ */
.roadmap-season-bg-fx {
  position: absolute;
  inset: 0;
  border-radius: 21px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.roadmap-season-fx {
  position: absolute;
  inset: 0;
  border-radius: 21px;
  overflow: hidden;
  pointer-events: none;
  z-index: 6; /* Бұлттардан (5) жоғары, деңгей түймелерінен (10) төмен */
}

/* --- 1. 🌸 КӨКТЕМ (Весна / Spring): Жеңіл таңғы сәуле + Сакура күлтелері --- */
.fx-bg-spring {
  background: radial-gradient(circle at 50% 8%, rgba(251, 207, 232, 0.10) 0%, transparent 65%);
}

.fx-fall-item {
  position: absolute;
  top: -36px;
  left: var(--fx-x, 50%);
  width: var(--fx-size, 16px);
  height: var(--fx-size, 16px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.fx-petal {
  filter: drop-shadow(0 2px 4px rgba(190, 24, 93, 0.18));
  animation: fxPetalFall var(--fx-dur, 13s) linear var(--fx-delay, 0s) infinite;
}

@keyframes fxPetalFall {
  0% {
    transform: translate3d(0, 0, 0) rotate3d(1, 0.5, 0.2, 0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.92;
  }
  30% {
    transform: translate3d(var(--fx-sway, 40px), calc(var(--board-h, 1400px) * 0.28), 0) rotate3d(1, 1, 0.3, 120deg);
  }
  60% {
    transform: translate3d(calc(var(--fx-sway, 40px) * -0.55), calc(var(--board-h, 1400px) * 0.60), 0) rotate3d(0.6, 1, 0.4, 240deg);
    opacity: 0.88;
  }
  92% {
    opacity: 0.8;
  }
  100% {
    transform: translate3d(calc(var(--fx-sway, 40px) * 0.8), calc(var(--board-h, 1400px) + 50px), 0) rotate3d(1, 0.8, 0.2, 380deg);
    opacity: 0;
  }
}

.fx-mote-spring {
  position: absolute;
  left: var(--fx-x, 50%);
  top: var(--fx-y, 50%);
  width: var(--fx-size, 6px);
  height: var(--fx-size, 6px);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #bbf7d0 55%, transparent 100%);
  will-change: transform, opacity;
  animation: fxSpringMote var(--fx-dur, 7.5s) ease-in-out var(--fx-delay, 0s) infinite;
}

@keyframes fxSpringMote {
  0% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
  25% { opacity: 0.85; }
  50% { transform: translate3d(var(--fx-sway, 16px), -45px, 0) scale(1.15); opacity: 1; }
  80% { opacity: 0.5; }
  100% { transform: translate3d(calc(var(--fx-sway, 16px) * -0.5), -90px, 0) scale(0.6); opacity: 0; }
}

/* --- 2. ☀️ ЖАЗ (Лето / Summer): Күн сәулелері (Sunbeams) + Алтын жарқырауықтар (Fireflies) --- */
.fx-bg-summer {
  background: radial-gradient(circle at 82% 8%, rgba(254, 240, 138, 0.14) 0%, transparent 65%);
}

.fx-sun-halo {
  position: absolute;
  top: -8%;
  right: -6%;
  width: 50%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 249, 195, 0.28) 0%, rgba(253, 224, 71, 0.08) 42%, transparent 72%);
  will-change: transform, opacity;
  animation: fxSunPulse 6s ease-in-out infinite alternate;
}

@keyframes fxSunPulse {
  0% { transform: translate3d(0, 0, 0) scale(0.94); opacity: 0.58; }
  100% { transform: translate3d(0, 0, 0) scale(1.08); opacity: 0.85; }
}

.fx-sunbeams {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 85%;
  mix-blend-mode: screen;
  opacity: 0.36;
  pointer-events: none;
}

.fx-sunbeam {
  position: absolute;
  top: 0;
  width: 18%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(254, 240, 138, 0.30) 0%,
    rgba(253, 224, 71, 0.09) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform-origin: top center;
  will-change: transform, opacity;
}

.fx-sunbeam.beam-1 {
  left: 36%;
  transform: translate3d(0, 0, 0) rotate(-26deg);
  animation: fxBeamSway1 11s ease-in-out infinite alternate;
}

.fx-sunbeam.beam-2 {
  left: 56%;
  width: 22%;
  transform: translate3d(0, 0, 0) rotate(-18deg);
  animation: fxBeamSway2 14s ease-in-out infinite alternate;
}

.fx-sunbeam.beam-3 {
  left: 74%;
  width: 14%;
  transform: translate3d(0, 0, 0) rotate(-32deg);
  animation: fxBeamSway1 9s ease-in-out -3s infinite alternate;
}

@keyframes fxBeamSway1 {
  0% { transform: translate3d(0, 0, 0) rotate(-28deg) scaleX(0.92); opacity: 0.45; }
  100% { transform: translate3d(0, 0, 0) rotate(-20deg) scaleX(1.15); opacity: 0.85; }
}

@keyframes fxBeamSway2 {
  0% { transform: translate3d(0, 0, 0) rotate(-22deg) scaleX(1.08); opacity: 0.78; }
  100% { transform: translate3d(0, 0, 0) rotate(-14deg) scaleX(0.90); opacity: 0.48; }
}

.fx-firefly {
  position: absolute;
  left: var(--fx-x, 50%);
  top: var(--fx-y, 50%);
  width: calc(var(--fx-size, 6px) * 2.4);
  height: calc(var(--fx-size, 6px) * 2.4);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fef08a 30%, rgba(250, 204, 21, 0.35) 60%, transparent 100%);
  will-change: transform, opacity;
  animation: fxFireflyFloat var(--fx-dur, 10s) ease-in-out var(--fx-delay, 0s) infinite;
}

@keyframes fxFireflyFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.65);
    opacity: 0;
  }
  20% {
    opacity: 0.92;
  }
  50% {
    transform: translate3d(var(--fx-sway, 25px), -65px, 0) scale(1.15);
    opacity: 1;
  }
  75% {
    opacity: 0.45;
  }
  100% {
    transform: translate3d(calc(var(--fx-sway, 25px) * -0.7), -135px, 0) scale(0.75);
    opacity: 0;
  }
}

/* --- 3. 🍂 КҮЗ (Осень / Autumn): Жеңіл янтарь шуағы + Алтын жапырақтар --- */
.fx-bg-autumn {
  background: radial-gradient(circle at 50% 10%, rgba(251, 191, 36, 0.10) 0%, transparent 65%);
}

.fx-leaf {
  filter: drop-shadow(0 3px 5px rgba(124, 45, 18, 0.22));
  animation: fxLeafFall var(--fx-dur, 14s) ease-in-out var(--fx-delay, 0s) infinite;
}

@keyframes fxLeafFall {
  0% {
    transform: translate3d(0, 0, 0) rotate3d(1, 0.6, 0.3, 0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.94;
  }
  25% {
    transform: translate3d(var(--fx-sway, 50px), calc(var(--board-h, 1400px) * 0.24), 0) rotate3d(0.7, 1, 0.4, 95deg);
  }
  50% {
    transform: translate3d(calc(var(--fx-sway, 50px) * -0.65), calc(var(--board-h, 1400px) * 0.50), 0) rotate3d(1, 0.4, 0.8, 210deg);
    opacity: 0.9;
  }
  75% {
    transform: translate3d(calc(var(--fx-sway, 50px) * 0.75), calc(var(--board-h, 1400px) * 0.76), 0) rotate3d(0.5, 1, 0.5, 310deg);
  }
  92% {
    opacity: 0.82;
  }
  100% {
    transform: translate3d(calc(var(--fx-sway, 50px) * -0.4), calc(var(--board-h, 1400px) + 55px), 0) rotate3d(1, 0.8, 0.2, 420deg);
    opacity: 0;
  }
}

/* --- 4. ❄️ ҚЫС (Зима / Winter): Аязды сияние + Параллакс қар + Гауһар жұлдыздар --- */
.fx-bg-winter {
  background: radial-gradient(circle at 50% 8%, rgba(186, 230, 253, 0.10) 0%, transparent 68%);
  box-shadow: inset 0 0 32px rgba(224, 242, 254, 0.24);
}

.fx-aurora {
  position: absolute;
  top: -4%;
  left: -15%;
  width: 130%;
  height: 28%;
  background: radial-gradient(ellipse at 50% 35%, rgba(103, 232, 249, 0.16) 0%, rgba(129, 140, 248, 0.10) 45%, transparent 75%);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: fxAuroraDrift 10s ease-in-out infinite alternate;
}

@keyframes fxAuroraDrift {
  0% { transform: translate3d(-4%, 0, 0) scaleX(0.95); opacity: 0.55; }
  100% { transform: translate3d(4%, 6px, 0) scaleX(1.06); opacity: 0.92; }
}

.fx-snowflake {
  filter: drop-shadow(0 0 4px rgba(186, 230, 253, 0.6));
  animation: fxSnowFall var(--fx-dur, 12s) linear var(--fx-delay, 0s) infinite;
}

.fx-snow-bokeh {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(224, 242, 254, 0.45) 55%, transparent 100%);
  animation: fxSnowFall var(--fx-dur, 9.5s) linear var(--fx-delay, 0s) infinite;
}

.fx-snow-bokeh.bokeh-far {
  opacity: 0.6;
}

.fx-snow-bokeh.bokeh-near {
  opacity: 0.85;
}

@keyframes fxSnowFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.92;
  }
  35% {
    transform: translate3d(var(--fx-sway, 30px), calc(var(--board-h, 1400px) * 0.34), 0) rotate(120deg);
  }
  70% {
    transform: translate3d(calc(var(--fx-sway, 30px) * -0.5), calc(var(--board-h, 1400px) * 0.68), 0) rotate(240deg);
    opacity: 0.86;
  }
  92% {
    opacity: 0.82;
  }
  100% {
    transform: translate3d(calc(var(--fx-sway, 30px) * 0.4), calc(var(--board-h, 1400px) + 50px), 0) rotate(360deg);
    opacity: 0;
  }
}

.fx-frost-star {
  position: absolute;
  left: var(--fx-x, 50%);
  top: var(--fx-y, 20%);
  width: var(--fx-size, 15px);
  height: var(--fx-size, 15px);
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(186, 230, 253, 0.85));
  will-change: transform, opacity;
  animation: fxFrostTwinkle var(--fx-dur, 3.2s) ease-in-out var(--fx-delay, 0s) infinite;
}

@keyframes fxFrostTwinkle {
  0%, 100% { transform: translate(-50%, -50%) scale(0.45) rotate(0deg); opacity: 0.2; }
  50% { transform: translate(-50%, -50%) scale(1.15) rotate(45deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-fall-item,
  .fx-mote-spring,
  .fx-firefly,
  .fx-sunbeam,
  .fx-sun-halo,
  .fx-aurora,
  .fx-frost-star {
    animation: none !important;
  }
}

/* ============================================================
   💬 SWEETALERT2 (SWAL) — МОБИЛКА ЖӘНЕ ПК ҮШІН ТОЛЫҚ АДАПТАЦИЯ (Rule 9)
   ============================================================ */
.roadmap-page ~ .swal2-container,
body.roadmap-page .swal2-container,
.swal2-container {
  width: 100vw !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.swal2-container .swal2-popup {
  max-width: calc(100vw - 24px) !important;
  box-sizing: border-box !important;
  border-radius: 22px !important;
  margin: 0 auto !important;
}

@media (max-width: 640px) {
  .swal2-container {
    padding: 10px !important;
  }
  .swal2-container .swal2-popup {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    padding: 18px 14px 20px 14px !important;
    border-radius: 18px !important;
  }
  .swal2-container .swal2-title {
    font-size: clamp(17px, 4.8vw, 21px) !important;
    line-height: 1.3 !important;
    padding: 6px 4px 0 4px !important;
    word-break: break-word !important;
  }
  .swal2-container .swal2-html-container {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    margin: 10px 0 4px 0 !important;
    padding: 0 4px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    word-break: break-word !important;
  }
  .swal2-container .swal2-actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 14px !important;
    width: 100% !important;
  }
  .swal2-container .swal2-actions button {
    min-height: 44px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
  }
}



