311 lines
6.6 KiB
CSS
311 lines
6.6 KiB
CSS
/* ── 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;
|
|
--primary: #4285F4;
|
|
}
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: 'Inter', -apple-system, sans-serif;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
/* ── Main Layout ──────────────────────────────────────────────── */
|
|
.main-logo {
|
|
position: absolute;
|
|
top: 32px;
|
|
left: 48px;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
letter-spacing: -1px;
|
|
color: var(--text);
|
|
text-decoration: none;
|
|
z-index: 10;
|
|
}
|
|
|
|
.main {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 64px 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 48px;
|
|
}
|
|
|
|
.page-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.page-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.page-title {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
letter-spacing: 2px;
|
|
color: var(--text-dim);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.back-link {
|
|
color: var(--text-dim);
|
|
text-decoration: none;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.back-link:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
/* ── Loading / Error ──────────────────────────────────────────── */
|
|
.loading, .error, .empty {
|
|
text-align: center;
|
|
padding: 64px 0;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
color: var(--text-muted);
|
|
font-size: 14px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.error { color: #ef4444; }
|
|
|
|
/* ── History Card ─────────────────────────────────────────────── */
|
|
.history-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 32px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.history-card__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 24px;
|
|
}
|
|
|
|
.history-card__prompt-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.history-card__prompter {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.history-card__prompt {
|
|
font-family: 'DM Serif Display', serif;
|
|
font-size: 32px;
|
|
line-height: 1.2;
|
|
color: var(--text);
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.history-card__meta {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 12px;
|
|
color: var(--text-dim);
|
|
text-align: right;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.history-card__showdown {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24px;
|
|
margin-top: 16px;
|
|
border-top: 1px solid var(--border);
|
|
padding-top: 24px;
|
|
}
|
|
|
|
.history-contestant {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
background: var(--surface-2);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.history-contestant--winner {
|
|
border-color: var(--border-light);
|
|
background: var(--bg);
|
|
box-shadow: inset 0 0 0 1px var(--border);
|
|
}
|
|
|
|
.history-contestant__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.history-contestant__winner-badge {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
padding: 2px 6px;
|
|
background: var(--text);
|
|
color: var(--bg);
|
|
border-radius: 4px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.history-contestant__answer {
|
|
font-family: 'DM Serif Display', serif;
|
|
font-size: 20px;
|
|
line-height: 1.3;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.history-contestant--winner .history-contestant__answer {
|
|
color: var(--text);
|
|
}
|
|
|
|
.history-contestant__votes {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: auto;
|
|
padding-top: 16px;
|
|
border-top: 1px dashed var(--border);
|
|
}
|
|
|
|
.history-contestant__score {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
}
|
|
|
|
.history-contestant__voters {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.voter-mini-logo {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* ── Viewer Votes ────────────────────────────────────────────── */
|
|
|
|
.history-contestant__viewer-votes {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding-top: 8px;
|
|
border-top: 1px dashed var(--border);
|
|
}
|
|
|
|
.history-contestant__viewer-icon {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.history-contestant__viewer-count {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ── Pagination ───────────────────────────────────────────────── */
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
.pagination__btn {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.pagination__btn:hover:not(:disabled) {
|
|
background: var(--surface-2);
|
|
border-color: var(--border-light);
|
|
}
|
|
|
|
.pagination__btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pagination__info {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 13px;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
/* ── Utility ──────────────────────────────────────────────────── */
|
|
.model-name {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-family: 'Inter', sans-serif;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.model-logo {
|
|
width: 16px;
|
|
height: 16px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.history-card__showdown {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|