Site Icon
💰
100
☀️ 🌙
}, 3000); } // Toggle event listener toggleBtn.addEventListener('click', () => { // Check if neon mode is globally active if (localStorage.getItem('globalNeonMode') === 'true') { showNeonModeMessage(); return; } if (isLightMode()) { document.body.classList.remove('light-mode'); localStorage.setItem('theme', 'dark'); toggleBtn.setAttribute('aria-pressed', 'false'); } else { document.body.classList.add('light-mode'); localStorage.setItem('theme', 'light'); toggleBtn.setAttribute('aria-pressed', 'true'); } updateToggleUI(); }); // Keyboard support for toggle toggleBtn.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); toggleBtn.click(); } }); // --- FIREBASE SETUP --- const firebaseConfig = { apiKey: "AIzaSyBBFh9Eb13F1WxpQE48_VyahsBfDXBkgVs", authDomain: "not-so-silly-goose.firebaseapp.com", databaseURL: "https://not-so-silly-goose-default-rtdb.firebaseio.com", projectId: "not-so-silly-goose", storageBucket: "not-so-silly-goose.appspot.com", messagingSenderId: "750405936670", appId: "1:750405936670:web:490c3c5f811f89ef782c3e" }; // Initialize Firebase if not already initialized if (!window.firebase) { firebase.initializeApp(firebaseConfig); } // Get canvas context const canvas = document.getElementById('gameCanvas'); const ctx = canvas.getContext('2d');