/* pa-mobile-safe.css — Apex Drift: mobile memory guard (v1.0.11)
   Phones / tablets / touch screens only. Desktop (hover + wider than 760px) keeps every effect.
   iOS Safari is killed by the system ("Can't open this page") when a page needs too much graphics memory:
   every 3D-tilted card, mask-composite ring, backdrop blur and blurred entrance animation costs an extra
   offscreen surface PER CARD. Here those become flat equivalents on touch / small screens. */
@media (hover:none),(max-width:760px) {
/* vehicle cards (home lanes + inventory pages): no 3D tilt, no always-on compositor layer */
  .fc,.bs-grid .fc,.apx-vehicle-card,.apx-main .apx-vehicle-card{transform:none!important;will-change:auto!important;perspective:none!important}
  /* gradient rim: one plain border instead of two mask-composite (xor) surfaces per card */
  .fc::before,.apx-main .apx-vehicle-card::before{-webkit-mask:none!important;mask:none!important;-webkit-mask-composite:initial!important;mask-composite:initial!important;background:none!important;padding:0!important;border:1px solid rgba(255,199,101,.32)!important;pointer-events:none}
  .fc::after,.apx-main .apx-vehicle-card::after{display:none!important;animation:none!important}
  /* frosted tags / pills inside cards: solid, no backdrop blur */
  .fc-tags span,.tag,.apx-card-badge,.fc-in,.apx-spec,.apx-card,.apx-post-card,.apx-blog-card,.mk,.apx-page-btn,.apx-btn.ghost,.apx-btn.secondary,.btn.ghost,.pt{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  .fc-tags span,.tag,.apx-card-badge{background:rgba(8,10,22,.86)!important}
  /* colour filters on every card photo: one surface less per image */
  .fc-ph img,.car figure img,.apx-card-media img,.apx-main .apx-card-media img{filter:none!important;transition:none!important}
  /* blurred text / panel entrances: fade only */
  .apx-motion-item,.apx-gallery-main,#apxMainVehicleImage{filter:none!important}
}
/* entrance animations that blur / skew / tilt: the same timing, as a light fade (no filter, no 3D) */
@media (hover:none),(max-width:760px) {
  @keyframes apx-vehicle-photo-enter{from{opacity:.45;transform:scale(1.045)}to{opacity:1;transform:scale(1.005)}}
  @keyframes apx-text-arrive{0%{opacity:0;transform:translateY(22px)}70%{opacity:1}100%{opacity:1;transform:none}}
  @keyframes apx-card-arrive{0%{opacity:0;transform:translateX(64px)}62%{opacity:1}100%{opacity:1;transform:translateX(0)}}
  @keyframes arrive{0%{opacity:0;transform:translateX(220px)}60%{opacity:1}100%{opacity:1;transform:none}}
  @keyframes laneL{from{opacity:0;transform:translateX(-160px)}to{opacity:1;transform:none}}
  @keyframes laneR{from{opacity:0;transform:translateX(160px)}to{opacity:1;transform:none}}
  @keyframes bsIn{0%{opacity:0;transform:translateX(70px)}60%{opacity:1}100%{opacity:1;transform:none}}
  @keyframes bsOut{to{opacity:0;transform:translateX(-50px) scale(.96)}}
  @keyframes gather{0%{opacity:0;transform:translate(var(--fx),var(--fy)) scale(.8)}55%{opacity:1}100%{opacity:1;transform:none}}
}

/* v1.0.11 — all devices (invisible): CSS animations sleep while their section is off screen (class "pa-off",
   pa-ios-guard.js) or the tab is in the background (html.pa-bg).  The side menu (drawer) is never marked off screen. */
.pa-off,.pa-off *,.pa-off *::before,.pa-off *::after,html.pa-bg body *,html.pa-bg body *::before,html.pa-bg body *::after{animation-play-state:paused!important}
/* v1.0.11 — iPads with a trackpad report (hover: hover) and a wide screen: the same flat card rules
   (html.pa-ios is set by the head guard). The drawer keeps its own styles. */
html.pa-ios .fc,html.pa-ios .bs-grid .fc,html.pa-ios .apx-vehicle-card,html.pa-ios .apx-main .apx-vehicle-card{transform:none!important;will-change:auto!important;perspective:none!important}
html.pa-ios .fc::before,html.pa-ios .apx-main .apx-vehicle-card::before{-webkit-mask:none!important;mask:none!important;-webkit-mask-composite:initial!important;mask-composite:initial!important;background:none!important;padding:0!important;border:1px solid rgba(255,199,101,.32)!important;pointer-events:none}
html.pa-ios .fc::after,html.pa-ios .apx-main .apx-vehicle-card::after{display:none!important;animation:none!important}
html.pa-ios .fc-tags span,html.pa-ios .tag,html.pa-ios .apx-card-badge,html.pa-ios .fc-in,html.pa-ios .apx-spec,html.pa-ios .apx-card,html.pa-ios .apx-post-card,html.pa-ios .apx-blog-card,html.pa-ios .mk,html.pa-ios .apx-page-btn,html.pa-ios .apx-btn.ghost,html.pa-ios .apx-btn.secondary,html.pa-ios .btn.ghost,html.pa-ios .pt{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.pa-ios .fc-tags span,html.pa-ios .tag,html.pa-ios .apx-card-badge{background:rgba(8,10,22,.86)!important}
html.pa-ios .fc-ph img,html.pa-ios .car figure img,html.pa-ios .apx-card-media img,html.pa-ios .apx-main .apx-card-media img{filter:none!important;transition:none!important}
html.pa-ios .apx-motion-item,html.pa-ios .apx-gallery-main,html.pa-ios #apxMainVehicleImage{filter:none!important}
