/**
 * Mobile auth presentation — scoped to phone layout only.
 * Desktop/tablet keep existing index.html landing + auth styles.
 */

html.mw-layout-mobile.mw-auth-active .landing-page,
html.mw-layout-mobile.mw-auth-active .landing-faq {
  display: none !important;
}

html.mw-layout-mobile.mw-auth-active body {
  background: var(--mw-color-bg);
  overflow: hidden;
}

html.mw-layout-mobile .mw-auth-root {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--mw-color-bg);
  color: var(--mw-color-text);
  font-family: var(--mw-font-family);
  display: flex;
  flex-direction: column;
  padding-top: var(--mw-safe-top);
  box-sizing: border-box;
}

html.mw-layout-mobile .mw-auth-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html.mw-layout-mobile .mw-auth-scroll--login {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--mw-vh, 100dvh) - var(--mw-safe-top));
  min-height: calc(var(--mw-vh-px, 1vh) * 100 - var(--mw-safe-top));
  padding: var(--mw-space-6) var(--mw-page-padding-x) calc(var(--mw-space-8) + var(--mw-safe-bottom));
}

/* Auto margins center when space is available and collapse to zero when the
   panel is taller than the viewport, keeping the wordmark scroll-reachable. */
html.mw-layout-mobile .mw-auth-scroll--login .mw-auth-panel {
  margin-block: auto;
}

html.mw-layout-mobile .mw-auth-scroll--register {
  padding: var(--mw-space-4) var(--mw-page-padding-x) calc(var(--mw-space-8) + var(--mw-safe-bottom));
}

html.mw-layout-mobile .mw-auth-wordmark {
  display: block;
  width: 220px;
  max-width: 70vw;
  height: auto;
  margin: 0 auto var(--mw-space-6);
}

html.mw-layout-mobile .mw-auth-card {
  background: var(--mw-color-surface);
  border: 0.5px solid var(--mw-color-border);
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
}

/* Tablet-portrait: .mw-auth-card has no width cap at all today — it simply
   fills the viewport minus a fixed 16px margin at every width, on phone by
   design (a full-bleed card reads fine there) but this means a 950px-wide
   username/password input at 1024px tablet-portrait, not merely "some extra
   margin." A login form doesn't want to be wide regardless of screen size —
   this is the opposite direction from the Profile/Feed and Leaderboard-list
   fixes (widening an existing cap): here a cap needs to exist at all. 480px
   lands in the same neighborhood as the desktop auth-card's own 420px cap
   (styles.css), which is itself a deliberate, unrelated design choice for
   comfortable form-field width, not a phone-only compromise to correct. */
@media (min-width: 768px) {
  html.mw-layout-mobile .mw-auth-card {
    width: 100%;
    max-width: min(58vw, 480px);
    margin: 0 auto;
  }
}

html.mw-layout-mobile .mw-auth-card--register {
  border-radius: 16px;
  padding: 24px;
}

html.mw-layout-mobile .mw-auth-title {
  margin: 0 0 var(--mw-space-5);
  font-size: 24px;
  font-weight: var(--mw-font-weight-semibold);
  text-align: center;
  line-height: var(--mw-line-height-tight);
}

html.mw-layout-mobile .mw-auth-field {
  margin-bottom: var(--mw-space-4);
}

html.mw-layout-mobile .mw-auth-label {
  display: block;
  margin-bottom: var(--mw-space-2);
  font-size: 13px;
  color: var(--mw-color-text-secondary);
}

html.mw-layout-mobile .mw-auth-input,
html.mw-layout-mobile .mw-auth-trigger {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--mw-color-input-border);
  background: var(--mw-color-input-bg);
  color: var(--mw-color-text);
  font-size: 14px;
  box-sizing: border-box;
}

html.mw-layout-mobile .mw-auth-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

html.mw-layout-mobile .mw-auth-input:focus,
html.mw-layout-mobile .mw-auth-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(29, 184, 138, 0.35);
}

html.mw-layout-mobile .mw-auth-pw-row {
  position: relative;
}

html.mw-layout-mobile .mw-auth-pw-row .mw-auth-input {
  padding-right: 48px;
}

