Break down the monolithic styles.css into smaller, logically separated files stored in the css/ directory.
The CSS files will be loaded directly in index.html via <link> tags to allow parallel downloading. The load order is crucial because some files rely on variables and foundational resets.
css/variables.css: CSS variables (colors, sizing, shadows), basic reset, and scrollbar styling.css/layout.css: High-level app layout structure (.app-layout).css/titlebar.css: Custom titlebar styling.css/sidebar.css: Left control panel, stats ring, rarity gems, controls, and dropdowns.css/main-content.css: Top bar, section titles, and high-level skin grid layout.css/skin-card.css: Individual skin card styling, hover effects, rare gems on cards, locks, and chromas.css/overlays.css: Empty states, loading overlays, error overlays, and modal box styles.css/animations.css: All@keyframesdeclarations.
Moving the CSS context into the css/ directory requires updating relative URLs for background images.
url('assets/...')will be updated tourl('../assets/...')in the new CSS files.
- Create the 8 files in
css/. - Update
index.htmlto removestyles.cssand use 8<link rel="stylesheet">tags. - Validate that the application retains identical visuals.