@@ -455,15 +455,22 @@ function applyTheme(theme) {
455455 if ( heart ) heart . innerText = '💜' ;
456456 }
457457 else if ( theme === 'random' ) {
458- // Generate a random Hue (0-360)
459458 const h = Math . floor ( Math . random ( ) * 360 ) ;
459+ // The "Secret Sauce": A second hue for accents (180 degrees away or +40)
460+ const accentHue = ( h + 160 ) % 360 ;
460461
461- // VIBRANT NEON LOGIC: Keep saturation high and lightness balanced
462- html . style . setProperty ( '--bg-page' , `hsl(${ h } , 45%, 7%)` ) ; // Very Dark
463- html . style . setProperty ( '--bg-card' , `hsl(${ h } , 35%, 12%)` ) ; // Slightly lighter
464- html . style . setProperty ( '--bg-footer' , `hsl(${ h } , 40%, 5%)` ) ; // Deepest
465- html . style . setProperty ( '--text-main' , `hsl(${ h } , 20%, 95%)` ) ; // Near White
466- html . style . setProperty ( '--text-muted' , `hsl(${ h } , 15%, 70%)` ) ; // Softened
462+ // Backgrounds (Consistent and Dark)
463+ html . style . setProperty ( '--bg-page' , `hsl(${ h } , 45%, 7%)` ) ;
464+ html . style . setProperty ( '--bg-card' , `hsl(${ h } , 35%, 12%)` ) ;
465+ html . style . setProperty ( '--bg-footer' , `hsl(${ h } , 40%, 5%)` ) ;
466+
467+ // Typography
468+ html . style . setProperty ( '--text-main' , `hsl(${ h } , 10%, 98%)` ) ; // Crisp White
469+ html . style . setProperty ( '--text-muted' , `hsl(${ h } , 20%, 70%)` ) ; // Readable Muted
470+
471+ // The Pop Colors (The ones you were missing!)
472+ html . style . setProperty ( '--accent' , `hsl(${ accentHue } , 90%, 65%)` ) ;
473+ html . style . setProperty ( '--accent-light' , `hsl(${ accentHue } , 90%, 40%)` ) ;
467474 html . style . setProperty ( '--border-color' , `hsl(${ h } , 30%, 20%)` ) ;
468475
469476 if ( heart ) {
@@ -949,8 +956,8 @@ function initSkillMining() {
949956
950957 skillTags . forEach ( tag => {
951958 // Remove old listeners to prevent double-firing
952- tag . removeEventListener ( 'mouseenter' , createXPPopup ) ;
953- tag . addEventListener ( 'mouseenter' , createXPPopup ) ;
959+ tag . removeEventListener ( 'mouseenter' , createFloatingXP ) ;
960+ tag . addEventListener ( 'mouseenter' , createFloatingXP ) ;
954961 } ) ;
955962}
956963
0 commit comments