diff --git a/frontend/src/app.css b/frontend/src/app.css index 0970236..889f800 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -65,3 +65,12 @@ button { font-family: inherit; cursor: pointer; } @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } .rise { animation: rise 0.5s ease both; } @media (prefers-reduced-motion: reduce) { .rise { animation: none; } html { scroll-behavior: auto; } } + +/* Daily Word on mobile becomes a focused, full-viewport screen: lock body scroll + and hide the site footer so the on-screen keyboard is truly pinned (not riding + the page's scroll). The .playing-word class is toggled by /play and always + removed on navigation via effect cleanup. Mobile only — desktop is unaffected. */ +@media (max-width: 720px) { + html.playing-word, html.playing-word body { overflow: hidden; } + html.playing-word footer.site { display: none; } +} diff --git a/frontend/src/lib/components/WordGame.svelte b/frontend/src/lib/components/WordGame.svelte index f6d8916..133f1fd 100644 --- a/frontend/src/lib/components/WordGame.svelte +++ b/frontend/src/lib/components/WordGame.svelte @@ -154,7 +154,7 @@
Loading today’s puzzle…
{:else}