body.auth-locked {
  overflow: hidden;
}
body.auth-locked .cloud-auth-bar,
body.auth-locked .games-account-bar {
  opacity: 0;
  pointer-events: none;
}
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  min-height: 100dvh;
  background:
    linear-gradient(135deg, rgba(9,18,16,.88), rgba(14,20,24,.76)),
    url('/assets/login-aircraft-bg.jpg') center center / cover no-repeat;
  color: #f7efe7;
}
.auth-gate[hidden] { display: none !important; }
.auth-gate__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(228,144,83,.34), transparent 26%),
    radial-gradient(circle at 85% 35%, rgba(246,177,106,.18), transparent 28%),
    radial-gradient(circle at 75% 82%, rgba(228,144,83,.22), transparent 30%);
  mix-blend-mode: screen;
}
.auth-gate__shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 460px);
  gap: 28px;
  align-items: stretch;
}
.auth-gate__hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(760px, calc(100dvh - 48px));
  padding: 34px 18px 28px;
}
.auth-gate__brand {
  max-width: 540px;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(18,25,28,.38), rgba(18,25,28,.18));
  border: 1px solid rgba(241,181,126,.28);
  border-radius: 32px;
  padding: 28px 30px;
  box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.auth-gate__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.auth-gate__badge img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.auth-gate__eyebrow {
  display: block;
  color: #f5b98b;
  font-size: .96rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-gate__hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.auth-gate__hero h1 em {
  color: #f1b487;
  font-style: normal;
}
.auth-gate__lead {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: clamp(1rem, 1.3vw, 1.22rem);
  line-height: 1.7;
  color: rgba(247,239,231,.86);
}
.auth-gate__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.auth-gate__chips span {
  border: 1px solid rgba(247,239,231,.18);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .93rem;
}
.auth-gate__menu-button {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(10,18,16,.42);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  cursor: pointer;
}
.auth-gate__menu-button svg {
  width: 22px;
  height: 22px;
}
.auth-gate__card {
  align-self: center;
  width: 100%;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(241,181,126,.26);
  background: linear-gradient(180deg, rgba(15,20,24,.88), rgba(10,15,18,.82));
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 90px rgba(0,0,0,.42);
}
.auth-gate__card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
}
.auth-gate__card p.auth-gate__sub {
  margin: 0 0 20px;
  color: rgba(247,239,231,.74);
  line-height: 1.6;
}
.auth-gate__tabs {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 18px;
}
.auth-gate__tabs button {
  border: 0;
  background: transparent;
  color: rgba(247,239,231,.72);
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-gate__tabs button.is-active {
  color: #111;
  background: linear-gradient(135deg, #f5c295, #da8b56);
}
.auth-gate__form {
  display: grid;
  gap: 14px;
}
.auth-gate__field {
  display: grid;
  gap: 8px;
}
.auth-gate__field span { color: rgba(247,239,231,.88); font-size: .96rem; }
.auth-gate__field input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(241,181,126,.24);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 16px 18px;
  font: inherit;
}
.auth-gate__field input::placeholder { color: rgba(255,255,255,.42); }
.auth-gate__primary,
.auth-gate__oauth,
.auth-gate__link,
.auth-gate__ghost {
  font: inherit;
}
.auth-gate__primary {
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #f2bf92, #d68755);
  color: #121212;
  font-weight: 800;
  padding: 16px 20px;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(217,128,77,.24);
}
.auth-gate__secondary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.auth-gate__link,
.auth-gate__ghost,
.auth-gate__switch button,
.auth-gate__info-panel button {
  background: none;
  border: 0;
  color: #f2bf92;
  cursor: pointer;
  padding: 0;
}
.auth-gate__or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  color: rgba(247,239,231,.56);
  margin: 6px 0 2px;
}
.auth-gate__or::before,
.auth-gate__or::after {
  content: '';
  height: 1px;
  background: rgba(255,255,255,.12);
}
.auth-gate__oauth {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.22);
  background: #fff;
  color: #111;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
}
.auth-gate__oauth-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  background: conic-gradient(from 0deg, #4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75% 100%);
  color: #fff;
}
.auth-gate__message {
  min-height: 24px;
  color: #ffd3ae;
  font-size: .95rem;
  line-height: 1.5;
}
.auth-gate__message.is-error { color: #ffb7b7; }
.auth-gate__message.is-success { color: #b9f0b8; }
.auth-gate__switch {
  margin-top: 4px;
  color: rgba(247,239,231,.72);
  text-align: center;
}
.auth-gate__info-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, calc(100% - 24px));
  height: 100%;
  transform: translateX(calc(100% + 24px));
  transition: transform .32s ease;
  border-radius: 28px;
  border: 1px solid rgba(241,181,126,.24);
  background: linear-gradient(180deg, rgba(15,20,24,.96), rgba(10,15,18,.94));
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,.42);
  padding: 28px 24px;
  overflow: auto;
}
.auth-gate__info-panel.is-open { transform: translateX(0); }
.auth-gate__info-panel h3 {
  margin: 10px 0 12px;
  font-size: 1.8rem;
}
.auth-gate__info-panel p,
.auth-gate__info-panel li {
  color: rgba(247,239,231,.82);
  line-height: 1.8;
}
.auth-gate__info-panel ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}
.auth-gate__info-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  color: #fff !important;
  display: inline-grid;
  place-items: center;
}
.auth-gate__demo-note {
  font-size: .92rem;
  color: rgba(247,239,231,.56);
  margin-top: 8px;
}
@media (max-width: 960px) {
  .auth-gate__shell {
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 20px));
    gap: 16px;
  }
  .auth-gate__hero {
    min-height: auto;
    padding: 76px 6px 0;
  }
  .auth-gate__brand { max-width: none; padding: 24px 22px; }
  .auth-gate__card { padding: 24px 18px; border-radius: 28px; }
  .auth-gate__menu-button { top: 14px; right: 14px; }
  .auth-gate__info-panel {
    width: calc(100% - 4px);
    height: auto;
    inset: 66px 2px auto 2px;
    transform: translateY(-120%);
  }
  .auth-gate__info-panel.is-open { transform: translateY(0); }
}
@media (max-width: 520px) {
  .auth-gate__badge img { width: 58px; height: 58px; }
  .auth-gate__hero h1 { font-size: 2.2rem; }
  .auth-gate__card h2 { font-size: 1.6rem; }
  .auth-gate__tabs { width: 100%; grid-template-columns: 1fr 1fr; }
  .auth-gate__tabs button { padding-inline: 8px; }
}

