/* toolbar.css - orbital hub toolbar */ .earth-toolbar-group { position: absolute; bottom: calc(18px * var(--hud-scale)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; z-index: 200; pointer-events: none; } .earth-toolbar-group, .hud-panel { transition: top 0.45s ease, right 0.45s ease, bottom 0.45s ease, left 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease; } .earth-toolbar { --toolbar-scale: var(--hud-scale); --toolbar-orb-size: calc(40px * var(--toolbar-scale)); --toolbar-hub-size: calc(54px * var(--toolbar-scale)); --toolbar-radius-x: calc(156px * var(--toolbar-scale)); --toolbar-radius-y: calc(88px * var(--toolbar-scale)); position: relative; width: min(calc(620px * var(--toolbar-scale)), calc(100vw - 40px * var(--toolbar-scale))); height: calc(var(--toolbar-radius-y) + var(--toolbar-hub-size) + 24px * var(--toolbar-scale)); display: flex; align-items: center; justify-content: center; background: transparent; border: none; box-shadow: none; padding: 0; pointer-events: none; } .earth-toolbar-cluster { position: relative; width: 100%; height: 100%; pointer-events: none; } .earth-toolbar-orb { position: absolute; left: 50%; bottom: calc((var(--toolbar-hub-size) - var(--toolbar-orb-size)) / 2); transform: translate(-50%, -50%); } .earth-toolbar-hub { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); } .earth-toolbar-orb, .earth-toolbar-hub { isolation: isolate; } .earth-toolbar-orb { pointer-events: none; opacity: 1; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease; transition-delay: var(--orb-close-delay, 0ms); } .earth-toolbar-cluster.is-expanded .earth-toolbar-orb { transform: translate(calc(-50% + var(--orb-x) * var(--toolbar-scale)), calc(var(--orb-y) * var(--toolbar-scale))); transition-delay: var(--orb-open-delay, 0ms); } .earth-toolbar-cluster.is-collapsed .earth-toolbar-orb { transform: translate(-50%, 0) scale(0.4); opacity: 0; } .earth-toolbar-orb > *, .earth-toolbar-hub > * { pointer-events: auto; } .earth-toolbar-orb:has(#layer-action) { display: none; } .layout-mode-mobile .earth-toolbar-group { display: none; } .earth-toolbar-cluster.is-collapsed .earth-toolbar-orb > * { pointer-events: none; } .earth-toolbar-hub > * { pointer-events: auto; } .earth-toolbar-btn, .earth-toolbar-hub-btn { position: relative; width: 28px; height: 28px; border: none; background: transparent; color: var(--hud-text-soft); font-size: calc(14px * var(--toolbar-scale)); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 0; margin: 0; appearance: none; -webkit-appearance: none; } .earth-toolbar-btn.floating-btn { width: var(--toolbar-orb-size); height: var(--toolbar-orb-size); min-width: var(--toolbar-orb-size); min-height: var(--toolbar-orb-size); aspect-ratio: 1 / 1; border-radius: 50%; overflow: visible; } .earth-toolbar-hub-btn { width: var(--toolbar-hub-size); height: var(--toolbar-hub-size); min-width: var(--toolbar-hub-size); min-height: var(--toolbar-hub-size); aspect-ratio: 1 / 1; border-radius: 50%; overflow: visible; color: var(--hud-title); } .earth-toolbar-btn .icon, .earth-toolbar-hub-btn .material-symbols-rounded { position: relative; z-index: 4; line-height: 1; } .earth-toolbar-btn .icon, .earth-toolbar-hub-btn .material-symbols-rounded, .earth-zoom-btn > span { display: inline-flex; align-items: center; justify-content: center; color: inherit; text-shadow: none; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease, opacity 0.16s ease; backface-visibility: hidden; -webkit-backface-visibility: hidden; } .earth-zoom-btn > span { position: relative; z-index: 4; } .earth-toolbar-btn .material-symbols-rounded, .earth-toolbar-hub-btn .material-symbols-rounded { font-size: calc(21px * var(--toolbar-scale)); line-height: 1; font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; color: currentColor; display: inline-flex; align-items: center; justify-content: center; user-select: none; pointer-events: none; text-rendering: geometricPrecision; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .earth-toolbar-btn { color: var(--hud-title); } .liquid-glass-surface { --btn-scale: 1; position: relative; border: 1px solid rgba(255, 255, 255, 0.16); background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(10, 20, 40, 0.52); backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.35); color: #94a3b8; transform: scale(var(--btn-scale)); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; } .liquid-glass-surface:hover, .liquid-glass-surface:focus-visible { --btn-scale: 1.15; color: #38bdf8; border-color: rgba(56, 189, 248, 0.6); background: linear-gradient(180deg, rgba(56, 189, 248, 0.16) 0%, rgba(10, 20, 40, 0.62) 100%), rgba(10, 20, 40, 0.62); box-shadow: 0 0 20px rgba(56, 189, 248, 0.35), inset 0 1px 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4); } .liquid-glass-surface.active { color: #38bdf8; border-color: rgba(56, 189, 248, 0.6); background: linear-gradient(180deg, rgba(56, 189, 248, 0.2) 0%, rgba(10, 20, 40, 0.68) 100%), rgba(10, 20, 40, 0.68); box-shadow: 0 0 20px rgba(56, 189, 248, 0.25), inset 0 1px 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 1px 0 rgba(0, 0, 0, 0.35); } .liquid-glass-surface:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; } .earth-toolbar-hub-btn.liquid-glass-surface { background: linear-gradient(180deg, rgba(56, 189, 248, 0.22) 0%, rgba(10, 24, 48, 0.55) 100%), rgba(8, 18, 38, 0.5); background-origin: border-box; backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border: 1px solid rgba(56, 189, 248, 0.45); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.2), inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1.5px 1.5px 0 rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(56, 189, 248, 0.25); color: #e0f2fe; } .earth-toolbar-hub-btn.liquid-glass-surface:hover, .earth-toolbar-hub-btn.liquid-glass-surface:focus-visible { --btn-scale: 1.08; border-color: #38bdf8; background: linear-gradient(180deg, rgba(56, 189, 248, 0.3) 0%, rgba(12, 28, 56, 0.65) 100%), rgba(8, 18, 38, 0.6); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.4), inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1.5px 1.5px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(56, 189, 248, 0.4); } .earth-toolbar-hub-btn > .material-symbols-rounded { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); } .earth-toolbar-cluster.is-expanded .earth-toolbar-hub-btn > .material-symbols-rounded { transform: rotate(90deg); } .earth-rotate-toggle .icon-play, .earth-rotate-toggle.is-stopped .icon-pause, .earth-layout-toggle .layout-collapse, .earth-layout-toggle.active .layout-expand { display: none; } .earth-rotate-toggle.is-stopped .icon-play, .earth-layout-toggle.active .layout-collapse { display: inline-flex; } .earth-zoom-group.open > .earth-zoom-toolbar { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); } .earth-toolbar-popover::before { content: ""; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); width: calc(56px * var(--toolbar-scale)); height: calc(22px * var(--toolbar-scale)); background: transparent; pointer-events: none; } .earth-toolbar-popover.open::before { pointer-events: auto; } .earth-toolbar-popover > .earth-stack-toolbar { position: absolute; left: 50%; top: auto; right: auto; bottom: calc(100% + (12px * var(--toolbar-scale))); transform: translate(-50%, calc(10px * var(--toolbar-scale))); display: flex; flex-direction: column; align-items: center; gap: calc(8px * var(--toolbar-scale)); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--zoom-menu-duration, 220ms) ease, transform var(--zoom-menu-duration, 220ms) ease, visibility var(--zoom-menu-duration, 220ms) ease; z-index: 220; } .earth-zoom-toolbar .earth-zoom-btn, .earth-zoom-toolbar .earth-zoom-value { cursor: pointer; width: calc(42px * var(--toolbar-scale)); min-width: calc(42px * var(--toolbar-scale)); border-radius: 50%; color: var(--hud-text-soft); animation: none; } .earth-zoom-toolbar .earth-zoom-btn { height: calc(42px * var(--toolbar-scale)); font-size: calc(20px * var(--toolbar-scale)); font-weight: 500; line-height: 1; } .earth-zoom-toolbar .earth-zoom-value { display: inline-flex; align-items: center; justify-content: center; height: calc(42px * var(--toolbar-scale)); padding: 0; font-size: calc(11px * var(--toolbar-scale)); letter-spacing: normal; } .earth-app.layout-expanded .earth-toolbar-group { bottom: calc(18px * var(--hud-scale)); transform: translateX(-50%); } @media (prefers-reduced-motion: reduce) { .earth-toolbar-orb, .liquid-glass-surface, .earth-toolbar-hub-btn > .material-symbols-rounded { transition-duration: 0.01ms; transition-delay: 0ms; } }