/* Minimal closed gate: centered brand + outline CTA (restored) */
html:has(.page-gate),
body:has(.page-gate) {
  min-height: 100%;
  min-height: 100dvh;
}

body:has(.page-gate) {
  display: flex !important;
  flex-direction: column;
  margin: 0;
}

main.page.page-gate,
main.page.page-network.page-gate,
main.page.page-network-landing.page-gate {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  place-items: center;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 1.5rem !important;
  box-sizing: border-box !important;
  text-align: center !important;
  align-self: stretch !important;
}

.page-gate .gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
  width: auto;
  max-width: none;
}

.page-gate .gate-brand {
  margin: 0;
  font-family: "Golos Text", "Onest", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text, #eaf1f3);
}

.page-gate .gate-club-tag {
  margin: 0 0 0.55rem;
  font-family: "Onest", "Golos Text", system-ui, sans-serif;
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background-image: linear-gradient(
    105deg,
    #2f7a68 0%,
    #57c4a6 22%,
    #b8f0de 48%,
    #8fd9c2 68%,
    #3aa889 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-club-shimmer 4.2s linear infinite;
}

@keyframes brand-club-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-gate .gate-club-tag {
    animation: none;
    background-image: none;
    color: #8fd9c2;
  }
}

.page-gate .gate-cta {
  display: flex;
  justify-content: center;
  width: auto;
  margin: 0.55rem 0 0;
}

.page-gate .gate-cta .gate-login,
.page-gate .gate-cta a.gate-login {
  width: auto !important;
  min-width: 11.5rem !important;
  flex: 0 0 auto !important;
  padding: 0.95rem 2.4rem !important;
  font-family: "Onest", "Golos Text", system-ui, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
  justify-content: center;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  background: #57c4a6 !important;
  color: #041016 !important;
  box-shadow: none !important;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.page-gate .gate-cta .gate-login::before,
.page-gate .gate-cta a.gate-login::before {
  display: none;
}

.page-gate .gate-cta .gate-login:hover,
.page-gate .gate-cta a.gate-login:hover {
  background: #6fd4b6 !important;
  border-color: transparent !important;
  color: #041016 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3) !important;
}

.page-gate .gate-cta .gate-login:active,
.page-gate .gate-cta a.gate-login:active {
  transform: translateY(0);
  background: #4ab897 !important;
}

.page-gate .gate-cta .gate-login:focus-visible,
.page-gate .gate-cta a.gate-login:focus-visible {
  outline: 2px solid rgba(143, 217, 194, 0.85);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .page-gate .gate-cta .gate-login,
  .page-gate .gate-cta a.gate-login {
    transition: none;
  }

  .page-gate .gate-cta .gate-login:hover,
  .page-gate .gate-cta a.gate-login:hover,
  .page-gate .gate-cta .gate-login:active,
  .page-gate .gate-cta a.gate-login:active {
    transform: none;
  }
}

body:has(.page-gate) .footer {
  display: none !important;
}

body:has(.page-gate) .cookie-notice--gate {
  display: flex !important;
}

.cookie-notice--gate {
  z-index: 40;
  max-width: min(36rem, calc(100vw - 2rem));
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 1.25rem;
  gap: 0.85rem;
  align-items: center;
  background: rgba(7, 17, 24, 0.92);
  border: 1px solid rgba(234, 241, 243, 0.14);
  backdrop-filter: blur(10px);
}

.cookie-notice--gate .cookie-notice-text {
  color: rgba(234, 241, 243, 0.82);
}

.cookie-notice--gate .cookie-notice-text a {
  color: #8fd9c2;
}

.cookie-notice--gate .cookie-notice-btn {
  background: #57c4a6;
  color: #071118;
  border: none;
  flex-shrink: 0;
}

.cookie-notice--gate .cookie-notice-btn:hover {
  background: #6fd4b6;
}

.cookie-notice--gate.is-hidden {
  transform: translateX(-50%) translateY(120%);
}
