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.

17.9 KB
Raw Blame
/* /vault page styles (prompt 12) — paired with pages/vault.html + src/vault.js. */

.vlt-wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px 96px;
}
@media (max-width: 600px) {
	.vlt-wrap {
		padding: 0 16px 96px;
	}
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.vlt-hero {
	padding: 64px 0 28px;
	border-bottom: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
}
.vlt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gold, #f0b90b);
	margin: 0 0 16px;
}
.vlt-eyebrow a {
	color: inherit;
	text-decoration: none;
}
.vlt-eyebrow a:hover,
.vlt-eyebrow a:focus-visible {
	text-decoration: underline;
}
.vlt-eyebrow .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #f0b90b;
}
.vlt-hero h1 {
	font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
	font-size: clamp(30px, 4.6vw, 48px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.08;
	margin: 0 0 16px;
	max-width: 20ch;
}
.vlt-hero p.lede {
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink-dim, #888);
	margin: 0;
	max-width: 66ch;
}

/* ── Session strip ────────────────────────────────────────────────────── */
.vlt-session {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	padding: 16px 20px;
	margin: 24px 0 0;
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-card, 14px);
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
	font-size: 13px;
}
.vlt-session-item {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-dim, #888);
}
.vlt-session-item b,
.vlt-session-item code {
	color: var(--ink, #e8e8e8);
	font-weight: 600;
}
.vlt-session-item code {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 12px;
	background: var(--surface-2, rgba(255, 255, 255, 0.05));
	padding: 2px 6px;
	border-radius: 5px;
}
.vlt-session-facts {
	display: contents;
}
.vlt-session-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.vlt-session-actions .vlt-btn {
	margin-left: 0;
}

/* ── Fund panel ───────────────────────────────────────────────────────── */
.vlt-fund {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	padding: 16px 20px;
	margin: 10px 0 0;
	border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.14));
	border-radius: var(--radius-card, 14px);
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
}
.vlt-fund[hidden] {
	display: none;
}
.vlt-fund .vlt-field {
	flex: 1 1 200px;
	min-width: 0;
}
.vlt-fund-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.vlt-fund-actions .vlt-btn {
	margin-left: 0;
}
.vlt-fund-note {
	margin: 10px 2px 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink-dim, #888);
	overflow-wrap: anywhere;
}
.vlt-fund-note:empty {
	display: none;
}
.vlt-fund-note[data-tone='error'] {
	color: #ff8a8a;
}
.vlt-fund-note[data-tone='success'] {
	color: #6ee7a8;
}
.vlt-fund-note code {
	font-family: var(--font-mono, ui-monospace, monospace);
	background: var(--surface-2, rgba(255, 255, 255, 0.05));
	padding: 2px 6px;
	border-radius: 5px;
	color: var(--ink, #e8e8e8);
}

.vlt-net-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(240, 185, 11, 0.12);
	color: #f0b90b;
	border: 1px solid rgba(240, 185, 11, 0.24);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.vlt-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: var(--radius-control, 10px);
	background: var(--surface-3, rgba(255, 255, 255, 0.08));
	border: 1px solid var(--stroke-strong, rgba(255, 255, 255, 0.14));
	color: var(--ink, #e8e8e8);
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition:
		background var(--duration-fast),
		border-color var(--duration-fast),
		transform var(--duration-instant);
	margin-left: auto;
}
.vlt-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.22);
}
.vlt-btn:active {
	transform: translateY(1px);
}
.vlt-btn:focus-visible {
	outline: 2px solid #f0b90b;
	outline-offset: 2px;
}
.vlt-btn[disabled] {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}
.vlt-btn-primary {
	background: #f0b90b;
	border-color: #f0b90b;
	color: #09090b;
	font-weight: 650;
	margin-left: 0;
}
.vlt-btn-primary:hover {
	background: #ffcb2e;
	border-color: #ffcb2e;
}
.vlt-btn-ghost {
	background: transparent;
	border-color: var(--stroke, rgba(255, 255, 255, 0.08));
}
a.vlt-btn {
	margin-left: 0;
}

