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.

12.4 KB
Raw Blame
/* /symphony: the agent economy as generative music.

   Like /pulse, this page is a deliberate dark stage in both themes: the
   visualization is light-on-black and a concert hall does not have a light
   mode. The voice colors below are the single source of truth for both the
   legend chips and the canvas (src/symphony.js reads them at runtime). */

html[data-theme="dark"],
html[data-theme="light"] {
	background: #000;
}
body {
	margin: 0;
	background: #000;
	color-scheme: dark;
	font-family: var(--font-body, 'Inter', system-ui, sans-serif);
	--ink: #e8e8e8;
	--ink-bright: #ffffff;
	--ink-dim: #888888;
	--surface-1: rgba(255, 255, 255, 0.03);
	--surface-2: rgba(255, 255, 255, 0.05);
	--stroke: rgba(255, 255, 255, 0.08);
	--stroke-strong: rgba(255, 255, 255, 0.16);
	--sym-money: #43d9a3;
	--sym-bass: #5b8cff;
	--sym-bell: #e8c15a;
	--sym-arp: #b07ce8;
	--sym-alarm: #f0654f;
	--sym-jackpot: #ff9d2e;
}

.sy-shell {
	max-width: 1120px;
	margin: 0 auto;
	padding: var(--space-xl, 40px) var(--space-md, 16px) var(--space-2xl, 64px);
	color: var(--ink);
}

/* ── Hero ── */
.sy-hero { text-align: center; margin-bottom: 22px; }
.sy-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--ink-dim); margin: 0 0 10px;
}
.sy-live-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--sym-money);
	animation: sy-pulse 2.4s ease-in-out infinite;
}
@keyframes sy-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(0.8); }
}
.sy-title {
	font-family: var(--font-display, inherit);
	font-size: clamp(30px, 5.4vw, 52px);
	line-height: 1.05; margin: 0 0 12px; color: var(--ink-bright);
}
.sy-title em { font-style: normal; color: var(--sym-money); }
.sy-sub {
	max-width: 620px; margin: 0 auto;
	color: var(--ink-dim); font-size: 15px; line-height: 1.6;
}

/* ── Controls ── */
.sy-controls {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
	gap: 12px; margin: 22px 0 18px;
}
.sy-play {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 26px; border-radius: 999px;
	background: var(--ink-bright); color: #000;
	border: 1px solid var(--ink-bright);
	font-size: 15px; font-weight: 600; cursor: pointer;
	transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.sy-play:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(255, 255, 255, 0.18); }
.sy-play:active { transform: translateY(0); }
.sy-play:focus-visible { outline: 2px solid var(--sym-money); outline-offset: 3px; }
.sy-play[aria-pressed="true"] { background: transparent; color: var(--ink-bright); }
.sy-ctl {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border-radius: 999px;
	background: transparent; color: var(--ink-dim);
	border: 1px solid var(--stroke); font-size: 13px; cursor: pointer;
	transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.sy-ctl:hover { color: var(--ink); border-color: var(--stroke-strong); }
.sy-ctl:focus-visible { outline: 2px solid var(--sym-money); outline-offset: 2px; }
.sy-ctl[aria-pressed="true"] { color: var(--sym-alarm); border-color: var(--sym-alarm); }
.sy-volume-wrap { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: 12px; }
input[type="range"].sy-volume { accent-color: var(--sym-money); width: 120px; }
.sy-hint { width: 100%; text-align: center; color: var(--ink-dim); font-size: 12px; margin: 0; }
.sy-hint kbd {
	border: 1px solid var(--stroke-strong); border-bottom-width: 2px; border-radius: 4px;
	padding: 1px 6px; font-size: 11px; font-family: inherit;
}

/* ── Legend ── */
.sy-legend {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	margin: 0 0 18px; padding: 0; list-style: none;
}
.sy-voice {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 7px 13px; border-radius: 999px;
	background: var(--surface-1); border: 1px solid var(--stroke);
	color: var(--ink-dim); font-size: 12.5px; cursor: pointer;
	transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}
.sy-voice::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%;
	background: var(--c); flex: none;
}
.sy-voice:hover { color: var(--ink); border-color: var(--stroke-strong); }
.sy-voice:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.sy-voice[aria-pressed="true"] { color: var(--ink); border-color: var(--c); }
.sy-voice[aria-pressed="false"] { opacity: 0.42; text-decoration: line-through; }

