*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --bg-card: #000000;
    --bg-card-hover: #000000;
    --border: #000000;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a0;
    --text-muted: #666666;
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.15);
    --danger: #ff4466;
    --warning: #ffaa00;
    --code-bg: #000000;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    width: 100%;
    max-width: 100%;
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

#web-canvas { display: none; /* animation disabled */ 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #000000;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: #9ca3af;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 3px;
}

nav a:hover {
    color: #d1d5db;
    background: rgba(0, 255, 136, 0.08);
}

nav a:active {
    color: #6b7280;
    background: rgba(0, 255, 136, 0.15);
    transform: scale(0.98);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.logo-icon { width: 32px; height: 32px; }

.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}
.live-badge.connected { color: var(--accent); border-color: var(--accent-dim); }
.live-badge.connected .live-dot {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
}

.hero-content {
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.hero h1 {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.hero .subtitle {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.hero .description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 3rem;
    max-width: none;
    line-height: 1.7;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.stat-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    margin: 0 auto;
}
.section h2 {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.architecture-diagram { display: flex; flex-direction: column; gap: 1.5rem; }
.arch-layer {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}
.arch-layer h3 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.arch-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.arch-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}
.arch-box:hover { border-color: var(--accent-dim); background: var(--bg-card-hover); }
.arch-box small { display: block; color: var(--text-muted); font-size: 0.75rem; margin-top: 0.25rem; }
.arch-box.highlight { border-color: var(--accent-dim); background: var(--accent-glow); }
.arch-connections {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 0;
}
.arch-connections span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border: 1px dashed var(--border);
    border-radius: 4px;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.component-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s;
}
.component-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.component-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1rem; }
.component-icon svg { width: 100%; height: 100%; }
.component-card h3 { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.component-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.component-card code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-dim);
    background: var(--code-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.protocol-spec {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.protocol-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.protocol-header h3 { font-family: var(--font-mono); font-size: 1rem; }
.badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--accent-dim);
}
.protocol-fields { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.field {
    display: grid;
    grid-template-columns: 140px 80px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(42, 42, 58, 0.5);
}
.field-name { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-primary); }
.field-type { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.field-value { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-dim); }
.message-types { padding: 1.5rem; border-top: 1px solid var(--border); }
.message-types h4 { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }
.type-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.type-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.type-item code { color: var(--accent); margin-right: 0.375rem; }

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
}
.status-indicator {
    width: 8px; height: 8px;
    border-radius: 50%;
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--text-muted);
}
.status-card.online .status-indicator {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}
.status-card.offline .status-indicator {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}
.status-card h3 { font-family: var(--font-mono); font-size: 0.875rem; margin-bottom: 0.5rem; }
.status-detail { font-size: 0.8rem; color: var(--accent-dim); margin-bottom: 0.25rem; }
.status-meta { font-size: 0.75rem; color: var(--text-muted); }

.metrics-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}
.metrics-panel h3 {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.metrics-ts {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}
.metric { display: flex; flex-direction: column; gap: 0.25rem; }
.metric-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fleet-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.fleet-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}
.fleet-panel.wide { grid-column: 1 / -1; }
.fleet-panel h3 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-empty {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.data-block {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.data-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.data-block h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.kv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
.kv-table th {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    text-align: left;
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid var(--border);
}
.kv-table td {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(42, 42, 58, 0.3);
}
.kv-key {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    white-space: nowrap;
}
.kv-val {
    font-family: var(--font-mono);
    color: var(--accent-dim);
    word-break: break-all;
}
.val-active { color: var(--accent); font-weight: 600; }
.val-inactive { color: var(--danger); }

.awareness-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.awareness-status {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 160px;
}
.awareness-status-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.awareness-status-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.awareness-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.awareness-metric {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s;
}
.awareness-metric:hover {
    border-color: var(--accent-dim);
}
.awareness-metric-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}
.awareness-metric-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.awareness-sub {
    margin-top: 1.5rem;
}
.awareness-sub h4 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tier-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.tier-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}
.tier-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.awareness-errors {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--danger);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--danger);
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.system-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}
.system-card h3 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.system-values { display: flex; flex-direction: column; gap: 0.5rem; }
.sys-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
}
.sys-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.sys-val {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-dim);
}
.sys-bar {
    margin-top: 0.75rem;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}
