nvas-game.js"}}"></script>
<script src="{{static "/js/auth.js"}}"></script>
<script src="{{static "/js/theme.js"}}"></script>
<script>
    // Initialize Canvas Game
    document.addEventListener('DOMContentLoaded', function() {
        // Initialize canvas game immediately
        window.canvasGame = new CanvasGame('game-canvas', null);
        console.log('Canvas game initialized');

        // Set up WebSocket connection callback
        function connectCanvasToWebSocket() {
            if (window.gameWS 