I'm sorry for your loss.
I'm not as lucky as you have been, I never had the opportunity to have a pet, but I know that animals tend to hide themselves when they feel it coming.
I know of only another cat that did the same act of searching for his dear friend when near his end. He and my friend were inseparable, as in they had such a bond they gravitated towards the other. You could truly tell by sight.
Judging by what she did, I think you may have had the same kind of love for her, as she felt so comfortable around you.
Even as the playful scratches heal, do not forget her, cry, then go forward in your life, head up, straight back.
I bet she wouldn't want to see you in this state.