EarthquakeGround can hit adjacent allies; Dazzling GleamFairy does not. SurfWater is Water-type, so Flying or Levitate alone does not grant immunity. Spread moves do not all share a target list.
Applicable multi-target moves normally use a 0.75 damage modifier, but not simply according to the number finally hit. Another target protecting, being immune or being missed does not automatically restore single-target damage here; use execution-time target conditions.
Exact damage includes rounding at several steps. Multiplying the final range by 0.75 is not an exact engine result. Fixed-damage and multi-hit moves need separate treatment. For knockout odds, compare the complete outcomes with remaining HP.