/* ═══ Nova League Badges — Mobile Legends tarzı premium rozetler ═══ */

.nova-lig{
  --lg-scale: 1;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  vertical-align: bottom;
  width: 118px;
  min-height: 78px;
  margin: 0 auto;
  padding-bottom: 2px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.42));
  user-select: none;
  -webkit-user-select: none;
  animation: nova-lig-enter .45s cubic-bezier(.2,.9,.25,1) both;
}

@keyframes nova-lig-enter{
  0%{ opacity:0; transform: translateY(8px) scale(.88); filter: blur(3px); }
  100%{ opacity:1; transform: translateY(0) scale(1); filter: none; }
}

.nova-lig__halo{
  position: absolute;
  top: 2px;
  left: 50%;
  width: 92px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.nova-lig__frame{
  position: relative;
  width: 64px;
  height: 64px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nova-lig__svg,
.nova-lig__pic,
.nova-lig__img{
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  mix-blend-mode: normal;
}

.nova-lig__frame{
  background: transparent !important;
  box-shadow: none !important;
}

.nova-lig__fx{
  position: absolute;
  inset: -6% -8% -2%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}

.nova-lig__shine{
  position: absolute;
  inset: 8% 12% 38% 18%;
  border-radius: 50%;
  background: linear-gradient(120deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 65%);
  pointer-events: none;
  z-index: 3;
  animation: nova-lig-shine 3.2s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes nova-lig-shine{
  0%, 100%{ opacity:.35; transform: translateX(0); }
  50%{ opacity:.75; transform: translateX(4px); }
}

.nova-lig__ribbon{
  position: relative;
  z-index: 4;
  margin-top: -6px;
  min-width: 86px;
  padding: 4px 10px 5px;
  border-radius: 999px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 3px 10px rgba(0,0,0,.35);
}

.nova-lig__name{
  display: block;
  font-family: 'Baloo 2', 'Comfortaa', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(0,0,0,.75),
    0 0 10px rgba(0,0,0,.25);
}

/* Lig 1 — Çırak (ahşap, sade) */
.nova-lig--1 .nova-lig__halo{
  background: radial-gradient(circle, rgba(180,83,9,.28) 0%, rgba(245,158,11,.05) 72%);
}
.nova-lig--1 .nova-lig__ribbon{
  background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
  border: 1px solid #fde68a;
}
.nova-lig--1 .nova-lig__name{ color: #fff7ed; }
.nova-lig--1 .nova-lig__shine{ animation: none; opacity:.28; }

/* Lig 2 — Gezgin (gümüş-teal) */
.nova-lig--2 .nova-lig__halo{
  background: radial-gradient(circle, rgba(56,189,248,.32) 0%, rgba(14,165,233,.07) 72%);
}
.nova-lig--2 .nova-lig__ribbon{
  background: linear-gradient(180deg, #64748b 0%, #334155 100%);
  border: 1px solid #e0f2fe;
}
.nova-lig--2 .nova-lig__name{ color: #f0f9ff; }
.nova-lig--2 .nova-lig__shine{ opacity:.4; }

/* Lig 3 — Kaşif (hafif altın parıltı) */
.nova-lig--3 .nova-lig__halo{
  background: radial-gradient(circle, rgba(74,222,128,.28) 0%, rgba(251,191,36,.16) 55%, transparent 75%);
}
.nova-lig--3 .nova-lig__fx{
  opacity: .55;
  background: radial-gradient(circle at 50% 42%, rgba(253,230,138,.35), transparent 62%);
  animation: nova-lig-soft-glow 3.4s ease-in-out infinite;
}
.nova-lig--3 .nova-lig__ribbon{
  background: linear-gradient(180deg, #4ade80 0%, #15803d 100%);
  border: 1px solid #d9f99d;
  box-shadow: 0 0 14px rgba(74,222,128,.28), inset 0 1px 0 rgba(255,255,255,.28);
}
.nova-lig--3 .nova-lig__name{
  color: #f7fee7;
  text-shadow: 0 0 8px rgba(21,128,61,.4);
}

/* Lig 4 — Şampiyon (kaliteli parıltı) */
.nova-lig--4 .nova-lig__halo{
  background: radial-gradient(circle, rgba(251,191,36,.5) 0%, rgba(245,158,11,.14) 68%);
}
.nova-lig--4 .nova-lig__fx{
  opacity: .85;
  background:
    radial-gradient(circle at 50% 40%, rgba(254,243,199,.45), transparent 58%),
    conic-gradient(from 40deg, transparent 0 70%, rgba(255,255,255,.18) 78%, transparent 88%);
  animation: nova-lig-champ-glow 2.8s ease-in-out infinite;
  filter: blur(0.2px);
}
.nova-lig--4 .nova-lig__ribbon{
  background: linear-gradient(180deg, #fbbf24 0%, #b45309 100%);
  border: 1px solid #fef3c7;
  box-shadow: 0 0 18px rgba(245,158,11,.42);
}
.nova-lig--4 .nova-lig__name{
  color: #fffbeb;
  text-shadow: 0 0 10px rgba(180,83,9,.5);
}
.nova-lig--4 .nova-lig__frame{
  animation: nova-lig-float 3.2s ease-in-out infinite;
}

/* Lig 5 — Efsane (mor + alev + buz — CSS ile hafif) */
.nova-lig--5 .nova-lig__halo{
  background:
    radial-gradient(circle at 50% 40%, rgba(192,38,211,.42) 0%, rgba(56,189,248,.16) 48%, rgba(249,115,22,.12) 72%, transparent 82%);
  animation: nova-lig-mythic-pulse 2.8s ease-in-out infinite;
}
.nova-lig--5 .nova-lig__fx{
  opacity: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(232,121,249,.4), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(56,189,248,.28), transparent 42%),
    radial-gradient(circle at 70% 75%, rgba(249,115,22,.3), transparent 40%);
  animation: nova-lig-mythic-fx 3.6s ease-in-out infinite;
  mix-blend-mode: screen;
}
.nova-lig--5 .nova-lig__ribbon{
  background: linear-gradient(180deg, #e879f9 0%, #7e22ce 55%, #581c87 100%);
  border: 1px solid #f5d0fe;
  box-shadow: 0 0 22px rgba(192,38,211,.5);
}
.nova-lig--5 .nova-lig__name{
  color: #fdf4ff;
  text-shadow: 0 0 14px rgba(192,38,211,.65);
}
.nova-lig--5 .nova-lig__frame{
  animation: nova-lig-float 2.8s ease-in-out infinite;
}

@keyframes nova-lig-soft-glow{
  0%, 100%{ opacity:.4; transform: scale(1); }
  50%{ opacity:.7; transform: scale(1.03); }
}
@keyframes nova-lig-champ-glow{
  0%, 100%{ opacity:.65; transform: rotate(0deg) scale(1); }
  50%{ opacity:1; transform: rotate(8deg) scale(1.04); }
}
@keyframes nova-lig-mythic-pulse{
  0%, 100%{ opacity:.55; transform: translateX(-50%) scale(1); }
  50%{ opacity:.92; transform: translateX(-50%) scale(1.06); }
}
@keyframes nova-lig-mythic-fx{
  0%, 100%{ opacity:.75; filter: hue-rotate(0deg); }
  50%{ opacity:1; filter: hue-rotate(12deg); }
}
@keyframes nova-lig-float{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-2px); }
}

/* Performans: tercih edilen azaltılmış hareket */
@media (prefers-reduced-motion: reduce){
  .nova-lig__shine,
  .nova-lig__fx,
  .nova-lig__halo,
  .nova-lig__frame{
    animation: none !important;
  }
}

/* rank-label kapsayıcı — eski pill stilini kapat */
.rank-label,
#student-rank,
#duel-inviter-rank,
#duel-invited-rank,
#duel-player-inviter-rank-ingame,
#duel-player-invited-rank-ingame,
#nova-pA-rank,
#nova-pB-rank{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 0 !important;
  animation: none !important;
  text-transform: none !important;
}

/* Sıralama tablosu */
.player-name-column .nova-lig{
  margin-top: 2px;
  transform: scale(.88);
  transform-origin: center top;
}

.ranking-table .player-name-column .nova-lig{
  min-height: 68px;
  width: 104px;
}

.player-name-column .nova-lig:hover{
  transform: scale(.95);
}

/* Ana ekran — BİLGİLERİN kartı lig rozeti (compact; hub CSS ölçekler) */
#student-rank{
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  line-height: 0;
}

#student-rank .nova-lig{
  transform: none;
  transform-origin: center center;
}

/* Eski yalnız-lig sekmesi kalıntısı (yoksa zararsız) */
#main-screen .nova-main-tab-lig-body #student-rank .nova-lig{
  transform: scale(0.55);
  transform-origin: center top;
}

/* Ana ekran: isim ile lig arasını sıkıştır */
.student-info{
  gap: 0;
}

#main-screen #student-name{
  margin-bottom: 0 !important;
}

/* Düello intro / oyun içi */
#duel-intro-overlay .player-meta > .rank-label,
#duel-player-inviter-rank-ingame,
#duel-player-invited-rank-ingame{
  display: flex;
  justify-content: center;
}

