/* Shared compact header for the landing page and game sections. */

.site-header {
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 24px !important;
}

.site-header .header-left {
  width: auto !important;
}

.site-header .header-right {
  width: auto !important;
  margin-left: auto;
  gap: 18px !important;
}

.site-header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
}

.site-header .social-link {
  display: none !important;
}

.header-auth-link,
.header-auth-button,
.header-profile-link {
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.header-auth-link {
  appearance: none;
  border: 0;
  padding: 0;
  min-height: 36px;
  background: transparent;
  cursor: pointer;
}

.header-auth-link:hover {
  color: var(--accent);
}

.header-auth-button {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: #f4f4f5;
  color: #11131a;
  cursor: pointer;
}

.header-auth-button:hover {
  border-color: var(--accent);
  background: #fff;
}

.header-profile-link {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.header-profile-link:hover,
.header-profile-link:active,
.site-header.is-authenticated .header-profile-link {
  background: transparent;
  color: var(--accent);
}

.header-profile-link:active {
  transform: scale(0.98);
}

.site-header.is-authenticated .header-auth-link,
.site-header.is-authenticated .header-auth-button {
  display: none;
}

.site-header.is-authenticated .header-profile-link {
  display: inline-flex;
}

@media (max-width: 768px) {
  .site-header {
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 14px !important;
  }

  .site-header .logo {
    font-size: 25px;
  }

  .header-auth-link,
  .header-auth-button {
    display: none;
  }

  .header-profile-link {
    display: inline-flex;
  }
}

.site-footer .logo {
  position: static;
  transform: none;
}