html.mw-layout-mobile .mw-auth-pw-toggle {
  position: absolute;
  right: 0;
  top: 0;
  min-width: var(--mw-touch-min);
  min-height: var(--mw-touch-min);
  border: 0;
  background: transparent;
  color: var(--mw-color-text-secondary);
  cursor: pointer;
}

html.mw-layout-mobile .mw-auth-forgot {
  display: block;
  margin: calc(-1 * var(--mw-space-2)) 0 var(--mw-space-4);
  text-align: right;
  font-size: var(--mw-font-size-sm);
  color: var(--mw-color-primary);
  text-decoration: none;
  min-height: var(--mw-touch-min);
  line-height: var(--mw-touch-min);
}

html.mw-layout-mobile .mw-auth-error {
  min-height: 1.2em;
  margin-bottom: var(--mw-space-3);
  font-size: var(--mw-font-size-sm);
  color: var(--mw-color-error);
}

html.mw-layout-mobile .mw-auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: var(--mw-space-2);
}

html.mw-layout-mobile .mw-auth-submit--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

html.mw-layout-mobile .mw-auth-security-hint {
  margin: var(--mw-space-2) 0 0;
  color: var(--mw-color-text-secondary);
  font-size: var(--mw-font-size-sm);
  text-align: center;
}

html.mw-layout-mobile .mw-auth-security-failure {
  margin: var(--mw-space-2) 0;
  color: var(--mw-color-error);
  font-size: var(--mw-font-size-sm);
  text-align: center;
}

html.mw-layout-mobile .mw-auth-security-retry {
  display: block;
  min-height: var(--mw-touch-min);
  margin: var(--mw-space-2) auto 0;
  border: 0;
  background: transparent;
  color: var(--mw-color-primary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

html.mw-layout-mobile .mw-auth-or {
  display: flex;
  align-items: center;
  gap: var(--mw-space-3);
  margin: var(--mw-space-4) 0;
  color: var(--mw-color-text-muted);
  font-size: var(--mw-font-size-sm);
}

html.mw-layout-mobile .mw-auth-or__line {
  flex: 1;
  height: 1px;
  background: var(--mw-color-border);
}

html.mw-layout-mobile .mw-auth-google {
  display: flex;
  justify-content: center;
  min-height: var(--mw-touch-min);
}

html.mw-layout-mobile .mw-auth-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--mw-touch-min);
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font: inherit;
  font-weight: var(--mw-font-weight-semibold);
  cursor: pointer;
}

html.mw-layout-mobile .mw-auth-apple svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

html.mw-layout-mobile .mw-auth-switch {
  margin-top: var(--mw-space-5);
  text-align: center;
  font-size: var(--mw-font-size-sm);
  color: var(--mw-color-text-secondary);
}

html.mw-layout-mobile .mw-auth-switch a {
  color: var(--mw-color-primary);
  text-decoration: none;
}

html.mw-layout-mobile .mw-auth-consent {
  margin-top: var(--mw-space-4);
  font-size: 11px;
  line-height: 1.5;
  color: var(--mw-color-text-muted);
  text-align: center;
}

html.mw-layout-mobile .mw-auth-consent a {
  color: var(--mw-color-primary);
}

html.mw-layout-mobile .mw-auth-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mw-space-3);
}

html.mw-layout-mobile .mw-auth-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mw-space-2);
}

html.mw-layout-mobile .mw-auth-pill-row .mw-pill {
  min-height: var(--mw-touch-min);
  padding: 0 var(--mw-space-4);
  cursor: pointer;
  border: 1px solid transparent;
}

html.mw-layout-mobile .mw-auth-check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--mw-space-3);
  margin-bottom: var(--mw-space-3);
  min-height: var(--mw-touch-min);
}

html.mw-layout-mobile .mw-auth-check-row input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--mw-color-primary);
}

html.mw-layout-mobile .mw-auth-check-row label {
  font-size: var(--mw-font-size-sm);
  color: var(--mw-color-text-secondary);
  line-height: 1.45;
}

html.mw-layout-mobile .mw-auth-pw-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: var(--mw-space-2) 0;
}

html.mw-layout-mobile .mw-auth-pw-seg {
  height: 4px;
  border-radius: 2px;
  background: var(--mw-color-border);
}

html.mw-layout-mobile .mw-auth-pw-seg.is-on.is-weak {
  background: var(--mw-color-error);
}

