460 lines
10 KiB
CSS
460 lines
10 KiB
CSS
/* hud.css - HUD surfaces and shared overlays */
|
|
|
|
.hud-panel {
|
|
position: absolute;
|
|
overflow: hidden;
|
|
isolation: isolate;
|
|
background:
|
|
radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.08), transparent 30%),
|
|
radial-gradient(circle at 86% 115%, rgba(145, 186, 255, 0.08), transparent 36%),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%),
|
|
linear-gradient(180deg, var(--hud-surface-top), var(--hud-surface-bottom));
|
|
border: 1px solid var(--hud-border);
|
|
box-shadow:
|
|
inset 0 1px 0 var(--hud-highlight),
|
|
inset 0 -1px 0 rgba(255, 255, 255, 0.03),
|
|
var(--hud-shadow),
|
|
0 0 0 1px rgba(255, 255, 255, 0.02);
|
|
backdrop-filter: blur(18px) saturate(125%);
|
|
-webkit-backdrop-filter: blur(18px) saturate(125%);
|
|
}
|
|
|
|
.hud-panel::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 1px 1px 52% 1px;
|
|
border-radius: inherit;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 58%, transparent 100%);
|
|
opacity: 0.52;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hud-panel::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -1px;
|
|
padding: 1px;
|
|
border-radius: inherit;
|
|
background:
|
|
linear-gradient(135deg, rgba(244, 249, 255, 0.22), rgba(164, 194, 226, 0.08) 36%, rgba(90, 123, 161, 0.04) 70%, rgba(255, 255, 255, 0.16));
|
|
opacity: 0.72;
|
|
pointer-events: none;
|
|
filter: blur(0.2px);
|
|
-webkit-mask:
|
|
linear-gradient(#000 0 0) content-box,
|
|
linear-gradient(#000 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask:
|
|
linear-gradient(#000 0 0) content-box,
|
|
linear-gradient(#000 0 0);
|
|
mask-composite: exclude;
|
|
}
|
|
|
|
.hud-panel > * {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.hud-panel-title {
|
|
color: var(--hud-title);
|
|
margin: 0 0 var(--hud-gap-sm);
|
|
font-size: var(--hud-title-size);
|
|
font-weight: 600;
|
|
letter-spacing: 0.01em;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.hud-panel-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--hud-gap-sm);
|
|
margin-bottom: var(--hud-gap-sm);
|
|
padding-bottom: var(--hud-gap-sm);
|
|
border-bottom: 1px solid var(--hud-line);
|
|
}
|
|
|
|
.hud-panel-header .hud-panel-title {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.hud-panel-drag-handle {
|
|
cursor: grab;
|
|
user-select: none;
|
|
}
|
|
|
|
.hud-panel-drag-handle:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.hud-panel-close {
|
|
align-self: flex-start;
|
|
width: calc(var(--hud-title-size) * 1.24);
|
|
height: calc(var(--hud-title-size) * 1.24);
|
|
min-width: calc(var(--hud-title-size) * 1.24);
|
|
padding: 0;
|
|
border: 1px solid transparent;
|
|
border-radius: calc(4px * var(--hud-scale));
|
|
background: transparent;
|
|
color: var(--hud-text-muted);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition:
|
|
background 0.18s ease,
|
|
border-color 0.18s ease,
|
|
color 0.18s ease,
|
|
transform 0.18s ease,
|
|
opacity 0.18s ease;
|
|
}
|
|
|
|
.hud-panel-close .material-symbols-rounded {
|
|
font-size: calc(var(--hud-title-size) * 0.8);
|
|
line-height: 1;
|
|
}
|
|
|
|
.hud-panel-close:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-color: rgba(225, 239, 255, 0.14);
|
|
color: var(--hud-accent-strong);
|
|
}
|
|
|
|
.hud-panel.is-dragging {
|
|
transition: none !important;
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.14),
|
|
inset 0 -1px 0 rgba(255, 255, 255, 0.04),
|
|
0 24px 52px rgba(0, 0, 0, 0.28),
|
|
0 0 36px rgba(120, 200, 255, 0.16);
|
|
}
|
|
|
|
.hud-panel.is-layout-animating {
|
|
transition: none !important;
|
|
}
|
|
|
|
.hud-panel-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.hud-panel-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: var(--hud-gap-sm);
|
|
align-items: baseline;
|
|
}
|
|
|
|
.hud-panel-label {
|
|
color: var(--hud-text-soft);
|
|
font-size: var(--hud-font-size-sm);
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.hud-panel-value {
|
|
color: var(--hud-text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.hud-error-message {
|
|
color: #ff4444;
|
|
margin-top: 10px;
|
|
font-size: 0.9rem;
|
|
display: none;
|
|
padding: 10px;
|
|
background-color: rgba(255, 68, 68, 0.1);
|
|
border-radius: 5px;
|
|
border-left: 3px solid #ff4444;
|
|
}
|
|
|
|
.earth-status-message {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 50%;
|
|
transform: translate(-50%, -18px);
|
|
background:
|
|
linear-gradient(180deg, rgba(18, 31, 52, 0.92), rgba(8, 18, 32, 0.9));
|
|
border-radius: 14px;
|
|
padding: 11px 15px;
|
|
z-index: 210;
|
|
box-shadow: var(--hud-shadow-soft);
|
|
border: 1px solid var(--hud-border);
|
|
font-size: 0.9rem;
|
|
display: none;
|
|
backdrop-filter: blur(10px);
|
|
text-align: center;
|
|
min-width: 180px;
|
|
opacity: 0;
|
|
transition:
|
|
transform 0.28s ease,
|
|
opacity 0.28s ease;
|
|
}
|
|
|
|
.earth-status-message.visible {
|
|
transform: translate(-50%, 0);
|
|
opacity: 1;
|
|
}
|
|
|
|
.earth-status-message.success {
|
|
color: #d8f7df;
|
|
border-left: 3px solid #66d18f;
|
|
}
|
|
|
|
.earth-status-message.warning {
|
|
color: #fff2c3;
|
|
border-left: 3px solid #e4c464;
|
|
}
|
|
|
|
.earth-status-message.error {
|
|
color: #ffd4d7;
|
|
border-left: 3px solid #ff7b86;
|
|
}
|
|
|
|
.earth-tooltip {
|
|
position: absolute;
|
|
background:
|
|
linear-gradient(180deg, rgba(21, 37, 61, 0.96), rgba(8, 18, 31, 0.95));
|
|
border: 1px solid rgba(214, 230, 247, 0.14);
|
|
border-radius: 10px;
|
|
padding: 8px 12px;
|
|
font-size: 0.78rem;
|
|
color: var(--hud-text);
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
box-shadow: var(--hud-shadow-soft);
|
|
display: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.earth-settings-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 260;
|
|
display: none;
|
|
}
|
|
|
|
.earth-settings-modal.is-open {
|
|
display: block;
|
|
}
|
|
|
|
.earth-settings-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(2, 8, 20, 0.46);
|
|
backdrop-filter: blur(14px);
|
|
-webkit-backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.earth-settings-sheet {
|
|
position: fixed;
|
|
top: max(32px, 9vh);
|
|
right: 16px;
|
|
left: 16px;
|
|
width: min(560px, calc(100vw - 32px));
|
|
max-width: 560px;
|
|
max-height: calc(100vh - max(64px, 18vh));
|
|
margin-inline: auto;
|
|
transform: none;
|
|
border-radius: calc(24px * var(--hud-scale));
|
|
padding: calc(20px * var(--hud-scale));
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--hud-gap-md);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.earth-settings-sheet.liquid-glass-surface {
|
|
animation: none;
|
|
background:
|
|
radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.09), transparent 30%),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
|
|
linear-gradient(180deg, rgba(19, 34, 56, 0.92), rgba(8, 18, 31, 0.9));
|
|
border-color: rgba(207, 224, 243, 0.12);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
|
0 24px 56px rgba(2, 7, 15, 0.4),
|
|
0 0 0 1px rgba(255, 255, 255, 0.025);
|
|
}
|
|
|
|
.earth-settings-sheet.liquid-glass-surface:hover,
|
|
.earth-settings-sheet.liquid-glass-surface:active,
|
|
.earth-settings-sheet.liquid-glass-surface.is-pressed {
|
|
--btn-scale: 1;
|
|
--press-offset: 0px;
|
|
--glow-opacity: 0.24;
|
|
transform: none;
|
|
}
|
|
|
|
.earth-settings-header,
|
|
.earth-settings-content {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.earth-settings-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: var(--hud-gap-md);
|
|
padding-bottom: var(--hud-gap-sm);
|
|
border-bottom: 1px solid var(--hud-line);
|
|
}
|
|
|
|
.earth-settings-kicker {
|
|
color: var(--hud-text-soft);
|
|
font-size: var(--hud-kicker-size);
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.earth-settings-title {
|
|
margin: 4px 0 0;
|
|
color: var(--hud-title);
|
|
}
|
|
|
|
.earth-settings-close {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.earth-settings-content {
|
|
overflow-y: auto;
|
|
padding-right: 4px;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(160, 186, 216, 0.34) transparent;
|
|
}
|
|
|
|
.earth-settings-content::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.earth-settings-content::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.earth-settings-content::-webkit-scrollbar-thumb {
|
|
background: linear-gradient(180deg, rgba(210, 225, 242, 0.2), rgba(126, 154, 185, 0.28));
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.earth-settings-section {
|
|
padding: 12px 0 20px;
|
|
}
|
|
|
|
.earth-settings-section-title {
|
|
margin-bottom: 12px;
|
|
color: var(--hud-text-soft);
|
|
font-size: var(--hud-kicker-size);
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.earth-settings-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.earth-settings-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 15px 16px;
|
|
border-radius: 16px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
|
|
rgba(255, 255, 255, 0.025);
|
|
border: 1px solid rgba(212, 227, 244, 0.08);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
|
cursor: pointer;
|
|
transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
|
|
}
|
|
|
|
.earth-settings-item:hover {
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
|
|
rgba(255, 255, 255, 0.04);
|
|
border-color: rgba(224, 236, 249, 0.14);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.earth-settings-copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.earth-settings-item-title {
|
|
color: var(--hud-text);
|
|
font-size: calc(0.98rem * var(--hud-scale));
|
|
font-weight: 600;
|
|
}
|
|
|
|
.earth-settings-item-subtitle {
|
|
color: var(--hud-text-muted);
|
|
font-size: 0.82rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.earth-settings-switch {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.earth-settings-switch input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.earth-settings-switch-track {
|
|
width: 48px;
|
|
height: 30px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border: 1px solid rgba(215, 229, 242, 0.12);
|
|
position: relative;
|
|
transition: background 0.18s ease, border-color 0.18s ease;
|
|
}
|
|
|
|
.earth-settings-switch-track::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 22px;
|
|
height: 22px;
|
|
border-radius: 50%;
|
|
background: #edf4fc;
|
|
box-shadow: 0 6px 14px rgba(1, 8, 18, 0.26);
|
|
transition: transform 0.18s ease;
|
|
}
|
|
|
|
.earth-settings-switch input:checked + .earth-settings-switch-track {
|
|
background: linear-gradient(180deg, rgba(143, 185, 255, 0.72), rgba(104, 147, 221, 0.78));
|
|
border-color: rgba(223, 236, 252, 0.28);
|
|
}
|
|
|
|
.earth-settings-switch input:checked + .earth-settings-switch-track::after {
|
|
transform: translateX(18px);
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.earth-settings-sheet {
|
|
top: 24px;
|
|
right: 12px;
|
|
left: 12px;
|
|
width: auto;
|
|
max-width: none;
|
|
max-height: calc(100vh - 48px);
|
|
}
|
|
}
|
|
|
|
/* .earth-left-column layout-expanded rule lives in info-panel.css */
|
|
/* .hud-panel-legend layout-expanded rule lives in legend.css */
|
|
/* .hud-panel-stats layout-expanded rule lives in earth-stats.css */
|
|
/* .hud-panel-layers layout-expanded rule lives in layer-panel.css */
|
|
/* .hud-panel-tv layout-expanded rule lives in tv-panel.css */
|