Suppose I'm playing UW Miracles in Legacy. During my opponent's turn, I cast Brainstorm, and the first card that I draw is Entreat the Angels. If I choose to cast the card for its miracle cost, what order do the triggers resolve in?
Does the Miracle trigger go on the stack immediately, before Brainstorm finishes resolving (ie. before I draw my other cards and then put cards back on my library)? Am I then able to pay the cost and create my angels in the middle of the Brainstorm? Or does the trigger wait until Brainstorm has finished resolving? What if I chose to put Entreat back on top of my library?