/* Ana ekran v3 — sekmeli merkez (Avatar / Kahraman / Lig) + sol yumurta/bonus */

#main-screen .main-profile-hero.nova-main-hub {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "heroLeft heroMid heroRight";
  column-gap: clamp(3px, 0.9vw, 6px);
  align-items: stretch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: clamp(10px, 2.4vw, 16px) !important;
  padding-bottom: clamp(6px, 1.6vw, 12px) !important;
  padding-left: max(4px, env(safe-area-inset-left, 0px));
  padding-right: max(4px, env(safe-area-inset-right, 0px));
}

#main-screen .main-profile-hero.nova-main-hub + .buttons,
#main-screen .main-profile-hero.nova-main-hub + .nova-main-lobby.buttons {
  margin-top: clamp(18px, 4.5vw, 30px) !important;
  padding-top: clamp(6px, 1.5vw, 10px) !important;
}

/* — Sol kolon kaldırıldı (yumurta üst dock’ta) — kalıntı flash yok — */
#main-screen .nova-main-left-hub {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#main-screen .nova-main-left-egg-slot {
  width: 100%;
  flex-shrink: 0;
}

#main-screen .nova-main-left-hub .nova-dragon-egg-wrap {
  width: 100%;
  margin: 0;
}

#main-screen .nova-main-left-hub .nova-bonus-drawer {
  width: 100%;
  margin-top: 0;
}

#main-screen .nova-main-right-rail {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* — Merkez sahne — */
#main-screen .nova-main-stage {
  grid-area: heroMid;
  justify-self: stretch;
  width: 100%;
  max-width: min(100%, 380px);
  min-width: 0;
}

#main-screen .nova-main-stage__frame {
  position: relative;
  width: 100%;
  padding: clamp(14px, 3.2vw, 20px);
  border-radius: clamp(20px, 4.5vw, 28px);
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.92) 0%, rgba(8, 14, 32, 0.96) 100%);
  border: 1px solid rgba(110, 168, 255, 0.28);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 48px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

#main-screen .nova-main-stage__frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.85), rgba(167, 139, 250, 0.75), transparent);
  opacity: 0.9;
  pointer-events: none;
}

/* Ok ile gezinme */
#main-screen .nova-main-carousel-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(12px, 2.8vw, 16px);
  padding: 6px 8px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#main-screen .nova-main-carousel-nav__arrow {
  appearance: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(8, 14, 32, 0.98));
  color: #e2e8f0;
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

#main-screen .nova-main-carousel-nav__arrow:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.18);
}

#main-screen .nova-main-carousel-nav__arrow:active:not(:disabled) {
  transform: scale(0.96);
}

#main-screen .nova-main-carousel-nav__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

#main-screen .nova-main-carousel-nav__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

#main-screen .nova-main-carousel-nav__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#main-screen .nova-main-carousel-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  transition: width 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

#main-screen .nova-main-carousel-nav__dot.is-active {
  width: 18px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

#main-screen .nova-main-carousel-nav__title {
  font-family: 'Baloo 2', 'Comfortaa', system-ui, sans-serif;
  font-size: clamp(11px, 2.6vw, 13px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f8fafc;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
  white-space: nowrap;
}

/* Paneller */
#main-screen .nova-main-tab-panels {
  position: relative;
  min-height: clamp(200px, 42vw, 280px);
  width: 100%;
}

#main-screen .nova-main-tab-panel {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  animation: none;
}

#main-screen .nova-main-tab-panel.is-active {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  animation: novaMainTabIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#main-screen .nova-main-tab-panel[hidden] {
  display: none !important;
}

@keyframes novaMainTabIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Avatar paneli */
#main-screen .nova-main-tab-avatar-body {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(6px, 1.6vw, 10px) !important;
  padding: clamp(4px, 1.2vw, 8px) 0 !important;
}

#main-screen .nova-main-tab-avatar-body .student-photo {
  width: min(100%, 118px) !important;
  height: auto !important;
  max-height: min(34vw, 148px) !important;
  aspect-ratio: 4 / 5;
  margin: 0 auto !important;
  object-fit: cover;
}

