/* Freestyle Auth Entry v6: Apps entry grammar in Freestyle-owned material. */
:root {
  --ft-entry-canvas: #10110f;
  --ft-entry-surface: #191b17;
  --ft-entry-surface-deep: #141510;
  --ft-entry-text: #f3efe6;
  --ft-entry-muted: #aaa89f;
  --ft-entry-line: rgba(211, 202, 176, 0.18);
  --ft-entry-accent: #e6b45e;
  --ft-entry-accent-strong: #f0c46f;
  --ft-entry-accent-deep: #b8782d;
  --ft-entry-olive: #8f9b78;
  --ft-entry-danger: #efaaa0;
  --ft-entry-success: #a8d6ae;
  --ft-entry-focus: #fff0bd;
  --ft-entry-control: 48px;
  --ft-entry-inline-max: 560px;
  --ft-entry-gutter: clamp(14px, 3.6vw, 18px);
  --ft-entry-padding: clamp(14px, 3vw, 22px);
  --ft-entry-rhythm: clamp(10px, 2vw, 14px);
  --ft-entry-motion: cubic-bezier(.22, .68, .24, 1);
  --ft-cookie-notice-reserve: 0px;
}

html:has([data-auth-entry-canon="freestyle-entry-v6"]) {
  min-width: 0;
  color-scheme: dark;
  background: var(--ft-entry-canvas);
}

body:has([data-auth-entry-canon="freestyle-entry-v6"]) {
  min-width: 0;
  background:
    radial-gradient(circle at 50% 7%, rgba(143, 155, 120, .12), transparent 33%),
    var(--ft-entry-canvas);
}

:root .login-overlay:has([data-auth-entry-canon="freestyle-entry-v6"]) {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: safe center;
  justify-content: center;
  padding:
    max(var(--ft-entry-gutter), env(safe-area-inset-top, 0px))
    max(var(--ft-entry-gutter), env(safe-area-inset-right, 0px))
    calc(max(var(--ft-entry-gutter), env(safe-area-inset-bottom, 0px)) + var(--ft-cookie-notice-reserve))
    max(var(--ft-entry-gutter), env(safe-area-inset-left, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  overscroll-behavior-x: none;
  background: transparent;
  -webkit-overflow-scrolling: touch;
}

:root .login-overlay:has([data-auth-entry-canon="freestyle-entry-v6"])[hidden] {
  display: none;
}

:root .login-overlay--auth-anchored:has([data-auth-entry-canon="freestyle-entry-v6"]) {
  align-items: safe flex-start;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "identity"
    "auth"
    "account-help";
  gap: var(--ft-entry-rhythm);
  box-sizing: border-box;
  width: min(100%, var(--ft-entry-inline-max));
  max-width: var(--ft-entry-inline-max);
  min-width: 0;
  min-height: 0;
  margin-block: auto;
  padding: var(--ft-entry-padding);
  border: 1px solid var(--ft-entry-line);
  border-radius: clamp(22px, 5vw, 30px);
  color: var(--ft-entry-text);
  background:
    radial-gradient(circle at 10% -8%, rgba(230, 180, 94, .12), transparent 34%),
    linear-gradient(150deg, rgba(29, 31, 26, .985), rgba(18, 19, 15, .995));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .43), inset 0 1px 0 rgba(255, 255, 255, .035);
}

:root .login-overlay--auth-anchored [data-auth-entry-canon="freestyle-entry-v6"] {
  margin-block-end: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] > [data-app-entry-region] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] [data-app-entry-region="identity"] { grid-area: identity; }
