Hidden means hidden on every element: .btn{display:block} beat the hidden attribute, so signed-in players still saw 'Sign in to keep progress'

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-03 10:09:33 -05:00
parent 84b520bcd7
commit 19b4bf8fbb
+1 -1
View File
@@ -35,7 +35,7 @@ canvas#game{position:absolute;inset:0;width:100%;height:100%;display:block;touch
@keyframes pop{0%{transform:translate(-50%,10px) scale(.7)}30%{transform:translate(-50%,0) scale(1.1)}100%{transform:translate(-50%,-30px) scale(1)}}
.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}
[hidden]{display:none!important} /* every element, not just overlays: .btn{display:block} was beating the hidden attribute, so signed-in players still saw "Sign in to keep progress" (Marty, 2026-10-03) */
/* 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))}