017017ad63
- Game sign-in kit (game-signin.js): after a fresh email sign-in (never a remembered pass) the kit shows the login ad before the hand-off to /auth?t=, same as the dashboard: sponsor card, Open Ad (a counted click through /api/ads/click), sponsor framed in a full-screen overlay when frameable else a new tab, 10 s countdown (loginDwellSeconds), then Continue to the game. No ad, an error, a non-200 or a 7 s stall all go straight to the game. A game page whose CSP blocks the frame gets a new-tab link instead. mount option loginAd: false switches it off. - GET /api/game/ads/login?game=<slug>: CORS only for that game's GAME_AUTH origins (dev: localhost); the dashboard /api/ads/slot route keeps no CORS. Both share loginAdFor() (ads.serve: impression + lastShownDay as before). Drip Runner and PolyBreak are marked frames: false (their CSP is default-src 'self'), so their ad opens in a new tab; frame checks for games ignore an instantadpay.com-only frame-ancestors allowance. - loginshows.js: every login-ad request tallied per Central day, surface (dashboard or game slug) and kind (member slot, house, none); MySQL table login_shows (created on first use) or DATA_DIR/login-shows.json. GET /api/admin/login-shows + a Login-ad showings card on the admin Traffic pane (dashboard vs games, house, no-ad, by game). - The kit is served no-cache so games pick it up without a tag bump; admin.js tag bumped. - Chatbot fact updated (slot rules + games), KNOWLEDGE_DATE 2026-10-18. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>