snapkitty
agents
python
llm-twin-arena / styles.css
SNAPKITTYWEST's picture
push from SNAPKITTYWEST/llm-twin-arena
5e7af80 verified
Raw History Blame Contribute Delete
23.2 kB
:root {
color-scheme: dark;
--bg: #0a0a0f;
--panel: #11121a;
--panel-2: #171826;
--green: #00ff88;
--orange: #f97316;
--purple: #7c3aed;
--red: #ef4444;
--text: #f4f7fb;
--muted: #aeb7c8;
--line: #2a2d3a;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
line-height: 1.5;
padding-bottom: 64px;
}
a {
color: var(--green);
text-decoration: none;
}
code {
color: var(--green);
}
.shell {
width: min(1180px, calc(100% - 32px));
margin: 0 auto;
padding: 28px 0 48px;
}
.topline {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: flex-end;
border-bottom: 1px solid var(--line);
padding-bottom: 16px;
}
.hero {
padding: 52px 0 32px;
}
.lobby-hero {
min-height: 34vh;
display: flex;
flex-direction: column;
justify-content: center;
}
.eyebrow {
color: var(--orange);
font-size: 0.78rem;
text-transform: uppercase;
letter-spacing: 0;
margin: 0 0 10px;
}
h1,
h2 {
letter-spacing: 0;
line-height: 1.05;
margin: 0;
}
h1 {
font-size: clamp(2.6rem, 4rem, 4rem);
color: var(--green);
}
h2 {
font-size: 1.25rem;
}
.subtitle {
color: var(--muted);
font-size: 1.05rem;
max-width: 780px;
}
.actions,
.grid,
.mini-arch {
display: grid;
gap: 14px;
}
.actions {
grid-template-columns: repeat(auto-fit, minmax(170px, max-content));
margin-top: 24px;
}
.grid {
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
margin: 24px 0;
}
.three {
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card,
.panel {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
}
.card {
min-height: 250px;
padding: 22px;
display: flex;
flex-direction: column;
gap: 16px;
}
.card p {
color: var(--muted);
margin: 0;
}
.panel {
padding: 22px;
margin-top: 24px;
}
.revelation-panel {
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
padding: 34px 0;
margin: 28px 0;
}
.revelation-panel > div:first-child {
margin-bottom: 20px;
}
.revelation-panel h2 {
color: var(--green);
font-size: 1.7rem;
}
.revelation-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 14px;
}
.flow-line {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
margin-top: auto;
}
.flow-line span {
border: 1px solid var(--purple);
border-radius: 6px;
min-height: 34px;
display: grid;
place-items: center;
color: var(--text);
background: rgba(124, 58, 237, 0.12);
font-size: 0.8rem;
}
.button {
appearance: none;
border: 1px solid var(--green);
background: rgba(0, 255, 136, 0.08);
color: var(--green);
border-radius: 6px;
min-height: 44px;
padding: 10px 14px;
cursor: pointer;
font: inherit;
display: inline-flex;
align-items: center;
justify-content: center;
}
.button:hover {
border-color: var(--orange);
color: var(--orange);
}
.mini-arch {
grid-template-columns: repeat(4, 1fr);
margin-top: auto;
}
.mini-arch span {
border: 1px solid var(--purple);
color: var(--text);
min-height: 42px;
display: grid;
place-items: center;
border-radius: 6px;
background: rgba(124, 58, 237, 0.12);
}
.architecture {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel-2);
padding: 16px;
}
.architecture svg {
width: 100%;
height: auto;
display: block;
}
.architecture rect {
fill: rgba(0, 255, 136, 0.08);
stroke: var(--green);
stroke-width: 2;
rx: 8;
}
.architecture text {
fill: var(--text);
font-size: 16px;
text-anchor: middle;
dominant-baseline: middle;
}
.architecture path {
stroke: var(--orange);
stroke-width: 3;
}
.log {
white-space: pre-wrap;
overflow: auto;
max-height: 360px;
background: #07080c;
border: 1px solid var(--line);
border-radius: 8px;
padding: 16px;
}
.ollama-box {
display: grid;
gap: 16px;
}
.ada-box,
.shadow-box {
display: grid;
gap: 16px;
}
.box-head {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: start;
}
.runtime-pill {
border: 1px solid var(--orange);
border-radius: 999px;
color: var(--orange);
padding: 5px 10px;
font-size: 0.78rem;
text-transform: uppercase;
}
.runtime-pill[data-state="online"] {
border-color: var(--green);
color: var(--green);
}
.runtime-pill[data-state="complete"] {
border-color: var(--purple);
color: var(--purple);
}
.runtime-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 14px;
}
label {
display: grid;
gap: 8px;
color: var(--muted);
}
input,
textarea {
width: 100%;
border: 1px solid var(--line);
border-radius: 6px;
background: #07080c;
color: var(--text);
font: inherit;
padding: 12px;
}
textarea {
min-height: 138px;
resize: vertical;
}
.challenge-strip {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.mini-button {
min-height: 36px;
padding: 8px 10px;
font-size: 0.82rem;
}
.live-output {
min-height: 240px;
}
.seal-line {
color: var(--muted);
margin: 0;
overflow-wrap: anywhere;
}
button:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.ticker {
position: fixed;
left: 0;
right: 0;
bottom: 0;
min-height: 44px;
display: flex;
align-items: center;
padding: 10px 18px;
background: #050609;
border-top: 1px solid var(--green);
color: var(--green);
font-size: 0.84rem;
z-index: 10;
gap: 14px;
overflow-x: auto;
white-space: nowrap;
}
.ticker span {
display: inline-flex;
gap: 6px;
align-items: center;
}
.ticker.pulse {
animation: wormPulse 360ms ease-out;
}
@keyframes wormPulse {
0% {
box-shadow: 0 -1px 0 var(--green), 0 0 0 rgba(0, 255, 136, 0);
}
50% {
box-shadow: 0 -1px 0 var(--green), 0 0 24px rgba(0, 255, 136, 0.35);
}
100% {
box-shadow: 0 -1px 0 var(--green), 0 0 0 rgba(0, 255, 136, 0);
}
}
@media (max-width: 720px) {
.shell {
width: min(100% - 20px, 1180px);
}
h1 {
font-size: 2.35rem;
}
.actions {
grid-template-columns: 1fr;
}
}
/* ── GAME LAYER ──────────────────────────────────────────────────────── */
/* Moving grid background */
body::after {
content: '';
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(0, 255, 136, 0.032) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 255, 136, 0.032) 1px, transparent 1px);
background-size: 52px 52px;
animation: bgDrift 22s linear infinite;
pointer-events: none;
z-index: 0;
}
@keyframes bgDrift {
from { background-position: 0 0; }
to { background-position: 52px 52px; }
}
/* CRT scanlines */
body::before {
content: '';
position: fixed;
inset: 0;
background: repeating-linear-gradient(
0deg,
transparent 0px, transparent 3px,
rgba(0, 0, 0, 0.07) 3px, rgba(0, 0, 0, 0.07) 4px
);
pointer-events: none;
z-index: 999;
}
.shell, .ticker { position: relative; z-index: 2; }
/* Card game hover */
.card { transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.card:hover {
border-color: rgba(0, 255, 136, 0.5);
box-shadow: 0 0 18px rgba(0, 255, 136, 0.1);
transform: translateY(-2px);
}
/* Architecture SVG β€” data flow animation */
.architecture path {
stroke-dasharray: 18 9;
animation: dataFlow 1.6s linear infinite;
}
.architecture rect { animation: rectGlow 3.5s ease-in-out infinite; }
@keyframes dataFlow {
from { stroke-dashoffset: 27; }
to { stroke-dashoffset: 0; }
}
@keyframes rectGlow {
0%, 100% { fill: rgba(0, 255, 136, 0.06); }
50% { fill: rgba(0, 255, 136, 0.16); }
}
/* Typing cursor on live output */
.live-output:not(:empty)::after {
content: 'β–‹';
color: var(--green);
animation: cursorBlink 1s step-end infinite;
margin-left: 1px;
}
@keyframes cursorBlink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
/* WORM seal burst */
.worm-seal-burst { animation: sealBurst 700ms ease-out forwards; }
@keyframes sealBurst {
0% { box-shadow: 0 0 0 rgba(0, 255, 136, 0); }
35% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.6), 0 0 60px rgba(0, 255, 136, 0.15); }
100% { box-shadow: 0 0 0 rgba(0, 255, 136, 0); }
}
/* ── AGENT BUILDER ───────────────────────────────────────────────────── */
.agent-builder { display: grid; gap: 22px; }
.agent-class-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
gap: 12px;
margin-top: 12px;
}
.agent-class-card {
border: 1px solid var(--line);
border-radius: 10px;
background: var(--panel-2);
padding: 18px 12px 14px;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
text-align: center;
transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
user-select: none;
}
.agent-class-card:hover {
border-color: var(--green);
box-shadow: 0 0 14px rgba(0, 255, 136, 0.15);
transform: translateY(-3px);
}
.agent-class-card.chosen {
border-color: var(--orange);
background: rgba(249, 115, 22, 0.07);
box-shadow: 0 0 22px rgba(249, 115, 22, 0.28);
}
.class-icon { font-size: 2rem; line-height: 1; }
.class-name { color: var(--green); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
.class-desc { color: var(--muted); font-size: 0.7rem; line-height: 1.4; }
.cap-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.cap-chip {
border: 1px solid var(--line);
border-radius: 999px;
padding: 6px 13px;
font: inherit;
font-size: 0.78rem;
background: var(--panel-2);
color: var(--muted);
cursor: pointer;
transition: all 0.18s;
user-select: none;
}
.cap-chip:hover { border-color: var(--purple); color: var(--text); }
.cap-chip.on {
border-color: var(--green);
background: rgba(0, 255, 136, 0.09);
color: var(--green);
box-shadow: 0 0 8px rgba(0, 255, 136, 0.18);
}
.cap-chip.blocked-on {
border-color: var(--red);
background: rgba(239, 68, 68, 0.08);
color: var(--red);
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat-row { display: grid; gap: 7px; }
.stat-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; }
.stat-track{ height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.stat-fill { height: 100%; border-radius: 999px; transition: width 0.9s cubic-bezier(.34,1.56,.64,1); }
.stat-fill.g { background: var(--green); }
.stat-fill.o { background: var(--orange); }
.stat-fill.p { background: var(--purple); }
.boot-log {
font: inherit;
font-size: 0.8rem;
color: var(--green);
background: #020305;
border: 1px solid var(--green);
border-radius: 8px;
padding: 16px;
min-height: 160px;
max-height: 280px;
overflow-y: auto;
white-space: pre;
box-shadow: inset 0 0 24px rgba(0, 255, 136, 0.04), 0 0 18px rgba(0, 255, 136, 0.09);
}
.agent-profile-card {
border: 1px solid var(--orange);
border-radius: 10px;
background: rgba(249, 115, 22, 0.04);
padding: 20px;
display: grid;
gap: 14px;
animation: profilePop 0.45s cubic-bezier(.34,1.56,.64,1);
}
@keyframes profilePop {
from { opacity: 0; transform: scale(0.92) translateY(10px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.agent-lvl { font-size: 0.72rem; color: var(--orange); text-transform: uppercase; letter-spacing: 2px; }
.xp-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.xp-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--orange)); width: 0; transition: width 2s cubic-bezier(.34,1.56,.64,1); }
/* ── ARENA BATTLE ────────────────────────────────────────────────────── */
.battle-panel { display: grid; gap: 18px; }
.battle-streams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .battle-streams { grid-template-columns: 1fr; } }
.battle-stream { display: grid; gap: 10px; }
.battle-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 14px;
background: var(--panel-2);
border-radius: 7px;
border: 1px solid var(--line);
}
.battle-name { color: var(--green); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.battle-tps { color: var(--orange); font-size: 0.75rem; }
.battle-output { min-height: 200px; }
.verdict-panel {
border: 1px solid var(--purple);
border-radius: 8px;
background: rgba(124, 58, 237, 0.07);
padding: 16px;
display: grid;
gap: 10px;
animation: profilePop 0.4s ease-out;
}
.verdict-text { color: var(--purple); font-size: 1rem; }
/* ── WORM CHAIN VIEWER ───────────────────────────────────────────────── */
.worm-viewer { display: grid; gap: 14px; }
.worm-nodes {
display: flex;
flex-direction: column;
gap: 0;
max-height: 320px;
overflow-y: auto;
border: 1px solid var(--line);
border-radius: 8px;
background: #030405;
padding: 12px 12px 12px 36px;
}
.worm-node {
position: relative;
padding: 8px 0 8px 16px;
border-left: 2px solid rgba(0, 255, 136, 0.18);
animation: nodeIn 0.25s ease-out;
}
@keyframes nodeIn {
from { opacity: 0; transform: translateX(-6px); }
to { opacity: 1; transform: translateX(0); }
}
.worm-node::before {
content: '';
position: absolute;
left: -7px; top: 12px;
width: 12px; height: 12px;
border-radius: 50%;
background: var(--green);
border: 2px solid #030405;
box-shadow: 0 0 8px rgba(0, 255, 136, 0.7);
}
.worm-node.tick-event::before { background: var(--orange); box-shadow: 0 0 6px rgba(249,115,22,0.5); }
.worm-node.page-event::before { background: var(--purple); box-shadow: 0 0 6px rgba(124,58,237,0.5); }
.node-type { color: var(--green); font-size: 0.78rem; }
.node-seal { color: var(--muted); font-size: 0.68rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-meta { display: flex; gap: 12px; margin-top: 2px; }
.node-tick { color: var(--orange); font-size: 0.7rem; }
.node-time { color: rgba(174,183,200,0.4); font-size: 0.65rem; }
/* ── TWIN BUILDER WIZARD ─────────────────────────────────────────────── */
.twin-wizard-overlay {
position: fixed;
inset: 0;
background: rgba(10, 10, 15, 0.96);
z-index: 1100;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.twin-wizard-card {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 16px;
padding: 36px;
width: min(540px, 100%);
display: grid;
gap: 26px;
box-shadow: 0 0 60px rgba(0, 255, 136, 0.08);
animation: cardSlideUp 0.35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes cardSlideUp {
from { opacity: 0; transform: translateY(24px) scale(0.96); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.wizard-progress { display: flex; gap: 8px; justify-content: center; }
.wizard-dot {
width: 10px; height: 10px;
border-radius: 50%;
background: var(--line);
transition: background 0.3s, box-shadow 0.3s;
}
.wizard-dot.active { background: var(--green); box-shadow: 0 0 8px rgba(0,255,136,0.5); }
.wizard-dot.done { background: var(--orange); }
.wizard-stage { display: grid; gap: 18px; min-height: 280px; }
.wizard-title { font-size: 1.5rem; color: var(--green); margin: 0; line-height: 1.1; }
.wizard-sub { color: var(--muted); margin: 0; font-size: 0.9rem; line-height: 1.5; }
.wizard-nav { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
/* Avatar upload */
.avatar-upload-zone {
display: flex;
flex-direction: column;
align-items: center;
gap: 14px;
cursor: pointer;
}
.avatar-circle {
width: 130px; height: 130px;
border-radius: 50%;
border: 2px dashed var(--green);
background: var(--panel-2);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transition: border-color 0.2s, box-shadow 0.2s;
}
.avatar-circle:hover, .avatar-circle.drag-over {
border-color: var(--orange);
box-shadow: 0 0 20px rgba(249,115,22,0.2);
border-style: solid;
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-plus { font-size: 2.8rem; color: var(--green); line-height: 1; user-select: none; }
.avatar-upload-hint { color: var(--muted); font-size: 0.8rem; text-align: center; }
/* Wizard model selection */
.wizard-model-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
gap: 10px;
}
.wizard-model-card {
border: 1px solid var(--line);
border-radius: 8px;
background: var(--panel-2);
padding: 12px 8px;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
text-align: center;
transition: border-color 0.2s, box-shadow 0.2s;
user-select: none;
}
.wizard-model-card:hover { border-color: var(--green); }
.wizard-model-card.chosen {
border-color: var(--orange);
background: rgba(249,115,22,0.07);
box-shadow: 0 0 14px rgba(249,115,22,0.2);
}
.model-tag { color: var(--green); font-weight: bold; text-transform: uppercase; font-size: 0.8rem; }
.model-sub { color: var(--muted); font-size: 0.68rem; }
/* ── TWIN CHAT SECTION ───────────────────────────────────────────────── */
.twin-chat-section {
background: var(--panel);
border: 1px solid var(--green);
border-radius: 12px;
box-shadow: 0 0 32px rgba(0,255,136,0.07);
padding: 22px;
margin-bottom: 28px;
display: grid;
gap: 0;
}
.twin-chat-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 10px;
padding-bottom: 16px;
border-bottom: 1px solid var(--line);
margin-bottom: 18px;
}
.twin-chat-layout {
display: grid;
grid-template-columns: 160px 1fr;
gap: 20px;
align-items: start;
}
@media (max-width: 600px) { .twin-chat-layout { grid-template-columns: 1fr; } }
.twin-avatar-panel {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
position: sticky;
top: 20px;
}
.chat-avatar-img {
width: 110px; height: 110px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--green);
display: block;
transition: box-shadow 0.3s;
}
.chat-avatar-img.speaking {
animation: avatarPulse 0.5s ease-in-out infinite alternate;
}
.chat-avatar-no-img {
width: 110px; height: 110px;
border-radius: 50%;
border: 3px solid var(--green);
background: var(--panel-2);
display: flex;
align-items: center;
justify-content: center;
font-size: 2.8rem;
}
@keyframes avatarPulse {
from { box-shadow: 0 0 0 3px rgba(0,255,136,0.5), 0 0 12px rgba(0,255,136,0.3); }
to { box-shadow: 0 0 0 7px rgba(0,255,136,0.8), 0 0 32px rgba(0,255,136,0.5); }
}
.twin-name-tag { color: var(--green); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; text-align: center; }
.twin-model-tag { color: var(--muted); font-size: 0.7rem; text-align: center; }
/* Audio waveform */
.wave-bars { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.wave-bar { width: 4px; border-radius: 2px; background: var(--green); opacity: 0.2; height: 4px; transition: height 0.15s, opacity 0.15s; }
.wave-bars.active .wave-bar { opacity: 1; }
.wave-bars.active .wave-bar:nth-child(1) { animation: waveAnim 0.50s ease-in-out infinite alternate; }
.wave-bars.active .wave-bar:nth-child(2) { animation: waveAnim 0.70s ease-in-out infinite alternate 0.10s; }
.wave-bars.active .wave-bar:nth-child(3) { animation: waveAnim 0.60s ease-in-out infinite alternate 0.05s; }
.wave-bars.active .wave-bar:nth-child(4) { animation: waveAnim 0.80s ease-in-out infinite alternate 0.15s; }
.wave-bars.active .wave-bar:nth-child(5) { animation: waveAnim 0.55s ease-in-out infinite alternate 0.08s; }
.wave-bars.active .wave-bar:nth-child(6) { animation: waveAnim 0.65s ease-in-out infinite alternate 0.20s; }
.wave-bars.active .wave-bar:nth-child(7) { animation: waveAnim 0.75s ease-in-out infinite alternate 0.03s; }
@keyframes waveAnim {
from { height: 3px; }
to { height: 20px; }
}
/* Chat messages */
.twin-messages-panel { display: flex; flex-direction: column; gap: 12px; }
.chat-messages {
min-height: 240px;
max-height: 380px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 10px;
padding: 4px 0;
}
.chat-bubble {
max-width: 84%;
padding: 11px 15px;
border-radius: 14px;
font-size: 0.88rem;
line-height: 1.55;
white-space: pre-wrap;
animation: bubbleIn 0.25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes bubbleIn {
from { opacity: 0; transform: scale(0.92) translateY(6px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-bubble.user {
background: rgba(249,115,22,0.1);
border: 1px solid rgba(249,115,22,0.25);
color: var(--text);
align-self: flex-end;
border-bottom-right-radius: 4px;
}
.chat-bubble.twin {
background: rgba(0,255,136,0.07);
border: 1px solid rgba(0,255,136,0.18);
color: var(--text);
align-self: flex-start;
border-bottom-left-radius: 4px;
}
.chat-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.chat-input-row input { margin: 0; }
/* Simplicity mode β€” hides tech panels so only twin is visible */
body.simple-mode .panel:not(.twin-chat-section) { display: none !important; }
body.simple-mode .architecture, body.simple-mode .grid.three,
body.simple-mode #twin-seal, body.simple-mode .ticker { display: none !important; }