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
/* /characters: character discovery feed.
Token-driven (public/tokens.css, reaching this page via nav.css), so the
whole surface flips with [data-theme] instead of fighting the shared header:
the page used to hardcode a light-blue gradient and dark ink, which under the
site default (dark) put a light page under a dark nav. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: var(--font-body);
min-height: 100vh;
background:
radial-gradient(70% 50% at 50% -10%, var(--surface-2), transparent 70%),
var(--bg-0);
color: var(--ink);
}
.chs-main {
display: block;
}
/* The main landmark receives focus from the shared skip link; it is not an
interactive control, so it gets no ring of its own. */
.chs-main:focus { outline: none; }
/* ── Header ───────────────────────────────────────────── */
.chs-header {
padding: var(--space-xl) var(--space-md) var(--space-md);
max-width: 1120px;
margin: 0 auto;
width: 100%;
}
.chs-header-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--space-md);
flex-wrap: wrap;
margin-bottom: var(--space-md);
}
.chs-title {
font-size: var(--text-xl);
font-weight: var(--weight-bold);
letter-spacing: -0.02em;
color: var(--ink-bright, var(--ink));
}
.chs-sub {
margin-top: var(--space-2xs);
font-size: var(--text-ui);
color: var(--ink-dim);
max-width: 46ch;
}
.chs-create {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
flex-shrink: 0;
padding: var(--space-sm) var(--space-md);
border-radius: var(--radius-pill);
border: 1px solid var(--stroke-strong);
background: var(--surface-2);
color: var(--ink);
font-size: var(--text-md);
font-weight: var(--weight-semibold);
text-decoration: none;
transition:
background var(--duration-fast) var(--ease-standard),
border-color var(--duration-fast) var(--ease-standard),
transform var(--duration-fast) var(--ease-standard);
}
.chs-create:hover {
background: var(--surface-3);
border-color: var(--accent);
}
.chs-create:active { transform: translateY(1px); }
/* ── Search + sort bar ────────────────────────────────── */
.chs-controls {
display: flex;
gap: var(--space-sm);
align-items: center;
flex-wrap: wrap;
}
.chs-search {
flex: 1;
min-width: 12rem;
background: var(--surface-1);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
padding: var(--space-sm) var(--space-md);
font: inherit;
font-size: var(--text-ui);
color: var(--ink);
}
.chs-search::placeholder { color: var(--ink-dim); }
.chs-search:hover { border-color: var(--stroke-strong); }
.chs-search:focus {
outline: none;
border-color: var(--accent);
background: var(--surface-2);
}
.chs-sort {
display: flex;
background: var(--surface-1);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
padding: 3px;
gap: 2px;
}
.chs-sort-btn {
border: none;
background: transparent;
border-radius: var(--radius-pill);
padding: var(--space-xs) var(--space-md);
font: inherit;
font-size: var(--text-md);
font-weight: var(--weight-medium);
color: var(--ink-dim);
cursor: pointer;
transition:
background var(--duration-fast) var(--ease-standard),
color var(--duration-fast) var(--ease-standard);
}
.chs-sort-btn:hover { color: var(--ink); }
.chs-sort-btn.active {
background: var(--surface-3);
color: var(--ink-bright, var(--ink));
font-weight: var(--weight-semibold);
}
/* ── Focus rings ──────────────────────────────────────────
Every control on the page carries the same visible ring. The sort and
load-more buttons previously had none at all, so keyboard users could not
see where they were. */
.chs-search:focus-visible,
.chs-sort-btn:focus-visible,
.chs-load-btn:focus-visible,
.chs-notice-btn:focus-visible,
.chs-create:focus-visible,
.chs-card:focus-visible {
outline: 2px solid var(--focus-ring-color, var(--accent));
outline-offset: 2px;
}
/* ── Grid ─────────────────────────────────────────────── */
.chs-grid {
display: grid;
/* Mobile-first: one full-width column. minmax(0, 1fr) lets the track
shrink below the cards' content min-width so token/stat rows never
force horizontal scroll on narrow phones. */
grid-template-columns: minmax(0, 1fr);
gap: var(--space-sm);
padding: var(--space-md);
max-width: 1120px;
margin: 0 auto;
width: 100%;
}
@media (min-width: 480px) {
.chs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
.chs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
.chs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* ── Character card ───────────────────────────────────── */
.chs-card {
background: var(--surface-1);
border: 1px solid var(--stroke);
border-radius: var(--radius-lg);
padding: var(--space-md);
text-decoration: none;
color: inherit;
display: flex;
flex-direction: column;
gap: var(--space-sm);
cursor: pointer;
transition:
border-color var(--duration-fast) var(--ease-standard),
background var(--duration-fast) var(--ease-standard),
transform var(--duration-fast) var(--ease-standard);
}
.chs-card:hover {
border-color: var(--stroke-strong);
background: var(--surface-2);
transform: translateY(-2px);
}
.chs-card:active {
transform: translateY(0) scale(0.99);
}
@media (prefers-reduced-motion: reduce) {
.chs-card,
.chs-create { transition: none; }
.chs-card:hover { transform: none; }
}
.chs-card-top {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.chs-card-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
background: var(--surface-3);
}
.chs-card-avatar-ph {
width: 44px;
height: 44px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: var(--text-lg);
font-weight: var(--weight-bold);
color: #fff;
flex-shrink: 0;
}
.chs-card-info {
flex: 1;
min-width: 0;
}
.chs-card-name {
font-size: var(--text-ui);
font-weight: var(--weight-bold);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--ink-bright, var(--ink));
}
.chs-card-creator {
font-size: var(--text-2xs);
color: var(--ink-dim);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.chs-card-desc {
font-size: var(--text-sm);
line-height: var(--leading-normal);
color: var(--ink-dim);
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Token pill */
.chs-card-token {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-xs);
background: var(--surface-2);
border-radius: var(--radius-md);
padding: var(--space-sm);
margin-top: auto;
}
.chs-card-token-left {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.chs-card-token-symbol {
font-size: var(--text-2xs);
font-weight: var(--weight-bold);
color: var(--ink);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.chs-card-token-price {
font-size: var(--text-md);
font-weight: var(--weight-bold);
color: var(--ink-bright, var(--ink));
}
.chs-card-token-change {
font-size: var(--text-2xs);
font-weight: var(--weight-semibold);
white-space: nowrap;
}
.chs-card-token-change.up { color: var(--success); }
.chs-card-token-change.down { color: var(--danger); }
/* Stats row */
.chs-card-stats {
display: flex;
gap: var(--space-sm);
flex-wrap: wrap;
}
.chs-card-stat {
display: flex;
align-items: center;
gap: var(--space-3xs);
font-size: var(--text-2xs);
color: var(--ink-dim);
}
.chs-card-stat-num {
font-weight: var(--weight-semibold);
color: var(--ink);
}
/* ── Load more ────────────────────────────────────────── */
.chs-load-more {
display: flex;
justify-content: center;
padding: var(--space-md);
}
.chs-load-btn {
background: var(--surface-1);
border: 1px solid var(--stroke-strong);
border-radius: var(--radius-pill);
padding: var(--space-sm) var(--space-xl);
font: inherit;
font-size: var(--text-ui);
font-weight: var(--weight-semibold);
color: var(--ink);
cursor: pointer;
transition: background var(--duration-fast) var(--ease-standard);
}
.chs-load-btn:hover { background: var(--surface-3); }
.chs-load-btn:active { background: var(--surface-2); }
.chs-load-btn:disabled { opacity: 0.5; cursor: progress; }
.chs-load-btn-error {
border-color: var(--danger);
color: var(--danger);
}
/* ── Empty / error notice ─────────────────────────────────
Spans the whole grid whatever the column count, and always carries the one
action that gets the user out of the state. */
.chs-notice {
grid-column: 1 / -1;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-sm);
text-align: center;
padding: var(--space-2xl) var(--space-md);
border: 1px dashed var(--stroke-strong);
border-radius: var(--radius-lg);
background: var(--surface-1);
}
.chs-notice-title {
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
color: var(--ink-bright, var(--ink));
}
.chs-notice-body {
font-size: var(--text-ui);
color: var(--ink-dim);
max-width: 42ch;
}
.chs-notice-btn {
margin-top: var(--space-xs);
display: inline-flex;
align-items: center;
padding: var(--space-sm) var(--space-lg);
border-radius: var(--radius-pill);
border: 1px solid var(--stroke-strong);
background: var(--surface-2);
color: var(--ink);
font: inherit;
font-size: var(--text-md);
font-weight: var(--weight-semibold);
text-decoration: none;
cursor: pointer;
}
.chs-notice-btn:hover {
background: var(--surface-3);
border-color: var(--accent);
}
.chs-skeleton-card {
background: var(--surface-1);
border: 1px solid var(--stroke);
border-radius: var(--radius-lg);
height: 168px;
animation: chs-shimmer 1.4s infinite;
}
@keyframes chs-shimmer {
0% { opacity: 0.5; }
50% { opacity: 1; }
100% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
.chs-skeleton-card { animation: none; }
}
.chs-bottom-pad { height: var(--space-2xl); }