@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-cyr-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/montserrat-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-cyr-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/montserrat-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-cyr-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-cyr-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-cyr-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #0d6efd;
  --dark: #333;
  --panel: rgba(10, 14, 24, 0.78);
  --panel-border: rgba(255, 255, 255, 0.14);
  --bg-deep: #05070f;
  --bg-mid: #0a1224;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  max-height: 100%;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
  overflow-y: hidden;
}

body.body-home {
  margin: 0;
  min-height: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  font-family: Roboto, sans-serif;
  background: var(--bg-deep);
}

.body-home .scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(13, 110, 253, 0.38), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(0, 180, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 10% 80%, rgba(88, 28, 255, 0.12), transparent 50%),
    linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #03050a 100%);
}

.body-home .scene-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 40%, rgba(13, 110, 253, 0.22), transparent 28%),
    radial-gradient(circle at 70% 55%, rgba(56, 189, 248, 0.12), transparent 32%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.body-home .scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.body-home .bgv {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.body-home .overlay-home {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 50% at 50% 40%, rgba(5, 8, 18, 0.15), rgba(5, 8, 18, 0.72) 75%),
    linear-gradient(180deg, rgba(5, 8, 18, 0.35) 0%, transparent 22%, transparent 70%, rgba(5, 8, 18, 0.55) 100%);
  pointer-events: none;
}

.main {
  position: relative;
  z-index: 2;
}

.site-header {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding: clamp(0.45rem, 2.2vmin, 0.9rem) 0 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2.5rem;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem 0.28rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 24, 0.55);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.user-chip:hover,
.user-chip:focus {
  color: #fff;
  border-color: rgba(13, 110, 253, 0.55);
  background: rgba(13, 110, 253, 0.18);
}

.user-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #9ec5fe;
}

.user-chip-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.user-chip-initials {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.body-home .main.main-home {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(1.1rem, 5.5vmin, 2.5rem) clamp(1rem, 4.5vmin, 2rem);
}

.body-home .main.main-home.main-with-header {
  padding-top: clamp(0.75rem, 3.2vmin, 1.35rem);
}

.body-home .main.main-home > .container {
  width: 100%;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-column {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.body-auth .main.main-home {
  align-items: stretch;
}

.page-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.page-stack-wide {
  max-width: 32rem;
}

.page-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.landing {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 4vh, 2.25rem);
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.landing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100%;
}

.landing-brand .logo-hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.landing-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  gap: 1rem;
  min-height: 100%;
}

.landing-copy-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  flex: 1 1 auto;
  justify-content: center;
}

.landing-slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.landing-cta,
.landing-cta-top,
.landing-cta-bottom {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

/* Горизонтально: «Играть» над слоганом; вертикально — после слогана, до описания */
.landing-cta-top {
  order: -1;
}

.landing-cta-bottom .social-buttons {
  display: contents;
}

.landing-play {
  min-height: 2.75rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.landing-copy .home-desc {
  margin-top: 0;
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
  max-width: min(1100px, 100%);
  margin: 0 auto;
  min-height: 0;
}

.auth-split-form,
.auth-split-brand {
  width: 100%;
  animation: fadeInUp 0.85s ease both;
}

.auth-split-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  animation-delay: 0.12s;
}

.auth-panel-fluid {
  width: 100%;
  max-width: min(28rem, 100%);
  padding: clamp(1.15rem, 2.8vh, 2rem) clamp(1.1rem, 2.2vw, 1.75rem);
}

.auth-messages {
  width: min(32rem, 100%);
  max-width: 100%;
  margin: 0;
  flex: 0 0 auto;
  align-self: center;
  display: grid;
  gap: 0.55rem;
  box-sizing: border-box;
}

.auth-message {
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  text-align: left;
  background: rgba(13, 110, 253, 0.18);
  border: 1px solid rgba(13, 110, 253, 0.4);
  color: #9ec5fe;
}

.auth-message-error,
.auth-message-danger {
  background: rgba(220, 53, 69, 0.18);
  border-color: rgba(220, 53, 69, 0.45);
  color: #ffb3bc;
}

.auth-message-success,
.auth-message-info {
  background: rgba(25, 135, 84, 0.18);
  border-color: rgba(25, 135, 84, 0.4);
  color: #9ddeb8;
}

.connection-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.connection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
}

.connection-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.profile-phone-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.phone-status {
  font-family: Montserrat, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.phone-status-verified {
  color: #8fd49a;
}

.phone-status-unverified {
  color: rgba(255, 255, 255, 0.55);
}

.connection-badge {
  font-family: Montserrat, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.connection-badge-local {
  color: #9ec5fe;
}

.connection-badge-regkursk {
  color: #9ec5fe;
}

.connection-badge-yandex {
  color: #ff9f8a;
}

.connection-badge-vk {
  color: #7ec2ff;
}

.connection-detail {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  word-break: break-word;
}

.connection-status {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  white-space: nowrap;
}

.connection-empty {
  text-align: center;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}

.connection-disconnect {
  flex-shrink: 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.body-home .logo {
  max-width: 220px;
  width: 46vw;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(13, 110, 253, 0.25));
}

.body-home .landing-brand .logo.logo-hero {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin-bottom: 0;
  object-fit: contain;
  object-position: center;
}

.body-home .logo.logo-split {
  max-width: min(320px, 34vw);
  width: auto;
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.body-home .main-text {
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.5625em);
  letter-spacing: 0.06em;
  line-height: 1.25;
  animation: fadeInUp 0.9s ease both;
}

.body-home .main-text + .main-text {
  animation-delay: 0.15s;
}

.home-desc {
  font-family: Roboto, sans-serif;
  max-width: 26rem;
  margin: 0;
  opacity: 0.88;
  font-size: 1.05rem !important;
  line-height: 1.45;
  animation: fadeInUp 1s ease 0.35s both;
}

.btn-regkursk {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-regkursk:hover,
.btn-regkursk:focus {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.35);
}

.btn-regkursk.disabled {
  opacity: 0.65;
  pointer-events: none;
}

.auth-panel code {
  color: #9ec5fe;
  word-break: break-all;
}

.auth-panel-row {
  width: 100%;
  animation: fadeInUp 0.85s ease 0.2s both;
}

.auth-panel {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.15rem;
  padding: clamp(1.15rem, 2.5vh, 1.6rem) clamp(1.1rem, 2vw, 1.45rem);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
}

.auth-title {
  font-family: Montserrat, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  text-align: center;
}

.auth-lead,
.auth-hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  text-align: center;
}

.auth-form .form-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.auth-form .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 0.65rem;
  padding: clamp(0.55rem, 1.35vh, 0.8rem) 0.9rem;
  font-size: clamp(0.92rem, 1.6vh, 1rem);
}