/* V36 mobile login usability fixes */
.auth-gate {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.auth-gate__shell {
  box-sizing: border-box;
}
.auth-gate__menu-button {
  z-index: 120;
}
.auth-gate__info-panel {
  z-index: 110;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .auth-gate {
    display: block;
  }
  .auth-gate__shell {
    position: relative;
    margin: 0 auto;
    padding: 0 0 calc(42px + env(safe-area-inset-bottom));
    min-height: 100%;
    align-items: start;
  }
  .auth-gate__hero {
    padding-top: 76px;
  }
  .auth-gate__info-panel {
    position: fixed;
    top: calc(70px + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 92px - env(safe-area-inset-top));
    inset-inline: 10px;
    overflow-y: auto;
    transform: translateY(calc(-100% - 90px));
    box-shadow: 0 28px 90px rgba(0,0,0,.72);
  }
  .auth-gate__info-panel.is-open {
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .auth-gate__shell {
    width: min(100%, calc(100% - 14px));
    gap: 14px;
  }
  .auth-gate__hero {
    padding: 72px 0 0;
  }
  .auth-gate__brand {
    padding: 20px 18px;
    border-radius: 28px;
  }
  .auth-gate__badge {
    margin-bottom: 12px;
  }
  .auth-gate__lead {
    margin-top: 12px;
    line-height: 1.55;
  }
  .auth-gate__chips {
    margin-top: 14px;
    gap: 8px;
  }
  .auth-gate__chips span {
    padding: 8px 12px;
  }
  .auth-gate__card {
    margin-bottom: 12px;
  }
}

/* V37 — premium entry simplification + two-tab login drawer */
.auth-gate,
.auth-gate button,
.auth-gate input,
.auth-gate a {
  font-family: -apple-system, BlinkMacSystemFont, "Arial Hebrew", "Segoe UI", Arial, sans-serif;
}

.auth-gate__hero {
  justify-content: center;
}
.auth-gate__brand--minimal {
  max-width: 520px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 34px 30px;
  text-align: center;
  background: linear-gradient(160deg, rgba(10,18,17,.54), rgba(12,16,19,.34));
  border-color: rgba(241,181,126,.34);
}
.auth-gate__brand-logo {
  display: block;
  width: min(280px, 70%);
  height: auto;
  max-height: 125px;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.3));
}
.auth-gate__brand--minimal h1 {
  margin: 0;
  color: #f3b888;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.auth-gate__info-panel {
  width: min(470px, calc(100% - 24px));
  padding: 22px;
  background:
    radial-gradient(circle at 20% 8%, rgba(216,132,79,.12), transparent 28%),
    linear-gradient(180deg, rgba(13,18,21,.985), rgba(8,13,16,.975));
  border-color: rgba(241,181,126,.3);
}
.auth-gate__info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.auth-gate__info-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.auth-gate__info-brand img {
  width: 58px;
  height: 34px;
  object-fit: contain;
}
.auth-gate__info-brand strong {
  color: #f3b888;
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-gate__info-close {
  flex: 0 0 auto;
}
.auth-gate__info-tabs {
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.auth-gate__info-tabs button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  color: rgba(247,239,231,.7);
  font-size: .98rem;
  font-weight: 750;
  line-height: 1.25;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.auth-gate__info-tabs button.is-active {
  color: #151515;
  background: linear-gradient(135deg, #f6c69b, #dc8d59);
  box-shadow: 0 12px 30px rgba(219,133,82,.2);
}
.auth-gate__info-content[hidden] { display: none !important; }
.auth-gate__info-content {
  animation: authInfoFade .22s ease both;
}
@keyframes authInfoFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-gate__maintenance-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(241,181,126,.28);
  background: #0b1113;
  box-shadow: 0 18px 38px rgba(0,0,0,.3);
}
.auth-gate__maintenance-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-gate__maintenance-photo--main {
  aspect-ratio: 16 / 9;
}
.auth-gate__maintenance-photo--main img {
  object-position: center 42%;
}
.auth-gate__maintenance-photo--main::after {
  content: '';
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(5,10,12,.86));
  pointer-events: none;
}
.auth-gate__maintenance-photo figcaption {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff7ef;
  font-size: .92rem;
  font-weight: 700;
}
.auth-gate__about-copy {
  padding: 22px 4px 12px;
}
.auth-gate__section-kicker {
  display: inline-block;
  color: #e9a877;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 7px;
}
.auth-gate__about-copy h3,
.auth-gate__donation-card h3 {
  margin: 0 0 12px;
  color: #fff8f2;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.auth-gate__about-copy p,
.auth-gate__donation-card p {
  margin: 0 0 12px;
  color: rgba(247,239,231,.78);
  font-size: .98rem;
  line-height: 1.75;
}
.auth-gate__about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 6px 0 14px;
}
.auth-gate__about-grid article {
  display: grid;
  grid-template-columns: minmax(108px, auto) 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
}
.auth-gate__about-grid strong {
  color: #f0b181;
  font-size: .9rem;
}
.auth-gate__about-grid span {
  color: rgba(247,239,231,.68);
  font-size: .88rem;
  line-height: 1.45;
}
.auth-gate__maintenance-photo--detail {
  height: 118px;
  margin-top: 4px;
}
.auth-gate__maintenance-photo--detail img {
  object-position: left 67%;
  transform: scale(1.02);
}
.auth-gate__donation-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(241,181,126,.28);
  background:
    linear-gradient(180deg, rgba(9,15,17,.48), rgba(7,11,13,.94)),
    url('/assets/donation-maintenance.jpg') center 48% / cover no-repeat;
  box-shadow: 0 22px 48px rgba(0,0,0,.34);
}
.auth-gate__donation-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 12%, rgba(224,142,87,.19), transparent 30%);
  pointer-events: none;
}
.auth-gate__donation-card > * {
  position: relative;
  z-index: 1;
}
.auth-gate__donation-note {
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .9rem !important;
}
.auth-gate__donation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  padding: 15px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #161616 !important;
  font-weight: 850;
  background: linear-gradient(135deg, #f5c194, #d98754);
  box-shadow: 0 16px 32px rgba(214,126,76,.24);
}

