/* ── Thannak: جوال + تلفزيون — بدون حركة ثقيلة ── */

/* لا تُطبَّق animation:none على img — يجمّد صور GIF المتحركة في Chrome/Safari */
html.thannak-low-power *:not(img):not(video):not(audio),
html.thannak-low-power *:not(img):not(video):not(audio)::before,
html.thannak-low-power *:not(img):not(video):not(audio)::after {
  animation: none !important;
  transition: none !important;
}

html.thannak-low-power #questionTurnStatusImg {
  animation: none !important;
}

html.thannak-low-power #particles,
html.thannak-low-power #particles-bg,
html.thannak-low-power #stars-canvas {
  display: none !important;
  visibility: hidden !important;
}

/* إلغاء رفع العناصر عند hover / focus (فئات، خانات، أزرار) */
html.thannak-low-power .category:hover,
html.thannak-low-power .category:focus,
html.thannak-low-power .category:focus-within,
html.thannak-low-power .cell:hover,
html.thannak-low-power .cell:focus,
html.thannak-low-power .category-box:hover,
html.thannak-low-power .logo-container:hover,
html.thannak-low-power .auth-btn-header:hover,
html.thannak-low-power .nav-item:hover,
html.thannak-low-power .subscribe-btn-header:hover,
html.thannak-low-power .play-mode-btn:hover,
html.thannak-low-power .category-favorite-btn:hover,
html.thannak-low-power .help-icon:hover:not(.disabled),
html.thannak-low-power .team-tool-icon:hover,
html.thannak-low-power .choice-btn:hover,
html.thannak-low-power .timer-btn:hover,
html.thannak-low-power #showAnswerBtn:hover,
html.thannak-low-power .home-btn:hover {
  transform: none !important;
  filter: none !important;
  scale: none !important;
}

html.thannak-low-power .category:hover .category-thumb img,
html.thannak-low-power .category.selected .category-thumb img {
  transform: none !important;
}

/* backdrop-filter ثقيل على GPU التلفزيون */
html.thannak-low-power .header-banner,
html.thannak-low-power .auth-modal,
html.thannak-low-power .auth-modal-overlay,
html.thannak-low-power .play-mode-modal,
html.thannak-low-power .setup-section,
html.thannak-low-power .category,
html.thannak-low-power .container,
html.thannak-low-power .category-box,
html.thannak-low-power .team-card,
html.thannak-low-power .question-box,
html.thannak-low-power .nav-menu {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.thannak-low-power .category:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

html.thannak-low-power .cell:hover {
  filter: none !important;
  box-shadow: none !important;
}

html.thannak-low-power .category-list .category,
html.thannak-low-power #categoryList .category {
  content-visibility: auto;
  contain-intrinsic-size: 200px 240px;
}

html.thannak-tv,
html.thannak-mobile {
  scroll-behavior: auto;
}

/* دعم إضافي بدون JS: أجهزة لمس فقط */
@media (hover: none), (pointer: coarse) {
  .category:hover,
  .cell:hover,
  .category-box:hover {
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 768px) {
  #particles,
  #particles-bg {
    display: none !important;
  }
}
