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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
/* The Arena: Social Trading Arena. Tournament list, live competition, results.
*
* Built entirely on the canonical design tokens (public/tokens.css via nav.css),
* the same vocabulary as the neighbouring leaderboard.css. Glass-on-near-black,
* golden-ratio spacing, dark/light via tokens, mono numerics for the trading feel.
*
* This page does NOT load style.css (kept lean), so it establishes its own type
* base here: body copy in --font-body (Inter), headings in --font-display
* (Space Grotesk), numbers in --font-mono (JetBrains Mono). Without these the page
* would fall back to the UA serif. Everything is token-driven, responsive, a11y and
* reduced-motion friendly. No hardcoded palette. */
.arena {
max-width: 1180px;
margin: 0 auto;
padding: clamp(1rem, 3vw, 2.2rem) clamp(0.9rem, 3vw, 1.6rem) 5rem;
min-height: 70vh;
font-family: var(--font-body);
color: var(--ink);
}
.arena h1,
.arena h2,
.arena h3,
.arena h4 {
font-family: var(--font-display);
color: var(--ink-bright);
}
/* ── Hero ─────────────────────────────────────────────────────────────── */
.arena-hero {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: var(--space-md);
margin-bottom: var(--space-lg);
}
.arena-hero h1 {
font-size: clamp(1.7rem, 4vw, 2.6rem);
line-height: 1.05;
letter-spacing: -0.02em;
margin: 0 0 0.35rem;
}
.arena-hero .lede {
color: var(--ink-dim);
max-width: 56ch;
margin: 0;
font-size: var(--text-ui);
line-height: 1.5;
}
.arena-hero .hero-actions {
display: flex;
gap: var(--space-sm);
flex-wrap: wrap;
}
/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
appearance: none;
border: 1px solid var(--stroke);
background: var(--surface-2);
color: var(--ink);
font-family: var(--font-body);
font-size: var(--text-md);
font-weight: var(--weight-semibold);
padding: 0.55rem 0.95rem;
border-radius: var(--radius-md);
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.45rem;
transition: background var(--duration-fast) var(--ease-standard),
border-color var(--duration-fast) var(--ease-standard),
transform var(--duration-instant) var(--ease-standard);
text-decoration: none;
white-space: nowrap;
}
.btn:hover {
background: var(--surface-3);
border-color: var(--stroke-strong);
}
.btn:active {
transform: translateY(1px);
}
.btn:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
}
.btn-primary {
background: var(--accent);
color: var(--btn-primary-fg, var(--bg-0));
border-color: var(--accent);
}
.btn-primary:hover {
background: var(--btn-primary-bg-hover, #ffffff);
filter: brightness(1.02);
}
.btn-primary:disabled,
.btn:disabled {
opacity: var(--disabled-opacity);
cursor: var(--disabled-cursor);
}
.btn-ghost {
background: transparent;
}
/* ── Tabs ─────────────────────────────────────────────────────────────── */
.arena-tabs {
display: flex;
gap: 0.25rem;
border-bottom: 1px solid var(--stroke);
margin-bottom: var(--space-md);
overflow-x: auto;
scrollbar-width: none;
}
.arena-tabs::-webkit-scrollbar {
display: none;
}
.arena-tab {
appearance: none;
background: none;
border: none;
color: var(--ink-dim);
font-family: var(--font-body);
font-size: var(--text-ui);
font-weight: var(--weight-semibold);
padding: 0.6rem 0.9rem;
cursor: pointer;
position: relative;
border-bottom: 2px solid transparent;
white-space: nowrap;
transition: color var(--duration-fast) var(--ease-standard);
}
.arena-tab:hover {
color: var(--ink-bright);
}
.arena-tab:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: -2px;
border-radius: var(--radius-sm);
}
.arena-tab[aria-selected='true'] {
color: var(--ink-bright);
border-bottom-color: var(--accent);
}
.arena-tab .count {
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
margin-left: 0.3rem;
}
/* ── Tournament card grid ─────────────────────────────────────────────── */
.tourn-grid {
display: grid;
/* min() keeps the track from forcing a 300px column (and a horizontally
scrolling page) inside a narrower container, e.g. a 320px phone. */
grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
gap: var(--space-md);
}
.tourn-card {
border: 1px solid var(--stroke);
background: var(--surface-1);
border-radius: var(--radius-lg);
padding: 1.1rem;
display: flex;
flex-direction: column;
gap: 0.7rem;
cursor: pointer;
transition: border-color var(--duration-base) var(--ease-standard),
transform var(--duration-base) var(--ease-standard),
box-shadow var(--duration-base) var(--ease-standard),
background var(--duration-base) var(--ease-standard);
text-align: left;
color: inherit;
font: inherit;
}
.tourn-card:hover {
border-color: var(--stroke-strong);
background: var(--surface-2);
transform: translateY(-2px);
box-shadow: var(--shadow-2);
}
.tourn-card:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
}
.tourn-card .card-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.tourn-card h3 {
margin: 0;
font-size: var(--text-lg);
line-height: 1.2;
letter-spacing: -0.01em;
}
.tourn-card .desc {
color: var(--ink-dim);
font-size: var(--text-md);
line-height: 1.45;
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.tourn-card .card-meta {
display: flex;
flex-wrap: wrap;
gap: 0.4rem 0.9rem;
margin-top: auto;
font-size: var(--text-sm);
color: var(--ink-dim);
}
.tourn-card .card-meta b {
color: var(--ink-bright);
font-weight: var(--weight-semibold);
font-variant-numeric: tabular-nums;
}
/* ── Status / badges ──────────────────────────────────────────────────── */
.badge {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-family: var(--font-mono);
font-size: var(--text-2xs);
font-weight: var(--weight-bold);
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 0.2rem 0.5rem;
border-radius: var(--radius-pill);
border: 1px solid var(--stroke);
color: var(--ink-dim);
white-space: nowrap;
}
.badge .dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
}
.badge-live {
color: var(--success);
border-color: color-mix(in srgb, var(--success) 40%, transparent);
background: color-mix(in srgb, var(--success) 12%, transparent);
}
.badge-live .dot {
animation: arena-pulse 1.4s ease-in-out infinite;
}
.badge-upcoming {
color: var(--ink-bright);
border-color: var(--stroke-strong);
}
.badge-finished {
color: var(--ink-faint);
}
.badge-practice {
color: var(--warn);
border-color: color-mix(in srgb, var(--warn) 40%, transparent);
}
.badge-verified {
color: var(--success);
border-color: color-mix(in srgb, var(--success) 40%, transparent);
}
.badge-warn {
color: var(--danger);
border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}
@keyframes arena-pulse {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.4;
transform: scale(0.7);
}
}
.prize-chip {
display: inline-flex;
align-items: center;
gap: 0.35rem;
font-family: var(--font-mono);
font-weight: var(--weight-bold);
color: var(--ink-bright);
background: linear-gradient(
120deg,
rgba(var(--gold-rgb), 0.22),
rgba(var(--gold-rgb), 0.08)
);
border: 1px solid rgba(var(--gold-rgb), 0.35);
padding: 0.22rem 0.55rem;
border-radius: var(--radius-pill);
font-size: var(--text-sm);
}
/* ── Detail view ──────────────────────────────────────────────────────── */
.arena-back {
background: none;
border: none;
color: var(--ink-dim);
font-family: var(--font-body);
font-size: var(--text-md);
cursor: pointer;
padding: 0.3rem 0.2rem;
margin-bottom: 0.8rem;
display: inline-flex;
align-items: center;
gap: 0.35rem;
border-radius: var(--radius-sm);
transition: color var(--duration-fast) var(--ease-standard);
}
.arena-back:hover {
color: var(--ink-bright);
}
.arena-back:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
}
.detail-head {
display: grid;
grid-template-columns: 1fr;
gap: var(--space-md);
margin-bottom: var(--space-lg);
}
.detail-head .title-row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.6rem;
}
.detail-head h1 {
margin: 0;
font-size: clamp(1.5rem, 3.5vw, 2.2rem);
letter-spacing: -0.02em;
}
.detail-head .desc {
color: var(--ink-dim);
margin: 0;
max-width: 70ch;
line-height: 1.5;
}
.detail-stats {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1.6rem;
}
.stat {
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.stat .k {
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--ink-faint);
}
.stat .v {
font-family: var(--font-mono);
font-size: var(--text-base);
font-weight: var(--weight-bold);
color: var(--ink-bright);
font-variant-numeric: tabular-nums;
}
.countdown {
font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
}
/* Two-column: spotlight + board on wide screens */
.detail-body {
display: grid;
grid-template-columns: 320px 1fr;
gap: var(--space-lg);
align-items: start;
}
.detail-aside {
display: flex;
flex-direction: column;
gap: var(--space-md);
}
@media (max-width: 860px) {
.detail-body {
grid-template-columns: 1fr;
}
/* When the aside stacks above the board, drop the sticky pin and trim the
spotlight so the ranking board isn't pushed far down the page. */
.spotlight {
position: static;
}
.spotlight agent-3d,
.spotlight .spot-fallback {
height: 220px;
}
}
.spotlight {
border: 1px solid var(--stroke);
border-radius: var(--radius-lg);
background: radial-gradient(120% 80% at 50% 0%, var(--surface-2), var(--surface-1));
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.spotlight .crown {
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--warn);
font-weight: var(--weight-bold);
}
.spotlight agent-3d,
.spotlight .spot-fallback {
width: 100%;
height: 280px;
border-radius: var(--radius-md);
overflow: hidden;
background: var(--bg-0);
display: block;
}
.spotlight .spot-fallback {
display: flex;
align-items: center;
justify-content: center;
color: var(--ink-faint);
font-family: var(--font-display);
font-size: var(--text-xl);
font-weight: var(--weight-bold);
}
.spotlight .spot-fallback img {
width: 100%;
height: 100%;
object-fit: cover;
}
.spotlight .spot-name {
font-weight: var(--weight-bold);
font-size: var(--text-base);
color: var(--ink-bright);
display: flex;
align-items: center;
gap: 0.4rem;
}
.spotlight .spot-metric {
color: var(--ink-dim);
font-family: var(--font-mono);
font-size: var(--text-md);
font-variant-numeric: tabular-nums;
}
/* ── Ranking board ────────────────────────────────────────────────────── */
.board {
display: flex;
flex-direction: column;
gap: 0.4rem;
position: relative;
}
.board-head,
.row {
display: grid;
grid-template-columns: 2.2rem 1fr 5.5rem 5rem 4rem;
align-items: center;
gap: 0.6rem;
}
.board-head {
padding: 0 0.8rem 0.4rem;
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ink-faint);
}
.board-head .num,
.row .num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.row {
border: 1px solid var(--stroke);
background: var(--surface-1);
border-radius: var(--radius-md);
padding: 0.6rem 0.8rem;
transition: transform var(--duration-slow) var(--ease-standard),
border-color var(--duration-base) var(--ease-standard),
background var(--duration-base) var(--ease-standard);
cursor: pointer;
}
.row:hover {
border-color: var(--stroke-strong);
background: var(--surface-2);
}
.row:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: 1px;
}
.row.rank-1 {
border-color: rgba(var(--gold-rgb), 0.45);
background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.08), var(--surface-1));
}
.row.flash {
animation: arena-flash 0.7s ease;
}
@keyframes arena-flash {
0% {
background: color-mix(in srgb, var(--success) 22%, var(--surface-1));
}
100% {
background: var(--surface-1);
}
}
.row .rank {
font-family: var(--font-mono);
font-weight: var(--weight-bold);
font-variant-numeric: tabular-nums;
color: var(--ink-dim);
text-align: center;
}
.row.rank-1 .rank {
color: var(--warn);
}
.row .who {
display: flex;
align-items: center;
gap: 0.6rem;
min-width: 0;
}
.row .who img,
.row .who .ph {
width: 34px;
height: 34px;
border-radius: 50%;
object-fit: cover;
background: var(--surface-3);
flex-shrink: 0;
}
.row .who .ph {
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-display);
font-weight: var(--weight-bold);
color: var(--ink-dim);
font-size: var(--text-md);
}
.row .who .nm {
min-width: 0;
}
.row .who .nm .name {
font-weight: var(--weight-semibold);
color: var(--ink-bright);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
align-items: center;
gap: 0.35rem;
}
.row .who .nm .sub {
font-size: var(--text-2xs);
color: var(--ink-faint);
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
font-variant-numeric: tabular-nums;
}
.row .score {
font-family: var(--font-mono);
font-weight: var(--weight-bold);
color: var(--ink-bright);
font-variant-numeric: tabular-nums;
text-align: right;
}
.row .num {
font-family: var(--font-mono);
}
.row .pnl-pos {
color: var(--success);
}
.row .pnl-neg {
color: var(--danger);
}
.row .prize {
text-align: right;
font-family: var(--font-mono);
font-size: var(--text-sm);
color: var(--warn);
font-weight: var(--weight-bold);
font-variant-numeric: tabular-nums;
}
.row .mini-badge {
font-size: 0.6rem;
padding: 0.05rem 0.3rem;
}
/* Expanded trade proof under a row */
/* Sibling of its row, not a child: the pills are links, and a role="button" may
not contain focusable descendants. The negative margin cancels the board's
flex gap so the panel still reads as one card with the row above it. */
.row-proof {
margin-top: calc(-0.4rem - 1px);
padding: 0.55rem 0.8rem 0.6rem;
border: 1px solid var(--stroke);
border-top: 1px dashed var(--stroke);
border-radius: 0 0 var(--radius-md) var(--radius-md);
background: var(--surface-1);
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.row[aria-expanded='true'] {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.proof-pill {
font-family: var(--font-mono);
font-size: var(--text-2xs);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
padding: 0.18rem 0.5rem;
color: var(--ink-dim);
text-decoration: none;
display: inline-flex;
gap: 0.3rem;
font-variant-numeric: tabular-nums;
transition: border-color var(--duration-fast) var(--ease-standard),
color var(--duration-fast) var(--ease-standard);
}
.proof-pill:hover {
border-color: var(--stroke-strong);
color: var(--ink-bright);
}
/* ── Trades ticker ────────────────────────────────────────────────────── */
.ticker {
margin-top: var(--space-lg);
border: 1px solid var(--stroke);
border-radius: var(--radius-md);
background: var(--surface-1);
overflow: hidden;
}
.ticker h4 {
margin: 0;
padding: 0.6rem 0.8rem;
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--ink-faint);
border-bottom: 1px solid var(--stroke);
}
.ticker-list {
display: flex;
flex-direction: column;
max-height: 240px;
overflow-y: auto;
}
.ticker-item {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.45rem 0.8rem;
font-size: var(--text-sm);
border-bottom: 1px solid var(--stroke);
font-variant-numeric: tabular-nums;
transition: background var(--duration-fast) var(--ease-standard);
}
.ticker-item:hover {
background: var(--surface-1);
}
.ticker-item:last-child {
border-bottom: none;
}
.ticker-item .tk-agent {
font-weight: var(--weight-semibold);
color: var(--ink);
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ticker-item .tk-mint {
color: var(--ink-faint);
font-family: var(--font-mono);
}
.ticker-item .tk-pnl {
margin-left: auto;
font-family: var(--font-mono);
font-weight: var(--weight-bold);
}
/* ── Results / settlement ─────────────────────────────────────────────── */
.results-banner {
border: 1px solid var(--stroke);
border-radius: var(--radius-md);
padding: 0.9rem 1rem;
background: var(--surface-1);
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.6rem 1rem;
margin-bottom: var(--space-md);
}
.results-banner .att-link {
color: var(--ink-bright);
font-weight: var(--weight-semibold);
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-color: var(--stroke-strong);
transition: text-decoration-color var(--duration-fast) var(--ease-standard);
}
.results-banner .att-link:hover {
text-decoration-color: var(--accent);
}
.settle-note {
font-size: var(--text-sm);
color: var(--ink-dim);
}
.settle-note code {
font-family: var(--font-mono);
background: var(--surface-3);
padding: 0.05rem 0.3rem;
border-radius: var(--radius-sm);
font-size: 0.92em;
}
/* ── States: loading / empty / error ──────────────────────────────────── */
.skeleton {
background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
background-size: 200% 100%;
animation: arena-shimmer 1.4s ease infinite;
border-radius: var(--radius-md);
}
@keyframes arena-shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
.sk-card {
height: 168px;
}
.sk-row {
height: 58px;
margin-bottom: 0.4rem;
}
/* ── Main event ───────────────────────────────────────────────────────────
* The competition happening right now, promoted out of the card grid and given
* the whole width. A grid of equal-weight cards reads as a directory; this reads
* as a broadcast, which is what a live board actually is. */
.main-event {
position: relative;
overflow: hidden;
border: 1px solid var(--stroke);
border-radius: var(--radius-lg);
background: var(--surface-1);
padding: clamp(1rem, 2.6vw, 1.5rem);
margin-bottom: var(--space-lg);
}
/* A live board earns an accent edge; an upcoming one stays quiet so the two are
* never confused at a glance. */
.main-event.me-live {
border-color: color-mix(in srgb, var(--accent) 42%, var(--stroke));
box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent),
0 18px 48px -32px color-mix(in srgb, var(--accent) 55%, transparent);
}
.main-event.me-live::before {
content: '';
position: absolute;
inset: 0 0 auto 0;
height: 2px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
opacity: 0.75;
}
.me-head {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: space-between;
gap: var(--space-sm);
margin-bottom: var(--space-md);
}
.me-kicker {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: var(--text-xs);
letter-spacing: 0.09em;
text-transform: uppercase;
color: var(--ink-dim);
margin-bottom: 0.4rem;
}
.me-head h2 {
margin: 0;
font-size: clamp(1.3rem, 3vw, 1.9rem);
line-height: 1.1;
letter-spacing: -0.02em;
}
.me-clock {
text-align: right;
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.me-clock-k {
font-size: var(--text-xs);
text-transform: uppercase;
letter-spacing: 0.09em;
color: var(--ink-dim);
}
.me-clock-v {
font-family: var(--font-mono);
font-size: clamp(1.1rem, 2.6vw, 1.5rem);
font-variant-numeric: tabular-nums;
color: var(--ink-bright);
}
.me-board {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.me-row {
display: grid;
grid-template-columns: 2.2rem 2.2rem 1fr auto;
align-items: center;
gap: 0.75rem;
padding: 0.6rem 0.75rem;
border: 1px solid var(--stroke);
border-radius: var(--radius-md);
background: var(--surface-2);
color: inherit;
text-decoration: none;
transition: transform var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.me-row:hover,
.me-row:focus-visible {
transform: translateX(3px);
border-color: color-mix(in srgb, var(--accent) 45%, var(--stroke));
background: var(--surface-3, var(--surface-2));
}
.me-row.me-lead {
border-color: color-mix(in srgb, var(--accent) 34%, var(--stroke));
}
.me-place {
font-size: 1.15rem;
text-align: center;
}
.me-face {
width: 2.2rem;
height: 2.2rem;
border-radius: 50%;
object-fit: cover;
border: 1px solid var(--stroke);
}
.me-face.ph {
display: grid;
place-items: center;
font-size: var(--text-xs);
font-weight: var(--weight-semibold);
background: var(--surface-1);
color: var(--ink-dim);
}
.me-who {
display: flex;
flex-direction: column;
gap: 0.1rem;
min-width: 0;
}
.me-name {
font-weight: var(--weight-semibold);
color: var(--ink-bright);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.me-sub {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: var(--text-xs);
color: var(--ink-dim);
}
.me-pnl {
font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
font-size: clamp(1rem, 2.2vw, 1.25rem);
font-weight: var(--weight-semibold);
white-space: nowrap;
}
.me-empty {
padding: 1.1rem 0.9rem;
border: 1px dashed var(--stroke);
border-radius: var(--radius-md);
color: var(--ink-dim);
font-size: var(--text-ui);
}
.me-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-sm);
margin-top: var(--space-md);
}
.me-foot {
margin-left: auto;
font-size: var(--text-xs);
color: var(--ink-dim);
font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
.me-row {
grid-template-columns: 1.8rem 1.8rem 1fr auto;
gap: 0.5rem;
}
.me-foot {
margin-left: 0;
width: 100%;
}
}
.state {
text-align: center;
padding: clamp(2rem, 8vw, 4.5rem) 1rem;
border: 1px dashed var(--stroke);
border-radius: var(--radius-lg);
color: var(--ink-dim);
}
/* A pointer rather than an empty state: the page above it is full, so this must
not claim the height a genuine "nothing here" box does. */
.state-slim {
padding: clamp(1.1rem, 3vw, 1.6rem) 1rem;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: var(--space-sm);
text-align: left;
}
.state-slim p {
margin: 0;
font-size: var(--text-ui);
}
/* A state that IS the whole page (load failure, stale link) carries the route's
only <h1>, so it has to read identically to the in-page <h3> variants. */
.state h1,
.state h3 {
margin: 0 0 0.4rem;
color: var(--ink-bright);
font-size: var(--text-lg);
line-height: 1.25;
letter-spacing: normal;
}
.state p {
margin: 0 auto 1rem;
max-width: 46ch;
line-height: 1.5;
font-size: var(--text-md);
}
.state-icon {
font-size: 2.4rem;
line-height: 1;
margin-bottom: 0.7rem;
}
.state-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
justify-content: center;
}
/* Not-found recovery: surfaced live/upcoming tournaments */
#nf-suggest {
margin-top: var(--space-lg);
}
.nf-h {
font-size: var(--text-lg);
letter-spacing: -0.01em;
margin: 0 0 var(--space-md);
color: var(--ink-dim);
}
/* ── Hero context strip (list view) ───────────────────────────────────── */
.arena-hero-stats {
margin-top: var(--space-md);
gap: 0.4rem 1.4rem;
}
.arena-hero-stats:empty {
display: none;
margin-top: 0;
}
/* ── Detail-aside panels (prize ladder / rules) ───────────────────────── */
.panel {
border: 1px solid var(--stroke);
background: var(--surface-1);
border-radius: var(--radius-lg);
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.panel-h {
margin: 0;
font-family: var(--font-mono);
font-size: var(--text-2xs);
font-weight: var(--weight-bold);
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-faint);
}
.panel-h-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.panel-note {
margin: 0;
font-size: var(--text-sm);
line-height: 1.5;
color: var(--ink-dim);
}
/* Prize ladder */
.pl-rows {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.pl-row {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.55rem;
border: 1px solid var(--stroke);
border-radius: var(--radius-sm);
background: var(--surface-1);
}
.pl-row.pl-filled {
border-color: rgba(var(--gold-rgb), 0.3);
background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.07), var(--surface-1));
}
.pl-place {
width: 1.4rem;
text-align: center;
font-size: var(--text-base);
line-height: 1;
flex-shrink: 0;
}
.pl-who {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--ink-dim);
}
.pl-filled .pl-who {
color: var(--ink-bright);
}
.pl-amt {
font-family: var(--font-mono);
font-size: var(--text-sm);
font-weight: var(--weight-bold);
color: var(--warn);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.pl-pct {
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
min-width: 2.2rem;
text-align: right;
font-variant-numeric: tabular-nums;
}
/* Rules & scoring */
.rules-rows {
display: flex;
flex-direction: column;
}
.rule-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.8rem;
padding: 0.32rem 0;
font-size: var(--text-sm);
border-bottom: 1px solid var(--stroke);
}
.rule-row:last-child {
border-bottom: none;
}
.rule-k {
color: var(--ink-faint);
flex-shrink: 0;
}
.rule-v {
color: var(--ink);
font-weight: var(--weight-semibold);
text-align: right;
font-variant-numeric: tabular-nums;
}
.rules-gates {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.rules-gates-h {
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--ink-faint);
}
.gate-pills {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.gate-pill {
font-family: var(--font-mono);
font-size: var(--text-2xs);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
padding: 0.15rem 0.5rem;
color: var(--ink-dim);
}
/* ── Aggregate strip (over the board) ─────────────────────────────────── */
.agg-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
gap: 0.6rem 0.9rem;
padding: 0.85rem 0.95rem;
border: 1px solid var(--stroke);
border-radius: var(--radius-md);
background: var(--surface-1);
margin-bottom: var(--space-md);
}
.agg-cell {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
}
.agg-k {
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ink-faint);
}
.agg-v {
font-family: var(--font-mono);
font-size: var(--text-base);
font-weight: var(--weight-bold);
color: var(--ink-bright);
font-variant-numeric: tabular-nums;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.agg-v.pnl-pos {
color: var(--success);
}
.agg-v.pnl-neg {
color: var(--danger);
}
/* ── Window timeline ──────────────────────────────────────────────────── */
.window-timeline {
display: flex;
flex-direction: column;
gap: 0.45rem;
}
.wt-label {
font-size: var(--text-sm);
color: var(--ink-dim);
}
.wt-label b {
color: var(--ink-bright);
font-family: var(--font-mono);
font-weight: var(--weight-bold);
font-variant-numeric: tabular-nums;
}
.wt-label .wt-live {
color: var(--success);
font-weight: var(--weight-bold);
}
.wt-track {
position: relative;
height: 6px;
border-radius: var(--radius-pill);
background: var(--surface-3);
}
.wt-fill {
position: absolute;
inset: 0 auto 0 0;
height: 100%;
border-radius: var(--radius-pill);
background: var(--ink-dim);
transition: width var(--duration-slow) var(--ease-out);
}
.window-timeline.wt-live .wt-fill {
background: var(--success);
}
.window-timeline.wt-finished .wt-fill {
background: var(--ink-dim);
}
.wt-node {
position: absolute;
top: 50%;
width: 9px;
height: 9px;
border-radius: 50%;
transform: translate(-50%, -50%);
background: var(--surface-3);
border: 2px solid var(--bg-0);
}
.wt-node-start {
left: 0;
background: var(--ink-dim);
}
.wt-node-end {
left: 100%;
}
.window-timeline.wt-live .wt-node-start {
background: var(--success);
}
.window-timeline.wt-finished .wt-node-end {
background: var(--ink-dim);
}
.wt-ends {
display: flex;
justify-content: space-between;
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
}
@media (prefers-reduced-motion: reduce) {
.wt-fill {
transition: none !important;
}
}
/* ── Modal ────────────────────────────────────────────────────────────── */
.arena-modal {
position: fixed;
inset: 0;
background: var(--modal-backdrop, rgba(0, 0, 0, 0.7));
backdrop-filter: blur(var(--blur-sm));
-webkit-backdrop-filter: blur(var(--blur-sm));
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
/* Above the site's fixed corner widgets (getting-started pill 2147482500,
feature-discovery card 2147483600) so a modal is always the top layer and
its actions are never obscured, esp. the bottom sheet on mobile. */
z-index: 2147483640;
font-family: var(--font-body);
animation: arena-fade var(--duration-base) var(--ease-out);
}
@keyframes arena-fade {
from {
opacity: 0;
}
}
.arena-modal .sheet {
position: relative;
background: var(--bg-1);
border: 1px solid var(--stroke-strong);
border-radius: var(--radius-lg);
width: min(560px, 100%);
max-height: min(90vh, 760px);
overflow-y: auto;
padding: 1.4rem;
box-shadow: var(--shadow-3);
animation: arena-sheet-in var(--duration-base) var(--ease-emphasized);
}
@keyframes arena-sheet-in {
from {
opacity: 0;
transform: translateY(12px) scale(0.98);
}
}
.arena-modal h2 {
margin: 0 0 0.3rem;
padding-right: 2rem;
font-family: var(--font-display);
font-size: var(--text-lg);
color: var(--ink-bright);
}
.arena-modal .sub {
color: var(--ink-dim);
font-size: var(--text-md);
line-height: 1.5;
margin: 0 0 1.1rem;
}
.modal-close {
position: absolute;
top: 0.85rem;
right: 0.85rem;
width: 2rem;
height: 2rem;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid transparent;
border-radius: var(--radius-sm);
background: transparent;
color: var(--ink-dim);
font-size: 1.15rem;
line-height: 1;
cursor: pointer;
transition: color var(--duration-fast) var(--ease-standard),
background var(--duration-fast) var(--ease-standard);
}
.modal-close:hover {
color: var(--ink-bright);
background: var(--surface-2);
}
.modal-close:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
}
.field {
display: flex;
flex-direction: column;
gap: 0.35rem;
margin-bottom: 0.9rem;
}
.field label {
font-size: var(--text-sm);
font-weight: var(--weight-semibold);
color: var(--ink-dim);
}
.field input,
.field select,
.field textarea {
background: var(--bg-0);
border: 1px solid var(--stroke);
border-radius: var(--radius-sm);
color: var(--ink);
font-family: var(--font-body);
font-size: var(--text-md);
padding: 0.55rem 0.65rem;
/* width:100% inside a padded sheet only fits if padding+border are inside the
box. Chrome's UA default leaves input/textarea on content-box (select is
already border-box), which pushed them ~23px past the sheet and gave the
create-tournament form a horizontal scrollbar on a 320px phone. */
box-sizing: border-box;
width: 100%;
transition: border-color var(--duration-fast) var(--ease-standard),
box-shadow var(--duration-fast) var(--ease-standard);
}
.field textarea {
resize: vertical;
min-height: 3.2rem;
}
.field input[type='number'] {
font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
border-color: var(--stroke-strong);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint {
font-size: var(--text-2xs);
line-height: 1.45;
color: var(--ink-faint);
}
.field-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.6rem;
}
.agent-pick {
display: flex;
flex-direction: column;
gap: 0.4rem;
max-height: 260px;
overflow-y: auto;
}
.agent-opt {
display: flex;
align-items: center;
gap: 0.6rem;
border: 1px solid var(--stroke);
border-radius: var(--radius-md);
padding: 0.5rem 0.6rem;
cursor: pointer;
background: var(--bg-0);
text-align: left;
color: inherit;
font: inherit;
transition: border-color var(--duration-fast) var(--ease-standard),
background var(--duration-fast) var(--ease-standard);
}
.agent-opt:hover {
border-color: var(--stroke-strong);
background: var(--surface-1);
}
.agent-opt:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
}
.agent-opt[aria-pressed='true'] {
border-color: var(--accent);
background: var(--surface-2);
box-shadow: 0 0 0 3px var(--accent-soft);
}
.agent-opt img,
.agent-opt .ph {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
background: var(--surface-3);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-display);
font-weight: var(--weight-bold);
font-size: var(--text-sm);
color: var(--ink-dim);
}
.agent-opt .hint {
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
margin-top: 1.1rem;
}
.form-error {
color: var(--danger);
font-size: var(--text-sm);
margin: 0.5rem 0 0;
min-height: 1em;
}
.form-error-link {
color: inherit;
font-weight: var(--weight-semibold);
text-underline-offset: 2px;
}
.form-error-link:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: var(--focus-ring-offset);
border-radius: var(--radius-sm);
}
/* Toast */
.arena-toast {
position: fixed;
bottom: 1.2rem;
left: 50%;
transform: translateX(-50%);
background: var(--bg-1);
border: 1px solid var(--stroke-strong);
color: var(--ink-bright);
font-family: var(--font-body);
padding: 0.65rem 1rem;
border-radius: var(--radius-md);
font-size: var(--text-md);
z-index: 2147483645;
box-shadow: var(--shadow-3);
animation: arena-toast-in var(--duration-base) var(--ease-emphasized);
}
.arena-toast.err {
border-color: var(--danger);
}
@keyframes arena-toast-in {
from {
opacity: 0;
transform: translate(-50%, 8px);
}
}
@media (prefers-reduced-motion: reduce) {
.row,
.tourn-card,
.btn,
.badge-live .dot,
.skeleton,
.row.flash,
.me-row,
.arena-modal,
.arena-modal .sheet,
.arena-toast {
animation: none !important;
transition: none !important;
}
.me-row:hover,
.me-row:focus-visible {
transform: none;
}
}
/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
.arena-hero {
align-items: flex-start;
}
.arena-hero .hero-actions {
width: 100%;
}
.arena-hero .hero-actions .btn {
flex: 1;
justify-content: center;
}
}
@media (max-width: 560px) {
.board-head,
.row {
grid-template-columns: 1.8rem 1fr 4.4rem 3.6rem;
}
.board-head .col-prize,
.row .prize {
display: none;
}
/* Stack paired fields (scoring/bracket, starts/ends) so datetime inputs
have room and never overflow the sheet on a phone. */
.field-row {
grid-template-columns: 1fr;
}
/* Bottom-sheet on phones: dock to the bottom edge, full width, slide up. */
.arena-modal {
align-items: flex-end;
padding: 0;
}
.arena-modal .sheet {
width: 100%;
max-height: 92vh;
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
border-bottom: none;
padding: 1.2rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
animation: arena-sheet-up var(--duration-base) var(--ease-emphasized);
}
@keyframes arena-sheet-up {
from {
opacity: 0.4;
transform: translateY(100%);
}
}
.modal-actions {
position: sticky;
bottom: 0;
background: var(--bg-1);
padding-top: 0.8rem;
margin-top: 1.2rem;
}
.modal-actions .btn {
flex: 1;
justify-content: center;
}
}
/* ── Detail: window timeline, aside panels, aggregate strip ─────────────────
* Rendered by windowTimeline() / prizeLadder() / rulesPanel() / aggregateStrip()
* in arena.js. Same glass-on-near-black token vocabulary as the board & cards,
* mono numerics for the trading feel, dark/light via tokens. */
.detail-main {
min-width: 0; /* let the board/ticker shrink inside the grid track */
}
/* Hero context stats on the list view: reuses the .detail-stats layout. */
.arena-hero-stats {
margin-top: var(--space-sm);
}
.arena-hero-stats:empty {
display: none;
}
/* Window progress: open → close. The fill advances live via startCountdowns(). */
.window-timeline {
display: flex;
flex-direction: column;
gap: 0.5rem;
border: 1px solid var(--stroke);
background: var(--surface-1);
border-radius: var(--radius-md);
padding: 0.7rem 0.85rem;
}
.wt-label {
font-size: var(--text-sm);
color: var(--ink-dim);
font-variant-numeric: tabular-nums;
}
.wt-label b {
font-family: var(--font-mono);
color: var(--ink-bright);
font-weight: var(--weight-bold);
}
.wt-live {
color: var(--success);
font-weight: var(--weight-bold);
}
.wt-track {
position: relative;
height: 6px;
border-radius: var(--radius-pill);
background: var(--surface-3);
}
.wt-fill {
height: 100%;
min-width: 6px;
border-radius: var(--radius-pill);
background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.9), var(--success));
transition: width var(--duration-slow) var(--ease-standard);
}
.wt-upcoming .wt-fill {
min-width: 0;
}
.wt-finished .wt-fill {
background: var(--stroke-strong);
}
.wt-node {
position: absolute;
top: 50%;
width: 9px;
height: 9px;
border-radius: 50%;
transform: translate(-50%, -50%);
background: var(--bg-0);
border: 2px solid var(--stroke-strong);
}
.wt-node-start {
left: 0;
}
.wt-node-end {
left: 100%;
}
.wt-ends {
display: flex;
justify-content: space-between;
gap: 0.5rem;
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
font-variant-numeric: tabular-nums;
}
/* Aside panels: prize ladder + rules. */
.panel {
border: 1px solid var(--stroke);
background: var(--surface-1);
border-radius: var(--radius-lg);
padding: 0.95rem 1rem;
display: flex;
flex-direction: column;
gap: 0.7rem;
}
.panel-h {
margin: 0;
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--ink-faint);
font-weight: var(--weight-bold);
}
.panel-h-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.panel-note {
margin: 0;
font-size: var(--text-2xs);
line-height: 1.5;
color: var(--ink-faint);
}
/* Prize ladder rows. */
.pl-rows {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
.pl-row {
display: grid;
grid-template-columns: 1.5rem 1fr auto 2.4rem;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.45rem;
border-radius: var(--radius-md);
border: 1px solid transparent;
font-size: var(--text-md);
}
.pl-row.pl-filled {
background: var(--surface-2);
border-color: var(--stroke);
}
.pl-place {
font-size: var(--text-base);
line-height: 1;
text-align: center;
}
.pl-who {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--ink-dim);
}
.pl-row.pl-filled .pl-who {
color: var(--ink-bright);
font-weight: var(--weight-semibold);
}
.pl-amt {
font-family: var(--font-mono);
font-size: var(--text-sm);
font-weight: var(--weight-bold);
color: var(--warn);
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.pl-pct {
text-align: right;
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
font-variant-numeric: tabular-nums;
}
/* Rules panel. */
.rules-rows {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.rule-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.8rem;
font-size: var(--text-md);
}
.rule-k {
color: var(--ink-faint);
white-space: nowrap;
}
.rule-v {
color: var(--ink-bright);
font-weight: var(--weight-semibold);
text-align: right;
}
.rules-gates {
display: flex;
flex-direction: column;
gap: 0.4rem;
padding-top: 0.6rem;
border-top: 1px solid var(--stroke);
}
.rules-gates-h {
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ink-faint);
}
.gate-pills {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
}
.gate-pill {
font-family: var(--font-mono);
font-size: var(--text-2xs);
border: 1px solid var(--stroke);
border-radius: var(--radius-pill);
padding: 0.18rem 0.5rem;
color: var(--ink-dim);
white-space: nowrap;
}
/* Aggregate strip over the board. */
.agg-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
gap: 0.5rem 0.9rem;
border: 1px solid var(--stroke);
background: var(--surface-1);
border-radius: var(--radius-md);
padding: 0.7rem 0.9rem;
margin-bottom: var(--space-md);
}
.agg-cell {
display: flex;
flex-direction: column;
gap: 0.15rem;
min-width: 0;
}
.agg-k {
font-family: var(--font-mono);
font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--ink-faint);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.agg-v {
font-family: var(--font-mono);
font-size: var(--text-base);
font-weight: var(--weight-bold);
color: var(--ink-bright);
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.agg-v.pnl-pos {
color: var(--success);
}
.agg-v.pnl-neg {
color: var(--danger);
}
@media (prefers-reduced-motion: reduce) {
.wt-fill {
transition: none !important;
}
}