/* ── Solo bar ── */
.sy-solo-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
	margin: 0 0 14px; padding: 10px 16px;
	border: 1px solid var(--sym-money); border-radius: 12px;
	background: rgba(67, 217, 163, 0.07);
	color: var(--ink); font-size: 13.5px;
}
.sy-solo-bar[hidden] { display: none; }
.sy-solo-bar strong { color: var(--sym-money); }
.sy-solo-dot {
	width: 7px; height: 7px; border-radius: 50%; background: var(--sym-money);
	animation: sy-pulse 2.4s ease-in-out infinite;
}
.sy-solo-clear {
	padding: 5px 12px; border-radius: 999px;
	background: transparent; color: var(--ink-dim);
	border: 1px solid var(--stroke-strong); font-size: 12.5px; cursor: pointer;
	transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.sy-solo-clear:hover { color: var(--ink-bright); border-color: var(--ink-bright); }
.sy-solo-clear:focus-visible { outline: 2px solid var(--sym-money); outline-offset: 2px; }

/* Per-row solo control: quiet until the row is hovered or it has focus, so the
   ledger stays readable but the affordance is always reachable by keyboard. */
.sy-solo {
	flex: none; padding: 3px 10px; border-radius: 999px;
	background: transparent; color: var(--ink-dim);
	border: 1px solid var(--stroke); font-size: 11px; letter-spacing: 0.06em;
	text-transform: uppercase; cursor: pointer;
	opacity: 0; transition: opacity var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.sy-row:hover .sy-solo, .sy-solo:focus-visible { opacity: 1; }
.sy-solo:hover { color: var(--sym-money); border-color: var(--sym-money); }
.sy-solo:focus-visible { outline: 2px solid var(--sym-money); outline-offset: 2px; }
/* Already soloing: the per-row buttons would be a no-op for the one actor left. */
body.sy-soloing .sy-solo { display: none; }
@media (hover: none) {
	.sy-solo { opacity: 1; }
}

/* ── Stage ── */
.sy-stage {
	position: relative; height: clamp(260px, 44vh, 460px);
	border: 1px solid var(--stroke); border-radius: 16px;
	background: #000;
	overflow: hidden; margin-bottom: 18px;
}
#sym-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sy-status {
	position: absolute; top: 12px; right: 14px;
	font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--ink-dim);
	padding: 4px 10px; border-radius: 999px;
	border: 1px solid var(--stroke); background: rgba(0, 0, 0, 0.5);
}
.sy-status[data-status="live"] { color: var(--sym-money); border-color: var(--sym-money); }
.sy-status[data-status="offline"] { color: var(--sym-alarm); border-color: var(--sym-alarm); }

/* ── Stats ── */
.sy-stats {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
	margin: 0 0 22px;
}
.sy-stat {
	border: 1px solid var(--stroke); border-radius: 12px;
	background: var(--surface-1); padding: 12px 16px; text-align: center;
}
.sy-stat dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin: 0 0 4px; }
.sy-stat dd { font-size: 20px; font-weight: 600; color: var(--ink-bright); margin: 0; font-variant-numeric: tabular-nums; }