html.mw-layout-mobile .mw-auth-pw-seg.is-on.is-medium {
  background: var(--mw-color-warning);
}

html.mw-layout-mobile .mw-auth-pw-seg.is-on.is-strong {
  background: var(--mw-color-primary);
}

html.mw-layout-mobile .mw-auth-pw-label {
  font-size: var(--mw-font-size-xs);
  color: var(--mw-color-text-muted);
  margin-bottom: var(--mw-space-2);
}

html.mw-layout-mobile .mw-auth-pw-req {
  font-size: var(--mw-font-size-xs);
  color: var(--mw-color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

html.mw-layout-mobile .mw-auth-pw-req.is-met {
  color: var(--mw-color-primary);
}

html.mw-layout-mobile .mw-auth-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--mw-space-2);
  margin-top: var(--mw-space-2);
}

html.mw-layout-mobile .mw-auth-avatar {
  border: 2px solid transparent;
  border-radius: var(--mw-radius-sm);
  padding: 4px;
  background: var(--mw-color-surface-elevated);
  cursor: pointer;
  min-height: var(--mw-touch-min);
}

html.mw-layout-mobile .mw-auth-avatar img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

html.mw-layout-mobile .mw-auth-avatar.is-selected {
  border-color: var(--mw-color-primary);
}

