@wasm-gaming/blastem-wasm 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,6 +89,32 @@
89
89
  .item.is-danger.is-focused small { color: #450a0a; }
90
90
  .bem-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
91
91
  .bem-panel .row .item { text-align: center; }
92
+ /* the slots in the pause menu: a compact row of the same frames */
93
+ .bem-panel.is-pause { width: min(520px, 94vw); max-height: calc(100% - 24px); overflow-y: auto; scrollbar-width: none; }
94
+ .slots-label { margin: 6px 0 0; font: 600 0.72rem var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
95
+ .slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 4px 0 6px; }
96
+ .slot { all: unset; box-sizing: border-box; display: grid; gap: 4px; min-width: 0; cursor: pointer; transition: transform 0.18s var(--ease); }
97
+ .slot .point-frame { border-radius: 8px; }
98
+ .slot.is-empty .point-frame { border-style: dashed; background: transparent; }
99
+ .slot.is-focused { transform: translateY(-3px); }
100
+ .slot.is-focused .point-frame { box-shadow: var(--ring), 0 18px 40px -20px #000; border-color: transparent; }
101
+ .slot-label { font: 700 0.8rem var(--ui); text-align: center; }
102
+ .slot-date { font: 500 0.68rem var(--ui); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
103
+ @media (max-width: 420px) { .slots { gap: 7px; } .slot-date { font-size: 0.6rem; } }
104
+ @media (max-height: 480px) {
105
+ .bem-panel.is-pause { padding: 16px 20px; gap: 7px; }
106
+ .bem-panel.is-pause .item { padding: 9px 14px; }
107
+ .bem-panel.is-pause h2 { margin-bottom: 2px; }
108
+ }
109
+ /* A phone on its side: two columns — the entries left, the slots right — so nothing scrolls. */
110
+ @media (max-height: 480px) and (min-width: 560px) {
111
+ .bem-panel.is-pause { width: min(780px, 96vw); grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 22px; align-content: start; }
112
+ .bem-panel.is-pause > * { grid-column: 1; }
113
+ .bem-panel.is-pause > .slots-label { grid-column: 2; grid-row: 1; }
114
+ .bem-panel.is-pause > .slots { grid-column: 2; grid-row: 2 / span 4; align-self: center; }
115
+ .bem-panel.is-pause > .bem-hints { grid-column: 1 / -1; }
116
+ }
117
+
92
118
  /* A dialog sits on its own layer, above anything the screen under it positions (the
93
119
  character art on the slot cards is z-index 1), on a backdrop that hides that screen. */
94
120
  .bem-layer {
@@ -111,6 +137,17 @@
111
137
  .bem-hints span { display: inline-flex; align-items: center; gap: 7px; }
112
138
  .bem-hints kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgb(255 255 255 / 0.12); color: var(--text); font: 700 0.68rem var(--ui); }
113
139
  .bem-panel .bem-hints { justify-content: flex-start; margin-top: 6px; }
140
+ .bem-hints .hint { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
141
+ .bem-hints .hint:hover { color: var(--text); }
142
+ .bem-overlay button { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
143
+ /* Touch screens: the hints are the on-screen buttons — a finger-sized target, no gamepad glyph —
144
+ and the gamepad-only ones (←→, "A elegir") go. */
145
+ @media (pointer: coarse) {
146
+ .bem-hints { gap: 10px; }
147
+ .bem-hints .is-pad { display: none; }
148
+ .bem-hints kbd { display: none; }
149
+ .bem-hints .hint { min-height: 44px; padding: 0 16px; border-radius: 22px; background: rgb(255 255 255 / 0.08); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
150
+ }
114
151
 
115
152
  .bem-toast {
116
153
  position: absolute; left: 50%; bottom: calc(28px + var(--wg-safe-bottom, 0px)); transform: translateX(-50%); margin: 0;
@@ -126,3 +163,7 @@
126
163
  @media (prefers-reduced-motion: reduce) {
127
164
  .point, .point-frame, .bem-boot img, .bem-toast { transition: none; animation: none; }
128
165
  }
166
+
167
+ /* Ajustes (engine-specs createSettingsScreen): over the pause menu, inside the safe areas. */
168
+ .bem-settings { padding: max(16px, var(--wg-safe-top, 0px)) 16px max(16px, var(--wg-safe-bottom, 0px)); }
169
+ .bem-settings .wg-settings { max-height: 100%; }