Files
the-nexus/style.css
Alexander Whitestone c5391b4488
Some checks failed
CI / validate (pull_request) Failing after 21s
feat: beacon system — click to place glowing markers in 3D world
- Click anywhere on canvas to place a cyan glowing beacon at depth 15
- Beacons pulse and rotate with animated glow sphere + orbiting ring
- Each beacon has a PointLight for environment illumination
- Right-click canvas to clear all beacons
- Max 10 beacons (oldest removed automatically)
- HUD shows active beacon count with glow styling

Fixes #138

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-24 00:04:43 -04:00

82 lines
1.3 KiB
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);
}
/* === BEACON HUD === */
.beacon-count-label {
color: #00ffcc;
font-family: var(--font-body);
font-size: 13px;
letter-spacing: 0.1em;
text-shadow: 0 0 8px #00ffcc;
}
/* === DEBUG MODE === */
#debug-toggle {
margin-left: 8px;
}
.collision-box {
outline: 2px solid red;
outline-offset: 2px;
}
.light-source {
outline: 2px dashed yellow;
outline-offset: 2px;
}