.nova-lig--compact{
  width: 64px;
  min-height: 40px;
}

.nova-lig--compact .nova-lig__frame{
  width: 34px;
  height: 34px;
}

.nova-lig--compact .nova-lig__halo{
  width: 46px;
  height: 46px;
}

.nova-lig--compact .nova-lig__ribbon{
  min-width: 52px;
  padding: 2px 6px 3px;
}

.nova-lig--compact .nova-lig__name{
  font-size: 7px;
  letter-spacing: .10em;
}

/* Eski yıldız alanı */
.star-frame,
.star-badges,
#student-stars,
#duel-inviter-stars,
#duel-invited-stars,
#duel-player-inviter-stars-ingame,
#duel-player-invited-stars-ingame,
#nova-pA-stars,
#nova-pB-stars{
  display: none !important;
}

@media (max-width: 520px){
  .nova-lig{
    width: 104px;
    min-height: 70px;
  }
  .nova-lig__name{
    font-size: 10px;
  }
  .ranking-table .player-name-column .nova-lig{
    transform: scale(.82);
  }
}

/* Sezon sıralaması: rozet boyutunu küçült (daha rozet gibi) */
.ranking-table .player-name-column .nova-lig{
  width: 92px;
  min-height: 58px;
  transform: scale(.78);
}
.ranking-table .player-name-column .nova-lig__frame{
  width: 48px;
  height: 48px;
}
.ranking-table .player-name-column .nova-lig__halo{
  width: 66px;
  height: 66px;
}
.ranking-table .player-name-column .nova-lig__ribbon{
  min-width: 68px;
  padding: 3px 8px 4px;
}
.ranking-table .player-name-column .nova-lig__name{
  font-size: 9px;
  letter-spacing: .12em;
}

