// In-game sign-in (2026-10-03): the InstantAdPay kit runs on this page, so a player signs in (or opens a free // InstantAdPay account) without leaving Drip Runner. The kit hands back the game token; /auth opens it as before. (function () { var box = document.getElementById('iapSignin'); if (!window.IAPSignin) { box.innerHTML = '

Sign-in could not load. Sign in on InstantAdPay instead.

'; return; } var m = /(?:^|;\s*)dr\.ref=([^;]+)/.exec(document.cookie || ''); // the share link a guest arrived on: their sponsor var s = /(?:^|;\s*)dr\.src=([^;]+)/.exec(document.cookie || ''); // paid-traffic source, if any (2026-10-03) var q = String(new URLSearchParams(location.search).get('ref') || '').replace(/[^A-Za-z0-9_.-]/g, '').slice(0, 40); // /signin?ref= works even where the cookie was refused (2026-10-05) IAPSignin.mount(box, { game: 'driprunner', src: s ? decodeURIComponent(s[1]).split('|')[0] : '', ref: q || (m ? decodeURIComponent(m[1]) : ''), title: 'Sign in to run', oneTap: IAPSignin.origin + '/api/my/driprunner' }); })();