/* Pixel effects use the battle clock: pause, speed and visibility share one time. */
.pixel-effects{position:absolute;inset:0;width:100%;height:100%;z-index:4;pointer-events:none;image-rendering:pixelated}
.library-generation{display:inline-block;white-space:nowrap;color:#9ed7e4;font-size:10px;margin-left:4px}
.stage-floor:has(.pixel-effects) .clash-energy,.stage-floor:has(.pixel-effects) .impact-ring{display:none}
.motion-demo-heading{margin:16px 0!important;padding:0!important}.motion-demo-heading h1{font-size:24px}
.motion-demo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.motion-demo-pair label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px;align-items:center;font-size:12px}
.motion-demo-pair select{width:100%;min-width:0;min-height:44px;padding:4px 8px}
#motion-demo-effects{max-width:820px;margin:8px auto}
.motion-demo-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}
.motion-demo-controls button{min-width:0;min-height:40px;padding:7px;font-size:12px;border-radius:3px;white-space:normal;background:#102e40;color:#b7eaf4;border:1px solid #3a7890;cursor:pointer}
.motion-demo-controls button:hover{background:#164258}.motion-demo-controls button:focus-visible{outline:2px solid #8cf3ff;outline-offset:2px}
.motion-preview-console{max-width:820px;margin:auto}
@media(max-width:600px){.motion-demo-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.motion-demo-controls button{font-size:11px}.motion-demo-heading h1{font-size:20px;margin:8px 0}}
@media(prefers-reduced-motion:reduce){.pixel-effects{display:none}}
