/* v0.3.3 · Visual effects adapted to the device (performance-mode.js). Themes, ambients and particles stay. */

/* Every device: decorative motion pauses while the page is hidden or the element is not displayed. */
html.pd-page-hidden #pdEnvironment *,html.pd-page-hidden #pdEnvironmentFront *,html.pd-page-hidden .theme-mascot{animation-play-state:paused!important}
.hidden .theme-mascot,.hidden .theme-mascot *,.sup-view:not(.active) .theme-mascot,.sup-view:not(.active) .theme-mascot *,.app-view:not(.active-view) .theme-mascot,.app-view:not(.active-view) .theme-mascot *{animation-play-state:paused!important}

/* Ligero: same scenes, lighter rendering. */
html[data-pd-effects="lite"] #pdEnvironment .pd-environment-particles .pd-world-particle:nth-child(n+7){display:none!important}
html[data-pd-effects="lite"] #pdEnvironmentFront .pd-world-particle{display:none!important}
html[data-pd-effects="lite"] #pdEnvironment,html[data-pd-effects="lite"] #pdEnvironment .pd-environment-frame,html[data-pd-effects="lite"] #pdEnvironment .pd-environment-particles{animation:none!important}
html[data-pd-effects="lite"] .pd-world-corner{transition:none!important}
html[data-pd-effects="lite"] *,html[data-pd-effects="lite"] *::before,html[data-pd-effects="lite"] *::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* Surfaces that relied on the blur over moving content become solid in the theme's own colours. */
html[data-pd-effects="lite"] .supervisor-sidebar,html[data-pd-effects="lite"] #agentApp .sidebar{background:rgba(var(--sidebar-rgb),.95)!important}
html[data-pd-effects="lite"] .sup-utility-bar,html[data-pd-effects="lite"] .utility-bar{background:color-mix(in srgb,var(--panel) 96%,transparent)!important}
html[data-pd-effects="lite"] .pd-sup-mobile-nav,html[data-pd-effects="lite"] .pd-agent-mobile-nav{background:color-mix(in srgb,var(--panel) 97%,transparent)!important}
html[data-pd-effects="lite"] .modal-overlay{background:rgba(8,12,24,.62)!important}
