Out of nowhere, my foreskin has become tight and won't move, also my shaft is swollen?

Firstly I'm uncircumcised, and I've just noticed this about an hour ago so I'm quite worried. I don't know if it's some kind of internal damage as I was masturbating prior to this and I hope I didn't go too rough. But it was fine a couple of hours ago, but out of nowhere I've noticed that my foreskin is now extremely tight around the shaft of my penis, and I can barely slide the skin it up or down right now, it's like it's sticking to the inside. I've also noticed the bottom of the shaft seems to be slightly inflated or swollen, and the head of the penis doesn't seem to be getting larger when erect (however the shaft still does) so I'm not sure if it's a problem with the circulation in the head area? Help appreciated

What age are you?
Have you ever noticed any tightness in your foreskin before? That is, were you fully able to expose the head / glans of your penis without any tightness, discomfort or pain, or it getting stuck part-way?
It is quite unusual for swelling to occur for no reason, unless the head area of the penis has been injured in some way
If this does not clear within a matter of a few days I would seek medical attention as this would seem to be quite unusual - certainly if things to continue to get worse I would get yourself checked straight away

Hello, thank you for the reply but it seems to be considerately much better (if not completely) now. But I’m 26, and I hadn’t noticed it before. But I’d searched online to find out it has happened to others when they were too rough during masturbation, and it usually clears up in a couple of days. And the swelling for me has gone down mostly now, thank goodness.

My suggestion would be that if these kinds of things happen it could be an indicator of a slightly tight foreskin.
Unless you were masturbating for say way in excess of 3 hours or more, and / or were being extremely rough with your penis swelling like this should not occur. The other possibility could be explained (partially) if you masturbated 3, 4 or 5 times or more within a period of 36 to 48 hours and your penis did not have sufficient ‘recovery’ time.
Swelling, without due cause can be an indicator of other problems, either to your penis itself, or to your health more generally