/* Live HTML: only its rendered ink is filtered. The original text stays in the DOM. */
.crt-host,.crt-surface{mask-image:none!important;-webkit-mask-image:none!important;text-shadow:none!important}
.crt-surface{overflow:visible!important;translate:none!important;animation:none!important}
.crt-text-run{display:block;pointer-events:auto;user-select:text}
.crt-host{overflow:visible!important}
.html-background-particles{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.crt-surface::selection{background:#f02f4a;color:#0303c5}
@media(orientation:portrait) and (max-width:900px){.html-background-particles{display:none!important}}
@media(forced-colors:active){.crt-surface{filter:none!important;color:CanvasText!important}}

/* A brief, low-amplitude flicker keeps the previous live-screen character. */
.slide-panel.is-visible .crt-surface,.portrait-preview .is-portrait-visible .crt-surface{animation:crt-ink-flicker 7.6s linear infinite!important}
@keyframes crt-ink-flicker{0%,92%,94.5%,100%{translate:0 0}92.2%,92.5%{translate:.6px 0}92.6%,93.3%{translate:0 0}93.5%,93.8%{translate:-.6px 0}}
.html-qa-ready .crt-surface{animation:none!important}
@media(prefers-reduced-motion:reduce){.slide-panel .crt-surface,.portrait-preview .crt-surface{animation:none!important;translate:none!important}}

/* Apply the original neon startup to the HTML wrapper, retaining the ink filter inside. */
.slide-panel--build.is-build-active .screen-ink.crt-neon-tube{animation:html-neon-ignite 3.6s ease-in-out var(--neon-delay,0ms) both!important}
.slide-panel--build .crt-neon-tube .crt-surface{position:relative;display:block;max-width:100%}
.pointer-dot-lens,.dogo-eye-rays{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;overflow:visible}
.pointer-dot-lens{z-index:20;mix-blend-mode:screen}.dogo-eye-rays{z-index:22}
.pointer-dot-lens.is-active,.dogo-eye-rays.is-active{opacity:1}
.eye-ray-halo{stroke:#27fb00;stroke-width:9;opacity:.18;stroke-linecap:round}
.eye-ray-core{stroke:#79ff42;stroke-width:1.8;stroke-linecap:round}
.eye-track-box{fill:none;stroke:#27fb00;stroke-width:1.25;opacity:.8}
.eye-ray-target{fill:#c3ff9c;stroke:#27fb00;stroke-width:1.5}
@media(hover:none),(pointer:coarse),(max-width:1000px){.pointer-dot-lens,.dogo-eye-rays{display:none!important}}
@media(prefers-reduced-motion:reduce){.slide-panel--build.is-build-active .screen-ink.crt-neon-tube{animation:none!important;opacity:1!important;filter:none!important}.pointer-dot-lens,.dogo-eye-rays{display:none!important}}

@keyframes html-neon-ignite{
 0%{opacity:.12;filter:brightness(1.08) drop-shadow(0 0 2px #27ff4840)}
 12%,70%{opacity:1;filter:brightness(1.9) saturate(1.75) drop-shadow(0 0 4px #fff) drop-shadow(0 0 13px #27ff48) drop-shadow(0 0 26px #ff287b)}
 27%,56%{opacity:.2;filter:brightness(1.14) drop-shadow(0 0 4px #27ff4860)}
 41%{opacity:.96;filter:brightness(1.78) saturate(1.68) drop-shadow(0 0 4px #fff) drop-shadow(0 0 12px #27ff48) drop-shadow(0 0 25px #ff287b)}
 86%{opacity:.27;filter:brightness(1.18) drop-shadow(0 0 4px #27ff4860)}
 100%{opacity:1;filter:none}
}
@media (orientation:landscape),(min-width:901px){.slide-panel--build .crt-neon-tube .crt-text-run{width:100%;height:100%}}
/* Keep the HTML canvas scale while the finale title fades in. */
@media (orientation:landscape),(min-width:901px){
 .is-finale-active .html-copy--finale{animation:finale-html-title-in .7s 3.05s both!important}
}
@keyframes finale-html-title-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.is-finale-active .html-copy--finale{animation:none!important;opacity:1!important}}
/* Restore the AI row's original upward move and pin-art bubble, using live copy. */
@media (orientation:landscape),(min-width:901px){
 .ai-stage .html-copy{opacity:1!important;animation:none!important}
 .ai-stage [data-copy-slide='6'] .readable-body{opacity:0}
 .slide-panel--ai.is-visible [data-copy-slide='6'] .readable-body{animation:ai-html-bubble-reveal .68s 1.52s both!important}
 .is-ready .slide-panel--ai.is-visible .project-link{animation:ai-html-row-shift 1.05s .2s cubic-bezier(.3,.02,.16,1) both!important;opacity:1!important;transition:none}
 .slide-panel--ai.is-visible [data-copy-slide='6'] .readable-caption{animation:ai-html-caption-shift 1.05s .2s cubic-bezier(.3,.02,.16,1) both!important}
 .html-qa-ready .slide-panel--ai [data-copy-slide='6'] .readable-body,.html-qa-ready .slide-panel--ai [data-copy-slide='6'] .readable-caption,.html-qa-ready .slide-panel--ai .project-link{opacity:1!important;animation:none!important;translate:none!important}
}
@keyframes ai-html-row-shift{from{translate:0 54.6%}to{translate:0 0}}
@keyframes ai-html-caption-shift{from{transform:translateY(125px)}to{transform:translateY(0)}}
@keyframes ai-html-bubble-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
 .slide-panel--ai.is-visible .project-link,.slide-panel--ai.is-visible [data-copy-slide='6'] .readable-body,.slide-panel--ai.is-visible [data-copy-slide='6'] .readable-caption{animation:none!important;opacity:1!important;translate:none!important}
 .ai-stage .ai-final{opacity:1!important;animation:none!important}
 .ai-stage .ai-pin-art{display:none!important}
}
