/* Exact renderer-prototype full-frame CRT integration. */
html,body{background:#000!important;overflow:hidden!important;}
#prototype-crt-frame{position:fixed;inset:0;z-index:0;overflow:hidden;background:#000;transform-origin:center center;will-change:filter,transform;backface-visibility:hidden;}
#prototype-crt-overlay{position:fixed;inset:0;z-index:70;pointer-events:none;overflow:hidden;}
#prototype-scanlines,#prototype-grille,#prototype-shadow-mask,#prototype-vignette,#prototype-grain{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
#prototype-scanlines{background:repeating-linear-gradient(0deg,rgba(0,0,0,.95) 0 1px,transparent 1px 3px);mix-blend-mode:multiply;}
#prototype-grain{image-rendering:pixelated;mix-blend-mode:overlay;}
#prototype-grille{background:repeating-linear-gradient(90deg,rgba(255,65,65,.45) 0 1px,rgba(85,255,95,.38) 1px 2px,rgba(80,150,255,.35) 2px 3px);mix-blend-mode:screen;}
#prototype-shadow-mask{background:repeating-linear-gradient(90deg,rgba(0,0,0,.75) 0 1px,transparent 1px 4px);mix-blend-mode:multiply;}
#prototype-vignette{background:radial-gradient(ellipse at 50% 55%,transparent 0 58%,rgba(0,0,0,.12) 74%,rgba(0,0,0,.88) 100%);}
#three-tv-canvas,#crt,#crt-noise{display:none!important;opacity:0!important;}
#bg-image,#stage,#speaker-stage{opacity:1!important;visibility:visible!important;}
body.three-tv-ready #bg-image,body.three-tv-ready #stage,body.three-tv-ready #speaker-stage{opacity:1!important;visibility:visible!important;}
body.crt-off #prototype-crt-frame{filter:none!important;transform:none!important;}
body.crt-off #prototype-crt-overlay{display:none!important;}
#settings-ui{z-index:100!important;}
.prototype-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.prototype-presets{display:flex!important;gap:8px!important;flex-wrap:wrap!important;}
#crt-preset-json{width:100%;min-height:112px;margin-top:14px;background:#07100c;color:#c8f5a0;border:2px solid #4f6a43;padding:10px;font:12px/1.35 'Share Tech Mono',monospace;resize:vertical;}
@media(max-width:760px){.prototype-control-grid{grid-template-columns:1fr!important;}}
