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.

3.5 KB
Raw Blame
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
	width: 100%; height: 100%;
	overflow: hidden;
	background: #060607;
	font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* ── Canvas ─────────────────────────────────────────────────────────────────── */

#city-canvas {
	position: fixed; inset: 0;
	width: 100%; height: 100%;
	display: block;
	outline: none;
	cursor: grab;
}

#city-canvas:active { cursor: grabbing; }

/* ── Loading screen ─────────────────────────────────────────────────────────── */

#city-loading {
	position: fixed; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: #060607;
	z-index: 100;
	transition: opacity var(--duration-slow) var(--ease-standard);
}

#city-loading.hidden {
	opacity: 0;
	pointer-events: none;
}

.city-loading-card {
	display: flex; flex-direction: column; align-items: center;
	gap: 14px;
}

.city-loading-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3em;
	color: rgba(255, 255, 255, 0.4);
	text-transform: uppercase;
}

.city-loading-sub {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.25);
	letter-spacing: 0.06em;
	min-height: 18px;
}

.city-boot-bar {
	width: 160px; height: 2px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 2px;
	overflow: hidden;
}

.city-boot-bar span {
	display: block;
	height: 100%;
	width: 0%;
	background: rgba(255, 255, 255, 0.45);
	border-radius: 2px;
	transition: width var(--duration-slow) var(--ease-standard);
}

/* ── HUD ─────────────────────────────────────────────────────────────────────── */

#city-hud {
	position: fixed; inset: 0;
	pointer-events: none;
	z-index: 10;
	display: none;
}

/* Top-left logo + label */
#city-hud-tl {
	position: absolute;
	top: 18px; left: 20px;
	display: flex; align-items: center; gap: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.25em;
	color: rgba(255, 255, 255, 0.35);
	text-transform: uppercase;
	user-select: none;
}

/* Bottom-left coordinates */
#city-hud-coords {
	position: absolute;
	bottom: 18px; left: 20px;
	font-size: 10px;
	font-family: ui-monospace, 'JetBrains Mono', monospace;
	color: rgba(255, 255, 255, 0.2);
	letter-spacing: 0.04em;
	user-select: none;
}

/* Bottom-right minimap */
#city-minimap {
	position: absolute;
	bottom: 18px; right: 20px;
	width: 120px; height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

#city-minimap-canvas {
	display: block;
	width: 100%; height: 100%;
}

#city-minimap-north {
	position: absolute;
	top: 5px; left: 50%; transform: translateX(-50%);
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: rgba(255, 255, 255, 0.25);
	user-select: none;
}

/* Top-right controls hint */
#city-controls-hint {
	position: absolute;
	top: 18px; right: 20px;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.2);
	letter-spacing: 0.05em;
	user-select: none;
	line-height: 1.6;
}

#city-controls-hint kbd {
	font-family: ui-monospace, monospace;
	font-size: 9px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	padding: 1px 4px;
	margin-right: 2px;
}