html.mw-layout-mobile .mw-auth-avatar span {
  display: block;
  font-size: 9px;
  text-align: center;
  margin-top: 2px;
  color: var(--mw-color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.mw-layout-mobile .mw-auth-city-layer {
  position: fixed;
  left: var(--mw-space-4);
  right: var(--mw-space-4);
  z-index: 950;
  max-height: 220px;
  overflow: auto;
  pointer-events: auto;
  background: var(--mw-color-surface-elevated);
  border: 0.5px solid var(--mw-color-border);
  border-radius: var(--mw-radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html.mw-layout-mobile .mw-auth-city-tap-shield {
  position: fixed;
  inset: 0;
  z-index: 960;
  pointer-events: auto;
  background: transparent;
}

html.mw-layout-mobile .mw-auth-city-item {
  min-height: var(--mw-touch-min);
  padding: var(--mw-space-3) var(--mw-space-4);
  border-bottom: 0.5px solid var(--mw-color-border);
  cursor: pointer;
}

html.mw-layout-mobile .mw-auth-city-item:active {
  background: var(--mw-color-surface);
}

html.mw-layout-mobile .mw-auth-hidden {
  display: none !important;
}

/* Mobile modal sheets (reuse desktop overlay nodes) */
html.mw-layout-mobile .auth-modal-overlay:not(.auth-hidden) {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

html.mw-layout-mobile .auth-modal-overlay .auth-modal-card {
  width: 100%;
  max-width: 640px;
  max-height: min(90dvh, 90vh);
  overflow: auto;
  border-radius: var(--mw-radius-lg) var(--mw-radius-lg) 0 0;
  background: var(--mw-color-surface);
  border: 0.5px solid var(--mw-color-border);
  padding: var(--mw-space-6) var(--mw-space-4) calc(var(--mw-space-6) + var(--mw-safe-bottom));
  box-sizing: border-box;
}

/* Tablet-portrait: this bottom sheet (forgot-password / restore-account) is
   already fairly generous at 640px — wider than a login form needs, since it
   can hold instructional copy. Widen it further as the viewport grows, but
   never below the existing 640px baseline (max() guard) so this is purely
   additive growth, not a narrowing at the smaller end of the tablet range. */
@media (min-width: 768px) {
  html.mw-layout-mobile .auth-modal-overlay .auth-modal-card {
    max-width: max(640px, min(70vw, 760px));
  }
}

html.mw-layout-mobile #restoreAccountModal:not([style*="display: none"]) {
  align-items: flex-end !important;
}

html.mw-layout-mobile #restoreAccountModal > div {
  border-radius: var(--mw-radius-lg) var(--mw-radius-lg) 0 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

html.mw-layout-mobile .mw-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: rgba(0, 0, 0, 0.55);
}

html.mw-layout-mobile .mw-auth-dob-sheet {
  z-index: 961;
}

html.mw-layout-mobile .mw-auth-dob-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: var(--mw-space-2);
}

html.mw-layout-mobile .mw-auth-dob-grid select {
  min-height: 48px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--mw-color-input-border);
  background: var(--mw-color-input-bg);
  color: var(--mw-color-text);
  font-size: 14px;
}

html.mw-layout-mobile .mw-auth-country-list {
  max-height: 50vh;
  overflow: auto;
}

html.mw-layout-mobile .mw-auth-country-item {
  min-height: var(--mw-touch-min);
  display: flex;
  align-items: center;
  padding: 0 var(--mw-space-4);
  border-bottom: 0.5px solid var(--mw-color-border);
  cursor: pointer;
}

html.mw-layout-mobile .mw-auth-sheet-actions {
  display: flex;
  gap: var(--mw-space-2);
  margin-top: var(--mw-space-4);
}

html.mw-layout-mobile .mw-auth-sheet-actions .mw-btn {
  flex: 1;
}

/* Signup-first welcome screen. All rules stay inside the mobile auth shell. */
html.mw-layout-mobile .mw-auth-scroll--welcome {
  min-height: calc(var(--mw-vh, 100dvh) - var(--mw-safe-top));
  min-height: calc(var(--mw-vh-px, 1vh) * 100 - var(--mw-safe-top));
  padding: clamp(8px, 1.6dvh, 16px) 16px calc(16px + var(--mw-safe-bottom));
}

html.mw-layout-mobile .mw-auth-welcome {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}

html.mw-layout-mobile .mw-auth-welcome .mw-auth-welcome__wordmark {
  width: clamp(154px, 44vw, 220px);
  margin-bottom: clamp(4px, 1dvh, 10px);
}

html.mw-layout-mobile .mw-auth-welcome__intro {
  margin: 0 auto clamp(3px, 0.6dvh, 6px);
  max-width: 460px;
}

html.mw-layout-mobile .mw-auth-welcome__headline {
  margin: 0;
  color: var(--mw-color-text);
  font-size: clamp(30px, 8.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

html.mw-layout-mobile .mw-auth-welcome__headline span {
  color: var(--mw-color-primary);
}

html.mw-layout-mobile .mw-auth-welcome__subline {
  margin: clamp(5px, 1dvh, 9px) auto 0;
  max-width: 430px;
  color: var(--mw-color-text-secondary);
  font-size: clamp(12px, 3.2vw, 14px);
  line-height: 1.35;
}

html.mw-layout-mobile .mw-auth-welcome__hero {
  --mw-welcome-hero-max-h: clamp(92px, 25dvh, 220px);
  position: relative;
  width: min(100%, calc(var(--mw-welcome-hero-max-h) * 1.7167));
  max-height: var(--mw-welcome-hero-max-h);
  aspect-ratio: 800 / 466;
  margin: 0 auto clamp(4px, 0.9dvh, 9px);
}

html.mw-layout-mobile .mw-auth-welcome__picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

html.mw-layout-mobile .mw-auth-welcome__picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.mw-layout-mobile .mw-auth-welcome__badge {
  --mw-welcome-badge-left: 49%;
  --mw-welcome-badge-top: 74%;
  position: absolute;
  left: var(--mw-welcome-badge-left);
  top: var(--mw-welcome-badge-top);
  width: 15%;
  min-width: 40px;
  max-width: 76px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

html.mw-layout-mobile .mw-auth-welcome__badge svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

html.mw-layout-mobile .mw-auth-welcome__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 clamp(7px, 1.2dvh, 12px);
}

html.mw-layout-mobile .mw-auth-welcome__feature {
  min-width: 0;
  color: var(--mw-color-text);
}

html.mw-layout-mobile .mw-auth-welcome__icon {
  display: grid;
  width: clamp(40px, 6dvh, 48px);
  height: clamp(40px, 6dvh, 48px);
  margin: 0 auto 4px;
  border-radius: 50%;
  place-items: center;
}

html.mw-layout-mobile .mw-auth-welcome__icon svg {
  width: 24px;
  height: 24px;
}

html.mw-layout-mobile .mw-auth-welcome__icon--teal {
  color: var(--mw-color-primary);
  background: rgba(29, 184, 138, 0.18);
}

html.mw-layout-mobile .mw-auth-welcome__icon--purple {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.18);
}

html.mw-layout-mobile .mw-auth-welcome__icon--pink {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.18);
}

html.mw-layout-mobile .mw-auth-welcome__feature strong,
html.mw-layout-mobile .mw-auth-welcome__feature small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

html.mw-layout-mobile .mw-auth-welcome__feature strong {
  font-size: clamp(12px, 3.2vw, 13px);
  line-height: 1.12;
}

html.mw-layout-mobile .mw-auth-welcome__feature small {
  margin-top: 3px;
  color: var(--mw-color-text-muted);
  font-size: 11px;
  line-height: 1.18;
}

html.mw-layout-mobile .mw-try-welcome[data-landing-variant="redesign"] + .mw-auth-welcome__features {
  margin-top: 12px;
  text-align: center;
}

html.mw-layout-mobile .mw-auth-welcome__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

html.mw-layout-mobile .mw-try-welcome {
  width: 100%;
  min-width: 0;
  max-width: 400px;
  margin: 0 auto 6px;
}

html.mw-layout-mobile .mw-try-welcome[data-landing-variant="redesign"] {
  overflow-x: clip;
}

html.mw-layout-mobile .mw-try-welcome[data-landing-variant="redesign"] > * {
  min-width: 0;
  max-width: 100%;
}

html.mw-layout-mobile .mw-try-video-card[hidden] {
  display: none;
}

html.mw-layout-mobile .mw-try-video-card {
  --try-card-glow: .18;
  --try-card-fill: rgba(8, 14, 13, .82);
  overflow: hidden;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(39, 224, 179, .45);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at center, transparent 34%, rgba(39, 224, 179, var(--try-card-glow)) 145%),
    var(--try-card-fill);
  box-shadow: inset 0 0 24px rgba(39, 224, 179, calc(var(--try-card-glow) * .45)), 0 10px 28px rgba(0, 0, 0, .2);
  text-align: left;
}

