diff --git a/README.md b/README.md index 4bca052c..c6c4f47e 100644 --- a/README.md +++ b/README.md @@ -128,7 +128,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - **Captains' preview.** While `PAYMENTS.enabled` is false, a captain who opens `shop/` on the live site gets the real shop with the server wallet in that browser tab: once `captains.js` confirms the signed-in account is a captain, the page sets `sessionStorage['cosmetics:preview']` and opens, with a bar saying it is the captains' preview. Everyone else still sees "not open yet", and the server refuses everyone but captains (`functions/_catalog.js` `PUBLIC: false`), so the preview can't be opened by anyone else by editing their browser. If the account stops being a captain the tab goes back to "not open yet". **To turn the preview off**: set `var CAPTAIN_PREVIEW = false;` near the top of `cosmetics.js` (nothing else; the server needs no change). `?preview=0` on the shop page ends it for one tab. - **Wearing only what you own (`owned.js`, for games).** Buying is checked on the server, but each game decides in the browser what a player wears, so a player can edit their own page and wear any skin, and other players' pages would draw it. `GET https://ascoding11.com/api/owned?uids=a,b,c` (public, no sign-in, at most 24 uids, cached 60 s at Cloudflare's edge by the sorted list, cache misses limited per address) answers `{ v: 1, players: { uid: '*' | [item ids] }, give: [item ids] }`: `'*'` is a captain (owns everything), the list is the wallet's `owned` (gifts included) plus item-shop skus from `entitlements`, empty for an unknown uid or a wallet below zero, and `give` the free and earned items anyone may wear (a game hands those out in the browser, so the server can't know). No balance, history, notes or email are ever in it. `e63334287a3deaa3/owned.js` wraps it: **to wire it into a game**, add `` after `cosmetics.js`, call `BackRoomOwned.want([uids])` as players join, and wherever the game draws ANOTHER player's skin, accessory or item id (never the local player's own, which the page already knows), use it only when `!BackRoomOwned.active() || BackRoomOwned.check(uid, id) === true`, otherwise draw the default look; `check()` returns `true`, `false`, or `undefined` while the answer isn't in yet or the server can't be reached (draw the default look then too: it never throws), and `BackRoomOwned.onChange(fn)` calls `fn(uids)` when answers arrive so the game can redraw those players. `active()` is true once `PAYMENTS.enabled` is on; until then nothing is sold and games needn't check. Answers are batched (24 uids a request) and kept 60 seconds, so a game adds one small request a minute at most. The uid is the player's Firebase uid (the one games already put in their room data); a player not signed in with Google owns nothing on the server, so they are drawn with the default look once a game checks. No game uses it yet. - **Setup checklist for the owners (nothing here works until this is done).** 1. Cloudflare (Workers & Pages → the site → Settings → Variables and secrets), names only, values never in the repo: `STRIPE_SECRET_KEY` (start with the test key `sk_test_…`), `STRIPE_WEBHOOK_SECRET` (`whsec_…` from step 3), `FIREBASE_SERVICE_ACCOUNT` (the whole JSON key of a service account of project rumblekarts that can write Firestore). The item shop already uses these three; nothing new is needed if they are set. 2. Stripe, in test mode first: on each of the six emerald prices set the lookup key `emeralds_7`, `emeralds_39`, `emeralds_80`, `emeralds_180`, `emeralds_1000`, `emeralds_4000` (one-time prices in USD of exactly $0.99, $4.99, $9.99, $19.99, $49.99, $99.99; any other amount is refused). 3. Stripe → Developers → Webhooks: an endpoint `https://ascoding11.com/api/stripe-webhook` with the events `checkout.session.completed`, `checkout.session.async_payment_succeeded`, `charge.refunded`, `charge.dispute.created` and `charge.dispute.closed` (the item shop's endpoint, if it exists, already is this: tick the three `charge.` events on it; without them refunds and chargebacks don't take emeralds back); its signing secret is `STRIPE_WEBHOOK_SECRET`. Only this one endpoint, in the mode of the key in Cloudflare: don't tick "Listen to events on Connected accounts" for it. Payment Links (the six test ones) credit nobody: archive them, and refund any payment that shows up in Firestore `orders` as `unclaimed`. 3b. Firebase → Firestore → Rules: confirm, without changing anything else, that no rule lets a browser read or write `wallets`, `ledger`, `orders` or `entitlements`; the server writes with the service account, which skips the rules, so the minimal rules are `match /wallets/{id} { allow read, write: if false; }` and the same four lines for `ledger/{id}`, `orders/{id}` and `entitlements/{id}`, and there must be NO wide rule such as `match /{document=**} { allow read, write: if … }` or a test-mode `request.time < …` rule (Firestore allows a request when ANY rule allows it, so a wide rule opens these too: a player could then write their own balance). 3c. Cloudflare (optional, recommended): Security → WAF → Rate limiting rules, one rule for paths starting `/api/` (for example 60 requests per 10 seconds per IP, block for 10 seconds); the server's own limits are per player and per instance, and this one covers floods before they reach Firestore. 4. Check it worked: signed in with Google as a captain, open `https://ascoding11.com/e63334287a3deaa3/shop/`; the preview bar and the "Test mode" tag show, and the balance shows "∞". Buy the Emerald Handful with Stripe's test card 4242 4242 4242 4242; you come back to the shop, which says "Added 7 emeralds"; in Firebase's Firestore console `wallets/` has `balance` 119 and a `ledger` row, and `orders/` says `credited`; in Stripe the webhook delivery shows 200. Open a chest and send a gift to the other owner (who must have opened the shop once): their `wallets` document shows the item and a notice. 5. To go live: swap both Stripe values in Cloudflare together for the live key and the live webhook's secret (with the same lookup keys on the live prices; while only one is swapped every payment is recorded `unclaimed` with reason `mode` and credits nobody), set `PAYMENTS.enabled: true` in `wallet.js`, run `node e63334287a3deaa3/shop/tools/server-data.js`, and commit `wallet.js` and `functions/_catalog.js` together. -- `e63334287a3deaa3/miles.js`: status tiers, "miles with us" (Back Room). Every player is **Economy**, **Business Class**, **First Class** or **Private Jet**, except the site's two owners, who are always **Captain** (see below), shown as a small pill next to their name in the Online panel, the Party panel, the Leaderboards and the admin page (loaded in the same four places as `avatar.js`). `window.BackRoomMiles = {of(node, uid, now), tierOf(miles), isOwner(uid), badge(result, {miles}), line(result), peek(uid), load(uid), fmt, TIERS, RULES, CAPTAIN, OWNERS, setTops(tops), topOf(uid), needTops(), awardsOf(result), aceOf(result), crackerOf(result), AWARDS, AWARD_KINDS}`. `of` takes a leaderboard node (`rooms/lb-all/players/`, raw or already parsed by `leaderboard.js`), checks it with `BackRoomBoards.parse` (the same caps and ranges the boards use, so a stale, oversized or impossible node is simply Economy with `ok: false`, and nothing it contains is ever shown as HTML) and gives `{miles, tier, next: {tier, miles} or null at the top, hours, play, bonus, ok}`. **The formula:** 100 miles per hour played (the hours the boards accept: at most 24 a day since 21 October 2026, all games together) plus points for success in each game, each kind capped so no single game carries someone (the table is `RULES` in the file): running counts, wins 40 each in Rumble Karts, Backrooms and Boostball (cap 4,000), kills 2 in Shell Crackers and Backrooms (2,000), wrecks 2 (2,000), goals 10 (2,000), Coil cut-offs 5 (2,000), Chromaflage hiders found 10 (2,000) and rounds hidden 20 (2,000), Odd One Out props found 5 (2,000) and rounds won 20 (2,000), Tumble Trials crowns 50 (4,000) and shows 5 (1,000), Spire towers 20 (2,000), Trivium streak 30 a day (1,500), Showdown hands 2 (1,000), Gridpop lines 2 (1,000), Stackfall lines 5 (1,000), watermelons 50 (1,500), Puffer Party online wins 20 (2,000) and answers 1 (1,000), daily puzzles finished (the Daily Puzzles page's `done`) 5 (2,000) and its best daily streak 10 a day (1,000); personal bests, Elo above 1,200 at 4 a point (3,000 at 1,950 Elo), fastest Spire tower under 10 minutes at 3 a second (1,500 at 100 s), fastest obby under an hour at 0.4 a second (1,200 at 10 min), fastest Updraft summit under an hour at 0.5 a second (1,500 at 10 min), Updraft height ÷ 2 (500 at the summit), a Slipstream lap within 2.5× the track's quickest possible lap up to 200 a track (2,000 for all tracks) and 100 a course record held (1,000), a 2048 tile of 2048 (500), 4096 (1,000) or 8192 and up (1,500) and best score ÷ 100 (500), Gridpop score ÷ 50 (1,000), Stackfall Classic and Sand scores ÷ 200 (1,000 each), Melon Merge score ÷ 10 (1,500), Coil's longest snake ÷ 10 (1,500), Trivium's best Daily ÷ 10 (1,500) and Showdown's biggest pot ÷ 200 (500). **Tiers:** Economy under 2,000, Business Class 2,000–9,999, First Class 10,000–39,999, Private Jet 40,000 and up. So an hour a day for three weeks is Business Class; First Class takes about 100 hours, or 50 with a lot of winning (a 1,950 Elo, 100 kart wins and an 8192 tile are 8,500 on their own); Private Jet is a year of play. **Captain:** a tier above Private Jet for the site's owners, Nico and Arjun, listed by account uid in `OWNERS` near the top of `miles.js` (Nico's two accounts and Arjun's three, each with a comment saying whose it is; add or delete a line to change it, and never match on names, since anyone can type any name). An owner's `of` result has `tier` Captain, `next: null`, `owner: true` and `real`, the tier their miles alone would earn; their `miles` are worked out exactly like everyone else's, so the admin page's Miles column shows and sorts by their real miles (with the Captain badge beside it), and nobody else's tier or the maths changes. The badge is pilot's wings in gold on a near-black navy pill with a gold rim (`.bra-tier-captain`), and on an owner's own Online card the progress line is "12,345 miles · flies the plane" instead of "N to " (`line(result)`). **Arjun (site founder):** one step above Captain, for Arjun alone (the site is his): Captain flies the plane, the founder built the airline. The tier is named Arjun, with a bow for its icon (Arjuna, the archer of the Mahabharata). His three accounts are in `FOUNDER_LIST` just under `OWNERS` (each must also stay in `OWNERS`, so `captains.js` and everything else a Captain gets is unchanged; only the badge differs). The badge is a gold drawn bow with an arrow nocked and pale-gold "Arjun" on a violet storm with a gold rim and a purple glow, with a flash of light sweeping across it every few seconds (`.bra-tier-founder`; still for anyone with reduced motion turned on), the same size as every other pill; the tooltip says "Arjun · site founder" and his Online card's line is "12,345 miles · site founder". `of` gives `tier` `FOUNDER` (named Arjun) with `owner: true` and `founder: true`; `isFounder(uid)` and `FOUNDER` are exported. **Every badge:** a **Badges** button in the Online panel's header, beside Cabin chat (`social.js`; on a phone the panel's buttons share their own row under the title), and another beside Refresh at the top of the Leaderboards (everywhere `leaderboard.js` draws them: the Back Room, the phone page, Slipstream and the admin page) open `BackRoomMiles.guide()`, a window listing every badge there is and how to get it: the four miles tiers, the crew (Vice Captain, Captain, Arjun), the Miles board's #1–#3 tags, and every award in `AWARD_KINDS` (the given ones, then the earned Slipstream ace and Top Cracker). Its words never state hours (players see no hours anywhere but the admin page): miles "come from time spent playing", Business Class is "a few weeks of regular play" and First Class "a lot of play, or about half as much with a lot of winning". Each is drawn by the same code as the real badges, so a new tier style or a new line in `AWARD_KINDS` shows up there by itself; it names no holders and reads nothing. The Leaderboards' button stays hidden until `miles.js` has loaded; the Online panel's does nothing on a page without it. This is a display rule, not a security feature: tiers are worked out in each viewer's browser from public data, so it only decides how pages draw the badge and grants nothing. The score rules were tuned against the live boards a week after they began (85 accounts: 77 Economy, 7 Business, 1 First under the first draft, several Business with under an hour of play because one good Stackfall or Coil sitting hit a cap), so a single sitting of a puzzle game is now worth a few hundred miles at most. Worked examples: 10 h of Coil + 100 cut-offs + an 8,000-long snake = 1,000 + 500 + 800 = 2,300 (Business); 50 h of Shell Crackers + Elo 1,950 + 3,000 kills = 5,000 + 3,000 (the cap) + 2,000 (the cap) = 10,000 (First Class exactly). For people online, `peek(uid)` gives the cached result (and starts a read when there is none or it is over 10 minutes old) and `load(uid)` a promise of it: one read of `rooms/lb-all/players/` per uid through `party.js`'s sign-in; a finished read fires `backroom:miles` on `document` (`detail.uid`), and so does the file when it loads. The Leaderboards and the admin page already hold every parsed node, so they call `of` directly. **Everything behind a tier is self-reported** by the player's own browser (see `stats.js`), so tiers are for fun, like the boards; nothing here writes to the database, and `stats.js`'s node format is unchanged. On the Leaderboards (`leaderboard.js`), rows show the player's avatar and tier badge (the tier worked out from the same checked node, so a node the boards would skip can't earn one) on a second line under the name, and the first board, **Miles**, ranks everyone by these miles (All time, the same number as the badge) or by miles from this week's play time (This week: `HOUR`, exported as `BackRoomMiles.HOUR`, per hour since Monday; bests and counts have no date, so they stay in All time). The badge always shows the all-time tier, on the weekly board too. **#1, #2, #3 tags:** the top three on the Miles board get a small squared tag after their tier pill, "#1 all time", "#2 all time", "#3 all time" and the same for this week (one player can hold one of each; the tooltip says "Ranked #2 in miles, all time"), everywhere the badge is drawn: Leaderboards rows, the Online panel (cards, your own row, an open chat's header), the Party panel and the admin page. All-time tags are solid gold, silver and bronze; this week's are the same three metals as text and rim on slate, so a week's medal reads as a step below an all-time one. The places are the board's own ranks, so after a tie for first nobody is second and the next player is third. `setTops` takes `all2`, `all3`, `week2`, `week3` beside `all` and `week`, and `topOf(uid).all` / `.week` are the place (1 to 3, or 0); an answer saved in `lb:tops` by a page from before this has only the firsts. It all happens inside `badge()`, so no panel works out ranks: for a leader `badge()` returns a `` holding the usual pill and the tags (`.bra-top-all`, `.bra-top-week`), for everyone else the plain pill exactly as before (`of` results now carry `uid`, which is how the badge knows whose it is). Who is first comes from `leaderboard.js`, not from here: after every read of the boards it calls `setTops({all: [uid…], week: [uid…], allTie, weekTie})` with the uids its own rows rank 1 (`BackRoomBoards.tops`), so the tag uses the same checked nodes, the same week and the same tie rule as the board and always agrees with it. **A tie for first gives every tied player the tag** (the board shows rank 1 beside each of them; the tooltip adds "tied for first"), an account shown as one row with the leader (merged) is tagged too, nobody on This week means no weekly tag, and a node the boards skip or an account the admin removed can never be first. No reads per row and no writes: the answer is kept in memory and in this browser's localStorage (`lb:tops`, with the time), shared by every Back Room page and tab (a `storage` event passes it on). When a badge is drawn and the answer is over 15 minutes old (`TOPS_TTL`), miles.js asks the boards to read once (`BackRoomBoards.readTops()`, the same single read of `rooms/lb-all/players` plus `rooms/lb-rs/players` the Leaderboards section makes anyway, about 330 KB in November 2026; the section then reuses it for 5 minutes instead of reading again when scrolled to), at most once a minute and never in a tab nobody is looking at; an answer over an hour old (`TOPS_KEEP`) isn't shown. So the cost is at most one board read per browser per 15 minutes while a badge is on screen, where before only people who scrolled to the Leaderboards read it; raise `TOPS_TTL` to make it cheaper. A change of who is first fires `backroom:miles` with `detail.tops`, so panels redraw. The words are dropped to just "#1" where the row hasn't room (a phone row, a narrow party card): once the badge is on the page `fit()` checks whether the pill is being squeezed and adds `bra-tw-s`, again on resize; tags are never taller than the pill, so rows keep their height. With no connection, an empty board or a leader who isn't on the page, nothing shows and nothing breaks. The admin page hands over its own answer from the nodes it has read (`BackRoomBoards.topsOf(nodes, now)`, which reads them as the public boards do, without removed or merged accounts). **Merged accounts:** when the admin page has merged accounts into one person (a signed `a`), a badge loaded for any of them (`load`, for the Online and Party panels) reads the signed merges (at most once per 10 minutes) and the other accounts' nodes, and shows the miles of the merged person (leaderboard.js `collapse`), so the hours and counts each account earned are added back. **Awards:** an honour the owners give to a particular player, shown as a small medal on a ribbon after the tier pill and any #1 tags, everywhere the badge is drawn (it is added inside `badge()`, like the tags, so no panel knows about it; an award holder's badge is the same `bra-tw` wrapper with a `` at the end). It is not a tier or a rank and has nothing to do with miles: a round medal with the award's mark, and its name on a swallow-tailed ribbon in the game's own colours, so it can't be taken for a tier pill or a gold, silver or bronze tag. The first is **Updraft devotee** (tooltip "Awarded for dedication to Updraft"; a summit with a rising arrow in Updraft's night navy, sky blue and sunrise orange), held by Morgan, who was first on the Miles board all time when it was given (November 2026), with the most Updraft play time on the boards and the only climb to the Crown. The second is **Boostball star** (tooltip "Awarded for dedication to Boostball"; the ball with a boost flame in Boostball's navy, blue and orange), given to Nico at Nico's own request (November 2026) and listed for both of Nico's accounts. Two tables near the top of `miles.js`: `AWARD_KINDS`, one line per kind of award (`n` the words, `tip` the tooltip, `icon` the mark as SVG in a 16 × 16 box, `disc` and `rim` the medal's colours, `band` and `ink` the ribbon's), and `AWARDS`, who holds which: one line per person, `'': ['updraft']`, with a comment saying whose it is and why. **To give someone an award, add their line to `AWARDS`; to take it away, delete the line; a new kind of award is one more line in `AWARD_KINDS`.** Anyone with an account can hold one, whatever their tier and even with no node on the boards, and one person can hold several (they are drawn in the order listed). The uid is the key of the player's leaderboard node (the admin page shows it; never match on names, since anyone can type any name). Accounts the Leaderboards show as one row share the award, so it shows whichever of them is on screen: `awardsOf(result)` looks at the accounts in the result (`ids`: its own, and the entry it was merged into) and at the admin page's signed merges once `leaderboard.js` has read them, so list any one of the person's accounts, ideally the one the board shows; a node that only claims to be merged with a holder gets nothing. Nothing is read, written or stored for an award: the table is in the code, so it changes with a pull request. Where the row hasn't room the ribbon folds away to just its medal (`bra-tw-a`, before the tags lose their words), and also wherever its words would make a row that wraps taller (your own Online row on a laptop), so rows keep their height; the tooltip still names it. **One award is earned, not given: the Slipstream ace.** It belongs to whoever leads the most Slipstream tracks, and only while they lead 3 or more at once (`ACE_MIN`); leading a track means holding its fastest lap this record season, the driver the Leaderboards' every-track board names for it. Course records and clean laps don't count (a track has one of each for every race length, so one driver could reach three on a single track, and every record needs a lap time there anyway). If nobody leads three, nobody holds it; on a tie for most, everyone tied holds it, as with the #1 tags; accounts the boards show as one row count as one driver, and removed or skipped nodes never count. It changes hands as records fall: nobody edits a table. It is the same medal on a ribbon, in Slipstream's near-black and racing red with a chequered flag, labelled "Slipstream ace", tooltip "Leads 4 Slipstream tracks" with the live number, drawn last in the badge: after the tier pill, the place tags and any award that was given. Its kind is in `AWARD_KINDS` with `earned: true`, which also means a line for it in `AWARDS` is ignored. Like the #1 tags it is worked out in `leaderboard.js` (`ace()`), from the same read, and comes over in the same answer: `setTops` takes `ace` (the holders' uids, with their merged accounts) and `aceN` (the tracks they lead), kept in `lb:tops` with the rest, so it costs no read and no write, every page and tab shares it, and it updates whenever the boards are read (a new holder or number fires `backroom:miles` with `detail.tops`). `aceOf(result or uid)` is the number of tracks for a holder, else 0. An answer saved by a page from before it has no `ace`, so nobody holds it until the boards are next read; fewer than three tracks or anything malformed is dropped. **The second earned award is Top Cracker**, for the best Shell Crackers player: whoever has the most Shell Crackers kills of all time on the Leaderboards (the `kills` stat of Shell Crackers' row in `leaderboard.js`'s `GAMES`, the Kills (all time) board's own checked rows, so merged accounts count as one player with their kills added as the board adds them, and removed or skipped nodes never count), and only with 25 kills or more (`CRACK_MIN`), so it isn't handed out for a handful; on a tie for most, everyone tied holds it. It is worked out and carried exactly like the ace: `leaderboard.js`'s `cracker()` from the same read, `setTops` takes `crack` (the holders' uids, with their merged accounts) and `crackN` (their kills) in the same `lb:tops` answer (part of the change check, so a new holder or count redraws the badges), `crackerOf(result or uid)` gives the holder's kills, else 0, and an answer from a page from before it (no `crack`), under 25 or malformed means nobody holds it. Its kind is `shellcrackers` in `AWARD_KINDS` (`earned: true`): a cracked white egg with a yolk drop on Shell Crackers' ink-brown disc with a yolk rim, and "Top Cracker" in brown on an eggshell-cream ribbon with a thin brown edge (`edge`, an optional line round a pale ribbon, so it still shows on a cream row in light mode, while staying clear of the gold tags and the First Class pill); tooltip "Most Shell Crackers kills: 1,520" with the live number. It is drawn after the ace, so a badge goes tier, place tags, given awards, Slipstream ace, Top Cracker. When one player has place tags, a given award and the earned awards together, room is made in this order: both ribbons fold to their medals (`bra-tw-a`), then the tags lose their words and each medal after the first tucks under the one before (`bra-tw-s`; checked with a given award, both earned awards and two place tags in one phone row), then, only if under half the tier's name would still show (a phone row), the pill keeps just its icon and colours (`bra-tw-p`); nothing in a badge is taller than the pill, so rows never change height. +- `e63334287a3deaa3/miles.js`: status tiers, "miles with us" (Back Room). Every player is **Economy**, **Business Class**, **First Class** or **Private Jet**, except the site's two owners, who are always **Captain** (see below), shown as a small pill next to their name in the Online panel, the Party panel, the Leaderboards and the admin page (loaded in the same four places as `avatar.js`). `window.BackRoomMiles = {of(node, uid, now), tierOf(miles), isOwner(uid), badge(result, {miles}), line(result), peek(uid), load(uid), fmt, TIERS, RULES, CAPTAIN, OWNERS, setTops(tops), topOf(uid), needTops(), awardsOf(result), aceOf(result), crackerOf(result), minisOf(result), minisList(result), miniTag(id, px), MINI, MINI_ANY, AWARDS, AWARD_KINDS}`. `of` takes a leaderboard node (`rooms/lb-all/players/`, raw or already parsed by `leaderboard.js`), checks it with `BackRoomBoards.parse` (the same caps and ranges the boards use, so a stale, oversized or impossible node is simply Economy with `ok: false`, and nothing it contains is ever shown as HTML) and gives `{miles, tier, next: {tier, miles} or null at the top, hours, play, bonus, ok}`. **The formula:** 100 miles per hour played (the hours the boards accept: at most 24 a day since 21 October 2026, all games together) plus points for success in each game, each kind capped so no single game carries someone (the table is `RULES` in the file): running counts, wins 40 each in Rumble Karts, Backrooms and Boostball (cap 4,000), kills 2 in Shell Crackers and Backrooms (2,000), wrecks 2 (2,000), goals 10 (2,000), Coil cut-offs 5 (2,000), Chromaflage hiders found 10 (2,000) and rounds hidden 20 (2,000), Odd One Out props found 5 (2,000) and rounds won 20 (2,000), Tumble Trials crowns 50 (4,000) and shows 5 (1,000), Spire towers 20 (2,000), Trivium streak 30 a day (1,500), Showdown hands 2 (1,000), Gridpop lines 2 (1,000), Stackfall lines 5 (1,000), watermelons 50 (1,500), Puffer Party online wins 20 (2,000) and answers 1 (1,000), daily puzzles finished (the Daily Puzzles page's `done`) 5 (2,000) and its best daily streak 10 a day (1,000); personal bests, Elo above 1,200 at 4 a point (3,000 at 1,950 Elo), fastest Spire tower under 10 minutes at 3 a second (1,500 at 100 s), fastest obby under an hour at 0.4 a second (1,200 at 10 min), fastest Updraft summit under an hour at 0.5 a second (1,500 at 10 min), Updraft height ÷ 2 (500 at the summit), a Slipstream lap within 2.5× the track's quickest possible lap up to 200 a track (2,000 for all tracks) and 100 a course record held (1,000), a 2048 tile of 2048 (500), 4096 (1,000) or 8192 and up (1,500) and best score ÷ 100 (500), Gridpop score ÷ 50 (1,000), Stackfall Classic and Sand scores ÷ 200 (1,000 each), Melon Merge score ÷ 10 (1,500), Coil's longest snake ÷ 10 (1,500), Trivium's best Daily ÷ 10 (1,500) and Showdown's biggest pot ÷ 200 (500). **Tiers:** Economy under 2,000, Business Class 2,000–9,999, First Class 10,000–39,999, Private Jet 40,000 and up. So an hour a day for three weeks is Business Class; First Class takes about 100 hours, or 50 with a lot of winning (a 1,950 Elo, 100 kart wins and an 8192 tile are 8,500 on their own); Private Jet is a year of play. **Captain:** a tier above Private Jet for the site's owners, Nico and Arjun, listed by account uid in `OWNERS` near the top of `miles.js` (Nico's two accounts and Arjun's three, each with a comment saying whose it is; add or delete a line to change it, and never match on names, since anyone can type any name). An owner's `of` result has `tier` Captain, `next: null`, `owner: true` and `real`, the tier their miles alone would earn; their `miles` are worked out exactly like everyone else's, so the admin page's Miles column shows and sorts by their real miles (with the Captain badge beside it), and nobody else's tier or the maths changes. The badge is pilot's wings in gold on a near-black navy pill with a gold rim (`.bra-tier-captain`), and on an owner's own Online card the progress line is "12,345 miles · flies the plane" instead of "N to " (`line(result)`). **Arjun (site founder):** one step above Captain, for Arjun alone (the site is his): Captain flies the plane, the founder built the airline. The tier is named Arjun, with a bow for its icon (Arjuna, the archer of the Mahabharata). His three accounts are in `FOUNDER_LIST` just under `OWNERS` (each must also stay in `OWNERS`, so `captains.js` and everything else a Captain gets is unchanged; only the badge differs). The badge is a gold drawn bow with an arrow nocked and pale-gold "Arjun" on a violet storm with a gold rim and a purple glow, with a flash of light sweeping across it every few seconds (`.bra-tier-founder`; still for anyone with reduced motion turned on), the same size as every other pill; the tooltip says "Arjun · site founder" and his Online card's line is "12,345 miles · site founder". `of` gives `tier` `FOUNDER` (named Arjun) with `owner: true` and `founder: true`; `isFounder(uid)` and `FOUNDER` are exported. **Every badge:** a **Badges** button in the Online panel's header, beside Cabin chat (`social.js`; on a phone the panel's buttons share their own row under the title), and another beside Refresh at the top of the Leaderboards (everywhere `leaderboard.js` draws them: the Back Room, the phone page, Slipstream and the admin page) open `BackRoomMiles.guide()`, a window listing every badge there is and how to get it: the four miles tiers, the crew (Vice Captain, Captain, Arjun), the Miles board's #1–#3 tags, and every award in `AWARD_KINDS` (the given ones, then the earned Slipstream ace and Top Cracker). Its words never state hours (players see no hours anywhere but the admin page): miles "come from time spent playing", Business Class is "a few weeks of regular play" and First Class "a lot of play, or about half as much with a lot of winning". Each is drawn by the same code as the real badges, so a new tier style or a new line in `AWARD_KINDS` shows up there by itself; it names no holders and reads nothing. The Leaderboards' button stays hidden until `miles.js` has loaded; the Online panel's does nothing on a page without it. This is a display rule, not a security feature: tiers are worked out in each viewer's browser from public data, so it only decides how pages draw the badge and grants nothing. The score rules were tuned against the live boards a week after they began (85 accounts: 77 Economy, 7 Business, 1 First under the first draft, several Business with under an hour of play because one good Stackfall or Coil sitting hit a cap), so a single sitting of a puzzle game is now worth a few hundred miles at most. Worked examples: 10 h of Coil + 100 cut-offs + an 8,000-long snake = 1,000 + 500 + 800 = 2,300 (Business); 50 h of Shell Crackers + Elo 1,950 + 3,000 kills = 5,000 + 3,000 (the cap) + 2,000 (the cap) = 10,000 (First Class exactly). For people online, `peek(uid)` gives the cached result (and starts a read when there is none or it is over 10 minutes old) and `load(uid)` a promise of it: one read of `rooms/lb-all/players/` per uid through `party.js`'s sign-in; a finished read fires `backroom:miles` on `document` (`detail.uid`), and so does the file when it loads. The Leaderboards and the admin page already hold every parsed node, so they call `of` directly. **Everything behind a tier is self-reported** by the player's own browser (see `stats.js`), so tiers are for fun, like the boards; nothing here writes to the database, and `stats.js`'s node format is unchanged. On the Leaderboards (`leaderboard.js`), rows show the player's avatar and tier badge (the tier worked out from the same checked node, so a node the boards would skip can't earn one) on a second line under the name, and the first board, **Miles**, ranks everyone by these miles (All time, the same number as the badge) or by miles from this week's play time (This week: `HOUR`, exported as `BackRoomMiles.HOUR`, per hour since Monday; bests and counts have no date, so they stay in All time). The badge always shows the all-time tier, on the weekly board too. **#1, #2, #3 tags:** the top three on the Miles board get a small squared tag after their tier pill, "#1 all time", "#2 all time", "#3 all time" and the same for this week (one player can hold one of each; the tooltip says "Ranked #2 in miles, all time"), everywhere the badge is drawn: Leaderboards rows, the Online panel (cards, your own row, an open chat's header), the Party panel and the admin page. All-time tags are solid gold, silver and bronze; this week's are the same three metals as text and rim on slate, so a week's medal reads as a step below an all-time one. The places are the board's own ranks, so after a tie for first nobody is second and the next player is third. `setTops` takes `all2`, `all3`, `week2`, `week3` beside `all` and `week`, and `topOf(uid).all` / `.week` are the place (1 to 3, or 0); an answer saved in `lb:tops` by a page from before this has only the firsts. It all happens inside `badge()`, so no panel works out ranks: for a leader `badge()` returns a `` holding the usual pill and the tags (`.bra-top-all`, `.bra-top-week`), for everyone else the plain pill exactly as before (`of` results now carry `uid`, which is how the badge knows whose it is). Who is first comes from `leaderboard.js`, not from here: after every read of the boards it calls `setTops({all: [uid…], week: [uid…], allTie, weekTie})` with the uids its own rows rank 1 (`BackRoomBoards.tops`), so the tag uses the same checked nodes, the same week and the same tie rule as the board and always agrees with it. **A tie for first gives every tied player the tag** (the board shows rank 1 beside each of them; the tooltip adds "tied for first"), an account shown as one row with the leader (merged) is tagged too, nobody on This week means no weekly tag, and a node the boards skip or an account the admin removed can never be first. No reads per row and no writes: the answer is kept in memory and in this browser's localStorage (`lb:tops`, with the time), shared by every Back Room page and tab (a `storage` event passes it on). When a badge is drawn and the answer is over 15 minutes old (`TOPS_TTL`), miles.js asks the boards to read once (`BackRoomBoards.readTops()`, the same single read of `rooms/lb-all/players` plus `rooms/lb-rs/players` the Leaderboards section makes anyway, about 330 KB in November 2026; the section then reuses it for 5 minutes instead of reading again when scrolled to), at most once a minute and never in a tab nobody is looking at; an answer over an hour old (`TOPS_KEEP`) isn't shown. So the cost is at most one board read per browser per 15 minutes while a badge is on screen, where before only people who scrolled to the Leaderboards read it; raise `TOPS_TTL` to make it cheaper. A change of who is first fires `backroom:miles` with `detail.tops`, so panels redraw. The words are dropped to just "#1" where the row hasn't room (a phone row, a narrow party card): once the badge is on the page `fit()` checks whether the pill is being squeezed and adds `bra-tw-s`, again on resize; tags are never taller than the pill, so rows keep their height. With no connection, an empty board or a leader who isn't on the page, nothing shows and nothing breaks. The admin page hands over its own answer from the nodes it has read (`BackRoomBoards.topsOf(nodes, now)`, which reads them as the public boards do, without removed or merged accounts). **Merged accounts:** when the admin page has merged accounts into one person (a signed `a`), a badge loaded for any of them (`load`, for the Online and Party panels) reads the signed merges (at most once per 10 minutes) and the other accounts' nodes, and shows the miles of the merged person (leaderboard.js `collapse`), so the hours and counts each account earned are added back. **Awards:** an honour the owners give to a particular player, shown as a small medal on a ribbon after the tier pill and any #1 tags, everywhere the badge is drawn (it is added inside `badge()`, like the tags, so no panel knows about it; an award holder's badge is the same `bra-tw` wrapper with a `` at the end). It is not a tier or a rank and has nothing to do with miles: a round medal with the award's mark, and its name on a swallow-tailed ribbon in the game's own colours, so it can't be taken for a tier pill or a gold, silver or bronze tag. The first is **Updraft devotee** (tooltip "Awarded for dedication to Updraft"; a summit with a rising arrow in Updraft's night navy, sky blue and sunrise orange), held by Morgan, who was first on the Miles board all time when it was given (November 2026), with the most Updraft play time on the boards and the only climb to the Crown. The second is **Boostball star** (tooltip "Awarded for dedication to Boostball"; the ball with a boost flame in Boostball's navy, blue and orange), given to Nico at Nico's own request (November 2026) and listed for both of Nico's accounts. Two tables near the top of `miles.js`: `AWARD_KINDS`, one line per kind of award (`n` the words, `tip` the tooltip, `icon` the mark as SVG in a 16 × 16 box, `disc` and `rim` the medal's colours, `band` and `ink` the ribbon's), and `AWARDS`, who holds which: one line per person, `'': ['updraft']`, with a comment saying whose it is and why. **To give someone an award, add their line to `AWARDS`; to take it away, delete the line; a new kind of award is one more line in `AWARD_KINDS`.** Anyone with an account can hold one, whatever their tier and even with no node on the boards, and one person can hold several (they are drawn in the order listed). The uid is the key of the player's leaderboard node (the admin page shows it; never match on names, since anyone can type any name). Accounts the Leaderboards show as one row share the award, so it shows whichever of them is on screen: `awardsOf(result)` looks at the accounts in the result (`ids`: its own, and the entry it was merged into) and at the admin page's signed merges once `leaderboard.js` has read them, so list any one of the person's accounts, ideally the one the board shows; a node that only claims to be merged with a holder gets nothing. Nothing is read, written or stored for an award: the table is in the code, so it changes with a pull request. Where the row hasn't room the ribbon folds away to just its medal (`bra-tw-a`, before the tags lose their words), and also wherever its words would make a row that wraps taller (your own Online row on a laptop), so rows keep their height; the tooltip still names it. **One award is earned, not given: the Slipstream ace.** It belongs to whoever leads the most Slipstream tracks, and only while they lead 3 or more at once (`ACE_MIN`); leading a track means holding its fastest lap this record season, the driver the Leaderboards' every-track board names for it. Course records and clean laps don't count (a track has one of each for every race length, so one driver could reach three on a single track, and every record needs a lap time there anyway). If nobody leads three, nobody holds it; on a tie for most, everyone tied holds it, as with the #1 tags; accounts the boards show as one row count as one driver, and removed or skipped nodes never count. It changes hands as records fall: nobody edits a table. It is the same medal on a ribbon, in Slipstream's near-black and racing red with a chequered flag, labelled "Slipstream ace", tooltip "Leads 4 Slipstream tracks" with the live number, drawn last in the badge: after the tier pill, the place tags and any award that was given. Its kind is in `AWARD_KINDS` with `earned: true`, which also means a line for it in `AWARDS` is ignored. Like the #1 tags it is worked out in `leaderboard.js` (`ace()`), from the same read, and comes over in the same answer: `setTops` takes `ace` (the holders' uids, with their merged accounts) and `aceN` (the tracks they lead), kept in `lb:tops` with the rest, so it costs no read and no write, every page and tab shares it, and it updates whenever the boards are read (a new holder or number fires `backroom:miles` with `detail.tops`). `aceOf(result or uid)` is the number of tracks for a holder, else 0. An answer saved by a page from before it has no `ace`, so nobody holds it until the boards are next read; fewer than three tracks or anything malformed is dropped. **The second earned award is Top Cracker**, for the best Shell Crackers player: whoever has the most Shell Crackers kills of all time on the Leaderboards (the `kills` stat of Shell Crackers' row in `leaderboard.js`'s `GAMES`, the Kills (all time) board's own checked rows, so merged accounts count as one player with their kills added as the board adds them, and removed or skipped nodes never count), and only with 25 kills or more (`CRACK_MIN`), so it isn't handed out for a handful; on a tie for most, everyone tied holds it. It is worked out and carried exactly like the ace: `leaderboard.js`'s `cracker()` from the same read, `setTops` takes `crack` (the holders' uids, with their merged accounts) and `crackN` (their kills) in the same `lb:tops` answer (part of the change check, so a new holder or count redraws the badges), `crackerOf(result or uid)` gives the holder's kills, else 0, and an answer from a page from before it (no `crack`), under 25 or malformed means nobody holds it. Its kind is `shellcrackers` in `AWARD_KINDS` (`earned: true`): a cracked white egg with a yolk drop on Shell Crackers' ink-brown disc with a yolk rim, and "Top Cracker" in brown on an eggshell-cream ribbon with a thin brown edge (`edge`, an optional line round a pale ribbon, so it still shows on a cream row in light mode, while staying clear of the gold tags and the First Class pill); tooltip "Most Shell Crackers kills: 1,520" with the live number. It is drawn after the ace, so a badge goes tier, place tags, given awards, Slipstream ace, Top Cracker. When one player has place tags, a given award and the earned awards together, room is made in this order: both ribbons fold to their medals (`bra-tw-a`), then the tags lose their words and each medal after the first tucks under the one before (`bra-tw-s`; checked with a given award, both earned awards and two place tags in one phone row), then, only if under half the tier's name would still show (a phone row), the pill keeps just its icon and colours (`bra-tw-p`); nothing in a badge is taller than the pill, so rows never change height. **Top player in a game (mini badges):** whoever is first on a game's main board holds that game's mini badge, a 16 px shield drawn last in the badge, after the tier pill, the place tags, the given awards, the Slipstream ace and Top Cracker (nothing before it moves or changes: a test renders every entry of `AWARDS` and `AWARD_KINDS` against the copy from before and gets the same HTML). One player can hold several, one per game they lead, in the boards' order. Every game on the Leaderboards has one except Shell Crackers and Slipstream, whose badges are Top Cracker and the Slipstream ace; Stackfall has two, Classic and Sand. Which board is a game's main board, its floor and its tie rules are `leaderboard.js`'s (`topBoards`, below); nobody is listed here and no uid is stored in the code: `leaderboard.js` works the holders out after every read of the boards and hands them over in the same answer as the #1 tags (`setTops` takes `mini`, `[[board id, [uid…]], …]`, the holders with their merged accounts, at most 12 uids a game and 120 games; kept in `lb:tops` with the rest and part of its change check), so they cost no read and no write and move whenever the boards are read. An answer saved by a page from before them has no `mini`: nobody holds one until the boards are next read; a malformed entry, bad board id or bad uid is dropped. `minisOf(result or uid)` gives the board ids a player leads (merged accounts count as one player, as for awards). The words come from the game's name in `GAMES` (`n`), so a renamed game takes its badge with it: tooltip and accessible label "Top player in Stackfall (Sand)" (`BackRoomBoards.topName`). **The look:** `MINI` near the top of `miles.js`, one line per board id (the game's folder, or `stackfall:sand`): `c` the shield's colour and `e` a simple mark that hints at the game, SVG in a 16 × 16 box (two or three shapes, light on the shield's colour; no image files, no real logos). Every shield shares one frame (a dark outline and a pale inner rim), so they read as one family on light and dark pages and can't be taken for a tier pill, a square place tag or an award's round medal. A game with no line in `MINI` (a new game) gets `MINI_ANY`, a white star on slate, so it still has a badge; give it its own line when you can. **Room:** the shields sit in one line; where the row has no room they fold from the end into a "+N" chip (tooltip "Also top player in: …"), down to one shield and the chip, before anything else folds; each later step (the ribbons folding, the tags losing their words) brings back as many shields as now fit, and if one still doesn't, the last goes too (just "+N"), before the tier's name; on a row that wraps (your own Online row) only as many show as keep it to its height. Wider places (a Leaderboards row on a computer) simply show more. An open chat's header in the Online panel (`social.js`) also lists them larger, 22 px with each game's name beside it (`minisList`), on a line of its own. The badges window (`guide()`) has a **Top player in a game** section: the rule in one line (lead a game's main board, its Elo or its best score, time or streak) and every game's shield, from `leaderboard.js`'s own list. Spanish: "Mejor jugador en …"; game names stay in English. - `e63334287a3deaa3/avismiles.js`: Avis miles (Back Room page and phone page): players who booked a car through Avis claim bonus miles. Opened from the **Avis miles** button the Online panel shows by your miles (social.js), `BackRoomAvisMiles.open()` or a link with `#avis-miles`. Only for a Google sign-in whose account already has a leaderboard node. The form takes the Avis confirmation number, the pick-up date and an optional note, sealed to the admin key (`adminkey.js`'s `BackRoomSeal` of `{ k: 'ac', c, d, n, u: uid, t }`) and written to the player's own node as `ac` (the box) and `act` (when it was sent); `stats.js` carries both on in every write. One claim at a time: a new one replaces one still waiting. The admin page's Stats tab lists claims newer than the last one decided (**Avis miles claims**), opens them with the admin key (with the player's Google email from `ge`), and approves (adding `AVIS_MILES`, 1,000 by default, or another amount) or turns them down in its signed resets: `m` the Avis miles granted in all, `mt` the claim time last decided, `mr` 1 approved / 0 not (leaderboard.js `checkResets` keeps them; every signed write on the admin page carries them on). leaderboard.js hands `m` to miles.js as `p.am` (added up across merged accounts), which adds it to the person's miles everywhere. Nobody but the admin page can grant miles; the dialog shows the claim's state from `act`, `mt` and `mr`. - `e63334287a3deaa3/keybinds.js`: rebindable controls shared by the keyboard Back Room games (2048, Backrooms 1v1–4v4, Boostball, Coil, Escapade, Gridpop, Hail Mary, Kartwheel, Melon Merge, Odd One Out, Quarry, Rumble Karts, Shell Crackers, Slipstream, Spire, Stackfall, Starhop, Tumble Trials, Turbo Trail, Updraft, Driftfall, Asteroid Run, Rampline, Tidewick, Flickerwood, Pulsebox). Plain JavaScript, no dependencies. Each game loads it with ``, lists its actions in `Keybinds.create({game, actions: [{id, label, keys: ['KeyW', 'ArrowUp']}]})` (keys are `e.code` names, so they're physical keys on any layout; mouse buttons are `Mouse0`/`Mouse1`/`Mouse2` in games that pass `mouse: true`), checks input with `KB.is(action, e.code)` and `KB.held(action, keys)` instead of comparing key codes, and opens the panel from a Controls button with `KB.open()`. Changed keys are saved only in the player's browser, under localStorage `keybinds:` as `{v: 1, b: {action: [codes]}}` (only the actions that differ from the defaults; Reset to defaults removes the entry), and never go to Firebase. Esc is never rebindable. Elements with `data-kb="action"` show the current keys and update themselves. The panel takes each game's look from `--kb-*` CSS variables and the game's own button classes; the comment at the top of the file lists the options. To add it to a game, do the same, and keep text inputs (names, room codes, chat) returning before any key lookup. Touch controls don't go through key codes: each game's touch buttons feed its input directly (in Shell Crackers, Quarry and Backrooms they hold actions by id in `tAct`, which the game checks alongside `KB.held`), so they keep working whatever keys are bound, and the Change keys / Controls buttons are hidden in the touch layout (`body.touch`). **Spanish** (lang.js, when the page loads it): keybinds.js adds the panel's own words and common key and action names once (guarded by `if (window.BackRoomLang)`), and builds its messages and aria-labels with the action and key names in the page's language (a game's own dictionary supplies its action names); in English, or without lang.js, every string is as before. - `e63334287a3deaa3/school.js`: Your school (Back Room page, the home page's copy of it and the phone page). A small box at the end of the page header where each player picks the school they go to: one button per school plus Not listed, as a radio group (click, or the arrow keys). The schools are Avenues (New York) and St. Andrew’s Scots School (`standrews`, Olivos, Buenos Aires, Argentina; a bilingual English–Spanish school, so lang.js's Spanish matters there); to add one, add a row to `SCHOOLS` (`id`, a short lowercase id that never changes, `name`, `place`). The script fills in every empty `[data-school]` element: the Back Room page has one at the end of its `
` (so the home page's `reveal()`, which copies the header, gets it too, and loads the script after `events.js`), and the phone page has one at the end of its header. Being in the header, layout.js never moves it. **Storage:** localStorage `school:v1`, the school's id (`avenues`) or `other` for Not listed; no key means nothing picked yet. It is in account-nudge.js's `KEYS`, so a Google account's save carries it to the player's other devices (visible to other signed-in browsers, like everything in that save). Nothing else is stored online. **Search and Add my school:** only schools marked `suggest: true` in `SCHOOLS` (Avenues) are shown before a search, plus the one the player picked; every other school is found by typing in the search box above the choices, which filters them as you type (name and place, accents ignored; Enter picks the first match). With no match, or from the dashed "Add my school" button, a small form asks for the school's name, its city or town and its country (only the general area; it says not to put a name or address) and sends one note through the suggestion box (`BackRoomFeedback.send` in feedback.js, the same sealed `feedback` documents, limits and admin Feedback tab, so no new storage or rules): "School request: (, ). Sent from Your school." The player's choice becomes Not listed, and localStorage `school:req` ({n, p, t}, also in account-nudge.js's KEYS) remembers what they asked for, so the box says "You asked us to add … We'll add it soon." To add a requested school, read it on the admin page's Feedback tab and add its row to `SCHOOLS`. Nothing uses the choice yet: other scripts can read it with `BackRoomSchool.get()` (the row, or null) and hear changes through the `backroom:school` event on `document` (`{id}`). @@ -238,7 +238,7 @@ Personal site hosted with GitHub Pages at **https://ascoding11.github.io**, the - `prompted/`: Prompted, a supplemental essay tracker for college applicants (plain JavaScript, no backend; everything is saved in the student's browser under `prompted:v1`). Students add schools with a plan and deadline, paste a supplement page to pull out each prompt with its word or character limit and whether it's optional (`parsePrompts` in the page), write drafts with a live count, save and restore versions, and start new essays from existing drafts. A reuse map groups similar prompts across schools by kind (Why us, academic interest, community, and so on). Backups download as JSON; all drafts download as one .txt. `prompted/schools.js` is the school library: the U.S. News 2027 top 50 national universities with their 2026–27 supplement prompts (as short summaries in our own words, with real limits), choose-N sets, college- or program-specific prompts keyed to the student's intended major, application plans and deadlines. UC campuses share one application, so they're added as a single school. Update the file each August when schools publish new prompts, and keep every prompt as a summary in your own words: don't paste schools' official prompt text into this repo, even though it's posted publicly. No ads on this page. - `e63334287a3deaa3/m/`: the phone version of the Back Room: every game (the Back Room ones plus Hype Cycle Exchange) as a tile, under the same six headings as the computer version, in the same play-time order (Cars, Shooters, Parkour, Party games, Puzzles, Arcade; `MODES`), with a row of six buttons above the lists that jump to each heading (`.gnav`), the Turkey Week switch under the title during the event (`data-turkey-switch` in the header's `.tkrow`; see `events.js`), and grouped by kind under each (each `GROUPS` row is `[kind, games, mode, 1 for the puzzle tiles]`, mode `'cars'`, `'shooters'`, `'parkour'`, `'partygames'`, `'puzzles'` or `'arcade'`, with the rows of one mode kept together; Hype Cycle Exchange is under Arcade). Puzzles starts with the small tiles (`.grid.pz`: what it is in plain words, then its name): Deepword, Trivium, the listed daily puzzles and, last, Daily Puzzles (the fifteen least played puzzles, Boxed among them, came off on 18 Nov 2026: see the Back Room page above; their thumbnails stay). The daily puzzles aren't counted as games; Deepword and Trivium are (a `1` at the end of their rows), and the Puzzles heading says "12 puzzles + 4 games". At the bottom of Puzzles, a small tab (`.ask.ask-sm`, `pzAsk`) asks "Miss a puzzle we took away, or want a new one?" with a Tell us button (`data-feedback-open="Puzzles: "`). The Daily Puzzles tile (`daily`, not counted, a whole row wide with `.pz-all` so the puzzle rows come out even) is the page with every listed puzzle and the streak; it opens in the frame like a game, and the daily games it links to open in the same frame (its `scope` is the whole Back Room folder). After the games, a "Want more games, or have an idea?" note has a Tell us button that opens the feedback bar. A game opens full screen in a frame under a thin bar with the way back, and the last one played shows at the top as Keep playing. The Leaderboards section (leaderboard.js) comes after the games. Its own look is dark; it also has a light look (the light variables at the top of its `