<!DOCTYPE html>
            <html lang="en">
            <head>
                <meta charset="UTF-8">
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
                <title>dDugout</title>
                <style>
                    * { margin: 0; padding: 0; box-sizing: border-box; }
                    body { background: #1a1611; color: #e8ddd0; font-family: -apple-system, system-ui, sans-serif; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
                    .card { text-align: center; max-width: 400px; }
                    h1 { font-size: 32px; margin-bottom: 8px; color: #d4c8b0; }
                    p { color: #a89880; margin-bottom: 24px; font-size: 15px; }
                    .dl-btn { display: inline-block; padding: 14px 32px; background: #8b7355; color: #1a1611; font-size: 16px; font-weight: 700; border-radius: 8px; text-decoration: none; }
                    .dl-btn:hover { background: #a89880; }
                    .ver { margin-top: 16px; font-size: 12px; color: #7a6b58; }
                </style>
            </head>
            <body>
                <div class="card">
                    <h1>dDugout</h1>
                    <p>MLB scores, standings, and game audio</p>
                    <a href="/ddugout.apk" class="dl-btn" id="dl">Download APK</a>
                    <div class="ver" id="ver"></div>
                    <script>fetch("/version").then(r=>r.text()).then(v=>{v=v.trim();if(/^[0-9]/.test(v)){document.getElementById("ver").textContent="v"+v;document.getElementById("dl").href="/ddugout-"+v+".apk"}}).catch(()=>{});</script>
                </div>
            </body>
            </html>