html.mw-layout-mobile .mw-try-video-card__heading,
html.mw-layout-mobile .mw-try-age-range > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html.mw-layout-mobile .mw-try-video-card__heading strong { font-size: 17px; }
html.mw-layout-mobile .mw-try-video-card__heading span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(39, 224, 179, .15);
  color: var(--mw-color-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

html.mw-layout-mobile .mw-try-video-card > img {
  display: block;
  width: min(100%, 238px);
  height: auto;
  margin: 8px auto 10px;
}

html.mw-layout-mobile .mw-try-video-card > .mw-try-online {
  margin: 7px 0 0;
  justify-content: flex-start;
}

html.mw-layout-mobile .mw-try-prefs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html.mw-layout-mobile .mw-try-prefs label {
  min-width: 0;
  color: var(--mw-color-text-secondary);
  font-size: 14px;
  font-weight: 600;
}
html.mw-layout-mobile .mw-try-prefs select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 2px;
  padding: 0 6px 0 8px;
  border: 1px solid var(--mw-color-border);
  border-radius: 10px;
  background: var(--mw-color-surface);
  color: var(--mw-color-text);
  font-family: inherit;
  font-size: 16px;
}

html.mw-layout-mobile .mw-try-prefs__gender,
html.mw-layout-mobile .mw-try-prefs__looking-for { min-width: 0; }

/* Row 2: "Your age" (left) and the "Age range" min/max box (right); the
   slider stays full-width below both rows. min-width on .mw-try-prefs__own-age
   keeps its input from being squeezed back down to truncating "Your age". */
html.mw-layout-mobile .mw-try-prefs-row2 {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) minmax(0, 1.4fr);
  gap: 8px;
  margin-top: 8px;
}
html.mw-layout-mobile .mw-try-prefs__own-age { min-width: 0; }
html.mw-layout-mobile .mw-try-prefs__own-age input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 2px;
  padding: 0 9px;
  border: 1px solid var(--mw-color-border);
  border-radius: 10px;
  background: var(--mw-color-surface);
  color: var(--mw-color-text);
  font-family: inherit;
  font-size: 16px;
  text-align: center;
}

