/* Mood mobile-native v3 — fullscreen auth (login + register) */

@media (max-width: 1023px) {
  /* mood-auth-v2: fullscreen for login and register */
  body.mood-mobile-v3 #authModal.mood-auth-v2 {
    align-items: stretch !important;
    padding: 0 !important;
    overflow: hidden;
  }

  body.mood-mobile-v3 #authModal.mood-auth-v2 .modal-backdrop {
    background: var(--bg);
    opacity: 1;
  }

  body.mood-mobile-v3 #authModal.mood-auth-v2 .auth-modal-box {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: var(--bg);
    align-self: stretch;
  }

  body.mood-mobile-v3 #authModal.mood-auth-v2 .auth-modal-form {
    max-height: none;
    justify-content: flex-start;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  body.mood-mobile-v3 #authModal.mood-auth-v2.mob-reg-wizard .auth-modal-form {
    padding-top: 0;
  }

  body.mood-mobile-v3 #authModal.mood-auth-v2:not(.mob-reg-wizard) .mood-auth-illustration {
    display: block !important;
  }

  /* Legacy login sheet (non-v2) */
  body.mood-mobile-v3 #authModal:not(.mood-auth-v2):not(.mob-reg-wizard) {
    align-items: flex-end;
    padding: 0;
  }

  body.mood-mobile-v3 #authModal:not(.mood-auth-v2):not(.mob-reg-wizard) .auth-modal-box {
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    max-height: min(96dvh, 96vh);
    padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }

  body.mood-mobile-v3 #authModal .auth-tab {
    min-height: var(--mob-touch-min, 44px);
  }

  body.mood-mobile-v3 #authModal .btn,
  body.mood-mobile-v3 #authModal .auth-social-btn {
    min-height: var(--mob-touch-min, 44px);
  }

  body.mood-mobile-v3 #authModal .auth-form-group input,
  body.mood-mobile-v3 #authModal .auth-form-group select {
    min-height: 48px;
  }

  body.mood-mobile-v3 #authModal .reg-oneclick-actions .btn {
    width: 100%;
    justify-content: center;
  }

  body.mood-mobile-v3 #authModal .auth-social-row {
    gap: 10px;
  }

  body.mood-mobile-v3 #authModal .auth-social-btn {
    flex: 1;
    min-width: 0;
  }

  /* Fullscreen register wizard */
  body.mood-mobile-v3.mob-reg-wizard-active .mood-mob-dock,
  body.mood-mobile-v3.mob-reg-wizard-active .mobile-guest-bar {
    display: none !important;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard {
    align-items: stretch;
    padding: 0;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .modal-backdrop {
    background: var(--bg);
    opacity: 1;
  }

  body.mood-mobile-v3 #authModal.mood-auth-v2.mob-reg-wizard .auth-modal-box {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    flex-direction: unset;
  }

  body.mood-mobile-v3 #authModal.mood-auth-v2.mob-reg-wizard .mood-auth-illustration {
    display: block !important;
    grid-row: 1;
    height: clamp(108px, 20vh, 168px);
    min-height: 108px;
    max-height: 168px;
    width: 100%;
    flex: none;
  }

  body.mood-mobile-v3 #authModal.mood-auth-v2.mob-reg-wizard .auth-modal-form {
    grid-row: 2;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard:not(.mood-auth-v2) .auth-modal-box {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    background: var(--bg);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .modal-close.mood-auth-close {
    display: none;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .mood-auth-toolbar {
    top: env(safe-area-inset-top, 0px);
    right: env(safe-area-inset-right, 0px);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-modal-promo {
    display: none !important;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-modal-form {
    flex: 1;
    min-width: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .mob-reg-wizard__top,
  body.mood-mobile-v3 #authModal.mood-auth-v2.mob-reg-wizard .mob-reg-wizard__top {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--mob-gutter) 10px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .mob-reg-wizard__top.hidden {
    display: none !important;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .mob-reg-wizard__top-center {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .mob-reg-wizard__title {
    display: block;
    font: 700 16px/1.2 var(--font-sans);
    color: var(--text);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .mob-reg-wizard__step-meta {
    display: block;
    margin-top: 2px;
    font: 500 12px/1.3 var(--font-sans);
    color: var(--text-muted);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .mob-reg-wizard__icon-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--mob-touch-min, 44px);
    height: var(--mob-touch-min, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .mob-reg-wizard__link-btn {
    flex-shrink: 0;
    min-height: var(--mob-touch-min, 44px);
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--accent);
    font: 700 14px/1 var(--font-sans);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-tabs,
  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-modal-title {
    display: none !important;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard #regBonusMobileCard {
    margin: var(--space-3) var(--mob-gutter) 0;
    border-radius: var(--radius-lg);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard #registerForm {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-4) var(--mob-gutter);
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard #regFullForm,
  body.mood-mobile-v3 #authModal.mob-reg-wizard #regOneClickBlock,
  body.mood-mobile-v3 #authModal.mob-reg-wizard #regOneClickSuccess {
    flex: none;
    overflow: visible;
    padding: 0;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-stepper {
    margin-bottom: var(--space-3);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-steps {
    gap: 6px;
    padding: 4px 0;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-steps__label {
    display: inline;
    font-size: 11px;
    font-weight: 600;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-steps__item {
    gap: 6px;
    padding: 6px 4px;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-step__hint {
    font-size: 15px;
    margin-bottom: var(--space-3);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-step__nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: calc(var(--z-mob-sheet) + 5);
    display: flex;
    gap: 10px;
    padding: 12px var(--mob-gutter);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-step__nav .btn {
    flex: 1;
    min-height: var(--mob-touch-min, 44px);
    justify-content: center;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-step__nav .reg-step__back {
    flex: 0 0 auto;
    min-width: 44%;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-step__nav .reg-step__next,
  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-step__nav .auth-submit--register {
    flex: 1.2;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-step:not(.active) .reg-step__nav {
    display: none;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard #regError {
    margin: 0 var(--mob-gutter) var(--space-2);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-divider,
  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-social,
  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-social-row,
  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-switch {
    margin-top: var(--space-4);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard #registerForm[data-social-visible="1"] .auth-social-row {
    margin-bottom: var(--space-3);
    gap: 12px;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard #registerForm[data-social-visible="0"] .auth-divider,
  body.mood-mobile-v3 #authModal.mob-reg-wizard #registerForm[data-social-visible="0"] .auth-social,
  body.mood-mobile-v3 #authModal.mob-reg-wizard #registerForm[data-social-visible="0"] .auth-social-row,
  body.mood-mobile-v3 #authModal.mob-reg-wizard #registerForm[data-social-visible="0"] #authGoogleWrapRegister {
    display: none !important;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-checkbox--terms {
    margin-top: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-checkbox-text {
    font-size: 13px;
    line-height: 1.45;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .password-requirements {
    margin-bottom: var(--space-3);
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-oneclick-success__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .reg-oneclick-success__actions .btn {
    width: 100%;
    justify-content: center;
  }

  body.mood-mobile-v3 #authModal.mob-reg-wizard .auth-currency-dropdown,
  body.mood-mobile-v3 #authModal.mob-reg-wizard #regGenderDropdown {
    max-height: min(50dvh, 50vh);
  }
}
