/* RetrINK v1.10.42: iPhone/coarse-phone *only* — replace the oversized
   WebKit 3D perspective floor with a compact pre-rendered 2D floor.
   Not a visual redesign. Desktop and tablet retain the original CSS grid.
   Safe even when the page is much taller than the viewport: the image is bounded
   and cannot create the giant off-screen raster surfaces of the old grid.
   The successful v1.10.40 diagnostic ?rcmobiletest=bg-grid-off must continue to
   override this effect for a true A/B comparison. */
@media screen and (max-width:650px) and (pointer:coarse){
 .rc-experience .rcbg-grid::before,
 .rc-experience .rcbg-synthwave::before,
 .rc-experience .rc-scene-grid::before,
 .rc-experience .rc-scene-synthwave::before,
 .rc-experience .rc-track-bg-grid::before,
 .rc-experience .rc-track-bg-synthwave::before{
   content:"";
   position:absolute;
   left:0;
   right:0;
   top:44%;
   width:100%;
   height:min(61svh,600px);
   min-height:220px;
   background-image:url('mobile-perspective-floor.webp');
   background-repeat:no-repeat;
   background-position:center top;
   background-size:100% 100%;
   transform:none;
   transform-origin:center center;
   animation:rc-mobile-grid-soft-glow 14s ease-in-out infinite;
   opacity:.69;
   will-change:auto;
   mix-blend-mode:normal;
   filter:none;
   pointer-events:none;
 }
}
@keyframes rc-mobile-grid-soft-glow{
 0%,100%{opacity:.60}
 50%{opacity:.72}
}
@media (max-width:650px) and (pointer:coarse) and (prefers-reduced-motion:reduce){
 .rc-experience .rcbg-grid::before,
 .rc-experience .rcbg-synthwave::before,
 .rc-experience .rc-scene-grid::before,
 .rc-experience .rc-scene-synthwave::before,
 .rc-experience .rc-track-bg-grid::before,
 .rc-experience .rc-track-bg-synthwave::before{animation:none!important}
}
/* v1.10.43: restore mobile transport feedback without reinstating the giant
   3D perspective floor or full-screen blended overlays. Local to cassette/LEDs. */
