.happy-nav-controls {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 74px);
  right: max(12px, env(safe-area-inset-right));
  z-index: 10000;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px) scale(.96);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}

.happy-nav-controls.is-visible {
  opacity: .56;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.happy-nav-control {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(15, 18, 28, .42);
  color: rgba(255,255,255,.92);
  font: 650 20px/1 system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.happy-nav-control:active,
.happy-nav-control:focus-visible {
  opacity: 1;
  background: rgba(15, 18, 28, .72);
}

.happy-nav-control:focus-visible {
  outline: 2px solid rgba(255,255,255,.95);
  outline-offset: 2px;
}

.happy-nav-control[hidden] { display: none !important; }

@media (max-width: 480px) {
  .happy-nav-controls {
    top: calc(env(safe-area-inset-top, 0px) + 70px);
    right: max(10px, env(safe-area-inset-right));
  }
}