#main-screen .nova-main-tab-avatar-body .student-name-stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Kahraman paneli — orta boy, ortalı */
#main-screen .nova-main-tab-hero-body {
  width: 100%;
  padding: clamp(4px, 1vw, 8px) 0;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase.is-visible,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase:has(.nova-main-hero-zone.is-visible) {
  width: min(100%, 340px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase__title {
  font-size: clamp(9px, 2.2vw, 11px);
  margin-bottom: 8px;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase__frame {
  min-height: clamp(200px, 44vw, 280px);
  display: flex;
  flex-direction: column;
  /* stretch: abspos hero body has no in-flow width — center collapses it to 0 */
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase__head {
  width: 100%;
  align-self: stretch;
  flex: 0 0 auto;
  z-index: 4;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase__body {
  position: relative !important;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: clamp(156px, 38vw, 220px) !important;
  display: block !important;
  overflow: hidden !important;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone.is-visible {
  position: absolute !important;
  inset: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-float,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone.is-visible .nova-main-hero-float {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--star .nova-main-hero-slot,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--tas .nova-main-hero-slot,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--golge .nova-main-hero-slot,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--baykus .nova-main-hero-slot,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--firtina .nova-main-hero-slot,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--buz .nova-main-hero-slot,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--alev .nova-main-hero-slot,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--gece .nova-main-hero-slot {
  position: absolute !important;
  inset: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
  place-items: center !important;
}

/* Kahraman sprite: orijinalin ~%75’i, tam orta */
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-main-hero-host,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-gece-sprite,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-alev-sprite,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-buz-sprite,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-yildiz-sprite,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-tas-sprite,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-golge-sprite,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-baykus-sprite,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-firtina-sprite,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot canvas,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-svg,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-buz-sprite__canvas,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-alev-sprite__canvas,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-gece-sprite__canvas,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-firtina-sprite__canvas,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-yildiz-sprite__canvas,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-tas-sprite__canvas,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-golge-sprite__canvas,
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-baykus-sprite__canvas {
  box-sizing: border-box !important;
  width: min(92%, 318px) !important;
  height: min(92%, 318px) !important;
  max-width: min(92%, 100%) !important;
  max-height: min(92%, 100%) !important;
  min-width: min(58%, 168px) !important;
  min-height: min(58%, 168px) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
  align-self: center !important;
}

#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot [class*='-sprite--main'],
#main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot [class*='-sprite'] {
  align-items: center !important;
  justify-content: center !important;
  display: flex !important;
}

/* Pending placeholder asla sprite'ı gizlemesin (rozette görünürken slot boş kalmasın) */
#main-screen .nova-main-tab-hero-body #nova-main-hero-slot.nova-slot-pending .nova-main-hero-host,
#main-screen .nova-main-tab-hero-body #nova-main-hero-slot.nova-slot-pending canvas,
#main-screen .nova-main-tab-hero-body #nova-main-hero-slot.nova-slot-pending .nova-hero-svg {
  visibility: visible !important;
}

/* Telefon: orta boy çerçeve + ortalı sprite */
@media (max-width: 900px), (pointer: coarse) {
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase {
    width: min(100%, 320px);
  }

  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase__frame {
    min-height: clamp(200px, 44vw, 280px) !important;
    max-height: none !important;
  }

  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase__body {
    min-height: clamp(156px, 38vw, 220px) !important;
  }

  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--star .nova-main-hero-slot,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--tas .nova-main-hero-slot,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--golge .nova-main-hero-slot,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--baykus .nova-main-hero-slot,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--firtina .nova-main-hero-slot,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--buz .nova-main-hero-slot,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--alev .nova-main-hero-slot,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-zone--gece .nova-main-hero-slot {
    inset: 8px !important;
    overflow: hidden !important;
  }

  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-main-hero-host,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-gece-sprite,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-alev-sprite,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-buz-sprite,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-yildiz-sprite,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-tas-sprite,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-golge-sprite,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-baykus-sprite,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-firtina-sprite,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-svg,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-buz-sprite__canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-alev-sprite__canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-gece-sprite__canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-firtina-sprite__canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-yildiz-sprite__canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-tas-sprite__canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-golge-sprite__canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-baykus-sprite__canvas {
    width: min(100%, 268px) !important;
    height: min(100%, 268px) !important;
    max-width: min(100%, 268px) !important;
    max-height: min(100%, 268px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: auto !important;
  }
}

@media (min-width: 901px) {
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase {
    width: min(100%, 360px);
  }

  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase__frame {
    min-height: clamp(210px, 28vw, 290px);
  }

  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase__body {
    min-height: clamp(168px, 22vw, 230px) !important;
  }

  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-main-hero-host,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot [class*='-sprite'],
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot canvas,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot .nova-hero-svg,
  #main-screen .nova-main-tab-hero-body .nova-main-hero-showcase .nova-main-hero-slot [class*='-sprite__canvas'] {
    width: min(92%, 345px) !important;
    height: min(92%, 345px) !important;
    max-width: min(92%, 100%) !important;
    max-height: min(92%, 100%) !important;
    min-width: min(52%, 210px) !important;
    min-height: min(52%, 210px) !important;
  }
}

/* Lig paneli */
#main-screen .nova-main-tab-lig-body {
  width: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(18px, 4vw, 28px) !important;
  padding: clamp(14px, 3.2vw, 22px) clamp(10px, 2.4vw, 16px) !important;
  min-height: 100%;
  box-sizing: border-box;
}

#main-screen .nova-main-tab-lig-body .star-frame {
  width: 100%;
  display: flex;
  justify-content: center;
}

#main-screen .nova-main-tab-lig-body .rank-label {
  width: 100%;
  display: flex !important;
  justify-content: center;
  min-height: clamp(88px, 22vw, 120px);
}

#main-screen .nova-main-tab-lig-body #student-rank {
  display: flex !important;
  visibility: visible !important;
  width: 100%;
  justify-content: center;
  margin-top: 0 !important;
}

#main-screen .nova-main-tab-lig-body #student-rank .nova-lig {
  transform: scale(0.92);
  transform-origin: center center;
}

#main-screen .nova-main-tab-lig-body .student-stats-container {
  width: 100%;
  max-width: min(320px, 92%) !important;
  display: block !important;
  visibility: visible !important;
}