html.mw-layout-mobile .mw-try-own-age__error { margin: 5px 0 0; color: #f6d36b; font-size: 11px; }
html.mw-layout-mobile .mw-try-own-age__error[hidden] { display: none; }

html.mw-layout-mobile .mw-try-video-start[aria-disabled="true"] {
  opacity: .5;
}

/* Shared --mw-consent-checkbox-size (mobile-app.css) keeps this the same
   size as the guest-convert sheet's terms checkbox (see signup-sheet.css).
   The box stays small; .mw-try-consent's own min-height is what guarantees
   a >=44px tap target through the label, same pattern as .mw-auth-check-row. */
html.mw-layout-mobile .mw-try-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  min-height: 44px;
  line-height: 1.3;
  margin: 8px 0;
  color: var(--mw-color-text-secondary);
  font-size: 12px;
  cursor: pointer;
}
html.mw-layout-mobile .mw-try-consent input[type="checkbox"] {
  width: var(--mw-consent-checkbox-size, 26px) !important;
  height: var(--mw-consent-checkbox-size, 26px) !important;
  min-width: var(--mw-consent-checkbox-size, 26px) !important;
  min-height: var(--mw-consent-checkbox-size, 26px) !important;
  max-width: var(--mw-consent-checkbox-size, 26px) !important;
  flex: 0 0 var(--mw-consent-checkbox-size, 26px) !important;
  /* Vertically centers the box on the label's first line rather than its
     top edge, since the box (26px) is taller than one line of 12px text. */
  margin: -6px 0 0;
  padding: 0;
  accent-color: #27e0b3;
  cursor: pointer;
}
html.mw-layout-mobile .mw-try-consent > span { flex: 1; min-width: 0; }
html.mw-layout-mobile .mw-try-consent a { color: var(--mw-color-primary); }

html.mw-layout-mobile .mw-try-video-error { margin: 5px 0 0; color: #f6d36b; font-size: 11px; }
html.mw-layout-mobile .mw-try-video-error[hidden] { display: none; }

html.mw-layout-mobile .mw-try-age-range { min-width: 0; color: var(--mw-color-text-secondary); font-size: 14px; }
html.mw-layout-mobile .mw-try-age-range > div:first-child > span { font-weight: 600; }
html.mw-layout-mobile .mw-try-age__values {
  display: flex;
  gap: 7px;
  margin-top: 4px;
  align-items: center;
}
html.mw-layout-mobile .mw-try-age__values label { flex: 1 1 56px; min-width: 0; }
html.mw-layout-mobile .mw-try-age__values input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 6px;
  border: 1px solid var(--mw-color-border);
  border-radius: 10px;
  background: var(--mw-color-surface);
  color: var(--mw-color-text);
  font-family: inherit;
  font-size: 16px;
  text-align: center;
}
html.mw-layout-mobile .mw-try-age__hint { margin: 5px 0 0; color: #f6d36b; font-size: 11px; }
html.mw-layout-mobile .mw-try-age__hint[hidden] { display: none; }
html.mw-layout-mobile .mw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html.mw-layout-mobile .mw-try-age__sliders { position: relative; height: 44px; margin-top: 8px; }
html.mw-layout-mobile .mw-try-age__sliders::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  top: 20px;
  height: 4px;
  border-radius: 999px;
  background: rgba(39, 224, 179, .38);
}
html.mw-layout-mobile .mw-try-age__sliders input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 44px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  touch-action: none;
}
html.mw-layout-mobile .mw-try-age__sliders input:last-child { z-index: 3; }
html.mw-layout-mobile .mw-try-age__sliders input.is-active { z-index: 4; }
html.mw-layout-mobile .mw-try-age__sliders input::-webkit-slider-runnable-track { height: 4px; background: transparent; }
html.mw-layout-mobile .mw-try-age__sliders input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 2px solid #08231b;
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--mw-color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .42);
  pointer-events: auto;
}
html.mw-layout-mobile .mw-try-age__sliders input::-moz-range-track { height: 4px; background: transparent; }
html.mw-layout-mobile .mw-try-age__sliders input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid #08231b;
  border-radius: 50%;
  background: var(--mw-color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .42);
  pointer-events: auto;
}

html.mw-layout-mobile .mw-try-video-start {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--mw-color-primary);
  color: #07130f;
  font-weight: 800;
}

