fix: state rule.
- Correct the range of selector for index-based state definition.
- Merge reusable vars into common purpose based one.
- Add selector to define legacy appearance scope.
- Init appearance vars on Card VO
- Add legacy to the appearance know type list