/* ── Ledger ── */
.sy-ledger-h {
	display: flex; align-items: baseline; justify-content: space-between;
	border-bottom: 1px solid var(--stroke); padding-bottom: 8px; margin-bottom: 4px;
}
.sy-ledger-h h2 { font-size: 15px; margin: 0; color: var(--ink-bright); }
.sy-ledger-h small { color: var(--ink-dim); font-size: 12px; }
.sy-ledger { display: flex; flex-direction: column; }
.sy-row {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 8px; border-bottom: 1px solid var(--stroke);
	color: inherit;
	animation: sy-enter 0.35s ease;
	transition: background var(--duration-fast) var(--ease-standard);
}
.sy-row:hover { background: var(--surface-2); }
.sy-row-link {
	flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px;
	color: inherit; text-decoration: none;
}
a.sy-row-link:hover .sy-row-title { color: var(--ink-bright); text-decoration: underline; }
a.sy-row-link:focus-visible { outline: 2px solid var(--sym-money); outline-offset: 2px; border-radius: 4px; }
@keyframes sy-enter {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}
.sy-dot {
	flex: none; width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 12px; color: var(--c);
	border: 1px solid var(--c); background: var(--surface-1);
}
.sy-row-title { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sy-row-detail { font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.sy-row-time { flex: none; font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.sy-empty {
	padding: 26px 18px; text-align: center; color: var(--ink-dim);
	font-size: 14px; line-height: 1.65;
	border: 1px dashed var(--stroke-strong); border-radius: 12px; margin-top: 10px;
}
.sy-empty strong { color: var(--ink); }
.sy-empty a { color: var(--sym-money); }
.sy-empty p { margin: 0 0 8px; }
.sy-empty p:last-child { margin-bottom: 0; }

/* The feed is down: a red-edged block, not the same quiet-economy card, so the
   two states are never mistaken for each other at a glance. */
.sy-empty-error { border-color: var(--sym-alarm); border-style: solid; }
.sy-empty-error strong { color: var(--sym-alarm); }
.sy-retry {
	padding: 8px 18px; border-radius: 999px;
	background: transparent; color: var(--ink-bright);
	border: 1px solid var(--stroke-strong); font: inherit; font-size: 13px; cursor: pointer;
	transition: color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.sy-retry:hover { color: var(--sym-money); border-color: var(--sym-money); background: rgba(67, 217, 163, 0.08); }
.sy-retry:active { transform: translateY(1px); }
.sy-retry:focus-visible { outline: 2px solid var(--sym-money); outline-offset: 2px; }
.sy-retry[aria-busy="true"] { color: var(--ink-dim); cursor: progress; }

/* Loading: the score's own shape, greyed out, rather than an empty strip that
   reads as "nothing ever happens here". */
.sy-skeleton { display: flex; flex-direction: column; }
.sy-skel-row {
	height: 47px; border-bottom: 1px solid var(--stroke);
	background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
	background-size: 400% 100%;
	animation: sy-shimmer 1.4s ease-in-out infinite;
}
.sy-skel-row:nth-child(2) { animation-delay: 0.08s; }
.sy-skel-row:nth-child(3) { animation-delay: 0.16s; }
.sy-skel-row:nth-child(4) { animation-delay: 0.24s; }
.sy-skel-row:nth-child(5) { animation-delay: 0.32s; }
.sy-skel-row:nth-child(6) { animation-delay: 0.4s; }
@keyframes sy-shimmer {
	from { background-position: 100% 0; }
	to { background-position: 0 0; }
}

/* Visually hidden, still announced: the throttled live region that narrates
   one arrival at a time for screen readers. */
.sy-sr-only {
	position: absolute; width: 1px; height: 1px;
	margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sy-fineprint {
	margin-top: 26px; text-align: center;
	color: var(--ink-dim); font-size: 12.5px; line-height: 1.6;
}
.sy-fineprint a { color: var(--ink); }

@media (max-width: 640px) {
	.sy-stats { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
	.sy-stat dd { font-size: 16px; }
	.sy-stage { height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
	.sy-live-dot { animation: none; }
	.sy-row { animation: none; }
	.sy-solo-dot { animation: none; }
	.sy-skel-row { animation: none; background: var(--surface-1); }
}