/* Opening menu composition for Android phones in portrait orientation only. */
@media (orientation: portrait) and (max-width: 700px) {
  html.mobile-app body > .container {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    gap: clamp(8px, 1.5dvh, 14px) !important;
    padding: calc(10px + var(--mobile-safe-top)) max(12px, var(--mobile-safe-right)) calc(10px + var(--mobile-safe-bottom)) max(12px, var(--mobile-safe-left)) !important;
    overflow: hidden !important;
  }

  html.mobile-app .title-section {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    width: min(340px, 90vw) !important;
    margin: 0 !important;
    padding: clamp(10px, 1.8dvh, 16px) 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.54), rgba(15, 23, 42, 0.3)) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
  }

  html.mobile-app .logo-container {
    margin: 0 !important;
  }

  html.mobile-app .heart-icon {
    width: clamp(48px, 8dvh, 62px) !important;
    height: clamp(48px, 8dvh, 62px) !important;
    margin-bottom: 4px !important;
  }

  html.mobile-app .main-title {
    margin: 0 0 3px !important;
    font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
    line-height: 1 !important;
    letter-spacing: 0.055em !important;
    white-space: nowrap !important;
  }

  html.mobile-app .subtitle {
    margin: 0 0 0 0.48em !important;
    font-size: clamp(0.7rem, 3vw, 0.88rem) !important;
    line-height: 1.1 !important;
    letter-spacing: 0.48em !important;
  }

  html.mobile-app .tagline {
    margin: 7px 0 0 !important;
    font-size: clamp(0.56rem, 2.4vw, 0.68rem) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.1em !important;
  }

  html.mobile-app .menu {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 auto !important;
    width: min(330px, 88vw) !important;
    gap: clamp(6px, 0.9dvh, 9px) !important;
    margin: 0 !important;
    padding: clamp(7px, 1.1dvh, 10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 28px !important;
    background: rgba(15, 23, 42, 0.26) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(8px) !important;
  }

  html.mobile-app .menu-btn {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) 26px !important;
    align-items: center !important;
    width: 100% !important;
    height: clamp(40px, 6.2dvh, 48px) !important;
    min-height: 40px !important;
    gap: 0 !important;
    padding: 0 12px !important;
    border-radius: 24px !important;
    font-size: clamp(0.72rem, 3vw, 0.86rem) !important;
    letter-spacing: 0.1em !important;
  }

  html.mobile-app .menu-btn .btn-icon {
    grid-column: 1 !important;
    justify-self: center !important;
    font-size: 0.74rem !important;
  }

  html.mobile-app .menu-btn .btn-text {
    grid-column: 2 !important;
    justify-self: center !important;
    text-align: center !important;
  }

  html.mobile-app body > .container > .footer {
    position: static !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 5px 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.24) !important;
  }

  html.mobile-app body > .container > .footer p {
    margin: 0 !important;
    font-size: clamp(0.5rem, 2vw, 0.58rem) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.045em !important;
    white-space: nowrap !important;
  }
}

@media (orientation: portrait) and (max-width: 700px) and (max-height: 620px) {
  html.mobile-app body > .container {
    gap: 6px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  html.mobile-app .title-section {
    padding: 7px 12px !important;
  }

  html.mobile-app .heart-icon {
    width: 40px !important;
    height: 40px !important;
  }

  html.mobile-app .tagline {
    margin-top: 4px !important;
  }

  html.mobile-app .menu {
    gap: 4px !important;
    padding: 5px !important;
  }

  html.mobile-app .menu-btn {
    height: 36px !important;
    min-height: 36px !important;
  }

  html.mobile-app body > .container > .footer {
    padding: 3px 9px !important;
  }
}