:root [data-auth-entry-canon="freestyle-entry-v6"] [data-app-entry-region="auth"] { grid-area: auth; }
:root [data-auth-entry-canon="freestyle-entry-v6"] [data-app-entry-region="account-help"] { grid-area: account-help; }

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-row {
  display: grid;
  grid-template-columns: clamp(58px, 11vw, 66px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.5vw, 18px);
  min-width: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-mark,
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-mark img {
  display: block;
  width: clamp(58px, 11vw, 66px);
  height: clamp(58px, 11vw, 66px);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-mark {
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-panel h1 {
  margin: 0;
  font-size: clamp(29px, 7vw, 39px);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.015em;
  white-space: nowrap;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-descriptor {
  margin: 4px 0 0;
  color: var(--ft-entry-muted);
  font-size: clamp(13px, 2.7vw, 15px);
  font-weight: 650;
  line-height: 1.3;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .login-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  text-align: left;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 3px;
  border: 1px solid rgba(230, 180, 94, .22);
  border-radius: 999px;
  background: rgba(5, 6, 4, .46);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-tab {
  display: inline-flex;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(243, 239, 230, .68);
  background: linear-gradient(135deg, rgba(240, 196, 111, 0), rgba(143, 155, 120, 0));
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-tab[aria-selected="true"] {
  border-color: rgba(230, 180, 94, .44);
  color: #211a0f;
  background: linear-gradient(135deg, var(--ft-entry-accent-strong), #dca44b 58%, var(--ft-entry-olive));
  box-shadow: 0 0 16px rgba(230, 180, 94, .24);
  animation: ft-entry-accent-pulse 3.8s ease-in-out infinite;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-tab[aria-disabled="true"] {
  pointer-events: none;
  opacity: .58;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] :is(a, button, input):focus-visible {
  outline: 2px solid var(--ft-entry-focus);
  outline-offset: 3px;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-zone {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

/* Форма и замок делят одну строку сетки: высота строки равна большему из них,
   поэтому показ и снятие замка не меняют высоту зоны и не запускают вторую
   анимацию, а замку никогда не нужен собственный скролл. */
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-pane-stack,
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate {
  grid-area: 1 / 1;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-status-stack {
  grid-area: 2 / 1;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-zone.auth-zone--animating {
  overflow: hidden;
  /* Высота — единственное, что анимируется; containment удерживает пересчёт
     внутри зоны, чтобы кадр не перерисовывал всю панель. */
  contain: layout paint;
  transition: height 320ms var(--ft-entry-motion);
}

/* Пока идёт переход высоты, бесконечные подсветки замирают: их box-shadow
   перерисовывается каждый кадр и на слабой машине это читается как рывки. */
:root [data-auth-entry-canon="freestyle-entry-v6"][data-auth-motion="settling"] .auth-tab,
:root [data-auth-entry-canon="freestyle-entry-v6"][data-auth-motion="settling"] .auth-registration-gate__handle {
  animation-play-state: paused;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-pane-stack,
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-status-stack {
  display: grid;
  min-width: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-pane {
  display: none;
  width: 100%;
  min-width: 0;
  margin: 0;
  visibility: hidden;
  opacity: 0;
  transform: scale(.97) translateY(6px);
  pointer-events: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-pane[data-auth-pane-state="active"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  animation: ft-entry-reveal 180ms var(--ft-entry-motion) both;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-pane[data-auth-pane-state="reserve"] {
  display: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field > span:first-child {
  color: rgba(243, 239, 230, .72);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field__control {
  position: relative;
  display: block;
  min-width: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field__control svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(230, 180, 94, .72);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: var(--ft-entry-control);
  padding: 11px 14px 11px 42px;
  border: 1px solid rgba(229, 226, 214, .14);
  border-radius: 14px;
  color: var(--ft-entry-text);
  background: rgba(255, 255, 255, .045);
  font: inherit;
  font-size: 16px;
  outline: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field input:focus {
  border-color: rgba(230, 180, 94, .6);
  box-shadow: 0 0 0 3px rgba(230, 180, 94, .1);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field input[aria-invalid="true"] {
  border-color: rgba(239, 170, 160, .68);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field input:-webkit-autofill,
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field input:-webkit-autofill:hover,
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ft-entry-text);
  caret-color: var(--ft-entry-text);
  -webkit-box-shadow: 0 0 0 1000px #22241e inset;
  transition: background-color 9999s ease-out 0s;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] :is(#loginBtn, #registerBtn) {
  box-sizing: border-box;
  width: 100%;
  min-height: var(--ft-entry-control);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(230, 180, 94, .55);
  border-radius: 14px;
  color: #211a0f;
  background: linear-gradient(135deg, var(--ft-entry-accent-strong), #dca44b 65%, var(--ft-entry-olive));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] :is(#loginBtn, #registerBtn):disabled {
  cursor: not-allowed;
  filter: saturate(.55);
  opacity: .62;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate {
  z-index: 2;
  display: grid;
  align-content: safe center;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 8px 0;
  border: 0;
  border-radius: 16px;
  color: var(--ft-entry-text);
  background: transparent;
  animation: ft-entry-reveal 180ms var(--ft-entry-motion) both;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] :has(.auth-registration-gate:not([hidden])) .auth-pane-stack,
:root [data-auth-entry-canon="freestyle-entry-v6"] :has(.auth-registration-gate:not([hidden])) .auth-mode-tail--register {
  display: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate[hidden] { display: none; }

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__eyebrow {
  margin: 0;
  color: rgba(241, 208, 113, .88);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__copy,
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__feedback {
  margin: 0;
  color: rgba(243, 239, 230, .72);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__feedback {
  min-height: 15px;
  color: var(--ft-entry-danger);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__feedback:empty {
  display: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__mechanism {
  display: grid;
  width: min(100%, 276px);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__wheels {
  display: grid;
  grid-template-columns: repeat(4, minmax(36px, 1fr));
  gap: 5px;
  /* Место под нижнюю стрелку: её указательная цель выходит за видимую коробку,
     иначе цель легла бы поверх ручки. */
  margin-bottom: 18px;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__wheel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(241, 208, 113, .38);
  border-radius: 10px;
  background: linear-gradient(180deg, #4a3a1a, #c79a3f 30%, #8a6a2f 70%, #4a3a1a);
  touch-action: pinch-zoom;
  /* Без этого нажатие на цифру начинает нативное выделение текста и тяга диска
     превращается в выделение вместо прокрутки. */
  user-select: none;
  -webkit-user-select: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__wheel[data-registration-gate-selected="true"] {
  border-color: #fff2af;
  box-shadow: 0 0 0 1px rgba(255, 242, 175, .36);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__wheel input,
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__handle,
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__step {
  box-sizing: border-box;
  min-height: 44px;
  border: 0;
  color: inherit;
  font: inherit;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__wheel input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border-radius: 9px;
  color: #eae6da;
  background: rgba(4, 5, 8, .48);
  font-size: 27px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-shadow: 0 0 5px rgba(234, 230, 218, .28);
  outline: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__step {
  position: relative;
  flex: 0 0 20px;
  width: 100%;
  min-width: 0;
  min-height: 20px;
  padding: 0;
  border-radius: 9px;
  color: rgba(35, 26, 10, .65);
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color 100ms ease, transform 100ms ease;
}

/* Видимая стрелка компактная, чтобы диск не превращался в башню, но цель
   указателя остаётся 44px. Недостающая высота берётся наружу, от цифры, — так
   цифра сохраняет собственную полную коробку. */
:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 44px;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__step[data-registration-gate-step="up"]::after { bottom: 0; }

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__step[data-registration-gate-step="down"]::after { top: 0; }

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__step:hover { color: rgba(35, 26, 10, .95); }

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__step:active { transform: scale(.85); }

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate__handle {
  width: min(100%, 276px);
  min-height: var(--ft-entry-control);
  padding: 9px 12px;
  border: 1px solid rgba(241, 208, 113, .5);
  border-radius: 999px;
  color: #3a2606;
  background: linear-gradient(180deg, #fce8ac, #e9bc58 55%, #c49735);
  font-weight: 900;
  cursor: pointer;
  animation: ft-entry-gate-gold-pulse 3.8s ease-in-out infinite;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate :is(input, button):focus-visible {
  outline: 2px solid #fff2af;
  outline-offset: 2px;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-registration-gate :is(input, button):disabled {
  cursor: not-allowed;
  opacity: .52;
}

:root [data-auth-entry-canon="freestyle-entry-v6"][data-registration-gate-state="resolving"] .auth-registration-gate__mechanism,
:root [data-auth-entry-canon="freestyle-entry-v6"][data-registration-gate-state="disabled"] .auth-registration-gate__mechanism {
  display: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"][data-registration-gate-state="unavailable"] .auth-registration-gate__wheels {
  display: none;
}

:root [data-auth-entry-canon="freestyle-entry-v6"][data-registration-gate-state="unlocking"] .auth-registration-gate {
  animation: ft-entry-gate-yield 180ms ease-out both;
}

:root [data-auth-entry-canon="freestyle-entry-v6"][data-registration-gate-state="disabled"] .auth-registration-gate,
:root [data-auth-entry-canon="freestyle-entry-v6"][data-registration-gate-state="unavailable"] .auth-registration-gate {
  border: 1px solid rgba(239, 170, 160, .28);
  background: rgba(95, 34, 30, .13);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-status-stack {
  gap: 8px;
  margin-top: 8px;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-mode-tail {
  display: none;
  min-width: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-mode-tail[aria-hidden="false"],
:root [data-auth-entry-canon="freestyle-entry-v6"][data-auth-mode="register"] .auth-mode-tail--register {
  display: block;
  animation: ft-entry-reveal 180ms var(--ft-entry-motion) both;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-consent-list {
  display: grid;
  gap: 7px;
  min-width: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: rgba(243, 239, 230, .75);
  font-size: 11.75px;
  line-height: 1.3;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ft-entry-accent);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] a { color: #edc674; }

:root [data-auth-entry-canon="freestyle-entry-v6"] .login-error {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(239, 170, 160, .3);
  border-radius: 12px;
  color: var(--ft-entry-danger);
  background: rgba(95, 34, 30, .17);
  font-size: 12.5px;
  line-height: 1.32;
  text-align: center;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .login-error[hidden] { display: none; }

:root [data-auth-entry-canon="freestyle-entry-v6"] .login-error[data-auth-feedback-kind="pending"] {
  border-color: rgba(168, 214, 174, .3);
  color: var(--ft-entry-success);
  background: rgba(37, 91, 53, .14);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .login-error[data-auth-feedback-kind="transport-uncertain"] {
  border-color: rgba(230, 180, 94, .36);
  color: #edc674;
  background: rgba(107, 78, 24, .17);
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-page-footer {
  display: grid;
  justify-items: center;
  text-align: center;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 12px;
  margin: 0;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .auth-legal-footer a {
  color: rgba(220, 213, 194, .68);
  font-size: 11px;
  line-height: 1.35;
  text-decoration-color: rgba(230, 180, 94, .3);
  text-underline-offset: 3px;
}

:root [data-auth-entry-canon="freestyle-entry-v6"] .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Мягкая передача от заставки к панели: заливка обложки гаснет над уже
   отрисованным входом той же длительностью, что и сцены Apps. Специфичность
   выше вендорного правила состояния, вендорные байты не трогаем. */
:root .xapp-c3[data-freestyle-cover-handoff="leaving"] {
  opacity: 0;
  transition: opacity 240ms cubic-bezier(.22, .68, .24, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root .xapp-c3[data-freestyle-cover-handoff="leaving"] {
    transition-duration: 80ms;
  }
}

@keyframes ft-entry-reveal {
  from { opacity: 0; transform: scale(.97) translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes ft-entry-gate-yield {
  to { opacity: 0; transform: scale(.97); }
}

@keyframes ft-entry-gate-gold-pulse {
  0%, 100% { box-shadow: -4px 3px 15px -4px rgba(241, 208, 113, .32); }
  50% { box-shadow: 4px 3px 15px -4px rgba(241, 208, 113, .48); }
}

@keyframes ft-entry-accent-pulse {
  0%, 100% { box-shadow: -4px 3px 16px -5px rgba(230, 180, 94, .28); }
  50% { box-shadow: 4px 3px 18px -5px rgba(143, 155, 120, .42); }
}

@media (max-width: 420px) {
  :root [data-auth-entry-canon="freestyle-entry-v6"] {
    padding: 14px;
    border-radius: 22px;
  }

  :root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-panel h1 {
    font-size: clamp(27px, 8.1vw, 34px);
  }
}

@media (max-width: 330px) {
  :root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
  }

  :root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-mark,
  :root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-mark img {
    width: 52px;
    height: 52px;
  }

  :root [data-auth-entry-canon="freestyle-entry-v6"] .auth-brand-panel h1 {
    font-size: 26px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-height: 640px) {
  :root .login-overlay:has([data-auth-entry-canon="freestyle-entry-v6"]) {
    align-items: safe flex-start;
  }

  /* Keep the notice in the document after a tall auth panel instead of
     pinning it over the current viewport in phone/landscape-height windows. */
  body[data-ft-surface="auth"]:has([data-auth-entry-canon="freestyle-entry-v6"]) {
    position: relative;
  }

  body[data-ft-surface="auth"]:has([data-auth-entry-canon="freestyle-entry-v6"]) > .apps-cookie-notice-v1 {
    position: absolute;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root [data-auth-entry-canon="freestyle-entry-v6"] *,
  :root [data-auth-entry-canon="freestyle-entry-v6"] *::before,
  :root [data-auth-entry-canon="freestyle-entry-v6"] *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
