GODSIGH/css/style.css
type-two 07993c77ff feat: Solar System mode — 'Travel to' the planets (Wave 4)
New '◉ Solar System' mode: leaves the Earth OSINT globe and renders a
heliocentric orrery — Sun + 8 planets as spheres textured with real (CC BY 4.0,
self-hosted) imagery, at their TRUE current positions (Schlyter series, incl.
Uranus/Neptune), with orbits. A 'Travel to…' panel flies the camera to any body;
'Return to Earth' restores the full OSINT view (globe, all layers, clock, camera,
frustum, lighting — all saved/restored). Planets exaggerated + distances
compressed for a readable orrery; Saturn ring; camera headlight for even lighting;
far plane widened to 8e9 (default 5e8 would clip the whole system).

Textures harvested from Solar System Scope (CC BY 4.0), self-hosted in textures/
(WebGL taints cross-origin), credited in-app + README + textures/TEXTURES_CREDIT.md.

Components verified in-browser (ellipsoids render, positions correct, mode
enter/exit, UI, textures). Full-orrery screenshot pending a real GPU frame — the
headless preview can't complete async worker geometry (backgrounded tab clamps).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-21 10:19:21 +10:00

310 lines
7.2 KiB
CSS

:root {
--panel: rgba(10, 14, 18, 0.82);
--panel-solid: rgba(10, 14, 18, 0.95);
--border: rgba(255, 255, 255, 0.08);
--accent: #35e0ff;
--text: #d6e2ea;
--dim: #7c8b97;
--ok: #46e08a;
--warn: #ffcf50;
--err: #ff5964;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
height: 100%;
overflow: hidden;
background: #05080b;
color: var(--text);
font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}
#cesiumContainer {
position: absolute;
inset: 0;
}
/* ---- HUD ---- */
#hud {
position: absolute;
top: 14px;
left: 14px;
width: 288px;
max-height: calc(100vh - 28px);
display: flex;
flex-direction: column;
gap: 10px;
padding: 14px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 10;
font-size: 12px;
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
#hud header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.brand {
font-weight: 700;
letter-spacing: 0.5px;
font-size: 14px;
color: #fff;
}
.brand span {
color: var(--accent);
font-weight: 500;
font-size: 11px;
}
#live-chip {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.5px;
padding: 3px 8px;
border-radius: 999px;
white-space: nowrap;
border: 1px solid transparent;
}
#live-chip[data-state="live"] {
color: var(--ok);
border-color: rgba(70, 224, 138, 0.4);
background: rgba(70, 224, 138, 0.1);
}
#live-chip[data-state="scrub"] {
color: var(--warn);
border-color: rgba(255, 207, 80, 0.4);
background: rgba(255, 207, 80, 0.1);
font-size: 9px;
}
.modes {
display: flex;
gap: 6px;
}
.modes button {
flex: 1;
padding: 6px 8px;
font: inherit;
font-size: 11px;
color: var(--dim);
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border);
border-radius: 8px;
cursor: pointer;
transition: all 0.15s;
}
.modes button:hover { color: var(--text); }
.modes button.active {
color: #04121a;
background: var(--accent);
border-color: var(--accent);
font-weight: 700;
}
/* ---- portal to SOLARGOD (sibling orrery) ---- */
.portal-link {
display: block;
text-align: center;
padding: 6px 8px;
font-size: 11px;
color: var(--dim);
text-decoration: none;
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border);
border-radius: 8px;
transition: all 0.15s;
}
.portal-link:hover {
color: var(--accent);
border-color: var(--accent);
}
/* ---- layer rows ---- */
#layers {
display: flex;
flex-direction: column;
gap: 1px;
overflow-y: auto;
}
/* ---- collapsible category sections ---- */
.cat:has(.cat-body:empty) { display: none; } /* hide unused categories */
.cat-header {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 4px 3px;
margin-top: 4px;
cursor: pointer;
user-select: none;
color: var(--dim);
font-size: 9.5px;
letter-spacing: 0.6px;
text-transform: uppercase;
border-top: 1px solid var(--border);
}
.cat-header:hover { color: var(--text); }
.cat-chevron { font-size: 8px; width: 8px; transition: transform 0.15s; }
.cat.collapsed .cat-chevron { transform: rotate(-90deg); }
.cat.collapsed .cat-body { display: none; }
.cat-body { display: flex; flex-direction: column; gap: 1px; }
.layer-row {
padding: 5px 4px;
border-radius: 6px;
}
.layer-row:hover { background: rgba(255, 255, 255, 0.03); }
.layer-row label {
display: flex;
align-items: center;
gap: 7px;
cursor: pointer;
user-select: none;
}
.layer-row input[type="checkbox"] {
accent-color: var(--accent);
margin: 0;
cursor: pointer;
}
.layer-row .lname {
flex: 1;
color: var(--text);
}
.dot {
width: 7px;
height: 7px;
border-radius: 50%;
flex: none;
background: var(--dim);
transition: background 0.2s;
}
.dot[data-state="ok"] { background: var(--ok); box-shadow: 0 0 6px rgba(70, 224, 138, 0.6); }
.dot[data-state="warn"] { background: var(--warn); box-shadow: 0 0 6px rgba(255, 207, 80, 0.6); }
.dot[data-state="err"] { background: var(--err); box-shadow: 0 0 6px rgba(255, 89, 100, 0.6); }
.dot[data-state="off"] { background: var(--dim); }
.lstatus {
padding: 0 0 0 24px;
color: var(--dim);
font-size: 10px;
line-height: 1.3;
min-height: 0;
}
.lstatus:empty { display: none; }
#hud footer {
border-top: 1px solid var(--border);
padding-top: 8px;
color: var(--dim);
font-size: 9.5px;
line-height: 1.4;
}
#hud footer .demo { color: var(--warn); }
/* ---- aircraft pick overlay ---- */
#pick-overlay {
position: absolute;
bottom: 130px;
right: 14px;
width: 220px;
padding: 12px 14px;
background: var(--panel-solid);
border: 1px solid var(--border);
border-left: 2px solid var(--accent);
border-radius: 10px;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
z-index: 10;
font-size: 11px;
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
#pick-overlay[hidden] { display: none; }
#pick-overlay .po-title {
font-weight: 700;
color: #fff;
font-size: 13px;
margin-bottom: 6px;
}
#pick-overlay .po-row {
display: flex;
justify-content: space-between;
gap: 10px;
padding: 1px 0;
}
#pick-overlay .po-row span:first-child { color: var(--dim); }
#pick-overlay .po-close {
position: absolute;
top: 8px;
right: 10px;
cursor: pointer;
color: var(--dim);
font-size: 14px;
}
#pick-overlay .po-close:hover { color: var(--text); }
/* Keep Cesium's info box on-theme without fighting it */
.cesium-infoBox { font-family: ui-monospace, monospace; }
/* ---- Solar System mode ---- */
#ss-btn {
position: absolute;
top: 14px;
right: 14px;
z-index: 12;
padding: 8px 14px;
font: 12px ui-monospace, "SF Mono", Menlo, monospace;
color: var(--text);
background: var(--panel);
border: 1px solid var(--border);
border-radius: 10px;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
cursor: pointer;
letter-spacing: 0.5px;
transition: all 0.15s;
}
#ss-btn:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
#ss-btn.active { color: #04121a; background: var(--accent); border-color: var(--accent); font-weight: 700; }
#ss-panel {
position: absolute;
top: 14px;
left: 14px;
width: 240px;
z-index: 12;
padding: 14px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
font: 12px ui-monospace, Menlo, monospace;
color: var(--text);
}
#ss-panel .ss-title { font-weight: 700; letter-spacing: 1px; color: var(--accent); font-size: 11px; margin-bottom: 10px; }
#ss-panel .ss-dests { display: flex; flex-direction: column; gap: 4px; }
#ss-panel .ss-dest {
text-align: left;
padding: 7px 10px;
font: inherit;
color: var(--text);
background: rgba(255,255,255,0.03);
border: 1px solid var(--border);
border-radius: 8px;
cursor: pointer;
transition: all 0.12s;
}
#ss-panel .ss-dest:hover { background: rgba(53,224,255,0.12); border-color: var(--accent); color: #fff; }
#ss-panel .ss-back { margin-top: 8px; color: var(--dim); }
#ss-panel .ss-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--dim); font-size: 9.5px; line-height: 1.4; }
#ss-panel .ss-foot a { color: var(--dim); }