#canvas { position:absolute; inset:0; width:100%; height:100%; touch-action:none; }
[hidden] { display:none !important; }
#stage { background:#05070d; }
.stage-head { position:absolute; top:25px; left:28px; right:28px; z-index:2; pointer-events:none; }
.eyebrow,.panel-kicker { color:#60d6ff; font-size:10px; letter-spacing:2px; }
.eyebrow span { color:#77869a; letter-spacing:1px; }
.stage-head h2 { margin:9px 0 5px; font-size:18px; font-weight:600; letter-spacing:.3px; }
.stage-head p { margin:0; color:#94a5b9; font-size:12px; }
.stage-tools { display:flex; gap:12px; margin-top:18px; flex-wrap:wrap; pointer-events:auto; }
.seg { padding:3px; gap:3px; border:1px solid #263247; border-radius:10px; background:#101722e8; }
.seg button,.seg button:first-child,.seg button:last-child { border:0; border-radius:7px; min-height:34px; padding:6px 12px; background:transparent; font-size:12px; }
.seg button.on { background:#263a4a; color:#bcf0ff; box-shadow:inset 0 0 0 1px #426379; }
.mirror-switch button.on { background:#ffc94a; color:#161b23; box-shadow:none; }
button:focus-visible,a:focus-visible { outline:2px solid #60d6ff; outline-offset:3px; }
.stage-summary { position:absolute; bottom:62px; left:28px; right:28px; padding:16px 18px; border:1px solid #273247; border-radius:14px; background:linear-gradient(110deg,#121c2beb,#0a101bec); pointer-events:none; z-index:2; }
.summary-label { display:block; font-size:10px; letter-spacing:1.5px; color:#8a9bae; margin-bottom:5px; }
.stage-summary strong { font-size:18px; font-weight:600; color:#e7d1ff; display:block; }
#summaryNote { display:block; color:#9bacc1; font-size:12px; margin-top:4px; }
.ray-key { position:absolute; right:18px; top:19px; display:flex; gap:14px; color:#99aabd; font-size:11px; }
.ray-key i { display:inline-block; width:18px; vertical-align:middle; margin-right:5px; border-top:2px solid #60d6ff; }
.ray-key .virtual { border-top:2px dashed #c9a7ff; }
#panel { --panel-w:326px; background:#101621; padding:24px 20px; border-color:#253045; }
#panel h1 { font-size:18px; margin:7px 0 10px; }
#panel h2 { font-size:12px; color:#a7bbce; letter-spacing:.4px; }
.panel-intro { font-size:12px; color:#8f9eb2; margin:8px 0 18px; }
#panel section { padding:18px 0; border-color:#253045; }
#panel .readout { padding:14px !important; background:linear-gradient(130deg,#1b2637,#151c2b); border-color:#304056 !important; }
#kind { font-size:15px; color:#dfc8ff; line-height:1.6; }
dl { font-size:11px; row-gap:8px; margin-top:12px; }
dd { text-align:right; font-variant-numeric:tabular-nums; }
.presets { display:flex; gap:6px; flex-wrap:wrap; }
.presets .small { min-height:36px; padding:6px 9px; font-size:11px; }
.presets .on { border-color:#ffc94a; color:#ffc94a; background:#302b20; }
.slider { grid-template-columns:52px 1fr 65px; gap:7px; font-size:12px; }
input[type=range] { min-height:32px; }
.checks { margin:12px 0; font-size:12px; }
.checks label { display:flex; align-items:center; min-height:36px; gap:5px; }
#share { min-height:38px; width:100%; margin-top:6px; }
#status:empty { display:none; }
#status { overflow-wrap:anywhere; }
.model-note { font-size:11px; color:#8496ad; border-top:1px solid #253045; padding-top:14px; }
.model-note summary { cursor:pointer; min-height:30px; }
.learn-fab { bottom:17px; padding:6px 14px; font-size:11px; }
@media(max-width:1050px) { .ray-key { position:static; margin-top:10px; } }
@media(max-width:760px) {
 .stage-head { top:18px; left:18px; right:18px; }
 .stage-head h2 { font-size:16px; margin-top:8px; }
 .stage-head p { font-size:11px; }
 .stage-tools { gap:8px; margin-top:14px; }
 .seg button,.seg button:first-child,.seg button:last-child { min-height:38px; padding:6px 10px; font-size:11px; }
 .stage-summary { left:16px; right:16px; bottom:62px; padding:13px 14px; }
 .stage-summary strong { font-size:16px; }
 #summaryNote { font-size:11px; }
 .ray-key { margin-top:9px; font-size:10px; }
 #panel { padding:20px; max-height:65%; padding-top:42px; }
 #panelToggle { top:auto; bottom:15px; right:16px; min-height:36px; font-size:11px; padding:7px 12px; }
 .learn-fab { left:16px; transform:none; bottom:17px; }
 #panel .slider { grid-template-columns:54px 1fr 70px; }
}
@media(prefers-reduced-motion:reduce) { #panel { transition:none; } }
