Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(event): log launch-event progress, sync spin-wheel and voice-browser fixes

nirholasadb7fc0df617
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f943b8338..fad17b4fe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,7 +24,9 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Play is safer, lighter on phones, and honest when something breaks**: A deep audit of the Play world shipped a batch of fixes. A player can no longer put markup in their display name and have it run in everyone else's browser when they loot that player's tombstone, and a coin whose artwork link was crafted to escape its CSS can no longer paint anything over the lobby. Losing your connection now recovers cleanly: the peers who left while you were offline disappear instead of standing around frozen and inflating the headcount, and rejoining no longer strands you behind a "You died" screen in a world you are actually alive in. Phones hold up far better, because the world now genuinely frees what it loads: crowd and NPC models, the sun's shadow map, the totem, the jumbotron and the dance floor are all released when you leave a world instead of piling up until the tab is killed. The Wheel of Fortune finally looks like a modal instead of an unstyled block, tells you when it cannot reach the server and lets you retry, and if you close it mid-payment the spin still settles and shows you what you won rather than silently swallowing a paid spin. The jobs board says it is loading instead of claiming there is no work, a very long coin symbol can no longer run over the LIVE badge on the market screen, and a broken world link now says so and leaves you in the lobby instead of building a convincing world nobody else can join. (`/play`) `[fix, security, improvement]`
- **Play now opens fast instead of stuttering for its first few seconds**: Opening a coin world, especially from a shared /play link, used to lurch: a long pause, a few juddering seconds, then everything settling into place and staying smooth. Four separate causes, all measured on the live site. The physics engine was being downloaded and parsed before the page could draw anything, even though nothing needs it until you are already standing in the world, which alone put about three quarters of a megabyte on the critical path. The graphics card was being asked to compile every shader in the town on the single frame that first showed it to you. The world was lit only once a one-and-a-half megabyte lighting file finished downloading, so it looked flat and then suddenly popped. And the decorative crowd of wandering avatars started downloading its models on top of everything else, at the busiest possible moment. Each now happens in the right order: physics loads alongside the world, shaders compile before the frame that needs them, the lighting is correct from the first frame and refines afterwards, and the crowd fills in once your own world has landed. The coin's artwork is also decoded once now rather than twice, and the automatic quality governor no longer mistakes a still-loading world for a slow computer and dims the picture for the next several seconds. (`/play`) `[improvement, fix]`
- **Rejoining a world after a dropped connection no longer leaves ghosts behind**: If your connection dropped inside a coin world and came back, the people around you could end up duplicated: a frozen copy of everyone standing where they were when you dropped, plus their live selves, and a motionless copy of you standing at the spawn point on everyone else's screen. Reconnecting now rebuilds the crowd from what the world server actually holds, retires anyone who left while you were away, and tells the server to retire your old session the moment you return. Standing still through a drop no longer strands you at the spawn point either, and a tab you left in the background for a few minutes now checks its connection the instant you come back instead of sitting on a dead one that still claims to be connected. Nameplates past sixty metres stop being drawn, so a plaza with a hundred people in it costs what the people near you cost. (`/play`) `[fix, improvement]`
+- **Show up to a live event and you keep something from it**: There is now a free commemorative wearable for being somewhere at a particular time. Walk into the event world while a live event is running and the Meetup Laurel, a gold laurel circlet with three pearl berries at the front, lands on your account. A card slides in over the corner of the screen telling you what you got, with a button to put it on right there; it is not a pop-up, so it never interrupts what you were doing, and if you dismiss it the laurel is waiting in My Fits. It is yours permanently and wears in every coin world, not just the one you earned it in. The part that makes it worth having is what does not happen: when the event ends, it is never granted again. It has no price, it is not in the boutique, and there is no way to buy one afterwards. Joining twice does not give you two, and the server, not your browser, decides you earned it. The only way to have one is to have been there. (`/play`) `[feature]`
- **The /play lobby and world stop leaking, and work on a phone**: Entering and leaving coin worlds repeatedly used to leave the previous world behind: peers were duplicated on every reconnect, mobs and vehicles could vanish for an entire session if your avatar loaded slowly, and cancelling the holders gate left an invisible dialog trapping your keyboard until you reloaded. Those are fixed, along with a set of memory leaks that piled up every time you hopped worlds. On touch devices the Enter community button on each lobby card was invisible, because it only appeared on mouse hover; it is now always visible on phones and when tabbing with a keyboard. The three contextual action buttons that could stack exactly on top of each other now each have their own row, so standing near the wheel and a gather node no longer hides one behind the other. Denying microphone access repeatedly no longer breaks voice for the rest of your session. (`/play`) `[fix, improvement]`
+- **The coin community list reads like a finished page now**: Four things were wrong with the list of coin worlds on /play, and together they made the grid look unfinished. Every card carried a wide band of empty space under the coin's name, because the "Enter community" button was hidden until you hovered the card, while still taking up its full height. On a phone or tablet, where there is no hover, that button never appeared at all, so the most important control on the page was invisible to most of the people looking at it. The button now rests on every card as a quiet outline and turns solid white on hover or when you tab to it, which fills the space, works on touch, and tells you the tile is clickable in the first place. The cards also showed no market cap, because the trending and search feeds behind them were dropping the number before it ever reached the page; they now carry it, so each coin shows its size the way the featured world already did. The Adventure mode button's crossed-swords icon was an emoji with the colour stripped out, which on most machines collapses into a plain X and read as a close button next to the search field, so it is now a drawn icon. And an avatar in the character picker could show as an empty square: if a model turned out to have nothing measurable to photograph, the picker replaced a perfectly good preview with a fully transparent one. It now keeps whatever it was already showing. (`/play`) `[fix, improvement]`
- **The meetup has its own jobs, and a live leaderboard to race on**: For the length of the live event, the /play jobs board carries four jobs you can only take while the doors are open: land a haul of fish for the plaza pit, drive the party supplies across town, clear four foes out of the Southern Wilds, and tour the three meetup landmarks. They pay better than the everyday board and they are all repeatable, because the point is the race. A new Event tab on the jobs board shows the standing: the top ten by jobs finished, tiebroken by the cash those jobs paid, with your own rank pinned at the bottom whether or not you made the cut. It updates as people finish runs, and it is the same ranking the event page reads, so the plaza and the web never disagree. When the window closes the jobs vanish from the board and the final standings stay readable. Winners are announced from that board and settled by us afterwards: nothing is paid out automatically. (`/play`) `[feature]`
- **The store, the bank and the phone layout in Play got a polish pass**: Walking up to the general store or the bank used to show you the finished screen before the world had answered: an empty shelf that actually meant "still loading", and a cash balance of zero that actually meant "we haven't checked yet". Both now show placeholder rows while they wait, read your balances as unknown until the world reports them, and, if the world never answers, say so plainly with a Try again button instead of leaving a wrong screen up for good. Deposits and withdrawals hold a single request open at a time, so a double-tapped Deposit can no longer send the same transfer twice, and the amount is checked against what you are actually carrying before anything is sent. On a phone, the avatar row no longer pushes the Upload model button off the right edge of the screen where it could not be reached, the lobby search box responds to a tap anywhere in the bar rather than only on the one line of text inside it, and the footer links and the boot recovery screen now have thumb-sized targets and a visible keyboard focus ring. (`/play`) `[improvement, fix]`
- **The trading engine now tells you when it is out of money**: The autonomous sniper could fail in a way nothing caught: the process healthy, the launch feed connected, every strategy armed, and every wallet too poor to actually pay for a trade. In that state it kept trying and failing to buy, closed nothing, and still reported itself as live, because everything being watched was about the software and nothing was about the money. Solvency is now part of how the engine reports itself. Every armed wallet balance is checked every five minutes against the exact rule the trader uses to decide whether it can afford an entry, so the status can never call a wallet ready when the trader would skip it. If no wallet can fund a trade, the engine now reports itself as out of SOL on the status page, in the health check and on the homepage, instead of showing green. It also says how much SOL would fix it and whether the funding wallet can cover that by itself, and it pages operators, with a separate alert for the case where the funding wallet is itself empty and a person has to step in. (`/trading`) `[fix, infra]`
diff --git a/data/changelog.json b/data/changelog.json
index ec4a08f34..27fe6d654 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-08-08",
+ "title": "Show up to a live event and you keep something from it",
+ "summary": "There is now a free commemorative wearable for being somewhere at a particular time. Walk into the event world while a live event is running and the Meetup Laurel, a gold laurel circlet with three pearl berries at the front, lands on your account. A card slides in over the corner of the screen telling you what you got, with a button to put it on right there; it is not a pop-up, so it never interrupts what you were doing, and if you dismiss it the laurel is waiting in My Fits. It is yours permanently and wears in every coin world, not just the one you earned it in. The part that makes it worth having is what does not happen: when the event ends, it is never granted again. It has no price, it is not in the boutique, and there is no way to buy one afterwards. Joining twice does not give you two, and the server, not your browser, decides you earned it. The only way to have one is to have been there.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/play"
+ },
{
"date": "2026-08-08",
"title": "The coin community list reads like a finished page now",
diff --git a/prompts/event/PROGRESS.md b/prompts/event/PROGRESS.md
index f5764ec49..be46be822 100644
--- a/prompts/event/PROGRESS.md
+++ b/prompts/event/PROGRESS.md
@@ -52,3 +52,58 @@ Cross-chat handoff log for the $THREE Community Day pack. Append an entry when y
**Remains.** The gate and the payouts run on the multiplayer server, so the quest line only appears once that server and the API are redeployed; both deploys are owner-gated. Until then `/api/play/event-leaderboard` answers with an empty board, which is its designed empty state.
**Not mine, observed in passing.** The full /play world would not boot headless on this box (the 3D join hangs before any panel code runs, with four agents and a restarting Vite on one machine), which is why the panel was verified as a real-browser render against the live payloads rather than by driving the 3D client. Every file above was swept into other agents' commits (`57c8bc1c4`, `015a08513`, and later) by their `git add -A` runs before I could stage them; content verified intact at HEAD. A repo-wide em-dash removal pass by another agent rewrote comments in these files mid-session and left one heist comment parsing as commented-out code, which `check:rules` flagged and I reworded.
+
+## 2026-08-08 · Order 07 · Preflight verification: NO-GO until the deploy runs
+
+**Verdict: the code is ready; production is not. The deploy is the one blocking action, and it is owner-gated.**
+
+Production serves commit `c1e600a04` (built 2026-08-07 07:28 UTC). Every event surface 404s on the live site right now:
+
+```
+/event 404
+/event.json 404
+/api/play/population 404
+/api/play/event-leaderboard 404
+```
+
+Locally the same paths are 200. The whole event pack is unshipped, so no countdown, agenda, quest line, leaderboard or souvenir exists for a visitor until the API/frontend deploy lands. Nobody should expect the banner before the ship.
+
+**The multiplayer server needs no redeploy for the window to take effect.** `multiplayer/src/event-window.js` fetches `/event.json` over HTTP from `WORLD_API_BASE` (three.ws) rather than from its own image, with a 60s cache. So the event window goes live at most a minute after the API deploy, on the already-running revision `three-ws-multiplayer-00010-g89`.
+
+### What passed
+
+- **Event-path tests: 161 cases across 9 files, all green.** `check-event-window`, `meetup-event-ui`, `meetup-schedule`, `event-leaderboard`, `event-quests`, `event-souvenir`, `play-friends-presence`, `spin-wheel`, `walkroom-build-perms`.
+- **Lobby walkthrough in a real browser, 1440x900 and 375x812.** 31 coin cards, 7 presets, 130 (desktop) / 91 (mobile) tab stops with **0 focus rings missing and 0 controls refusing focus**, create modal and gallery both open and close by Escape, search resolves to hits and to a designed empty state. CLS 0.0065. No horizontal overflow at either width.
+- **Multiplayer capacity against the live production host:** 400 concurrent `walk_world` sessions on the $THREE mint, **0 join failures, 0 mid-run drops, 0 silent sessions**, join latency p50 155ms / p95 219ms, 269,633 moves sent and 415,418 state patches received over a 150s hold.
+- **Event config coherent.** Window 2026-08-09 17:00 to 19:30 UTC, start before end, last agenda item at +105min inside a 150min window, souvenir `laurel-meetup`. Every reader (client countdown, meetup layer, `/event` page, home banner, server quest gate, server souvenir grant) resolves the same `public/event.json`.
+- **`npm run gate` passes** after the two fixes below.
+
+### Fixes made this order
+
+| Fix | Root cause |
+|---|---|
+| `tests/fixtures/mcp-golden-tools.json` refreshed | `9f61d7fe5` (2026-08-06) intentionally corrected the `maxPrice` unit in the `query_x402_services` and `agora_board` schemas but never refreshed the fixture, leaving `npm run gate` red on `main` for two days. Exactly 2 hashes changed. |
+| `src/deployments.js` inline `onerror` to `data-fallback="invisible"` | The 114th inline handler, missed by the CSP cleanup in `e30315833`. The site CSP has no `unsafe-inline`, so it never ran. |
+| `tests/forge-gameready-gate.test.js` GLB URL | `2ccc29093` used the dead `cdn.three.ws` host, which the asset-host guard forbids. Now `https://three.ws/cdn/...`. |
+| `tests/walkroom-build-perms.test.js` + `export const BLOCK_SIZE_M` | The "open plaza" sample (15,15) fell inside the new `PLAZA_STAGE` guard disc once `57c8bc1c4` sited the venue at (18,26,r5). Sample moved clear, and the stage disc is now pinned by deriving it from `PLAZA_STAGE` so the venue and its build protection can never drift. |
+
+### Residuals, each named and sized
+
+1. **No clean full `npm test` run was achievable on this box.** Three attempts; the last was SIGTERM-killed (exit 143) with load average 234-272 on 16 cores from concurrent agents. Every individual failure chased down resolved to either a fix above or a contention artifact that passes in isolation (`play-onboard-controls` 5/5, `play-deeplink-safety`, `audit-guards`, `solana-rpc-endpoints`, `gpt-forge-clone`, `play-a11y` 19/19, `forge-director` after `3345e7449`). **One clean `npm test` on a quiet box is still owed before the ship.** Size: one run, no known code fix.
+2. **The in-world half of the walkthrough is unverified locally.** Both viewports died at world entry (`page.goto` timeout / `Page crashed`) because the 3D scene will not boot headless under this load. The order-04 agent hit the identical wall independently. Lobby is verified; store/bank/wheel/jobs/friends/emotes panels are not. Size: needs a quiet box or a post-deploy check against the live site.
+3. **Multiplayer is single-instance by design.** `REDIS_URI` is unset, so Colyseus runs single-instance and the service is pinned `minScale=maxScale=1` (4 CPU / 8Gi, request concurrency 1000). Measured ceiling is 400 concurrent with zero drops. Above that there is no autoscale, and one instance is a single point of failure for the whole event. Raising maxScale without Redis would break room affinity, so this is not a safe unilateral change. Owner call if attendance is expected past 400.
+4. **Cloud Run caps a request at 3600s, and a WebSocket is one request.** The event runs 150 minutes, so every attendee is dropped once at the 1-hour mark. The client auto-reconnects with backoff and production has Upstash persistence keyed by playerId, so progress and inventory survive, but the player respawns at the world origin. Cosmetic disruption, once per attendee, not preventable (3600s is the Cloud Run maximum).
+5. **`x402_settle` is DOWN in production** (settle 42.6%, "Solana accept withdrawn, sponsor under SOL floor"). **Not on the meetup path** (the wheel and boutique settle $THREE on our own Solana rail, not x402), so it does not gate the event. The documented self-heal dry run shows 0.1229 SOL reclaimable from two agent wallets against a 0.309 SOL master deficit; both refill targets report `run_cap_reached`. Applying it moves real funds, so it is behind the spend gate and needs an explicit yes.
+6. **`rpc_lanes` degraded**: all 3 paid Solana lanes over quota simultaneously, serving from free public nodes. Self-clearing cooldowns; owner action only if they stop clearing (top up or upgrade the RPC plans).
+7. **gcloud auth had lapsed** and would have killed `gcloud builds submit` on contact. Restored in-session by exchanging the stored refresh token (no owner involvement); `gcloud run services describe` now answers normally.
+8. **Seven git worktrees exist, none reclaimable.** Another agent's build in `/workspaces/.deploy-wt-nirholas` is complete but pinned at `fa4a242e8`, which is **56 files / 8,555 insertions behind HEAD** and misses `2207a06f9` (server-side Coin Wars, event scoring, quest zones) and `109ba8fad` (event-drop payout hardening). **Do not ship that one.** `/workspaces/.deploy-wt` is 82 commits stale.
+
+### The staged ship
+
+Built from a clean worktree at a pinned SHA, per the runbook (worktree `/workspaces/.preflight-ship`, `node_modules` + `chat/node_modules` + `character-studio/build` hardlinked with `cp -al`, `.env` copied):
+
+- **Pinned SHA: `2bae5d8c2a396a5da33f392ea82382c0e6c46630`**
+
+Pin the SHA explicitly rather than resolving HEAD at submit time; main moved 80+ commits during this order.
+
+**Not mine, observed in passing.** Four defects I found were fixed by other agents mid-session before I could act on them (`ADVENTURE_MARK` undefined in the lobby, `CommunityNet: unknown event "souvenir"`, the `a11y.js` detached-region guard, and the 36px event CTA touch target, now `min-height: 44px`). `npm run audit:links` reports 81 empty `href="#"` anchors across the repo, none in `pages/play.html`, exit 0, pre-existing and out of scope here.
diff --git a/public/changelog.json b/public/changelog.json
index b5c4383a9..076c56b89 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-08-08T16:34:20.069Z",
+ "generated_at": "2026-08-08T16:36:57.268Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -196,6 +196,16 @@
"improvement"
]
},
+ {
+ "date": "2026-08-08",
+ "type": "update",
+ "title": "Show up to a live event and you keep something from it",
+ "summary": "There is now a free commemorative wearable for being somewhere at a particular time. Walk into the event world while a live event is running and the Meetup Laurel, a gold laurel circlet with three pearl berries at the front, lands on your account. A card slides in over the corner of the screen telling you what you got, with a button to put it on right there; it is not a pop-up, so it never interrupts what you were doing, and if you dismiss it the laurel is waiting in My Fits. It is yours permanently and wears in every coin world, not just the one you earned it in. The part that makes it worth having is what does not happen: when the event ends, it is never granted again. It has no price, it is not in the boutique, and there is no way to buy one afterwards. Joining twice does not give you two, and the server, not your browser, decides you earned it. The only way to have one is to have been there.",
+ "link": "/play",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-08-08",
"type": "update",
@@ -207,6 +217,17 @@
"improvement"
]
},
+ {
+ "date": "2026-08-08",
+ "type": "update",
+ "title": "The coin community list reads like a finished page now",
+ "summary": "Four things were wrong with the list of coin worlds on /play, and together they made the grid look unfinished. Every card carried a wide band of empty space under the coin's name, because the \"Enter community\" button was hidden until you hovered the card, while still taking up its full height. On a phone or tablet, where there is no hover, that button never appeared at all, so the most important control on the page was invisible to most of the people looking at it. The button now rests on every card as a quiet outline and turns solid white on hover or when you tab to it, which fills the space, works on touch, and tells you the tile is clickable in the first place. The cards also showed no market cap, because the trending and search feeds behind them were dropping the number before it ever reached the page; they now carry it, so each coin shows its size the way the featured world already did. The Adventure mode button's crossed-swords icon was an emoji with the colour stripped out, which on most machines collapses into a plain X and read as a close button next to the search field, so it is now a drawn icon. And an avatar in the character picker could show as an empty square: if a model turned out to have nothing measurable to photograph, the picker replaced a perfectly good preview with a fully transparent one. It now keeps whatever it was already showing.",
+ "link": "/play",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-08-08",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index bba1e4859..b73387c5b 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -150,6 +150,14 @@
<category>fix</category>
<description>If your connection dropped inside a coin world and came back, the people around you could end up duplicated: a frozen copy of everyone standing where they were when you dropped, plus their live selves, and a motionless copy of you standing at the spawn point on everyone else's screen. Reconnecting now rebuilds the crowd from what the world server actually holds, retires anyone who left while you were away, and tells the server to retire your old session the moment you return. Standing still through a drop no longer strands you at the spawn point either, and a tab you left in the background for a few minutes now checks its connection the instant you come back instead of sitting on a dead one that still claims to be connected. Nameplates past sixty metres stop being drawn, so a plaza with a hundred people in it costs what the people near you cost.</description>
</item>
+ <item>
+ <title>Show up to a live event and you keep something from it</title>
+ <link>https://three.ws/play</link>
+ <guid isPermaLink="false">2026-08-08:Show up to a live event and you keep something from it</guid>
+ <pubDate>Sat, 08 Aug 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>There is now a free commemorative wearable for being somewhere at a particular time. Walk into the event world while a live event is running and the Meetup Laurel, a gold laurel circlet with three pearl berries at the front, lands on your account. A card slides in over the corner of the screen telling you what you got, with a button to put it on right there; it is not a pop-up, so it never interrupts what you were doing, and if you dismiss it the laurel is waiting in My Fits. It is yours permanently and wears in every coin world, not just the one you earned it in. The part that makes it worth having is what does not happen: when the event ends, it is never granted again. It has no price, it is not in the boutique, and there is no way to buy one afterwards. Joining twice does not give you two, and the server, not your browser, decides you earned it. The only way to have one is to have been there.</description>
+ </item>
<item>
<title>The /play lobby and world stop leaking, and work on a phone</title>
<link>https://three.ws/play</link>
@@ -158,6 +166,14 @@
<category>fix</category>
<description>Entering and leaving coin worlds repeatedly used to leave the previous world behind: peers were duplicated on every reconnect, mobs and vehicles could vanish for an entire session if your avatar loaded slowly, and cancelling the holders gate left an invisible dialog trapping your keyboard until you reloaded. Those are fixed, along with a set of memory leaks that piled up every time you hopped worlds. On touch devices the Enter community button on each lobby card was invisible, because it only appeared on mouse hover; it is now always visible on phones and when tabbing with a keyboard. The three contextual action buttons that could stack exactly on top of each other now each have their own row, so standing near the wheel and a gather node no longer hides one behind the other. Denying microphone access repeatedly no longer breaks voice for the rest of your session.</description>
</item>
+ <item>
+ <title>The coin community list reads like a finished page now</title>
+ <link>https://three.ws/play</link>
+ <guid isPermaLink="false">2026-08-08:The coin community list reads like a finished page now</guid>
+ <pubDate>Sat, 08 Aug 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Four things were wrong with the list of coin worlds on /play, and together they made the grid look unfinished. Every card carried a wide band of empty space under the coin's name, because the &quot;Enter community&quot; button was hidden until you hovered the card, while still taking up its full height. On a phone or tablet, where there is no hover, that button never appeared at all, so the most important control on the page was invisible to most of the people looking at it. The button now rests on every card as a quiet outline and turns solid white on hover or when you tab to it, which fills the space, works on touch, and tells you the tile is clickable in the first place. The cards also showed no market cap, because the trending and search feeds behind them were dropping the number before it ever reached the page; they now carry it, so each coin shows its size the way the featured world already did. The Adventure mode button's crossed-swords icon was an emoji with the colour stripped out, which on most machines collapses into a plain X and read as a close button next to the search field, so it is now a drawn icon. And an avatar in the character picker could show as an empty square: if a model turned out to have nothing measurable to photograph, the picker replaced a perfectly good preview with a fully transparent one. It now keeps whatever it was already showing.</description>
+ </item>
<item>
<title>The meetup has its own jobs, and a live leaderboard to race on</title>
<link>https://three.ws/play</link>
diff --git a/public/features.json b/public/features.json
index 0e9656191..23f06f580 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-08-08T16:34:19.989Z",
+ "generated_at": "2026-08-08T16:36:57.126Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/game/spin-wheel.css b/src/game/spin-wheel.css
index f3f7cd771..8d5e8f4f0 100644
--- a/src/game/spin-wheel.css
+++ b/src/game/spin-wheel.css
@@ -118,6 +118,9 @@
.kg-spin-btn:active:not(:disabled) { transform: translateY(1px); }
.kg-spin-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.kg-spin-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
+/* `.kg-spin-free` carries no rules on purpose: the free spin is the primary
+ action, so it takes `.kg-spin-btn` above unchanged. The class stays as a hook
+ for tests and future theming. Only the paid button overrides. */
/* The paid spin is the secondary action: quieter than the free one. */
.kg-spin-btn.kg-spin-paid {
background: var(--cc-bg2); color: var(--cc-text); border-color: var(--cc-edge); box-shadow: none;
diff --git a/src/voice/voice-browser.js b/src/voice/voice-browser.js
index fc69f7d9f..14a58c62e 100644
--- a/src/voice/voice-browser.js
+++ b/src/voice/voice-browser.js
@@ -175,6 +175,53 @@ export function mountVoiceBrowser({ root, onSelect, onCatalog }) {
// ── Filtering ─────────────────────────────────────────────────────────────
+ // Sorted by relevance to THIS visitor, not by locale code. Unranked, a
+ // ~500-voice Edge catalog opens on af-ZA and sq-AL, which reads like a
+ // database dump. Voices that speak the visitor's own language come first,
+ // then English, then everything else; multi-language lanes (Gemini, OpenAI,
+ // NVIDIA) count as speaking it. Ties break on provider order, then name.
+ const PROVIDER_ORDER = new Map(
+ ['gemini', 'edge', 'nvidia', 'openai', 'elevenlabs'].map((id, i) => [id, i]),
+ );
+ const uiLocale = String(
+ (typeof navigator !== 'undefined' && navigator.language) || 'en-US',
+ ).toLowerCase();
+ const uiPrimary = uiLocale.split('-')[0];
+
+ function localeRank(v) {
+ const locale = String(v.locale || '').toLowerCase();
+ if (!locale) return String(v.language || '') === 'multi' ? 0 : 3;
+ if (locale === uiLocale) return 0;
+ if (locale.split('-')[0] === uiPrimary) return 1;
+ return locale.startsWith('en') ? 2 : 3;
+ }
+
+ /**
+ * Order a filtered list for display. Within a relevance rank the providers
+ * are round-robined rather than grouped, so the first screen is a mix (a
+ * Gemini voice, an Edge voice, an NVIDIA voice) instead of 30 Gemini cards
+ * with the visitor's own locale buried on page two.
+ */
+ function rankForDisplay(list) {
+ const seen = new Map(); // "<rank>:<provider>" -> how many placed so far
+ return list
+ .map((v) => {
+ const rank = localeRank(v);
+ const key = `${rank}:${v.provider}`;
+ const slot = seen.get(key) || 0;
+ seen.set(key, slot + 1);
+ return { v, rank, slot, order: PROVIDER_ORDER.get(v.provider) ?? 9 };
+ })
+ .sort(
+ (a, b) =>
+ a.rank - b.rank ||
+ a.slot - b.slot ||
+ a.order - b.order ||
+ String(a.v.name).localeCompare(String(b.v.name)),
+ )
+ .map((e) => e.v);
+ }
+
function applyFilter() {
const q = els.search.value.trim().toLowerCase();
const lang = els.language.value;
@@ -196,6 +243,9 @@ export function mountVoiceBrowser({ root, onSelect, onCatalog }) {
}
return true;
});
+ // The shared library arrives in ElevenLabs' own relevance order; re-sorting
+ // it would throw away the ranking the search just produced.
+ if (activeProvider !== 'elevenlabs-library') filtered = rankForDisplay(filtered);
renderCards(true);
setStatus(
`${filtered.length} voice${filtered.length === 1 ? '' : 's'}` +
diff --git a/tests/play-deeplink-safety.test.js b/tests/play-deeplink-safety.test.js
index 11f2e9a0f..94ba55dd3 100644
--- a/tests/play-deeplink-safety.test.js
+++ b/tests/play-deeplink-safety.test.js
@@ -142,3 +142,35 @@ describe('clampParam: name and symbol are display-only text', () => {
expect(clampParam(null, 16)).toBe('');
});
});
+
+// The Wheel of Fortune modal shipped with no stylesheet at all: its markup was
+// appended to document.body with `position`, `z-index` and sizing all undefined,
+// so the paid-spin flow rendered as an unstyled block below the WebGL canvas and
+// was effectively unreachable. It is a lazy chunk, so it cannot rely on
+// coincommunities.css having loaded; it must carry its own styles.
+describe('the spin wheel carries its own styles', () => {
+ const js = read('../src/game/spin-wheel-ui.js');
+ const css = read('../src/game/spin-wheel.css');
+
+ it('imports its stylesheet', () => {
+ expect(js).toMatch(/import '\.\/spin-wheel\.css'/);
+ });
+
+ it('positions the overlay itself rather than inheriting from the page', () => {
+ expect(css).toMatch(/\.kg-spin-overlay\s*\{[^}]*position:\s*fixed/s);
+ expect(css).toMatch(/\.kg-spin-overlay\s*\{[^}]*z-index/s);
+ });
+
+ it('has a rule for every class the modal renders', () => {
+ const used = new Set(
+ [...js.matchAll(/class: '([^']+)'/g)]
+ .flatMap((m) => m[1].split(/\s+/))
+ .filter((c) => c.startsWith('kg-spin')),
+ );
+ expect(used.size).toBeGreaterThan(10);
+ // `.kg-spin-free` is deliberately rule-less: the free spin is the primary
+ // action and takes `.kg-spin-btn` unchanged (see the note in the CSS).
+ const missing = [...used].filter((c) => c !== 'kg-spin-free' && !css.includes('.' + c));
+ expect(missing).toEqual([]);
+ });
+});