               ctx.textAlign = 'left';
                ctx.textBaseline = 'top';
                const lines = [
                    'FPS: ' + fps.toFixed(1),
                    'AVG FPS: ' + avgFPS.toFixed(1),
                    'Earth Day: ' + earthDay.toFixed(1)
                ];
                const pad = 6, lh = 18;
                let bw = 0;
                for (const t of lines) bw = Math.max(bw, ctx.measureText(t).width);
                const boxW = bw + pad * 2;
                const boxH = l