Mystery Hunt Box + Ad Detective, badge tiers

Finish the day's Code Hunts to unlock one box a day. It opens to an Ad
Detective case on one site with a fixed 0.15 POL reward shown up front:
visit (the embed records the visit after the dwell, no code), then answer
one question, one attempt. Paid inside the house cap, never counted as a
find. 34-question bank seeded from lib/detective-bank.json; a hunter never
repeats a question until they have seen every one for that site. Admin
panel with per-question stats and retire/restore.

New badges (all ledger-derived): Detective, Sleuth, Investigator, Master
Detective; Scout, Guide, Trail Boss; Week Sweep; 7-Day Streak. Badges
already earned on deploy are marked announced without posting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-26 16:10:17 -05:00
parent 64ab0b505f
commit 469cbf69a5
25 changed files with 1334 additions and 423 deletions
+13
View File
@@ -141,3 +141,16 @@ textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--
/* the one condition that decides whether a referral ever pays, said plainly on the card itself
rather than discovered when the bounty does not arrive (Marty, 2026-09-23) */
.ref-note{margin-top:8px;font-size:12.5px;line-height:1.45;color:var(--dim)}
/* Mystery Hunt Box + Ad Detective (2026-09-26) */
.box-card{margin:12px 0 16px;padding:16px 18px;border-radius:16px;border:1px solid rgba(243,190,67,.45);background:linear-gradient(135deg,rgba(243,190,67,.10),rgba(130,71,229,.14))}
.box-card h3{margin:4px 0 8px;font-size:18px}
.box-card p{margin:0 0 10px;line-height:1.5}
.box-hd{font:700 12px var(--font);letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.box-dim{color:var(--muted);font-size:13px}
.box-rule{font-weight:700;color:var(--gold);font-size:14px}
.box-q{font-size:17px;font-weight:700}
.box-opts{display:grid;gap:8px;margin:0 0 12px}
.box-opt{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:12px;border:1px solid var(--edge);background:rgba(0,0,0,.25);cursor:pointer;line-height:1.4}
.box-opt:has(input:checked){border-color:var(--gold);background:rgba(243,190,67,.12)}
.box-opt input{margin-top:3px;accent-color:#f3be43}