qroute / assets /styles.css
Laborator's picture
deploy: sync from qroute 2b69478
cf52ce3 verified
Raw
History Blame Contribute Delete
4.49 kB
/* QRoute Space - luxury dark theme. Loaded by app.py into launch(css=...). */
/* Hide Gradio's built-in footer (it localises to the viewer's browser language,
which surfaced as a stray non-English footer on the QVerify Space). */
footer { display: none !important; }
:root {
--qr-bg: #0B0B16;
--qr-surface: #15152A;
--qr-border: #2A2440;
--qr-violet: #7C3AED;
--qr-violet-soft: #A78BFA;
--qr-cyan: #22D3EE;
--qr-amber: #F59E0B;
--qr-green: #34D399;
--qr-text: #E5E7EB;
--qr-muted: #9CA3AF;
}
.qr-hero {
position: relative;
border-radius: 18px;
overflow: hidden;
border: 1px solid var(--qr-border);
background:
radial-gradient(1200px 300px at 20% -10%, rgba(124, 58, 237, 0.25), transparent),
radial-gradient(900px 300px at 90% 120%, rgba(34, 211, 238, 0.18), transparent),
#0B0B16;
margin-bottom: 8px;
}
.qr-hero-inner { display: flex; align-items: center; gap: 28px; padding: 30px 34px; flex-wrap: wrap; }
.qr-hero-art { flex: 1 1 540px; min-width: 0; }
.qr-hero-art svg, .qr-hero-art img { width: 100%; height: auto; display: block; border-radius: 12px; }
.qr-hero-copy { flex: 1 1 320px; min-width: 280px; }
.qr-title {
font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: 44px;
letter-spacing: -0.02em; margin: 0 0 6px;
background: linear-gradient(90deg, #FFFFFF, #A78BFA 60%, #22D3EE);
-webkit-background-clip: text; background-clip: text; color: transparent;
}
.qr-tagline { color: var(--qr-text); font-size: 17px; line-height: 1.5; margin: 0 0 14px; }
.qr-sub { color: var(--qr-muted); font-size: 13.5px; margin: 0 0 16px; }
.qr-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-badge {
display: inline-flex; align-items: center; gap: 6px;
font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; font-weight: 600;
padding: 4px 10px; border-radius: 999px; border: 1px solid var(--qr-border);
background: #11101F; color: var(--qr-violet-soft); text-decoration: none;
}
.qr-badge.cyan { color: #67E8F9; }
.qr-badge.green { color: var(--qr-green); }
.qr-badge.amber { color: var(--qr-amber); }
/* Expert lamps: 8 experts, lit by which router selects them top-2 */
.qr-lamps { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin: 8px 0 4px; }
@media (max-width: 720px) { .qr-lamps { grid-template-columns: repeat(4, 1fr); } }
.qr-lamp {
border: 1px solid var(--qr-border); border-radius: 12px; background: var(--qr-surface);
padding: 12px 6px; text-align: center; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.qr-lamp:hover { transform: translateY(-2px); }
.qr-lamp .bulb {
width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 8px;
background: #20203A; border: 1px solid #2A2440;
}
.qr-lamp .name { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--qr-text); font-weight: 700; }
.qr-lamp .pct { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--qr-muted); margin-top: 2px; }
.qr-lamp.vqc .bulb { background: var(--qr-cyan); box-shadow: 0 0 14px rgba(34, 211, 238, 0.6); }
.qr-lamp.classical .bulb { background: var(--qr-amber); box-shadow: 0 0 14px rgba(245, 158, 11, 0.55); }
.qr-lamp.both .bulb {
background: linear-gradient(135deg, var(--qr-cyan) 50%, var(--qr-amber) 50%);
box-shadow: 0 0 16px rgba(124, 58, 237, 0.6); border-color: var(--qr-green);
}
.qr-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 2px; color: var(--qr-muted); font-size: 12px; }
.qr-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
/* Metric cards */
.qr-scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.qr-score-card { border: 1px solid var(--qr-border); border-radius: 12px; background: var(--qr-surface); padding: 12px 14px; }
.qr-score-card h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--qr-muted); }
.qr-score-val { font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 800; color: var(--qr-text); }
.qr-score-sub { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--qr-muted); margin-top: 2px; }
.qr-score-card.vqc .qr-score-val { color: #67E8F9; }
.qr-score-card.classical .qr-score-val { color: var(--qr-amber); }
.qr-section-title {
font-family: "Inter", sans-serif; font-weight: 800; font-size: 22px;
margin: 8px 0 2px; color: #FFFFFF; letter-spacing: -0.01em;
}