/* =====================================================================
   SEA FOOD KINGS — mobile GPU fix  (sfk-mobile-gpu-fix.css)
   Load this LAST, on every page (see the functions.php snippet).

   Symptom: on Android Chrome, grey blurred blocks flash over the login card, cards / buttons / close
   icons vanish or flicker while scrolling or animating.
   Cause:   many large `backdrop-filter: blur()` layers (header, glass cards, modals, login card) stacked over
   animated layers (floating cards, drifting background photos, mix-blend sheen) and inside 3D contexts.
   The phone GPU drops tiles, so Chrome paints a stale grey blur.
   Fix:     phones / touch devices only. Desktop keeps the full glass look. Panels get a more opaque tint instead of blur.
   ===================================================================== */
@media (max-width: 900px), (pointer: coarse) {

  /* 1 · no backdrop blur anywhere on phones */
  *, *::before, *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  /* 2 · glass panels were relying on the blur to stay readable: give them a firmer tint */
  .dv-nav.sc { background: var(--dv-bg, #060406) !important; }
  .dv-chips a { background: var(--dv-bg2, #0e080b) !important; }
  .dv-cat-card { background: linear-gradient(150deg, var(--dv-bg2, #0e080b), var(--dv-bg, #060406)) !important; }
  .sfk-auth-close { background: rgba(30, 14, 20, .92) !important; }

  /* 3 · login / sign-up card: opaque, flat (no preserve-3d under a filter), no tilt transform left behind */
  .sfk-card {
    background: linear-gradient(145deg, #2a1018, #0c070a) !important;
    transform-style: flat !important;
  }
  html[data-sfk-theme="day"] .sfk-card {
    background: linear-gradient(150deg, #fffcf5, #f6ead6) !important;
  }
  .sfk-auth-stage { perspective: none; }

  /* 4 · calmer, cheaper background behind the login card */
  .sfk-bg-img { filter: none !important; animation-play-state: paused !important; }
  .sfk-bg-sheen { display: none !important; }
  .sfk-auth-particles span:nth-child(n+9) { display: none; }

  /* 5 · the four floating category cards: no endless float animation on phones (each one was its own moving layer) */
  .dv-cat-card { animation: none !important; will-change: auto !important; }
  .dv-cat-glow { filter: none !important; opacity: .35 !important; }

  /* 6 · hero cut-outs float with a filter drop-shadow: keep the float, drop the filter */
  .dv-orb, .dv-hero-fish { filter: none !important; }
}
