/* Gamify logo — aspect ratio preserved at every size */
.gfy-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

svg.gfy-logo {
  overflow: visible;
}

.gfy-logo--nav {
  height: 32px;
}

/* Splash sizing handled in loading-splash.css */

.gfy-logo--auth {
  height: 80px;
  margin: 0 auto 8px;
}

.gfy-logo--ob {
  height: 120px;
  margin: 0 auto 16px;
}

.gfy-logo--drawer {
  height: 36px;
}

.gfy-logo--merch {
  height: 48px;
}

@keyframes gfy-logo-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  display: none;
  align-items: center;
  gap: 4px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px 14px;
  pointer-events: none;
}

.app-topbar.visible {
  display: flex;
}

.app-topbar .gfy-logo,
.app-topbar #hamburger-btn {
  pointer-events: auto;
}

.app-topbar #hamburger-btn {
  position: static;
  margin-left: 2px;
}

body.app-active .pages {
  padding-top: calc(48px + env(safe-area-inset-top, 0px));
}

@media (min-width: 768px) {
  .gfy-logo--nav {
    height: 40px;
  }

  .app-topbar {
    display: none !important;
  }

  body.app-active .pages {
    padding-top: 0;
  }

  .drawer-header .gfy-logo--drawer {
    height: 40px;
  }
}
