/* ZX effects are short, local to the console and never obscure page controls. */
.spectrum-console{position:relative;isolation:isolate}
.modebar .sound-toggle{flex:0 0 auto;white-space:nowrap;min-height:44px}
.sound-toggle[aria-pressed=true]{box-shadow:inset 0 -4px #d028b8}
.sound-toggle:disabled{opacity:.6;cursor:default}
.zx-load-progress{grid-column:1/-1;width:100%;height:8px;background:#d8d0b2;border:1px solid #938b70;position:relative;margin-top:6px;overflow:hidden}
.zx-load-progress>span{display:block;width:var(--zx-load,0%);height:100%;background:repeating-linear-gradient(90deg,#0057d9 0 9px,#faf7e8 9px 11px)}
.zx-loading-frame,.zx-raster{position:absolute;pointer-events:none;overflow:hidden;z-index:2;opacity:0}
.zx-loading-frame{inset:0}
.zx-loading-frame i{position:absolute;display:block;background:repeating-linear-gradient(90deg,#0057d9 0 14px,#22cfe5 14px 28px,#e23b2d 28px 42px,#f6e23e 42px 56px)}
.zx-loading-frame i:nth-child(1){top:0;left:0;right:0;height:5px}
.zx-loading-frame i:nth-child(2){bottom:0;left:0;right:0;height:5px}
.zx-loading-frame i:nth-child(3){top:0;bottom:0;left:0;width:5px;background:repeating-linear-gradient(0deg,#0057d9 0 14px,#22cfe5 14px 28px,#e23b2d 28px 42px,#f6e23e 42px 56px)}
.zx-loading-frame i:nth-child(4){top:0;bottom:0;right:0;width:5px;background:repeating-linear-gradient(0deg,#0057d9 0 14px,#22cfe5 14px 28px,#e23b2d 28px 42px,#f6e23e 42px 56px)}
.zx-raster{inset:46px 6px 10px}
.zx-raster:before{content:"";position:absolute;left:0;right:0;top:-90px;height:85px;background:repeating-linear-gradient(0deg,transparent 0 3px,rgba(0,87,217,.045) 3px 4px);border-bottom:1px solid rgba(0,87,217,.14)}
.zx-pixel-spark{position:fixed;display:block;width:5px;height:5px;pointer-events:none;z-index:60;contain:strict}
html[data-motion=on] .spectrum-console.is-loading .zx-loading-frame{opacity:1}
html[data-motion=on] .spectrum-console.is-loading .zx-loading-frame i{animation:zx-frame-x 1.4s linear 3}
html[data-motion=on] .spectrum-console.is-loading .zx-loading-frame i:nth-child(n+3){animation-name:zx-frame-y}
html[data-motion=on] .spectrum-console.is-loading .zx-raster{opacity:1}
html[data-motion=on] .spectrum-console.is-loading .zx-raster:before{animation:zx-raster-pass 2.1s linear 2}
html[data-motion=on] .zx-loader.is-playing .zx-tape-border,html[data-motion=on] .zx-loader.is-playing .zx-reel,html[data-motion=on] .zx-loader.is-playing .zx-data-packet{animation-duration:1.4s;animation-iteration-count:3}
html[data-motion=on] .spectrum-console.zx-mode-switch{animation:zx-bank-switch .48s steps(6,end) 1}
html[data-motion=on] .console-menu a.zx-attribute-pulse .console-label{animation:zx-attribute .36s steps(3,end) 1}
html[data-motion=on] .zx-page-ready .console-screen{animation:zx-boot .42s steps(7,end) 1}
html[data-motion=on] .search-dialog[open]{animation:zx-window-open .28s steps(6,end) 1}
html[data-motion=on] .module-choice:has(input:checked){transition:border-color .16s steps(2,end),background-color .16s steps(2,end)}
@keyframes zx-frame-x{to{background-position:112px 0}}
@keyframes zx-frame-y{to{background-position:0 112px}}
@keyframes zx-raster-pass{from{transform:translateY(0)}to{transform:translateY(760px)}}
@keyframes zx-bank-switch{0%{box-shadow:8px 8px 0 #d8d0b2}35%{box-shadow:8px 8px 0 #22cfe5,12px 12px 0 #d028b8}100%{box-shadow:8px 8px 0 #d8d0b2}}
@keyframes zx-attribute{0%{text-shadow:2px 0 #22cfe5,-2px 0 #d028b8;transform:translateX(1px)}100%{text-shadow:none;transform:none}}
@keyframes zx-boot{from{opacity:.84;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:620px){.modebar button{flex:1 1 calc(50% - 6px)!important}.modebar .sound-toggle{min-width:0}.zx-loading-frame i:nth-child(-n+2){height:3px}.zx-loading-frame i:nth-child(n+3){width:3px}.zx-load-progress{height:7px}.zx-pixel-spark{width:4px;height:4px}}
html[data-motion=off] .zx-loading-frame,html[data-motion=off] .zx-raster,html[data-motion=off] .zx-pixel-spark{display:none!important}
@media(prefers-reduced-motion:reduce){.zx-loading-frame,.zx-raster,.zx-pixel-spark{display:none!important}}
