diff --git a/README.md b/README.md index 5a41cf1..8a15f86 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ The home page lists one **Games Hub** card (`games/`). Individual games live on - **Odd One Out** (`games/odd/`) — four tiles, three match; tap the different shape or color; best streak - **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 - **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 d8bb9ad..ff28f9d 100644 --- a/assets/site.css +++ b/assets/site.css @@ -1195,6 +1195,70 @@ body[data-tool="collab"] .site-footer { display: none; } padding: 0.85rem 1rem; } +/* Find Number */ +.find-stage { + display: flex; + flex-direction: column; + align-items: center; + gap: 1.1rem; + width: min(100%, 420px); + margin: 0 auto; +} +.find-target { + margin: 0; + font-size: clamp(2.8rem, 12vw, 4rem); + font-weight: 900; + line-height: 1; + letter-spacing: -0.03em; + color: var(--color-gold, #ffc300); + min-height: 1.1em; + text-align: center; + font-variant-numeric: tabular-nums; +} +.find-target.ok { color: #4ade80; } +.find-target.err { color: #f87171; } +.find-grid { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 0.55rem; + width: 100%; +} +.find-cell { + min-height: 68px; + min-width: 0; + padding: 0.55rem 0.3rem; + border-radius: 14px; + border: 1px solid var(--color-line); + background: var(--color-card); + color: var(--color-text); + font-family: inherit; + font-size: 1.2rem; + font-weight: 800; + font-variant-numeric: tabular-nums; + cursor: pointer; + user-select: none; + -webkit-tap-highlight-color: transparent; + transition: border-color 0.12s ease, background 0.12s ease, transform 0.08s ease, color 0.12s ease; +} +.find-cell:hover:not(:disabled) { + border-color: rgba(255, 195, 0, 0.55); + color: var(--color-accent); +} +.find-cell:active:not(:disabled) { + transform: scale(0.97); +} +.find-cell:disabled { cursor: default; } +.find-cell.is-correct { + border-color: rgba(74, 222, 128, 0.7); + background: rgba(74, 222, 128, 0.14); + color: #4ade80; +} +.find-cell.is-miss { + border-color: rgba(248, 113, 113, 0.7); + background: rgba(248, 113, 113, 0.12); + color: #f87171; +} + @media (max-width: 420px) { .memory-grid, @@ -1261,4 +1325,10 @@ body[data-tool="collab"] .site-footer { display: none; } font-size: 1rem; } + .find-cell { + min-height: 56px; + font-size: 1.05rem; + padding: 0.45rem 0.2rem; + } + } diff --git a/games/find/index.html b/games/find/index.html new file mode 100644 index 0000000..4d2de16 --- /dev/null +++ b/games/find/index.html @@ -0,0 +1,190 @@ + + + + + + Find Number | RMKR Toolkit + + + + + + + + +
+ ← Focus Games +

Find Number

+

A target from 1–99 is shown. Sixteen different numbers fill a 4×4 grid, and exactly one matches. Tap the matching cell. Keep a streak going.

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

Press Start, then tap the matching number.

+
+
+ + +
+
+
+ + + diff --git a/games/index.html b/games/index.html index 35af6cd..da2b6ba 100644 --- a/games/index.html +++ b/games/index.html @@ -4,7 +4,7 @@ Focus Games | RMKR Toolkit - + @@ -57,6 +57,10 @@

Higher or Lower

Quick Math

Add or subtract small numbers. Tap the right answer from four choices. Best streak stays local.

+ +

Find Number

+

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

+

Casual Quiz

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