/* URSY.ID — performance layer. Loads LAST so it can win.
   ==========================================================================
   The aurora is four blurred orbs, two washes, a grain plate and a veil —
   about ten filtered layers and two dozen running animations. That is fine on
   a desktop GPU and it is NOT fine on a phone: continuous blur compositing is
   the single most expensive thing on the page and it burns battery while the
   user reads a settings list.

   So below 900px the field stops MOVING and stops BLURRING per-layer: one
   static wash, blurred once on the parent. Below 600px glass becomes solid.
   Nobody has ever complained that a background stopped drifting on a phone.
   ========================================================================== */

/* keep the compositor off the main thread for the things that do move */
.ursy-field, .ursy-veil{ will-change:transform; contain:strict; }
.orb, .ursy-aurora{ will-change:transform; }

/* below-fold work the browser can skip until it is needed */
.u-defer{ content-visibility:auto; contain-intrinsic-size:auto 620px; }
.ursy-estate, .ursy-foot{ content-visibility:auto; contain-intrinsic-size:auto 420px; }

@media (max-width:900px){
  /* one static, cheap wash instead of four animated orbs */
  .ursy-orbs, .ursy-grain{ display:none; }
  .ursy-aurora{ animation:none; }
  .ursy-aurora span{ animation:none; filter:blur(70px); }
  .ursy-aurora span:nth-child(1){ transform:translate3d(-6%,-4%,0) scale(1.18); }
  .ursy-aurora span:nth-child(2){ transform:translate3d(6%,6%,0) scale(1.12); }

  /* decorative motion that costs a repaint and earns nothing on a phone */
  .u-sweep, .ursy-closed__scan, .ursy-standing__wash{ display:none; }
  .ursy-spark polyline{ animation:none; stroke-dasharray:none; }
  .ursy-term i, .ursy-row--feed, .ursy-row{ animation:none; }
  .u-glowmark::before{ animation:none; opacity:.4; }
}

@media (max-width:600px){
  /* glass → solid. Backdrop-filter on a scrolling surface is the worst
     offender in a long list; the tokens still read as layered. */
  .ursy-top, .ursy-foot, .ursy-sheet, .ursy-tabbar, .ursy-bottombar,
  .ursy-menu__pop, .ursy-signin__card{
    backdrop-filter:none; -webkit-backdrop-filter:none; }
  .ursy-veil{ backdrop-filter:none; -webkit-backdrop-filter:none; }
  .ursy-field{ filter:blur(22px) saturate(122%); transform:scale(1.12); }

  /* the equaliser is twelve elements animating forever — halve it */
  .ursy-eq i:nth-child(n+9){ display:none; }
}

/* An explicit request from the operating system outranks every rule above. */
@media (prefers-reduced-motion: reduce){
  .ursy-orbs, .ursy-grain{ display:none; }
  .ursy-aurora span{ animation:none; }
  .ursy-eq i{ animation:none; height:40% !important; }
  .ursy-spark polyline{ animation:none; stroke-dasharray:none; }
  .ursy-standing__dial svg circle:last-child{ animation:none; }
}
