I found the issue. It wasn't CSS. Apparently Windows 11 scales everything by default (according to resolution?) and I guess I never realized until trying to work with exact pixel values here