:root {
  --bg-space: #03050c;
  --glass-bg: rgba(11, 16, 30, 0.62);
  --glass-bg-hover: rgba(18, 26, 46, 0.78);
  --glass-border: rgba(148, 179, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.06);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #7aa2ff;
  --accent-warm: #ffbe6b;
  --danger: #ff6b7a;
  --teal: #5eead4;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-space);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#space-canvas:active {
  cursor: grabbing;
}

.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.35s ease;
}

.hud.cinema-hidden .hud-fade {
  opacity: 0;
  pointer-events: none !important;
}

.glass-panel {
  pointer-events: auto;
  background: linear-gradient(165deg, rgba(14, 21, 39, 0.72), rgba(7, 11, 22, 0.66));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(148, 179, 255, 0.16);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.focus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.icon-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ui-icon,
.preset-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}
