Some checks failed
CI / validate (pull_request) Failing after 19s
Adds a full-screen loading screen that: - Picks a random quote from 20 sovereignty quotes on each load - Fades the quote in, animates a progress bar over ~1.6s - Fades out and removes itself from the DOM when complete Fixes #124 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
215 lines
3.7 KiB
CSS
215 lines
3.7 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);
|
|
}
|
|
|
|
/* === 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;
|
|
}
|
|
|
|
/* === OVERVIEW MODE === */
|
|
#overview-indicator {
|
|
display: none;
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
color: var(--color-primary);
|
|
font-family: var(--font-body);
|
|
font-size: 11px;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
pointer-events: none;
|
|
z-index: 20;
|
|
border: 1px solid var(--color-primary);
|
|
padding: 4px 10px;
|
|
background: rgba(0, 0, 8, 0.6);
|
|
white-space: nowrap;
|
|
animation: overview-pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
#overview-indicator.visible {
|
|
display: block;
|
|
}
|
|
|
|
.overview-hint {
|
|
margin-left: 12px;
|
|
color: var(--color-text-muted);
|
|
font-size: 10px;
|
|
}
|
|
|
|
@keyframes overview-pulse {
|
|
0%, 100% { opacity: 0.7; }
|
|
50% { opacity: 1; }
|
|
}
|
|
|
|
/* === PHOTO MODE === */
|
|
body.photo-mode .hud-controls {
|
|
display: none;
|
|
}
|
|
|
|
body.photo-mode #overview-indicator {
|
|
display: none !important;
|
|
}
|
|
|
|
#photo-indicator {
|
|
display: none;
|
|
position: fixed;
|
|
bottom: 16px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
color: var(--color-primary);
|
|
font-family: var(--font-body);
|
|
font-size: 11px;
|
|
letter-spacing: 0.2em;
|
|
text-transform: uppercase;
|
|
pointer-events: none;
|
|
z-index: 20;
|
|
border: 1px solid var(--color-primary);
|
|
padding: 4px 12px;
|
|
background: rgba(0, 0, 8, 0.5);
|
|
white-space: nowrap;
|
|
animation: overview-pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
#photo-indicator.visible {
|
|
display: block;
|
|
}
|
|
|
|
.photo-hint {
|
|
margin-left: 12px;
|
|
color: var(--color-text-muted);
|
|
font-size: 10px;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
#photo-focus {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
/* === LOADING SCREEN === */
|
|
#loading-screen {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 100;
|
|
background: var(--color-bg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: opacity 0.8s ease;
|
|
}
|
|
|
|
#loading-screen.fade-out {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#loading-content {
|
|
text-align: center;
|
|
max-width: 520px;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
#loading-title {
|
|
font-family: var(--font-body);
|
|
font-size: 13px;
|
|
letter-spacing: 0.35em;
|
|
color: var(--color-primary);
|
|
margin-bottom: 32px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#loading-quote {
|
|
font-family: var(--font-body);
|
|
font-size: 13px;
|
|
color: var(--color-text);
|
|
line-height: 1.7;
|
|
min-height: 3.4em;
|
|
letter-spacing: 0.04em;
|
|
opacity: 0;
|
|
transition: opacity 0.6s ease;
|
|
}
|
|
|
|
#loading-quote.visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
#loading-bar-wrap {
|
|
margin-top: 36px;
|
|
width: 100%;
|
|
height: 1px;
|
|
background: var(--color-secondary);
|
|
}
|
|
|
|
#loading-bar {
|
|
height: 1px;
|
|
width: 0%;
|
|
background: var(--color-primary);
|
|
transition: width 0.4s ease;
|
|
box-shadow: 0 0 6px var(--color-primary);
|
|
}
|