REFERRAL EXTRA ROLL FIX

ROOT CAUSE
The page expects js/referral-bonus.js, but that file was missing. The uploaded script.js is a different demo and does not match this HTML.

UPLOAD THESE FILES
1. index.html
2. js/referral-bonus.js
3. telegram-roll.php
4. telegram-config.php

SERVER REQUIREMENTS
- PHP folder must allow telegram-roll.php to create/write invite-registry.php.
- Keep all four files in the paths shown above.
- Do not rename telegram-roll.php or telegram-config.php.
- Clear browser/server cache after upload.

HOW IT WORKS
- Inviter logs in and receives a personal ?ref=CODE link.
- Friend opens that link and completes one roll.
- Server records +1 pending roll for the inviter.
- Inviter opens/refocuses the page and the pending roll is claimed.
- The ROLL DICE button changes to USE EXTRA ROLL.
- The same phone can reward the same invite code only once.
- Self-referrals are blocked.

IMPORTANT
Your original js/app.js and game assets must remain on the server. This update does not replace the main game engine.
