Tapestry
When are masterpiece benefits gained during the income turn, and can resources gained that turn pay for them?
They are gained at the very start of each income turn as step 0, before the civilization and track steps. Resources gained later in the turn cannot pay for a masterpiece, so save resources in advance.