/* Screen geometry is tied to the approved 16:9 artwork. */
.oz-stage{container-type:inline-size;}
.oz-display{position:absolute;inset:0;pointer-events:none;}
.oz-crt{position:absolute;left:49.6%;top:30.35%;width:28.4%;height:27.9%;overflow:hidden;border-radius:8% / 11%;color:#a6ff9b;background:radial-gradient(ellipse,#123a19e6,#061909ef);font:clamp(8px,.87cqw,18px)/1.4 'Courier New',monospace;text-shadow:0 0 5px #73ff7370;box-shadow:inset 0 0 20px 7px #001205,0 0 14px #70ff7820;}
.oz-crt::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,#00180630 0px,#00180630 1px,transparent 1px,transparent 3px),radial-gradient(ellipse,transparent 45%,#00100675);border-radius:inherit;}
.oz-screen-content{position:absolute;inset:8% 7%;display:flex;flex-direction:column;}
.oz-screen-header,.oz-screen-footer,.oz-plan-footer{display:flex;justify-content:space-between;gap:6px;font-size:.72em;letter-spacing:.07em;}
.oz-screen-header{border-bottom:1px solid #a6ff9b55;padding-bottom:4px;margin-bottom:5px;}
#ozTerminal{margin:0;white-space:pre-wrap;overflow:hidden;font:inherit;flex:1;}
.oz-screen-footer{margin-top:auto;border-top:1px solid #a6ff9b35;padding-top:3px;}
.oz-cursor{animation:oz-blink 1.1s steps(1) infinite;}
.oz-blueprint{flex:1;min-height:0;display:flex;flex-direction:column;}
.oz-plan-caption{font-size:.69em;letter-spacing:.06em;}
.oz-blueprint svg{width:100%;flex:1;min-height:0;}
.oz-draw{stroke-dasharray:1500;stroke-dashoffset:1500;animation:oz-draft 5s ease-out forwards;}
.oz-plan-footer{font-size:.63em;padding-bottom:3px;}
.oz-transmit{position:absolute;left:73.6%;top:59.2%;width:5%;height:8%;min-width:36px;min-height:32px;pointer-events:auto;border:0;background:transparent;border-radius:8px;}
.oz-transmit span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);opacity:0;white-space:nowrap;font:11px 'Courier New',monospace;color:#b9ffad;background:#071b0ae8;padding:5px 8px;border:1px solid #9aff9566;}
.oz-transmit:hover,.oz-transmit:focus-visible{outline:2px solid #b5ff99;outline-offset:3px;box-shadow:0 0 20px #bcff8640;}
.oz-transmit:hover span,.oz-transmit:focus-visible span{opacity:1;}
.oz-controls{position:absolute;bottom:22px;left:24px;right:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;font:11px 'Courier New',monospace;letter-spacing:.12em;}
.oz-controls button{border:1px solid #98754b;border-radius:5px;padding:12px 16px;background:#100b08d9;font:12px var(--sans);}
.oz-paused .oz-cursor,.oz-paused .oz-draw{animation-play-state:paused;}
@keyframes oz-blink{50%{opacity:0;}}
@keyframes oz-draft{to{stroke-dashoffset:0;}}
@media(max-width:700px){
 #room-oz .oz-stage{width:210vw;height:118.125vw;top:80px;left:-83vw;transform:none;}
 .oz-crt{font-size:clamp(8px,.87cqw,12px);}
 .oz-controls{left:14px;right:14px;bottom:max(22px,env(safe-area-inset-bottom));}
 #room-oz .back{top:70px;}
}
@media(prefers-reduced-motion:reduce){.oz-cursor,.oz-draw{animation:none;}.oz-draw{stroke-dashoffset:0;}}

/* Arrival runs before the approved code-driven CRT is revealed. */
.oz-arrival{z-index:1;}
#vOz.at-end{visibility:hidden;}
.oz-display{z-index:2;opacity:0;transition:opacity .3s;}
.oz-display.show{opacity:1;}
@media(prefers-reduced-motion:reduce){.oz-display{transition:none;}}
@media(max-width:700px){
 #room-oz .oz-stage{transition:width .55s ease,height .55s ease,left .55s ease,top .55s ease;}
 #room-oz .oz-stage:has(#vOz:not(.at-end)){width:100vw;height:56.25vw;left:0;top:calc(50% - 28.125vw + 32px);}
}
@media(prefers-reduced-motion:reduce){#room-oz .oz-stage{transition:none;}}
#room-oz:has(#ozPanel:not(.show)) .oz-controls{visibility:hidden;}
