/* Invite landing — реферальная ссылка (?ref=) */

/* Ранний оверлей: класс ставится в <head>, до загрузки JS — без flash основного сайта */
html.has-invite-landing,
html.has-invite-landing body {
  background: var(--bg-primary-elevated, #1a1b21) !important;
}

html.has-invite-landing .site-header,
html.has-invite-landing .figma-nav,
html.has-invite-landing #app,
html.has-invite-landing .mobile-tabbar,
html.has-invite-landing .pro-banner,
html.has-invite-landing .catalog-boot-loader {
  visibility: hidden !important;
  pointer-events: none !important;
}

.invite-landing {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary-elevated, #1a1b21);
  color: var(--text-primary);
}

.invite-landing__glow {
  pointer-events: none;
  position: absolute;
  right: -10%;
  bottom: 8%;
  width: min(720px, 80vw);
  height: min(640px, 70vh);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 50%, rgba(255, 122, 0, 0.45) 0%, rgba(249, 87, 33, 0.2) 40%, transparent 72%);
  filter: blur(40px);
  animation: invite-glow-shift 12s ease-in-out infinite alternate;
}

@keyframes invite-glow-shift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate3d(-36px, 24px, 0) scale(1.08);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(18px, -16px, 0) scale(1.04);
    opacity: 0.8;
  }
}

.invite-landing__close {
  position: absolute;
  top: 42px;
  right: 42px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
}

.invite-landing__close img {
  width: 32px;
  height: 32px;
  display: block;
}

.invite-landing__inner {
  position: relative;
  z-index: 1;
  width: min(1312px, 100%);
  margin: 0 auto;
  padding: 56px 64px;
  box-sizing: border-box;
}

.invite-landing__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.invite-landing__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.invite-landing__title {
  margin: 0;
  max-width: 802px;
  font: 800 54px/64px "Unbounded", var(--font);
  color: #fff;
}

.invite-landing__name {
  color: #ff7a00;
}

.invite-landing__text {
  margin: 0;
  max-width: 604px;
  font: 400 20px/30px var(--font);
  color: var(--text-tertiary, #626c77);
}

.invite-landing__text strong {
  color: #fafafa;
  font-weight: 700;
}

.invite-landing__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 36px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font: 500 16px/24px "Unbounded", var(--font);
  cursor: pointer;
  background: #ff7a00;
  box-shadow: 0 8px 12px rgba(255, 122, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.invite-landing__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255, 122, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .invite-landing__glow {
    animation: none;
  }

  .invite-landing__cta {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .invite-landing__inner {
    padding: 40px 24px;
  }

  .invite-landing__close {
    top: 20px;
    right: 16px;
  }

  .invite-landing__title {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 640px) {
  .invite-landing__title {
    font-size: 28px;
    line-height: 36px;
  }

  .invite-landing__text {
    font-size: 16px;
    line-height: 24px;
  }
}
