From 0cbfc2c1734b8a9e3767be356fa984a5188ae9bf Mon Sep 17 00:00:00 2001 From: Ramkumar Ethiraj Date: Sun, 27 Sep 2026 16:39:37 +0000 Subject: [PATCH] Add Pop Light focus game MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tap the gold cell on a 3×3 grid before it fades. A miss or a slow tap resets the streak, and the best streak stays in localStorage. Hits fill green and misses fill red so the result is easy to see. --- README.md | 1 + assets/site.css | 55 +++++++++++ games/index.html | 6 +- games/pop/index.html | 221 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 282 insertions(+), 1 deletion(-) create mode 100644 games/pop/index.html diff --git a/README.md b/README.md index 8a15f86..fff02f3 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ The home page lists one **Games Hub** card (`games/`). Individual games live on - **Higher or Lower** (`games/higher/`) — guess if the next number is higher or lower; best streak - **Quick Math** (`games/math/`) — mental arithmetic; tap the right answer; best streak - **Find Number** (`games/find/`) — spot the target number in a 4×4 grid; best streak +- **Pop Light** (`games/pop/`) — tap the gold cell on a 3×3 grid before it fades; best streak - **Casual Quiz** (`games/quiz/`) — multiple-choice on India, Tamil Nadu, science, technology, and more, plus a General mix. Switch topic or level anytime. Marks stay in `localStorage`. Questions live only in `games/quiz/questions.json`. #### How to add or change quiz questions diff --git a/assets/site.css b/assets/site.css index ff28f9d..229cec2 100644 --- a/assets/site.css +++ b/assets/site.css @@ -1259,6 +1259,58 @@ body[data-tool="collab"] .site-footer { display: none; } color: #f87171; } +/* Pop Light */ +.pop-stage { + width: min(100%, 420px); + margin: 0 auto; +} +.pop-grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 0.75rem; + width: 100%; +} +.pop-cell { + aspect-ratio: 1; + min-height: 96px; + min-width: 0; + padding: 0; + border-radius: 16px; + border: 1px solid var(--color-line); + background: linear-gradient(145deg, #1c2844, #121a2c); + color: transparent; + font-family: inherit; + cursor: pointer; + user-select: none; + -webkit-tap-highlight-color: transparent; + transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease; +} +.pop-cell:hover:not(:disabled):not(.is-lit) { + border-color: rgba(255, 195, 0, 0.5); +} +.pop-cell:disabled { cursor: default; } +.pop-cell.is-lit { + background: linear-gradient(145deg, #c9a000, #ffc300); + border-color: #ffc300; + box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.35); + transform: scale(1.02); +} +.pop-cell:active:not(:disabled) { + transform: scale(0.97); +} +.pop-cell.is-correct { + background: linear-gradient(145deg, #15803d, #4ade80); + border-color: #86efac; + box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.35); + transform: none; +} +.pop-cell.is-miss { + background: linear-gradient(145deg, #b91c1c, #f87171); + border-color: #fecaca; + box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.35); + transform: none; +} + @media (max-width: 420px) { .memory-grid, @@ -1331,4 +1383,7 @@ body[data-tool="collab"] .site-footer { display: none; } padding: 0.45rem 0.2rem; } + .pop-grid { gap: 0.55rem; } + .pop-cell { min-height: 84px; border-radius: 14px; } + } diff --git a/games/index.html b/games/index.html index da2b6ba..adc667d 100644 --- a/games/index.html +++ b/games/index.html @@ -4,7 +4,7 @@ Focus Games | RMKR Toolkit - + @@ -61,6 +61,10 @@

Quick Math

Find Number

A target from 1–99. Tap the matching cell in a 4×4 grid. Best streak stays local.

+ +

Pop Light

+

One cell lights gold on a 3×3 grid. Tap it before it fades. Best streak stays local.

+

Casual Quiz

Multiple-choice on India, Tamil Nadu, science, tech, and more. Switch topic or level anytime.

diff --git a/games/pop/index.html b/games/pop/index.html new file mode 100644 index 0000000..d55d56f --- /dev/null +++ b/games/pop/index.html @@ -0,0 +1,221 @@ + + + + + + Pop Light | RMKR Toolkit + + + + + + + + +
+ ← Focus Games +

Pop Light

+

One cell on a 3×3 grid lights gold. Tap that cell before it fades. A wrong tap or a slow one resets your streak.

+ +
+
+ Streak: 0 + Best: — +
+
+ +
+
+

Press Start, then tap the gold cell.

+
+
+ +
+
+
+ + +