.auth-form .mb-3 {
  margin-bottom: clamp(0.65rem, 1.6vh, 1rem) !important;
}

.auth-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.auth-form .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-check-label {
  color: rgba(255, 255, 255, 0.78);
}

.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  padding: clamp(0.55rem, 1.4vh, 0.75rem) 1rem;
}

.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

.auth-errors {
  background: rgba(220, 53, 69, 0.18);
  border: 1px solid rgba(220, 53, 69, 0.45);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  color: #ffb3bc;
  font-size: 0.9rem;
}

.auth-link {
  color: #9ec5fe;
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-link:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-switch {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

.auth-form .invalid-feedback {
  color: #ffb3bc;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.16);
}

.social-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.social-buttons-center,
.auth-panel .social-buttons {
  display: flex;
  width: 100%;
  justify-content: center;
}

.social-btn {
  --social-btn-size: 2.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-btn-size);
  height: var(--social-btn-size);
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  vertical-align: middle;
  flex: 0 0 auto;
  overflow: hidden;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.social-btn:hover,
.social-btn:focus {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.social-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.social-btn-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-btn-icon-wide {
  width: 82%;
  height: auto;
  max-height: 70%;
  object-fit: contain;
}

.social-btn-mark {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
  user-select: none;
}

.social-btn-login {
  width: auto;
  min-width: var(--social-btn-size);
  padding: 0 0.95rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.social-btn-login:hover,
.social-btn-login:focus {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.social-btn-max,
.social-btn-vk {
  background-color: transparent;
  border-color: transparent;
  padding: 0;
}

.social-btn-yandex {
  background-color: #fc3f1d;
  border-color: #fc3f1d;
  padding: 0;
}

.social-btn-regkursk {
  background-color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}

/* совместимость со старыми классами, если кэш отдаёт старый HTML */
.btn-social,
.btn-social-icon {
  border-radius: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  color: #fff !important;
  white-space: nowrap;
}

.btn-social {
  flex: 1 1 0;
  min-width: 6.5rem;
  padding: clamp(0.45rem, 1.2vh, 0.65rem) 0.85rem;
}

.btn-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  flex: 0 0 auto;
}

.btn-social.btn-regkursk,
.btn-social-icon.btn-regkursk,
.btn.btn-regkursk {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.btn-social.btn-max,
.btn-social-icon.btn-max,
.btn.btn-max {
  background-color: #111 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}

.btn-social.btn-yandex,
.btn-social-icon.btn-yandex,
.btn.btn-yandex {
  background-color: #fc3f1d !important;
  border-color: #fc3f1d !important;
  color: #fff !important;
}

.btn-social.btn-vk,
.btn-social-icon.btn-vk,
.btn.btn-vk {
  background-color: #0077ff !important;
  border-color: #0077ff !important;
  color: #fff !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes auroraDrift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.08);
  }
}

@media (max-width: 991.98px) {
  .body-home:not(.body-auth) .landing {
    flex: 0 1 auto;
    width: 100%;
    min-height: 0;
    justify-content: center;
    gap: clamp(0.45rem, 2vmin, 0.9rem);
  }

  .landing-split {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    justify-items: center;
    gap: clamp(0.4rem, 1.8vmin, 0.85rem);
  }

  .landing-brand {
    height: auto;
    min-height: 0;
    align-items: center;
  }

  .body-home .landing-brand .logo.logo-hero {
    height: auto;
    width: min(220px, 48vw);
    max-width: min(220px, 48vw);
    margin: 0;
  }

  .landing-copy {
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: clamp(0.65rem, 2.4vmin, 1.1rem);
    min-height: 0;
  }

  .landing-copy-body {
    align-items: center;
  }

  .landing-slogan {
    align-items: center;
  }

  .landing-cta-top {
    order: 0;
  }

  .landing-cta,
  .landing-cta-top,
  .landing-cta-bottom {
    justify-content: center;
  }

  .auth-split {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .auth-split-brand {
    display: none;
  }

  .auth-panel-fluid {
    max-width: 28rem;
    margin: 0 auto;
  }

  .body-home .logo.logo-split {
    max-width: min(180px, 42vw);
    margin-bottom: clamp(0.4rem, 1.5vmin, 0.8rem);
  }
}

@media (max-width: 767.98px) {
  .page-stack {
    gap: 1.35rem;
  }

  .home-desc {
    font-size: 0.98rem !important;
  }

  .social-buttons {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .body-home .scene-bg::before,
  .body-home .main-text,
  .body-home .main-text + .main-text,
  .home-desc,
  .auth-panel-row,
  .auth-split-form,
  .auth-split-brand {
    animation: none;
  }
}
