#work-layer{position:absolute;inset:0;pointer-events:none;z-index:1}
.work-view #spots{z-index:2}
.work-view #statusbar{top:84px;left:28px;right:auto;max-width:65%}
.work-view #objective{top:135px}
.work-view #panel{top:35%;max-height:47%}
.work-view nav button{padding:10px 13px}
.port-tag{position:absolute;transform:translate(-50%,-50%);font-size:clamp(10px,1vw,15px);letter-spacing:.06em;color:#e4eef3;background:#18252fe8;border-radius:4px;padding:3px 8px}
.hardware-led{position:absolute;transform:translate(-50%,-50%);width:1.1%;aspect-ratio:1;border-radius:50%;background:#a5ff83;box-shadow:0 0 12px 3px #73ff8399;border:2px solid #477945}
#spot-led .pin{background:transparent!important;backdrop-filter:none;color:transparent!important;border-color:#b5cfcd80;box-shadow:none}
.device-state{position:absolute;left:3%;bottom:14%;font-size:.85rem;background:#142b25e8;color:#c5efd1;padding:10px 14px;border-radius:6px}
.device-state b{margin-left:14px;color:#f2d79a;font-weight:500}.device-state.failed{color:#ffd0b9;background:#3e2721ee}
.circuit-spark{position:absolute;transform:translate(-50%,-50%);font-size:90px;color:#fff5cb;opacity:0;filter:drop-shadow(0 0 12px #ffb649)}
.circuit-spark::before,.circuit-spark::after{content:'✦';position:absolute;font-size:25px;left:-45px;top:3px}.circuit-spark::after{left:95px;top:60px}
.electrical-fault .circuit-spark{animation:electricalFlash .65s ease-out}
@keyframes electricalFlash{0%{opacity:0;transform:translate(-50%,-50%) scale(.1)}12%,35%{opacity:1}24%{opacity:.2}100%{opacity:0;transform:translate(-50%,-10%) scale(1.7) rotate(25deg)}}
#start-mount{display:block;margin-top:10px;padding-left:0}.work-view .spot.current .label{max-width:240px;white-space:normal;text-align:center;min-width:120px}
@media(max-width:1000px){.work-view #statusbar{top:76px;left:16px;max-width:61%}.work-view #objective{top:115px}.work-view #panel{top:46%;max-height:35%}.work-view nav button{padding:9px 7px;font-size:.77rem}.work-view #attempt{min-width:190px;max-width:36%}}
@media(max-width:600px) and (orientation:portrait){
 #work-layer{top:124px;height:56.25vw;bottom:auto}
 #stage.work-view #statusbar{top:69px;left:12px;right:12px;max-width:none;font-size:.65rem}
 .work-view #objective{top:auto}.work-view #panel{top:auto;max-height:none}
 .work-view nav button{font-size:.65rem;padding:8px 4px}.work-view #attempt{max-width:none;min-width:250px}
 .work-view .spot{width:32px;height:32px}.work-view .spot .pin{width:18px;height:18px;font-size:13px}
 .port-tag{padding:1px 4px;font-size:8px}.hardware-led{border-width:1px;box-shadow:0 0 5px #80ff96}
 .device-state{font-size:.55rem;padding:5px 7px;bottom:3%}.device-state b{margin-left:5px}
 .work-view .spot .label{max-width:130px;font-size:.65rem}.work-view .spot.current .label{opacity:0}
 .circuit-spark{font-size:30px}.circuit-spark::before,.circuit-spark::after{font-size:10px;left:-15px}.circuit-spark::after{left:35px;top:15px}
}
@media(prefers-reduced-motion:reduce){.electrical-fault .circuit-spark{animation:none;opacity:1}}
