You can add custom CSS under admin > customize > themes, the easiest way to find the relevant CSS classes is to right click an element on the page you want to edit and inspect it in your browser.
Otherwise you have to dig through Discourse’s source for reference (note, you can’t directly edit Discourse’s CSS… you have to override what you need in a theme) The badge page CSS is in this file discourse/app/assets/stylesheets/common/base/user-badges.scss at main · discourse/discourse · GitHub