/* Disable accidental double-tap zoom on touch devices while preserving pinch zoom. */
@media (pointer: coarse), (max-width: 1024px) {
  html, body {
    /* manipulation keeps pan + two-finger pinch zoom, but removes the
       delayed click and one-finger double-tap zoom gesture. */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
  }
  button, a, input, select, textarea, label, [role="button"], [onclick], [tabindex] {
    touch-action: manipulation;
  }

  /* Translucent blur is one of the most expensive effects on older mobile
     GPUs. Keep the same colors and borders, but remove repeated live blur. */
  [style*="backdrop-filter"],
  .rewards-assistant-overlay,
  .sheet,
  .bet-panel,
  .board {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Browsers already throttle JavaScript in a background tab. This also stops
   CSS decoration from consuming battery while the player is elsewhere. */
html.mobile-performance-paused *,
html.mobile-performance-paused *::before,
html.mobile-performance-paused *::after {
  animation-play-state: paused !important;
}
