From 1eeac016ba1094b085f07ae9c529d0fd44739106 Mon Sep 17 00:00:00 2001 From: jwinterm Date: Thu, 5 Mar 2026 08:56:48 -0500 Subject: [PATCH] fix ad display --- index.html | 6 ++++-- styles.css | 25 ++++++++++++------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index 18b027e..ecead07 100644 --- a/index.html +++ b/index.html @@ -82,8 +82,10 @@ var embed = document.getElementById('embed-html'); var gwtLoaded = false; - // Request the first ad for the initial overlay - try { (adsbygoogle = window.adsbygoogle || []).push({}); } catch(e) {} + // Request the first ad for the initial overlay (defer until layout is done) + setTimeout(function() { + try { (adsbygoogle = window.adsbygoogle || []).push({}); } catch(e) { console.warn('AdSense init error:', e); } + }, 500); // Called when user clicks "Continue to Web Version" // Also called from GwtAdManager via JSNI after between-game nag diff --git a/styles.css b/styles.css index e940f43..d0ceb83 100644 --- a/styles.css +++ b/styles.css @@ -138,30 +138,29 @@ body { #nag-ad-container { margin: 0 0 1.2rem; min-height: 100px; - display: flex; - align-items: center; - justify-content: center; + width: 100%; } -/* Continue button */ +/* Continue button — prominent, this IS the main action for most visitors */ #nag-continue { display: block; width: 100%; - padding: 0.75rem; - background: transparent; - color: #777; - border: 1px solid #333; + padding: 0.85rem; + background: #2a2a2a; + color: #eee; + border: 1px solid #555; border-radius: 6px; - font-size: 0.9rem; - font-weight: 500; + font-size: 1rem; + font-weight: 600; cursor: pointer; - transition: color 0.15s ease, border-color 0.15s ease; + transition: background 0.15s ease, border-color 0.15s ease; font-family: inherit; + letter-spacing: 0.02em; } #nag-continue:hover { - color: #bbb; - border-color: #555; + background: #383838; + border-color: #777; } /* Fine print */