html.mw-layout-mobile .mw-try-video-caption { margin: 3px 0 0; color: var(--mw-color-text-muted); font-size: 10px; text-align: center; }

html.mw-layout-mobile .mw-try-sniper {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--mw-color-border);
  border-radius: 16px;
  background: var(--mw-color-surface-elevated);
  text-align: left;
}

html.mw-layout-mobile .mw-try-sniper > img {
  width: 100%;
  height: 100%;
  min-height: 112px;
  object-fit: cover;
}

html.mw-layout-mobile .mw-try-sniper__body {
  display: flex;
  min-width: 0;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
}

html.mw-layout-mobile .mw-try-sniper__body strong {
  font-size: 15px;
}

html.mw-layout-mobile .mw-try-sniper__body p {
  margin: 3px 0 8px;
  color: var(--mw-color-text-secondary);
  font-size: 11px;
  line-height: 1.3;
}

html.mw-layout-mobile .mw-try-sniper__play {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: var(--mw-color-primary);
  color: #08120f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

html.mw-layout-mobile .mw-try-sniper--redesign {
  position: relative;
  display: block;
  min-height: 158px;
  margin-top: 4px;
  border-color: rgba(255, 207, 74, .48);
  /* Cache-bust: bump this ?v= (the image's only reference) whenever the file at this URL is replaced. */
  background: #17120b url('/images/momo-sniper/welcome-sniper-banner.webp?v=1') center/cover no-repeat;
}

html.mw-layout-mobile .mw-try-sniper--redesign::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 7, .94) 0%, rgba(5, 5, 7, .76) 43%, rgba(5, 5, 7, .08) 78%);
}

html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__body {
  position: relative;
  z-index: 1;
  width: 58%;
  min-height: 158px;
  padding: 14px;
  align-items: flex-start;
}

html.mw-layout-mobile .mw-try-sniper__chip {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffd44f;
  color: #251a00;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__body strong { color: #fff; font-size: 18px; }
html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__body p { color: rgba(255,255,255,.86); }
html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__play {
  width: 100%;
  min-width: min(220px, 100%);
  min-height: 34px;
  box-sizing: border-box;
  background: #ffd44f;
  color: #251a00;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .28);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}
html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__play:hover { filter: brightness(1.06); }
html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__play:active {
  transform: translateY(1px) scale(.96);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
}
@media (prefers-reduced-motion: reduce) {
  html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__play { transition: none; }
  html.mw-layout-mobile .mw-try-sniper--redesign .mw-try-sniper__play:active { transform: none; }
}

html.mw-layout-mobile .mw-try-online {
  display: flex;
  margin: 8px 0 0;
  align-items: center;
  justify-content: center;
  color: var(--mw-color-text-secondary);
  font-size: 12px;
}

html.mw-layout-mobile .mw-try-online[hidden] {
  display: none;
}

html.mw-layout-mobile .mw-try-online > span {
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--mw-color-primary);
  box-shadow: 0 0 0 3px rgba(29, 184, 138, 0.16);
}

html.mw-layout-mobile .mw-try-online strong {
  margin-right: 3px;
  color: var(--mw-color-text);
}

html.mw-layout-mobile .mw-try-welcome[data-landing-variant="redesign"] .mw-try-online {
  margin: 0 0 9px;
}

html.mw-layout-mobile .mw-try-welcome[data-landing-variant="redesign"] .mw-try-video-card > .mw-try-online {
  margin: 7px 0 0;
}

html.mw-layout-mobile .mw-try-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  margin: 9px 0;
  align-items: center;
  color: var(--mw-color-text-muted);
  font-size: 11px;
  font-weight: 400;
}

html.mw-layout-mobile .mw-try-divider span {
  height: 1px;
  background: var(--mw-color-border);
}

html.mw-layout-mobile .mw-try-divider strong {
  font-weight: 500;
}

html.mw-layout-mobile .mw-auth-welcome__actions > * {
  min-width: 0;
  max-width: 100%;
}

html.mw-layout-mobile .mw-auth-welcome__apple,
html.mw-layout-mobile .mw-auth-welcome__google,
html.mw-layout-mobile .mw-auth-welcome__email {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
}

html.mw-layout-mobile .mw-auth-login__apple {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 8px;
}

