@import "tailwindcss"; @custom-variant dark (&:is(.dark *)); /* * GMW — Command Center Tactical HUD Design System * Engineered for high precision in both DARK and LIGHT modes. * Uses semantic CSS variables for seamless theme switching, eliminating hardcoded hex clashes. */ :root { /* ── Light Mode Base Palette (Crisp High-Contrast Titanium HUD) ── */ --canvas-base: #f0f2f5; --canvas-subtle: #e5e8ed; --panel-bg: rgba(255, 255, 255, 0.85); --panel-bg-subtle: rgba(255, 255, 255, 0.6); --panel-border: rgba(15, 23, 42, 0.08); --panel-border-hover: rgba(94, 106, 210, 0.35); --text-primary: #0f172a; --text-secondary: #334155; --text-muted: #64748b; --text-faint: #94a3b8; --accent-brand: #4f46e5; --accent-signal: #6366f1; --accent-signal-bg: rgba(99, 102, 241, 0.1); --accent-signal-border: rgba(99, 102, 241, 0.25); --accent-signal-glow: rgba(99, 102, 241, 0.25); --color-success: #059669; --color-success-bg: rgba(5, 150, 105, 0.1); --color-warning: #d97706; --color-warning-bg: rgba(217, 119, 6, 0.1); --color-danger: #e11d48; --color-danger-bg: rgba(225, 29, 72, 0.1); --grid-pattern: rgba(15, 23, 42, 0.035); --shadow-hud: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.05); } .dark { /* ── Dark Mode Base Palette (Stealth Obsidian Tactical HUD) ── */ --canvas-base: #060709; --canvas-subtle: #0c0e12; --panel-bg: rgba(13, 16, 23, 0.75); --panel-bg-subtle: rgba(255, 255, 255, 0.03); --panel-border: rgba(255, 255, 255, 0.07); --panel-border-hover: rgba(113, 112, 255, 0.45); --text-primary: #f8fafc; --text-secondary: #cbd5e1; --text-muted: #94a3b8; --text-faint: #475569; --accent-brand: #5e6ad2; --accent-signal: #7170ff; --accent-signal-bg: rgba(113, 112, 255, 0.12); --accent-signal-border: rgba(113, 112, 255, 0.3); --accent-signal-glow: rgba(113, 112, 255, 0.35); --color-success: #10b981; --color-success-bg: rgba(16, 185, 129, 0.12); --color-warning: #f59e0b; --color-warning-bg: rgba(245, 158, 11, 0.12); --color-danger: #f43f5e; --color-danger-bg: rgba(244, 63, 94, 0.15); --grid-pattern: rgba(255, 255, 255, 0.025); --shadow-hud: 0 8px 32px -4px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06); } @theme { --color-canvas: var(--canvas-base); --color-canvas-2: var(--canvas-subtle); --color-surface: var(--panel-bg); --color-surface-2: var(--panel-bg-subtle); --color-hairline: var(--panel-border); --color-hairline-focus: var(--panel-border-hover); --color-ink: var(--text-primary); --color-ink-soft: var(--text-secondary); --color-ink-muted: var(--text-muted); --color-ink-faint: var(--text-faint); --color-brand: var(--accent-brand); --color-brand-accent: var(--accent-signal); --color-signal: var(--accent-signal); --color-signal-glow: var(--accent-signal-glow); --color-status-success: var(--color-success); --color-amber: var(--color-warning); --color-vermilion: var(--color-danger); --font-sans: var(--font-inter), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --font-mono: var(--font-jetbrains-mono), ui-monospace, SFMono-Regular, Menlo, monospace; --font-display: var(--font-display), var(--font-inter), sans-serif; --radius-r: 8px; --radius-r-panel: 10px; --radius-r-control: 6px; --radius-r-pill: 9999px; } @layer base { * { border-color: var(--panel-border); } html { @apply font-sans antialiased scroll-smooth; background-color: var(--canvas-base); color: var(--text-primary); } body { min-height: 100dvh; background-color: var(--canvas-base); color: var(--text-primary); background-image: linear-gradient(to right, var(--grid-pattern) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-pattern) 1px, transparent 1px); background-size: 32px 32px; } ::selection { background: var(--accent-signal-bg); color: var(--accent-signal); } ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--text-faint); opacity: 0.4; border-radius: 9999px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } :focus-visible { outline: 2px solid var(--accent-signal); outline-offset: 2px; } } @layer components { /* Tactical HUD Glass Panel */ .glass { background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-r-panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow-hud); transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease; } /* ── Ambient CSS Background (replaces WebGL/three.js) ── */ .ambient-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: calc(var(--ab-alpha, 0.35) * 0.8); will-change: transform; } .ambient-blob-1 { width: 50vw; height: 50vw; top: -10%; left: 20%; background: rgb(var(--ab-r, 45) var(--ab-g, 212) var(--ab-b, 191) / 0.25); animation: ambient-drift-1 25s ease-in-out infinite alternate; } .ambient-blob-2 { width: 40vw; height: 40vw; bottom: 10%; right: -5%; background: rgb(var(--ab-r, 45) var(--ab-g, 212) var(--ab-b, 191) / 0.18); animation: ambient-drift-2 30s ease-in-out infinite alternate; } .ambient-blob-3 { width: 35vw; height: 35vw; top: 40%; left: -10%; background: rgb(var(--ab-r, 45) var(--ab-g, 212) var(--ab-b, 191) / 0.15); animation: ambient-drift-3 20s ease-in-out infinite alternate; } @keyframes ambient-drift-1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(8vw, 5vh) scale(1.15); } } @keyframes ambient-drift-2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-6vw, -8vh) scale(1.1); } } @keyframes ambient-drift-3 { 0% { transform: translate(0, 0) scale(0.9); } 100% { transform: translate(5vw, 6vh) scale(1.1); } } /* Floating motes — tiny dots drifting upward */ .ambient-motes { position: absolute; inset: 0; overflow: hidden; } .ambient-mote { position: absolute; bottom: -4px; width: 2px; height: 2px; border-radius: 50%; background: rgb(var(--ab-r, 45) var(--ab-g, 212) var(--ab-b, 191) / 0.5); animation: mote-rise linear infinite; } @keyframes mote-rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 0.6; } 90% { opacity: 0.4; } 100% { transform: translateY(-100vh) translateX(20px); opacity: 0; } } .glass:hover { border-color: var(--panel-border-hover); } /* HUD Tactical Card */ .hud-card { position: relative; background: var(--panel-bg); border: 1px solid var(--panel-border); border-radius: var(--radius-r-panel); backdrop-filter: blur(12px); box-shadow: var(--shadow-hud); transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .hud-card:hover { border-color: var(--panel-border-hover); transform: translateY(-2px); box-shadow: var(--shadow-hud), 0 8px 32px -8px rgba(45, 212, 191, 0.08); } /* ── Noise grain overlay (applied via pseudo-element) ── */ .noise-overlay::after { content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.025; 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-repeat: repeat; background-size: 128px 128px; } /* ── Animated gradient border (use on glass panels) ── */ .gradient-border { position: relative; overflow: hidden; } .gradient-border::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient( from var(--gb-angle, 0deg), transparent 40%, var(--color-signal) 50%, transparent 60% ); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: gradient-rotate 4s linear infinite; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; } .gradient-border:hover::before { opacity: 1; } @keyframes gradient-rotate { to { --gb-angle: 360deg; } } @property --gb-angle { syntax: ""; initial-value: 0deg; inherits: false; } /* ── Glitch text effect (use on status labels) ── */ .glitch-text { position: relative; } .glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; } .glitch-text::before { color: var(--color-signal); animation: glitch-shift-1 3s infinite steps(2); clip-path: inset(0 0 65% 0); } .glitch-text::after { color: var(--color-vermilion); animation: glitch-shift-2 3s infinite steps(2); clip-path: inset(65% 0 0 0); } @keyframes glitch-shift-1 { 0%, 92% { transform: translate(0); } 93% { transform: translate(-2px, 1px); } 94% { transform: translate(2px, -1px); } 95%, 100% { transform: translate(0); } } @keyframes glitch-shift-2 { 0%, 94% { transform: translate(0); } 95% { transform: translate(2px, 1px); } 96% { transform: translate(-1px, -1px); } 97%, 100% { transform: translate(0); } } /* ── Terminal cursor blink ── */ .cursor-blink::after { content: "█"; animation: cursor-blink 1s step-end infinite; color: var(--color-signal); margin-left: 2px; } @keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } /* ── Radar sweep ── */ .radar-sweep { position: relative; overflow: hidden; } .radar-sweep::after { content: ""; position: absolute; top: 50%; left: 50%; width: 50%; height: 2px; transform-origin: left center; background: linear-gradient(90deg, var(--color-signal), transparent); animation: radar-spin 3s linear infinite; opacity: 0.4; } @keyframes radar-spin { to { transform: rotate(360deg); } } /* ── Data flash — quick bright pulse on content update ── */ .data-flash { animation: data-flash 0.5s ease-out; } @keyframes data-flash { 0% { background-color: rgba(45, 212, 191, 0.15); } 100% { background-color: transparent; } } /* ── Border trace — animated border drawing effect ── */ .border-trace { position: relative; } .border-trace::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid transparent; background: linear-gradient(var(--panel-bg), var(--panel-bg)) padding-box, linear-gradient(var(--trace-angle, 0deg), transparent 30%, var(--color-signal) 50%, transparent 70%) border-box; animation: trace-rotate 3s linear infinite; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; } .border-trace:hover::before { opacity: 0.6; } @keyframes trace-rotate { to { --trace-angle: 360deg; } } @property --trace-angle { syntax: ""; initial-value: 0deg; inherits: false; } /* ── Typing dots (loading indicator) ── */ .typing-dots span { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--color-signal); animation: typing-bounce 1.4s ease-in-out infinite; margin: 0 2px; } .typing-dots span:nth-child(2) { animation-delay: 0.15s; } .typing-dots span:nth-child(3) { animation-delay: 0.3s; } @keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } } /* ── Glow pulse — breathing glow for live indicators ── */ .glow-pulse { animation: glow-pulse 2s ease-in-out infinite; } @keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 4px 1px var(--color-signal-glow); } 50% { box-shadow: 0 0 12px 3px var(--color-signal-glow); } } /* ── Reveal slide-up — elements rising into view ── */ .reveal-up { opacity: 0; transform: translateY(12px); animation: reveal-up 0.5s ease-out forwards; } @keyframes reveal-up { to { opacity: 1; transform: translateY(0); } } /* ── Number ticker — digit roll effect ── */ .ticker-digit { display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2; } .ticker-digit-inner { animation: ticker-roll 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; } @keyframes ticker-roll { from { transform: translateY(-100%); } to { transform: translateY(0); } } /* ── Status indicator colors ── */ .status-live { animation: glow-pulse 2s ease-in-out infinite; background: var(--color-success); } .status-warning { animation: glow-pulse 2s ease-in-out infinite; background: var(--color-amber); } .status-error { animation: glow-pulse 1.5s ease-in-out infinite; background: var(--color-vermilion); } .eyebrow { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); } .pill { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.55rem; border-radius: var(--radius-r-pill); font-size: 0.7rem; font-family: var(--font-mono); font-weight: 500; background: var(--panel-bg-subtle); border: 1px solid var(--panel-border); color: var(--text-secondary); } .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; } .display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; } } @layer utilities { .text-signal { color: var(--accent-signal); } .text-brand { color: var(--accent-brand); } .text-amber { color: var(--color-warning); } .text-vermilion { color: var(--color-danger); } .text-success { color: var(--color-success); } .text-ink { color: var(--text-primary); } .text-ink-soft { color: var(--text-secondary); } .text-ink-muted { color: var(--text-muted); } .text-ink-faint { color: var(--text-faint); } .bg-canvas { background-color: var(--canvas-base); } .bg-surface { background-color: var(--panel-bg); } .bg-surface-2 { background-color: var(--panel-bg-subtle); } .border-hairline { border-color: var(--panel-border); } .glow-signal { text-shadow: 0 0 16px var(--accent-signal-glow); } } /* ═══ Keyframes & Animations ═══ */ @keyframes breathe { 0%, 100% { opacity: 0.4; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } } @keyframes spin-disc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } @keyframes pulse-ring { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } @keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } } @keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } @keyframes stagger-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } @keyframes stagger-slide-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } } @keyframes scale-bounce-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } } @keyframes bar-fill-in { from { transform: scaleX(0); } to { transform: scaleX(1); } } @keyframes pulse-ring { 0%, 100% { transform: scale(1); opacity: 0.2; } 50% { transform: scale(1.18); opacity: 0.45; } } @keyframes fade-scale-in { from { opacity: 0; transform: scale(0.95) translateY(15px); } to { opacity: 1; transform: scale(1) translateY(0); } } @keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } } .animate-breathe { animation: breathe 2.5s ease-in-out infinite; } .animate-spin-disc { animation: spin-disc 10s linear infinite; } .animate-pulse-ring { animation: pulse-ring 2s cubic-bezier(0.16, 1, 0.3, 1) infinite; } /* Skeleton shimmer — theme-aware base + moving highlight sheen. */ .animate-shimmer { background-color: var(--panel-bg-subtle); background-image: linear-gradient( 105deg, transparent 40%, color-mix(in oklab, var(--text-primary) 6%, transparent) 50%, transparent 60% ); background-size: 200% 100%; animation: shimmer 1.6s ease-in-out infinite; } /* Live equalizer bars (mini-player / recording player). */ .animate-eq { transform-origin: bottom; animation: eq 0.9s ease-in-out infinite; } /* Entrance for popovers, toasts, mini-player. */ .animate-fade-up { animation: fade-up 0.18s cubic-bezier(0.16, 1, 0.3, 1); } .animate-toast-in { animation: toast-in 0.2s cubic-bezier(0.16, 1, 0.3, 1); } /* Staggered list-item reveal — pair with inline `animationDelay` from staggerDelay(i) in lib/utils.ts. Fades + slides up, forwards fill so items stay put after animating. */ .animate-stagger { animation: fade-up 0.24s cubic-bezier(0.16, 1, 0.3, 1) both; } /* Sweeping glow line across a hero/placeholder panel. */ .scan-line { position: absolute; inset: 0; height: 100%; pointer-events: none; background: linear-gradient( 180deg, transparent, var(--accent-signal-glow), transparent ); opacity: 0.5; animation: scan 2.6s ease-in-out infinite; } /* Mobile nav hover/active sweep fill. */ .game-sweep { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; } .game-sweep i { position: absolute; inset: 0; background: var(--accent-signal-bg); transform: translateY(100%); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); } .game-nav-item.is-active .game-sweep i, .game-nav-item:hover .game-sweep i { transform: translateY(0); } @media (prefers-reduced-motion: reduce) { .animate-breathe, .animate-spin-disc, .animate-pulse-ring, .animate-shimmer, .animate-eq, .animate-fade-up, .animate-toast-in, .animate-stagger, .scan-line, .ambient-blob, .ambient-mote, .glitch-text::before, .glitch-text::after, .cursor-blink::after, .radar-sweep::after, .border-trace::before, .gradient-border::before { animation: none !important; } *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; } }