/* =========================================================
   Xbox360TrYama v195 - Mobil FPS / Safari performans katmanı
   Tasarımı korur; mobil GPU'yu yoran sürekli efektleri azaltır.
   ========================================================= */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  html.xbox-mobile-performance,
  html.xbox-mobile-performance body {
    scroll-behavior: auto !important;
  }

  /* Safari/Chrome mobilde blur katmanları kaydırmada pahalı repaint oluşturur. */
  html.xbox-mobile-performance body *,
  html.xbox-mobile-performance body *::before,
  html.xbox-mobile-performance body *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* Sürekli çalışan dekoratif animasyonları mobilde statik tut. */
  html.xbox-mobile-performance .nav-avatar,
  html.xbox-mobile-performance .nav-avatar::before,
  html.xbox-mobile-performance .nav-avatar::after,
  html.xbox-mobile-performance [class*="username-effect-"],
  html.xbox-mobile-performance [class*="avatar-anim-"],
  html.xbox-mobile-performance [class*="profile-card-"]::before,
  html.xbox-mobile-performance [class*="profile-card-"]::after,
  html.xbox-mobile-performance .favorite-btn,
  html.xbox-mobile-performance .about-bubble,
  html.xbox-mobile-performance .about-bubble::before,
  html.xbox-mobile-performance .about-bubble::after,
  html.xbox-mobile-performance .support-financial-card::before,
  html.xbox-mobile-performance .support-financial-card::after,
  html.xbox-mobile-performance .comment-design-overlay,
  html.xbox-mobile-performance .customize-username-preview,
  html.xbox-mobile-performance .customize-live-preview-panel::before,
  html.xbox-mobile-performance .customize-live-preview-panel::after {
    animation: none !important;
    will-change: auto !important;
  }

  /* Kartları ayrı kompozit katmanlara zorlamayı bırak. */
  html.xbox-mobile-performance #gamesGrid > .game-card,
  html.xbox-mobile-performance #gamesGrid > .game-card *,
  html.xbox-mobile-performance .comment-card,
  html.xbox-mobile-performance .xbox-game-comment-v32,
  html.xbox-mobile-performance .account-center-pane,
  html.xbox-mobile-performance .account-user-card {
    will-change: auto !important;
    backface-visibility: visible !important;
  }

  html.xbox-mobile-performance #gamesGrid > .game-card {
    box-shadow: 0 5px 14px rgba(0,0,0,.20) !important;
    transition: none !important;
    animation: none !important;
    contain: layout paint style;
  }

  html.xbox-mobile-performance #gamesGrid > .game-card::before,
  html.xbox-mobile-performance #gamesGrid > .game-card::after {
    display: none !important;
    content: none !important;
  }

  html.xbox-mobile-performance #gamesGrid > .game-card img {
    transition: none !important;
    animation: none !important;
    filter: none !important;
  }

  /* Hesap Merkezi görünmüyorsa render maliyetine hiç katılmasın. */
  html.xbox-mobile-performance #profileSection.section-force-hidden,
  html.xbox-mobile-performance #customizeSection.section-force-hidden,
  html.xbox-mobile-performance #purchasesSection.section-force-hidden,
  html.xbox-mobile-performance #adminSection.section-force-hidden,
  html.xbox-mobile-performance #salesSection.section-force-hidden {
    content-visibility: hidden;
    contain: strict;
  }

  html.xbox-mobile-performance #profileSection.account-center-v194 .account-center-head,
  html.xbox-mobile-performance #profileSection.account-center-v194 .account-user-card,
  html.xbox-mobile-performance #profileSection.account-center-v194 .account-center-menu,
  html.xbox-mobile-performance #profileSection.account-center-v194 .account-pane-header,
  html.xbox-mobile-performance #profileSection.account-center-v194 .profile-settings-card,
  html.xbox-mobile-performance #profileSection.account-center-v194 #customizeContainer,
  html.xbox-mobile-performance #profileSection.account-center-v194 #digitalPurchasesPanel {
    box-shadow: 0 5px 14px rgba(0,0,0,.16) !important;
  }

  html.xbox-mobile-performance #profileSection.account-center-v194 .account-center-pane.is-active {
    animation: accountPaneFadeV194 .12s ease-out both !important;
  }

  /* Üst şerit istenildiği gibi akmaya devam eder; scroll sırasında geçici durur. */
  html.xbox-mobile-performance .recent-patch-activity.is-marquee .recent-activity-track {
    will-change: transform !important;
  }
  html.xbox-mobile-performance.xbox-mobile-scrolling .recent-patch-activity.is-marquee .recent-activity-track {
    animation-play-state: paused !important;
  }

  /* Kullanıcının aktif dokunuşu sırasında görsel geçişleri azalt. */
  html.xbox-mobile-performance.xbox-mobile-scrolling .game-card,
  html.xbox-mobile-performance.xbox-mobile-scrolling .comment-card,
  html.xbox-mobile-performance.xbox-mobile-scrolling .account-center-pane {
    transition: none !important;
  }
}

@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  /* Gerçek navbar / favori / hakkımızda sınıflarını da statikleştir. */
  html.xbox-mobile-performance #authArea .profile-wrapper > .nav-avatar-shell,
  html.xbox-mobile-performance #authArea .profile-wrapper > .nav-avatar-fallback,
  html.xbox-mobile-performance #authArea .profile-wrapper > .nav-avatar-shell::before,
  html.xbox-mobile-performance #authArea .profile-wrapper > .nav-avatar-shell::after,
  html.xbox-mobile-performance #homeSection #gamesGrid .game-favorite-btn,
  html.xbox-mobile-performance #homeSection #gamesGrid .game-favorite-btn i,
  html.xbox-mobile-performance .about-trigger,
  html.xbox-mobile-performance .about-trigger::before,
  html.xbox-mobile-performance .about-trigger::after,
  html.xbox-mobile-performance .about-trigger > i,
  html.xbox-mobile-performance button.support-center-card.support-center-card-financial,
  html.xbox-mobile-performance button.support-center-card.support-center-card-financial::before,
  html.xbox-mobile-performance .about-support-button,
  html.xbox-mobile-performance .about-support-box::before {
    animation: none !important;
    will-change: auto !important;
    filter: none !important;
  }

  html.xbox-mobile-performance #authArea .profile-wrapper > .nav-avatar-shell,
  html.xbox-mobile-performance #authArea .profile-wrapper > .nav-avatar-fallback {
    box-shadow: 0 0 0 2px var(--avatar-frame-color, #45f3ff) !important;
  }

  html.xbox-mobile-performance #homeSection #gamesGrid .game-favorite-btn.is-favorited i {
    animation: none !important;
    filter: none !important;
  }

  /* Mobil kaydırmada sticky navbar repaint maliyetini düşür. */
  html.xbox-mobile-performance .navbar {
    box-shadow: 0 3px 12px rgba(0,0,0,.18) !important;
  }
}
