Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
What is the ruling on wiping the white area behind the ears instead of wiping the head?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. Wiping the white area behind the ears suffices for that. And Allah the almighty knows best.
What are the valid excuses for abstaining from congregational prayer in the mosque?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
Concessions (Rukhsah) are granted to abstain from congregational prayer in the mosque due to general excuses, such as: rain that causes hardship in going out, strong winds at night, heavy mud that cannot be traversed without the risk of soiling oneself, hot winds, and extreme heat or cold. There are also specific individual excuses, such as: illness that makes walking as difficult as walking in the rain, severe drowsiness, evident hunger or thirst, the suppression of bodily wastes (urine, stool, or gas), and fear for one's life, limb, physical faculty, wealth, or honor, among other valid excuses. And Allah the Exalted knows best.
If a person enters a mosque and finds the congregation in the final tashahhud, which is more virtuous — joining them or waiting for a second congregation to catch the opening takbīr (takbīrat al-iḥrām)?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
If a worshipper finds a congregation that is about to finish its prayer, and he hopes to catch the entire prayer from the beginning with another congregation, it is more virtuous for him to pray with this first congregation and then repeat the prayer with the second one — provided he does not intend to confine himself to a single prayer. If, however, he intends to perform only one prayer, then it is more virtuous for him to wait for the second congregation rather than joining the first, so that he may attain the reward of congregational prayer for every single rakʿah.
Al-Khaṭīb al-Sharbīnī, may Allah have mercy upon him, states: "If members of a congregation enter the mosque while the imam is in the final tashahhud, al-Qāḍī Ḥusayn held that it is recommended for them to join him in prayer, and that they should not delay in order to form a second congregation. Al-Mutawallī, however, affirmed the opposite view, and al-Qāḍī's own statement elsewhere supports this latter position, which is the relied-upon view. In fact, it is more virtuous for a person who has missed part of the prayer with one congregation, and who hopes to catch another congregation with whom he can attain the entire prayer within its proper time, to delay so that he may catch it in full with them. This applies when he intends to confine himself to a single prayer; otherwise, it is more virtuous for him to pray with the first group and then repeat the prayer with the others." [Mughnī al-Muḥtāj,Vol. 3/P.186] And Allah the Almighty knows best.