/** * Game Platform SDK * * window.GameSDK is injected by the platform before your bundle loads. * Call it as a global — no import needed. * * const result = await GameSDK.submit(100) * // { ok: true, rank: 3 } * * For TypeScript projects, copy game-sdk.d.ts into your source tree (or * reference it in tsconfig) to get type checking and autocomplete. * * API: * GameSDK.gameId — string * GameSDK.getPlayerName() — string * GameSDK.submit(score) — Promise<{ ok: true, rank } | { ok: false, error }> */