Below are my favorite books on the subjects of mastering and sound design:
Mastering
"The Mastering Engineer's Handbook, 4th Edition" by Bobby Owsinski
Sound Design
"Refining Sound: A Practical Guide to Synthesis and Synthesizers" by Brian K. Shepard