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.

13.4 KB
Raw Blame
/* ─── Detail page layout ─────────────────────────────────────────────────── */

body.detail-page {
	min-height: 100vh;
	background: #000;
}

.detail-main {
	max-width: 900px;
	margin: 0 auto;
	padding: 24px 20px 80px;
}

/* ─── Skeleton / loading ─────────────────────────────────────────────────── */

.detail-loading {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 40px;
}

.detail-skeleton {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 10px;
	animation: detail-pulse 1.6s ease-in-out infinite;
}

@keyframes detail-pulse {
	0%, 100% { opacity: 0.5; }
	50%       { opacity: 1; }
}

.detail-skeleton--hero  { height: 320px; border-radius: 16px; }
.detail-skeleton--title { height: 36px; width: 55%; }
.detail-skeleton--body  { height: 200px; }

/* ─── Error state ────────────────────────────────────────────────────────── */

.detail-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 80px 20px;
	text-align: center;
}

.detail-error-icon {
	font-size: 48px;
	opacity: 0.5;
}

.detail-error h2 {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 24px;
	color: #fff;
	margin: 0;
}

.detail-error p {
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */

.detail-breadcrumb {
	margin-bottom: 28px;
}

.detail-breadcrumb-link {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	transition: color var(--duration-fast);
}

.detail-breadcrumb-link:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.detail-hero {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 32px;
	margin-bottom: 36px;
}

@media (max-width: 640px) {
	.detail-hero {
		grid-template-columns: 1fr;
	}
}

.detail-hero-media {
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, var(--stage-lift) 0%, var(--stage-glow) 100%);
	border: 1px solid rgba(255, 255, 255, 0.07);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.detail-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.detail-hero-ph {
	font-size: 64px;
	opacity: 0.3;
}

.detail-hero-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	justify-content: center;
}

/* ─── Badges ─────────────────────────────────────────────────────────────── */

.detail-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

/* Reuse explore-badge tokens from style.css */

/* ─── Name / desc ────────────────────────────────────────────────────────── */

.detail-name {
	margin: 0;
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.detail-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.6);
}

/* ─── Meta row ───────────────────────────────────────────────────────────── */

.detail-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
}

.detail-meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.detail-meta-item a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

.detail-meta-item a:hover {
	color: #fff;
}

/* ─── Action buttons ─────────────────────────────────────────────────────── */

.detail-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.detail-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background var(--duration-fast), color var(--duration-fast);
}

.detail-error-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

.detail-btn--primary {
	background: #fff;
	color: #000;
}

.detail-btn--primary:hover {
	background: rgba(255, 255, 255, 0.85);
}

.detail-btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* ─── 3D viewer ──────────────────────────────────────────────────────────── */

.detail-viewer-wrap {
	margin-bottom: 28px;
}

.detail-section-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.35);
	margin-bottom: 10px;
}

.detail-viewer {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.07);
	background: #0b0b0b;
	height: 480px;
	position: relative;
}

.detail-viewer agent-3d {
	width: 100%;
	height: 100%;
	display: block;
}

.detail-viewer iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (max-width: 640px) {
	.detail-viewer {
		height: 320px;
	}
}

/* ─── Panels ─────────────────────────────────────────────────────────────── */

.detail-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

@media (max-width: 640px) {
	.detail-panels {
		grid-template-columns: 1fr;
	}
}

.detail-panel {
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	padding: 18px 20px;
}

.detail-panel--full {
	grid-column: 1 / -1;
}

.detail-panel-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}

.detail-panel-title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.4);
}

.detail-panel-badge {
	font-size: 11px;
	padding: 1px 6px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.5);
}

/* ─── Services ───────────────────────────────────────────────────────────── */