@media (max-width: 960px) {
  .auth-gate__hero {
    min-height: auto;
    padding: 74px 0 0;
  }
  .auth-gate__brand--minimal {
    min-height: 126px;
    padding: 22px 18px;
    gap: 10px;
  }
  .auth-gate__brand-logo {
    width: min(210px, 62%);
    max-height: 74px;
  }
  .auth-gate__brand--minimal h1 {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }
  .auth-gate__info-panel {
    padding: 18px 16px 24px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .auth-gate__brand--minimal {
    min-height: 104px;
    border-radius: 24px;
  }
  .auth-gate__brand-logo {
    width: min(175px, 58%);
    max-height: 60px;
  }
  .auth-gate__brand--minimal h1 {
    font-size: 1.65rem;
  }
  .auth-gate__info-head {
    margin-bottom: 14px;
  }
  .auth-gate__info-brand img {
    width: 48px;
  }
  .auth-gate__info-tabs {
    grid-template-columns: 1.5fr .7fr;
    margin-bottom: 16px;
  }
  .auth-gate__info-tabs button {
    min-height: 44px;
    padding: 9px 8px;
    font-size: .9rem;
  }
  .auth-gate__maintenance-photo--main {
    aspect-ratio: 4 / 3;
  }
  .auth-gate__about-copy {
    padding-top: 18px;
  }
  .auth-gate__about-grid article {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .auth-gate__donation-card {
    min-height: 330px;
    padding: 24px 20px;
  }
}


/* V38 — list-first hamburger navigation + strict overlay scroll lock */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800&display=swap');

.auth-gate,
.auth-gate button,
.auth-gate input,
.auth-gate a {
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.auth-gate.menu-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none;
}
.auth-gate.menu-open .auth-gate__shell {
  pointer-events: none;
}
.auth-gate.menu-open .auth-gate__menu-backdrop,
.auth-gate.menu-open .auth-gate__info-panel {
  pointer-events: auto;
}
.auth-gate__menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 108;
  background: rgba(4, 8, 10, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  touch-action: none;
}
.auth-gate__menu-backdrop[hidden] { display: none !important; }
.auth-gate__info-panel {
  z-index: 112 !important;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.auth-gate__menu-button {
  z-index: 106;
}

.auth-gate__menu-view,
.auth-gate__detail-view {
  animation: authInfoFade .22s ease both;
}
.auth-gate__menu-view[hidden],
.auth-gate__detail-view[hidden] { display: none !important; }
.auth-gate__menu-view h3 {
  margin: 2px 0 18px;
  color: #fff8f2;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -.025em;
}
.auth-gate__menu-list {
  display: grid;
  gap: 11px;
}
.auth-gate__menu-item {
  width: 100%;
  min-height: 82px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 46px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 15px 16px !important;
  text-align: right;
  border: 1px solid rgba(241,181,126,.18) !important;
  border-radius: 19px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.auth-gate__menu-item:active { transform: scale(.985); }
.auth-gate__menu-item:hover { border-color: rgba(241,181,126,.4) !important; }
.auth-gate__menu-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(241,181,126,.26);
  background: rgba(225,140,84,.08);
  color: #f0ad79;
  font-size: 1.25rem;
}
.auth-gate__menu-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.auth-gate__menu-item-copy strong {
  color: #fff8f2;
  font-size: 1.05rem;
  line-height: 1.25;
}
.auth-gate__menu-item-copy small {
  color: rgba(247,239,231,.6);
  font-size: .82rem;
  line-height: 1.45;
}
.auth-gate__menu-item-arrow {
  color: #eda875;
  font-size: 1.35rem;
}
.auth-gate__detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  padding: 8px 0 !important;
  color: #f0ad79 !important;
  font-weight: 700;
  font-size: .92rem;
}
.auth-gate__detail-back span { font-size: 1.1rem; }

/* The lower duplicate maintenance strip from V37 is intentionally removed. */
.auth-gate__maintenance-photo--detail { display: none !important; }

@media (max-width: 960px) {
  .auth-gate__info-panel {
    top: calc(60px + env(safe-area-inset-top));
    max-height: calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}
@media (max-width: 520px) {
  .auth-gate__info-panel {
    right: 8px;
    left: 8px;
    inset-inline: 8px;
    padding: 17px 15px 22px;
  }
  .auth-gate__menu-item {
    min-height: 76px;
    grid-template-columns: 42px 1fr 22px;
    padding: 13px 14px !important;
  }
  .auth-gate__maintenance-photo--main {
    aspect-ratio: 16 / 10;
  }
}


/* V39 — requested login/menu refinements */
.auth-gate__mode-content {
  will-change: opacity, transform, filter;
  transform-origin: 50% 10%;
}
.auth-gate__mode-content.is-leaving {
  opacity: 0;
  transform: translateX(-12px) scale(.992);
  filter: blur(1.5px);
  transition: opacity 135ms ease, transform 135ms ease, filter 135ms ease;
}
.auth-gate__mode-content.is-entering {
  animation: authModeEnterV39 270ms cubic-bezier(.22,.8,.28,1) both;
}
@keyframes authModeEnterV39 {
  from { opacity: 0; transform: translateX(14px) scale(.992); filter: blur(1.5px); }
  to { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

/* The drawer always enters from the physical right edge, including mobile. */
@media (max-width: 960px) {
  .auth-gate__info-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    inset-inline: 0 auto !important;
    width: min(92vw, 470px) !important;
    height: 100dvh !important;
    max-height: none !important;
    border-radius: 28px 0 0 28px !important;
    padding-top: calc(18px + env(safe-area-inset-top)) !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important;
    transform: translateX(104%) !important;
    transition: transform 360ms cubic-bezier(.22,.8,.28,1) !important;
  }
  .auth-gate__info-panel.is-open {
    transform: translateX(0) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate__mode-content.is-leaving,
  .auth-gate__mode-content.is-entering,
  .auth-gate__info-panel {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* V40 — drawer visibility, close-button placement, and theme control. */
.auth-gate__info-head {
  justify-content: flex-start !important;
}
.auth-gate__info-close {
  order: 0;
}
.auth-gate__info-brand {
  order: 1;
}

/* Keep the drawer completely out of view while closed. */
.auth-gate__info-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transition-property: transform, opacity, visibility !important;
  transition-duration: 360ms, 160ms, 0s !important;
  transition-timing-function: cubic-bezier(.22,.8,.28,1), ease, linear !important;
  transition-delay: 0s, 0s, 360ms !important;
}
.auth-gate__info-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  transition-delay: 0s, 0s, 0s !important;
}
@media (max-width: 960px) {
  .auth-gate__info-panel {
    transform: translateX(calc(100% + 48px)) !important;
  }
  .auth-gate__info-panel.is-open {
    transform: translateX(0) !important;
  }
}
.auth-gate__theme-item .auth-gate__menu-item-arrow {
  font-size: 1.1rem;
}

/* V46: one physical right-hand drawer in the RTL welcome screen.
   Logical and physical offsets agree, including Safari at narrow widths. */
#authInfoPanel {
  position: fixed !important;
  direction: rtl;
  inset: 0 0 0 auto !important;
  inset-inline: 0 auto !important;
  width: min(92vw, 470px) !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  box-sizing: border-box;
  border-radius: 28px 0 0 28px !important;
  padding-top: calc(18px + env(safe-area-inset-top)) !important;
  padding-bottom: calc(22px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateX(calc(100% + 48px)) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  transition: transform 360ms cubic-bezier(.22,.8,.28,1), opacity 360ms ease, visibility 0s linear 360ms !important;
}
#authInfoPanel.is-open {
  transform: translateX(0) !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto !important;
  transition-delay: 0s, 0s, 0s !important;
}
#authMenuBackdrop {
  opacity: 0;
  transition: opacity 360ms ease;
}
#authMenuBackdrop.is-open { opacity: 1; }
.auth-gate.menu-closing #authInfoPanel { pointer-events: none !important; }
@media (prefers-reduced-motion: reduce) {
  #authInfoPanel, #authMenuBackdrop {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
