How does the FMC use the excess runway available
It doesnt.
and actual take-off mass, to calculate the N1 for take-off?
It isnt used.
The "standard" FMS has extremely limited calculation power, it doesnt calculate the takeoff weight so it doesnt need to know the runway length. The N1 is calculated based on pressure altitude and temperature, it doesnt use weight.
Mutt