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.

11.2 KB
Raw Blame
/* /sniper/experiments: the strategy A/B scoreboard.
 *
 * Built entirely on the shared --cv-* design tokens from coin-pages.css, so the
 * board inherits both themes and every surface/border/text colour stays in step
 * with the rest of the crypto pages. Nothing here hardcodes a palette colour
 * except the four tier accents, which are semantic (earned vs held back) and are
 * defined against the token set so they invert with the theme.
 */

/* ── strategy cell ───────────────────────────────────────────────────────── */
.xp-label {
	font-weight: 600;
	color: var(--cv-text);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.xp-agent {
	margin-top: 2px;
	font-size: 0.8125rem;
	color: var(--cv-text-2);
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.xp-agent a {
	color: var(--cv-accent);
	text-decoration: none;
	border-radius: var(--cv-radius-sm);
	transition: color var(--duration-fast) var(--ease-standard);
}

.xp-agent a:hover { color: var(--cv-accent-hover); text-decoration: underline; }
.xp-agent a:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 2px; }

.xp-wallet {
	margin-top: 3px;
	font-family: var(--cv-font-mono);
	font-size: 0.75rem;
	color: var(--cv-text-3);
	display: flex;
	align-items: center;
	gap: 8px;
}

.xp-wallet a { color: var(--cv-text-2); text-decoration: none; }
.xp-wallet a:hover { color: var(--cv-accent); }
.xp-wallet a:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 2px; }
.xp-wallet-none { color: var(--cv-text-3); font-style: italic; }

/* ── badges ──────────────────────────────────────────────────────────────── */
.xp-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: 999px;
	border: 1px solid var(--cv-border);
	background: var(--cv-surface-2);
	color: var(--cv-text-2);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: help;
}

.xp-badge-llm {
	border-color: color-mix(in srgb, var(--cv-accent) 40%, transparent);
	background: color-mix(in srgb, var(--cv-accent) 12%, transparent);
	color: var(--cv-accent);
}

.xp-badge-rules { font-family: var(--cv-font-mono); }

/* Earned autonomy. Only rendered off the default tier, so any colour on the
 * board means the arm's own record moved it up or down. */
.xp-badge-tier { text-transform: uppercase; letter-spacing: 0.04em; }

.xp-tier-trusted {
	border-color: color-mix(in srgb, var(--cv-green) 45%, transparent);
	background: var(--cv-green-soft);
	color: var(--cv-green);
}

.xp-tier-autonomous {
	border-color: var(--cv-green);
	background: color-mix(in srgb, var(--cv-green) 22%, transparent);
	color: var(--cv-green);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--cv-green) 25%, transparent);
}

.xp-tier-probation {
	border-color: color-mix(in srgb, var(--cv-red) 45%, transparent);
	background: var(--cv-red-soft);
	color: var(--cv-red);
}

.xp-paused {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cv-text-3);
}

/* ── conditions cell ─────────────────────────────────────────────────────── */
/* `width` rather than `max-width`: table auto-layout treats max-width on a cell
 * as a suggestion it is free to ignore, which is how this column ended up wider
 * than its own cap. A width acts as the preferred size the algorithm honours. */
.xp-cond { width: 300px; color: var(--cv-text-2); font-size: 0.8125rem; }

.xp-cond-sub {
	margin-top: 3px;
	font-family: var(--cv-font-mono);
	font-size: 0.6875rem;
	color: var(--cv-text-3);
}

/* ── record cell ─────────────────────────────────────────────────────────── */
.xp-open {
	font-size: 0.75rem;
	color: var(--cv-accent);
	font-weight: 600;
}

.xp-paper {
	margin-top: 2px;
	font-size: 0.6875rem;
	color: var(--cv-text-3);
	font-style: italic;
}

/* Free upside still riding. Distinct from realized P&L on purpose: nothing here
 * is booked until a bag is sold. */
.xp-moonbag {
	margin-top: 3px;
	font-size: 0.6875rem;
	font-weight: 600;
	color: var(--cv-green);
	cursor: help;
}

/* Why an arm is not trading. Blocking conditions (a knob that makes an entry
 * impossible) read as a warning; a merely idle arm stays muted so the board does
 * not cry wolf over an arm that is simply waiting for a qualifying launch. */
.xp-stall {
	margin-top: 5px;
	padding: 5px 8px;
	border-radius: var(--cv-radius-sm);
	border: 1px solid var(--cv-border);
	background: var(--cv-surface-2);
	font-size: 0.6875rem;
	line-height: 1.45;
	color: var(--cv-text-3);
	cursor: help;
}

.xp-stall b {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 700;
}

/* Secondary conditions: the arm is broken in more than one way. Muted, because
 * the headline is what stops it trading today. */
.xp-stall-also {
	margin: 4px 0 0;
	padding-left: 14px;
	list-style: disc;
	color: var(--cv-text-3);
}

.xp-stall-also li { margin-top: 2px; }

.xp-stall-blocking {
	border-color: color-mix(in srgb, var(--cv-red) 45%, transparent);
	background: var(--cv-red-soft);
	color: var(--cv-text-2);
}

