body.dark {
    --whiteLine: #e5e9ee;
    --disabled: #446b7a;
    --sky: #0e2b4f;
    --courtout: #305a8c;
    --courtin: #153b68;
    --courtdark: #0d2f55;
    --neutralLight: #666;
    --neutral: #444; 
    --bright: greenyellow;
    --hint: #c9c9c9;
    --warning: #ff8c42;
    --penalty: #ff3b2e;
    --correctDark: #487d48;
    --correct: #5fa75f;
    --correctLight: #8fdb8f;
    --lineStyle: var(--whiteLineThickness) solid var(--whiteLine); /*NB: rewriting needed!*/
    --modalBg: #b5c1cd;
}

body.rg {
    --whiteLine: #F1F3F4;
    --disabled: #c4a98c;
    --sky: #9ac3e9;
    --courtout: #DB5A28;
    --courtin: #ae3019;
    --courtdark: #7a3f28;
    --neutralLight: #e5d6c6;
    --neutral: #b08a6d;
    --bright: #ffd966;
    --hint: #f7e8c0;
    --warning: #ff9933;
    --penalty: #e64c3c;
    --correctDark: #02543c;
    --correct: #02875c;
    --correctLight: #5eb682;
    --modalBg: #f4e1d4;

    --filter: brightness(0.75) sepia(0.9) hue-rotate(-15deg) saturate(6);

}

body.wimbledon {
    --whiteLine: white;
    --disabled: #bcd3bc;
    --sky: #7fc0f0;
    --courtout: #AACA2B;
    --courtin: #81AF16;
    --courtdark: #244224;
    --neutralLight: #d1d1c9;
    --neutral: #7f7f72;
    --bright: #ffeb3b;
    --hint: #f5f5dc; 
    --warning: #ffa500;
    --penalty: #cc3333;
    --correctDark: #356f35;
    --correct: #5ca85c;
    --correctLight: #8cd98c;
    --modalBg: #e6f5e6;
    --filter: brightness(0.7) sepia(0.8) hue-rotate(95deg) saturate(5);
}



body.rg.dark {
    --whiteLine: #EAEAEA;
    --disabled: #7a6a56; /* sable/gris désactivé */
    --sky: #1a2c3d; /* ciel nuit bleu foncé */
    --courtout: #8D3717; /* terre battue centrale nuit */
    --courtin: #6D2416; /* terre battue foncée (contour) */
    --courtdark: #3a1409; /* encore plus sombre */
    --neutralLight: #7f6b5c;
    --neutral: #5a4637;
    --bright: #ffd84d; /* jaune tamisé */
    --hint: #bca98a; /* beige sombre */
    --warning: #cc7a29; /* orange foncé */
    --penalty: #b33629; /* rouge sombre */
    --correctDark: #013527;
    --correct: #026445;
    --correctLight: #2e8c61;
    --modalBg: #aa8882;
    --filter: brightness(0.45) sepia(1) hue-rotate(-25deg) saturate(5);
}

body.wimbledon.dark {
    --whiteLine: #EAEAEA;
    --disabled: #5a6b5a; /* vert grisâtre désactivé */
    --sky: #13283f; /* ciel nuit plus sombre */
    --courtout: #5a8414; /* herbe centrale assombrie */
    --courtin: #476A0F; /* vert gazon foncé contour */
    --courtdark: #1a2f1a; /* vert très foncé usé */
    --neutralLight: #8a8a82;
    --neutral: #5a5a50;
    --bright: #ffe84d; /* balle jaune tamisée */
    --hint: #c9c9ae; /* beige/gris clair atténué */
    --warning: #cc8400; /* orange foncé */
    --penalty: #992626; /* rouge sombre */
    --correctDark: #1f4d1f;
    --correct: #3a6f3a;
    --correctLight: #5c995c;
    --modalBg: #8ba78b;
    --filter: brightness(0.5) sepia(1) hue-rotate(110deg) saturate(4.5);
}

body.us.dark #scores .player.out {
    color: var(--modalBg) !important
}

body.wimbledon #scores #player0.out {
    color: unset;
}

body.wimbledon #scores .winner, body.rg #scores .winner {
    background-color: var(--courtdark) !important;
    border-color: var(--courtdark) !important;
    color: var(--bright) !important;
}


body.wimbledon.dark #scores .player.out {
    color: unset;
}

body.rg #scores .winner {
    color: var(--whiteLine)
}

body.dark .point5 {
    background-color: var(--courtdark);
    border: 2px solid var(--neutralLight);
}

body.dark .point5 .corner {
    color: var(--modalBg);
}


body.dark .point5 .card-content {
    color: var(--modalBg);
    -webkit-text-stroke: unset;
}

body.dark .point3 {
    color: var(--courtdark);
}

body.dark .point3 .card-content {
    -webkit-text-stroke: 2px var(--courtdark)
}

body.dark .double .card-content, body.dark .doubleright .card-content {
    background: var(--modalBg);
    border-color: var(--modalBg);
}

body.dark .bcd .card-content {
    background: var(--courtdark);
    border-color: var(--courtdark);
}

body.dark .point8 {
    border: 2px solid var(--bright);
}