Pabloler21 Claude Fable 5 commited on
Commit
1eee17c
Β·
1 Parent(s): 35d7ded

fix: full-screen menu, centered content, collapse hidden view, corner How-to-Play

Browse files

- #menu-view fills the viewport (100vh) and centers title+buttons as one group
- menu bg/scrim/grain/vig become position:fixed so they cover the whole screen
instead of only the title block's band
- force display:none on the hidden menu/game column (id-specificity was beating
Gradio's hide class, leaving a black gap above the game on entry)
- pin How to Play to the top-right corner

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files changed (1) hide show
  1. styles.css +18 -12
styles.css CHANGED
@@ -864,18 +864,24 @@ footer { display: none !important; }
864
  /* ── 23. Opening menu β€” Direction C ── */
865
  #menu-view {
866
  position: relative;
867
- min-height: 560px;
868
  display: flex;
869
  flex-direction: column;
870
  align-items: center;
871
- justify-content: flex-start;
872
  overflow: hidden;
873
  border: none !important;
874
  background: #04040a;
875
  }
876
 
 
 
 
 
 
 
877
  .menu-bg {
878
- position: absolute;
879
  inset: 0;
880
  background-size: cover;
881
  background-position: center 38%;
@@ -883,7 +889,7 @@ footer { display: none !important; }
883
  }
884
 
885
  .menu-scrim {
886
- position: absolute;
887
  inset: 0;
888
  background: radial-gradient(ellipse at 50% 30%, transparent 25%, rgba(4,4,10,0.92) 100%);
889
  pointer-events: none;
@@ -891,7 +897,7 @@ footer { display: none !important; }
891
  }
892
 
893
  .menu-grain {
894
- position: absolute;
895
  inset: 0;
896
  pointer-events: none;
897
  z-index: 2;
@@ -900,7 +906,7 @@ footer { display: none !important; }
900
  }
901
 
902
  .menu-vig {
903
- position: absolute;
904
  inset: 0;
905
  pointer-events: none;
906
  z-index: 2;
@@ -911,7 +917,7 @@ footer { display: none !important; }
911
  position: relative;
912
  z-index: 3;
913
  text-align: center;
914
- padding-top: 84px;
915
  font-family: Georgia, serif;
916
  }
917
 
@@ -994,10 +1000,10 @@ footer { display: none !important; }
994
  }
995
 
996
  #btn-howto {
997
- position: absolute;
998
- top: 18px;
999
- right: 18px;
1000
- z-index: 5;
1001
  font-size: 0.82rem !important;
1002
  letter-spacing: 0.14em !important;
1003
  color: #8a7aa2 !important;
@@ -1010,7 +1016,7 @@ footer { display: none !important; }
1010
  }
1011
 
1012
  #btn-tester, #btn-full {
1013
- margin-top: 44px !important;
1014
  }
1015
 
1016
  /* ── 24. How to Play overlay ── */
 
864
  /* ── 23. Opening menu β€” Direction C ── */
865
  #menu-view {
866
  position: relative;
867
+ min-height: 100vh;
868
  display: flex;
869
  flex-direction: column;
870
  align-items: center;
871
+ justify-content: center; /* center title+buttons as one vertical group */
872
  overflow: hidden;
873
  border: none !important;
874
  background: #04040a;
875
  }
876
 
877
+ /* Gradio hides a visible=False column via a class; our id-level display:flex
878
+ would otherwise win on specificity and the hidden menu keeps reserving its
879
+ min-height (a black gap above the game). Force the collapse. */
880
+ #menu-view.hide, #menu-view.hidden,
881
+ #game-view.hide, #game-view.hidden { display: none !important; }
882
+
883
  .menu-bg {
884
+ position: fixed;
885
  inset: 0;
886
  background-size: cover;
887
  background-position: center 38%;
 
889
  }
890
 
891
  .menu-scrim {
892
+ position: fixed;
893
  inset: 0;
894
  background: radial-gradient(ellipse at 50% 30%, transparent 25%, rgba(4,4,10,0.92) 100%);
895
  pointer-events: none;
 
897
  }
898
 
899
  .menu-grain {
900
+ position: fixed;
901
  inset: 0;
902
  pointer-events: none;
903
  z-index: 2;
 
906
  }
907
 
908
  .menu-vig {
909
+ position: fixed;
910
  inset: 0;
911
  pointer-events: none;
912
  z-index: 2;
 
917
  position: relative;
918
  z-index: 3;
919
  text-align: center;
920
+ padding-top: 0;
921
  font-family: Georgia, serif;
922
  }
923
 
 
1000
  }
1001
 
1002
  #btn-howto {
1003
+ position: fixed;
1004
+ top: 16px;
1005
+ right: 20px;
1006
+ z-index: 6;
1007
  font-size: 0.82rem !important;
1008
  letter-spacing: 0.14em !important;
1009
  color: #8a7aa2 !important;
 
1016
  }
1017
 
1018
  #btn-tester, #btn-full {
1019
+ margin-top: 24px !important;
1020
  }
1021
 
1022
  /* ── 24. How to Play overlay ── */