438 lines
9.4 KiB
CSS
438 lines
9.4 KiB
CSS
/* hud.css - HUD surfaces and shared overlays */
|
|
|
|
.hud-panel {
|
|
position: absolute;
|
|
overflow: hidden;
|
|
isolation: isolate;
|
|
background:
|
|
radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
|
|
radial-gradient(circle at 78% 115%, rgba(255, 255, 255, 0.06), transparent 32%),
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(110, 176, 255, 0.06)),
|
|
rgba(7, 18, 36, 0.28);
|
|
border: 1px solid rgba(225, 242, 255, 0.2);
|
|
box-shadow:
|
|
inset 0 1px 0 rgba(255, 255, 255, 0.14),
|
|
inset 0 -1px 0 rgba(255, 255, 255, 0.04),
|
|
0 18px 40px rgba(0, 0, 0, 0.24),
|
|
0 0 32px rgba(120, 200, 255, 0.12);
|
|
backdrop-filter: blur(20px) saturate(145%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(145%);
|
|
}
|
|
|
|
.hud-panel::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 1px 1px 24% 1px;
|
|
border-radius: inherit;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05) 26%, transparent 70%);
|
|
opacity: 0.46;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hud-panel::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: -1px;
|
|
padding: 1.4px;
|
|
border-radius: inherit;
|
|
background:
|
|
linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(170, 223, 255, 0.2) 34%, rgba(88, 169, 255, 0.14) 68%, rgba(255, 255, 255, 0.24));
|
|
opacity: 0.78;
|
|
pointer-events: none;
|
|
filter: url(#liquid-glass-distortion) blur(0.35px);
|
|
-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: #4db8ff;
|
|
margin: 0 0 var(--hud-gap-sm);
|
|
font-size: var(--hud-title-size);
|
|
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);
|
|
}
|
|
|
|
.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: 0;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #d9efff;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: background 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.14);
|
|
transform: scale(1.04);
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.hud-panel-label {
|
|
color: #aaa;
|
|
}
|
|
|
|
.hud-panel-value {
|
|
color: #4db8ff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.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-color: rgba(10, 10, 30, 0.85);
|
|
border-radius: 10px;
|
|
padding: 10px 15px;
|
|
z-index: 210;
|
|
box-shadow: 0 0 20px rgba(0, 150, 255, 0.3);
|
|
border: 1px solid rgba(0, 150, 255, 0.2);
|
|
font-size: 0.9rem;
|
|
display: none;
|
|
backdrop-filter: blur(5px);
|
|
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: #44ff44;
|
|
border-left: 3px solid #44ff44;
|
|
}
|
|
|
|
.earth-status-message.warning {
|
|
color: #ffff44;
|
|
border-left: 3px solid #ffff44;
|
|
}
|
|
|
|
.earth-status-message.error {
|
|
color: #ff4444;
|
|
border-left: 3px solid #ff4444;
|
|
}
|
|
|
|
.earth-tooltip {
|
|
position: absolute;
|
|
background-color: rgba(10, 10, 30, 0.95);
|
|
border: 1px solid #4db8ff;
|
|
border-radius: 5px;
|
|
padding: 5px 10px;
|
|
font-size: 0.8rem;
|
|
color: #fff;
|
|
pointer-events: none;
|
|
z-index: 100;
|
|
box-shadow: 0 0 10px rgba(77, 184, 255, 0.3);
|
|
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.38);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.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(28px * var(--hud-scale));
|
|
padding: calc(20px * var(--hud-scale));
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--hud-gap-md);
|
|
overflow: hidden;
|
|
animation: none;
|
|
}
|
|
|
|
.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 rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.earth-settings-kicker {
|
|
color: #9eb7d0;
|
|
font-size: 0.78rem;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.earth-settings-title {
|
|
margin: 4px 0 0;
|
|
color: #eef7ff;
|
|
}
|
|
|
|
.earth-settings-close {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.earth-settings-content {
|
|
overflow-y: auto;
|
|
padding-right: 4px;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(160, 220, 255, 0.45) 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, 237, 255, 0.28), rgba(110, 176, 255, 0.34));
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.earth-settings-section {
|
|
padding: 12px 0 20px;
|
|
}
|
|
|
|
.earth-settings-section-title {
|
|
margin-bottom: 12px;
|
|
color: #9eb7d0;
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0.08em;
|
|
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: 14px 16px;
|
|
border-radius: 18px;
|
|
background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(92, 151, 218, 0.03));
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.earth-settings-copy {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.earth-settings-item-title {
|
|
color: #eef7ff;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.earth-settings-item-subtitle {
|
|
color: #90a6bb;
|
|
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.14);
|
|
border: 1px solid rgba(255, 255, 255, 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: #f5fbff;
|
|
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
|
|
transition: transform 0.18s ease;
|
|
}
|
|
|
|
.earth-settings-switch input:checked + .earth-settings-switch-track {
|
|
background: linear-gradient(180deg, rgba(69, 171, 255, 0.92), rgba(34, 123, 255, 0.84));
|
|
border-color: rgba(220, 243, 255, 0.36);
|
|
}
|
|
|
|
.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-app.layout-expanded .hud-panel-info {
|
|
top: var(--hud-offset);
|
|
left: var(--hud-offset);
|
|
transform: translate(calc(-100% + var(--hud-offset)), calc(-100% + var(--hud-offset)));
|
|
}
|
|
|
|
.earth-app.layout-expanded .hud-panel-coordinates {
|
|
top: var(--hud-offset);
|
|
right: var(--hud-offset);
|
|
transform: translate(calc(100% - var(--hud-offset)), calc(-100% + var(--hud-offset)));
|
|
}
|
|
|
|
.earth-app.layout-expanded .hud-panel-legend {
|
|
left: var(--hud-offset);
|
|
bottom: var(--hud-offset);
|
|
transform: translate(calc(-100% + var(--hud-offset)), calc(100% - var(--hud-offset)));
|
|
}
|
|
|
|
.earth-app.layout-expanded .hud-panel-stats {
|
|
right: var(--hud-offset);
|
|
bottom: var(--hud-offset);
|
|
transform: translate(calc(100% - var(--hud-offset)), calc(100% - var(--hud-offset)));
|
|
}
|