*{box-sizing:border-box}html,body{margin:0;background:#031526;color:#fff;font-family:Arial,Helvetica,sans-serif}
.stage{position:relative;width:min(100vw,1536px);margin:auto;aspect-ratio:1536/1024;overflow:hidden;background:#06192a}
.hero{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.room-glow{position:absolute;pointer-events:none;border-radius:10px;opacity:0;transition:opacity .35s,filter .35s;background:radial-gradient(ellipse at center,rgba(255,214,132,.48),rgba(255,183,68,.14) 58%,transparent 76%);mix-blend-mode:screen;filter:blur(5px)}
.room-glow.on{opacity:.72}
.bedroom{left:25.8%;top:15%;width:18.5%;height:17%}.bathroom{left:45%;top:15%;width:18%;height:17%}.children{left:64%;top:15%;width:16%;height:17%}
.living{left:25.8%;top:32.5%;width:18.5%;height:17%}.kitchen{left:45%;top:32.5%;width:18%;height:17%}.office{left:64%;top:32.5%;width:16%;height:17%}.garage{left:80%;top:30%;width:18%;height:20%}
.controls{position:absolute;left:1.8%;bottom:9.8%;width:18.5%;padding:12px;background:rgba(2,18,33,.92);border:1px solid rgba(117,191,255,.28);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.28);backdrop-filter:blur(8px)}
.controls-title{font-weight:700;font-size:clamp(11px,1vw,16px);margin-bottom:8px}
.controls button{width:100%;border:0;border-top:1px solid rgba(255,255,255,.09);background:transparent;color:white;display:flex;align-items:center;justify-content:space-between;padding:7px 4px;font-size:clamp(9px,.75vw,13px);cursor:pointer}
.controls button span{width:28px;height:16px;border-radius:20px;background:#475569;position:relative;transition:.25s}
.controls button span:after{content:"";position:absolute;width:12px;height:12px;left:2px;top:2px;border-radius:50%;background:white;transition:.25s}
.controls button.on span{background:#1976ff}.controls button.on span:after{transform:translateX(12px)}
.scenes{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:8px}.scenes button{justify-content:center;border:1px solid rgba(255,255,255,.12);border-radius:6px;padding:7px 2px;background:#092943}
.hotspot{position:absolute;display:block;border-radius:10px;transition:.2s}.hotspot:hover{outline:2px solid #ff1738;background:rgba(255,23,56,.08)}
.pv{left:48%;top:4%;width:22%;height:11%}.wallbox{left:80%;top:27%;width:18%;height:22%}.inverter{left:55%;top:61%;width:10%;height:20%}.battery{left:66%;top:61%;width:10%;height:22%}
.neutral-meter-label{position:absolute;left:32.2%;top:54.4%;width:11.5%;padding:6px 8px;text-align:center;background:#f4f5f6;color:#142337;font-weight:700;font-size:clamp(9px,.85vw,14px);border-radius:5px;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.link-hint{position:absolute;right:2%;bottom:8.4%;background:rgba(2,18,33,.88);border:1px solid rgba(255,255,255,.18);padding:8px 12px;border-radius:7px;font-size:clamp(9px,.75vw,12px);opacity:.9}
body.day .hero{filter:brightness(1.12) saturate(.9)}body.night .hero{filter:brightness(.72) saturate(1.05)}
@media(max-width:800px){.stage{width:100vw;min-height:100vh;aspect-ratio:auto}.hero{height:100%;object-fit:cover;object-position:62% center}.controls{left:3%;bottom:3%;width:46%;max-height:52vh;overflow:auto}.neutral-meter-label,.link-hint{display:none}.hotspot{display:none}}
