Files
argument.es/frontend.css
2026-02-20 02:49:19 -08:00

658 lines
14 KiB
CSS

/* ── Reset & Base ─────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
--bg: #050505;
--surface: #0a0a0a;
--surface-2: #141414;
--border: #222222;
--border-light: #333333;
--text: #ffffff;
--text-dim: #a1a1a1;
--text-muted: #555555;
}
body {
background: var(--bg);
color: var(--text);
font-family: 'Inter', -apple-system, sans-serif;
font-size: 15px;
line-height: 1.5;
height: 100vh;
overflow: hidden;
-webkit-font-smoothing: antialiased;
}
/* ── App Layout ───────────────────────────────────────────────── */
.app {
height: 100vh;
display: flex;
flex-direction: column;
}
/* ── Header ───────────────────────────────────────────────────── */
.header {
padding: 24px 48px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid var(--border);
background: var(--bg);
flex-shrink: 0;
}
.header__logo {
font-family: 'JetBrains Mono', monospace;
font-size: 24px;
font-weight: 700;
letter-spacing: -1px;
color: var(--text);
}
.header__tagline {
color: var(--text-muted);
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
}
/* ── Layout Grid ──────────────────────────────────────────────── */
.layout {
flex: 1;
display: flex;
overflow: hidden;
}
.main {
flex: 1;
overflow: hidden;
padding: 32px 64px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar {
width: 320px;
border-left: 1px solid var(--border);
background: var(--surface);
display: flex;
flex-direction: column;
overflow: hidden;
flex-shrink: 0;
}
.sidebar__section {
display: flex;
flex-direction: column;
}
.sidebar__section--standings {
flex: 1;
min-height: 0;
}
.sidebar__section--link {
border-top: 1px solid var(--border);
padding: 24px 32px;
flex-shrink: 0;
}
.history-link {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
text-decoration: none;
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
font-weight: 700;
transition: all 0.2s;
}
.history-link:hover {
background: var(--border);
border-color: var(--border-light);
}
.sidebar__header {
font-family: 'JetBrains Mono', monospace;
font-size: 14px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
padding: 24px 32px 16px;
color: var(--text-dim);
}
.sidebar__list {
padding: 0 16px 16px;
display: flex;
flex-direction: column;
gap: 4px;
flex: 1;
overflow-y: auto;
}
.standing {
display: flex;
align-items: center;
gap: 16px;
padding: 12px 16px;
border-radius: 8px;
transition: background 0.2s;
}
.standing--active {
background: var(--surface-2);
}
.standing__rank {
width: 20px;
text-align: center;
font-family: 'JetBrains Mono', monospace;
font-weight: 700;
color: var(--text-muted);
font-size: 13px;
flex-shrink: 0;
}
.standing__info {
flex: 1;
min-width: 0;
}
.standing__name-row {
display: flex;
align-items: center;
gap: 8px;
}
.standing__name {
font-weight: 600;
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: flex;
align-items: center;
gap: 8px;
}
.standing__role {
font-size: 12px;
flex-shrink: 0;
}
.standing__bar-row {
display: flex;
align-items: center;
gap: 12px;
margin-top: 6px;
}
.standing__bar {
flex: 1;
height: 4px;
background: var(--border);
border-radius: 2px;
overflow: hidden;
}
.standing__bar-fill {
height: 100%;
border-radius: 2px;
transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.standing__score {
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
font-weight: 700;
color: var(--text-dim);
min-width: 32px;
text-align: right;
}
.sidebar__legend {
padding: 16px 32px;
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: 12px;
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
color: var(--text-muted);
}
/* ── Arena ─────────────────────────────────────────────────────── */
.arena {
width: 100%;
max-width: 1100px;
display: flex;
flex-direction: column;
max-height: 100%;
}
.arena__header-row {
display: flex;
justify-content: space-between;
align-items: baseline;
margin-bottom: 32px;
padding-bottom: 16px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.arena__round-badge {
font-family: 'JetBrains Mono', monospace;
font-size: 14px;
font-weight: 700;
color: var(--text);
letter-spacing: 1px;
}
.arena__round-of {
color: var(--text-muted);
}
.arena__phase {
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--text-dim);
}
/* ── Prompt Card ──────────────────────────────────────────────── */
.prompt-card {
margin-bottom: 48px;
flex-shrink: 0;
}
.prompt-card__by {
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
color: var(--text-muted);
margin-bottom: 16px;
text-transform: uppercase;
letter-spacing: 1px;
display: flex;
align-items: center;
gap: 8px;
}
.prompt-card__text {
font-family: 'DM Serif Display', serif;
font-size: 48px;
line-height: 1.1;
color: var(--text);
max-width: 95%;
letter-spacing: -1px;
}
.prompt-card__text--loading {
color: var(--text-muted);
}
/* ── Showdown ─────────────────────────────────────────────────── */
.showdown {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
margin-bottom: 32px;
flex: 1;
min-height: 0;
}
.contestant {
background: var(--bg);
display: flex;
flex-direction: column;
position: relative;
border-top: 4px solid var(--border);
padding-top: 24px;
overflow: hidden;
}
.contestant__header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24px;
padding-bottom: 16px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.contestant__name {
font-family: 'Inter', sans-serif;
font-weight: 600;
font-size: 18px;
display: flex;
align-items: center;
gap: 12px;
}
.contestant__winner-badge {
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
font-weight: 700;
padding: 4px 8px;
background: var(--text);
color: var(--bg);
border-radius: 4px;
letter-spacing: 1px;
}
.contestant__answer {
flex: 1;
overflow-y: auto;
min-height: 120px;
}
.contestant__text {
font-family: 'DM Serif Display', serif;
font-size: 28px;
line-height: 1.3;
color: var(--text-dim);
letter-spacing: -0.5px;
}
.contestant--winner .contestant__text {
color: var(--text);
}
.contestant__thinking {
color: var(--text-muted);
font-family: 'DM Serif Display', serif;
font-size: 28px;
}
.contestant__error {
color: #ef4444;
font-family: 'JetBrains Mono', monospace;
font-size: 14px;
}
/* ── Votes within Contestant ──────────────────────────────────── */
.contestant__votes-container {
margin-top: 24px;
display: flex;
flex-direction: column;
gap: 16px;
flex-shrink: 0;
}
.vote-bar {
height: 2px;
background: var(--border);
width: 100%;
}
.vote-bar__fill {
height: 100%;
transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.vote-bar__label {
display: flex;
justify-content: space-between;
margin-top: 12px;
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
color: var(--text-dim);
}
.vote-bar__count {
font-weight: 700;
color: var(--text);
font-size: 18px;
}
.contestant__voters {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.voter-badge {
display: inline-flex;
align-items: center;
gap: 6px;
background: var(--surface-2);
border: 1px solid var(--border);
padding: 6px 10px;
border-radius: 6px;
font-size: 12px;
font-family: 'Inter', sans-serif;
font-weight: 500;
}
.voter-badge--pending {
opacity: 0.5;
border-style: dashed;
}
.voter-badge--error {
opacity: 0.5;
color: var(--text-muted);
}
.pending-votes {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
margin-top: 16px;
padding-top: 16px;
border-top: 1px solid var(--border);
flex-shrink: 0;
}
/* ── Round Result (Tie) ───────────────────────────────────────── */
.round-result {
text-align: center;
font-family: 'JetBrains Mono', monospace;
font-size: 16px;
font-weight: 700;
letter-spacing: 2px;
padding: 24px;
color: var(--text-dim);
border: 1px solid var(--border);
border-radius: 8px;
margin-top: 24px;
flex-shrink: 0;
}
/* ── Waiting State ────────────────────────────────────────────── */
.arena-waiting {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
font-family: 'DM Serif Display', serif;
color: var(--text-muted);
font-size: 48px;
opacity: 0.5;
padding: 64px 0;
}
/* ── Game Over ────────────────────────────────────────────────── */
.game-over {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 64px 0;
}
.game-over__title {
font-family: 'JetBrains Mono', monospace;
font-size: 24px;
font-weight: 700;
letter-spacing: 4px;
color: var(--text-muted);
margin-bottom: 48px;
}
.game-over__champion {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
}
.game-over__crown {
font-size: 48px;
}
.game-over__name {
font-family: 'DM Serif Display', serif;
font-size: 72px;
line-height: 1;
display: flex;
align-items: center;
gap: 24px;
}
.game-over__name img {
width: 64px;
height: 64px;
}
.game-over__subtitle {
font-family: 'Inter', sans-serif;
font-size: 16px;
color: var(--text-dim);
}
/* ── Connecting ───────────────────────────────────────────────── */
.connecting {
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 24px;
background: var(--bg);
}
.connecting__logo {
font-family: 'JetBrains Mono', monospace;
font-size: 48px;
font-weight: 700;
letter-spacing: -2px;
color: var(--text);
}
.connecting__text {
color: var(--text-muted);
font-family: 'JetBrains Mono', monospace;
font-size: 16px;
letter-spacing: 2px;
text-transform: uppercase;
}
/* ── Utility ──────────────────────────────────────────────────── */
.model-name {
display: inline-flex;
align-items: center;
gap: 8px;
font-weight: 600;
}
.model-logo {
width: 18px;
height: 18px;
object-fit: contain;
}
.timer {
color: var(--text-muted);
font-family: 'JetBrains Mono', monospace;
}
.dots span {
animation: dot-blink 1.4s infinite;
}
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-blink {
0%, 80%, 100% { opacity: 0.15; }
40% { opacity: 1; }
}
/* ── Next Round Toast ─────────────────────────────────────────── */
.next-round-toast {
position: fixed;
bottom: 32px;
left: 50%;
transform: translateX(-50%);
background: var(--surface-2);
border: 1px solid var(--border);
padding: 16px 32px;
border-radius: 32px;
font-family: 'JetBrains Mono', monospace;
font-size: 14px;
color: var(--text-dim);
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
z-index: 100;
animation: slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slide-up {
from { opacity: 0; transform: translate(-50%, 20px); }
to { opacity: 1; transform: translate(-50%, 0); }
}
/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }
/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
.layout { flex-direction: column; }
.sidebar {
width: 100%;
border-left: none;
border-top: 1px solid var(--border);
max-height: 300px;
overflow-y: auto;
}
.showdown { grid-template-columns: 1fr; gap: 32px; }
}