/* Efsane ekstra premium glow */
.nova-lig--5 .nova-lig__shine{
  background: linear-gradient(120deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,0) 60%);
}
.nova-lig--5{
  filter: drop-shadow(0 8px 22px rgba(192,38,211,.42)) drop-shadow(0 0 22px rgba(236,72,153,.25));
}

/* Bilgilerim lig satırı tıklanabilir */
.nova-bilgi-card__league-row{
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nova-bilgi-card__league-row:hover{
  border-color: rgba(253, 224, 71, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(253, 224, 71, 0.28),
    0 0 0 1px rgba(146, 64, 14, 0.4),
    0 0 22px rgba(251, 191, 36, 0.28),
    0 10px 22px rgba(0, 0, 0, 0.32);
}
.nova-bilgi-card__league-row:active{
  transform: scale(0.985);
}

/* Büyük lig rozeti vitrini */
.nova-lig-showcase{
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.nova-lig-showcase.is-open{
  display: flex;
}
.nova-lig-showcase__backdrop{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(251, 191, 36, 0.16), transparent 62%),
    rgba(8, 12, 22, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nova-lig-showcase__panel{
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: min(92vh, 640px);
  padding: clamp(22px, 4vh, 34px) clamp(18px, 4vw, 28px) clamp(20px, 3.5vh, 30px);
  border-radius: 28px;
  text-align: center;
  color: #f8fafc;
  background:
    linear-gradient(165deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(253, 230, 138, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(251, 191, 36, 0.12);
  animation: nova-lig-showcase-in .42s cubic-bezier(.22,1,.36,1) both;
  overflow: hidden;
}
@keyframes nova-lig-showcase-in{
  from{ opacity:0; transform: translateY(16px) scale(.94); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
.nova-lig-showcase__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.nova-lig-showcase__close:hover{
  background: rgba(255,255,255,.16);
}
.nova-lig-showcase__glow{
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(78vw, 340px);
  height: min(78vw, 340px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,191,36,.35), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
}
.nova-lig-showcase__badge{
  position: relative;
  z-index: 1;
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  max-height: 42vh;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nova-lig-showcase__emblem,
.nova-lig-showcase__emblem .nova-lig__pic,
.nova-lig-showcase__emblem .nova-lig__img,
.nova-lig-showcase__emblem img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent !important;
}
.nova-lig-showcase__emblem{
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.45));
}
.nova-lig-showcase__pill{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: 'Baloo 2', 'Comfortaa', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff7ed;
  background: linear-gradient(180deg, #4ade80 0%, #15803d 100%);
  border: 1px solid #d9f99d;
  box-shadow: 0 0 16px rgba(74,222,128,.28);
}
.nova-lig-showcase__title{
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-family: 'Comfortaa', 'Baloo 2', system-ui, sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: .02em;
  color: #fde68a;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.nova-lig-showcase__sub{
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: .92rem;
  line-height: 1.4;
  color: #cbd5e1;
}
.nova-lig-showcase__pill,
.nova-lig-showcase__title,
.nova-lig-showcase__sub{
  display: none !important;
}
.nova-lig-showcase__cups{
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff8e7;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(253, 230, 138, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.nova-lig-showcase--1 .nova-lig-showcase__cups{
  border-color: #fde68a;
  background: linear-gradient(180deg, rgba(217,119,6,.55), rgba(146,64,14,.65));
}
.nova-lig-showcase--2 .nova-lig-showcase__cups{
  border-color: #e0f2fe;
  background: linear-gradient(180deg, rgba(100,116,139,.6), rgba(51,65,85,.7));
}
.nova-lig-showcase--3 .nova-lig-showcase__cups{
  border-color: #d9f99d;
  background: linear-gradient(180deg, rgba(74,222,128,.45), rgba(21,128,61,.65));
}
.nova-lig-showcase--4 .nova-lig-showcase__cups{
  border-color: #fef3c7;
  background: linear-gradient(180deg, rgba(251,191,36,.5), rgba(180,83,9,.65));
}
.nova-lig-showcase--5 .nova-lig-showcase__cups{
  border-color: #f5d0fe;
  background: linear-gradient(180deg, rgba(232,121,249,.45), rgba(126,34,206,.65));
}
.nova-lig-showcase--1 .nova-lig-showcase__pill{
  background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
  border-color: #fde68a;
  box-shadow: 0 0 14px rgba(217,119,6,.28);
}
.nova-lig-showcase--2 .nova-lig-showcase__pill{
  background: linear-gradient(180deg, #64748b 0%, #334155 100%);
  border-color: #e0f2fe;
  box-shadow: 0 0 14px rgba(56,189,248,.25);
}
.nova-lig-showcase--3 .nova-lig-showcase__pill{
  background: linear-gradient(180deg, #4ade80 0%, #15803d 100%);
  border-color: #d9f99d;
}
.nova-lig-showcase--4 .nova-lig-showcase__pill{
  background: linear-gradient(180deg, #fbbf24 0%, #b45309 100%);
  border-color: #fef3c7;
  box-shadow: 0 0 18px rgba(245,158,11,.35);
}
.nova-lig-showcase--5 .nova-lig-showcase__pill{
  background: linear-gradient(180deg, #e879f9 0%, #7e22ce 55%, #581c87 100%);
  border-color: #f5d0fe;
  box-shadow: 0 0 20px rgba(192,38,211,.4);
}
.nova-lig-showcase--5 .nova-lig-showcase__glow{
  background: radial-gradient(circle, rgba(192,38,211,.4), rgba(56,189,248,.18), transparent 70%);
}
body.nova-lig-showcase-open{
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce){
  .nova-lig-showcase__panel{ animation: none; }
}

