diff --git a/client/app.js b/client/app.js index 4817af9..214bda4 100644 --- a/client/app.js +++ b/client/app.js @@ -1789,6 +1789,10 @@ class GolfGame { document.body.appendChild(modal); this.setStatus('Hole complete'); + // Hide bottom bar so it doesn't overlay the modal + const bottomBar = document.getElementById('mobile-bottom-bar'); + if (bottomBar) bottomBar.classList.add('hidden'); + // Bind next button const nextBtn = document.getElementById('ss-next-btn'); nextBtn.addEventListener('click', () => { @@ -1918,6 +1922,10 @@ class GolfGame { this.clearScoresheetCountdown(); const modal = document.getElementById('scoresheet-modal'); if (modal) modal.remove(); + + // Restore bottom bar + const bottomBar = document.getElementById('mobile-bottom-bar'); + if (bottomBar) bottomBar.classList.remove('hidden'); } // --- V3_02: Dealing Animation --- diff --git a/client/style.css b/client/style.css index 20cadbc..2190ebb 100644 --- a/client/style.css +++ b/client/style.css @@ -5367,6 +5367,66 @@ body.mobile-portrait #waiting-screen { max-height: 100dvh; } +/* --- Mobile: Compact scoresheet modal --- */ +body.mobile-portrait .scoresheet-content { + padding: 14px 16px; + max-height: 90vh; + max-height: var(--app-height, 90vh); +} + +body.mobile-portrait .ss-header { + font-size: 0.95rem; + margin-bottom: 10px; +} + +body.mobile-portrait .ss-players { + gap: 8px; +} + +body.mobile-portrait .ss-player-row { + padding: 8px 10px; +} + +body.mobile-portrait .ss-player-header { + margin-bottom: 4px; +} + +body.mobile-portrait .ss-player-name { + font-size: 0.8rem; +} + +body.mobile-portrait .ss-mini-card { + width: 30px; + height: 22px; + font-size: 0.6rem; +} + +body.mobile-portrait .ss-columns { + gap: 6px; + margin-bottom: 4px; +} + +body.mobile-portrait .ss-column { + gap: 2px; + padding: 3px 4px; +} + +body.mobile-portrait .ss-col-score { + font-size: 0.6rem; +} + +body.mobile-portrait .ss-scores { + font-size: 0.7rem; + gap: 12px; + margin-top: 2px; +} + +body.mobile-portrait .ss-next-btn { + margin-top: 10px; + padding: 8px; + font-size: 0.85rem; +} + /* --- Mobile: Very short screens (e.g. iPhone SE) --- */ @media (max-height: 600px) { body.mobile-portrait .opponents-row {