(status, pct)
| 100 | } |
| 101 | function hudHide() { if (hudOverlay) hudOverlay.style.display = 'none'; } |
| 102 | function hudUpdate(status, pct) { |
| 103 | if (hudOverlay && status !== undefined) hudStatus.textContent = status; |
| 104 | if (hudOverlay && typeof pct === 'number') hudBar.style.width = `${Math.max(0, Math.min(100, pct))}%`; |
| 105 | } |
| 106 | |
| 107 | function initTheme() { |
| 108 | const stored = localStorage.getItem('scl_theme'); |