*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
border-radius: 0 !important;
}
:root {
--bg: #030304;
--hairline: #222226;
--text-dim: #52525b;
--text-mid: #a1a1aa;
--text-bright: #f4f4f5;
--accent: #e4e4e7;
--warn: #d97706;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
background: var(--bg);
color: var(--text-bright);
font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
font-size: 11px;
letter-spacing: 0.08em;
user-select: none;
-webkit-font-smoothing: antialiased;
}
#viewport {
position: fixed;
inset: 0;
z-index: 1;
}
/* Brutalist Observatory Reticle Frame */
.observatory-frame {
position: fixed;
inset: 20px;
border: 1px solid var(--hairline);
pointer-events: none;
z-index: 10;
transition: opacity 0.4s ease;
}
.observatory-frame::before,
.observatory-frame::after {
content: "";
position: absolute;
width: 9px;
height: 9px;
border-color: var(--text-mid);
border-style: solid;
}
.observatory-frame::before {
top: -1px;
left: -1px;
border-width: 1px 0 0 1px;
}
.observatory-frame::after {
bottom: -1px;
right: -1px;
border-width: 0 1px 1px 0;
}
.corner-tr, .corner-bl {
position: absolute;
width: 9px;
height: 9px;
border-color: var(--text-mid);
border-style: solid;
}
.corner-tr {
top: -1px;
right: -1px;
border-width: 1px 1px 0 0;
}
.corner-bl {
bottom: -1px;
left: -1px;
border-width: 0 0 1px 1px;
}
.center-reticle {
position: fixed;
top: 50%;
left: 50%;
width: 24px;
height: 24px;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 5;
opacity: 0.35;
}
.center-reticle::before {
content: "";
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: var(--text-mid);
}
.center-reticle::after {
content: "";
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 1px;
background: var(--text-mid);
}
/* HUD Layout */
.hud-layer {
position: fixed;
inset: 20px;
z-index: 20;
pointer-events: none;
transition: opacity 0.35s ease;
}
.hud-layer.hidden .hud-block {
opacity: 0;
pointer-events: none !important;
}
.hud-block {
position: absolute;
pointer-events: auto;
transition: opacity 0.35s ease;
}
/* Top-Left Telemetry */
.telemetry-tl {
top: 14px;
left: 16px;
display: flex;
flex-direction: column;
gap: 5px;
}
.station-id {
color: var(--text-bright);
font-weight: 600;
letter-spacing: 0.14em;
display: flex;
align-items: center;
gap: 8px;
}
.status-dot {
width: 5px;
height: 5px;
background: var(--text-bright);
display: inline-block;
}
.telemetry-grid {
display: grid;
grid-template-columns: 68px 1fr;
gap: 2px 10px;
color: var(--text-dim);
font-size: 10px;
}
.telemetry-grid span:nth-child(even) {
color: var(--text-mid);
}
/* Top-Right Inline Text Toggles */
.controls-tr {
top: 14px;
right: 16px;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.inline-bar {
display: flex;
align-items: center;
gap: 10px;
color: var(--text-dim);
}
.cmd-btn {
background: transparent;
border: none;
color: var(--text-mid);
font-family: inherit;
font-size: 11px;
letter-spacing: 0.08em;
cursor: pointer;
padding: 2px 0;
transition: color 0.15s ease;
}
.cmd-btn:hover,
.cmd-btn.active {
color: var(--text-bright);
}
.cmd-btn.active {
text-decoration: underline;
text-underline-offset: 4px;
}
/* Architectural Ruler Scrub Track */
.ruler-control {
display: flex;
align-items: center;
gap: 10px;
color: var(--text-dim);
font-size: 10px;
}
.ruler-track {
position: relative;
width: 120px;
height: 14px;
cursor: ew-resize;
display: flex;
align-items: center;
}
.ruler-line {
width: 100%;
height: 1px;
background: var(--hairline);
position: relative;
}
.ruler-ticks {
position: absolute;
inset: 0;
background-image: repeating-linear-gradient(
to right,
var(--text-dim) 0px,
var(--text-dim) 1px,
transparent 1px,
transparent 12px
);
height: 5px;
top: 4px;
opacity: 0.6;
}
.ruler-marker {
position: absolute;
top: 2px;
width: 2px;
height: 10px;
background: var(--text-bright);
transform: translateX(-50%);
pointer-events: none;
}
/* Bottom-Left Intercepted Astronomical Transmission */
.log-bl {
bottom: 16px;
left: 16px;
max-width: 440px;
border-left: 1px solid var(--text-dim);
padding-left: 12px;
cursor: pointer;
}
.log-header {
font-size: 9px;
color: var(--text-dim);
margin-bottom: 5px;
letter-spacing: 0.14em;
}
.log-body {
font-size: 11px;
line-height: 1.55;
color: var(--text-bright);
min-height: 34px;
}
/* Bottom-Right Metric Collapse Status */
.collapse-br {
bottom: 16px;
right: 16px;
text-align: right;
font-size: 10px;
color: var(--text-dim);
display: flex;
flex-direction: column;
gap: 4px;
}
.collapse-meter {
width: 140px;
height: 2px;
background: var(--hairline);
margin-left: auto;
position: relative;
}
.collapse-fill {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 0%;
background: var(--text-bright);
}
/* Floating HUD Restore */
.hud-restore {
position: fixed;
top: 34px;
right: 36px;
z-index: 30;
display: none;
}
.hud-restore.visible {
display: block;
}
@media (max-width: 640px) {
.observatory-frame, .hud-layer { inset: 10px; }
.log-bl { max-width: calc(100% - 32px); bottom: 52px; }
}How to use it
### Overview
Brutalist 3D cosmological observatory simulation built with Three.js (
0.170.0), custom GLSL vertex/fragment shaders, an offscreen gravitational lensing post-processing pass, and Web Audio synthesis.
### Controls & Customization
- **Metric Collapse:** Hold Space or Left-Click on the viewport to induce gravitational lensing pinch, camera FOV expansion, astrolabe time dilation, and sub-bass pitch drop.
- **Entropy Shear:** Drag the top-right architectural ruler track (0.00–1.00) to modulate FBM core displacement and accretion turbulence.
- **Transmissions:** Edit the transmissions array in JavaScript to customize the lower-left decoded observatory logs.