mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +00:00
Display > HUD > Sonar now turns the sonar sweep on over Tactical or Minimal. It is off by default, ON reveals its five sliders, and it keeps its guards: an OFF control, the sweep only while the HUD is visible and outside Cockpit, no animation under reduced motion, and repaint timers re-armed only after a drawn frame that still shows contacts. The Cyber layout, its shell skin and its Cockpit lanes are removed. Share links, scenes, saved views and set_hud that name Cyber open Tactical with Sonar on; links and scene shots record Tactical with Sonar under the same code, and a restored state that names another layout turns Sonar off. set_cyber_sonar keeps its name and works under any layout. A newer Sonar toggle or voice setting wins over a share-link restore that lands later. From 1200px wide the command dock and World Timeline sit 74px above the bottom edge, as in the Omnibar layout, leaving the bottom row to the map attribution (left) and the Power Up corner row (right). The attribution moves to the bottom right when the page runs right to left, where the corner row sits at the bottom left, and a long credit line wraps upward before reaching the corner row. The Tactical bottom-right readout sits 8px above Power Up and the coordinates start level with it. The World Timeline is narrowed to sit between the corners. Toasts keep clear of the raised dock and the chat and voice panel height budgets subtract its rise. Below 1200px the layout is unchanged. The left rail treats the centered World Timeline and voice control as obstacles only where they reach a laid-out panel. On top of the Omnibar: sonar.css replaces cyber.css after the Omnibar imports, the Omnibar's HUD guide step now says Layout picks Tactical or Minimal, and the Omnibar's Tactical bottom-right readout keeps the same 8px above Power Up. Co-authored-by: Sameh Khamis <[email protected]>
431 lines
8.4 KiB
CSS
431 lines
8.4 KiB
CSS
/* ── Safe Frame Overlay ─────────────────────── */
|
|
#safe-frame-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 95;
|
|
pointer-events: none;
|
|
display: none;
|
|
}
|
|
|
|
#safe-frame-overlay.active {
|
|
display: block;
|
|
}
|
|
|
|
#safe-frame-box {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: min(90vw, calc(90vh * (16 / 9)));
|
|
aspect-ratio: 16 / 9;
|
|
border: 1px solid rgba(255, 255, 255, 0.28);
|
|
box-shadow:
|
|
0 0 0 1px rgba(0, 0, 0, 0.35),
|
|
inset 0 0 0 1px rgba(255, 255, 255, 0.06);
|
|
}
|
|
|
|
#safe-frame-overlay.ratio-9-16 #safe-frame-box {
|
|
width: min(58vh, 76vw);
|
|
aspect-ratio: 9 / 16;
|
|
}
|
|
|
|
/* Rule-of-thirds guides */
|
|
#safe-frame-box::before,
|
|
#safe-frame-box::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
#safe-frame-box::before {
|
|
background:
|
|
linear-gradient(
|
|
to right,
|
|
transparent 33.333%,
|
|
rgba(255, 255, 255, 0.2) 33.333%,
|
|
rgba(255, 255, 255, 0.2) 33.7%,
|
|
transparent 33.7%,
|
|
transparent 66.333%,
|
|
rgba(255, 255, 255, 0.2) 66.333%,
|
|
rgba(255, 255, 255, 0.2) 66.7%,
|
|
transparent 66.7%
|
|
),
|
|
linear-gradient(
|
|
to bottom,
|
|
transparent 33.333%,
|
|
rgba(255, 255, 255, 0.2) 33.333%,
|
|
rgba(255, 255, 255, 0.2) 33.7%,
|
|
transparent 33.7%,
|
|
transparent 66.333%,
|
|
rgba(255, 255, 255, 0.2) 66.333%,
|
|
rgba(255, 255, 255, 0.2) 66.7%,
|
|
transparent 66.7%
|
|
);
|
|
}
|
|
|
|
/* ── Orbit Indicator ─────────────────────────── */
|
|
#orbit-indicator {
|
|
position: fixed;
|
|
top: 70px;
|
|
right: 36px;
|
|
z-index: 100;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
letter-spacing: 2px;
|
|
color: var(--accent);
|
|
text-shadow: 0 0 12px var(--accent-glow);
|
|
pointer-events: none;
|
|
user-select: none;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition:
|
|
opacity var(--transition-smooth),
|
|
visibility var(--transition-smooth);
|
|
}
|
|
|
|
#orbit-indicator.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.orbit-icon {
|
|
font-size: 13px;
|
|
vertical-align: middle;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
/* ── Intelligence HUD Overlay ────────────────── */
|
|
#intel-hud {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 2;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition:
|
|
opacity 0.4s ease,
|
|
visibility 0.4s ease;
|
|
--hud-color: rgba(0, 255, 255, 0.6);
|
|
--hud-glow: rgba(0, 255, 255, 0.4);
|
|
--hud-border: rgba(0, 255, 255, 0.15);
|
|
}
|
|
|
|
#intel-hud.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
#intel-hud * {
|
|
font-family: var(--font-mono);
|
|
color: var(--hud-color);
|
|
text-shadow: 0 0 4px var(--hud-glow);
|
|
text-transform: uppercase;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.hud-bottom-bar {
|
|
display: none;
|
|
position: absolute;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: min(980px, calc(100vw - 120px));
|
|
border: 1px solid var(--hud-border);
|
|
background: rgba(0, 0, 0, 0.34);
|
|
padding: 4px 10px;
|
|
font-size: 10px;
|
|
letter-spacing: 1.4px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hud-bottom-bar {
|
|
bottom: 110px;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Corner blocks */
|
|
.hud-corner {
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 6px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.hud-top-left {
|
|
top: 120px;
|
|
left: 36px;
|
|
}
|
|
|
|
.hud-top-right {
|
|
top: 120px;
|
|
right: 36px;
|
|
}
|
|
|
|
.hud-bottom-left {
|
|
bottom: 180px;
|
|
left: 36px;
|
|
}
|
|
|
|
.hud-bottom-right {
|
|
bottom: 180px;
|
|
right: 36px;
|
|
}
|
|
|
|
.hud-bracket {
|
|
font-size: 22px;
|
|
line-height: 1;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.hud-content {
|
|
font-size: 13px;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.hud-ais-vessel {
|
|
margin-top: 6px;
|
|
max-width: 340px;
|
|
white-space: pre-line;
|
|
line-height: 1.35;
|
|
opacity: 0.64;
|
|
}
|
|
|
|
.hud-ais-vessel.active {
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.hud-classification {
|
|
font-size: 12px;
|
|
letter-spacing: 2.5px;
|
|
font-weight: 600;
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.hud-system {
|
|
font-size: 13px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.hud-mode {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
letter-spacing: 4px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.hud-summary-wrap {
|
|
margin-top: 6px;
|
|
max-width: 420px;
|
|
}
|
|
|
|
.hud-summary-label {
|
|
font-size: 9px;
|
|
letter-spacing: 1.8px;
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.hud-summary {
|
|
margin-top: 2px;
|
|
min-height: 16px;
|
|
font-size: 11px;
|
|
letter-spacing: 1.2px;
|
|
opacity: 0.88;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.hud-rec {
|
|
font-size: 13px;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
#hud-rec-dot {
|
|
color: #ff3333;
|
|
text-shadow: 0 0 6px rgba(255, 51, 51, 0.8);
|
|
font-size: 14px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.hud-orbital {
|
|
font-size: 12px;
|
|
opacity: 0.7;
|
|
letter-spacing: 1.5px;
|
|
}
|
|
|
|
/* Edge annotations (vertical text) */
|
|
.hud-edge {
|
|
position: absolute;
|
|
font-size: 10px;
|
|
letter-spacing: 1.5px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.hud-left-edge {
|
|
left: 36px;
|
|
top: 50%;
|
|
transform: translateY(-50%) rotate(-90deg);
|
|
transform-origin: left center;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.hud-right-edge {
|
|
right: 36px;
|
|
top: 50%;
|
|
transform: translateY(-50%) rotate(90deg);
|
|
transform-origin: right center;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
#intel-hud[data-variant='tactical'] .hud-bottom-bar {
|
|
display: none;
|
|
}
|
|
|
|
#intel-hud[data-variant='tactical'] .hud-top-left,
|
|
#intel-hud[data-variant='tactical'] .hud-top-right {
|
|
top: max(14vh, 136px);
|
|
}
|
|
|
|
#intel-hud[data-variant='minimal'] .hud-top-right,
|
|
#intel-hud[data-variant='minimal'] .hud-bottom-right,
|
|
#intel-hud[data-variant='minimal'] .hud-left-edge,
|
|
#intel-hud[data-variant='minimal'] .hud-right-edge,
|
|
#intel-hud[data-variant='minimal'] .hud-classification,
|
|
#intel-hud[data-variant='minimal'] .hud-system {
|
|
display: none;
|
|
}
|
|
|
|
#intel-hud[data-variant='minimal'] .hud-top-left {
|
|
top: 88px;
|
|
}
|
|
|
|
#intel-hud[data-variant='minimal'] .hud-bottom-left {
|
|
bottom: 12vh;
|
|
}
|
|
|
|
/* Minimal keeps its coordinates in the corner block, where the other layouts
|
|
have them; the full-width strip would only repeat the same position. */
|
|
#intel-hud[data-variant='minimal'] .hud-bottom-bar {
|
|
display: none;
|
|
bottom: calc(12vh + 4rem);
|
|
}
|
|
|
|
#intel-hud[data-variant='minimal'] .hud-summary-wrap {
|
|
max-width: 280px;
|
|
}
|
|
|
|
/* Scope OFF adds text-sized backing; Scope ON retains the original HUD. */
|
|
.hud-readout {
|
|
display: contents;
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
#intel-hud:is([data-variant='minimal'], [data-variant='tactical'])
|
|
.hud-readout,
|
|
:root[data-scope-mask='off'] .scene-text-holdout {
|
|
background: rgba(0, 0, 0, 0.7);
|
|
box-shadow: none;
|
|
border-radius: 2px;
|
|
padding-block: 0;
|
|
padding-inline: 6px;
|
|
margin-block: 0;
|
|
margin-inline: -6px;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
box-sizing: content-box;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
#intel-hud:is([data-variant='minimal'], [data-variant='tactical'])
|
|
.hud-readout {
|
|
display: block;
|
|
width: max-content;
|
|
min-width: 0;
|
|
box-sizing: content-box;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
#intel-hud:is([data-variant='minimal'], [data-variant='tactical'])
|
|
:is(.hud-top-right, .hud-bottom-right)
|
|
.hud-readout,
|
|
:root[data-scope-mask='off'] #style-indicator .scene-text-holdout {
|
|
margin-inline-start: auto;
|
|
}
|
|
|
|
/* Preserve glyph opacity without dimming the vertical backplates. */
|
|
:root[data-scope-mask='off'] #intel-hud[data-variant='tactical'] .hud-edge {
|
|
opacity: 1;
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
#intel-hud[data-variant='tactical']
|
|
.hud-edge
|
|
.hud-readout
|
|
> * {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
#intel-hud[data-variant='minimal']
|
|
.hud-bottom-bar {
|
|
background: transparent;
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
#intel-hud[data-variant='minimal']
|
|
.hud-bottom-bar {
|
|
width: fit-content;
|
|
max-width: calc(100vw - 120px);
|
|
gap: 24px;
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
#intel-hud[data-variant='minimal']
|
|
.hud-bottom-bar
|
|
.hud-readout {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
:root[data-scope-mask='off'] #title-bar h1::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -0.12em -6px;
|
|
z-index: -1;
|
|
border-radius: 2px;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
:is(#title-bar .subtitle, #style-indicator .indicator-label) {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
:root[data-scope-mask='off'] #title-bar .subtitle {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
:root[data-scope-mask='off'] #style-indicator .indicator-value {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
:root[data-scope-mask='off']
|
|
#intel-hud[data-variant='minimal']
|
|
.hud-readout:has(> :is(.hud-classification, .hud-system)) {
|
|
display: none;
|
|
}
|
|
|
|
:root[data-scope-mask='off'] #title-bar .frame-rate-readout {
|
|
margin-top: 6px;
|
|
}
|