Sunburn pain

You may not experience this phenomenon, but here goes.

Say you’re wearing shorts to the ball game and you get a toasty little sunburn, but only from the mid-thigh down. Right at the edge of where your shorts were covering you, there’s a nice, clean transition from sunburned skin to not-sunburned skin.

Why is it that so much of the pain associated with the sunburn seems to happen right at that transition?

If you get a sunburn all over your back, for instance, the whole thing hurts plenty, but if you have an area like this on your arms or your thighs or somewhere, all the hurt seems to be concentrated in that twilight zone right at the edge of the burn.

Does the sunburn damage nerve endings to some extent, and the transition zone has A-OK nerves that can fire those little pain signals just fine? The body does nice things to block pain, so perchance this could be close? I am beginning to peel myself today, so I should learn more about sunburns.

I won’t rule that out, UncleBill, but I have to say that nerve damage sounds a little severe to me.