.sys-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid #000000;
    padding: 3rem 2rem;
    text-align: center;
    background: #000000;
    margin-top: 4rem;
}

.footer-content p:first-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gauges-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.gauge-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.gauge-card canvas {
    width: 100%;
    height: 120px;
}
.gauge-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.analytics-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}
.analytics-panel.wide { grid-column: 1 / -1; }
.analytics-panel h3 {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}
.a-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border);
}
.a-stat-value {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}
.a-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sparkline-wrap {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}
.sparkline-wrap.tall {
    min-height: 120px;
}
.sparkline-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}
.sparkline {
    width: 100%;
    height: 60px;
    display: block;
}
.sparkline-wrap.tall .sparkline {
    height: 100px;
}

.chart-canvas {
    width: 100%;
    height: 200px;
    display: block;
}

.process-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.proc-row {
    display: grid;
    grid-template-columns: 130px 60px 1fr 60px 40px;
    gap: 0.5rem;
    align-items: center;
    padding: 0.375rem 0;
    border-bottom: 1px solid rgba(42, 42, 58, 0.3);
    font-size: 0.8rem;
}
.proc-row:last-child { border-bottom: none; }
.proc-name {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 500;
}
.proc-pid {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}
.proc-bar-wrap {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}
.proc-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.proc-rss {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-dim);
    text-align: right;
}
.proc-cpu {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    nav { gap: 0.75rem; flex-wrap: wrap; }
    .stats-row { gap: 1.5rem; }
    .field { grid-template-columns: 1fr; gap: 0.25rem; }
    .arch-connections { flex-wrap: wrap; gap: 0.5rem; }
    .component-grid { grid-template-columns: 1fr; }
    .fleet-layout { grid-template-columns: 1fr; }
    .system-grid { grid-template-columns: 1fr; }
    .awareness-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .awareness-header { flex-direction: column; gap: 1rem; }
    .gauges-row { grid-template-columns: 1fr; }
    .analytics-grid { grid-template-columns: 1fr; }
    .proc-row { grid-template-columns: 100px 50px 1fr 50px 35px; font-size: 0.7rem; }
}

/* ============================================
   BROADCAST ROUTES MONITOR
   ============================================ */
