@@ -211,16 +211,18 @@ canvas {
211211 will-change : height, transform;
212212}
213213
214- /* Before play: a panel filling the bottom half, behind which the canvas shows
215- the "click anywhere to start" prompt. Slides up on first paint. */
214+ /* Before play: a panel anchored to the bottom, only as tall as its content,
215+ behind which the canvas shows the "click anywhere to start" prompt. Slides up
216+ on first paint. */
216217.menu .is-panel {
217- height : 54vh ;
218- padding : clamp (16px , 3vh , 32px ) 24px ;
218+ height : auto;
219+ max-height : 82vh ;
220+ padding : clamp (16px , 3vh , 32px ) 24px clamp (20px , 4vh , 40px );
219221 overflow-y : auto;
220222 background : linear-gradient (
221223 to top,
222224 rgba (9 , 4 , 24 , 0.96 ),
223- rgba (20 , 9 , 46 , 0.86 ) 60 % ,
225+ rgba (20 , 9 , 46 , 0.86 ) 70 % ,
224226 rgba (20 , 9 , 46 , 0 )
225227 );
226228 animation : menu-rise 0.5s cubic-bezier (0.22 , 0.61 , 0.36 , 1 ) both;
@@ -310,8 +312,9 @@ canvas {
310312 display : flex;
311313 align-items : center;
312314 justify-content : center;
313- /* Centre the prompt in the top portion, above the bottom-half panel. */
314- padding-bottom : 54vh ;
315+ /* Bias the prompt toward the upper area so it sits clear of the bottom panel
316+ (which is only as tall as its content). */
317+ padding-bottom : clamp (200px , 30vh , 380px );
315318 cursor : pointer;
316319}
317320
@@ -334,6 +337,25 @@ canvas {
334337 opacity : 0.85 ;
335338}
336339
340+ /* Short screens: the bottom panel would leave no room for the prompt above it
341+ (they'd overlap), so centre the menu like a modal and drop the prompt — the
342+ click-to-start target still covers everything outside the centred card. */
343+ @media (max-height : 640px ) {
344+ .start-menu-prompt {
345+ display : none;
346+ }
347+ .menu .is-panel {
348+ top : 0 ;
349+ max-height : 100% ;
350+ align-items : center;
351+ background : radial-gradient (
352+ circle at 50% 45% ,
353+ rgba (40 , 18 , 82 , 0.62 ),
354+ rgba (9 , 4 , 24 , 0.94 )
355+ );
356+ }
357+ }
358+
337359.menu-card {
338360 width : min (600px , 100% );
339361 text-align : center;
0 commit comments