// Boot — set up scaling/input before anything loads.
window.BootScene = class BootScene extends Phaser.Scene {
  constructor() { super('Boot'); }

  create() {
    // Cap pixelRatio at 1 for locked 60fps (never 2).
    this.scale.setGameSize(window.GAME.WIDTH, window.GAME.HEIGHT);

    // Unlock audio on the very first user gesture (pointer or key).
    const unlock = () => window.Audio.unlock();
    this.input.once('pointerdown', unlock);
    this.input.keyboard.once('keydown', unlock);

    this.scene.start('Preload');
  }
};
