First: we are ignoring leap years.
This means that if we have a line of 366 people, two of them must share a birthday.
Also, the first person in line cannot win.
So the sum of probabilities for the remaining 365 positions must total to 1.
Meanwhile, since only one person can win, we know that all positions ahead of the winner have distinct birthdays (and we do not know or care about the positions following the winner).
The base chance to win (ignoring other possibilities) thus increases linearly.
The base chance to be continuedbeaten increases quadratically (it's the sum of the base chance to be beaten, by each of your predecessors).
(to be continued...)