document.addEventListener("DOMContentLoaded", () => { const canvas = document.getElementById("background"); if (!canvas) return; const ctx = canvas.getContext("2d"); // Grab config from the embedded