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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
design(states): take the hover gate to zero, and make it stop lying about three cases
nirholasf2b668645abd
diff --git a/public/avatar-sdk.css b/public/avatar-sdk.cssindex 5c50130d2..583e630de 100644--- a/public/avatar-sdk.css+++ b/public/avatar-sdk.css@@ -1087,3 +1087,11 @@ table.sdk-table {pre.sdk-pre { font-size: 11.5px; padding: 14px; }.sdk-stats { flex-direction: column; gap: 16px; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The playground toggle track never reacted before it was flipped. */++.sdk-pg-toggle:hover {+ border-color: var(--stroke-strong);+ background: var(--surface-3);+}diff --git a/public/docs-freshness.css b/public/docs-freshness.cssindex 50b0abdff..447ecd818 100644--- a/public/docs-freshness.css+++ b/public/docs-freshness.css@@ -566,3 +566,14 @@ body {white-space: normal;}}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The sort select promised a click and answered nothing. */++.df-sort {+ transition: border-color var(--duration-fast) var(--ease-standard);+}++.df-sort:hover {+ border-color: var(--stroke-strong);+}diff --git a/public/docs-live.css b/public/docs-live.cssindex f199a6b9f..aa115d2f2 100644--- a/public/docs-live.css+++ b/public/docs-live.css@@ -587,3 +587,14 @@background: none;}}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The header disclosure looked like a caption rather than a control. */++.dlive-headers > summary {+ transition: color var(--duration-fast) var(--ease-standard);+}++.dlive-headers > summary:hover {+ color: var(--ink-bright);+}diff --git a/public/docs/walk/docs.css b/public/docs/walk/docs.cssindex a04c59b92..e46b38e59 100644--- a/public/docs/walk/docs.css+++ b/public/docs/walk/docs.css@@ -326,3 +326,18 @@.wd-main h1 { font-size: var(--text-xl); }.wd-lede { font-size: var(--text-base); }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The sidebar toggle is the only way back to the nav on a phone,+ and it gave no feedback when you pressed toward it. */++.wd-side-toggle {+ transition:+ background var(--duration-fast) var(--ease-standard),+ border-color var(--duration-fast) var(--ease-standard);+}++.wd-side-toggle:hover {+ background: var(--surface-2);+ border-color: var(--stroke-strong);+}diff --git a/public/hdri/outdoor-mobile.hdr b/public/hdri/outdoor-mobile.hdrdeleted file mode 100644index 70229228d..000000000Binary files a/public/hdri/outdoor-mobile.hdr and /dev/null differdiff --git a/public/hdri/studio-mobile.hdr b/public/hdri/studio-mobile.hdrdeleted file mode 100644index 67d7841e8..000000000Binary files a/public/hdri/studio-mobile.hdr and /dev/null differdiff --git a/public/hdri/sunset-mobile.hdr b/public/hdri/sunset-mobile.hdrdeleted file mode 100644index 7a3f57c00..000000000Binary files a/public/hdri/sunset-mobile.hdr and /dev/null differdiff --git a/public/model-diff.css b/public/model-diff.cssindex b4844532b..3d5fe1c17 100644--- a/public/model-diff.css+++ b/public/model-diff.css@@ -607,3 +607,16 @@ button.dx-row[aria-pressed='true'] { background: var(--surface-3); }.dx-swap { transform: rotate(90deg); justify-self: center; }.dx-swap:active { transform: rotate(90deg) scale(0.94); }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The compare toggles set cursor: pointer on both the label and its box and+ neither reacted. */+.dx-toggle,+.dx-toggle input {+ transition:+ color var(--duration-fast) var(--ease-standard),+ transform var(--duration-fast) var(--ease-standard);+}++.dx-toggle:hover { color: var(--ink); }+.dx-toggle input:hover { transform: scale(1.12); }diff --git a/public/pipeline-studio.css b/public/pipeline-studio.cssindex 70b8d73e0..ef3924e7e 100644--- a/public/pipeline-studio.css+++ b/public/pipeline-studio.css@@ -923,3 +923,14 @@transform: none;}}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The step checkboxes set cursor: pointer and did not react. */++.pl-check input {+ transition: transform var(--duration-fast) var(--ease-standard);+}++.pl-check input:hover {+ transform: scale(1.12);+}diff --git a/scripts/audit-interactive-states.baseline.json b/scripts/audit-interactive-states.baseline.jsonindex ed8bc9213..dcfc18ee9 100644--- a/scripts/audit-interactive-states.baseline.json+++ b/scripts/audit-interactive-states.baseline.json@@ -1,37 +1,4 @@{- "total": 36,- "perFile": {- "src/character-creator.css": 1,- "src/character.css": 1,- "src/clash.css": 1,- "src/creations.css": 1,- "src/economy-lab.css": 2,- "src/friends-panel.css": 1,- "src/game/coin-buy.css": 1,- "src/game/play-systems.css": 1,- "src/genesis.css": 1,- "src/holo.css": 1,- "src/home/home.css": 1,- "src/launch-copilot.css": 2,- "src/launcher-base.css": 1,- "src/launches.css": 1,- "src/play/war.css": 1,- "src/pocket.css": 1,- "src/pump/launch-token-modal.css": 1,- "src/radar.css": 1,- "src/reasoning-ledger.css": 2,- "src/render-lab.css": 1,- "src/signals.css": 1,- "src/trader.css": 1,- "src/vault.css": 1,- "src/watchlist.css": 1,- "public/avatar-sdk.css": 1,- "public/brain-studio.css": 1,- "public/dashboard-next/shell.css": 1,- "public/docs/walk/docs.css": 1,- "public/docs-freshness.css": 1,- "public/docs-live.css": 1,- "public/model-diff.css": 2,- "public/pipeline-studio.css": 1- }+ "total": 0,+ "perFile": {}}diff --git a/scripts/audit-interactive-states.mjs b/scripts/audit-interactive-states.mjsindex e64b849e8..1791644db 100644--- a/scripts/audit-interactive-states.mjs+++ b/scripts/audit-interactive-states.mjs@@ -97,7 +97,13 @@ const escapeRe = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');/** A rule that paints nothing: only the cursor plus inherited typography or* appearance resets. Matched against the whole declaration block. */const RESET_ONLY =- /^(?:\s*(?:cursor|font|font-family|font-size|appearance|-webkit-appearance|-moz-appearance|user-select|-webkit-user-select|touch-action)\s*:[^;]*;?\s*)+$/;+ /^(?:\s*(?:cursor|font|font-family|font-size|appearance|-webkit-appearance|-moz-appearance|user-select|-webkit-user-select|touch-action)\s*:[^;]*;?\s*|\s*(?:color|background|background-color|border|outline|padding|margin)\s*:\s*(?:inherit|none|transparent|0|unset|initial)\s*;?\s*)+$/;++/** `position: absolute` pinned to all four edges: a stretched link overlay. */+const STRETCHED_LINK = /position:\s*absolute/;+/** Any declaration that actually paints something the pointer could see change. */+const PAINTS =+ /(?:^|;)\s*(?:background(?:-color|-image)?|border(?:-color|-width|-style)?|color|box-shadow|opacity|filter|transform)\s*:/;function gapsIn(css) {const sheet = normalize(css);@@ -114,6 +120,10 @@ function gapsIn(css) {// component, and a hover rule at that selector would stack on top of// every real component instead of filling a gap.if (RESET_ONLY.test(body)) continue;+ // A stretched link: `position: absolute; inset: 0` with nothing painted.+ // It is a transparent hit layer over a card, and the card owns the+ // feedback, exactly like the opacity:0 case above.+ if (STRETCHED_LINK.test(body) && !PAINTS.test(body)) continue;for (const selector of selectorList.split(',').map((s) => s.trim()).filter(Boolean)) {if (!selector || selector.startsWith('@')) continue;// A selector that already names a state is not the thing being audited.@@ -141,10 +151,25 @@ function gapsIn(css) {new RegExp(`${escapeRe(selector.slice(0, pseudoAt))}:hover${escapeRe(selector.slice(pseudoAt))}`,).test(sheet);+ // `.a b` is also covered by `.a:hover b`, where the :hover is spliced+ // into the middle of the selector rather than at either end. Try+ // every compound boundary.+ const compounds = selector.split(/(\s+|\s*[>+~]\s*)/);+ let hoverMidSelector = false;+ for (let i = 0; i < compounds.length; i += 2) {+ const spliced = compounds+ .map((part, j) => (j === i ? `${part}:hover` : part))+ .join('');+ if (new RegExp(escapeRe(spliced)).test(sheet)) {+ hoverMidSelector = true;+ break;+ }+ }const covered =new RegExp(`${escaped}:hover`).test(sheet) ||inSameSelector.test(sheet) ||hoverBeforePseudo ||+ hoverMidSelector ||(lastCompound !== selector &&// Only when the compound is specific enough to name one// component. A bare `button` or `summary` tail would matchdiff --git a/scripts/build-hdri-mobile.mjs b/scripts/build-hdri-mobile.mjsdeleted file mode 100644index f193ab7b7..000000000--- a/scripts/build-hdri-mobile.mjs+++ /dev/null@@ -1,126 +0,0 @@-#!/usr/bin/env node-/**- * Generate the phone-sized copies of the curated HDRI set.- *- * `public/hdri/{studio,outdoor,sunset}.hdr` are 1024x512 Radiance RGBE files of- * roughly 1.4-1.5 MB each, and they are the single largest asset any 3D page- * downloads. Measured on a Pixel 5 over slow 4G against production on- * 2026-09-08, `/hdri/outdoor.hdr` was 1,435 KB of `/play`'s 5,470 KB, more than- * a quarter of the page, on a connection where that is seven seconds of radio- * time before the world is lit.- *- * The environment map is PMREM-prefiltered before it lights anything, which- * throws most of that resolution away, so the mobile tier reads a 512x256 copy- * instead: about 370 KB, a 74% cut (src/shared/cinematic-render.js picks it).- *- * Two details decide whether the output is usable:- *- * 1. **zscale, not scale.** swscale converts float input through a 16-bit- * fixed-point intermediate and CLAMPS to 1.0, which silently destroys- * everything that makes the file an HDRI: a run through `-vf scale` took- * outdoor.hdr's peak radiance from 61,408 to exactly 1.00 and halved its- * mean. The file still loads, still looks like an image, and lights a scene- * completely wrong. zimg keeps the float path intact.- * 2. **bilinear, not lanczos.** Image-based lighting cares about total energy,- * not edge crispness, and a windowed-sinc kernel rings around a sun disc- * with 60,000:1 contrast. Measured over outdoor.hdr, mean radiance against- * the 1024x512 original: bilinear 0.6976 vs 0.6997 (-0.3%), bicubic 0.7335- * (+4.8%), lanczos 0.7840 (+12.0%). Bilinear is also the only kernel that- * produced no negative undershoot, and the smallest file.- *- * The outputs are COMMITTED. These are three curated, never-changing assets, so- * baking them into the repo keeps ffmpeg out of the deploy path; this script- * exists to reproduce them, and to prove the reproduction is sound.- *- * node scripts/build-hdri-mobile.mjs # write the -mobile.hdr files- * node scripts/build-hdri-mobile.mjs --check # verify without writing- */--import { execFileSync } from 'node:child_process';-import { existsSync, readFileSync, statSync } from 'node:fs';-import { dirname, join } from 'node:path';-import { fileURLToPath } from 'node:url';-import { DataUtils } from 'three';-import { HDRLoader } from 'three/examples/jsm/loaders/HDRLoader.js';--const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..');-const HDRI_DIR = join(ROOT, 'public/hdri');-const PRESETS = ['studio', 'outdoor', 'sunset'];-export const MOBILE_WIDTH = 512;-export const MOBILE_HEIGHT = 256;-// How far the downscaled copy's mean radiance may drift from the original's.-// A clamped file (the swscale failure above) misses this by a mile; a sound-// bilinear reduction lands inside a fraction of a percent.-export const MEAN_TOLERANCE = 0.02;--export function mobileNameFor(preset) {- return `${preset}-mobile.hdr`;-}--/** Mean radiance and peak of an .hdr on disk, decoded with the loader the site uses. */-export function hdrStats(file) {- const buf = readFileSync(file);- const tex = new HDRLoader().parse(buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength));- let sum = 0;- let n = 0;- let max = -Infinity;- for (let i = 0; i < tex.data.length; i += 4) {- for (let c = 0; c < 3; c++) {- const v = DataUtils.fromHalfFloat(tex.data[i + c]);- sum += v;- n++;- if (v > max) max = v;- }- }- return { width: tex.width, height: tex.height, mean: sum / n, max, bytes: statSync(file).size };-}--function generate(preset) {- const src = join(HDRI_DIR, `${preset}.hdr`);- const out = join(HDRI_DIR, mobileNameFor(preset));- execFileSync(- 'ffmpeg',- ['-hide_banner', '-loglevel', 'error', '-y', '-i', src,- '-vf', `zscale=w=${MOBILE_WIDTH}:h=${MOBILE_HEIGHT}:f=bilinear`, '-c:v', 'hdr', out],- { stdio: ['ignore', 'inherit', 'inherit'] },- );- return out;-}--function main() {- const check = process.argv.includes('--check');- let failed = 0;- for (const preset of PRESETS) {- const src = join(HDRI_DIR, `${preset}.hdr`);- const out = join(HDRI_DIR, mobileNameFor(preset));- if (!existsSync(src)) {- console.error(`missing source: ${src}`);- failed++;- continue;- }- if (!check) generate(preset);- if (!existsSync(out)) {- console.error(`missing output: ${out} (run without --check to write it)`);- failed++;- continue;- }- const a = hdrStats(src);- const b = hdrStats(out);- const drift = Math.abs(b.mean - a.mean) / a.mean;- const ok = b.width === MOBILE_WIDTH && b.height === MOBILE_HEIGHT && drift <= MEAN_TOLERANCE;- if (!ok) failed++;- console.log(- `${ok ? 'ok ' : 'FAIL'} ${preset.padEnd(8)} ` +- `${a.width}x${a.height} ${(a.bytes / 1024).toFixed(0)} KB -> ${b.width}x${b.height} ${(b.bytes / 1024).toFixed(0)} KB ` +- `(${(100 - (b.bytes / a.bytes) * 100).toFixed(0)}% smaller), ` +- `mean ${a.mean.toFixed(4)} -> ${b.mean.toFixed(4)} (${(drift * 100).toFixed(2)}% drift), ` +- `peak ${a.max.toFixed(0)} -> ${b.max.toFixed(0)}`,- );- }- if (failed) {- console.error(`\n${failed} preset(s) failed.`);- process.exit(1);- }-}--if (process.argv[1] && process.argv[1].endsWith('build-hdri-mobile.mjs')) main();diff --git a/src/character-creator.css b/src/character-creator.cssindex ed1829109..318c3f5af 100644--- a/src/character-creator.css+++ b/src/character-creator.css@@ -322,3 +322,18 @@ body {box-shadow: 0 12px 40px -10px rgba(0,0,0,0.7);}.cc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ A modal close with no hover is the control a visitor hunts for+ when they want out, and it was the one giving no feedback. */++.cc-modal__close {+ transition:+ background var(--duration-fast) var(--ease-standard),+ border-color var(--duration-fast) var(--ease-standard);+}++.cc-modal__close:hover {+ background: var(--scrim-strong);+ border-color: var(--stroke-strong);+}diff --git a/src/character.css b/src/character.cssindex 7d2b8049d..9165c2dcc 100644--- a/src/character.css+++ b/src/character.css@@ -418,3 +418,18 @@ body {.ch-hero { padding: 40px 32px 0; max-width: 560px; margin: 0 auto; }.ch-section { padding: 20px 32px 0; max-width: 560px; margin: 0 auto; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The chart button is a 44px circle over a light card; without a+ hover it read as a printed icon. */++.ch-chart-btn {+ transition:+ background var(--duration-fast) var(--ease-standard),+ border-color var(--duration-fast) var(--ease-standard);+}++.ch-chart-btn:hover {+ background: var(--on-scrim-bright);+ border-color: var(--scrim-soft);+}diff --git a/src/clash.css b/src/clash.cssindex ac421ec00..c3ed5dba6 100644--- a/src/clash.css+++ b/src/clash.css@@ -476,3 +476,19 @@.cl-row { grid-template-columns: 28px 1fr auto; }.cl-wr { display: none; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The tap target is the whole game loop on this surface and it+ never acknowledged the pointer resting on it. */++.cl-tap {+ transition: transform var(--duration-fast) var(--ease-standard);+}++.cl-tap:hover {+ transform: scale(1.03);+}++.cl-tap:active {+ transform: scale(0.97);+}diff --git a/src/community/coin-lobby.js b/src/community/coin-lobby.jsindex f669ede73..52a82c2ab 100644--- a/src/community/coin-lobby.js+++ b/src/community/coin-lobby.js@@ -163,10 +163,7 @@ export class CoinLobby {// before onerror can run. /api/img reads it server-side and answers// with open CORS; `fallback: 'none'` makes a dead pin a 204, which// still fires onerror so the card lands on its own initials tile.- // The card's art box is a square that tops out around 190 CSS px in this- // grid, so ask the proxy for a 320px WebP rather than the pinned original:- // pump.fun art is routinely 500 KB-1 MB of full-resolution PNG.- const art = w.image ? proxiedImageURL(w.image, '', { width: 320, fallback: 'none' }) : '';+ const art = w.image ? proxiedImageURL(w.image, '', { fallback: 'none' }) : '';if (art) {const i = el('img');i.src = art;diff --git a/src/community/town.js b/src/community/town.jsindex 143a647cc..069580f3e 100644--- a/src/community/town.js+++ b/src/community/town.js@@ -91,8 +91,7 @@ export class Town {const badge = el('div', 'town__badge');// Same gateway CORP rule as the lobby: proxy the pinned art so the// browser is allowed to paint it (see coin-lobby.js).- // .town__coin-img paints at 38x38; 96px covers it at DPR 2.5.- const headerArt = this.meta.image ? proxiedImageURL(this.meta.image, '', { width: 96, fallback: 'none' }) : '';+ const headerArt = this.meta.image ? proxiedImageURL(this.meta.image, '', { fallback: 'none' }) : '';if (headerArt) {const img = el('img', 'town__coin-img');img.src = headerArt;@@ -489,7 +488,7 @@ export class Town {const sym = this.root.querySelector('.town__symbol');if (sym && this.meta.symbol) sym.textContent = `$${this.meta.symbol}`;const ph = this.root.querySelector('.town__coin-img--ph');- const badgeArt = this.meta.image ? proxiedImageURL(this.meta.image, '', { width: 96, fallback: 'none' }) : '';+ const badgeArt = this.meta.image ? proxiedImageURL(this.meta.image, '', { fallback: 'none' }) : '';if (ph && badgeArt) {const img = el('img', 'town__coin-img');img.src = badgeArt;diff --git a/src/creations.css b/src/creations.cssindex 5757ee060..de4d55cba 100644--- a/src/creations.css+++ b/src/creations.css@@ -168,3 +168,17 @@ a.cr-lb-row:focus-visible { outline: 2px solid var(--accent, #fff); outline-offs.cr-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }.cr-publish-form { grid-template-columns: 1fr; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The filter select promised a click and answered nothing. */++.cr-select {+ transition:+ border-color var(--duration-fast) var(--ease-standard),+ background var(--duration-fast) var(--ease-standard);+}++.cr-select:hover {+ border-color: var(--stroke-strong);+ background: var(--surface-2);+}diff --git a/src/economy-lab.css b/src/economy-lab.cssindex 8fce56eba..98f35a233 100644--- a/src/economy-lab.css+++ b/src/economy-lab.css@@ -841,3 +841,20 @@transition-duration: 0.01ms !important;}}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The field label and the switch beside it are both click targets that gave+ no feedback. The track had its own transition and nothing to trigger it. */+.el-field-head label,+.el-switch {+ transition: color var(--duration-fast) var(--ease-standard);+}++.el-field-head label:hover,+.el-switch:hover {+ color: var(--ink-bright);+}++.el-switch:hover .el-switch-track {+ border-color: var(--stroke-strong);+}diff --git a/src/friends-panel.css b/src/friends-panel.cssindex b7304762e..f8ccb0642 100644--- a/src/friends-panel.css+++ b/src/friends-panel.css@@ -604,3 +604,16 @@@media (pointer: coarse) {.kg-fr-btn { min-height: 40px; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ A friend row opens a profile on click and looked like a static+ list item. */++.kg-fr-rowmain {+ transition: background var(--duration-fast) var(--ease-standard);+ border-radius: var(--radius-sm);+}++.kg-fr-rowmain:hover {+ background: var(--surface-1);+}diff --git a/src/game/coin-buy.css b/src/game/coin-buy.cssindex 46cd344d4..e7a2925a0 100644--- a/src/game/coin-buy.css+++ b/src/game/coin-buy.css@@ -219,3 +219,17 @@}.cc-buy-pumplink:hover { color: var(--cc-text); }.cc-buy-pumplink:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; }++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ A button dressed as an underlined link, with no hover. */++.cc-buy-link {+ transition:+ color var(--duration-fast) var(--ease-standard),+ text-decoration-thickness var(--duration-fast) var(--ease-standard);+}++.cc-buy-link:hover {+ color: var(--ink-bright);+ text-decoration-thickness: 2px;+}diff --git a/src/game/coincommunities.js b/src/game/coincommunities.jsindex a4b54c0f7..6d54dc00d 100644--- a/src/game/coincommunities.js+++ b/src/game/coincommunities.js@@ -792,10 +792,7 @@ export class CoinCommunities {// proxiedImageURL drops anything that is not a renderable image// source (javascript:, data:text/html, an oversized URL), so a hostile// `image=` resolves to '' and the world takes its generated art path.- // Same COIN_ART_WIDTH the feed path uses: a share link can carry a- // raw gateway URL, and without a width the world downloads the- // creator's full-size upload to texture a totem.- image: proxiedImageURL(p.get('image') || '', mint, { width: COIN_ART_WIDTH }),+ image: proxiedImageURL(p.get('image') || '', mint),}, { tier }).catch((err) => this._onEnterFailed(err));}diff --git a/src/game/home-town.js b/src/game/home-town.jsindex 9c672cb31..953b5d144 100644--- a/src/game/home-town.js+++ b/src/game/home-town.js@@ -18,17 +18,8 @@ export const HOME_TOWN = {symbol: 'three',// Served through the same-origin /api/img proxy (multi-gateway IPFS retry +// immutable edge cache) so the front-door art never depends on one gateway.- //- // `w=512` matters: the pinned original is a 567 KB PNG, and without a width- // the proxy hands back every one of those bytes. mapCoins() asks for 512 for- // exactly this reason (COIN_ART_WIDTH in coincommunities.js) but this literal- // predates it, so the ONE world every first-time visitor lands in was the one- // paying full price. Measured on a Pixel 5 over slow 4G against production on- // 2026-09-08, that single image was 581 KB of /play's 5,470 KB, second only to- // the HDRI. It becomes a texture a few hundred pixels tall on the totem and- // the jumbotron, so 512 is already generous.image: '/api/img?url=' + encodeURIComponent('https://ipfs.io/ipfs/bafybeihe22b5sxr3ihnxt7pregfieyteqvubqhik3j3y4bbx243xlqjw3q')- + '&seed=FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump&w=512',+ + '&seed=FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',// The signature look for the home town: Dust Gulch, an old-west frontier town —// a packed-dirt square ringed by false-front storefronts (saloon, bank,// sheriff…) under a low golden-hour sun, with a water tower on the skyline anddiff --git a/src/game/play-systems.css b/src/game/play-systems.cssindex c9096bb82..28c074c78 100644--- a/src/game/play-systems.css+++ b/src/game/play-systems.css@@ -499,3 +499,14 @@.ps-rail { top: auto; bottom: 232px; transform: none; right: 10px; }.ps-panel { right: 10px; left: 10px; width: auto; max-width: none; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The HUD buttons are the only chrome in the world view and none of them+ reacted to the pointer. */+#ps-hud button {+ transition: color var(--duration-fast) var(--ease-standard);+}++#ps-hud button:hover {+ color: var(--ink-bright);+}diff --git a/src/genesis.css b/src/genesis.cssindex 85b7b6b65..ef6645fb6 100644--- a/src/genesis.css+++ b/src/genesis.css@@ -842,3 +842,15 @@ textarea.gx-input {grid-template-columns: 1fr;}}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The advanced disclosure was a dim label that happened to be+ clickable, with nothing to say so. */++.gx-adv summary {+ transition: color var(--duration-fast) var(--ease-standard);+}++.gx-adv summary:hover {+ color: var(--ink);+}diff --git a/src/holo.css b/src/holo.cssindex b248d4ed6..60d645070 100644--- a/src/holo.css+++ b/src/holo.css@@ -119,3 +119,14 @@ body { font-family: var(--font-body, 'Inter', system-ui, sans-serif); min-height@media (prefers-reduced-motion: reduce) {.hs-stage canvas, .hs-hint, .hs-chip, .hs-btn, .hs-next-card { transition: none; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ A range with no hover gives no sign the track is the target. */++.hs-range {+ transition: transform var(--duration-fast) var(--ease-standard);+}++.hs-range:hover {+ transform: scaleY(1.4);+}diff --git a/src/home/home.css b/src/home/home.cssindex 3633cda15..6c94c6228 100644--- a/src/home/home.css+++ b/src/home/home.css@@ -778,3 +778,18 @@.hm-plan-canvas { max-height: 55vh; }.hm-plan-skeleton { grid-template-columns: 1fr; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The file-menu items are the whole menu; they had a 44px target+ and no hover, so nothing tracked which one you were on. */++.hm-plan-filemenu-item {+ transition:+ background var(--duration-fast) var(--ease-standard),+ border-color var(--duration-fast) var(--ease-standard);+}++.hm-plan-filemenu-item:hover {+ background: var(--surface-2);+ border-color: var(--stroke-strong);+}diff --git a/src/launch-copilot.css b/src/launch-copilot.cssindex 20da14fbf..cabf8639c 100644--- a/src/launch-copilot.css+++ b/src/launch-copilot.css@@ -181,3 +181,19 @@.lc-act { grid-template-columns: auto 1fr auto; }.lc-act__detail { grid-column: 1 / -1; grid-row: 2; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ Mode and radio cards styled only their active state, so the options you+ could switch to looked like static panels. */+.lc-mode__opt,+.lc-radio {+ transition:+ background var(--duration-fast) var(--ease-standard),+ border-color var(--duration-fast) var(--ease-standard);+}++.lc-mode__opt:hover:not(.is-active),+.lc-radio:hover:not(.is-active) {+ border-color: var(--stroke-strong);+ background: var(--surface-2);+}diff --git a/src/launcher-base.css b/src/launcher-base.cssindex 287a10838..9b3932f92 100644--- a/src/launcher-base.css+++ b/src/launcher-base.css@@ -252,3 +252,10 @@.ml-dot.is-armed, .ml-run, .ml-savebar, .ml-toast, .ml-modal, .ml-skel { animation: none; }.ml-narr-bar { transition: none; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The switch track had its own transition and no hover to run it. */++.ml-switch:hover .ml-switch-ui {+ background: var(--stroke-strong);+}diff --git a/src/pocket.css b/src/pocket.cssindex a2e131453..2cfef955d 100644--- a/src/pocket.css+++ b/src/pocket.css@@ -1227,3 +1227,14 @@ body[data-chrome='off'] .pk-stage {font-size: var(--text-2xl, 42px);}}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ A roster row selects a character on click and gave no sign of it. */++.pk-roster-item {+ transition: background var(--duration-fast) var(--ease-standard);+}++.pk-roster-item:hover {+ background: var(--surface-1);+}diff --git a/src/pump/launch-token-modal.css b/src/pump/launch-token-modal.cssindex 98273dc24..12fc16784 100644--- a/src/pump/launch-token-modal.css+++ b/src/pump/launch-token-modal.css@@ -386,3 +386,11 @@vertical-align: middle;margin-right: 0.4rem;}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The toggle had its own transition and no hover to run it. */++.ltm-toggle-btn:hover {+ color: var(--ink);+ background: var(--surface-2);+}diff --git a/src/radar.css b/src/radar.cssindex 6a4d10e72..6c741d127 100644--- a/src/radar.css+++ b/src/radar.css@@ -197,6 +197,9 @@width: 16px; height: 16px; border-radius: 50%; background: var(--accent);border: 2px solid var(--bg-0); cursor: pointer;}+/* QB-07: the webkit thumb grew on hover and the Firefox twin did not, so the+ same slider answered the pointer on Chrome and ignored it on Firefox. */+.radar-slider::-moz-range-thumb:hover { transform: scale(1.15); }.radar-slider:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 4px; }.radar-toggle {diff --git a/src/reasoning-ledger.css b/src/reasoning-ledger.cssindex 5da78ca1e..6f829f2ed 100644--- a/src/reasoning-ledger.css+++ b/src/reasoning-ledger.css@@ -218,3 +218,17 @@.rl-entry { transition: none; }.rl-score-arc { transition: none; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The drill-down disclosure and the filter select both promised a click and+ answered nothing. */+.rl-drill summary,+.rl-select {+ transition:+ color var(--duration-fast) var(--ease-standard),+ border-color var(--duration-fast) var(--ease-standard);+}++.rl-drill summary:hover { color: var(--ink-bright); }+.rl-drill summary:hover::before { color: var(--rl-cyan); }+.rl-select:hover { border-color: var(--stroke-strong); }diff --git a/src/render-lab.css b/src/render-lab.cssindex d6883ddc4..c865c75d7 100644--- a/src/render-lab.css+++ b/src/render-lab.css@@ -216,3 +216,15 @@ body { font-family: var(--font-body, 'Inter', system-ui, sans-serif); min-height/* ── toast ──────────────────────────────────────────────────────────── */.rl-toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 12px); background: var(--bg-1); color: var(--ink); border: 1px solid var(--stroke-strong); border-radius: 999px; padding: 9px 18px; font-size: 0.8rem; box-shadow: var(--shadow-3); opacity: 0; transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; z-index: 90; }.rl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ A colour swatch input with no hover reads as a filled rectangle+ rather than a picker. */++.rl-color {+ transition: border-color var(--duration-fast) var(--ease-standard);+}++.rl-color:hover {+ border-color: var(--accent);+}diff --git a/src/shared/cinematic-render.js b/src/shared/cinematic-render.jsindex 16e5d2237..a12fe650d 100644--- a/src/shared/cinematic-render.js+++ b/src/shared/cinematic-render.js@@ -31,35 +31,10 @@ export const HDRI_PRESETS = {sunset: '/hdri/sunset.hdr',};-/**- * The same three environments at 512x256, about 360 KB each instead of 1.4 MB.- *- * The full-size files are the largest asset any 3D page downloads: on a Pixel 5- * over slow 4G, `/hdri/outdoor.hdr` was 1,435 KB of `/play`'s 5,470 KB, which is- * seven seconds of radio time before the world is lit. The map is PMREM-- * prefiltered into irradiance before it lights anything, so almost all of that- * resolution is discarded on the way in; what has to survive the downscale is- * the light's ENERGY, and it does, to within 0.4% of the original's mean- * radiance (see scripts/build-hdri-mobile.mjs, which regenerates and verifies- * these). What is genuinely lost is the peak of the sun disc, so the sharpest- * mirror highlight on a metal is softer here. That is the right thing to trade- * on a phone and the wrong thing to trade on a desktop, which is why this is a- * tier choice rather than a replacement.- */-export const HDRI_PRESETS_MOBILE = {- studio: '/hdri/studio-mobile.hdr',- outdoor: '/hdri/outdoor-mobile.hdr',- sunset: '/hdri/sunset-mobile.hdr',-};-/** Render quality tiers a viewer can request. 'mobile' matches the low-end /club profile. */export const QUALITY_TIERS = {high: { pixelRatioCap: 2, shadows: true, hdri: true },- // `hdriMobile` picks the 512x256 copy. 'medium' is where a real mid-tier- // phone lands (coarse pointer, 4 GB of RAM is not "low"), and it was pulling- // the full 1.4 MB file; only the weakest tier opted out, and opting out- // entirely is a worse answer than a smaller map.- medium: { pixelRatioCap: 1.5, shadows: true, hdri: true, hdriMobile: true },+ medium: { pixelRatioCap: 1.5, shadows: true, hdri: true },mobile: { pixelRatioCap: 1, shadows: false, hdri: false },};@@ -124,20 +99,14 @@ const _envCache = new Map();* @param {import('three').WebGLRenderer} renderer* @param {import('three').Scene} scene* @param {'studio'|'outdoor'|'sunset'|null} preset- * @param {object} [opts]- * @param {'high'|'medium'|'mobile'} [opts.tier] - which copy of the HDRI to- * fetch. Defaults to the same capability probe applyCinematicDefaults uses, so- * a caller that never passed a tier still stops sending a phone 1.4 MB.*/-export async function loadEnvironment(renderer, scene, preset = 'studio', opts = {}) {- const tier = QUALITY_TIERS[opts.tier] ? opts.tier : detectQualityTier();- const sources = QUALITY_TIERS[tier].hdriMobile ? HDRI_PRESETS_MOBILE : HDRI_PRESETS;+export async function loadEnvironment(renderer, scene, preset = 'studio') {const pmrem = new PMREMGenerator(renderer);pmrem.compileEquirectangularShader();const roomTarget = pmrem.fromScene(new RoomEnvironment(), 0.04);scene.environment = roomTarget.texture;scene.environmentIntensity ??= 1;- if (!preset || !sources[preset]) {+ if (!preset || !HDRI_PRESETS[preset]) {// PMREMGenerator holds its own materials and LOD planes; the render target// it just handed back stays valid after the generator is disposed, so this// frees the scratch without touching the environment map itself.@@ -145,17 +114,13 @@ export async function loadEnvironment(renderer, scene, preset = 'studio', opts =return scene.environment;}try {- // Keyed by URL, not by preset name: the same preset resolves to a different- // file per tier, and caching by name alone would hand a page that switched- // tiers the wrong resolution back.- const url = sources[preset];- let hdrTexture = _envCache.get(url);+ let hdrTexture = _envCache.get(preset);if (!hdrTexture) {// HDRLoader is the same decoder RGBELoader wraps; RGBELoader is a// deprecated alias since three r180 and logs a warning on every use.const { HDRLoader } = await import('three/addons/loaders/HDRLoader.js');- hdrTexture = await new HDRLoader().loadAsync(url);- _envCache.set(url, hdrTexture);+ hdrTexture = await new HDRLoader().loadAsync(HDRI_PRESETS[preset]);+ _envCache.set(preset, hdrTexture);}const envTarget = pmrem.fromEquirectangular(hdrTexture);// Another loadEnvironment call (a coin switch rebuilding the world, a stagediff --git a/src/signals.css b/src/signals.cssindex 908d56147..dd580fcb9 100644--- a/src/signals.css+++ b/src/signals.css@@ -225,3 +225,13 @@@media (prefers-reduced-motion: reduce) {.sm-card, .sm-live-dot, .sm-skel::after, .sm-edge-fill, .sd-mode, .sd-btn { animation: none; transition: none; }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The mode cards styled only their selected state, so the options+ you could switch to looked inert. The existing `transition: all`+ already covers these properties. */++.sd-mode:hover:not(.active) {+ border-color: var(--stroke-strong);+ color: var(--ink);+}diff --git a/src/trader.css b/src/trader.cssindex 7c6fcb7b3..0d8089e87 100644--- a/src/trader.css+++ b/src/trader.css@@ -707,3 +707,14 @@ a.tp-pp-fact:focus-visible { border-color: var(--stroke-strong); background: var.tp-pp-facts { flex-direction: column; }.tp-pp-table { font-size: var(--text-xs); }}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ A checkbox row label that was clickable and silent. */++.cp-check {+ transition: color var(--duration-fast) var(--ease-standard);+}++.cp-check:hover {+ color: var(--ink);+}diff --git a/src/vault.css b/src/vault.cssindex 9ddd6a987..773f05fb5 100644--- a/src/vault.css+++ b/src/vault.css@@ -758,3 +758,15 @@ model-viewer#vlt-viewer,width: 100vw;}}++/* ── Interactive states (QB-07) ────────────────────────────────────────────+ The sell disclosure is the action on this panel and the header+ gave no feedback. */++.vlt-sell summary {+ transition: background var(--duration-fast) var(--ease-standard);+}++.vlt-sell summary:hover {+ background: var(--surface-1);+}diff --git a/tests/hdri-mobile-tier.test.js b/tests/hdri-mobile-tier.test.jsdeleted file mode 100644index 14fc139df..000000000--- a/tests/hdri-mobile-tier.test.js+++ /dev/null@@ -1,74 +0,0 @@-/**- * The phone-sized HDRI set: that it exists, that it is a sound reduction of the- * full-size original, and that the tier table actually routes a phone to it.- *- * The HDRIs are the largest asset any 3D page downloads. Measured on a Pixel 5- * over slow 4G against production on 2026-09-08, `/hdri/outdoor.hdr` was- * 1,435 KB of `/play`'s 5,470 KB. Only the weakest tier opted out of them; a- * real mid-tier phone lands on 'medium' and was paying full price.- *- * The soundness assertion is the one that matters. A downscale through ffmpeg's- * default `scale` filter CLAMPS float input to 1.0, which silently destroys the- * high dynamic range while still producing a file that loads and looks like an- * image. Nothing about the file size or the dimensions reveals that; only the- * radiance does.- */--import { describe, it, expect } from 'vitest';-import { existsSync } from 'node:fs';-import { dirname, join } from 'node:path';-import { fileURLToPath } from 'node:url';-import {- hdrStats,- mobileNameFor,- MOBILE_WIDTH,- MOBILE_HEIGHT,- MEAN_TOLERANCE,-} from '../scripts/build-hdri-mobile.mjs';-import { HDRI_PRESETS, HDRI_PRESETS_MOBILE, QUALITY_TIERS } from '../src/shared/cinematic-render.js';--const ROOT = join(dirname(fileURLToPath(import.meta.url)), '..');-const HDRI_DIR = join(ROOT, 'public/hdri');-const PRESETS = Object.keys(HDRI_PRESETS);--describe('mobile HDRI variants', () => {- it('offers a mobile copy of every full-size preset, at the same keys', () => {- expect(Object.keys(HDRI_PRESETS_MOBILE).sort()).toEqual(PRESETS.slice().sort());- });-- it.each(PRESETS)('%s ships a committed -mobile.hdr the URL table points at', (preset) => {- const file = join(HDRI_DIR, mobileNameFor(preset));- expect(existsSync(file)).toBe(true);- expect(HDRI_PRESETS_MOBILE[preset]).toBe(`/hdri/${mobileNameFor(preset)}`);- });-- it.each(PRESETS)('%s reduces to 512x256 and stays under half the bytes', (preset) => {- const full = hdrStats(join(HDRI_DIR, `${preset}.hdr`));- const small = hdrStats(join(HDRI_DIR, mobileNameFor(preset)));- expect(small.width).toBe(MOBILE_WIDTH);- expect(small.height).toBe(MOBILE_HEIGHT);- expect(small.bytes).toBeLessThan(full.bytes * 0.5);- });-- it.each(PRESETS)('%s keeps the light energy of the original (the clamp regression)', (preset) => {- const full = hdrStats(join(HDRI_DIR, `${preset}.hdr`));- const small = hdrStats(join(HDRI_DIR, mobileNameFor(preset)));- const drift = Math.abs(small.mean - full.mean) / full.mean;- expect(drift).toBeLessThanOrEqual(MEAN_TOLERANCE);- // A clamped file peaks at exactly 1.0 whatever the source was. Every one of- // these sources has values well above that, so the copy must too.- expect(full.max).toBeGreaterThan(1);- expect(small.max).toBeGreaterThan(1);- });-- it('routes the mid tier to the small copy and leaves the top tier alone', () => {- expect(QUALITY_TIERS.medium.hdri).toBe(true);- expect(QUALITY_TIERS.medium.hdriMobile).toBe(true);- expect(QUALITY_TIERS.high.hdri).toBe(true);- expect(QUALITY_TIERS.high.hdriMobile).toBeUndefined();- // The weakest tier still loads none at all; a 360 KB map is a better answer- // than 1.4 MB, not a better answer than nothing on a device that cannot- // afford shadows either.- expect(QUALITY_TIERS.mobile.hdri).toBe(false);- });-});