:root {
--bg: #08080c;
--surface: #0f0f14;
--surface2: #16161e;
--border: #1e1e2a;
--border2: #2a2a38;
--violet: #7c3aed;
--violet-bright: #8b5cf6;
--indigo: #4f46e5;
--indigo-bright: #6366f1;
--cyan: #06b6d4;
--green: #10b981;
--red: #ef4444;
--amber: #f59e0b;
--text: #e2e2f0;
--muted: #6b6b80;
--subtle: #3a3a50;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
background: var(--bg);
color: var(--text);
font-family: 'Inter', sans-serif;
font-weight: 400;
overflow-x: hidden;
margin: 0;
}
h1, h2, h3, h4, .syne { font-family: 'Syne', sans-serif; }
.mono { font-family: 'DM Mono', monospace; }
/* ── Noise texture overlay ── */
body::before {
content: '';
position: fixed; inset: 0;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
pointer-events: none; z-index: 9999; opacity: 0.4;
}
/* ── Gradient text ── */
.grad-text {
background: linear-gradient(135deg, #a78bfa 0%, #818cf8 40%, #38bdf8 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.grad {
background: linear-gradient(135deg, #a78bfa 0%, #818cf8 40%, #38bdf8 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.grad2 {
background: linear-gradient(135deg, #f0abfc 0%, #a78bfa 55%, #818cf8 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
.grad-text-2 {
background: linear-gradient(135deg, #f0abfc 0%, #a78bfa 60%, #818cf8 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
/* ── Glow effects ── */
.glow-violet { box-shadow: 0 0 30px rgba(139,92,246,0.2), 0 0 80px rgba(139,92,246,0.05); }
.glow-cyan   { box-shadow: 0 0 30px rgba(6,182,212,0.2),  0 0 80px rgba(6,182,212,0.05);  }
.glow-line   { box-shadow: 0 0 16px rgba(139,92,246,0.5); }
/* ── Background grid ── */
.bg-grid {
background-image:
linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
background-size: 40px 40px;
}
/* ── Hero orb ── */
.hero-orb, .orb {
position: absolute; border-radius: 50%; pointer-events: none; filter: blur(80px);
}
/* ── Animations ── */
@keyframes fadeUp {
from { opacity:0; transform:translateY(20px); }
to   { opacity:1; transform:translateY(0); }
}
@keyframes pulse-ring {
0%   { transform: scale(1);   opacity:.5; }
100% { transform: scale(1.6); opacity:0;  }
}
@keyframes slide-in-right {
from { opacity:0; transform:translateX(16px); }
to   { opacity:1; transform:translateX(0); }
}
@keyframes slide-in-left {
from { opacity:0; transform:translateX(-12px); }
to   { opacity:1; transform:translateX(0); }
}
@keyframes queue-slide {
0%   { opacity:0; transform:translateY(-8px); }
10%  { opacity:1; transform:translateY(0);    }
80%  { opacity:1; transform:translateX(0) scale(1); }
100% { opacity:0; transform:translateX(6px) scale(0.97); }
}
@keyframes processing-pulse {
0%,100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.4); }
50%      { box-shadow: 0 0 0 6px rgba(99,102,241,0);  }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes scanline {
0%   { transform: translateY(-100%); }
100% { transform: translateY(100vh); }
}
@keyframes float {
0%,100% { transform: translateY(0px); }
50%      { transform: translateY(-8px); }
}
@keyframes shimmer {
0%   { background-position: -200% center; }
100% { background-position:  200% center; }
}
@keyframes rotate-slow {
from { transform: rotate(0deg); }
to   { transform: rotate(360deg); }
}
@keyframes error-flash {
0%,100% { background: rgba(239,68,68,0.08); }
50%      { background: rgba(239,68,68,0.18); }
}
.animate-fade-up  { animation: fadeUp .6s ease both; }
.animate-float    { animation: float 4s ease-in-out infinite; }
.cursor-blink     { animation: blink 1.1s step-end infinite; }
/* ── Cards ── */
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 16px;
}
.card-sm {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
}
.card-hover {
transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card-hover:hover {
border-color: var(--border2);
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
transform: translateY(-2px);
}
/* ── Slot grid ── */
.slot-btn {
background: var(--surface2); border: 1px solid var(--border);
border-radius: 8px; padding: 6px 10px;
font-family: 'DM Mono', monospace; font-size: 11px;
color: var(--muted); cursor: pointer;
transition: all .15s;
position: relative; overflow: hidden;
}
.slot-btn:hover { border-color: var(--border2); color: var(--text); }
.slot-btn.selected {
background: rgba(99,102,241,0.15);
border-color: var(--indigo-bright);
color: #c7d2fe;
}
.slot-btn.gap-slot {
background: rgba(239,68,68,0.08);
border-color: rgba(239,68,68,0.3);
color: rgba(239,68,68,0.5);
cursor: not-allowed;
text-decoration: line-through;
}
.slot-btn.fold-slot {
background: rgba(245,158,11,0.08);
border-color: rgba(245,158,11,0.3);
color: rgba(245,158,11,0.7);
}
/* ── Queue track ── */
.queue-track {
display: flex; flex-direction: column; gap: 6px;
min-height: 240px; position: relative;
}
.queue-item {
background: var(--surface2); border: 1px solid var(--border);
border-radius: 8px; padding: 10px 14px;
font-family: 'DM Mono', monospace; font-size: 12px;
display: flex; align-items: center; gap: 10px;
transition: all .2s;
}
.queue-item.processing {
border-color: var(--indigo-bright);
background: rgba(99,102,241,0.08);
animation: processing-pulse .8s ease infinite;
}
.queue-item.done {
border-color: rgba(16,185,129,0.4);
background: rgba(16,185,129,0.06);
opacity: 0.6;
}
.queue-item.pending { opacity: 0.5; }
/* ── Terminal ── */
.terminal {
background: #06060a; border: 1px solid var(--border);
border-radius: 12px; overflow: hidden;
font-family: 'DM Mono', monospace; font-size: 12px;
}
.terminal-bar, .term-bar {
background: var(--surface2); padding: 10px 16px;
display: flex; align-items: center; gap: 6px;
border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
/* ── Shimmer btn ── */
.btn-shimmer {
background: linear-gradient(90deg, var(--indigo) 0%, var(--violet) 50%, var(--indigo) 100%);
background-size: 200% auto;
animation: shimmer 2.5s linear infinite;
border: none; cursor: pointer;
color: white; font-weight: 600;
border-radius: 10px; padding: 12px 28px;
font-family: 'Syne', sans-serif;
transition: transform .15s, box-shadow .15s;
}
.btn-shimmer:hover {
transform: translateY(-1px);
box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.btn-ghost {
background: transparent;
border: 1px solid var(--border2);
color: var(--muted);
border-radius: 10px; padding: 12px 24px;
cursor: pointer; font-family: 'Syne', sans-serif;
transition: all .15s;
}
.btn-ghost:hover { border-color: var(--violet-bright); color: var(--text); }
/* ── Navbar ── */
.navbar {
position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
z-index: 100; background: rgba(8,8,12,0.85);
backdrop-filter: blur(20px);
border: 1px solid var(--border);
border-radius: 100px;
padding: 8px 10px 8px 18px;
display: flex; align-items: center; gap: 20px;
width: min(880px, calc(100% - 32px));
justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.nav-brand-text { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* ── Dashboard / login button ── */
.dash-btn {
display: inline-flex; align-items: center; gap: 7px;
background: var(--surface2); border: 1px solid var(--border2);
color: var(--text); border-radius: 100px;
padding: 7px 15px; font-size: 13px; font-weight: 600;
font-family: 'Syne', sans-serif; cursor: pointer;
text-decoration: none; transition: all .18s; white-space: nowrap;
}
.dash-btn:hover { border-color: var(--violet-bright); color: #fff; box-shadow: 0 0 0 3px rgba(139,92,246,.08); }
.dash-btn svg { opacity: .8; }
/* ── User menu (logged in) ── */
.user-menu { position: relative; }
.user-chip {
display: inline-flex; align-items: center; gap: 8px;
background: var(--surface2); border: 1px solid var(--border2);
border-radius: 100px; padding: 5px 12px 5px 6px;
cursor: pointer; transition: all .18s; color: var(--text);
font-family: 'Inter', sans-serif;
}
.user-chip:hover { border-color: var(--indigo-bright); }
.user-avatar {
width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
background: linear-gradient(135deg, var(--violet), var(--indigo));
display: flex; align-items: center; justify-content: center;
font-size: 12px; font-weight: 700; color: #fff;
font-family: 'Syne', sans-serif; overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-caret { opacity: .6; transition: transform .18s; }
.user-menu.open .user-caret { transform: rotate(180deg); }
.status-dot {
width: 8px; height: 8px; border-radius: 50%;
background: var(--green); flex-shrink: 0;
box-shadow: 0 0 8px rgba(16,185,129,.6);
}
.user-dropdown {
position: absolute; top: calc(100% + 10px); right: 0;
min-width: 200px; background: var(--surface);
border: 1px solid var(--border2); border-radius: 14px;
padding: 6px; box-shadow: 0 16px 48px rgba(0,0,0,.5);
opacity: 0; transform: translateY(-6px); pointer-events: none;
transition: opacity .18s, transform .18s;
}
.user-menu.open .user-dropdown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.user-dropdown-head {
display: flex; align-items: center; gap: 8px;
padding: 8px 12px 10px; font-size: 12px; color: var(--muted);
border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.user-dropdown-item {
display: flex; align-items: center; gap: 10px; width: 100%;
padding: 9px 12px; border-radius: 9px; font-size: 13px;
color: var(--text); text-decoration: none; cursor: pointer;
background: transparent; border: none; text-align: left;
font-family: 'Inter', sans-serif; transition: background .15s;
}
.user-dropdown-item:hover { background: var(--surface2); }
.user-dropdown-item svg { opacity: .7; flex-shrink: 0; }
.user-dropdown-item.danger { color: #fca5a5; }
.user-dropdown-item.danger:hover { background: rgba(239,68,68,.1); }
/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
/* ── Section separator ── */
.sep {
width: 1px; height: 60px;
background: linear-gradient(to bottom, transparent, var(--border2), transparent);
margin: 0 auto;
}
/* ── Toggle switch ── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-track {
width: 40px; height: 22px; border-radius: 100px;
background: var(--surface2); border: 1px solid var(--border2);
position: relative; transition: background .2s;
cursor: pointer;
}
.toggle-track.on { background: rgba(99,102,241,0.5); border-color: var(--indigo-bright); }
.toggle-thumb {
width: 16px; height: 16px; border-radius: 50%;
background: var(--muted); position: absolute;
top: 2px; left: 2px; transition: all .2s;
}
.toggle-track.on .toggle-thumb { left: 20px; background: white; }
/* ── Bento ── */
.bento { display: grid; gap: 12px; }
@media (min-width: 768px) {
.bento { grid-template-columns: repeat(6, 1fr); }
.bento-wide { grid-column: span 4; }
.bento-tall { grid-row: span 2; }
.bento-2    { grid-column: span 2; }
.bento-3    { grid-column: span 3; }
}
/* ── Command input ── */
.cmd-input {
background: var(--surface2); border: 1px solid var(--border2);
border-radius: 10px; padding: 12px 16px;
color: var(--text); font-family: 'DM Mono', monospace;
font-size: 14px; outline: none; width: 100%;
transition: border-color .15s;
}
.cmd-input:focus { border-color: var(--indigo-bright); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.cmd-input::placeholder { color: var(--muted); }
/* ── Tag chip ── */
.chip {
display: inline-flex; align-items: center; gap: 6px;
background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
border-radius: 100px; padding: 3px 12px;
font-size: 11px; color: #a5b4fc;
font-family: 'DM Mono', monospace;
}
.chip-green {
background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.2);
color: #6ee7b7;
}
.chip-amber {
background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.2);
color: #fcd34d;
}
.chip-red {
background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.2);
color: #fca5a5;
}
/* ── Stat counter ── */
.stat-num {
font-family: 'Syne', sans-serif; font-size: 48px; font-weight: 800;
background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
}
/* ── Scanline effect on terminal ── */
.scanline::after {
content: ''; position: absolute;
inset: 0; pointer-events: none;
background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.03) 50%);
background-size: 100% 4px;
border-radius: inherit;
}
/* ── Nav link ── */
.nav-link {
color: var(--muted); font-size: 14px; font-weight: 500;
text-decoration: none; transition: color .15s;
}
.nav-link:hover { color: var(--text); }
/* ── Invite button ── */
.invite-pill {
background: linear-gradient(135deg, var(--violet), var(--indigo));
border-radius: 100px; padding: 8px 18px;
color: white; font-size: 13px; font-weight: 700;
font-family: 'Syne', sans-serif; cursor: pointer;
text-decoration: none; display: inline-block;
transition: box-shadow .2s, transform .15s;
}
.invite-pill:hover {
box-shadow: 0 4px 20px rgba(139,92,246,0.5);
transform: translateY(-1px);
}
/* DST mode active glow */
.dst-active .slot-btn.gap-slot  { animation: error-flash 1.5s ease-in-out infinite; }
.dst-active .slot-btn.fold-slot { animation: error-flash 1.5s ease-in-out infinite; animation-name: fold-flash; }
@keyframes fold-flash {
0%,100% { background: rgba(245,158,11,0.08); }
50%      { background: rgba(245,158,11,0.18); }
}
/* Footer gradient line */
.footer-line {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), rgba(99,102,241,0.4), transparent);
}
/* ── Missing utility classes (previously undefined) ── */
.hover-lift { transition: border-color .2s, box-shadow .2s, transform .2s; }
.hover-lift:hover { border-color: var(--border2); box-shadow: 0 8px 32px rgba(0,0,0,0.4); transform: translateY(-2px); }
.chip-violet {
background: rgba(124,58,237,0.12); border-color: rgba(139,92,246,0.3);
color: #c4b5fd;
}
/* ── Scenario tabs ── */
.tab-btn {
background: var(--surface); border: 1px solid var(--border);
color: var(--muted); border-radius: 100px;
padding: 8px 16px; font-size: 13px; font-weight: 500;
font-family: 'Syne', sans-serif; cursor: pointer;
transition: all .18s; white-space: nowrap;
}
.tab-btn:hover { border-color: var(--border2); color: var(--text); }
.tab-btn.active {
background: rgba(99,102,241,0.14); border-color: var(--indigo-bright);
color: #c7d2fe;
}
.tab-panel { display: none; }
.tab-panel.active { display: grid; animation: fadeUp .4s ease both; }
/* ── Slot rows (embed previews / hero poll) ── */
.slot-row {
display: flex; align-items: center; gap: 10px;
padding: 7px 12px; border-radius: 8px;
border: 1px solid var(--border); background: var(--surface2);
}
.slot-row.best {
border-color: rgba(139,92,246,0.4);
background: rgba(139,92,246,0.08);
}
/* ── Avatars in slot rows ── */
.av {
width: 22px; height: 22px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 10px; font-weight: 700; color: white;
font-family: 'Syne', sans-serif; flex-shrink: 0;
border: 1.5px solid var(--surface);
}
.pop { animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }
.voted { border-color: var(--indigo-bright) !important; }
/* ── Timeline connector line (how-it-works) ── */
.tl-line { width: 2px; flex: 1; min-height: 24px; background: linear-gradient(to bottom, var(--indigo), transparent); }
/* ── Missing slide-in keyframe used by JS ── */
@keyframes slide-in {
from { opacity: 0; transform: translateX(-8px); }
to   { opacity: 1; transform: translateX(0); }
}
/* ── Mobile navigation ── */
.nav-toggle {
display: none; background: transparent; border: none;
color: var(--text); cursor: pointer; padding: 4px;
align-items: center; justify-content: center;
}
.mobile-menu {
position: fixed; inset: 0; z-index: 199;
background: rgba(8,8,12,0.98); backdrop-filter: blur(18px);
display: flex; flex-direction: column;
align-items: stretch; justify-content: center; gap: 6px;
padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
opacity: 0; pointer-events: none; transition: opacity .25s ease;
overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-close {
position: absolute; top: 20px; right: 20px;
background: transparent; border: none; color: var(--muted);
cursor: pointer; padding: 8px;
}
.mobile-links { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0; }
.mobile-menu a.nav-link { font-size: 22px; padding: 12px 24px; font-family: 'Syne', sans-serif; text-align: center; }
.mobile-invite { margin: 12px auto 0; font-size: 15px; padding: 13px 30px; text-align: center; }
/* Mobile auth card */
.mobile-auth {
max-width: 360px; margin: 0 auto 8px; width: 100%;
background: var(--surface); border: 1px solid var(--border2);
border-radius: 16px; padding: 16px;
}
.mobile-dash { width: 100%; justify-content: center; font-size: 15px; padding: 13px; }
.mobile-user { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mobile-user .user-avatar { width: 40px; height: 40px; font-size: 15px; }
.mobile-user .user-name { font-size: 15px; max-width: none; }
.mobile-user-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.mobile-logout {
width: 100%; margin-top: 10px; padding: 12px;
background: transparent; border: 1px solid rgba(239,68,68,.3);
color: #fca5a5; border-radius: 100px; cursor: pointer;
font-family: 'Syne', sans-serif; font-weight: 600; font-size: 14px;
transition: background .15s;
}
.mobile-logout:hover { background: rgba(239,68,68,.1); }

/* ══ Breakpoint: tablet/laptop — collapse links, keep actions ══ */
@media (max-width: 900px) {
.nav-links { display: none; }
.navbar { width: min(560px, calc(100% - 32px)); }
}
/* ══ Breakpoint: mobile — compact bar + hamburger ══ */
@media (max-width: 640px) {
.navbar {
top: 12px; transform: translateX(-50%);
width: calc(100% - 24px); border-radius: 16px;
padding: 10px 10px 10px 16px; gap: 8px;
}
.nav-toggle { display: flex; }
.nav-invite, .dash-btn, .user-menu { display: none !important; }
/* Tame oversized desktop paddings on phones */
.card { border-radius: 14px; }
.stat-num { font-size: 38px; }
[style*="border-left:1px solid var(--border)"] { border-left: none !important; border-top: 1px solid var(--border); }
.tab-btn { font-size: 12px; padding: 7px 13px; }
}
/* ── Shared footer nav links ── */
.footer-nav-link { color: var(--muted); font-size: 12px; text-decoration: none; transition: color .15s; }
.footer-nav-link:hover { color: var(--text); }
.footer-nav-link.current { color: #67e8f9; }
