I have a little “survival tool” a bit bigger than a credit card, which has a compass and a blade.. as well as a can opener and a magnifying glass. Not the greatest..but would get you home.. and gut the deer.
I also have little “altoids packs” which fit in a pocket.. so you don’t leave it behind. Ist aid and a bic lighter, sweets and other stuff. And I usually put this in a bum bag which has a survival blanket, plastic sheet, and a length of cord. All for emergency.. lost in the hills on a rainy night. Lots of threads on the net about these kits.
The situation you describe is all to common….