Lobby scrolls on short phone screens and clears the browser toolbar (Hugh, iPhone Safari: Share your link sat under the bar)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,10 @@ canvas#game{position:absolute;inset:0;width:100%;height:100%;display:block;touch
|
||||
.mute{position:absolute;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:6;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:rgba(14,23,45,.7);color:var(--ink2);font:700 13px var(--mono);display:grid;place-items:center;cursor:pointer}
|
||||
.ov{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;justify-content:center;padding:calc(20px + env(safe-area-inset-top,0px)) 18px calc(20px + env(safe-area-inset-bottom,0px));background:rgba(5,9,18,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
|
||||
.ov[hidden]{display:none!important}
|
||||
/* 2026-10-01 (Hugh, iPhone Safari): the lobby is taller than a phone with the browser bar showing, and .phone clips overflow, so the last button sat under the toolbar. Overlays scroll, keep a bottom gap, and center only when they fit. */
|
||||
.ov{overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;justify-content:safe center}
|
||||
.ov.lobby{justify-content:space-between;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
|
||||
@media (max-height:760px){.logo{margin-top:3vh}}
|
||||
.ov.lobby{justify-content:space-between;background:linear-gradient(180deg,rgba(5,9,18,.15),rgba(5,9,18,.75) 60%,#050912)}
|
||||
.logo{font:900 42px/1 var(--display);letter-spacing:.06em;text-transform:uppercase;text-align:center;margin-top:10vh;background:linear-gradient(180deg,#fff 0%,var(--cyan2) 45%,var(--cyan) 60%,#0EA5C9 100%);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 22px rgba(34,211,238,.55));animation:hum 3s ease-in-out infinite}
|
||||
.logo span{display:block;background:linear-gradient(180deg,var(--gold2),var(--gold) 55%,#E08A00);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 0 22px rgba(255,194,75,.5))}
|
||||
|
||||
Reference in New Issue
Block a user