From 435b24bfb83feb645356d69e31921429e1225326 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Sat, 21 Feb 2026 11:15:18 +0000 Subject: [PATCH] Replace disconnected overlay with slim banner matching stale style MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same top-banner pattern as the stale indicator but with red accent and 'Connection lost — retrying every 2s...' message. Page gets subtle greyscale/dim instead of a blocking overlay. --- site/index.html | 58 +++++++++++++++---------------------------------- 1 file changed, 17 insertions(+), 41 deletions(-) diff --git a/site/index.html b/site/index.html index f629f42..f4ad372 100644 --- a/site/index.html +++ b/site/index.html @@ -124,21 +124,17 @@ h1 { color: #fff; font-size: 1.5em; text-align: center; } .zero-state h2 { color: #fff; font-size: 2em; } .zero-state p { color: #888; font-size: 1.1em; max-width: 400px; line-height: 1.5; } -/* ===== DISCONNECTED OVERLAY ===== */ -.disconnected-overlay { - position: fixed; inset: 0; background: rgba(0,0,0,0.7); - display: flex; align-items: center; justify-content: center; - z-index: 1000; backdrop-filter: blur(3px); +/* ===== DISCONNECTED BANNER ===== */ +.disconnected-banner { + position: fixed; top: 0; left: 0; right: 0; z-index: 1000; + background: rgba(40, 20, 20, 0.92); border-bottom: 1px solid #e74c3c; + padding: 8px 20px; text-align: center; font-size: 0.85em; color: #ccc; + display: none; backdrop-filter: blur(2px); + animation: stale-fade-in 0.3s ease-out; } -.disconnected-overlay .message { - background: #16213e; border: 2px solid #e74c3c; border-radius: 12px; - padding: 40px; text-align: center; max-width: 400px; -} -.disconnected-overlay .icon { font-size: 3em; margin-bottom: 15px; } -.disconnected-overlay h3 { color: #e74c3c; margin-bottom: 10px; } -.disconnected-overlay p { color: #888; font-size: 0.9em; } -.disconnected-overlay .retry { color: #555; font-size: 0.8em; margin-top: 15px; } -body.greyed-out .container { filter: grayscale(80%) brightness(0.5); pointer-events: none; } +.disconnected-banner .icon { margin-right: 6px; } +.disconnected-banner .retry-text { color: #e74c3c; font-weight: 500; } +body.greyed-out .container { filter: grayscale(60%) brightness(0.6); } /* ===== STALE STATE ===== */ .stale-banner { @@ -226,14 +222,10 @@ body.game-over .container { padding-top: 100px; } - -