@media screen and (max-width:650px) and (pointer:coarse){
 .rc-experience .rc-boombox.rc-reels-playing .rc-mapped-reel{
   animation-name:rc-reel-rotate;
   animation-timing-function:linear;
   animation-iteration-count:infinite;
   animation-play-state:running;
 }
 .rc-experience .rc-photo-led-meter .rc-led-row i{
   transition:opacity .075s linear,background-color .075s linear;
 }
 .rc-experience .rc-photo-led-meter .rc-led-row i.rc-led-lit{
   box-shadow:0 0 4px var(--rc-led-meter-on,#45efff);
 }
 .rc-experience .rc-photo-led-meter .rc-led-row i.rc-led-lit:nth-last-child(-n+3){
   box-shadow:0 0 4px var(--rc-led-meter-peak,#ff3fa7);
 }
}
@media screen and (max-width:650px) and (pointer:coarse) and (prefers-reduced-motion:reduce){
 .rc-experience .rc-boombox.rc-reels-playing .rc-mapped-reel{animation:none}
}

/* v1.10.44: One small compositor-friendly glow per lit LED strip. No
   dynamic per-LED shadows or extra full-screen filtered layers. */
@media screen and (max-width:650px) and (pointer:coarse){
 .rc-experience .rc-photo-led-meter.rc-led-active {
    filter:none!important;
    box-shadow:0 0 5px rgba(70,236,255,.55),0 0 9px rgba(250,54,153,.27);
 }
 .rc-experience .rc-photo-led-meter .rc-led-row i {
    transition:opacity .04s linear!important;
    box-shadow:none!important;
 }
 .rc-experience .rc-meter i {transition:width .04s linear!important;box-shadow:0 0 7px rgba(69,239,255,.7)}
 .rc-experience .rc-boombox.rc-reels-playing .rc-mapped-reel {
    animation:rc-reel-rotate var(--rc-wheel-speed,1.1s) linear infinite;
 }
}

/* v1.10.46: interactive deck stays live during iOS visual viewport zoom.
   Do not re-enable expensive full-page compositor effects. */
@media screen and (max-width:650px) and (pointer:coarse){
  .rc-experience .rc-boombox.rc-reels-playing .rc-mapped-reel,
  html.rc-mobile-zooming .rc-experience .rc-boombox.rc-reels-playing .rc-mapped-reel{
    animation-name:rc-reel-rotate!important;
    animation-duration:var(--rc-wheel-speed,1.1s)!important;
    animation-timing-function:linear!important;
    animation-iteration-count:infinite!important;
    animation-play-state:running!important;
  }
  .rc-experience .rc-photo-led-meter.rc-led-active .rc-led-row i{
    box-shadow:0 0 2px 1px var(--rc-band-colour,var(--rc-led-meter-on,#45efff))!important;
  }
  html.rc-mobile-zooming .rc-experience .rc-photo-led-meter.rc-led-active .rc-led-row i{
    box-shadow:0 0 2px 1px var(--rc-band-colour,var(--rc-led-meter-on,#45efff))!important;
  }
}
@media screen and (max-width:650px) and (pointer:coarse) and (prefers-reduced-motion:reduce){
  .rc-experience .rc-boombox.rc-reels-playing .rc-mapped-reel,
  html.rc-mobile-zooming .rc-experience .rc-boombox.rc-reels-playing .rc-mapped-reel{animation:none!important}
}


/* v1.10.53 MOBILE-ONLY CUSTOM ANIMATED FLOOR. Pre-rendered small animated
   WebP frames; no WebGL, canvas, JS frame loop, or perspective-transformed
   offscreen layers. Same narrow surface that passed iPhone pinch-zoom in v1.10.52.
   A/B and emergency fallbacks: WP Background > Mobile grid; URL ?rcgrid=static
   or ?rcgrid=off. Existing diagnostic Test 12 still suppresses all grid imagery. */
@media screen and (max-width:650px) and (pointer:coarse){
 html:not([data-rc-mobile-grid-mode="static"]):not([data-rc-mobile-grid-mode="off"])
 .rc-experience .rcbg-grid::before,
 html:not([data-rc-mobile-grid-mode="static"]):not([data-rc-mobile-grid-mode="off"])
 .rc-experience .rcbg-synthwave::before,
 html:not([data-rc-mobile-grid-mode="static"]):not([data-rc-mobile-grid-mode="off"])
 .rc-experience .rc-scene-grid::before,
 html:not([data-rc-mobile-grid-mode="static"]):not([data-rc-mobile-grid-mode="off"])
 .rc-experience .rc-scene-synthwave::before,
 html:not([data-rc-mobile-grid-mode="static"]):not([data-rc-mobile-grid-mode="off"])
 .rc-experience .rc-track-bg-grid::before,
 html:not([data-rc-mobile-grid-mode="static"]):not([data-rc-mobile-grid-mode="off"])
 .rc-experience .rc-track-bg-synthwave::before{
  background-image:url('mobile-neon-grid-flow.webp');
  background-size:100% 100%;
  background-repeat:no-repeat;
  opacity:.77;
  animation:none!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  transform:none!important;
  will-change:auto!important;
 }
 html[data-rc-mobile-grid-mode="off"] .rc-experience .rcbg-grid::before,
 html[data-rc-mobile-grid-mode="off"] .rc-experience .rcbg-synthwave::before,
 html[data-rc-mobile-grid-mode="off"] .rc-experience .rc-scene-grid::before,
 html[data-rc-mobile-grid-mode="off"] .rc-experience .rc-scene-synthwave::before,
 html[data-rc-mobile-grid-mode="off"] .rc-experience .rc-track-bg-grid::before,
 html[data-rc-mobile-grid-mode="off"] .rc-experience .rc-track-bg-synthwave::before{
  content:none!important;
  display:none!important;
 }
 /* Explicit Test 12 overrides even the new animation. */
 html[data-rc-mobile-diagnostic="bg-grid-off"] .rc-experience .rc-track-bg-grid::before,
 html[data-rc-mobile-diagnostic="bg-grid-off"] .rc-experience .rc-track-bg-synthwave::before{
  content:none!important;
  display:none!important;
 }
}
/* Reduced motion and reduced-data override animated media without hiding the
   original scene. iPhone Low Power may also pause animated images automatically. */
@media (max-width:650px) and (pointer:coarse) and (prefers-reduced-motion:reduce){
 .rc-experience .rcbg-grid::before,.rc-experience .rcbg-synthwave::before,
 .rc-experience .rc-scene-grid::before,.rc-experience .rc-scene-synthwave::before,
 .rc-experience .rc-track-bg-grid::before,.rc-experience .rc-track-bg-synthwave::before{
  background-image:url('mobile-perspective-floor.webp')!important;
  animation:none!important;
 }
}
