/* Stop decorative work outside the viewport and while the page is backgrounded. */
:root body .perf-motion-paused.perf-motion-paused.perf-motion-paused,:root body .perf-motion-paused.perf-motion-paused.perf-motion-paused *,:root body .perf-motion-paused.perf-motion-paused.perf-motion-paused::before,:root body .perf-motion-paused.perf-motion-paused.perf-motion-paused::after,:root body .perf-motion-paused.perf-motion-paused.perf-motion-paused *::before,:root body .perf-motion-paused.perf-motion-paused.perf-motion-paused *::after{animation-play-state:paused!important}
:root.night-motion-paused.night-motion-paused.night-motion-paused body *,:root.night-motion-paused.night-motion-paused.night-motion-paused body *::before,:root.night-motion-paused.night-motion-paused.night-motion-paused body *::after{animation-play-state:paused!important}
/* Reuse painted gradients with transforms, instead of repainting the screen each frame. */
.ambient::after{inset:-12%;background:linear-gradient(115deg,transparent 33%,#ddf1dd1c 47%,transparent 60%);background-size:100% 100%;animation:perf-light-wash 12s ease-in-out infinite alternate!important}
.ambient>.pitch-board::after{background-size:100% 100%;animation:perf-turf-light 10s ease-in-out infinite alternate!important}
.ambient>.stadium-rim{animation:perf-crowd-light 7s ease-in-out infinite alternate!important;filter:none}
@keyframes perf-light-wash{from{transform:translate3d(-12%,0,0);opacity:.25}to{transform:translate3d(12%,0,0);opacity:.75}}
@keyframes perf-turf-light{from{transform:translate3d(-12%,0,0);opacity:.2}to{transform:translate3d(12%,0,0);opacity:.65}}
@keyframes perf-crowd-light{from{opacity:.25}to{opacity:.5}}
.ambient>.pitch-board{overflow:hidden;contain:paint}
.standings-card th{backdrop-filter:none}
.award-medal::after{animation:perf-award-light 8s ease-in-out infinite;background-size:100% 100%}
@keyframes perf-award-light{0%,45%{transform:translateX(-100%);opacity:0}55%{opacity:.7}80%,100%{transform:translateX(100%);opacity:0}}
/* Phones and low-memory devices keep the stadium sweep, with fewer simultaneous layers. */
@media(max-width:700px){.ambient>.pitch-board{animation:none!important;transform:translate(-50%,-50%) perspective(1050px) rotateX(56deg) rotateZ(-4deg);will-change:auto}.ambient>.pitch-board::after,.ambient>.stadium-rim,.ambient>.floodlight{animation:none!important}.ambient::before{animation-duration:20s!important}.ambient::after{animation:none!important;opacity:.3}.trophy-sparks,.trophy-trails{display:none}.award-spark{animation:none!important}.player-rating-badge,.overall-orbit{box-shadow:0 0 8px color-mix(in srgb,var(--rating-color) 15%,transparent)!important}}
.motion-lite .ambient>.pitch-board{animation:none!important;transform:translate(-50%,-50%) perspective(1050px) rotateX(56deg) rotateZ(-4deg);will-change:auto}.motion-lite .ambient>.pitch-board::after,.motion-lite .ambient>.stadium-rim,.motion-lite .ambient>.floodlight,.motion-lite .ambient::after{animation:none!important}.motion-lite .trophy-sparks,.motion-lite .trophy-trails{display:none}
@media(prefers-reduced-motion:reduce){.ambient::before,.ambient::after,.ambient>.pitch-board,.ambient>.pitch-board::after,.ambient>.stadium-rim,.award-medal::after{animation:none!important}}
