Files
the-nexus/style.css
Alexander Whitestone fd9ebc47cf
Some checks failed
CI / validate (pull_request) Has been cancelled
feat: add constellation system connecting nearby stars with faint lines
- Create 800-star field using Three.js Points with randomized sizes
- Build constellation lines connecting stars within distance threshold
- Limit connections per star (max 3) to avoid visual clutter
- Animate star field and lines with slow rotation + mouse parallax
- Pulse constellation line opacity for a living, breathing effect
- Wire Three.js import map in index.html for zero-bundler setup
- Add base CSS design system (dark space theme, --color-* vars)

Fixes #114
2026-03-23 23:57:45 -04:00

58 lines
987 B
CSS

/* === DESIGN SYSTEM — NEXUS === */
:root {
--color-bg: #000008;
--color-primary: #4488ff;
--color-secondary: #334488;
--color-text: #ccd6f6;
--color-text-muted: #4a5568;
--font-body: 'Courier New', monospace;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-body);
overflow: hidden;
width: 100vw;
height: 100vh;
}
canvas {
display: block;
position: fixed;
top: 0;
left: 0;
}
/* === HUD === */
.hud-controls {
z-index: 10;
}
/* === AUDIO TOGGLE === */
#audio-toggle {
font-size: 14px;
background-color: var(--color-primary);
color: var(--color-bg);
padding: 4px 8px;
border: none;
border-radius: 4px;
font-family: var(--font-body);
transition: background-color 0.3s ease;
cursor: pointer;
}
#audio-toggle:hover {
background-color: var(--color-secondary);
}
#audio-toggle.muted {
background-color: var(--color-text-muted);
}