Some checks failed
CI / validate (pull_request) Has been cancelled
Implements a Three.js meteor shower that triggers randomly every 2-5 minutes. Each shower spawns 15-40 meteors as streaking line segments with fade-out trails, flying diagonally across the starfield. - MeteorShower class manages spawn scheduling and per-frame updates - Starfield background (3000 points) with slow ambient rotation - Full Three.js scene bootstrap with renderer, camera, animation loop - Import map for Three.js 0.183 added to index.html - window.triggerMeteorShower() exposed for dev console testing - Global CSS reset added to style.css for proper canvas layout Fixes #113
35 lines
599 B
CSS
35 lines
599 B
CSS
/* === GLOBAL RESET === */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
overflow: hidden;
|
|
background: #0a0a0f;
|
|
font-family: monospace;
|
|
}
|
|
|
|
canvas {
|
|
display: block;
|
|
}
|
|
|
|
/* === AUDIO TOGGLE === */
|
|
#audio-toggle {
|
|
font-size: 14px;
|
|
background-color: var(--color-primary-primary);
|
|
color: var(--color-bg);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-family: var(--font-body);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
#audio-toggle:hover {
|
|
background-color: var(--color-secondary);
|
|
}
|
|
|
|
#audio-toggle.muted {
|
|
background-color: var(--color-text-muted);
|
|
}
|