diff --git a/README.md b/README.md index cfa1c87..9dcce49 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ The home page lists one **Games Hub** card (`games/`). Individual games live on - **Turned or Flipped** (`games/turn/`) — reference vs probe shape; tap whether the probe is rotated or mirrored; best streak - **Spot the Change** (`games/change/`) — a grid of shapes blinks off and returns with one cell changed in shape or color; tap it; 3×3 growing to 4×4, look time shrinks with the streak; best streak - **More Dots** (`games/more/`) — two panels of dots; tap Left, Equal, or Right for the side with more; counts get closer and view time shrinks with the streak; best streak +- **Glow Grid** (`games/glow/`) — 12-level logic puzzle from 3×3 to 5×5; each tap flips a cell and its four neighbours, light every cell; par-move and time bonuses, pause and restart; best total score #### Casual Quiz (unlisted) diff --git a/assets/site.css b/assets/site.css index 45e7bb7..60d439d 100644 --- a/assets/site.css +++ b/assets/site.css @@ -1756,3 +1756,77 @@ body[data-tool="collab"] .site-footer { display: none; } -webkit-user-select: text; user-select: text; } + +/* Level games (Glow Grid, Echo Path): shared layout */ +.lv-help { + margin: 0 0 1rem; + padding: 0.75rem 1rem; + background: var(--color-card); + border: 1px solid var(--color-line); + border-radius: var(--radius); + font-size: 0.85rem; + color: var(--color-muted); +} +.lv-help summary { + cursor: pointer; + font-weight: 700; + color: var(--color-text); + min-height: 44px; + display: flex; + align-items: center; +} +.lv-help ul { margin: 0.25rem 0 0.4rem; padding-left: 1.2rem; } +.lv-stage { + position: relative; + width: min(100%, 420px); +} +.lv-grid { + display: grid; + grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); + gap: 0.5rem; + width: 100%; +} +.lv-cell { + aspect-ratio: 1; + min-width: 44px; + min-height: 44px; + padding: 0; + border-radius: 12px; + border: 1px solid var(--color-line); + background: linear-gradient(145deg, #1c2844, #121a2c); + color: var(--color-text); + font-family: inherit; + font-weight: 800; + cursor: pointer; + transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease; +} +.lv-cell:hover:not(:disabled) { border-color: rgba(255, 195, 0, 0.5); } +.lv-cell:disabled { cursor: default; } +.lv-cell:active:not(:disabled) { transform: scale(0.96); } +.lv-cell.is-on { + background: linear-gradient(145deg, #c9a000, #ffc300); + border-color: #ffc300; + color: var(--color-bg); + box-shadow: 0 0 0 2px rgba(255, 195, 0, 0.3); +} +.lv-cell.is-ok { + background: linear-gradient(145deg, #15803d, #4ade80); + border-color: #86efac; +} +.lv-cell.is-miss { + background: linear-gradient(145deg, #b91c1c, #f87171); + border-color: #fecaca; +} +.lv-paused { + position: absolute; + inset: 0; + display: flex; + align-items: center; + justify-content: center; + background: rgba(12, 21, 36, 0.94); + border-radius: var(--radius); + font-weight: 800; + font-size: 1.1rem; + color: var(--color-accent); +} +.lv-paused[hidden] { display: none; } diff --git a/games/glow/index.html b/games/glow/index.html new file mode 100644 index 0000000..35d11fb --- /dev/null +++ b/games/glow/index.html @@ -0,0 +1,269 @@ + + + + + + Glow Grid | RMKR Toolkit + + + + + + +
+ ← Focus Games +

Glow Grid

+

Every tap flips a cell and the cells above, below, left and right of it. Turn the whole grid gold. Twelve levels, from 3×3 up to 5×5.

+ +
+ How to play + +
+ +
+
+ Level: 1/12 + Moves: 0 (par —) + Time: 0s + Score: 0 + Best: — +
+
+ + + +
+
+

Press Start to begin at level 1.

+
+
+
+ +
+
+
+ + + diff --git a/games/index.html b/games/index.html index 131beec..4581bbe 100644 --- a/games/index.html +++ b/games/index.html @@ -4,7 +4,7 @@ Focus Games | RMKR Toolkit - + @@ -109,6 +109,10 @@

Spot the Change

More Dots

Two panels of dots flash up. Tap Left, Equal, or Right for the side with more — the gap narrows as you go.

+ +

Glow Grid

+

Twelve-level logic puzzle. Each tap flips a cell and its neighbours — light the whole grid near par for a high score.

+

How it works