/* A 600 ms UI-only burst: only navigation, labels and title bars participate. */
.ui-glitch-active :is(.view-tools,.desk-panel-bar,.help-heading,.panel-top,.ui-universe-switcher) {
  animation:ui-rgb-shift 600ms steps(1,end);
}
.ui-glitch-active :is(.desk-panel-label,#style-title,.help-heading h2,.panel-section-label) {
  animation:ui-text-split 600ms steps(1,end);
}
.ui-glitch-active :is(.desk-panel-bar,.help-heading,.panel-top,.ui-universe-switcher)::after {
  content:''; position:absolute; inset:8% -2px 8%; pointer-events:none; z-index:2;
  background:linear-gradient(90deg,#ff3e6680 0 14%,transparent 14% 59%,#3cddff88 59% 66%,transparent 66%),repeating-linear-gradient(0deg,transparent 0 8px,#ef365d35 8px 10px);
  animation:ui-slices 600ms steps(1,end);
}
.ui-glitch-active :is(.help-heading,.panel-top,.ui-universe-switcher) { isolation:isolate }
.ui-theme-fade :is(.view-tools,.desk-panel-bar,.help-heading,.panel-top,.ui-universe-switcher) { transition:background-color 120ms linear,color 120ms linear }
@keyframes ui-rgb-shift {
  0%,100% { filter:none; translate:0 0 }
  12% { filter:drop-shadow(-3px 0 #ff386480) drop-shadow(3px 0 #37deff80); translate:2px 0 }
  24% { filter:none; translate:-2px 0 }
  38% { filter:drop-shadow(2px 0 #ff386490); translate:0 0 }
  57% { filter:drop-shadow(-2px 0 #37deff90); translate:1px 0 }
  72% { filter:none; translate:0 0 }
}
@keyframes ui-text-split {
  0%,100% { text-shadow:none }
  15%,37% { text-shadow:-3px 0 #ff3864,3px 0 #37deff }
  23%,55%,80% { text-shadow:none }
  63% { text-shadow:2px 0 #ff3864,-2px 0 #37deff }
}
@keyframes ui-slices {
  0%,100% { opacity:0; clip-path:inset(0 0 100%) }
  10% { opacity:.8; clip-path:inset(10% 0 72%); translate:-5px 0 }
  24% { opacity:.55; clip-path:inset(58% 0 16%); translate:6px 0 }
  39% { opacity:0 }
  52% { opacity:.45; clip-path:inset(35% 0 50%); translate:-3px 0 }
  72% { opacity:0 }
}
@media(prefers-reduced-motion:reduce) {
  .ui-glitch-active :is(.view-tools,.desk-panel-bar,.help-heading,.panel-top,.ui-universe-switcher,.desk-panel-label,#style-title,.panel-section-label),
  .ui-glitch-active :is(.desk-panel-bar,.help-heading,.panel-top,.ui-universe-switcher)::after { animation:none!important }
}
