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.

feat: dashboard and studio surface updates

nirholas837e5a39d9a5
diff --git a/public/dashboard/_dash-shell.css b/public/dashboard/_dash-shell.css
index 072444d5b..a73e0cf0d 100644
--- a/public/dashboard/_dash-shell.css
+++ b/public/dashboard/_dash-shell.css
@@ -37,7 +37,7 @@ h1.dash-title { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
color: #aaa;
}
.dash-btn {
- background: #1a1a1a;
+ background: var(--bg-1);
color: #eee;
border: 1px solid var(--border);
border-radius: 8px;
@@ -48,11 +48,11 @@ h1.dash-title { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.dash-btn:hover { background: #2a2a2a; }
.dash-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dash-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
-.dash-btn.primary:hover { background: #e8e8e8; }
+.dash-btn.primary:hover { background: var(--ink); }
.dash-btn.danger { color: #ff8a9c; border-color: #3a2530; }
.dash-btn.danger:hover { background: #2a1820; }
.dash-input, .dash-textarea, .dash-select {
- background: #0a0a0a;
+ background: var(--bg-0);
color: #eee;
border: 1px solid var(--border);
border-radius: 8px;
diff --git a/public/dashboard/actions.html b/public/dashboard/actions.html
index 0a8eb3b2e..6c3510e75 100644
--- a/public/dashboard/actions.html
+++ b/public/dashboard/actions.html
@@ -153,15 +153,15 @@
}
.action-icon.speak {
background: rgba(255, 255, 255, 0.2);
- color: #a5b4fc;
+ color: var(--ink);
}
.action-icon.remember {
background: rgba(34, 197, 94, 0.2);
color: #86efac;
}
.action-icon.sign {
- background: rgba(168, 85, 247, 0.2);
- color: #d8b4fe;
+ background: rgba(255, 255, 255, 0.10);
+ color: var(--ink);
}
.action-icon.skill-done {
background: rgba(59, 130, 246, 0.2);
diff --git a/public/dashboard/embed-policy.html b/public/dashboard/embed-policy.html
index c7362b1ee..189714965 100644
--- a/public/dashboard/embed-policy.html
+++ b/public/dashboard/embed-policy.html
@@ -35,7 +35,7 @@
min-height: 100vh;
}
a {
- color: #9a8cff;
+ color: #888888;
text-decoration: none;
}
header {
diff --git a/public/dashboard/memory.html b/public/dashboard/memory.html
index b5def8a81..16c3284df 100644
--- a/public/dashboard/memory.html
+++ b/public/dashboard/memory.html
@@ -69,7 +69,7 @@
transition: all .15s;
}
.mem-tab:hover { color: #ddd; border-color: var(--border); }
- .mem-tab.active { border-color: var(--accent); color: #c8c0ff; background: rgba(106,92,255,.1); }
+ .mem-tab.active { border-color: var(--accent); color: var(--ink); background: rgba(255,255,255,.05); }
/* ── Memory cards ───────────────────────────────────────────── */
.mem-card {
@@ -99,7 +99,7 @@
margin-top: 2px;
}
.mem-type-user { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
- .mem-type-feedback{ background: rgba(168,85,247,.15); color: #d8b4fe; border: 1px solid rgba(168,85,247,.3); }
+ .mem-type-feedback{ background: rgba(255,255,255,.07); color: var(--ink-dim); border: 1px solid rgba(255,255,255,.14); }
.mem-type-project { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.mem-type-reference{background: rgba(251,146,60,.15); color: #fdba74; border: 1px solid rgba(251,146,60,.3); }
@@ -484,7 +484,7 @@
}
function typeColor(t) {
- return { user: '#93c5fd', feedback: '#d8b4fe', project: '#86efac', reference: '#fdba74' }[t] || '#aaa';
+ return { user: '#93c5fd', feedback: '#888888', project: '#86efac', reference: '#fdba74' }[t] || '#aaa';
}
function renderMemoryCard(m, editing = false) {
diff --git a/public/dashboard/portfolio-asset.html b/public/dashboard/portfolio-asset.html
index 4147becdb..206cf17d7 100644
--- a/public/dashboard/portfolio-asset.html
+++ b/public/dashboard/portfolio-asset.html
@@ -28,7 +28,7 @@
color: var(--text);
margin: 0; min-height: 100vh;
}
- a { color: #9a8cff; text-decoration: none; }
+ a { color: #888888; text-decoration: none; }
header {
display: flex; align-items: center; justify-content: space-between;
padding: 16px 24px; border-bottom: 1px solid var(--border);
@@ -63,7 +63,7 @@
text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.pill.sol { background: rgba(20,241,149,0.12); color: var(--ok); }
- .pill.evm { background: rgba(106,92,255,0.16); color: #9a8cff; }
+ .pill.evm { background: rgba(255,255,255,0.08); color: var(--ink-dim); }
.chip {
display: inline-flex; align-items: center; gap: 4px;
padding: 4px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
@@ -75,7 +75,7 @@
.hero {
background:
- radial-gradient(900px 240px at 20% -40%, rgba(106,92,255,0.16), transparent 60%),
+ radial-gradient(900px 240px at 20% -40%, rgba(255,255,255,0.08), transparent 60%),
radial-gradient(600px 200px at 90% -20%, rgba(255,92,168,0.12), transparent 60%),
#06060a;
border: 1px solid var(--border-2);
@@ -182,7 +182,7 @@
.desc {
font-size: 13px; line-height: 1.6; color: #b8b8c4;
}
- .desc a { color: #9a8cff; }
+ .desc a { color: #888888; }
.address {
display: flex; align-items: center; gap: 6px; margin-top: 10px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
@@ -544,13 +544,13 @@
handleScale: false,
});
const seriesOpts = {
- lineColor: '#9a8cff',
- topColor: 'rgba(154,140,255,0.35)',
- bottomColor: 'rgba(154,140,255,0)',
+ lineColor: '#888888',
+ topColor: 'rgba(255,255,255,0.17)',
+ bottomColor: 'rgba(255,255,255,0)',
lineWidth: 2,
priceFormat: { type: 'price', precision: 6, minMove: 0.000001 },
crosshairMarkerRadius: 5,
- crosshairMarkerBorderColor: '#9a8cff',
+ crosshairMarkerBorderColor: '#888888',
crosshairMarkerBackgroundColor: '#fff',
};
series = chart.addAreaSeries
diff --git a/public/dashboard/portfolio.html b/public/dashboard/portfolio.html
index 8f724cd0a..5e2a48aff 100644
--- a/public/dashboard/portfolio.html
+++ b/public/dashboard/portfolio.html
@@ -36,7 +36,7 @@
display: flex;
flex-direction: column;
}
- a { color: #9a8cff; text-decoration: none; }
+ a { color: #888888; text-decoration: none; }
/* ── Site header ───────────────────────────────────────────────── */
.site-header {
@@ -59,7 +59,7 @@
position: absolute;
left: 0; right: 0; bottom: -1px;
height: 1px;
- background: linear-gradient(90deg, transparent 0%, rgba(154,140,255,0.4) 35%, rgba(99,102,241,0.35) 60%, rgba(34,211,238,0.25) 80%, transparent 100%);
+ background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 35%, rgba(255,255,255,0.15) 60%, rgba(34,211,238,0.25) 80%, transparent 100%);
pointer-events: none;
}
.site-brand {
@@ -94,7 +94,7 @@
white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
- .site-nav a.active { color: #fff; background: rgba(106,92,255,0.14); }
+ .site-nav a.active { color: #fff; background: rgba(255,255,255,0.07); }
.site-header-right {
display: flex;
@@ -154,11 +154,11 @@
.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sidebar-link.active {
color: #fff;
- background: rgba(106,92,255,0.14);
+ background: rgba(255,255,255,0.07);
box-shadow: inset 2px 0 0 var(--accent);
}
.sidebar-link svg { flex-shrink: 0; opacity: 0.65; }
- .sidebar-link.active svg { opacity: 1; color: #9a8cff; }
+ .sidebar-link.active svg { opacity: 1; color: var(--ink-dim); }
/* ── Main content ──────────────────────────────────────────────── */
.dash-main {
@@ -182,7 +182,7 @@
.btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
- .btn.primary:hover { background: #7d70ff; border-color: #7d70ff; }
+ .btn.primary:hover { background: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.9); }
.btn.sec { background: #16161f; color: #d0d0e0; border-color: var(--border); }
.btn.sec:hover { background: #1e1e2a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted-2); }
@@ -193,7 +193,7 @@
/* ── Hero card ─────────────────────────────────────────────────── */
.hero {
background:
- radial-gradient(900px 280px at 10% -30%, rgba(106,92,255,0.15), transparent 60%),
+ radial-gradient(900px 280px at 10% -30%, rgba(255,255,255,0.07), transparent 60%),
radial-gradient(600px 200px at 90% -10%, rgba(255,92,168,0.1), transparent 60%),
var(--panel);
border: 1px solid var(--border-2);
@@ -264,7 +264,7 @@
}
.range-tab:hover { color: var(--muted-2); background: rgba(255,255,255,0.04); }
.range-tab[aria-pressed="true"] {
- background: rgba(106,92,255,0.18); color: #c4bcff;
+ background: rgba(255,255,255,0.09); color: var(--ink);
border: 0;
}
@@ -279,13 +279,13 @@
position: relative; overflow: hidden;
transition: border-color 0.14s, box-shadow 0.14s;
}
- .stat:hover { border-color: var(--border-2); box-shadow: 0 4px 18px -8px rgba(106,92,255,0.18); }
+ .stat:hover { border-color: var(--border-2); box-shadow: 0 4px 18px -8px rgba(255,255,255,0.09); }
.stat-icon {
width: 28px; height: 28px; border-radius: 8px;
display: grid; place-items: center;
margin-bottom: 10px; font-size: 14px;
}
- .stat-icon.purple { background: rgba(106,92,255,0.14); }
+ .stat-icon.purple { background: rgba(255,255,255,0.07); }
.stat-icon.teal { background: rgba(46,212,163,0.12); }
.stat-icon.green { background: rgba(46,212,163,0.12); }
.stat-icon.red { background: rgba(255,106,106,0.1); }
@@ -369,7 +369,7 @@
border: 1px solid var(--border);
}
.chain-pill.sol { background: rgba(20,241,149,0.1); color: var(--ok); border-color: rgba(20,241,149,0.15); }
- .chain-pill.evm { background: rgba(106,92,255,0.12); color: #a99aff; border-color: rgba(106,92,255,0.2); }
+ .chain-pill.evm { background: rgba(255,255,255,0.06); color: var(--ink-dim); border-color: rgba(255,255,255,0.10); }
/* ── Wallet cards ──────────────────────────────────────────────── */
.wallet-list { display: flex; flex-direction: column; gap: 10px; }
@@ -458,8 +458,8 @@
transition: border-color 0.13s, box-shadow 0.13s;
}
.modal input:focus, .modal select:focus {
- outline: none; border-color: rgba(106,92,255,0.55);
- box-shadow: 0 0 0 3px rgba(106,92,255,0.12);
+ outline: none; border-color: rgba(255,255,255,0.28);
+ box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
.modal input[data-mono] { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
@@ -649,7 +649,7 @@
<div class="stats-row">
<div class="stat">
<div class="stat-icon purple">
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#9a8cff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M15 9.354a4 4 0 1 0 0 5.292"/></svg>
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#888888" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M15 9.354a4 4 0 1 0 0 5.292"/></svg>
</div>
<div class="stat-label">Assets</div>
<div class="stat-value" id="stat-assets">—</div>
@@ -1116,13 +1116,13 @@
handleScale: false,
});
const seriesOpts = {
- lineColor: '#7c6fff',
- topColor: 'rgba(124,111,255,0.32)',
- bottomColor: 'rgba(124,111,255,0)',
+ lineColor: '#888888',
+ topColor: 'rgba(255,255,255,0.16)',
+ bottomColor: 'rgba(255,255,255,0)',
lineWidth: 2,
priceFormat: { type: 'price', precision: 2, minMove: 0.01 },
crosshairMarkerRadius: 5,
- crosshairMarkerBorderColor: '#9a8cff',
+ crosshairMarkerBorderColor: '#888888',
crosshairMarkerBackgroundColor: '#fff',
};
series = chart.addAreaSeries
diff --git a/public/dashboard/sessions.html b/public/dashboard/sessions.html
index 6d4ef8385..abd3f4adc 100644
--- a/public/dashboard/sessions.html
+++ b/public/dashboard/sessions.html
@@ -29,7 +29,7 @@
min-height: 100vh;
}
a {
- color: #9a8cff;
+ color: #888888;
text-decoration: none;
}
header {
diff --git a/public/dashboard/storage.html b/public/dashboard/storage.html
index 2f8c0f5c5..524778af1 100644
--- a/public/dashboard/storage.html
+++ b/public/dashboard/storage.html
@@ -30,7 +30,7 @@
min-height: 100vh;
}
a {
- color: #9a8cff;
+ color: #888888;
text-decoration: none;
}
header {
diff --git a/public/dashboard/wallets.html b/public/dashboard/wallets.html
index 14682dc4c..26c2c9650 100644
--- a/public/dashboard/wallets.html
+++ b/public/dashboard/wallets.html
@@ -30,7 +30,7 @@
min-height: 100vh;
}
a {
- color: #9a8cff;
+ color: #888888;
text-decoration: none;
}
header {
diff --git a/public/studio/fees-panel.js b/public/studio/fees-panel.js
index f51484fd5..7af868e4d 100644
--- a/public/studio/fees-panel.js
+++ b/public/studio/fees-panel.js
@@ -111,7 +111,7 @@ const FP_CSS = `
.fp-badge{font-size:.6rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
padding:.16rem .45rem;border-radius:999px;margin-left:auto}
.fp-badge.creator{color:#c8f0d8;background:rgba(164,240,188,.1);border:1px solid rgba(164,240,188,.25)}
-.fp-badge.split{color:#c4b5f5;background:rgba(170,140,240,.12);border:1px solid rgba(170,140,240,.3)}
+.fp-badge.split{color:rgba(255,255,255,.7);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15)}
.fp-badge.cashback{color:#a8c4f0;background:rgba(120,160,240,.1);border:1px solid rgba(120,160,240,.28)}
.fp-loading{display:flex;align-items:center;gap:.5rem;font-size:.74rem;color:rgba(255,255,255,.36);
@@ -134,8 +134,8 @@ const FP_CSS = `
border-color:rgba(120,200,140,.7)}
.fp-btn.ghost{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1);color:rgba(255,255,255,.7)}
.fp-btn.ghost:hover:not([disabled]){background:rgba(255,255,255,.1);color:#fff}
-.fp-btn.violet{background:rgba(170,140,240,.14);border-color:rgba(170,140,240,.34);color:#cdbcf8}
-.fp-btn.violet:hover:not([disabled]){background:rgba(170,140,240,.22)}
+.fp-btn.violet{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.17);color:rgba(255,255,255,.85)}
+.fp-btn.violet:hover:not([disabled]){background:rgba(255,255,255,.11)}
.fp-btn[disabled]{opacity:.45;cursor:not-allowed}
.fp-btn.busy{opacity:.7;cursor:wait}
@@ -156,14 +156,14 @@ const FP_CSS = `
.fp-share-addr{width:100%;padding:.4rem .55rem;border-radius:7px;outline:none;font-size:.74rem;
background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);color:#fff;
font-family:ui-monospace,monospace;box-sizing:border-box;transition:border-color .15s}
-.fp-share-addr:focus{border-color:rgba(170,140,240,.45)}
+.fp-share-addr:focus{border-color:rgba(255,255,255,.28)}
.fp-share-addr::placeholder{color:rgba(255,255,255,.22);font-family:inherit}
.fp-share-gh{font-size:.62rem;color:rgba(255,255,255,.4);display:flex;align-items:center;gap:.3rem}
.fp-share-gh img{width:13px;height:13px;border-radius:50%}
.fp-share-pct{width:62px;flex-shrink:0;padding:.4rem .4rem;border-radius:7px;outline:none;font-size:.74rem;
background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);color:#fff;text-align:right;
font-family:ui-monospace,monospace;box-sizing:border-box}
-.fp-share-pct:focus{border-color:rgba(170,140,240,.45)}
+.fp-share-pct:focus{border-color:rgba(255,255,255,.28)}
.fp-share-x{flex-shrink:0;width:26px;height:26px;border-radius:6px;cursor:pointer;line-height:1;
background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.5);font-size:.85rem}
.fp-share-x:hover{background:rgba(246,179,179,.12);border-color:rgba(246,179,179,.3);color:#f6b3b3}
@@ -178,7 +178,7 @@ const FP_CSS = `
.fp-gh{display:flex;gap:.4rem;align-items:center}
.fp-gh input{flex:1;min-width:0;padding:.42rem .6rem;border-radius:7px;outline:none;font-size:.74rem;
background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);color:#fff;box-sizing:border-box}
-.fp-gh input:focus{border-color:rgba(170,140,240,.45)}
+.fp-gh input:focus{border-color:rgba(255,255,255,.28)}
.fp-gh input::placeholder{color:rgba(255,255,255,.25)}
.fp-holders{display:flex;flex-direction:column;gap:.3rem}
@@ -186,20 +186,20 @@ const FP_CSS = `
background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.05);font-size:.73rem}
.fp-holder code{flex:1;min-width:0;font-family:ui-monospace,monospace;color:rgba(255,255,255,.6);
overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
-.fp-holder .fp-holder-pct{font-weight:600;color:#cdbcf8}
+.fp-holder .fp-holder-pct{font-weight:600;color:rgba(255,255,255,.85)}
.fp-holder.is-you{background:rgba(164,240,188,.06);border-color:rgba(164,240,188,.2)}
.fp-holder.is-you .fp-holder-pct{color:#a4f0bc}
.fp-holder .fp-you-tag{font-size:.58rem;font-weight:600;color:#0c1410;background:#a4f0bc;
padding:.05rem .3rem;border-radius:4px;letter-spacing:.03em}
.fp-cta{display:flex;align-items:center;gap:.6rem;padding:.6rem .7rem;border-radius:10px;cursor:pointer;
- background:rgba(170,140,240,.06);border:1px dashed rgba(170,140,240,.28);transition:all .15s}
-.fp-cta:hover{background:rgba(170,140,240,.1);border-color:rgba(170,140,240,.45)}
+ background:rgba(255,255,255,.03);border:1px dashed rgba(255,255,255,.14);transition:all .15s}
+.fp-cta:hover{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.22)}
.fp-cta-ic{font-size:1.1rem;line-height:1}
.fp-cta-b{flex:1;min-width:0}
.fp-cta-t{font-size:.76rem;font-weight:600;color:rgba(255,255,255,.85)}
.fp-cta-s{font-size:.65rem;color:rgba(255,255,255,.45);margin-top:.1rem;line-height:1.4}
-.fp-cta-arrow{color:rgba(170,140,240,.7);font-size:.9rem}
+.fp-cta-arrow{color:rgba(255,255,255,.45);font-size:.9rem}
.fp-wallet{display:flex;align-items:center;gap:.5rem;font-size:.7rem;color:rgba(255,255,255,.5);
padding:.45rem .6rem;border-radius:8px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
diff --git a/public/studio/index.html b/public/studio/index.html
index c71b4c78c..d056d3fef 100644
--- a/public/studio/index.html
+++ b/public/studio/index.html
@@ -80,7 +80,22 @@
}
}
</script>
- </head>
+
+ <link rel="canonical" href="https://three.ws/studio">
+ <meta property="og:type" content="website">
+ <meta property="og:site_name" content="three.ws">
+ <meta property="og:title" content="Widget Studio · three.ws">
+ <meta property="og:description" content="Pick an avatar, configure embed options, copy a one-line snippet for your site.">
+ <meta property="og:url" content="https://three.ws/studio">
+ <meta property="og:image" content="https://three.ws/og-image.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="Widget Studio · three.ws">
+ <meta name="twitter:description" content="Pick an avatar, configure embed options, copy a one-line snippet for your site.">
+ <meta name="twitter:image" content="https://three.ws/og-image.png">
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Widget Studio","description":"Pick an avatar, configure embed options, copy a one-line snippet for your site.","url":"https://three.ws/studio","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+</head>
<body class="studio-body">
<header class="studio-header">
<h1>
diff --git a/public/studio/launch-panel.js b/public/studio/launch-panel.js
index b03375cb7..d220078a4 100644
--- a/public/studio/launch-panel.js
+++ b/public/studio/launch-panel.js
@@ -113,20 +113,20 @@ const LP_CSS = `
.lp-coin button.on{background:rgba(164,240,188,.12);border-color:rgba(164,240,188,.32);color:#c8f0d8}
.lp-coin button.mayhem.on{background:rgba(246,140,80,.14);border-color:rgba(246,140,80,.38);color:#f6c498}
.lp-coin button.usdc.on{background:rgba(120,160,240,.12);border-color:rgba(120,160,240,.34);color:#a8c4f0}
-.lp-coin button.reward.on{background:rgba(170,140,240,.14);border-color:rgba(170,140,240,.36);color:#cdbcf8}
+.lp-coin button.reward.on{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18);color:rgba(255,255,255,.85)}
.lp-coin button[disabled]{opacity:.42;cursor:not-allowed}
.lp-coin-sub{display:block;font-size:.6rem;color:rgba(255,255,255,.32);font-weight:400;margin-top:.18rem;letter-spacing:.01em}
.lp-coin button.on .lp-coin-sub{color:rgba(200,240,216,.62)}
.lp-coin button.mayhem.on .lp-coin-sub{color:rgba(246,196,152,.72)}
.lp-coin button.usdc.on .lp-coin-sub{color:rgba(168,196,240,.72)}
-.lp-coin button.reward.on .lp-coin-sub{color:rgba(205,188,248,.72)}
+.lp-coin button.reward.on .lp-coin-sub{color:rgba(255,255,255,.52)}
.lp-coin-emoji{display:block;font-size:.95rem;line-height:1;margin-bottom:.18rem}
.lp-coin-note{font-size:.7rem;color:rgba(255,255,255,.42);line-height:1.5;padding:.45rem .65rem;
background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06);border-radius:8px}
.lp-coin-note.mayhem{color:rgba(246,196,152,.85);background:rgba(246,140,80,.07);border-color:rgba(246,140,80,.2)}
.lp-coin-note.usdc{color:rgba(168,196,240,.85);background:rgba(120,160,240,.07);border-color:rgba(120,160,240,.22)}
-.lp-coin-note.reward{color:rgba(205,188,248,.9);background:rgba(170,140,240,.07);border-color:rgba(170,140,240,.22)}
-.lp-coin-note.reward b{color:#dccff8}
+.lp-coin-note.reward{color:rgba(255,255,255,.75);background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.11)}
+.lp-coin-note.reward b{color:rgba(255,255,255,.9)}
.lp-empty{text-align:center;padding:2.5rem 1rem;color:rgba(255,255,255,.3);font-size:.85rem;line-height:1.7}
.lp-empty a{color:rgba(164,240,188,.7);text-decoration:none}
.lp-empty a:hover{color:#a4f0bc}
diff --git a/public/studio/studio.css b/public/studio/studio.css
index f784510c9..fb0a18969 100644
--- a/public/studio/studio.css
+++ b/public/studio/studio.css
@@ -288,7 +288,7 @@ a:hover {
}
.user-menu-signout {
- color: #f87171 !important;
+ color: var(--danger) !important;
}
.user-menu-signout:hover {
@@ -501,7 +501,7 @@ a:hover {
.avatar-card:hover {
border-color: rgba(255, 255, 255, 0.25);
- background: #1a1a1a;
+ background: var(--bg-1);
transform: translateY(-1px);
box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
@@ -539,7 +539,7 @@ a:hover {
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
- background: #0a0a0a;
+ background: var(--bg-0);
overflow: hidden;
font-size: 1.6rem;
color: rgba(255, 255, 255, 0.4);
@@ -568,7 +568,7 @@ a:hover {
pointer-events: none;
}
.avatar-card--skeleton .thumb {
- background: linear-gradient(90deg, #1a1a1a 25%, #222222 50%, #1a1a1a 75%);
+ background: linear-gradient(90deg, var(--bg-1) 25%, #222222 50%, var(--bg-1) 75%);
background-size: 200% 100%;
animation: shimmer 1.5s ease-in-out infinite;
}
@@ -576,7 +576,7 @@ a:hover {
width: 65%;
height: 10px;
border-radius: 999px;
- background: linear-gradient(90deg, #1a1a1a 25%, #222222 50%, #1a1a1a 75%);
+ background: linear-gradient(90deg, var(--bg-1) 25%, #222222 50%, var(--bg-1) 75%);
background-size: 200% 100%;
animation: shimmer 1.5s ease-in-out infinite 0.15s;
color: transparent;
@@ -667,7 +667,7 @@ a:hover {
.type-card:hover {
border-color: rgba(255, 255, 255, 0.22);
- background: #1a1a1a;
+ background: var(--bg-1);
}
.type-card.selected {
@@ -825,7 +825,7 @@ a:hover {
gap: 0.25rem;
margin: -0.4rem -0.4rem 0.9rem;
padding: 0.3rem;
- background: #0a0a0a;
+ background: var(--bg-0);
border: 1px solid var(--border);
border-radius: var(--radius-md);
}
@@ -892,7 +892,7 @@ a:hover {
.field textarea {
width: 100%;
padding: 0.5rem 0.65rem;
- background: #0a0a0a;
+ background: var(--bg-0);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
@@ -912,7 +912,7 @@ a:hover {
width: 60px;
height: 30px;
padding: 2px;
- background: #0a0a0a;
+ background: var(--bg-0);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
cursor: pointer;
@@ -969,8 +969,8 @@ a:hover {
}
.btn-primary:hover {
- background: #e8e8e8;
- border-color: #e8e8e8;
+ background: var(--ink);
+ border-color: var(--ink);
box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
}
@@ -1134,7 +1134,7 @@ a:hover {
flex: 1;
font-family: ui-monospace, 'SF Mono', Menlo, monospace;
font-size: 0.78rem;
- background: #0a0a0a;
+ background: var(--bg-0);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
@@ -1188,7 +1188,7 @@ a:hover {
z-index: 200;
white-space: nowrap;
/* default: info */
- background: #1a1a1a;
+ background: var(--bg-1);
color: #eee;
}
@@ -1227,7 +1227,7 @@ a:hover {
border-color: rgba(248, 113, 113, 0.35);
color: #fca5a5;
}
-.toast[data-type='error']::before { background: #f87171; }
+.toast[data-type='error']::before { background: var(--danger); }
.toast[data-type='loading'] {
background: #141418;
@@ -1255,7 +1255,7 @@ a:hover {
bottom: calc(100% + 6px);
left: 50%;
transform: translateX(-50%) translateY(2px);
- background: #1a1a1a;
+ background: var(--bg-1);
color: #eee;
font-size: 0.72rem;
font-weight: 400;
@@ -1307,7 +1307,7 @@ a:hover {
}
.bonding-curve-preview {
- background: #0a0a0a;
+ background: var(--bg-0);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 0.7rem 0.8rem;
@@ -1331,7 +1331,7 @@ a:hover {
.bonding-curve-track {
height: 6px;
- background: #1a1a1a;
+ background: var(--bg-1);
border-radius: 999px;
overflow: hidden;
}
@@ -1442,7 +1442,7 @@ a:hover {
.kp-row-form, .kp-paste-form { display: flex; flex-direction: column; gap: 0.45rem; }
.kp-row-form input, .kp-paste-form textarea {
width: 100%;
- background: #0a0a0a;
+ background: var(--bg-0);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #eee;
border-radius: 6px;
@@ -1728,7 +1728,7 @@ a:hover {
.hotspot-pos-row input[type='number'] {
width: 100%;
padding: 0.4rem 0.45rem;
- background: #0a0a0a;
+ background: var(--bg-0);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text);
@@ -1743,6 +1743,54 @@ a:hover {
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
+/* ── accessibility: focus-visible rings ───────────────────────────────────── */
+.avatar-card:focus-visible,
+.type-card:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.55);
+ outline-offset: 1px;
+}
+
+.btn-primary:focus-visible,
+.btn-ghost:focus-visible,
+.btn-danger:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.55);
+ outline-offset: 2px;
+}
+
+.device-btn:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.55);
+ outline-offset: 2px;
+}
+
+.studio-right-tab:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.55);
+ outline-offset: 1px;
+}
+
+.modal-close:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.55);
+ outline-offset: 2px;
+}
+
+.kp-row-del:focus-visible,
+.hotspot-del:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.55);
+ outline-offset: 2px;
+}
+
+/* ── empty state helpers ──────────────────────────────────────────────────── */
+.empty-sep {
+ color: rgba(255, 255, 255, 0.25);
+ margin: 0 0.25rem;
+}
+
+.empty--error {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ flex-wrap: wrap;
+}
+
/* ── studio version badge ─────────────────────────────────────────────────── */
.studio-tag {
color: var(--muted);
diff --git a/public/studio/studio.js b/public/studio/studio.js
index 4f8b29b72..e484daea3 100644
--- a/public/studio/studio.js
+++ b/public/studio/studio.js
@@ -381,8 +381,19 @@ async function loadAvatars() {
} catch (err) {
renderAvatarList();
const note = document.createElement('div');
- note.className = 'empty';
- note.textContent = `Couldn't load your avatars: ${err.message}`;
+ note.className = 'empty empty--error';
+ const msg = document.createElement('span');
+ msg.textContent = `Couldn't load your avatars. `;
+ const retryBtn = document.createElement('button');
+ retryBtn.type = 'button';
+ retryBtn.className = 'btn-ghost btn-sm';
+ retryBtn.textContent = 'Retry';
+ retryBtn.addEventListener('click', () => {
+ state.avatars = [DEMO_AVATAR];
+ loadAvatars();
+ });
+ note.appendChild(msg);
+ note.appendChild(retryBtn);
list.appendChild(note);
}
}
@@ -431,7 +442,7 @@ async function cloneTemplate(id) {
function renderAvatarList() {
const list = $('#avatar-list');
if (!state.avatars.length) {
- list.innerHTML = `<div class="empty">No avatars yet. <a href="/dashboard#upload" target="_blank" rel="noopener">Upload one →</a></div>`;
+ list.innerHTML = `<div class="empty">No avatars yet. <a href="/scan">Scan yourself to 3D →</a> <span class="empty-sep">or</span> <a href="/create/selfie">AI selfie →</a></div>`;
return;
}
list.innerHTML = '';
@@ -1613,7 +1624,7 @@ function _refreshEmbedSnippet() {
const w = parseInt($('#embed-width').value) || 600;
const h = parseInt($('#embed-height').value) || 600;
$('#embed-iframe-snippet').value =
- `<iframe src="${url}" width="${w}" height="${h}" style="border:0;border-radius:12px" allow="autoplay; xr-spatial-tracking" loading="lazy"></iframe>`;
+ `<iframe src="${url}" width="${w}" height="${h}" style="border:0;border-radius:12px;max-width:100%" allow="autoplay; xr-spatial-tracking; clipboard-write" sandbox="allow-scripts allow-same-origin allow-popups allow-forms" loading="lazy"></iframe>`;
$('#embed-preview-iframe').src = url;
}