.xp-stall-blocking b { color: var(--cv-red); }

/* ── P&L ─────────────────────────────────────────────────────────────────── */
.xp-pos { color: var(--cv-green); font-weight: 600; }
.xp-neg { color: var(--cv-red); font-weight: 600; }

/* ── table + rows ────────────────────────────────────────────────────────── */
/* Nine columns, three of them prose. The shared .cv-table floor of 540px packs
 * them tight enough that every entry-condition line wraps mid-phrase; this is
 * the width the board actually needs before its own overflow-x container takes
 * over on a narrow screen. */
.xp-table { width: 100%; min-width: 860px; font-size: 0.875rem; }

/* .cv-table is built for the sortable, row-clickable market tables and hands
 * every header and row a pointer cursor. Nothing on this board sorts and no row
 * navigates, so that cursor promises an interaction that does not exist. */
.xp-table th,
.xp-table tbody tr { cursor: default; }

/* The shared .cv-table sets `white-space: nowrap` and right-aligns every cell,
 * which suits a grid of figures but not this board: the first three columns hold
 * prose that then refuses to wrap and spills across the column beside it. Reset
 * them to normal flow and re-apply the numeric treatment only where it belongs. */
.xp-table td {
	vertical-align: top;
	padding: 10px 12px;
	text-align: left;
	white-space: normal;
	overflow-wrap: anywhere;
}

.xp-table th:nth-child(-n + 3) { text-align: left; }

/* The strategy cell carries four stacked lines (label + tier, agent + mode,
 * ledger link, wallet + balance). Without a floor it collapses to the width of
 * the numeric columns and every line wraps mid-phrase. */
.xp-table th:first-child,
.xp-table td:first-child { min-width: 250px; }

/* The record cell stacks up to four lines (W/L, open, moon bags, paper). */
.xp-table td:nth-child(3) { min-width: 140px; }

/* Numeric columns read as a column of figures, not ragged text. */
.xp-table th:nth-child(n + 4),
.xp-table td:nth-child(n + 4) { white-space: nowrap; text-align: right; }
.xp-table td:nth-child(n + 4) { font-variant-numeric: tabular-nums; }

.xp-table tbody tr { transition: background var(--duration-fast) var(--ease-standard); }
.xp-table tbody tr:hover { background: var(--cv-surface-2); }
.xp-off { opacity: 0.55; }

/* ── window switch ───────────────────────────────────────────────────────── */
.xp-seg {
	display: inline-flex;
	padding: 3px;
	gap: 2px;
	border: 1px solid var(--cv-border);
	border-radius: var(--cv-radius-md);
	background: var(--cv-surface-2);
}

.xp-seg-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--cv-text-2);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 5px 12px;
	border-radius: var(--cv-radius);
	cursor: pointer;
	transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}

.xp-seg-btn:hover { background: var(--cv-surface-3); color: var(--cv-text); }
.xp-seg-btn:focus-visible { outline: 2px solid var(--cv-accent); outline-offset: 1px; }

.xp-seg-btn.on {
	background: var(--cv-surface);
	color: var(--cv-text);
	box-shadow: var(--cv-shadow-card);
}

/* ── summary tiles ───────────────────────────────────────────────────────── */
.xp-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.xp-tile {
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.xp-tile span { font-size: 0.75rem; color: var(--cv-text-3); }
.xp-tile b { font-size: 1.25rem; font-weight: 650; color: var(--cv-text); }
.xp-tile i { font-size: 0.75rem; font-style: normal; color: var(--cv-text-3); }

@media (max-width: 640px) {
	.xp-cond { width: auto; }
	.xp-table { font-size: 0.8125rem; }
	.xp-table td { padding: 8px; }
}

/* ── first paint ─────────────────────────────────────────────────────────── */
/* Skeleton lines share the shared .cv-skel shimmer (and its reduced-motion
 * opt-out) and only add the geometry, so loading reads as the same system as
 * every other crypto page. */
.xp-skel-line {
	display: block;
	height: 0.75rem;
	border-radius: var(--cv-radius-sm);
}

.xp-skel-lg { height: 1.25rem; }
.xp-skel-tile { gap: 8px; }

/* ── degraded refresh ────────────────────────────────────────────────────── */
/* Shown only when a poll fails over a board that already has numbers on it. */
.xp-alert {
	margin: 0 0 12px;
	padding: 8px 12px;
	border: 1px solid color-mix(in srgb, var(--cv-red) 35%, var(--cv-border));
	border-radius: var(--cv-radius-md);
	background: var(--cv-red-soft);
	color: var(--cv-text-2);
	flex-wrap: wrap;
}

.xp-alert .dot { background: var(--cv-red); }

/* ── related surfaces ────────────────────────────────────────────────────── */
/* The board names things it can only gloss in a tooltip (autonomy tiers, moon
 * bags, the reasoning ledger behind every verdict). These are the pages that
 * write each one up, so the reader is never left at a dead end. */
.xp-related { margin-top: 28px; }
.xp-related .cv-h2 { margin-bottom: 10px; }