/* Auth V2 is deliberately scoped: authenticated product surfaces keep their current design. */
body:not(.game-route-active) .auth-screen.auth-v2 {
  --auth-page: var(--academy-page);
  --auth-brand: var(--academy-surface-soft);
  --auth-surface: var(--academy-surface);
  --auth-primary: var(--academy-primary);
  --auth-primary-hover: var(--academy-primary-hover);
  --auth-primary-soft: var(--academy-primary-soft);
  --auth-text: var(--academy-text);
  --auth-secondary: var(--academy-secondary);
  --auth-muted: var(--academy-muted);
  --auth-border: var(--academy-border);
  --auth-success: var(--academy-success);
  --auth-error: var(--academy-error);
  --auth-gold: var(--academy-gold);
  --auth-viewport-gutter: clamp(14px, 3vh, 28px);

  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--auth-viewport-gutter) 32px;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 8% 12%, rgba(104, 101, 216, 0.055), transparent 24rem),
    var(--auth-page);
  font-family: var(--academy-font-sans);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-shell {
  width: min(1220px, 100%);
  height: min(840px, calc(100dvh - var(--auth-viewport-gutter) - var(--auth-viewport-gutter)));
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(400px, 1fr);
  overflow: hidden;
  color: var(--auth-text);
  background: var(--auth-surface);
  border: 1px solid rgba(218, 220, 227, 0.86);
  border-radius: var(--academy-radius-hero);
  box-shadow: var(--academy-shadow-elevated);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 46px;
  overflow: hidden;
  padding: clamp(36px, 5vw, 68px);
  background: linear-gradient(145deg, #f8f7fd 0%, var(--auth-brand) 62%, #efedf9 100%);
  border-right: 1px solid rgba(218, 220, 227, 0.72);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual::before,
body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual::after {
  position: absolute;
  z-index: -1;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--auth-gold);
  border-radius: 50%;
  box-shadow:
    68px 42px 0 rgba(104, 101, 216, 0.24),
    178px -28px 0 rgba(201, 168, 102, 0.48),
    290px 72px 0 rgba(104, 101, 216, 0.18),
    420px 12px 0 rgba(201, 168, 102, 0.36);
  opacity: 0.72;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual::before {
  top: 24%;
  left: 13%;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual::after {
  right: 18%;
  bottom: 15%;
  transform: rotate(165deg);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-brand-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-brand-row .auth-logo {
  width: clamp(280px, 24vw, 360px);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  object-position: left center;
  filter: none;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-product-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-kicker,
body:not(.game-route-active) .auth-screen.auth-v2 .auth-eyebrow {
  margin: 0 0 14px;
  color: var(--auth-primary);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual h1 {
  max-width: 620px;
  margin: 0;
  color: var(--auth-text);
  font-family: inherit;
  font-size: clamp(3.1rem, 5.2vw, 5rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: none;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-product-intro {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--auth-secondary);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  font-weight: 480;
  line-height: 1.7;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits article > span {
  color: var(--auth-primary);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.9;
  border-top: 1px solid rgba(104, 101, 216, 0.44);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits h2 {
  margin: 0 0 3px;
  color: var(--auth-text);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 760;
  letter-spacing: -0.01em;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits p {
  margin: 0;
  color: var(--auth-secondary);
  font-size: 0.9rem;
  font-weight: 450;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-proof {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0;
  padding: 9px 13px;
  color: #555865;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(218, 220, 227, 0.82);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-proof span {
  margin-right: 6px;
  color: var(--auth-gold);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-atmosphere {
  position: absolute;
  right: -7%;
  bottom: -5%;
  z-index: 0;
  width: 78%;
  height: 58%;
  pointer-events: none;
  object-fit: cover;
  object-position: 72% 72%;
  opacity: 0.14;
  filter: saturate(0.78) contrast(0.9);
  -webkit-mask-image: linear-gradient(135deg, transparent 0 26%, rgba(0, 0, 0, 0.34) 52%, #000 100%);
  mask-image: linear-gradient(135deg, transparent 0 26%, rgba(0, 0, 0, 0.34) 52%, #000 100%);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-card {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 17px;
  overflow-y: auto;
  padding: clamp(18px, 2.6vh, 28px) clamp(32px, 4vw, 56px);
  color: var(--auth-text);
  background: var(--auth-surface);
  border: 0;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-logo.compact {
  display: none;
  width: 184px;
  height: auto;
  max-height: 62px;
  object-position: center;
  filter: none;
}

body:not(.game-route-active) .auth-screen.auth-v2 .segmented {
  width: min(410px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  border-bottom: 1px solid var(--auth-border);
}

body:not(.game-route-active) .auth-screen.auth-v2 .segmented button,
body:not(.game-route-active) .auth-screen.auth-v2 .auth-card .segmented button {
  position: relative;
  min-height: 44px;
  padding: 0 4px 12px;
  color: var(--auth-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

body:not(.game-route-active) .auth-screen.auth-v2 .segmented button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
  border-radius: 999px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .segmented button:hover {
  color: var(--auth-text);
}

body:not(.game-route-active) .auth-screen.auth-v2 .segmented button.active {
  color: var(--auth-primary);
  background: transparent;
}

body:not(.game-route-active) .auth-screen.auth-v2 .segmented button.active::after {
  background: var(--auth-primary);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form {
  width: min(410px, 100%);
  display: grid;
  gap: 13px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form > div:first-child {
  margin-bottom: 3px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form h2 {
  margin: 0 0 9px;
  color: var(--auth-text);
  font-family: inherit;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form p:not(.form-message):not(.auth-switch):not(.auth-reassurance):not(.auth-eyebrow) {
  margin: 0;
  color: var(--auth-secondary);
  font-size: 0.94rem;
  font-weight: 450;
  line-height: 1.55;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form label,
body:not(.game-route-active) .auth-screen.auth-v2 .auth-field {
  display: grid;
  gap: 7px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form label > span:first-child,
body:not(.game-route-active) .auth-screen.auth-v2 .auth-field > label {
  color: var(--auth-text);
  font-size: 0.8rem;
  font-weight: 700;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--auth-text);
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--academy-radius-control);
  outline: 0;
  box-shadow: none;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form input:hover {
  border-color: #bfc1cb;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(104, 101, 216, 0.14);
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form .code-input {
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-align: center;
}

body:not(.game-route-active) .auth-screen.auth-v2 .password-input {
  position: relative;
  display: block;
}

body:not(.game-route-active) .auth-screen.auth-v2 .password-input input {
  padding-right: 70px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .password-input button {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 52px;
  min-height: 44px;
  padding: 0 7px;
  color: var(--auth-primary);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 750;
  transform: translateY(-50%);
}

body:not(.game-route-active) .auth-screen.auth-v2 .field-help {
  color: var(--auth-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}

body:not(.game-route-active) .auth-screen.auth-v2 .primary-button,
body:not(.game-route-active) .auth-screen.auth-v2 .ghost-button {
  width: 100%;
  min-height: 46px;
  border-radius: var(--academy-radius-control);
  font-size: 0.91rem;
  font-weight: 760;
  box-shadow: none;
}

body:not(.game-route-active) .auth-screen.auth-v2 .primary-button {
  color: #fff;
  background: var(--auth-primary);
  border-color: var(--auth-primary);
}

body:not(.game-route-active) .auth-screen.auth-v2 .primary-button:hover:not(:disabled) {
  color: #fff;
  background: var(--auth-primary-hover);
  border-color: var(--auth-primary-hover);
  transform: none;
}

body:not(.game-route-active) .auth-screen.auth-v2 .ghost-button {
  color: var(--auth-primary);
  background: var(--auth-primary-soft);
  border-color: transparent;
}

body:not(.game-route-active) .auth-screen.auth-v2 .ghost-button:hover:not(:disabled) {
  color: var(--auth-primary-hover);
  background: #e4e3f8;
  border-color: transparent;
}

body:not(.game-route-active) .auth-screen.auth-v2 .text-button {
  width: max-content;
  min-height: 44px;
  padding: 0;
  color: var(--auth-primary);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}

body:not(.game-route-active) .auth-screen.auth-v2 .text-button:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-switch {
  margin: -2px 0 0;
  color: var(--auth-secondary);
  font-size: 0.84rem;
  text-align: center;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-switch .text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: -11px;
  margin-left: 2px;
  font-size: inherit;
  vertical-align: middle;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-reassurance {
  margin: -6px 0 0;
  color: var(--auth-muted);
  font-size: 0.75rem;
  text-align: center;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-back {
  justify-self: center;
}

body:not(.game-route-active) .auth-screen.auth-v2 .auth-form > .text-button {
  margin-block: -7px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .login-turnstile {
  width: 100%;
  min-height: 65px;
}

body:not(.game-route-active) .auth-screen.auth-v2 .form-message {
  min-height: 22px;
  margin: -2px 0 0;
  color: var(--auth-secondary);
  font-size: 0.8rem;
  font-weight: 650;
}

body:not(.game-route-active) .auth-screen.auth-v2 .form-message.error {
  color: var(--auth-error);
}

body:not(.game-route-active) .auth-screen.auth-v2 .form-message.success {
  color: var(--auth-success);
}

body:not(.game-route-active) .auth-screen.auth-v2 .form-message:not(:empty) {
  padding: 8px 10px;
  border-radius: var(--academy-radius-small);
  background: var(--academy-surface-soft);
}

body:not(.game-route-active) .auth-screen.auth-v2 .form-message.error:not(:empty) {
  background: #fff7f8;
}

body:not(.game-route-active) .auth-screen.auth-v2 .form-message.success:not(:empty) {
  background: #f2faf6;
}

body:not(.game-route-active) .auth-screen.auth-v2 :is(button, input):focus-visible {
  outline: 3px solid rgba(104, 101, 216, 0.24);
  outline-offset: 2px;
}

/* Onboarding shares the calm Academy entry language without reviving the legacy parchment treatment. */
body[data-route="onboarding"]:not(.game-route-active) .onboarding-page {
  width: min(var(--academy-content-standard), calc(100% - 48px));
  min-height: calc(100vh - 70px);
  padding: var(--academy-space-6) 0 var(--academy-space-7);
}

body[data-route="onboarding"]:not(.game-route-active) .onboarding-card {
  width: min(820px, 100%);
  padding: clamp(28px, 5vw, 48px);
  color: var(--academy-text);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--academy-surface-soft) 88%, transparent)),
    url("/assets/moonveil-academy-hero.png") right center / cover no-repeat;
  border: 1px solid var(--academy-border);
  border-radius: var(--academy-radius-hero);
  box-shadow: var(--academy-shadow-elevated);
}

body[data-route="onboarding"]:not(.game-route-active) .onboarding-card::after {
  display: none;
}

body[data-route="onboarding"]:not(.game-route-active) .onboarding-card h1 {
  max-width: 640px;
  margin: var(--academy-space-2) 0 var(--academy-space-3);
  color: var(--academy-text);
  font-family: var(--academy-font-sans);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

body[data-route="onboarding"]:not(.game-route-active) .onboarding-card > p:not(.eyebrow):not(.form-message) {
  max-width: 620px;
  color: var(--academy-secondary);
  line-height: 1.6;
}

body[data-route="onboarding"]:not(.game-route-active) .language-choice-grid {
  gap: var(--academy-space-4);
  margin-top: var(--academy-space-5);
}

body[data-route="onboarding"]:not(.game-route-active) .language-choice {
  min-height: 170px;
  padding: var(--academy-space-5);
  color: var(--academy-text);
  background: var(--academy-surface);
  border: 1px solid var(--academy-border);
  border-radius: var(--academy-radius-card);
  box-shadow: var(--academy-shadow-subtle);
  transition: border-color var(--academy-transition-fast), box-shadow var(--academy-transition-fast), transform var(--academy-transition-fast);
}

body[data-route="onboarding"]:not(.game-route-active) .language-choice:hover {
  color: var(--academy-text);
  background: var(--academy-surface);
  border-color: rgba(104, 101, 216, 0.34);
  box-shadow: var(--academy-shadow-elevated);
  transform: translateY(-2px);
}

body[data-route="onboarding"]:not(.game-route-active) .language-choice > span {
  width: 50px;
  height: 50px;
  background: var(--academy-primary-soft);
  border: 1px solid #d8d7f2;
}

body[data-route="onboarding"]:not(.game-route-active) .language-choice > strong {
  color: var(--academy-text);
  font-family: var(--academy-font-sans);
  font-size: 1.25rem;
}

body[data-route="onboarding"]:not(.game-route-active) .language-choice > small {
  color: var(--academy-secondary);
}

body[data-route="onboarding"]:not(.game-route-active) .language-choice:focus-visible {
  outline: 0;
  box-shadow: var(--academy-focus-ring);
}

@media (min-width: 981px) and (max-height: 820px) {
  body:not(.game-route-active) .auth-screen.auth-v2 {
    --auth-viewport-gutter: 10px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual {
    gap: clamp(12px, 2vh, 20px);
    padding: clamp(24px, 4vh, 34px) clamp(38px, 4vw, 58px);
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual h1 {
    font-size: clamp(2.8rem, 4.4vw, 4rem);
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-product-intro {
    margin-top: 16px;
    line-height: 1.55;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits {
    gap: 12px;
    margin-top: 20px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits p {
    font-size: 0.85rem;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-card {
    gap: 14px;
    padding: clamp(16px, 3vh, 26px) clamp(30px, 3.5vw, 48px);
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .segmented button,
  body:not(.game-route-active) .auth-screen.auth-v2 .auth-card .segmented button {
    min-height: 44px;
    padding-bottom: 9px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-form {
    gap: 9px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-form h2 {
    margin-bottom: 5px;
    font-size: clamp(1.75rem, 2.5vw, 2.05rem);
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-form p:not(.form-message):not(.auth-switch):not(.auth-reassurance):not(.auth-eyebrow) {
    line-height: 1.4;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-form label,
  body:not(.game-route-active) .auth-screen.auth-v2 .auth-field {
    gap: 5px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-form input,
  body:not(.game-route-active) .auth-screen.auth-v2 .primary-button,
  body:not(.game-route-active) .auth-screen.auth-v2 .ghost-button {
    min-height: 44px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-reassurance {
    margin-top: -3px;
  }
}

@media (min-width: 981px) and (max-height: 780px) {
  body:not(.game-route-active) .auth-screen.auth-v2 .auth-card {
    gap: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-form {
    gap: 7px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-form > div:first-child {
    margin-bottom: 0;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .segmented button,
  body:not(.game-route-active) .auth-screen.auth-v2 .auth-card .segmented button {
    min-height: 44px;
    padding-bottom: 7px;
  }
}

@media (max-width: 980px) {
  body:not(.game-route-active) .auth-screen.auth-v2 {
    --auth-viewport-gutter: 24px;
    padding: 24px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-shell {
    width: min(720px, 100%);
    height: auto;
    min-height: calc(100dvh - 48px);
    grid-template-columns: 1fr;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-card {
    order: 1;
    padding: 42px clamp(28px, 8vw, 68px);
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-logo.compact {
    display: block;
    width: clamp(210px, 32vw, 260px);
    max-height: 87px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual {
    order: 2;
    min-height: auto;
    gap: 34px;
    padding: 42px clamp(28px, 8vw, 68px);
    border-top: 1px solid var(--auth-border);
    border-right: 0;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-atmosphere {
    right: -10%;
    bottom: -8%;
    width: 66%;
    height: 62%;
    opacity: 0.09;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-brand-row {
    display: none;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual h1 {
    max-width: 540px;
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body:not(.game-route-active) .auth-screen.auth-v2 {
    display: block;
    padding: 0;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-shell {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-card {
    align-content: start;
    gap: 22px;
    min-height: 100dvh;
    padding: 28px 22px 36px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-logo.compact {
    width: clamp(170px, 48vw, 200px);
    max-height: 67px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-visual {
    padding: 38px 22px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-product-intro {
    margin-top: 16px;
    line-height: 1.6;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-benefits {
    display: none;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-atmosphere {
    display: none;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .segmented {
    gap: 12px;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .auth-form h2 {
    font-size: 1.9rem;
  }

  body:not(.game-route-active) .auth-screen.auth-v2 .text-button,
  body:not(.game-route-active) .auth-screen.auth-v2 .password-input button {
    min-height: 44px;
  }

  body[data-route="onboarding"]:not(.game-route-active) .onboarding-page {
    width: min(100% - 24px, 520px);
    min-height: calc(100vh - 70px);
    padding: var(--academy-space-4) 0 var(--academy-space-6);
  }

  body[data-route="onboarding"]:not(.game-route-active) .onboarding-card {
    padding: var(--academy-space-5) var(--academy-space-4);
    border-radius: var(--academy-radius-card);
  }

  body[data-route="onboarding"]:not(.game-route-active) .language-choice-grid {
    grid-template-columns: 1fr;
  }

  body[data-route="onboarding"]:not(.game-route-active) .language-choice {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.game-route-active) .auth-screen.auth-v2 *,
  body:not(.game-route-active) .auth-screen.auth-v2 *::before,
  body:not(.game-route-active) .auth-screen.auth-v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  body[data-route="onboarding"]:not(.game-route-active) .language-choice {
    transition: none;
  }
}
