I dont really understand what you mean sorry...its a complex idea so its hard to articulate i know

My understanding is this
you put your marker on the character you want and push the button combo and select the character
this triggers the game to go take the portrait id and match it to the corresponding character id.
if the portrait id matches the id in the code, then the code tells the game to load the files from the corresponding character in the folder that you set for alternate files.
thus, if the css is changed, it will not use the correct portrait id, and the alternate files wont be loaded....
sooo if thats all true, i guess I need to know how to find the portrait ID of a given portrait in a CSS?