#main-screen .nova-main-tab-lig-body .nova-lig-stats {
  --nls-pad-x: 20px !important;
  --nls-row-h: 56px !important;
  --nls-icon: 36px !important;
}

#main-screen .nova-main-tab-lig-body .student-stats {
  justify-content: stretch;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: block !important;
}

#main-screen .nova-main-tab-lig-loading,
#main-screen .nova-main-tab-panel-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.86rem;
  font-weight: 600;
  position: absolute;
  inset: 0;
  z-index: 2;
  justify-content: center;
  background: rgba(8, 14, 32, 0.55);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#main-screen .nova-main-tab-lig-loading__spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  animation: novaMainTabSpin 0.75s linear infinite;
}

@keyframes novaMainTabSpin {
  to { transform: rotate(360deg); }
}

/* Sağ ray — Öğren / Ödev / Görev */
#main-screen .nova-main-right-rail #learn-open-button {
  order: -1 !important;
}

@media (max-width: 720px) {
  #main-screen .main-profile-hero.nova-main-hub {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(2px, 0.7vw, 4px);
  }

  #main-screen .nova-main-left-hub {
    max-width: min(132px, 32vw) !important;
    width: min(132px, 32vw) !important;
  }

  #main-screen .nova-main-right-rail {
    max-width: min(132px, 32vw) !important;
    width: min(132px, 32vw) !important;
  }

  #main-screen .nova-main-stage {
    max-width: 100%;
  }

  #main-screen .nova-main-stage__frame {
    padding: clamp(10px, 2.8vw, 14px);
  }

  #main-screen .nova-main-carousel-nav {
    grid-template-columns: 36px 1fr 36px;
    padding: 5px 6px;
  }

  #main-screen .nova-main-carousel-nav__arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.25rem;
  }

  #main-screen .nova-main-tab-panels {
    min-height: clamp(170px, 46vw, 230px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #main-screen .nova-main-tab-panel {
    animation: none !important;
  }
}