html.mw-layout-mobile .mw-auth-welcome__google {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

html.mw-layout-mobile .mw-auth-welcome__google #mwGoogleSignInButton {
  flex-shrink: 0;
}

html.mw-layout-mobile .mw-auth-welcome__email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--mw-color-border);
  border-radius: 999px;
  background: var(--mw-color-surface-elevated);
  color: var(--mw-color-text);
  font: inherit;
  font-weight: var(--mw-font-weight-semibold);
  cursor: pointer;
}

html.mw-layout-mobile .mw-auth-welcome__email svg {
  width: 20px;
  height: 20px;
}

html.mw-layout-mobile .mw-auth-welcome__login {
  display: flex;
  min-height: 44px;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: var(--mw-color-text-secondary);
  font-size: var(--mw-font-size-sm);
}

html.mw-layout-mobile .mw-auth-welcome__login button {
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--mw-color-primary);
  font: inherit;
  font-weight: var(--mw-font-weight-semibold);
  cursor: pointer;
}

html.mw-layout-mobile .mw-auth-welcome__legal {
  margin: 8px auto 0;
  color: var(--mw-color-text-muted);
  font-size: 10px;
  line-height: 1.35;
}

html.mw-layout-mobile .mw-auth-welcome__legal a,
html.mw-layout-mobile .mw-auth-welcome__footer a {
  color: var(--mw-color-primary);
}

html.mw-layout-mobile .mw-auth-welcome__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  justify-content: center;
  font-size: 10px;
}

@media (max-height: 650px) {
  html.mw-layout-mobile .mw-auth-welcome .mw-auth-welcome__wordmark {
    width: 150px;
  }

  html.mw-layout-mobile .mw-auth-welcome__hero {
    --mw-welcome-hero-max-h: 15dvh;
  }

  html.mw-layout-mobile .mw-auth-welcome__subline {
    font-size: 12px;
  }
}
html.mw-layout-mobile.social-signup-open,
html.mw-layout-mobile.social-signup-open body { overflow: hidden; }
html.mw-layout-mobile .social-signup-overlay { position: fixed; inset: 0; z-index: 10020; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .68); }
html.mw-layout-mobile .social-signup-overlay.auth-hidden { display: none; }
html.mw-layout-mobile .social-signup-sheet { width: 100%; max-height: min(90dvh, 720px); overflow-y: auto; box-sizing: border-box; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #151515; color: #fff; box-shadow: 0 -12px 45px rgba(0, 0, 0, .5); }
html.mw-layout-mobile .social-signup-sheet h2 { margin: 0 0 5px; font-size: 1.5rem; }
html.mw-layout-mobile .social-signup-provider { margin: 0 0 18px; color: #aaa; }
html.mw-layout-mobile .social-signup-fieldset { margin: 0 0 16px; padding: 0; border: 0; }
html.mw-layout-mobile .social-signup-fieldset legend,
html.mw-layout-mobile .social-signup-label { display: block; margin-bottom: 7px; font-weight: 600; }
html.mw-layout-mobile .social-signup-dob { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
html.mw-layout-mobile .social-signup-sheet select { width: 100%; min-height: 48px; padding: 0 8px; border: 1px solid #444; border-radius: 9px; background: #202020; color: #fff; font-size: 16px; }
html.mw-layout-mobile .social-signup-consent { display: flex; gap: 10px; align-items: flex-start; margin: 17px 0; line-height: 1.4; }
html.mw-layout-mobile .social-signup-consent input { width: 24px; height: 24px; flex: 0 0 24px; }
html.mw-layout-mobile .social-signup-consent a { color: #58d7ae; }
html.mw-layout-mobile .social-signup-error { min-height: 22px; margin: 8px 0; color: #ff8e8e; }
html.mw-layout-mobile #socialSignupContinue,
html.mw-layout-mobile #socialSignupCancel { width: 100%; min-height: 48px; border-radius: 999px; font-size: 16px; }
html.mw-layout-mobile #socialSignupContinue { border: 0; background: #1db88a; color: #071a14; font-weight: 700; }
html.mw-layout-mobile #socialSignupContinue:disabled { opacity: .55; }
html.mw-layout-mobile #socialSignupCancel { margin-top: 5px; border: 0; background: transparent; color: #bbb; text-decoration: underline; }