.broadcast-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px 0;
}
@media (min-width: 768px) {
  .broadcast-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .broadcast-grid { grid-template-columns: repeat(5, 1fr); }
}
.route-card {
  background: #000000;
  border: 1px solid #000000;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.route-card:hover {
  box-shadow: 0 0 20px rgba(0,255,136,0.15);
  border-color: rgba(0,255,136,0.3);
}
.route-card.active { border-color: #00ff88; box-shadow: 0 0 12px rgba(0,255,136,0.2); }
.route-card .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  position: absolute; top: 12px; right: 12px;
}
.route-card .status-dot.online { background: #00ff88; box-shadow: 0 0 6px rgba(0,255,136,0.6); animation: pulse 2s infinite; }
.route-card .status-dot.offline { background: #ff4466; box-shadow: 0 0 6px rgba(255,68,102,0.6); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.route-name {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; font-size: 11px; letter-spacing: 1.5px;
  color: #8888a0; font-weight: 500;
}
.route-throughput {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 700; color: #00ff88; line-height: 1.2;
}
.route-throughput .unit { font-size: 13px; color: #8888a0; font-weight: 400; margin-left: 4px; }
.route-latency { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #8888a0; }
.route-messages { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #8888a0; }
.route-sparkline { width: 100%; height: 40px; margin-top: auto; border-radius: 4px; }

/* ============================================
   GENOME RACE LEADERBOARD
   ============================================ */
.leaderboard-container {
  background: #000000; border: 1px solid #000000; border-radius: 8px; padding: 30px; overflow: hidden;
}
.leaderboard-header {
  display: grid; grid-template-columns: 60px 2fr 3fr 1fr 1fr 80px; gap: 15px;
  padding: 15px 0; border-bottom: 2px solid #00ff8844;
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #00ff88;
  text-transform: uppercase; font-weight: bold;
}
.leaderboard-row {
  display: grid; grid-template-columns: 60px 2fr 3fr 1fr 1fr 80px; gap: 15px;
  padding: 18px 0; border-bottom: 1px solid #00ff8822; align-items: center;
  transition: background 0.2s;
}
.leaderboard-row:hover { background: #00ff8811; }
.leaderboard-row:last-child { border-bottom: none; }
.rank { font-family: 'JetBrains Mono', monospace; font-size: 1.2rem; font-weight: bold; text-align: center; }
.rank-1,.rank-2,.rank-3 { color: #ffd700; }
.rank-4,.rank-5,.rank-6 { color: #c0c0c0; }
.rank-7,.rank-8,.rank-9,.rank-10 { color: #cd7f32; }
.genome-hash { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #e8e8f0; }
.score-bar-container { position: relative; height: 24px; background: #000000; border-radius: 4px; overflow: hidden; }
.score-bar {
  height: 100%; background: linear-gradient(90deg, #00ff88, #00cc6a); border-radius: 4px;
  transition: width 1.5s ease-out; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: #000000; font-weight: bold;
}
.win-rate, .race-count { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: #e8e8f0; text-align: center; }
.trend-arrow { font-size: 1.2rem; text-align: center; }
.trend-up { color: #00ff88; }
.trend-down { color: #ff4444; }
.trend-stable { color: #888; }

/* ============================================
   AWARENESS EVENT TIMELINE
   ============================================ */
.timeline-container {
  background: #000000; border: 1px solid #000000; border-radius: 8px; padding: 30px; margin-bottom: 20px;
}
.timeline-scroll { overflow-x: auto; overflow-y: hidden; padding: 20px 0; }
.timeline-events { display: inline-flex; gap: 12px; padding: 0 10px; }
.timeline-event {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 100px;
  padding: 15px; background: #000000; border-radius: 6px; border: 1px solid #000000;
  transition: all 0.2s;
}
.timeline-event:hover { border-color: #00ff88; transform: scale(1.05); }
.tier-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: bold;
  padding: 4px 8px; border-radius: 3px; margin-bottom: 8px; text-transform: uppercase;
}
.tier-t1 { background: #ff4444; color: #fff; }
.tier-t2 { background: #ff8800; color: #fff; }
.tier-t3 { background: #00ff88; color: #000000; }
.event-class { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: #e8e8f0; margin-bottom: 5px; }
.event-timestamp { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: #e8e8f0; opacity: 0.6; }
.pie-chart-container { display: flex; justify-content: center; align-items: center; gap: 40px; }
.pie-legend { display: flex; flex-direction: column; gap: 15px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: #e8e8f0; }
.legend-color { width: 20px; height: 20px; border-radius: 3px; }

/* ============================================
   QUEEN COMMAND CONSOLE
   ============================================ */
.console-container { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 768px) { .console-container { grid-template-columns: 1fr; } }
.command-log {
  background: #000000; border: 1px solid #000000; border-radius: 8px;
  padding: 20px; max-height: 500px; overflow-y: auto;
}
.command-log h3 {
  font-family: 'JetBrains Mono', monospace; color: #00ff88;
  font-size: 1.1rem; margin-bottom: 20px; text-transform: uppercase;
}
.log-entry {
  display: grid; grid-template-columns: 120px 1fr 1fr 80px; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #000000;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
}
.log-entry:last-child { border-bottom: none; }
.log-timestamp { color: #e8e8f0; opacity: 0.6; }
.log-command { color: #00ff88; font-weight: bold; }
.log-target { color: #e8e8f0; }
.log-status { text-align: right; font-weight: bold; }
.status-sent { color: #00ff88; }
.status-ack { color: #4488ff; }
.status-timeout { color: #ff4444; }
.command-breakdown { background: #000000; border: 1px solid #000000; border-radius: 8px; padding: 20px; }
.command-breakdown h3 {
  font-family: 'JetBrains Mono', monospace; color: #00ff88;
  font-size: 1.1rem; margin-bottom: 20px; text-transform: uppercase;
}
.breakdown-bar { margin-bottom: 15px; }
.breakdown-label {
  display: flex; justify-content: space-between; margin-bottom: 5px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: #e8e8f0;
}
.breakdown-bar-bg { height: 20px; background: #000000; border-radius: 3px; overflow: hidden; }
.breakdown-bar-fill {
  height: 100%; background: linear-gradient(90deg, #00ff88, #00cc6a);
  border-radius: 3px; transition: width 1s ease-out;
}
.response-stats {
  background: #000000; border: 1px solid #000000; border-radius: 8px;
  padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.stat-box { text-align: center; }
.stat-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
  color: #e8e8f0; opacity: 0.7; margin-bottom: 8px; text-transform: uppercase;
}
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; color: #00ff88; font-weight: bold; }

/* ============================================
   FLEET TOPOLOGY MAP
   ============================================ */
.topology-container {
  position: relative; background: #000000; border: 1px solid #000000;
  border-radius: 8px; overflow: hidden; margin-bottom: 20px;
}
#topologyCanvas { width: 100%; height: 500px; display: block; }
.topology-legend {
  position: absolute; top: 15px; right: 15px; background: #000000cc;
  border: 1px solid #000000; border-radius: 6px; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.topology-legend .legend-item {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #8888a0;
}
.legend-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0;
}
.legend-line {
  width: 20px; height: 2px; display: inline-block; flex-shrink: 0;
}
.topology-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 768px) { .topology-stats { grid-template-columns: repeat(2, 1fr); } }
.topo-stat {
  background: #000000; border: 1px solid #000000; border-radius: 8px;
  padding: 16px; text-align: center;
}
.topo-stat-value {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem; font-weight: 700; color: #00ff88;
}
.topo-stat-label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: #8888a0; text-transform: uppercase; margin-top: 4px;
}

/* ============================================
   LIVE METRICS STREAM
   ============================================ */
.stream-ticker {
  display: flex; gap: 0; background: #000000; border: 1px solid #000000;
  border-radius: 8px; overflow: hidden; margin-bottom: 16px;
}
.ticker-item {
  flex: 1; padding: 12px 16px; border-right: 1px solid #000000;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ticker-item:last-child { border-right: none; }
.ticker-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: #8888a0; text-transform: uppercase; letter-spacing: 1px;
}
.ticker-value {
  font-family: 'JetBrains Mono', monospace; font-size: 1.2rem;
  font-weight: 700; color: #00ff88;
}
.stream-container {
  background: #000000; border: 1px solid #000000; border-radius: 8px;
  overflow: hidden; margin-bottom: 16px;
}
.stream-controls {
  display: flex; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #000000;
}
.stream-btn {
  background: #000000; border: 1px solid #000000; border-radius: 4px;
  color: #8888a0; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  padding: 4px 12px; cursor: pointer; text-transform: uppercase;
  transition: all 0.2s;
}
.stream-btn:hover { border-color: #00ff88; color: #00ff88; }
.stream-btn.active { background: #00ff8822; border-color: #00ff88; color: #00ff88; }
.stream-log {
  height: 300px; overflow-y: auto; padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.stream-entry {
  display: flex; gap: 12px; padding: 4px 0; border-bottom: 1px solid #000000;
  line-height: 1.6;
}
.stream-entry:last-child { border-bottom: none; }
.stream-time { color: #8888a0; min-width: 80px; flex-shrink: 0; }
.stream-type { min-width: 100px; flex-shrink: 0; font-weight: 600; }
.stream-type.info { color: #4488ff; }
.stream-type.success { color: #00ff88; }
.stream-type.warning { color: #ffaa00; }
.stream-type.error { color: #ff4466; }
.stream-msg { color: #e8e8f0; }
.stream-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .stream-charts { grid-template-columns: 1fr; } }
.stream-chart-wrap {
  background: #000000; border: 1px solid #000000; border-radius: 8px; padding: 16px;
}
.stream-chart-label {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: #8888a0; text-transform: uppercase; margin-bottom: 8px;
}
.stream-sparkline { width: 100%; height: 80px; display: block; }

/* ============================================
   PROTOCOL COMPRESSION DASHBOARD
   ============================================ */
.proto-grid {
    width: 100%;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px;
}
@media (max-width: 768px) { .proto-grid {
    width: 100%; grid-template-columns: 1fr; } }
.proto-card {
  background: #000000; border: 1px solid #000000; border-radius: 8px; padding: 24px;
}
.proto-card h3 {
  font-family: 'JetBrains Mono', monospace; color: #00ff88; font-size: 0.95rem;
  margin-bottom: 16px; text-transform: uppercase;
}
.proto-comparison {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 12px;
}
.proto-before, .proto-after { text-align: center; }
.proto-size {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 2rem; font-weight: 700;
}
.proto-before .proto-size { color: #ff4466; }
.proto-after .proto-size { color: #00ff88; }
.proto-label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: #8888a0; text-transform: uppercase;
}
.proto-arrow {
  font-size: 1.5rem; color: #8888a0;
}
.proto-savings {
  text-align: center; font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem; color: #00ff88; margin-bottom: 16px;
  padding: 6px 12px; background: #00ff8811; border-radius: 4px;
}
.proto-chart { width: 100%; height: 100px; display: block; }
.proto-throughput {
  background: #000000; border: 1px solid #000000; border-radius: 8px; padding: 24px;
}
.proto-throughput h3 {
  font-family: 'JetBrains Mono', monospace; color: #00ff88; font-size: 0.95rem;
  margin-bottom: 16px; text-transform: uppercase;
}
.proto-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px;
}
@media (max-width: 768px) { .proto-stats-row { grid-template-columns: repeat(2, 1fr); } }
.proto-stat { text-align: center; }
.proto-stat-value {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem; font-weight: 700; color: #00ff88;
}
.proto-stat-label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; color: #8888a0; text-transform: uppercase; margin-top: 4px;
}
.proto-wide-chart { width: 100%; height: 120px; display: block; }

/* === ENHANCEMENT: Animated gradients, export buttons, radar === */
.proto-export-btn {
  background: #000000; border: 1px solid #00ff8844; border-radius: 4px;
  color: #00ff88; font-family: monospace; font-size: 10px; padding: 4px 10px;
  cursor: pointer; margin-top: 8px; text-transform: uppercase; transition: all 0.2s;
}
.proto-export-btn:hover { background: #00ff8822; border-color: #00ff88; }
.proto-wide-section {
  background: #000000; border: 1px solid #000000; border-radius: 8px;
  padding: 24px; margin-top: 20px;
}
.proto-wide-section h3 {
  font-family: monospace; color: #00ff88; font-size: 0.95rem;
  margin-bottom: 16px; text-transform: uppercase;
}

/* Animated glow for active route cards */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0,255,136,0.2); }
  50% { box-shadow: 0 0 20px rgba(0,255,136,0.4), 0 0 40px rgba(0,255,136,0.1); }
}
.route-card.active { animation: glowPulse 3s ease-in-out infinite; }

/* Gradient text for leaderboard top 3 */
.rank-1 { text-shadow: 0 0 10px rgba(255,215,0,0.5); }

/* Stream entry fade-in */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.stream-entry { animation: fadeSlideIn 0.3s ease-out; }

/* Topology canvas glow */
.topology-container { box-shadow: inset 0 0 60px rgba(0,255,136,0.03); }

/* Ticker value pulse on change */
@keyframes tickerPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: #fff; }
  100% { transform: scale(1); }
}
.ticker-value.changed { animation: tickerPulse 0.4s ease-out; }

/* Protocol card hover lift */
.proto-card { transition: transform 0.3s, box-shadow 0.3s; }
.proto-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,255,136,0.1); }

/* Score bar shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.score-bar {
  background-image: none;
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  background-color: #00ff88;
}

/* Timeline event glow on hover */
.timeline-event { transition: all 0.3s; }
.timeline-event:hover { box-shadow: 0 0 15px rgba(0,255,136,0.3); }

/* === ENHANCED ANIMATIONS === */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.4); opacity: 0; }
}

@keyframes dataFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.metric-value-enhanced {
    background: linear-gradient(90deg, #00ff88, #00cc6a, #00ff88);
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-float {
    animation: float 6s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.data-flow-bg {
    background: linear-gradient(90deg, 
        rgba(0, 255, 136, 0.05) 0%, 
        rgba(0, 255, 136, 0.1) 50%, 
        rgba(0, 255, 136, 0.05) 100%);
    background-size: 200% 100%;
    animation: dataFlow 20s linear infinite;
}

/* Enhanced card hover effects */
.system-card:hover, .route-card:hover, .awareness-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.2), 
                0 0 40px rgba(0, 255, 136, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glowing borders on active elements */
.status-card.online::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00cc6a, #00ff88);
    border-radius: inherit;
    opacity: 0.3;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    background-size: 200% auto;
}

/* ===== BOT PERFORMANCE MATRIX ===== */
.bot-perf-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.bot-perf-card {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    border: 1px solid #00ff88;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}
.bot-perf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,255,136,0.15);
}
.bot-perf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.bot-perf-name {
    font-size: 14px;
    font-weight: 700;
    color: #e0e0ff;
    font-family: monospace;
}
.bot-perf-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.bot-perf-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.bot-perf-stat {
    display: flex;
    flex-direction: column;
}
.bot-perf-stat-val {
    font-size: 13px;
    font-weight: 600;
    color: #00ccff;
    font-family: monospace;
}
.bot-perf-stat-lbl {
    font-size: 9px;
    color: #666680;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bot-perf-quality {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.bot-perf-quality-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}
.bot-perf-spark {
    width: 100%;
    height: 40px;
    border-radius: 4px;
}
.bot-perf-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}
.bot-perf-chart-card {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    border: 1px solid #000000;
    border-radius: 12px;
    padding: 16px;
}
.bot-perf-chart-card h3 {
    font-size: 12px;
    color: #8888a0;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-subtitle {
    font-size: 12px;
    color: #666680;
    margin-top: -8px;
    margin-bottom: 16px;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== DEPLOY HEALTH ===== */
.deploy-health-grid { display:flex; gap:12px; margin-bottom:12px; }
.dh-stat { display:flex; flex-direction:column; align-items:center; flex:1; }
.dh-val { font-size:18px; font-weight:700; color:#00ff88; font-family:monospace; }
.dh-lbl { font-size:9px; color:#666680; text-transform:uppercase; }
.dh-rate { color:#ffd700; }

/* ===== LOSER REPORT ===== */
.loser-report-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:16px; }
.loser-stat { display:flex; flex-direction:column; align-items:center; background:#000000; border:1px solid #000000; border-radius:8px; padding:12px; }
.loser-val { font-size:20px; font-weight:700; color:#ff6688; font-family:monospace; }
.loser-lbl { font-size:9px; color:#666680; text-transform:uppercase; margin-top:4px; }

/* ===== INFRASTRUCTURE HEALTH ===== */
.infra-grid {
    width: 100%; display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.infra-card { background:linear-gradient(135deg,#000000 0%,#000000 100%); border:1px solid #000000; border-radius:12px; padding:16px; }
.infra-card h4 { font-size:11px; color:#8888a0; text-transform:uppercase; letter-spacing:1px; margin-bottom:12px; }
.infra-row { display:flex; justify-content:space-between; align-items:center; padding:4px 0; border-bottom:1px solid #000000; }
.infra-key { font-size:10px; color:#666680; }
.infra-val { font-size:11px; color:#00ccff; font-family:monospace; font-weight:600; }
.tier-promo { color:#00ff88 !important; }
.tier-demo { color:#ff4466 !important; }

/* ===== SERVICE PROCESSES ===== */
.service-proc-list { max-height:200px; overflow-y:auto; }
.svc-proc-row { display:grid; grid-template-columns:80px 50px 1fr 40px; align-items:center; gap:6px; padding:3px 0; border-bottom:1px solid #000000; }
.svc-proc-name { font-size:9px; color:#e0e0ff; font-family:monospace; overflow:hidden; text-overflow:ellipsis; }
.svc-proc-mem { font-size:9px; color:#00ccff; font-family:monospace; text-align:right; }
.svc-proc-bar-bg { height:6px; background:#000000; border-radius:3px; overflow:hidden; }
.svc-proc-bar { height:100%; border-radius:3px; transition:width 0.5s ease; }
.svc-proc-pct { font-size:8px; color:#666680; text-align:right; }

/* ===== FINAL VIZ: Redis replication + verified binaries highlight ===== */
.redis-repl {
    color: #00ff88;
    font-weight: 700;
}
.redis-verified {
    color: #00d4ff;
    font-weight: 700;
}

/* ===== WINNER GENOME DASHBOARD ===== */
.winner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.winner-header h2 {
    margin: 0;
    font-size: 1.3em;
    color: #00ff88;
    text-shadow: 0 0 12px #00ff8844;
}
.winner-summary-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.winner-stat-pill {
    background: #000000;
    border: 1px solid #000000;
    border-radius: 20px;
    padding: 6px 14px;
    font: 600 12px monospace;
    color: #aaa;
}
.winner-stat-pill span {
    color: #fff;
    font-weight: 700;
}
.winner-stat-pill.gold { border-color: #ffd70044; }
.winner-stat-pill.gold span { color: #ffd700; }
.winner-stat-pill.cyan { border-color: #00d4ff44; }
.winner-stat-pill.cyan span { color: #00d4ff; }
.winner-stat-pill.green { border-color: #00ff8844; }
.winner-stat-pill.green span { color: #00ff88; }
.winner-stat-pill.purple { border-color: #aa66ff44; }
.winner-stat-pill.purple span { color: #aa66ff; }

.winner-genome-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.winner-card {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    border: 1px solid #000000;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.winner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px #00ff8811;
}
.winner-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.winner-tier-badge {
    font: 700 11px monospace;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.winner-status {
    font: 600 10px monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.winner-gen {
    font: 600 10px monospace;
    color: #888;
}
.winner-hash {
    font: 500 11px monospace;
    color: #666;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.winner-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.winner-metric {
    text-align: center;
}
.wm-val {
    display: block;
    font: 700 14px monospace;
}
.wm-label {
    display: block;
    font: 400 9px monospace;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.winner-mut-summary {
    display: flex;
    justify-content: space-between;
    font: 500 10px monospace;
    color: #888;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid #000000;
}
.wms-count { color: #ffd700; }
.wms-trend { color: #00ff88; }
.winner-spark {
    width: 100%;
    height: 40px;
    display: block;
}
.winner-comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.winner-chart-box {
    background: #000000;
    border: 1px solid #000000;
    border-radius: 12px;
    padding: 16px;
}
.winner-chart-box h3 {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    color: #aaa;
}

/* ===== MUTATION TIMELINE ===== */
.mutation-timeline-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}
.mutation-row {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #000000;
    animation: fadeSlideIn 0.3s ease both;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
.mutation-timeline-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 32px;
}
.mutation-node {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mutation-icon {
    font-size: 13px;
    color: #000000;
    font-weight: 700;
}
.mutation-content {
    flex: 1;
}
.mutation-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.mutation-type {
    font: 700 11px monospace;
    letter-spacing: 0.5px;
}
.mutation-session {
    font: 600 10px monospace;
    color: #888;
    background: #000000;
    padding: 1px 6px;
    border-radius: 3px;
}
.mutation-delta {
    font: 700 12px monospace;
}
.mutation-gene {
    font: 500 10px monospace;
    color: #666;
}
.mutation-desc {
    font: 400 11px monospace;
    color: #999;
    margin-bottom: 4px;
}
.mutation-genome-ref {
    font: 500 10px monospace;
}
.mgr-tier {
    color: #ffd700;
    font-weight: 700;
}
.mgr-hash {
    color: #555;
}

@media (max-width: 768px) {
    .winner-comparison-row { grid-template-columns: 1fr; }
    .winner-genome-grid {
    width: 100%; grid-template-columns: 1fr; }
    .winner-header { flex-direction: column; align-items: flex-start; }
}

/* ===== SWAP BAR ===== */
#swap-bar {
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ===== MODERN FULLY ADAPTIVE DESIGN SYSTEM ===== */

/* CSS Custom Properties for responsive scaling */
:root {
    /* Fluid typography scale using clamp() */
    --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.85rem);
    --text-sm: clamp(0.8rem, 0.75rem + 0.3vw, 0.95rem);
    --text-base: clamp(0.9rem, 0.85rem + 0.35vw, 1.05rem);
    --text-lg: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
    --text-xl: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
    --text-3xl: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem);
    
    /* Fluid spacing */
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 0.8rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    
    /* Container widths */
    --container-sm: min(100% - 2rem, 640px);
    --container-md: 100%;
    --container-lg: 100%;
    --container-xl: 100%;
    
    /* Grid gaps */
    --grid-gap: clamp(0.5rem, 0.4rem + 0.5vw, 1.5rem);
}

/* Base styles with fluid typography */
body {
    width: 100%;
    max-width: 100%;
    font-size: var(--text-base);
    line-height: 1.6;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

/* Container with fluid max-width */
.container {
    width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

/* Modern CSS Grid with auto-fit and intrinsic sizing */
.hero-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: var(--grid-gap);
}

.fleet-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: var(--grid-gap);
}

.infra-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--grid-gap);
}

.winner-genome-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--grid-gap);
}

.bot-perf-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: var(--grid-gap);
}

.proto-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--grid-gap);
}

/* Fluid canvas sizing with aspect-ratio */
canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

/* Square aspect ratio for gauges */
.gauge-container {
    width: clamp(120px, 15vw, 200px);
    aspect-ratio: 1;
}

/* Responsive cards with container queries */
.website-section {
    width: 100%;
    max-width: 100%;
    container-type: inline-size;
    container-name: section;
    padding: var(--space-lg);
    margin-block: var(--space-lg);
}

/* Container query: adapt card layout based on container width, not viewport */
    .infra-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .infra-key {
        font-size: var(--text-sm);
    }
    
    .infra-val {
        font-size: var(--text-base);
    }
}

@container section (min-width: 601px) and (max-width: 1000px) {
    .infra-row {
        grid-template-columns: 1fr 1fr;
    }
}

@container section (min-width: 1001px) {
    .infra-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Flexbox with wrap for fluid layouts */
.stream-ticker {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.ticker-item {
    flex: 1 1 auto;
    min-width: 120px;
}

/* Responsive tables with horizontal scroll */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

table {
    width: 100%;
    min-width: 600px;
    font-size: var(--text-sm);
}

/* Leaderboard responsive */
.leaderboard-container {
    font-size: var(--text-sm);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 80px), 1fr));
    gap: var(--space-xs);
    padding: var(--space-xs);
}

/* Mutation timeline with horizontal scroll on small screens */
.mutation-timeline {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-block: var(--space-sm);
    scrollbar-width: thin;
}

.mutation-node {
    flex: 0 0 auto;
    min-width: clamp(80px, 10vw, 120px);
}

/* Winner cards with fluid layout */
.winner-header {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.winner-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr));
    gap: var(--space-sm);
}

/* Viewport-relative positioning for hero elements */

/* Navigation with fluid spacing */

/* Responsive images */
img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Print styles */
@media print {
    .website-section {
    width: 100%;
    max-width: 100%;
        page-break-inside: avoid;
    }
    
    canvas {
        max-width: 100%;
        height: auto;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (already dark, but ensure contrast) */
@media (prefers-color-scheme: light) {
    :root {
        --text-base: #000000;
    }
}

/* High DPI displays */
@media (min-resolution: 2dppx) {
    canvas {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Ultra-wide screens */
@media (min-aspect-ratio: 21/9) {
    .container {
    }
    
    .hero-stats {
    width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Very tall screens (mobile portrait) */
@media (max-aspect-ratio: 9/16) {
    .website-section {
    width: 100%;
    max-width: 100%;
        padding: var(--space-md);
    }
    
    canvas {
        aspect-ratio: 4 / 3;
    }
}

/* Orientation handling */
@media (orientation: landscape) and (max-height: 500px) {
    header {
        position: relative;
    }
    
    .website-section {
    width: 100%;
    max-width: 100%;
        padding: var(--space-sm);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    button, a, .clickable {
        min-height: 44px;
        min-width: 44px;
    }
    
    .ticker-item {
        min-height: 48px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: #00ff88;
    color: #000000;
}