.detail-services {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.detail-service {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.detail-service-name {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}

.detail-service-endpoint {
	font-size: 11px;
	font-family: ui-monospace, SF Mono, Menlo, monospace;
	color: rgba(255, 255, 255, 0.4);
	word-break: break-all;
}

.detail-service-endpoint a {
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
}

.detail-service-endpoint a:hover {
	color: rgba(255, 255, 255, 0.85);
}

.detail-service-version {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.3);
}

/* ─── Tags ───────────────────────────────────────────────────────────────── */

.detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.detail-tag {
	font-size: 12px;
	padding: 3px 10px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── On-chain history ───────────────────────────────────────────────────── */
/* One row per indexed lifecycle event, newest first, read from the platform's
   own cross-chain index rather than an RPC scan in the browser. */

.detail-history {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	max-height: 420px;
	overflow-y: auto;
}

.detail-history-row {
	display: grid;
	grid-template-columns: 132px 1fr auto;
	gap: 12px;
	align-items: baseline;
	padding: 8px 10px;
	border-radius: 8px;
	transition: background var(--duration-fast) var(--ease-standard);
}

.detail-history-row:hover {
	background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 560px) {
	.detail-history-row {
		grid-template-columns: 1fr auto;
	}

	.detail-history-when {
		grid-column: 1 / -1;
	}
}

.detail-history-when {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.35);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.detail-history-what {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}

.detail-history-detail {
	font-size: 11px;
	font-family: ui-monospace, SF Mono, Menlo, monospace;
	color: rgba(255, 255, 255, 0.38);
	word-break: break-all;
}

.detail-history-class {
	font-size: 10px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.55);
	white-space: nowrap;
}

/* Token launches and reputation are the two classes a reader scans for, so
   they carry their own accent instead of the neutral chip. */
.detail-history-class[data-class='token_launch'] {
	background: rgba(129, 230, 160, 0.12);
	border-color: rgba(129, 230, 160, 0.28);
	color: rgba(160, 240, 185, 0.92);
}

.detail-history-class[data-class='reputation'] {
	background: rgba(150, 180, 255, 0.12);
	border-color: rgba(150, 180, 255, 0.28);
	color: rgba(180, 200, 255, 0.92);
}

.detail-history-class[data-class='transfer'] {
	background: rgba(255, 200, 130, 0.1);
	border-color: rgba(255, 200, 130, 0.24);
	color: rgba(255, 214, 160, 0.9);
}

.detail-history-link {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 4px;
}

.detail-history-link:hover {
	color: #fff;
}

.detail-history-link:focus-visible,
.detail-history-row:focus-visible {
	outline: 2px solid rgba(150, 180, 255, 0.7);
	outline-offset: 2px;
}

.detail-history-foot {
	margin: 12px 0 0;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.3);
}

.detail-history-empty {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
}

/* ─── Definition list ────────────────────────────────────────────────────── */

.detail-dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px 16px;
	margin: 0;
}

.detail-dl dt {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.35);
	white-space: nowrap;
	align-self: start;
	padding-top: 1px;
}

.detail-dl dd {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	font-family: ui-monospace, SF Mono, Menlo, monospace;
	word-break: break-all;
}

.detail-dl dd a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

.detail-dl dd a:hover {
	color: #fff;
}

.detail-dl dd.detail-dl-normal {
	font-family: inherit;
}

/* ─── Embed ──────────────────────────────────────────────────────────────── */

.detail-embed-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.detail-embed-tab {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: transparent;
	color: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background var(--duration-fast), color var(--duration-fast);
}

.detail-embed-tab:hover {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.8);
}

.detail-embed-tab.is-active {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.18);
}

.detail-embed-pane {
	display: none;
}

.detail-embed-pane.is-active {
	display: block;
}

.detail-embed-snippet {
	width: 100%;
	font-family: ui-monospace, SF Mono, Menlo, monospace;
	font-size: 11px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.75);
	padding: 10px 12px;
	resize: none;
	box-sizing: border-box;
}

.detail-embed-copy {
	margin-top: 8px;
	font-size: 12px;
	padding: 5px 12px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: background var(--duration-fast);
}

.detail-embed-copy:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}