/* ── Section headings ─────────────────────────────────────────────────── */
.vlt-section {
	padding: 44px 0 8px;
}
.vlt-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
}
.vlt-section-heading {
	font-family: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
}
.vlt-section-sub {
	font-size: 13px;
	color: var(--ink-dim, #888);
	margin: 4px 0 0;
}

/* ── Contract banner (undeployed / chain-unavailable) ───────────────────── */
.vlt-banner {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: var(--radius-card, 14px);
	border: 1px solid rgba(240, 185, 11, 0.25);
	background: rgba(240, 185, 11, 0.07);
	font-size: 13px;
	line-height: 1.6;
	color: var(--ink, #e8e8e8);
	margin-bottom: 24px;
}
.vlt-banner svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: #f0b90b;
}
.vlt-banner p {
	margin: 0;
	color: var(--ink-dim, #888);
}
.vlt-banner strong {
	color: var(--ink, #e8e8e8);
}
.vlt-banner code {
	font-family: var(--font-mono, ui-monospace, monospace);
	background: var(--surface-2, rgba(255, 255, 255, 0.05));
	padding: 1px 5px;
	border-radius: 4px;
	font-size: 11.5px;
}

/* ── Grid + cards ─────────────────────────────────────────────────────── */
.vlt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	min-height: 80px;
}
.vlt-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-card, 14px);
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
	overflow: hidden;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	color: inherit;
	transition:
		border-color var(--duration-fast),
		transform var(--duration-fast),
		box-shadow var(--duration-fast);
}
.vlt-card:hover,
.vlt-card:focus-visible {
	border-color: var(--stroke-strong, rgba(255, 255, 255, 0.14));
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.vlt-card:focus-visible {
	outline: 2px solid #f0b90b;
	outline-offset: -2px;
}
.vlt-card-art {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(240, 185, 11, 0.14), rgba(240, 185, 11, 0.03));
	color: rgba(240, 185, 11, 0.7);
}
.vlt-card-art svg {
	width: 40px;
	height: 40px;
}
.vlt-card-body {
	padding: 4px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.vlt-card-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--ink, #e8e8e8);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vlt-card-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12.5px;
	color: var(--ink-dim, #888);
}
.vlt-card-row code {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 11.5px;
}
.vlt-card-price {
	font-family: var(--font-mono, ui-monospace, monospace);
	color: var(--ink, #e8e8e8);
	font-weight: 600;
}
.vlt-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 999px;
	flex-shrink: 0;
}
.vlt-badge::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
}
.vlt-badge[data-state='locked'] {
	background: var(--surface-2, rgba(255, 255, 255, 0.05));
	color: var(--ink-dim, #888);
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
}
.vlt-badge[data-state='locked']::before {
	background: var(--ink-dim, #888);
}
.vlt-badge[data-state='pending-grant'] {
	background: rgba(240, 185, 11, 0.12);
	color: #f0b90b;
	border: 1px solid rgba(240, 185, 11, 0.24);
}
.vlt-badge[data-state='pending-grant']::before {
	background: #f0b90b;
	animation: vlt-pulse 1.4s ease-in-out infinite;
}
.vlt-badge[data-state='unlocked'] {
	background: rgba(74, 222, 128, 0.1);
	color: var(--success, #4ade80);
	border: 1px solid rgba(74, 222, 128, 0.2);
}
.vlt-badge[data-state='unlocked']::before {
	background: var(--success, #4ade80);
}
@keyframes vlt-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

/* ── Skeleton / empty / error states ─────────────────────────────────── */
.vlt-skel {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-card, 14px);
	background: linear-gradient(
		100deg,
		var(--surface-1, rgba(255, 255, 255, 0.03)) 30%,
		var(--surface-2, rgba(255, 255, 255, 0.06)) 50%,
		var(--surface-1, rgba(255, 255, 255, 0.03)) 70%
	);
	background-size: 200% 100%;
	animation: vlt-shimmer 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	.vlt-skel,
	.vlt-badge[data-state='pending-grant']::before,
	.vlt-spinner {
		animation: none;
	}
	.vlt-drawer,
	.vlt-drawer[data-open='true'],
	.vlt-drawer-backdrop {
		transition: none;
	}
}
@keyframes vlt-shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}
.vlt-empty,
.vlt-error {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	padding: 56px 24px;
	border: 1px dashed var(--stroke-strong, rgba(255, 255, 255, 0.14));
	border-radius: var(--radius-card, 14px);
	color: var(--ink-dim, #888);
}
.vlt-empty svg,
.vlt-error svg {
	width: 34px;
	height: 34px;
	opacity: 0.5;
}
.vlt-empty h3,
.vlt-error h3 {
	margin: 0;
	font-size: 15px;
	color: var(--ink, #e8e8e8);
}
.vlt-empty p,
.vlt-error p {
	margin: 0;
	font-size: 13px;
	max-width: 44ch;
}
.vlt-state-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 4px;
}
.vlt-state-actions .vlt-btn {
	margin-left: 0;
}

/* ── Detail drawer ────────────────────────────────────────────────────── */
.vlt-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	z-index: 200;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--duration-base);
}
.vlt-drawer-backdrop[data-open='true'] {
	opacity: 1;
	pointer-events: auto;
}
.vlt-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(480px, 100vw);
	background: var(--bg, #09090b);
	border-left: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
	z-index: 201;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	/* Hidden (not merely offscreen) while closed: an aria-hidden panel whose
	   close button is still tabbable traps keyboard users in dead space. */
	visibility: hidden;
	pointer-events: none;
	transition:
		transform var(--duration-base) var(--ease-standard),
		visibility var(--duration-instant) var(--ease-standard) var(--duration-base);
	overflow-y: auto;
}
.vlt-drawer[data-open='true'] {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
	transition:
		transform var(--duration-base) var(--ease-standard),
		visibility var(--duration-instant) var(--ease-standard) var(--duration-instant);
}
.vlt-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
}
.vlt-drawer-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink, #e8e8e8);
	min-width: 0;
	overflow-wrap: anywhere;
}
.vlt-drawer-close {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
	color: var(--ink, #e8e8e8);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vlt-drawer-close:hover {
	background: var(--surface-2, rgba(255, 255, 255, 0.06));
}
.vlt-drawer-close:focus-visible {
	outline: 2px solid #f0b90b;
}
.vlt-drawer-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	flex: 1;
}
model-viewer#vlt-viewer,
.vlt-drawer-body model-viewer {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-card, 14px);
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
}
.vlt-detail-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
}
.vlt-detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	color: var(--ink-dim, #888);
}
.vlt-detail-row b {
	color: var(--ink, #e8e8e8);
}
.vlt-detail-row code {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 11.5px;
	color: var(--ink, #e8e8e8);
}
.vlt-progress {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vlt-step {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--ink-dim, #888);
}
.vlt-step[data-state='done'] {
	color: var(--ink, #e8e8e8);
}
.vlt-step[data-state='active'] {
	color: #f0b90b;
}
.vlt-step-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid var(--stroke-strong, rgba(255, 255, 255, 0.14));
	flex-shrink: 0;
	margin-top: 1px;
}
.vlt-step[data-state='done'] .vlt-step-dot {
	border-color: var(--success, #4ade80);
	background: var(--success, #4ade80);
}
.vlt-step[data-state='active'] .vlt-step-dot {
	border-color: #f0b90b;
	animation: vlt-pulse 1.2s ease-in-out infinite;
}
.vlt-drawer-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vlt-drawer-note {
	font-size: 12px;
	color: var(--ink-dim, #888);
	line-height: 1.6;
	margin: 0;
}
.vlt-drawer-note[data-tone='error'] {
	color: var(--danger, #ef4444);
}
.vlt-drawer-note[data-tone='success'] {
	color: var(--success, #4ade80);
}

/* ── Sell panel ───────────────────────────────────────────────────────── */
.vlt-sell {
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-card, 14px);
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
}
.vlt-sell summary {
	cursor: pointer;
	padding: 16px 20px;
	font-size: 14px;
	font-weight: 600;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
}
.vlt-sell summary::-webkit-details-marker {
	display: none;
}
.vlt-sell summary::after {
	content: '+';
	margin-left: auto;
	font-size: 18px;
	color: var(--ink-dim, #888);
}
.vlt-sell[open] summary::after {
	content: '−';
}
.vlt-sell summary:focus-visible {
	outline: 2px solid #f0b90b;
	outline-offset: 2px;
	border-radius: 6px;
}
.vlt-sell-body {
	padding: 0 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.vlt-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.vlt-field label {
	font-size: 12px;
	color: var(--ink-dim, #888);
}
.vlt-field input {
	padding: 9px 12px;
	border-radius: var(--radius-control, 10px);
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
	background: var(--surface-2, rgba(255, 255, 255, 0.04));
	color: var(--ink, #e8e8e8);
	font-family: inherit;
	font-size: 13px;
}
.vlt-field input:focus-visible {
	outline: 2px solid #f0b90b;
	outline-offset: 1px;
}
.vlt-sell-log {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 11.5px;
	color: var(--ink-dim, #888);
	white-space: pre-wrap;
	word-break: break-all;
	max-height: 160px;
	overflow-y: auto;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--surface-2, rgba(255, 255, 255, 0.04));
}

/* ── Honesty footer ───────────────────────────────────────────────────── */
.vlt-honesty {
	margin-top: 44px;
	padding: 20px 22px;
	border: 1px solid var(--stroke, rgba(255, 255, 255, 0.08));
	border-radius: var(--radius-card, 14px);
	background: var(--surface-1, rgba(255, 255, 255, 0.03));
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--ink-dim, #888);
}
.vlt-honesty h3 {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--ink, #e8e8e8);
}
.vlt-honesty code {
	font-family: var(--font-mono, ui-monospace, monospace);
	background: var(--surface-2, rgba(255, 255, 255, 0.05));
	padding: 1px 5px;
	border-radius: 4px;
	font-size: 11.5px;
}

@media (max-width: 600px) {
	.vlt-drawer {
		width: 100vw;
	}
}

/* ── Interactive states (QB-07) ────────────────────────────────────────────
   The sell disclosure is the action on this panel and the header
   gave no feedback. */

.vlt-sell summary {
	transition: background var(--duration-fast) var(--ease-standard);
}

.vlt-sell summary:hover {
	background: var(--surface-1);
}