export function hasWebGL2(): boolean { if (typeof window === "undefined") return false; try { const canvas = document.createElement("canvas"); return Boolean(canvas.getContext("webgl2")); } catch { return false; } }