score:9
Yes, the relevant distance is the straight line (that is, the "great-circle distance") directly from your point of departure to your final destination.
This was ruled by the European Court of Justice in Bossen v Brussels Airlines from 2017.