/* =========================================
   CSS VARIABLES FOR THEMES & NOTES
   ========================================= */
:root {
    --bg-color: #050505;
    --circle-bg: repeating-radial-gradient(circle, #0f0f0f 0px, #0f0f0f 4px, #1a1a1a 5px, #1a1a1a 6px);
    --circle-border: #333333;
    --circle-border-width: 10px;
    --inner-bg: #ff0055;
    --inner-border: #111111;
    --stick-color: #cccccc;
    --stick-width: 8px;
    --shadow-outer: 0 0 20px rgba(0, 0, 0, 0.8);
    --shadow-inner: inset 0 0 10px rgba(0, 0, 0, 0.9);
    --shadow-stick: -4px 0 6px rgba(255, 255, 255, 0.8), -10px 0 12px rgba(255, 255, 255, 0.5);
    --ui-text-color: #fff;
    --ui-text-shadow: 0 2px 5px black;

    /* Note Colors (Default) */
    --n-norm-bg: rgba(255, 255, 255, 0.8);
    --n-norm-border: transparent;
    --n-norm-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    --n-dead-bg: black;
    --n-dead-border: #f44336;
    --n-dead-shadow: 0 0 10px rgba(244, 67, 54, 0.8);
    --n-doub-bg: #00e5ff;
    --n-doub-border: transparent;
    --n-doub-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
    --n-hold-bg: #ff9100;
    --n-hold-border: transparent;
    --n-hold-shadow: 0 0 15px rgba(255, 145, 0, 0.8);
    --n-hold-grad: rgba(255, 145, 0, 0.4);
    --n-rev-bg: #00e676;
    --n-rev-border: white;
    --n-rev-shadow: 0 0 15px rgba(0, 230, 118, 0.8);
    --n-tc-w-bg: black;
    --n-tc-w-border: white;
    --n-tc-w-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    --n-tc-b-bg: black;
    --n-tc-b-border: #00e5ff;
    --n-tc-b-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
    --n-bnce-bg: #ff007f;
    --n-bnce-border: #fff;
    --n-bnce-shadow: 0 0 15px #ff007f;

    /* Hit Feedback Colors */
    --c-perfect: #00e676;
    --c-great: #ffea00;
    --c-good: #ff9100;
    --c-miss: #f44336;
    --c-wrong: #f44336;
    --c-ouch: #f44336;
    --c-deadly: #f44336;
    --c-reverse: #00e676;
    --c-bounce: #ff007f;
    --c-hold: #ff9100;

    --feedback-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* GLOBAL ANIMATIONS */
@keyframes bgPan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

@keyframes bgPulse {
    0% {
        background-position: center;
        background-size: 100%;
    }

    50% {
        background-size: 120%;
    }

    100% {
        background-size: 100%;
    }
}

/* =========================================
   NEBULA PULSE THEME
   ========================================= */
[data-theme="nebula"] {
    --bg-color: #0a0020;
    --circle-bg: radial-gradient(circle, #1a0040 0%, #0d0025 60%, #05001a 100%);
    --circle-border: #8a2be2;
    --circle-border-width: 8px;
    --inner-bg: #00e5ff;
    --inner-border: #8a2be2;
    --stick-color: #e040fb;
    --stick-width: 6px;
    --shadow-outer: 0 0 30px rgba(138, 43, 226, 0.6), 0 0 60px rgba(0, 229, 255, 0.3);
    --shadow-inner: inset 0 0 15px rgba(138, 43, 226, 0.8);
    --shadow-stick: 0 0 10px #e040fb, 0 0 20px rgba(224, 64, 251, 0.5);
    --ui-text-color: #e0d0ff;
    --ui-text-shadow: 0 0 10px #8a2be2, 0 2px 5px black;

    --n-norm-bg: #e040fb;
    --n-norm-border: #00e5ff;
    --n-norm-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
    --n-doub-bg: #00e5ff;
    --n-doub-border: #e040fb;
    --n-doub-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
    --n-hold-bg: #ff6d00;
    --n-hold-border: #e040fb;
    --n-hold-shadow: 0 0 15px rgba(255, 109, 0, 0.8);
    --n-hold-grad: rgba(224, 64, 251, 0.3);
    --n-rev-bg: #00e676;
    --n-rev-border: #e040fb;
    --n-rev-shadow: 0 0 15px rgba(0, 230, 118, 0.8);

    --c-perfect: #00e5ff;
    --c-great: #00e676;
    --c-good: #ffea00;
    --c-miss: #ff0055;
    --c-wrong: #ff0055;
    --c-ouch: #ff0055;
    --c-deadly: #ff0055;
    --c-reverse: #00e5ff;
    --c-bounce: #e040fb;
    --c-hold: #ff6d00;
}

[data-theme="nebula"] body,
body[data-theme="nebula"] {
    background: radial-gradient(ellipse at center, #1a0040 0%, #0a0020 50%, #020010 100%);
}

/* --- NEBULA PALETTE: Light Blue --- */
[data-palette="lightblue"][data-theme="nebula"],
body[data-theme="nebula"][data-palette="lightblue"],
#theme-live-preview[data-theme="nebula"][data-palette="lightblue"] {
    --circle-border: #00bfff;
    --inner-bg: #ffffff;
    --inner-border: #00bfff;
    --stick-color: #00e5ff;
    --shadow-outer: 0 0 30px rgba(0, 191, 255, 0.6);
    --shadow-inner: inset 0 0 15px rgba(0, 191, 255, 0.5);
    --shadow-stick: 0 0 10px #00e5ff;
    --n-norm-bg: #00e5ff;
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* --- NEBULA PALETTE: Acid Green --- */
[data-palette="green"][data-theme="nebula"],
body[data-theme="nebula"][data-palette="green"],
#theme-live-preview[data-theme="nebula"][data-palette="green"] {
    --circle-border: #00e676;
    --inner-bg: #b2ff59;
    --inner-border: #00e676;
    --stick-color: #76ff03;
    --shadow-outer: 0 0 30px rgba(0, 230, 118, 0.6);
    --shadow-inner: inset 0 0 15px rgba(0, 230, 118, 0.5);
    --shadow-stick: 0 0 10px #76ff03;
    --n-norm-bg: #00e676;
    --n-norm-border: #b2ff59;
    --n-norm-shadow: 0 0 12px rgba(178, 255, 89, 0.5);
}

/* --- DEFAULT PALETTE: White (Added Contrast) --- */
[data-palette="white"][data-theme="default"],
body[data-theme="default"][data-palette="white"],
#theme-live-preview[data-theme="default"][data-palette="white"] {
    --bg-color: #f0f0f0;
    --circle-bg: repeating-radial-gradient(circle, #e8e8e8 0px, #e8e8e8 4px, #f2f2f2 5px, #f2f2f2 6px);
    --circle-border: #cccccc;
    --inner-bg: #ff0055;
    --inner-border: #dddddd;
    --stick-color: #333333;
    --shadow-outer: 0 0 20px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 0 10px rgba(0, 0, 0, 0.1);
    --shadow-stick: -4px 0 6px rgba(0, 0, 0, 0.3);
    --ui-text-color: #222;
    --ui-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

    /* OVERRIDES FOR VISIBILITY ON WHITE */
    --n-norm-bg: #222222;
    --n-norm-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    --n-doub-bg: #0077cc;
    --n-doub-shadow: 0 0 15px rgba(0, 119, 204, 0.6);
    --n-rev-bg: #009944;
    --n-rev-shadow: 0 0 15px rgba(0, 153, 68, 0.6);
}

/* =========================================
   CANDY POP THEME (DELUXE)
   ========================================= */
[data-theme="candypop"] {
    --bg-color: #ffe6f2;
    --circle-bg: repeating-radial-gradient(circle at center, #ffccff 0, #ffccff 20px, #ff99cc 20px, #ff99cc 40px);
    --circle-border: #ff007f;
    --circle-border-width: 8px;
    --inner-bg: #fff0f5;
    --inner-border: #ff007f;
    --stick-color: #ff007f;
    --stick-width: 10px;
    --shadow-outer: 0 0 40px rgba(255, 0, 127, 0.6), 0 0 80px rgba(255, 102, 178, 0.4), inset 0 0 30px rgba(255, 0, 127, 0.5);
    --shadow-inner: 0 0 25px rgba(255, 0, 127, 0.8), inset 0 0 15px rgba(255, 0, 127, 0.8);
    --shadow-stick: 0 0 20px #ff007f, 0 0 35px rgba(255, 0, 127, 0.8);
    --ui-text-color: #ff007f;
    --ui-text-shadow: 0 3px 15px rgba(255, 0, 127, 0.9), 0 0 25px white;

    --n-norm-bg: radial-gradient(circle, #ffffff 15%, #ff3399 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 25px #ff3399, inset 0 0 10px white;
    --n-doub-bg: radial-gradient(circle, #ffffff 15%, #00ccff 100%);
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 0 25px #00ccff, inset 0 0 10px white;
    --n-hold-bg: radial-gradient(circle, #ffffff 15%, #ffaa00 100%);
    --n-hold-border: #ff007f;
    --n-hold-shadow: 0 0 25px #ffaa00, inset 0 0 10px white;
    --n-hold-grad: rgba(255, 170, 0, 0.5);
    --n-rev-bg: radial-gradient(circle, #ffffff 15%, #00ff66 100%);
    --n-rev-border: #ffffff;
    --n-rev-shadow: 0 0 25px #00ff66, inset 0 0 10px white;
}

[data-theme="candypop"] body,
body[data-theme="candypop"] {
    background: repeating-linear-gradient(45deg, #ffe6f2, #ffe6f2 40px, #ffb3d9 40px, #ffb3d9 80px);
    background-size: 200vw 200vh;
    animation: candyScroll 20s linear infinite;
}

@keyframes candyScroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -200px 200px;
    }
}

/* --- CANDY POP PALETTE: White (Marshmallow) --- */
[data-palette="white"][data-theme="candypop"],
body[data-theme="candypop"][data-palette="white"],
#theme-live-preview[data-theme="candypop"][data-palette="white"] {
    --bg-color: #ffffff;
    --circle-bg: repeating-radial-gradient(circle at center, #ffffff 0, #ffffff 25px, #f0f0f0 25px, #f0f0f0 50px);
    --circle-border: #ff66b2;
    --inner-bg: #ffffff;
    --inner-border: #00ccff;
    --stick-color: #ff66b2;
    --shadow-outer: 0 0 50px rgba(255, 102, 178, 0.6), inset 0 0 40px rgba(0, 204, 255, 0.3);
    --shadow-inner: 0 0 25px rgba(0, 204, 255, 0.9);
    --shadow-stick: 0 0 20px #ff66b2, 0 0 40px white;
    --ui-text-color: #ff007f;
    --ui-text-shadow: 0 3px 10px rgba(0, 204, 255, 0.8), 0 0 20px #ff66b2;
    --n-norm-bg: radial-gradient(circle, #ff66b2 20%, #cc0066 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 30px #ff66b2, inset 0 0 10px white;
}

body[data-theme="candypop"][data-palette="white"] {
    background: repeating-linear-gradient(-45deg, #ffffff, #ffffff 50px, #f5f5f5 50px, #f5f5f5 100px);
    animation: candyScroll 25s linear infinite reverse;
}

/* --- CANDY POP PALETTE: Dark Gray-Blue (Blueberry) --- */
[data-palette="darkblue"][data-theme="candypop"],
body[data-theme="candypop"][data-palette="darkblue"],
#theme-live-preview[data-theme="candypop"][data-palette="darkblue"] {
    --circle-bg: repeating-radial-gradient(circle at center, #1e2833 0, #1e2833 20px, #2b3a4a 20px, #2b3a4a 40px);
    --circle-border: #00e5ff;
    --inner-bg: #ff007f;
    --inner-border: #00e5ff;
    --stick-color: #00e5ff;
    --ui-text-color: #00e5ff;
    --ui-text-shadow: 0 0 20px #00e5ff, 0 0 40px #ff007f;
    --shadow-outer: 0 0 50px rgba(0, 229, 255, 0.6), inset 0 0 40px rgba(255, 0, 127, 0.5);
    --shadow-inner: 0 0 30px #ff007f;
    --shadow-stick: 0 0 30px #00e5ff, 0 0 50px #ff007f;
    --n-norm-bg: radial-gradient(circle, #ffffff 10%, #00e5ff 100%);
    --n-norm-border: #ff007f;
    --n-norm-shadow: 0 0 35px #00e5ff, 0 0 60px #ff007f;
}

body[data-theme="candypop"][data-palette="darkblue"] {
    background: repeating-linear-gradient(45deg, #11171d, #11171d 30px, #1a222a 30px, #1a222a 60px);
}

/* --- CANDY POP PALETTE: Cool Ice (Mint) --- */
[data-palette="cool"][data-theme="candypop"],
body[data-theme="candypop"][data-palette="cool"],
#theme-live-preview[data-theme="candypop"][data-palette="cool"] {
    --circle-bg: repeating-radial-gradient(circle at center, #b3e6ff 0, #b3e6ff 25px, #77ddff 25px, #77ddff 50px);
    --circle-border: #ffffff;
    --inner-bg: #b3e6ff;
    --inner-border: #006699;
    --stick-color: #ffffff;
    --ui-text-color: #ffffff;
    --ui-text-shadow: 0 0 20px #0088cc, 0 0 40px #004466, 0 0 60px cyan;
    --shadow-outer: 0 0 60px rgba(51, 204, 255, 0.8), inset 0 0 30px #ffffff;
    --shadow-inner: 0 0 30px #ffffff, 0 0 10px #0088cc;
    --shadow-stick: 0 0 30px #ffffff, 0 0 60px #33ccff;
    --n-norm-bg: radial-gradient(circle, #ffffff 10%, #0055aa 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 35px #0055aa, 0 0 60px #ffffff;
}

body[data-theme="candypop"][data-palette="cool"] {
    background: repeating-linear-gradient(-45deg, #e6f7ff, #e6f7ff 35px, #ccf0ff 35px, #ccf0ff 70px);
    animation: candyScroll 15s linear infinite reverse;
}

/* --- CANDY POP PALETTE: Dark Noir (Licorice) --- */
[data-palette="dark"][data-theme="candypop"],
body[data-theme="candypop"][data-palette="dark"] {
    --circle-bg: repeating-radial-gradient(circle at center, #1a001a 0, #1a001a 15px, #000000 15px, #000000 30px);
    --circle-border: #ff0055;
    --inner-bg: #000000;
    --inner-border: #ff0055;
    --stick-color: #ff0055;
    --ui-text-color: #ff0055;
    --ui-text-shadow: 0 0 30px #ff0055, 0 0 60px #ff66b2, 0 0 90px red;
    --shadow-outer: 0 0 70px rgba(255, 0, 85, 0.7), inset 0 0 40px rgba(255, 102, 178, 0.4);
    --shadow-inner: 0 0 30px #ff0055;
    --shadow-stick: 0 0 40px #ff0055, 0 0 80px #ff66b2;
    --n-norm-bg: radial-gradient(circle, #ff66b2 10%, #550022 100%);
    --n-norm-border: #ff0055;
    --n-norm-shadow: 0 0 40px #ff0055, 0 0 70px #ff66b2;
}

body[data-theme="candypop"][data-palette="dark"] {
    background: repeating-linear-gradient(45deg, #0d000d, #0d000d 20px, #1a001a 20px, #1a001a 40px);
}

/* =========================================
   RADIOACTIVE THEME
   ========================================= */
[data-theme="radioactive"] {
    --bg-color: #051a05;
    --circle-bg: repeating-conic-gradient(from 0deg, #0a260a 0deg 15deg, #051a05 15deg 30deg);
    --circle-border: #39ff14;
    --circle-border-width: 6px;
    --inner-bg: #000000;
    --inner-border: #39ff14;
    --stick-color: #39ff14;
    --stick-width: 6px;
    --shadow-outer: 0 0 30px rgba(57, 255, 20, 0.4), inset 0 0 60px rgba(57, 255, 20, 0.2);
    --shadow-inner: 0 0 20px rgba(57, 255, 20, 0.6), inset 0 0 20px rgba(57, 255, 20, 0.6);
    --shadow-stick: 0 0 15px #39ff14, 0 0 30px rgba(57, 255, 20, 0.8);
    --ui-text-color: #39ff14;
    --ui-text-shadow: 0 0 10px #39ff14, 0 0 25px #194d19;

    --n-norm-bg: radial-gradient(circle, #ccffcc 10%, #39ff14 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 30px #39ff14, inset 0 0 15px rgba(255, 255, 255, 0.9);
    --n-doub-bg: radial-gradient(circle, #e6ffff 10%, #00ffff 100%);
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 0 30px #00ffff, inset 0 0 15px rgba(255, 255, 255, 0.9);
    --n-hold-bg: radial-gradient(circle, #ffffcc 10%, #ffcc00 100%);
    --n-hold-border: #ffffff;
    --n-hold-shadow: 0 0 30px #ffcc00, inset 0 0 15px rgba(255, 255, 255, 0.9);
    --n-hold-grad: rgba(255, 204, 0, 0.5);
    --n-rev-bg: radial-gradient(circle, #ffcccc 10%, #ff0055 100%);
    --n-rev-border: #ffffff;
    --n-rev-shadow: 0 0 30px #ff0055, inset 0 0 15px rgba(255, 255, 255, 0.9);

    --c-perfect: #00ff00;
    --c-great: #00ff66;
    --c-good: #aaff00;
    --c-miss: #ff0000;
    --c-wrong: #ff0000;
    --c-ouch: #ff0000;
    --c-deadly: #ff0000;
    --c-reverse: #00ffff;
    --c-bounce: #00ff00;
    --c-hold: #00ff66;
}

[data-theme="radioactive"] body,
body[data-theme="radioactive"] {
    background: #020a02;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.15) 0%, transparent 70%),
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(57, 255, 20, 0.05) 4px, rgba(57, 255, 20, 0.05) 8px);
}

/* --- RADIOACTIVE PALETTE: Deep Sea Blue --- */
[data-palette="blue"][data-theme="radioactive"],
body[data-theme="radioactive"][data-palette="blue"],
#theme-live-preview[data-theme="radioactive"][data-palette="blue"] {
    --circle-bg: repeating-conic-gradient(from 0deg, #001133 0deg 20deg, #00001a 20deg 40deg);
    --circle-border: #00ffff;
    --inner-bg: #000000;
    --inner-border: #0088cc;
    --stick-color: #00ffff;
    --ui-text-color: #00ffff;
    --ui-text-shadow: 0 0 15px #00ffff, 0 0 30px #0088cc;
    --shadow-outer: 0 0 40px rgba(0, 255, 255, 0.4), inset 0 0 60px rgba(0, 255, 255, 0.2);
    --shadow-inner: 0 0 25px rgba(0, 255, 255, 0.6), inset 0 0 35px rgba(0, 255, 255, 0.4);
    --shadow-stick: 0 0 15px #00ffff, 0 0 35px rgba(0, 255, 255, 0.8);
    --n-norm-bg: radial-gradient(circle, #ccffff 10%, #00ffff 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 35px #00ffff, inset 0 0 20px white;
}

body[data-theme="radioactive"][data-palette="blue"] {
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.15) 0%, #000 70%);
}

/* --- RADIOACTIVE PALETTE: White Glow --- */
[data-palette="white"][data-theme="radioactive"],
body[data-theme="radioactive"][data-palette="white"],
#theme-live-preview[data-theme="radioactive"][data-palette="white"] {
    --circle-bg: repeating-conic-gradient(from 0deg, #ffffff 0deg 45deg, #e6ffe6 45deg 90deg);
    --circle-border: #00cc00;
    --inner-bg: #ffffff;
    --inner-border: #00ff00;
    --stick-color: #00ff00;
    --ui-text-color: #00cc00;
    --ui-text-shadow: 0 0 15px #00cc00, 0 0 30px #ffffff;
    --shadow-outer: 0 0 50px rgba(0, 255, 0, 0.5), inset 0 0 60px rgba(255, 255, 255, 0.8);
    --shadow-inner: 0 0 35px #00ff00, inset 0 0 40px rgba(255, 255, 255, 0.9);
    --shadow-stick: 0 0 20px #00ff00, 0 0 40px #ffffff;
    --n-norm-bg: radial-gradient(circle, #00ff00 30%, #004400 100%);
    --n-norm-border: #00ff00;
    --n-norm-shadow: 0 0 40px #00ff00, inset 0 0 20px white;

    /* VISIBILITY OVERRIDES */
    --n-hold-bg: radial-gradient(circle, #ffcc00 10%, #cc7700 100%);
    --n-hold-shadow: 0 0 30px #cc7700, inset 0 0 15px rgba(255, 255, 255, 0.9);
    --n-doub-bg: radial-gradient(circle, #00ffff 10%, #0044aa 100%);
    --n-doub-shadow: 0 0 30px #0044aa, inset 0 0 15px rgba(255, 255, 255, 0.9);
}

body[data-theme="radioactive"][data-palette="white"] {
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #ccffcc 100%);
}

/* --- RADIOACTIVE PALETTE: Biohazard Black --- */
[data-palette="black"][data-theme="radioactive"],
body[data-theme="radioactive"][data-palette="black"],
#theme-live-preview[data-theme="radioactive"][data-palette="black"] {
    --circle-bg: repeating-conic-gradient(from 0deg, #000000 0deg 60deg, #021a02 60deg 120deg);
    --circle-border: #111111;
    --circle-border-width: 12px;
    --inner-bg: #000000;
    --inner-border: #004400;
    --stick-color: #00ff00;
    --ui-text-color: #00ff00;
    --ui-text-shadow: 0 0 15px #00ff00, 0 0 30px #004400;
    --shadow-outer: 0 0 60px rgba(0, 255, 0, 0.2), inset 0 0 90px rgba(0, 0, 0, 0.9);
    --shadow-inner: 0 0 20px rgba(0, 255, 0, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.8);
    --shadow-stick: 0 0 20px #00ff00, 0 0 40px rgba(0, 255, 0, 0.6);
    --n-norm-bg: radial-gradient(circle, #00ff00 10%, #003300 100%);
    --n-norm-border: #00ff00;
    --n-norm-shadow: 0 0 40px #00ff00, inset 0 0 20px #000000;
}

body[data-theme="radioactive"][data-palette="black"] {
    background: #000000;
}

/* =========================================
   STEAMPUNK FORGE THEME
   ========================================= */
[data-theme="steampunk"] {
    --bg-color: #120b06;
    --sp-cb-bg1: #b87333;
    --sp-cb-bg2: #8b4513;
    --sp-ic-bg1: #5c3a21;
    --sp-ic-bg2: #2b1708;

    --circle-border: #d4af37;
    --inner-border: #b87333;
    --stick-color: #d4af37;

    --c-perfect: #ffd700;
    --c-great: #e6c200;
    --c-good: #b87333;
    --c-miss: #8b0000;
    --c-wrong: #8b0000;
    --c-ouch: #8b0000;
    --c-deadly: #8b0000;
    --c-reverse: #ffd700;
    --c-bounce: #e6c200;
    --c-hold: #b87333;
}

body[data-theme="steampunk"] #main-container .circle-wrapper,
#theme-live-preview[data-theme="steampunk"] .circle-wrapper {
    background: repeating-conic-gradient(from 0deg, var(--sp-cb-bg1) 0deg 10deg, var(--sp-cb-bg2) 10deg 20deg);
}

body[data-theme="steampunk"] #main-container .inner-circle,
#theme-live-preview[data-theme="steampunk"] .inner-circle {
    border-style: dashed;
    background: repeating-radial-gradient(circle, var(--sp-ic-bg1) 0, var(--sp-ic-bg1) 10px, var(--sp-ic-bg2) 10px, var(--sp-ic-bg2) 20px);
}

/* --- STEAMPUNK PALETTE: Tesla Arc --- */
[data-palette="tesla"][data-theme="steampunk"],
body[data-theme="steampunk"][data-palette="tesla"],
#theme-live-preview[data-theme="steampunk"][data-palette="tesla"] {
    --bg-color: #001122;
    --sp-bg-glow: rgba(0, 229, 255, 0.15);
    --circle-border: #00e5ff;
    --inner-border: #00e5ff;
    --stick-color: #00e5ff;
    --ui-text-color: #00e5ff;
    --ui-text-shadow: 0 2px 4px #000, 0 0 25px #0088cc;
    --shadow-outer: 0 0 60px rgba(0, 229, 255, 0.3), inset 0 0 80px rgba(0, 0, 0, 0.95);
    --shadow-inner: 0 0 40px rgba(0, 229, 255, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.8);
    --shadow-stick: -4px 0 10px rgba(0, 0, 0, 0.9), 0 0 25px #00e5ff;
    --n-norm-bg: radial-gradient(circle, #00ffff 10%, #0055aa 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 35px #00ffff, inset 0 0 15px #0055aa;
    --sp-cb-bg1: #003366;
    --sp-cb-bg2: #001133;
    --sp-ic-bg1: #004466;
    --sp-ic-bg2: #001122;
}

/* Cleaned overridden circle-bg and stick to use custom properties */

/* --- STEAMPUNK PALETTE: Acid Copper --- */
[data-palette="acid"][data-theme="steampunk"],
body[data-theme="steampunk"][data-palette="acid"],
#theme-live-preview[data-theme="steampunk"][data-palette="acid"] {
    --bg-color: #0a140a;
    --sp-bg-glow: rgba(0, 255, 102, 0.15);
    --circle-border: #00ff66;
    --inner-border: #00ff66;
    --stick-color: #00ff66;
    --ui-text-color: #00ff66;
    --ui-text-shadow: 0 2px 4px #000, 0 0 25px #00aa44;
    --shadow-outer: 0 0 60px rgba(0, 255, 102, 0.3), inset 0 0 80px rgba(0, 0, 0, 0.95);
    --shadow-inner: 0 0 40px rgba(0, 255, 102, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.8);
    --shadow-stick: -4px 0 10px rgba(0, 0, 0, 0.9), 0 0 25px #00ff66;
    --n-norm-bg: radial-gradient(circle, #aaff00 10%, #44aa00 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 35px #aaff00, inset 0 0 15px #44aa00;

    --n-hold-bg: radial-gradient(circle, #00ffff 10%, #0055aa 100%);
    --n-hold-border: #ffffff;
    --n-hold-shadow: 0 0 30px #00ffff, inset 0 0 15px rgba(255, 255, 255, 0.9);
    --n-doub-bg: radial-gradient(circle, #ff00ff 10%, #aa00aa 100%);
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 0 30px #ff00ff, inset 0 0 15px rgba(255, 255, 255, 0.9);
    --sp-cb-bg1: #1a4d29;
    --sp-cb-bg2: #0d2614;
    --sp-ic-bg1: #245e35;
    --sp-ic-bg2: #112b18;
}

/* =========================================
   GLITCH CORE THEME
   ========================================= */
[data-theme="glitchcore"] {
    --bg-color: #050510;
    --circle-bg: repeating-linear-gradient(0deg, #0a0a1a 0px, #0a0a1a 2px, #050510 3px, #050510 6px);
    --circle-border: #00e5ff;
    --circle-border-width: 10px;
    --inner-bg: #111122;
    --inner-border: #ff0055;
    --stick-color: #ffffff;
    --stick-width: 8px;

    --shadow-outer: 0 0 20px rgba(0, 229, 255, 0.4), -5px 0 10px rgba(255, 0, 85, 0.4), 5px 0 10px rgba(0, 255, 102, 0.4);
    --shadow-inner: inset 0 0 15px rgba(0, 229, 255, 0.5);
    --shadow-stick: -3px 0 0 #ff0055, 3px 0 0 #00e5ff;
    --ui-text-color: #ffffff;
    --ui-text-shadow: -2px 0 0 #ff0055, 2px 0 0 #00e5ff;

    --n-norm-bg: #ffffff;
    --n-norm-border: #00e5ff;
    --n-norm-shadow: -3px 0 0 #ff0055, 3px 0 0 #00e5ff, 0 0 15px #00e5ff;
    --n-doub-bg: #00e5ff;
    --n-doub-border: #ffffff;
    --n-doub-shadow: -4px 0 0 #ff0055, 0 0 20px #00e5ff;
    --n-hold-bg: #ffaa00;
    --n-hold-border: #ffffff;
    --n-hold-shadow: -3px 0 0 #ff0055, 3px 0 0 #00e5ff, 0 0 15px #ffaa00;
    --n-hold-grad: rgba(255, 170, 0, 0.4);
    --n-rev-bg: #00ff66;
    --n-rev-border: #ffffff;
    --n-rev-shadow: -3px 0 0 #ff0055, 3px 0 0 #00e5ff, 0 0 15px #00ff66;

    --c-perfect: #00e5ff;
    --c-great: #00bfff;
    --c-good: #ffffff;
    --c-miss: #ff0055;
    --c-wrong: #ff0055;
    --c-ouch: #ff0055;
    --c-deadly: #ff0055;
    --c-reverse: #00e5ff;
    --c-bounce: #ffffff;
    --c-hold: #00bfff;
}

[data-theme="glitchcore"] body,
body[data-theme="glitchcore"] {
    background-color: var(--bg-color);
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 2px);
    animation: bgGlitch 8s infinite linear;
}

@keyframes bgGlitch {

    0%,
    96%,
    98%,
    100% {
        filter: hue-rotate(0deg);
    }

    97% {
        filter: hue-rotate(90deg) contrast(150%);
    }

    99% {
        filter: hue-rotate(-90deg) contrast(150%);
    }
}

body[data-theme="glitchcore"] #main-container .circle-wrapper {
    border: 10px dashed var(--circle-border);
    animation: wrapperGlitch 4s infinite alternate;
}

#theme-live-preview[data-theme="glitchcore"] .circle-wrapper {
    border: 10px dashed var(--circle-border);
    animation: none;
}

body[data-theme="glitchcore"] #main-container .stick,
#theme-live-preview[data-theme="glitchcore"] .stick {
    border-radius: 0;
    opacity: 0.9;
}

@keyframes wrapperGlitch {

    0%,
    95%,
    100% {
        transform: translate(0, 0);
        filter: drop-shadow(0 0 0 transparent);
    }

    96% {
        transform: translate(-3px, 3px);
        filter: drop-shadow(4px -4px 0px rgba(0, 229, 255, 0.5));
    }

    98% {
        transform: translate(3px, -3px);
        filter: drop-shadow(-4px 4px 0px rgba(255, 0, 85, 0.5));
    }
}

[data-palette="red"][data-theme="glitchcore"],
body[data-theme="glitchcore"][data-palette="red"],
#theme-live-preview[data-theme="glitchcore"][data-palette="red"] {
    --circle-border: #ff0055;
    --inner-border: #00e5ff;
    --shadow-outer: 0 0 20px rgba(255, 0, 85, 0.4), -5px 0 10px rgba(0, 229, 255, 0.4), 5px 0 10px rgba(255, 234, 0, 0.4);
    --shadow-inner: inset 0 0 15px rgba(255, 0, 85, 0.5);
    --shadow-stick: -3px 0 0 #00e5ff, 3px 0 0 #ff0055;
    --ui-text-shadow: -2px 0 0 #00e5ff, 2px 0 0 #ff0055;
    --n-norm-border: #ff0055;
    --n-norm-shadow: -3px 0 0 #00e5ff, 3px 0 0 #ff0055, 0 0 15px #ff0055;
    --n-doub-bg: #ff0055;
    --n-doub-shadow: -4px 0 0 #00e5ff, 0 0 20px #ff0055;
}

[data-palette="green"][data-theme="glitchcore"],
body[data-theme="glitchcore"][data-palette="green"],
#theme-live-preview[data-theme="glitchcore"][data-palette="green"] {
    --circle-border: #00ff66;
    --inner-border: #ff0055;
    --shadow-outer: 0 0 20px rgba(0, 255, 102, 0.4), -5px 0 10px rgba(255, 0, 85, 0.4), 5px 0 10px rgba(0, 229, 255, 0.4);
    --shadow-inner: inset 0 0 15px rgba(0, 255, 102, 0.5);
    --shadow-stick: -3px 0 0 #ff0055, 3px 0 0 #00ff66;
    --ui-text-shadow: -2px 0 0 #ff0055, 2px 0 0 #00ff66;
    --n-norm-border: #00ff66;
    --n-norm-shadow: -3px 0 0 #ff0055, 3px 0 0 #00ff66, 0 0 15px #00ff66;
    --n-doub-bg: #00ff66;
    --n-doub-shadow: -4px 0 0 #ff0055, 0 0 20px #00ff66;
}

[data-palette="yellow"][data-theme="glitchcore"],
body[data-theme="glitchcore"][data-palette="yellow"],
#theme-live-preview[data-theme="glitchcore"][data-palette="yellow"] {
    --circle-border: #ffea00;
    --inner-border: #00e5ff;
    --shadow-outer: 0 0 20px rgba(255, 234, 0, 0.4), -5px 0 10px rgba(0, 229, 255, 0.4), 5px 0 10px rgba(255, 0, 85, 0.4);
    --shadow-inner: inset 0 0 15px rgba(255, 234, 0, 0.5);
    --shadow-stick: -3px 0 0 #00e5ff, 3px 0 0 #ffea00;
    --ui-text-shadow: -2px 0 0 #00e5ff, 2px 0 0 #ffea00;
    --n-norm-border: #ffea00;
    --n-norm-shadow: -3px 0 0 #00e5ff, 3px 0 0 #ffea00, 0 0 15px #ffea00;
    --n-doub-shadow: -4px 0 0 #00e5ff, 0 0 20px #ffea00;
}

/* =========================================
   CAT THEME
   ========================================= */
[data-theme="cat"] {
    --bg-color: #ffffff;
    --circle-bg: radial-gradient(circle, #f0f0f0 0%, #e0e0e0 100%);
    --circle-border: #000000;
    --circle-border-width: 6px;
    --inner-bg: #ffffff;
    --inner-border: #000000;
    --stick-color: #000000;
    --stick-width: 8px;

    --shadow-outer: 0 0 15px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 0 10px rgba(0, 0, 0, 0.05);
    --shadow-stick: 0 0 10px rgba(0, 0, 0, 0.2);
    --ui-text-color: #000000;
    --ui-text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);

    --n-norm-bg: #000000;
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    --n-doub-bg: #555555;
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 0 10px rgba(85, 85, 85, 0.3);
    --n-hold-bg: #888888;
    --n-hold-border: #ffffff;
    --n-hold-shadow: 0 0 10px rgba(136, 136, 136, 0.3);
    --n-hold-grad: rgba(136, 136, 136, 0.3);
    --n-rev-bg: #aaaaaa;
    --n-rev-border: #000000;
    --n-rev-shadow: 0 0 10px rgba(170, 170, 170, 0.3);
}

[data-theme="cat"] body,
body[data-theme="cat"] {
    background-color: var(--bg-color);
}

/* --- CAT PALETTE: White & Black --- */
[data-palette="white-black"][data-theme="cat"],
body[data-theme="cat"][data-palette="white-black"],
#theme-live-preview[data-theme="cat"][data-palette="white-black"] {
    --bg-color: #ffffff;
    --circle-bg: #f9f9f9;
    --circle-border: #000000;
    --inner-bg: #ffffff;
    --inner-border: #000000;
    --stick-color: #000000;
    --ui-text-color: #000000;
    --n-norm-bg: #000000;
    --n-norm-border: #ffffff;
    --n-doub-bg: #333333;
    --n-hold-bg: #666666;
    --n-rev-bg: #999999;

    --c-perfect: #000000;
    --c-great: #333333;
    --c-good: #666666;
    --c-miss: #ff0000;
    --c-wrong: #ff0000;
    --c-ouch: #ff0000;
    --c-deadly: #ff0000;
    --c-reverse: #000000;
    --c-bounce: #333333;
    --c-hold: #666666;
}

/* --- CAT PALETTE: Black & White --- */
[data-palette="black-white"][data-theme="cat"],
body[data-theme="cat"][data-palette="black-white"],
#theme-live-preview[data-theme="cat"][data-palette="black-white"] {
    --bg-color: #000000;
    --circle-bg: #111111;
    --circle-border: #ffffff;
    --inner-bg: #000000;
    --inner-border: #ffffff;
    --stick-color: #ffffff;
    --ui-text-color: #ffffff;
    --n-norm-bg: #ffffff;
    --n-norm-border: #000000;
    --n-doub-bg: #cccccc;
    --n-hold-bg: #999999;
    --n-rev-bg: #666666;

    --c-perfect: #ffffff;
    --c-great: #cccccc;
    --c-good: #999999;
    --c-miss: #ff0055;
    --c-wrong: #ff0055;
    --c-ouch: #ff0055;
    --c-deadly: #ff0055;
    --c-reverse: #ffffff;
    --c-bounce: #cccccc;
    --c-hold: #999999;
}

/* --- CAT PALETTE: Orange & Dark Orange --- */
[data-palette="orange"][data-theme="cat"],
body[data-theme="cat"][data-palette="orange"],
#theme-live-preview[data-theme="cat"][data-palette="orange"] {
    --bg-color: #ffb74d;
    --circle-bg: #ff9800;
    --circle-border: #e65100;
    --inner-bg: #ffb74d;
    --inner-border: #e65100;
    --stick-color: #e65100;
    --ui-text-color: #e65100;
    --ui-text-shadow: 0 0 10px rgba(230, 81, 0, 0.4);
    --shadow-outer: 0 0 20px rgba(230, 81, 0, 0.3);
    --shadow-inner: inset 0 0 15px rgba(230, 81, 0, 0.3);
    --shadow-stick: 0 0 15px rgba(230, 81, 0, 0.5);

    --n-norm-bg: #e65100;
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 15px #e65100;
    --n-doub-bg: #bf360c;
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 0 15px #bf360c;
    --n-hold-bg: #ff3d00;
    --n-hold-shadow: 0 0 15px #ff3d00;
    --n-rev-bg: #dd2c00;
    --n-rev-shadow: 0 0 15px #dd2c00;

    --c-perfect: #e65100;
    --c-great: #ff9800;
    --c-good: #ffcc80;
    --c-miss: #d32f2f;
    --c-wrong: #d32f2f;
    --c-ouch: #d32f2f;
    --c-deadly: #d32f2f;
    --c-reverse: #e65100;
    --c-bounce: #ff9800;
    --c-hold: #ffcc80;
}

/* --- CAT PALETTE: Blue & Purple --- */
[data-palette="blue-purple"][data-theme="cat"],
body[data-theme="cat"][data-palette="blue-purple"],
#theme-live-preview[data-theme="cat"][data-palette="blue-purple"] {
    --bg-color: #64b5f6;
    --circle-bg: #2196f3;
    --circle-border: #4a148c;
    --inner-bg: #64b5f6;
    --inner-border: #4a148c;
    --stick-color: #4a148c;
    --ui-text-color: #4a148c;
    --ui-text-shadow: 0 0 10px rgba(74, 20, 140, 0.4);
    --shadow-outer: 0 0 20px rgba(74, 20, 140, 0.3);
    --shadow-inner: inset 0 0 15px rgba(74, 20, 140, 0.3);
    --shadow-stick: 0 0 15px rgba(74, 20, 140, 0.5);

    --n-norm-bg: #4a148c;
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 15px #4a148c;
    --n-doub-bg: #7b1fa2;
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 0 15px #7b1fa2;
    --n-hold-bg: #2979ff;
    --n-hold-shadow: 0 0 15px #2979ff;
    --n-rev-bg: #00b0ff;
    --n-rev-shadow: 0 0 15px #00b0ff;

    --c-perfect: #00e5ff;
    --c-great: #b388ff;
    --c-good: #ea80fc;
    --c-miss: #ff0055;
    --c-wrong: #ff0055;
    --c-ouch: #ff0055;
    --c-deadly: #ff0055;
    --c-reverse: #00e5ff;
    --c-bounce: #b388ff;
    --c-hold: #ea80fc;
}

/* --- CAT DETAILS (EARS, FACE, PAW) --- */
[data-theme="cat"] .circle-wrapper::before,
[data-theme="cat"] .circle-wrapper::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--circle-bg);
    border: var(--circle-border-width, 6px) solid var(--circle-border);
    z-index: -1;
    top: 5px;
    border-radius: 12px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
    transition: background-color 1s ease, border-color 1s ease;
}

[data-theme="cat"] .circle-wrapper::before {
    left: 15px;
    transform: rotate(-25deg) skewX(15deg);
}

[data-theme="cat"] .circle-wrapper::after {
    right: 15px;
    transform: rotate(25deg) skewX(-15deg);
}

[data-theme="cat"] .inner-circle {
    background-color: var(--inner-bg);
    background-image:
        radial-gradient(ellipse 3.5px 5.5px at 15px 20px, var(--ui-text-color) 99%, transparent 100%),
        radial-gradient(ellipse 3.5px 5.5px at 33px 20px, var(--ui-text-color) 99%, transparent 100%),
        radial-gradient(ellipse 4px 3px at 24px 28px, #ffb6c1 99%, transparent 100%);
    background-repeat: no-repeat;
}

[data-theme="cat"] .inner-circle::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 2px;
    width: 8px;
    height: 1.5px;
    background: var(--ui-text-color);
    box-shadow:
        2px -5px 0 var(--ui-text-color),
        2px 5px 0 var(--ui-text-color),
        36px 0 0 var(--ui-text-color),
        34px -5px 0 var(--ui-text-color),
        34px 5px 0 var(--ui-text-color);
    border-radius: 2px;
    opacity: 0.5;
}

[data-theme="cat"] .stick::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 16px;
    background: var(--stick-color);
    border-radius: 10px 10px 15px 15px;
    box-shadow:
        -8px -8px 0 -3px var(--stick-color),
        0px -10px 0 -2px var(--stick-color),
        8px -8px 0 -3px var(--stick-color);
    transition: background-color 1s ease, box-shadow 1s ease;
}

/* =========================================
   ★ UNIQUE PREMIUM SKINS (Custom Particles & Fonts)
   ========================================= */

/* UNIQUE CAT THEME PARTICLES & TEXT */
[data-theme="cat"] .feedback-text {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif !important;
    color: var(--ui-text-color) !important;
    text-shadow: 0 0 10px #fff, 0 0 20px var(--ui-text-color) !important;
    letter-spacing: 2px;
    animation: catBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes catBounce {
    0% {
        transform: translate(-50%, 0) scale(0.5);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -20px) scale(1.2) rotate(5deg);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -30px) scale(1);
        opacity: 0;
    }
}

[data-theme="cat"] .hit-particle {
    border-radius: 50% !important;
    width: 12px !important;
    height: 10px !important;
    background-color: var(--n-norm-bg) !important;
    box-shadow:
        -6px -6px 0 -2px var(--n-norm-bg),
        0px -9px 0 -1px var(--n-norm-bg),
        6px -6px 0 -2px var(--n-norm-bg),
        inset 0 0 3px rgba(255, 255, 255, 0.8) !important;
    border: none !important;
    clip-path: none !important;
}

/* UNIQUE GLITCH CORE TEXT */
[data-theme="glitchcore"] .feedback-text {
    color: var(--ui-text-color) !important;
    text-shadow: var(--ui-text-shadow), 0 0 10px #ffffff !important;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    letter-spacing: 2px;
    animation: textGlitch 0.4s cubic-bezier(.25, .46, .45, .94) both !important;
}

@keyframes textGlitch {
    0% {
        transform: translate(-50%, 0) skew(0deg);
        opacity: 0;
        clip-path: inset(0 0 0 0);
    }

    20% {
        transform: translate(-52%, -10px) skew(-10deg);
        opacity: 1;
        clip-path: inset(10% 0 80% 0);
    }

    40% {
        transform: translate(-48%, -15px) skew(10deg);
        opacity: 1;
        clip-path: inset(80% 0 10% 0);
    }

    60% {
        transform: translate(-50%, -20px) skew(0deg);
        opacity: 1;
        clip-path: inset(30% 0 40% 0);
    }

    80% {
        transform: translate(-50%, -25px) skew(0deg);
        opacity: 1;
        clip-path: inset(0 0 0 0);
        filter: hue-rotate(90deg);
    }

    100% {
        transform: translate(-50%, -30px) skew(0deg);
        opacity: 0;
        clip-path: inset(0 0 0 0);
        filter: hue-rotate(0deg);
    }
}

[data-theme="glitchcore"] .hit-particle {
    border-radius: 0 !important;
    width: 15px !important;
    height: 3px !important;
    background-color: var(--n-norm-bg) !important;
    box-shadow: var(--n-norm-shadow) !important;
    animation-timing-function: steps(5, end) !important;
}

/* UNIQUE RADIOACTIVE TEXT */
[data-theme="radioactive"] .feedback-text {
    color: var(--ui-text-color) !important;
    text-shadow: 0 0 10px var(--ui-text-color), 0 0 20px #000 !important;
    font-family: 'Impact', 'Courier New', sans-serif;
    letter-spacing: 4px;
    animation: radioactiveText 0.5s ease-out forwards !important;
    text-transform: uppercase;
}

@keyframes radioactiveText {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5);
        filter: brightness(2);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -15px) scale(1.3);
        filter: brightness(1.5);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -30px) scale(1.1);
        filter: brightness(1);
    }
}

[data-theme="radioactive"] .hit-particle {
    border-radius: 50% !important;
    width: 10px !important;
    height: 10px !important;
    background-color: var(--ui-text-color) !important;
    box-shadow: 0 0 10px var(--ui-text-color);
}

/* UNIQUE 1: Vampire Lord */


/* UNIQUE 2: Cyber-Oni */


/* UNIQUE 3: Frostbite King */


/* UNIQUE 4: Galactic Emperor */


/* UNIQUE 5: Candy Pop */


[data-theme="candypop"] .feedback-text {
    color: #ff66b2 !important;
    text-shadow: 0 4px 0 #cc0066, 0 0 10px #fff !important;
    animation: bouncyText 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

[data-theme="candypop"] .hit-particle {
    border-radius: 2px !important;
    width: 12px !important;
    height: 6px !important;
}

/* UNIQUE 5b: Candy Pop Noir */


/* UNIQUE 5c: Candy Pop Sour */


/* UNIQUE 5d: Dark Candy */


/* UNIQUE 5e: Candy Ice */


/* UNIQUE 6: Steampunk+ */


/* UNIQUE 6b: Steampunk Forge */

@keyframes steamGlow {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -10px) scale(1.1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -15px) scale(1.15);
    }

    80% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -30px) scale(0.9);
    }
}

[data-theme="steampunk"] .feedback-text {
    color: var(--ui-text-color) !important;
    text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 0 0 15px var(--ui-text-color), 0 0 30px #ff4500 !important;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 4px;
    font-weight: 900;
    text-transform: uppercase;
    animation: steamGlow 0.8s forwards ease-out !important;
}

[data-theme="steampunk"] .hit-particle {
    border-radius: 2px !important;
    width: 10px !important;
    height: 10px !important;
    background: var(--ui-text-color) !important;
    box-shadow: 0 0 10px #ff4500, inset 0 0 4px #ffffff;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* UNIQUE 7: Biohazard+ */


/* UNIQUE 9: Abyssal Leviathan */


/* UNIQUE 10: Draconic Forge */


/* ========= MOBILE CONTROLS ========= */
#mobile-controls {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 50;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
    pointer-events: none;
}

#mobile-controls.active {
    display: flex;
}

#mobile-controls button {
    pointer-events: auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#mobile-controls button:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.92);
}

/* =========================================
   CORE STYLES & UI
   ========================================= */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    user-select: none;
    transition: background-color 1s ease, background 1s ease;
}

#particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #00e676;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px #00e676;
}

.shake {
    animation: slightShake 0.3s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes slightShake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    20% {
        transform: translate(-3px, 2px) rotate(-1deg);
    }

    40% {
        transform: translate(3px, -2px) rotate(1deg);
    }

    60% {
        transform: translate(-2px, -3px) rotate(-0.5deg);
    }

    80% {
        transform: translate(2px, 3px) rotate(0.5deg);
    }
}

.damage-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(255, 0, 0, 0.4) 100%);
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    color: var(--ui-text-color);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: 0.2s;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-ui {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-board {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 5px;
    color: var(--ui-text-color);
    text-shadow: var(--ui-text-shadow);
    transition: color 1s, text-shadow 1s;
}

.combo-board {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--ui-text-color);
    text-shadow: var(--ui-text-shadow);
    transition: transform 0.1s, color 1s, text-shadow 1s;
    transform-origin: center;
}

.hp-container {
    width: 300px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.hp-bar {
    width: 100%;
    height: 100%;
    background-color: #00e676;
    transition: width 0.2s, background-color 0.3s;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.hp-container[data-hp-state="high"] .hp-bar {
    background-color: #00e676;
}

.hp-container[data-hp-state="med"] .hp-bar {
    background-color: #ffea00;
}

.hp-container[data-hp-state="low"] .hp-bar {
    background-color: #f44336;
}

/* HP Overrides for Unique Themes */
[data-theme="candypop"] .hp-container {
    border-color: #ff66b2;
    background-color: #ffe6f2;
    border-radius: 20px;
    border-width: 4px;
    box-shadow: 0 4px 0px #cc0066;
}

[data-theme="candypop"] .hp-container[data-hp-state="high"] .hp-bar {
    background: repeating-linear-gradient(45deg, #ff66b2, #ff66b2 10px, #ffb3d9 10px, #ffb3d9 20px);
    border-radius: 10px;
}

[data-theme="candypop"] .hp-container[data-hp-state="med"] .hp-bar {
    background: #ffcc00;
    border-radius: 10px;
}

[data-theme="candypop"] .hp-container[data-hp-state="low"] .hp-bar {
    background: #f44336;
    border-radius: 10px;
}

/* Candy Noir HP */
/* Candy Sour HP */
/* Dark Candy HP */
/* Candy Ice HP */
.container {
    display: flex;
    gap: 50px;
    transition: gap 0.3s;
    z-index: 5;
}

.circle-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    background: var(--circle-bg);
    border: var(--circle-border-width, 10px) solid var(--circle-border);
    box-shadow: var(--shadow-outer);
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color 1s ease, box-shadow 1s ease, background-color 1s ease;
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--inner-bg);
    border: var(--circle-border-width, 10px) solid var(--inner-border);
    box-shadow: var(--shadow-inner);
    border-radius: 50%;
    z-index: 10;
    box-sizing: border-box;
    transition: background-color 1s ease, border-color 1s ease;
}

.stick-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    z-index: 5;
    pointer-events: none;
}

.stick {
    position: absolute;
    top: 0;
    left: calc(50% - (var(--stick-width) / 2));
    width: var(--stick-width);
    height: 50%;
    background: var(--stick-color);
    border-radius: 10px 10px 0 0;
    box-shadow: var(--shadow-stick);
    transition: background-color 1s ease, box-shadow 1s ease;
}

/* =========================================
   MARKERS / TARGETS
   ========================================= */

.dynamic-target {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s, filter 0.3s ease-out;
}

.dynamic-target.pending-reverse {
    filter: grayscale(100%) brightness(0.5) opacity(0.35);
}

.dynamic-target .mark {
    position: absolute;
    bottom: 50%;
    left: calc(50% - 4px);
    width: 8px;
    height: 35px;
    margin-bottom: 50px;
    transform-origin: bottom center;
    animation: spawnPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    z-index: 3;
    background: var(--mark-bg, var(--n-norm-bg));
    border: 2px solid var(--mark-border, var(--n-norm-border));
    box-shadow: var(--mark-shadow, var(--n-norm-shadow)), inset 0 0 5px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    transition: background-color 1s, border-color 1s, box-shadow 1s;
    border-radius: 2px;
}

.dynamic-target .deadly-mark {
    background: var(--n-dead-bg) !important;
    border: 2px solid var(--n-dead-border);
    box-shadow: var(--n-dead-shadow), inset 0 0 5px rgba(0, 0, 0, 0.5) !important;
}

.dynamic-target .double-mark {
    background: var(--n-doub-bg) !important;
    border: 2px solid var(--n-doub-border);
    box-shadow: var(--n-doub-shadow), inset 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.dynamic-target .hold-mark {
    background: var(--n-hold-bg) !important;
    border: 2px solid var(--n-hold-border);
    box-shadow: var(--n-hold-shadow), inset 0 0 5px rgba(0, 0, 0, 0.3) !important;
    border-radius: 4px;
}

.dynamic-target .reverse-mark {
    background-color: var(--n-rev-bg) !important;
    border: 1px solid var(--n-rev-border);
    box-shadow: var(--n-rev-shadow), inset 0 0 5px rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% 50% 0 0;
}

.dynamic-target .bounce-mark {
    background-color: var(--n-bnce-bg) !important;
    border: 2px solid var(--n-bnce-border);
    box-shadow: var(--n-bnce-shadow), inset 0 0 5px rgba(0, 0, 0, 0.3) !important;
    border-radius: 4px;
}

.dynamic-target .bounce-mark::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px dashed var(--n-bnce-border);
    border-radius: 4px;
    transition: border-color 1s;
}

.dynamic-target .twoclicks-white {
    background-color: var(--n-tc-w-bg) !important;
    border: 2px solid var(--n-tc-w-border);
    box-shadow: var(--n-tc-w-shadow), inset 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.dynamic-target .twoclicks-blue {
    background-color: var(--n-tc-b-bg) !important;
    border: 2px solid var(--n-tc-b-border);
    box-shadow: var(--n-tc-b-shadow), inset 0 0 5px rgba(0, 0, 0, 0.3) !important;
}

.dynamic-target .hold-body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
    animation: spawnPop 0.3s forwards;
}

@keyframes spawnPop {
    0% {
        transform: scaleY(0.1) translateY(30px);
        opacity: 0;
    }

    100% {
        transform: scaleY(1) translateY(0);
        opacity: 1;
    }
}

/* CUSTOM FEEDBACK & PARTICLES */
.feedback-text {
    position: absolute;
    top: -50px;
    left: 50%;
    font-family: var(--feedback-font);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 20px currentColor;
    pointer-events: none;
    z-index: 100;
    animation: floatUp 0.6s forwards;
    color: #fff;
    white-space: nowrap;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(0.5) rotate(-5deg);
    }

    30% {
        transform: translate(-50%, 0) scale(1.1) rotate(3deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -30px) scale(1) rotate(0deg);
    }
}

@keyframes textGlitch {
    0% {
        transform: translate(-50%, -30px) skew(0deg);
    }

    20% {
        transform: translate(-52%, -30px) skew(-10deg);
    }

    40% {
        transform: translate(-48%, -30px) skew(10deg);
    }

    60% {
        transform: translate(-50%, -28px) skew(0deg);
    }

    80% {
        transform: translate(-50%, -32px) skew(0deg);
    }

    100% {
        transform: translate(-50%, -50px) scale(1.2);
        opacity: 0;
    }
}

@keyframes bouncyText {
    0% {
        transform: translate(-50%, 0) scale(0.5);
        opacity: 1;
    }

    30% {
        transform: translate(-50%, -20px) scale(1.3) rotate(-10deg);
    }

    50% {
        transform: translate(-50%, -10px) scale(1) rotate(5deg);
    }

    100% {
        transform: translate(-50%, -40px) scale(1.1) rotate(0deg);
        opacity: 0;
    }
}

.shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    border: 6px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    z-index: 1;
    animation: shockwaveAnim 0.4s ease-out forwards;
}

@keyframes shockwaveAnim {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.hit-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    animation: particleExplode 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transform-origin: center center;
}

@keyframes particleExplode {
    0% {
        transform: translate(-50%, -50%) scale(var(--scale, 1)) rotate(var(--rot, 0deg));
        opacity: 1;
    }

    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0) rotate(calc(var(--rot, 0deg) + 360deg));
        opacity: 0;
    }
}

/* ================= OVERLAYS ================= */
.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.main-menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.game-logo {
    font-size: 4rem;
    font-weight: 900;
    margin: 0;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.game-subtitle {
    color: #888;
    font-size: 1.1rem;
    margin-top: -10px;
    margin-bottom: 20px;
    text-align: center;
}

.audio-upload-zone {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    box-sizing: border-box;
}

.audio-upload-zone:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00e676;
}

.audio-upload-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.upload-status {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
}

.upload-ready {
    border-color: #00e676;
    background: rgba(0, 230, 118, 0.1);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.btn-play {
    grid-column: span 2;
    background: #fff;
    color: #000;
    font-size: 1.5rem;
    padding: 25px;
    margin-top: 10px;
}

.btn-play:hover:not(:disabled) {
    background: #00e676;
    color: black;
    box-shadow: 0 0 20px #00e676;
}

.btn-play:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* SUB MENUS */
.sub-menu-panel {
    display: flex;
    flex-direction: column;
    background: #111;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    color: white;
}

.sub-menu-panel::-webkit-scrollbar {
    width: 8px;
}

.sub-menu-panel::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
}

.sub-menu-panel::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.sub-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.sub-menu-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.diff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.speed-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.diff-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.speed-card {
    padding: 15px 10px;
}

.diff-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
}

.diff-card p {
    margin: 10px 0 0 0;
    font-size: 0.9rem;
    color: #888;
    line-height: 1.4;
}

.diff-card:hover {
    transform: translateY(-5px);
    border-color: #777;
}

.diff-card.active {
    border-color: #00e676;
    background: rgba(0, 230, 118, 0.1);
}

.diff-card.active h3 {
    color: #00e676;
}

/* THEME CATALOG UI */
.theme-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    padding: 10px;
    max-height: 50vh;
    overflow-y: auto;
}

.theme-catalog::-webkit-scrollbar {
    width: 6px;
}

.theme-catalog::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
}

.theme-catalog::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.theme-card {
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 15px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s;
}

.theme-card.active {
    border-color: #00e5ff;
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.theme-card:hover:not(.active) {
    transform: translateY(-5px);
    border-color: #666;
}

.theme-card span {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    line-height: 1.2;
}

.preview-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
}

/* Previews */
.preview-default {
    background: black;
    border: 4px solid white;
}

.preview-default::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: black;
    border: 3px solid white;
}

.preview-steampunk {
    background: repeating-radial-gradient(#3e2723, #3e2723 3px, #2b1b17 4px, #2b1b17 6px);
    border: 4px solid #b87333;
}

.preview-steampunk::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 3px solid #cd7f32;
    background: #1c110a;
}

.preview-candypop {
    background: #ffe6f2;
    border: 3px solid #ff66b2;
    box-shadow: 0 4px 0 #cc0066;
}

.preview-candypop::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #00ccff;
}

/* --- NEW MODIFIER HUB --- */

.mod-multiplier-header {
    background: linear-gradient(90deg, #111, #222);
    border: 1px solid #333;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.mod-multiplier-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ccc;
}

.mod-multiplier-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ccc;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    font-family: monospace;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.mod-multiplier-value.multi-positive {
    color: #00e676;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
}

.mod-multiplier-value.multi-negative {
    color: #ff5252;
    text-shadow: 0 0 15px rgba(255, 82, 82, 0.4);
}

.mod-categories {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-right: 15px;
    /* For scrollbar */
    max-height: 55vh;
    overflow-y: auto;
}

.mod-categories::-webkit-scrollbar {
    width: 6px;
}

.mod-categories::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 6px;
}

.mod-category-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
    text-align: left;
    margin-top: 0;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.mod-card {
    background: #151515;
    border: 2px solid #2a2a2a;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.mod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 230, 118, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.mod-card:hover:not(.disabled) {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.mod-card.active {
    border-color: #00e676;
    background: #1a251c;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.2), inset 0 0 10px rgba(0, 230, 118, 0.1);
}

.mod-card.active::before {
    opacity: 1;
}

.mod-card.disabled {
    opacity: 0.3;
    filter: grayscale(100%);
    cursor: not-allowed;
    border-color: #222;
}

.mod-card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    z-index: 2;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}

.mod-card:hover:not(.disabled) .mod-card-icon {
    transform: scale(1.1);
}

.mod-card-content {
    text-align: center;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.mod-card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.mod-card-desc {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.3;
}

.mod-card-multi {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.mod-card-multi.bonus {
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.mod-card-multi.penalty {
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.mod-card-multi.bonus-neutral {
    color: #ccc;
    border: 1px solid #444;
}

.setting-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.setting-toggle label {
    margin: 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .3s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.setting-group {
    margin-bottom: 25px;
    text-align: left;
}

.setting-group label {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: bold;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #444;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.offset-flex {
    display: flex;
    gap: 15px;
    align-items: center;
}

.offset-flex input[type="number"] {
    flex: 1;
    padding: 12px;
    background: #222;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: #333;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: #555;
}

.ui-panel {
    position: absolute;
    z-index: 10;
    pointer-events: auto;
}

#mobile-controls {
    display: none;
    position: fixed;
    bottom: 10%;
    left: 0;
    width: 100%;
    justify-content: space-between;
    padding: 0 5%;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 50;
}

.mobile-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    user-select: none;
}

.mobile-btn:active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }

    .game-container {
        flex-direction: column;
    }

    #mobile-controls.active {
        display: flex;
    }

    .circle-wrapper {
        width: 160px;
        height: 160px;
    }

    .inner-circle {
        width: 40px;
        height: 40px;
    }

    .dynamic-target .mark {
        height: 25px;
        margin-bottom: 35px;
    }

    .shockwave {
        width: 160px;
        height: 160px;
    }

    .hp-container {
        width: 250px;
    }

    .diff-cards {
        grid-template-columns: 1fr;
    }

    .theme-catalog {
        grid-template-columns: 1fr 1fr;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .btn-play {
        grid-column: span 1;
    }
}

/* --- DJ TURNTABLE PREVIEW OVERRIDE --- */
.preview-default {
    border-color: #333333 !important;
    background: repeating-radial-gradient(circle, #0f0f0f 0px, #0f0f0f 2px, #1a1a1a 3px, #1a1a1a 4px) !important;
    position: relative !important;
}

.preview-default::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    background: #ff0055 !important;
    border: 2px solid #111 !important;
}


/* =========================================
   THEME: NEBULA PULSE (PREMIUM)
   ========================================= */
[data-theme="nebula"] {
    --bg-color: #02000d;
    --circle-bg: radial-gradient(circle at center, #1b0038, #050014);
    --circle-border: #00e5ff;
    --circle-border-width: 4px;
    --inner-bg: #8a2be2;
    --inner-border: #00ffff;
    --stick-color: #ff007f;
    --shadow-outer: 0 0 30px rgba(0, 229, 255, 0.4), inset 0 0 50px rgba(138, 43, 226, 0.3);
    --shadow-inner: 0 0 15px #00ffff;
    --shadow-stick: -4px 0 10px rgba(255, 0, 127, 0.8);
    --ui-text-color: #00e5ff;
    --ui-text-shadow: 0 0 10px #00e5ff, 0 0 20px #8a2be2;

    --n-norm-bg: #e040fb;
    --n-norm-border: #fff;
    --n-norm-shadow: 0 0 15px rgba(224, 64, 251, 0.8);
}

[data-theme="nebula"] #particles-bg {
    opacity: 0.7;
}

[data-theme="nebula"] .circle-bg {
    animation: nebulaSpin 20s linear infinite;
    background-image: conic-gradient(from 0deg, #1b0038 0%, #00e5ff 25%, #8a2be2 50%, #00e5ff 75%, #1b0038 100%) !important;
    background-size: cover;
    background-blend-mode: color-dodge;
    border-color: #00ffff;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), inset 0 0 50px rgba(138, 43, 226, 0.6) !important;
}

@keyframes nebulaSpin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

[data-theme="nebula"] .inner-circle {
    animation: nebulaPulse 2s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px #00ffff;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 30px #e040fb;
    }
}

[data-theme="nebula"] .stick {
    background: linear-gradient(to top, #ff007f, #00e5ff) !important;
}

/* Custom Hit Particles for Nebula (Diamond shape with trail) */
[data-theme="nebula"] .hit-particle {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background-color: #00ffff !important;
    box-shadow: 0 0 15px #fff;
    width: 14px !important;
    height: 14px !important;
}

[data-theme="nebula"] .hit-particle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, #e040fb, transparent);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.8;
}

/* Custom Feedback Text */
[data-theme="nebula"] .feedback-text {
    color: #fff !important;
    text-shadow: 0 0 10px #e040fb, 0 0 20px #00ffff !important;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 900;
    letter-spacing: 3px;
    animation: nebulaFloatText 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes nebulaFloatText {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.5) skewX(-15deg);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -20px) scale(1.2) skewX(10deg);
        text-shadow: 0 0 20px #fff, 0 0 40px #00ffff;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -40px) scale(1) skewX(0deg);
    }
}

/* Custom Custom UI for Nebula */
[data-theme="nebula"] .hp-container {
    border-color: #e040fb;
    box-shadow: 0 0 15px #e040fb;
}

[data-theme="nebula"] .hp-bar {
    background: linear-gradient(90deg, #ff007f, #00e5ff) !important;
    box-shadow: none !important;
}

/* Nebula Catalog Card Preview */
.theme-card.nebula-card {
    border-color: #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    background: linear-gradient(135deg, rgba(27, 0, 56, 0.8), rgba(0, 229, 255, 0.1));
}

.preview-nebula {
    border-color: #00ffff !important;
    background-image: conic-gradient(from 0deg, #1b0038 0%, #00e5ff 25%, #8a2be2 50%, #00e5ff 75%, #1b0038 100%) !important;
    background-size: cover;
    box-shadow: 0 0 15px #8a2be2 !important;
    position: relative !important;
}

.preview-nebula::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    background: #8a2be2 !important;
    border: 2px solid #00ffff !important;
}


/* =========================================
   IMMERSIVE THEME SELECTOR & PALETTES
   ========================================= */

.theme-panel-large {
    max-width: 900px !important;
    width: 95vw;
}

.theme-split-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    height: 500px;
}

/* LEFT PANE - LIVE PREVIEW */
.theme-preview-pane {
    flex: 1;
    min-height: 400px;
    background: #050505;
    border-radius: 15px;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.preview-game-area {
    position: relative;
    width: 100%;
    height: 100%;
    transform: scale(0.6);
    transform-origin: center center;
}

.preview-score {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: var(--ui-text-color);
    text-shadow: var(--ui-text-shadow);
    font-family: var(--feedback-font, 'Courier New', Courier, monospace);
    font-weight: bold;
}

.preview-combo {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 10px #00e676;
    font-family: var(--feedback-font, 'Courier New', Courier, monospace);
    font-weight: bold;
}

.preview-hp-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 20px;
    background: #111;
    border: 2px solid var(--n-norm-bg);
    border-radius: 10px;
    overflow: hidden;
}

.preview-hp-bar {
    width: 80%;
    height: 100%;
    background: var(--ui-text-color);
    transition: background 0.5s ease;
}

.preview-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

/* RIGHT PANE - SELECTION LIST */
.theme-selection-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 12px;
    overflow-y: auto;
}

.theme-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-list-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-list-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
}

.theme-list-item.active {
    border-color: var(--n-norm-bg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.theme-info h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}

.theme-info p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #aaa;
}

.palette-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.palette-swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}

.palette-swatch:hover {
    transform: scale(1.2);
}

.palette-swatch.active {
    transform: scale(1.3);
    box-shadow: 0 0 10px #fff;
}

/* =========================================
   PALETTE OVERRIDES (NEBULA)
   ========================================= */

/* NEBULA: LIGHT BLUE PALETTE */
[data-theme="nebula"][data-palette="lightblue"] {
    --circle-border: #ffffff;
    --inner-bg: #00bfff;
    --inner-border: #ffffff;
    --stick-color: #ffffff;
    --shadow-outer: 0 0 30px rgba(0, 191, 255, 0.6), inset 0 0 50px rgba(0, 191, 255, 0.3);
    --shadow-inner: 0 0 15px #ffffff;
    --shadow-stick: -4px 0 10px rgba(0, 191, 255, 0.8);
    --ui-text-color: #ffffff;
    --ui-text-shadow: 0 0 10px #ffffff, 0 0 20px #00bfff;
    --n-norm-bg: #00bfff;
    --n-norm-border: #fff;
    --n-norm-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
}

[data-theme="nebula"][data-palette="lightblue"] .circle-bg {
    background-image: conic-gradient(from 0deg, #001a22 0%, #0088cc 25%, #4dd2ff 50%, #0088cc 75%, #001a22 100%) !important;
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.6), inset 0 0 50px rgba(0, 191, 255, 0.6) !important;
}

[data-theme="nebula"][data-palette="lightblue"] .hp-bar {
    background: linear-gradient(90deg, #00bfff, #ffffff) !important;
}

/* NEBULA: GREEN PALETTE */
[data-theme="nebula"][data-palette="green"] {
    --circle-border: #b2ff59;
    --inner-bg: #00e676;
    --inner-border: #b2ff59;
    --stick-color: #ffffff;
    --shadow-outer: 0 0 30px rgba(0, 230, 118, 0.6), inset 0 0 50px rgba(0, 230, 118, 0.3);
    --shadow-inner: 0 0 15px #b2ff59;
    --shadow-stick: -4px 0 10px rgba(0, 230, 118, 0.8);
    --ui-text-color: #b2ff59;
    --ui-text-shadow: 0 0 10px #b2ff59, 0 0 20px #00e676;
    --n-norm-bg: #00e676;
    --n-norm-border: #fff;
    --n-norm-shadow: 0 0 15px rgba(0, 230, 118, 0.8);
}

[data-theme="nebula"][data-palette="green"] .circle-bg {
    background-image: conic-gradient(from 0deg, #002200 0%, #00b300 25%, #b2ff59 50%, #00b300 75%, #002200 100%) !important;
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.6), inset 0 0 50px rgba(0, 230, 118, 0.6) !important;
}

[data-theme="nebula"][data-palette="green"] .hp-bar {
    background: linear-gradient(90deg, #00e676, #b2ff59) !important;
}


/* DEFAULT: WHITE PALETTE */
[data-theme="default"][data-palette="white"] {
    --bg-color: #e0e0e0;
    --circle-bg: repeating-radial-gradient(circle at center, #ffffff 0px, #ffffff 4px, #f0f0f0 5px, #f0f0f0 6px);
    --circle-border: #999999;
    --circle-border-width: 6px;
    --inner-bg: #e6e6e6;
    --inner-border: #aaaaaa;
    --stick-color: linear-gradient(to top, #ffffff, #cccccc) !important;
    --shadow-outer: 0 0 20px rgba(0, 0, 0, 0.1), inset 0 0 30px rgba(0, 0, 0, 0.05);
    --shadow-inner: 0 0 10px rgba(0, 0, 0, 0.2);
    --shadow-stick: -4px 0 10px rgba(0, 0, 0, 0.3);
    --ui-text-color: #222222;
    --ui-text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    --n-norm-bg: #333333;
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

[data-theme="default"][data-palette="white"] .hp-bar {
    background: linear-gradient(90deg, #ff0055, #ff5588) !important;
}

[data-theme="default"][data-palette="white"] .preview-score,
[data-theme="default"][data-palette="white"] .preview-combo,
[data-theme="default"][data-palette="white"] .score-board,
[data-theme="default"][data-palette="white"] .combo-board {
    color: #222 !important;
    text-shadow: 0 0 5px #fff !important;
}

[data-theme="default"][data-palette="white"] .feedback-text {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px currentColor !important;
}


/* Theme Preview Immersive Animations */
#anim-stick-container {
    animation: previewSpin 3s linear infinite;
}

@keyframes previewSpin {
    100% {
        transform: rotate(360deg);
    }
}

.preview-wrapper {
    animation: previewBeat 0.5s ease-in-out infinite alternate;
}

@keyframes previewBeat {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* WHITE PALETTE BETTER CONTRAST (OVERRIDES) */
[data-theme="default"][data-palette="white"] {
    --n-norm-bg: #222222 !important;
    --n-norm-border: #ffffff !important;
    --n-norm-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;

    --stick-color: linear-gradient(to top, #ff0055, #cc0044) !important;

    --ui-text-color: #222222 !important;
    --ui-text-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;

    --shadow-stick: -4px 0 10px rgba(255, 0, 85, 0.6) !important;
}

/* Ensure hit particles in white theme also become dark */
[data-theme="default"][data-palette="white"] .hit-particle {
    background-color: #222222 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
}


.preview-game-area .mark {
    animation: pulseHit 1s ease-out infinite;
}

@keyframes pulseHit {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px var(--n-norm-bg);
        filter: brightness(1);
    }

    20% {
        transform: scale(1.3);
        box-shadow: 0 0 30px var(--n-norm-bg);
        filter: brightness(1.5);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* =========================================


/* =========================================
   ZEN GARDEN THEME (DELUXE)
   ========================================= */
[data-theme="zengarden"] {
    --bg-color: #dbe4d3;
    --circle-bg: radial-gradient(circle at center, rgba(232, 240, 225, 0.9) 0%, rgba(209, 224, 197, 0.95) 100%);
    --circle-border: #4a5d23;
    --circle-border-width: 6px;
    --inner-bg: #f9fbf7;
    --inner-border: #4a5d23;
    --stick-color: #5c4033;
    --stick-width: 8px;

    /* Complex, layered smooth shadows for a deeper 3D feel */
    --shadow-outer: 0 10px 30px rgba(74, 93, 35, 0.3), 0 0 40px rgba(163, 194, 147, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.9);
    --shadow-inner: 0 5px 15px rgba(255, 255, 255, 0.9), inset 0 0 15px rgba(74, 93, 35, 0.3);
    --shadow-stick: 0 4px 15px rgba(92, 64, 51, 0.5), 0 0 20px rgba(255, 255, 255, 0.6);
    --ui-text-color: #2c3e18;
    --ui-text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);

    /* Enhanced 3D Notes with Gradients */
    --n-norm-bg: radial-gradient(circle at 30% 30%, #a3c293 0%, #6b8e23 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 5px 15px rgba(107, 142, 35, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.2);
    --n-doub-bg: radial-gradient(circle at 30% 30%, #8fbc8f 0%, #556b2f 100%);
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 5px 15px rgba(85, 107, 47, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.2);
    --n-hold-bg: radial-gradient(circle at 30% 30%, #e8c39e 0%, #d4a373 100%);
    --n-hold-border: #ffffff;
    --n-hold-shadow: 0 5px 15px rgba(212, 163, 115, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.2);
    --n-hold-grad: rgba(212, 163, 115, 0.5);
    --n-rev-bg: radial-gradient(circle at 30% 30%, #dcd1a5 0%, #c2b280 100%);
    --n-rev-border: #ffffff;
    --n-rev-shadow: 0 5px 15px rgba(194, 178, 128, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.2);
}

/* Base Body Animations for Zen Garden */
[data-theme="zengarden"] body,
body[data-theme="zengarden"] {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 20px);
    background-size: 200% 200%;
    animation: zenScroll 30s ease-in-out infinite alternate;
}

@keyframes zenScroll {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

#main-container .circle-wrapper[data-theme="zengarden"],
[data-theme="zengarden"] .circle-wrapper {
    box-shadow: var(--shadow-outer);
    border-style: solid;
    /* Add subtle pulsating glow to circle wrapper */
    animation: zenPulse 6s ease-in-out infinite alternate;
}

@keyframes zenPulse {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.05) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
}

[data-theme="zengarden"] .inner-circle {
    box-shadow: var(--shadow-inner);
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
}

/* --- ZEN GARDEN PALETTE: Bamboo Grove (Green/Wood) --- */
[data-palette="bamboo"][data-theme="zengarden"],
body[data-theme="zengarden"][data-palette="bamboo"] {
    --circle-bg: repeating-linear-gradient(90deg, #dce6d2 0px, #dce6d2 10px, #cddbbf 10px, #cddbbf 20px);
    --circle-border: #3b4d1b;
    --inner-border: #6b8e23;
    --stick-color: linear-gradient(to right, #8b5a2b, #a0522d);
}

body[data-theme="zengarden"][data-palette="bamboo"] {
    background-image:
        repeating-linear-gradient(to bottom, rgba(107, 142, 35, 0.05) 0px, rgba(107, 142, 35, 0.05) 4px, transparent 4px, transparent 20px),
        linear-gradient(135deg, #e8f0e1 0%, #d1e0c5 100%);
    animation: zenScrollBamboo 40s linear infinite;
}

@keyframes zenScrollBamboo {
    0% {
        background-position: 0px 0px;
    }

    100% {
        background-position: 100px 200px;
    }
}

/* --- ZEN GARDEN PALETTE: Sakura (Pink/Spring) --- */
[data-palette="sakura"][data-theme="zengarden"],
body[data-theme="zengarden"][data-palette="sakura"] {
    --bg-color: #ffe6ea;
    --circle-bg: radial-gradient(circle at center, #fff0f5 0%, #ffc0cb 100%);
    --circle-border: #ff69b4;
    --inner-bg: #fffafa;
    --inner-border: #ffb6c1;
    --stick-color: #ff1493;

    --shadow-outer: 0 10px 40px rgba(255, 105, 180, 0.3), inset 0 0 20px rgba(255, 255, 255, 1);
    --shadow-inner: 0 0 20px rgba(255, 182, 193, 0.6), inset 0 0 15px rgba(255, 105, 180, 0.2);
    --shadow-stick: 0 4px 15px rgba(255, 20, 147, 0.5), 0 0 25px rgba(255, 255, 255, 0.9);

    --ui-text-color: #db2777;
    --ui-text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 192, 203, 0.8);

    --n-norm-bg: radial-gradient(circle at 30% 30%, #ffb6c1 0%, #ff69b4 100%);
    --n-norm-shadow: 0 5px 15px rgba(255, 105, 180, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.1);
    --n-doub-bg: radial-gradient(circle at 30% 30%, #ffc0cb 0%, #db7093 100%);
    --n-doub-shadow: 0 5px 15px rgba(219, 112, 147, 0.6);
    --n-hold-bg: radial-gradient(circle at 30% 30%, #dda0dd 0%, #da70d6 100%);
    --n-hold-shadow: 0 5px 15px rgba(218, 112, 214, 0.6);
    --n-hold-grad: rgba(218, 112, 214, 0.5);
    --n-rev-bg: radial-gradient(circle at 30% 30%, #ffffe0 0%, #fafad2 100%);
    --n-rev-shadow: 0 5px 15px rgba(250, 250, 210, 0.6);
}

body[data-theme="zengarden"][data-palette="sakura"] {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    animation: zenScrollSakura 25s ease-in-out infinite alternate;
}

@keyframes zenScrollSakura {
    0% {
        background-size: 100% 100%;
        background-position: 0% 0%;
    }

    100% {
        background-size: 150% 150%;
        background-position: 100% 100%;
    }
}

/* --- ZEN GARDEN PALETTE: River Stone (Slate/Neutral) --- */
[data-palette="stone"][data-theme="zengarden"],
body[data-theme="zengarden"][data-palette="stone"] {
    --bg-color: #2c3e50;
    --circle-bg: repeating-radial-gradient(circle at center, #34495e 0, #34495e 10px, #2c3e50 10px, #2c3e50 20px);
    --circle-border: #7f8c8d;
    --inner-bg: #ecf0f1;
    --inner-border: #95a5a6;
    --stick-color: linear-gradient(to right, #bdc3c7, #ecf0f1);

    --shadow-outer: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.5);
    --shadow-inner: 0 5px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(189, 195, 199, 0.8);
    --shadow-stick: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(236, 240, 241, 0.6);

    --ui-text-color: #ecf0f1;
    --ui-text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);

    /* High contrast notes for dark background */
    --n-norm-bg: radial-gradient(circle at 30% 30%, #ecf0f1 0%, #bdc3c7 100%);
    --n-norm-border: #2c3e50;
    --n-norm-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(236, 240, 241, 0.5);

    --n-doub-bg: radial-gradient(circle at 30% 30%, #3498db 0%, #2980b9 100%);
    --n-doub-border: #ecf0f1;
    --n-doub-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(52, 152, 219, 0.5);

    --n-hold-bg: radial-gradient(circle at 30% 30%, #e67e22 0%, #d35400 100%);
    --n-hold-border: #ecf0f1;
    --n-hold-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(230, 126, 34, 0.5);
    --n-hold-grad: rgba(230, 126, 34, 0.4);

    --n-rev-bg: radial-gradient(circle at 30% 30%, #1abc9c 0%, #16a085 100%);
    --n-rev-border: #ecf0f1;
    --n-rev-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(26, 188, 156, 0.5);
}

body[data-theme="zengarden"][data-palette="stone"] {
    background-image:
        linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    /* Gentle ripple simulation */
    animation: zenScrollStone 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes zenScrollStone {
    0% {
        filter: contrast(1) brightness(1);
    }

    100% {
        filter: contrast(1.1) brightness(1.2);
    }
}

/* --- ZEN GARDEN PALETTE: Koi Pond (Deep Blue / Bright Orange) --- */
[data-palette="koi"][data-theme="zengarden"],
body[data-theme="zengarden"][data-palette="koi"] {
    --bg-color: #0d1b2a;
    --circle-bg: radial-gradient(circle at center, #1b263b 0%, #0d1b2a 100%);
    --circle-border: #415a77;
    --inner-bg: #e0e1dd;
    --inner-border: #ff7e00;
    --stick-color: #ff9100;

    /* Intensely glowing underwater elements */
    --shadow-outer: 0 10px 50px rgba(13, 27, 42, 0.9), inset 0 0 40px rgba(65, 90, 119, 0.8);
    --shadow-inner: 0 0 30px rgba(255, 126, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.2);
    --shadow-stick: 0 0 25px rgba(255, 145, 0, 0.9), 0 0 50px rgba(255, 126, 0, 0.5);

    --ui-text-color: #ff9100;
    --ui-text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 15px #ff7e00;

    --n-norm-bg: radial-gradient(circle at 30% 30%, #ffb347 0%, #ff7e00 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 126, 0, 0.9);

    --n-doub-bg: radial-gradient(circle at 30% 30%, #e0e1dd 0%, #778da9 100%);
    --n-doub-border: #ff7e00;
    --n-doub-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(224, 225, 221, 0.7);

    --n-hold-bg: radial-gradient(circle at 30% 30%, #415a77 0%, #1b263b 100%);
    --n-hold-border: #ff7e00;
    --n-hold-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(65, 90, 119, 0.9);
    --n-hold-grad: rgba(65, 90, 119, 0.5);

    --n-rev-bg: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0e1dd 100%);
    --n-rev-border: #ff7e00;
    --n-rev-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.8);
}

body[data-theme="zengarden"][data-palette="koi"] {
    background-image:
        radial-gradient(circle at 30% 20%, rgba(65, 90, 119, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(27, 38, 59, 0.5) 0%, transparent 60%),
        linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    animation: zenScrollKoi 15s ease-in-out infinite alternate;
}

@keyframes zenScrollKoi {
    0% {
        background-position: 0% 0%;
        filter: hue-rotate(0deg);
    }

    100% {
        background-position: 100% 100%;
        filter: hue-rotate(15deg);
    }
}

/* =========================================
   ZEN GARDEN THEME (DELUXE)
   ========================================= */
[data-theme="zengarden"] {
    --bg-color: #dbe4d3;
    --circle-bg: radial-gradient(circle at center, rgba(232, 240, 225, 0.9) 0%, rgba(209, 224, 197, 0.95) 100%);
    --circle-border: #4a5d23;
    --circle-border-width: 6px;
    --inner-bg: #f9fbf7;
    --inner-border: #4a5d23;
    --stick-color: #5c4033;
    --stick-width: 8px;

    /* Complex, layered smooth shadows for a deeper 3D feel */
    --shadow-outer: 0 10px 30px rgba(74, 93, 35, 0.3), 0 0 40px rgba(163, 194, 147, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.9);
    --shadow-inner: 0 5px 15px rgba(255, 255, 255, 0.9), inset 0 0 15px rgba(74, 93, 35, 0.3);
    --shadow-stick: 0 4px 15px rgba(92, 64, 51, 0.5), 0 0 20px rgba(255, 255, 255, 0.6);
    --ui-text-color: #2c3e18;
    --ui-text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);

    /* Enhanced 3D Notes with Gradients */
    --n-norm-bg: radial-gradient(circle at 30% 30%, #a3c293 0%, #6b8e23 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 5px 15px rgba(107, 142, 35, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.2);
    --n-doub-bg: radial-gradient(circle at 30% 30%, #8fbc8f 0%, #556b2f 100%);
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 5px 15px rgba(85, 107, 47, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.2);
    --n-hold-bg: radial-gradient(circle at 30% 30%, #e8c39e 0%, #d4a373 100%);
    --n-hold-border: #ffffff;
    --n-hold-shadow: 0 5px 15px rgba(212, 163, 115, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.2);
    --n-hold-grad: rgba(212, 163, 115, 0.5);
    --n-rev-bg: radial-gradient(circle at 30% 30%, #dcd1a5 0%, #c2b280 100%);
    --n-rev-border: #ffffff;
    --n-rev-shadow: 0 5px 15px rgba(194, 178, 128, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.2);
}

/* Base Body Animations for Zen Garden */
[data-theme="zengarden"] body,
body[data-theme="zengarden"] {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 20px);
    background-size: 200% 200%;
    animation: zenScroll 30s ease-in-out infinite alternate;
}

@keyframes zenScroll {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

#main-container .circle-wrapper[data-theme="zengarden"],
[data-theme="zengarden"] .circle-wrapper {
    box-shadow: var(--shadow-outer);
    border-style: solid;
    /* Add subtle pulsating glow to circle wrapper */
    animation: zenPulse 6s ease-in-out infinite alternate;
}

@keyframes zenPulse {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.05) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
}

[data-theme="zengarden"] .inner-circle {
    box-shadow: var(--shadow-inner);
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
}

/* --- ZEN GARDEN PALETTE: Bamboo Grove (Green/Wood) --- */
[data-palette="bamboo"][data-theme="zengarden"],
body[data-theme="zengarden"][data-palette="bamboo"] {
    --circle-bg: repeating-linear-gradient(90deg, #dce6d2 0px, #dce6d2 10px, #cddbbf 10px, #cddbbf 20px);
    --circle-border: #3b4d1b;
    --inner-border: #6b8e23;
    --stick-color: linear-gradient(to right, #8b5a2b, #a0522d);
}

body[data-theme="zengarden"][data-palette="bamboo"] {
    background-image:
        repeating-linear-gradient(to bottom, rgba(107, 142, 35, 0.05) 0px, rgba(107, 142, 35, 0.05) 4px, transparent 4px, transparent 20px),
        linear-gradient(135deg, #e8f0e1 0%, #d1e0c5 100%);
    animation: zenScrollBamboo 40s linear infinite;
}

@keyframes zenScrollBamboo {
    0% {
        background-position: 0px 0px;
    }

    100% {
        background-position: 100px 200px;
    }
}

/* --- ZEN GARDEN PALETTE: Sakura (Pink/Spring) --- */
[data-palette="sakura"][data-theme="zengarden"],
body[data-theme="zengarden"][data-palette="sakura"] {
    --bg-color: #ffe6ea;
    --circle-bg: radial-gradient(circle at center, #fff0f5 0%, #ffc0cb 100%);
    --circle-border: #ff69b4;
    --inner-bg: #fffafa;
    --inner-border: #ffb6c1;
    --stick-color: #ff1493;

    --shadow-outer: 0 10px 40px rgba(255, 105, 180, 0.3), inset 0 0 20px rgba(255, 255, 255, 1);
    --shadow-inner: 0 0 20px rgba(255, 182, 193, 0.6), inset 0 0 15px rgba(255, 105, 180, 0.2);
    --shadow-stick: 0 4px 15px rgba(255, 20, 147, 0.5), 0 0 25px rgba(255, 255, 255, 0.9);

    --ui-text-color: #db2777;
    --ui-text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 192, 203, 0.8);

    --n-norm-bg: radial-gradient(circle at 30% 30%, #ffb6c1 0%, #ff69b4 100%);
    --n-norm-shadow: 0 5px 15px rgba(255, 105, 180, 0.6), inset -2px -2px 10px rgba(0, 0, 0, 0.1);
    --n-doub-bg: radial-gradient(circle at 30% 30%, #ffc0cb 0%, #db7093 100%);
    --n-doub-shadow: 0 5px 15px rgba(219, 112, 147, 0.6);
    --n-hold-bg: radial-gradient(circle at 30% 30%, #dda0dd 0%, #da70d6 100%);
    --n-hold-shadow: 0 5px 15px rgba(218, 112, 214, 0.6);
    --n-hold-grad: rgba(218, 112, 214, 0.5);
    --n-rev-bg: radial-gradient(circle at 30% 30%, #ffffe0 0%, #fafad2 100%);
    --n-rev-shadow: 0 5px 15px rgba(250, 250, 210, 0.6);
}

body[data-theme="zengarden"][data-palette="sakura"] {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    animation: zenScrollSakura 25s ease-in-out infinite alternate;
}

@keyframes zenScrollSakura {
    0% {
        background-size: 100% 100%;
        background-position: 0% 0%;
    }

    100% {
        background-size: 150% 150%;
        background-position: 100% 100%;
    }
}

/* --- ZEN GARDEN PALETTE: River Stone (Slate/Neutral) --- */
[data-palette="stone"][data-theme="zengarden"],
body[data-theme="zengarden"][data-palette="stone"] {
    --bg-color: #2c3e50;
    --circle-bg: repeating-radial-gradient(circle at center, #34495e 0, #34495e 10px, #2c3e50 10px, #2c3e50 20px);
    --circle-border: #7f8c8d;
    --inner-bg: #ecf0f1;
    --inner-border: #95a5a6;
    --stick-color: linear-gradient(to right, #bdc3c7, #ecf0f1);

    --shadow-outer: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.5);
    --shadow-inner: 0 5px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(189, 195, 199, 0.8);
    --shadow-stick: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(236, 240, 241, 0.6);

    --ui-text-color: #ecf0f1;
    --ui-text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);

    /* High contrast notes for dark background */
    --n-norm-bg: radial-gradient(circle at 30% 30%, #ecf0f1 0%, #bdc3c7 100%);
    --n-norm-border: #2c3e50;
    --n-norm-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(236, 240, 241, 0.5);

    --n-doub-bg: radial-gradient(circle at 30% 30%, #3498db 0%, #2980b9 100%);
    --n-doub-border: #ecf0f1;
    --n-doub-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(52, 152, 219, 0.5);

    --n-hold-bg: radial-gradient(circle at 30% 30%, #e67e22 0%, #d35400 100%);
    --n-hold-border: #ecf0f1;
    --n-hold-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(230, 126, 34, 0.5);
    --n-hold-grad: rgba(230, 126, 34, 0.4);

    --n-rev-bg: radial-gradient(circle at 30% 30%, #1abc9c 0%, #16a085 100%);
    --n-rev-border: #ecf0f1;
    --n-rev-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(26, 188, 156, 0.5);
}

body[data-theme="zengarden"][data-palette="stone"] {
    background-image:
        linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    /* Gentle ripple simulation */
    animation: zenScrollStone 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

@keyframes zenScrollStone {
    0% {
        filter: contrast(1) brightness(1);
    }

    100% {
        filter: contrast(1.1) brightness(1.2);
    }
}

/* --- ZEN GARDEN PALETTE: Koi Pond (Deep Blue / Bright Orange) --- */
[data-palette="koi"][data-theme="zengarden"],
body[data-theme="zengarden"][data-palette="koi"] {
    --bg-color: #0d1b2a;
    --circle-bg: radial-gradient(circle at center, #1b263b 0%, #0d1b2a 100%);
    --circle-border: #415a77;
    --inner-bg: #e0e1dd;
    --inner-border: #ff7e00;
    --stick-color: #ff9100;

    /* Intensely glowing underwater elements */
    --shadow-outer: 0 10px 50px rgba(13, 27, 42, 0.9), inset 0 0 40px rgba(65, 90, 119, 0.8);
    --shadow-inner: 0 0 30px rgba(255, 126, 0, 0.5), inset 0 0 15px rgba(0, 0, 0, 0.2);
    --shadow-stick: 0 0 25px rgba(255, 145, 0, 0.9), 0 0 50px rgba(255, 126, 0, 0.5);

    --ui-text-color: #ff9100;
    --ui-text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 15px #ff7e00;

    --n-norm-bg: radial-gradient(circle at 30% 30%, #ffb347 0%, #ff7e00 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 126, 0, 0.9);

    --n-doub-bg: radial-gradient(circle at 30% 30%, #e0e1dd 0%, #778da9 100%);
    --n-doub-border: #ff7e00;
    --n-doub-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(224, 225, 221, 0.7);

    --n-hold-bg: radial-gradient(circle at 30% 30%, #415a77 0%, #1b263b 100%);
    --n-hold-border: #ff7e00;
    --n-hold-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(65, 90, 119, 0.9);
    --n-hold-grad: rgba(65, 90, 119, 0.5);

    --n-rev-bg: radial-gradient(circle at 30% 30%, #ffffff 0%, #e0e1dd 100%);
    --n-rev-border: #ff7e00;
    --n-rev-shadow: 0 5px 15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 255, 255, 0.8);
}

body[data-theme="zengarden"][data-palette="koi"] {
    background-image:
        radial-gradient(circle at 30% 20%, rgba(65, 90, 119, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(27, 38, 59, 0.5) 0%, transparent 60%),
        linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    animation: zenScrollKoi 15s ease-in-out infinite alternate;
}

@keyframes zenScrollKoi {
    0% {
        background-position: 0% 0%;
        filter: hue-rotate(0deg);
    }

    100% {
        background-position: 100% 100%;
        filter: hue-rotate(15deg);
    }
}

/* =========================================
   BIOLUMINESCENT JUNGLE THEME
   ========================================= */
body[data-theme="bioluminescent"],
#theme-live-preview[data-theme="bioluminescent"] {
    --bg-color: #040d14;
    /* Very dark background */
    --circle-bg: radial-gradient(circle at center, #0a1f10 0%, #040b08 100%);
    --circle-border: #00c853;
    /* Emerald green */
    --circle-border-width: 6px;
    --inner-bg: #041f0a;
    --inner-border: #b2ff59;
    /* Neon salad */
    --stick-color: #b2ff59;
    --stick-width: 8px;

    --bio-part-1: #b2ff59;
    --bio-part-2: #00c853;

    /* Magic lotus/tree rings glow */
    --shadow-outer: 0 0 30px rgba(0, 200, 83, 0.4), inset 0 0 40px rgba(0, 200, 83, 0.6);
    --shadow-inner: 0 0 20px rgba(178, 255, 89, 0.6), inset 0 0 15px rgba(0, 200, 83, 0.4);
    --shadow-stick: 0 0 15px rgba(178, 255, 89, 0.8), 0 0 30px rgba(178, 255, 89, 0.5);

    --ui-text-color: #b2ff59;
    --ui-text-shadow: 0 0 10px rgba(178, 255, 89, 0.8), 0 0 20px rgba(0, 200, 83, 0.6);

    /* Volumetric gradient for normal notes (Spores/buds) */
    --n-norm-bg: radial-gradient(circle at 30% 30%, #ecffdb 0%, #b2ff59 50%, #00c853 100%);
    --n-norm-border: #ffffff;
    --n-norm-shadow: 0 0 20px rgba(178, 255, 89, 0.8), inset -2px -2px 10px rgba(0, 0, 0, 0.4);

    /* Double notes */
    --n-doub-bg: radial-gradient(circle at 30% 30%, #d4e6ff 0%, #0d47a1 100%);
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 0 20px rgba(13, 71, 161, 0.8), inset -2px -2px 10px rgba(0, 0, 0, 0.4);

    /* Poison spiked berries with pulsation */
    --n-hold-bg: radial-gradient(circle at 30% 30%, #ffbd80 0%, #ff6d00 100%);
    --n-hold-border: #ffcc80;
    --n-hold-shadow: 0 0 20px rgba(255, 109, 0, 0.8), inset -2px -2px 10px rgba(0, 0, 0, 0.4);
    --n-hold-grad: rgba(255, 109, 0, 0.5);

    /* Reverses (Spores) */
    --n-rev-bg: radial-gradient(circle at 30% 30%, #ffffff 0%, #00c853 100%);
    --n-rev-border: #b2ff59;
    --n-rev-shadow: 0 0 20px rgba(0, 200, 83, 0.8), inset -2px -2px 10px rgba(0, 0, 0, 0.4);

    --c-perfect: #00c853;
    --c-great: #b2ff59;
    --c-good: #ffcc80;
    --c-miss: #041f0a;
    --c-wrong: #041f0a;
    --c-ouch: #041f0a;
    --c-deadly: #041f0a;
    --c-reverse: #b2ff59;
    --c-bounce: #00c853;
    --c-hold: #ff6d00;
}

/* Background Animation: Alien Forest with vines/spores */
body[data-theme="bioluminescent"],
#theme-live-preview[data-theme="bioluminescent"] {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--bio-part-2) 15%, transparent) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--bio-part-1) 15%, transparent) 0%, transparent 50%),
        repeating-linear-gradient(15deg, color-mix(in srgb, var(--bio-part-2) 5%, transparent) 0px, transparent 2px, transparent 15px, color-mix(in srgb, var(--bio-part-1) 5%, transparent) 30px);
    background-size: 150% 150%;
    animation: bioluminescentScroll 30s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes bioluminescentScroll {
    0% {
        background-position: 0% 0%;
        filter: brightness(1) drop-shadow(0 0 0px transparent);
    }

    100% {
        background-position: 100% 100%;
        filter: brightness(1.1) drop-shadow(0 0 20px color-mix(in srgb, var(--bio-part-2) 20%, transparent));
    }
}

/* Tree rings/lotus container glow */
body[data-theme="bioluminescent"] #main-container .circle-wrapper,
#theme-live-preview[data-theme="bioluminescent"] .circle-wrapper {
    box-shadow: var(--shadow-outer);
    border-style: solid;
    animation: lotusPulse 4s ease-in-out infinite alternate;
    background-image: repeating-radial-gradient(circle at center, color-mix(in srgb, var(--bio-part-2) 10%, transparent) 0, transparent 15px, color-mix(in srgb, var(--bio-part-1) 5%, transparent) 30px, transparent 45px);
}

@keyframes lotusPulse {
    0% {
        filter: drop-shadow(0 0 10px color-mix(in srgb, var(--bio-part-2) 20%, transparent)) brightness(1);
    }

    100% {
        filter: drop-shadow(0 0 30px color-mix(in srgb, var(--bio-part-2) 60%, transparent)) brightness(1.2);
    }
}

body[data-theme="bioluminescent"] .inner-circle,
#theme-live-preview[data-theme="bioluminescent"] .inner-circle {
    box-shadow: var(--shadow-inner);
    background-image: radial-gradient(circle at center, color-mix(in srgb, var(--bio-part-1) 40%, transparent) 0%, transparent 60%);
    animation: sporePulse 2s ease-in-out infinite alternate;
}

@keyframes sporePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* The stick writhing animation */
body[data-theme="bioluminescent"] .stick-container .stick,
#theme-live-preview[data-theme="bioluminescent"] .stick-container .stick {
    border-radius: 4px;
    /* Slightly rounded tip for vine */
    animation: vineWrithe 0.5s infinite alternate ease-in-out;
}

@keyframes vineWrithe {
    0% {
        transform: translateX(0) scaleX(1);
    }

    100% {
        transform: translateX(2px) scaleX(1.05) skewY(2deg);
    }
}

/* Deadly mark pulsation (Poison Berries) */
body[data-theme="bioluminescent"] .deadly-mark,
#theme-live-preview[data-theme="bioluminescent"] .deadly-mark {
    animation: toxicPulse 0.8s infinite alternate !important;
}

@keyframes toxicPulse {
    0% {
        filter: hue-rotate(0deg) brightness(1);
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 109, 0, 0.6);
    }

    100% {
        filter: hue-rotate(-15deg) brightness(1.3);
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(255, 0, 0, 0.9);
    }
}

/* Particle explosion styles for bio pollen */
body[data-theme="bioluminescent"] .hit-particle {
    background: radial-gradient(circle, var(--bio-part-1) 0%, var(--bio-part-2) 100%) !important;
    box-shadow: 0 0 15px var(--bio-part-1), 0 0 30px var(--bio-part-2) !important;
    filter: blur(1px);
    /* Soft glow */
    border-radius: 50% !important;
    /* Spores are round */
}

/* Animated spores in background canvas */
body[data-theme="bioluminescent"] #particles-bg {
    filter: drop-shadow(0 0 10px var(--bio-part-1)) brightness(1.2);
}

/* --- BIOLUMINESCENT PALETTE: Cyan --- */
[data-palette="cyan"][data-theme="bioluminescent"],
body[data-theme="bioluminescent"][data-palette="cyan"] {
    --circle-border: #00e5ff;
    --inner-border: #d500f9;
    --stick-color: #00e5ff;
    --shadow-outer: 0 0 30px rgba(0, 229, 255, 0.4), inset 0 0 40px rgba(0, 229, 255, 0.6);
    --shadow-inner: 0 0 20px rgba(0, 229, 255, 0.6), inset 0 0 15px rgba(213, 0, 249, 0.4);
    --shadow-stick: 0 0 15px rgba(0, 229, 255, 0.8), 0 0 30px rgba(213, 0, 249, 0.5);
    --ui-text-color: #00e5ff;
    --ui-text-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(213, 0, 249, 0.6);
    --n-norm-bg: radial-gradient(circle at 30% 30%, #b3ffff 0%, #00e5ff 50%, #4a148c 100%);
    --n-norm-shadow: 0 0 20px rgba(0, 229, 255, 0.8), inset -2px -2px 10px rgba(0, 0, 0, 0.4);
    --n-rev-border: #00e5ff;
    --bio-part-1: #00e5ff;
    --bio-part-2: #4a148c;
}

/* --- BIOLUMINESCENT PALETTE: Pink --- */
[data-palette="pink"][data-theme="bioluminescent"],
body[data-theme="bioluminescent"][data-palette="pink"] {
    --circle-border: #ff4081;
    --inner-border: #1a237e;
    --stick-color: #ff4081;
    --shadow-outer: 0 0 30px rgba(255, 64, 129, 0.4), inset 0 0 40px rgba(26, 35, 126, 0.6);
    --shadow-inner: 0 0 20px rgba(255, 64, 129, 0.6), inset 0 0 15px rgba(26, 35, 126, 0.4);
    --shadow-stick: 0 0 15px rgba(255, 64, 129, 0.8), 0 0 30px rgba(26, 35, 126, 0.5);
    --ui-text-color: #ff4081;
    --ui-text-shadow: 0 0 10px rgba(255, 64, 129, 0.8), 0 0 20px rgba(26, 35, 126, 0.6);
    --n-norm-bg: radial-gradient(circle at 30% 30%, #ffb3c6 0%, #ff4081 50%, #1a237e 100%);
    --n-norm-shadow: 0 0 20px rgba(255, 64, 129, 0.8), inset -2px -2px 10px rgba(0, 0, 0, 0.4);
    --n-rev-border: #ff4081;
    --bio-part-1: #ff4081;
    --bio-part-2: #1a237e;
}

/* --- BIOLUMINESCENT PALETTE: Amber --- */
[data-palette="amber"][data-theme="bioluminescent"],
body[data-theme="bioluminescent"][data-palette="amber"] {
    --circle-border: #ffc107;
    --inner-border: #004d40;
    --stick-color: #ffc107;
    --shadow-outer: 0 0 30px rgba(255, 193, 7, 0.4), inset 0 0 40px rgba(0, 77, 64, 0.6);
    --shadow-inner: 0 0 20px rgba(255, 193, 7, 0.6), inset 0 0 15px rgba(0, 77, 64, 0.4);
    --shadow-stick: 0 0 15px rgba(255, 193, 7, 0.8), 0 0 30px rgba(0, 77, 64, 0.5);
    --ui-text-color: #ffc107;
    --ui-text-shadow: 0 0 10px rgba(255, 193, 7, 0.8), 0 0 20px rgba(0, 77, 64, 0.6);
    --n-norm-bg: radial-gradient(circle at 30% 30%, #ffee58 0%, #ffc107 50%, #004d40 100%);
    --n-norm-shadow: 0 0 20px rgba(255, 193, 7, 0.8), inset -2px -2px 10px rgba(0, 0, 0, 0.4);
    --n-rev-border: #ffc107;
    --bio-part-1: #ffc107;
    --bio-part-2: #004d40;
}


/* =========================================
   VAMPIRIC BLOODMOON THEME (DARK FANTASY)
   ========================================= */

[data-theme="vampiric"] {
    --bg-color: #000000;
    --circle-bg: repeating-radial-gradient(circle at center, #111111 0%, #2a0808 30%, #000000 60%);
    --circle-border: #4a0000;
    --circle-border-width: 12px;
    --inner-bg: radial-gradient(circle, #ff0000 0%, #8a0303 50%, #220000 100%);
    --inner-border: #1a0000;
    --stick-color: #8a0303;
    --stick-width: 6px;

    --vamp-bg-bottom: #3a0000;
    --vamp-fog-color: rgba(138, 3, 3, 0.1);
    --vamp-steel-blood: rgba(138, 3, 3, 0.4);
    --vamp-ruby-pulse-1: #ff0000;
    --vamp-stick-grad: #ff0000;

    --shadow-outer: 0 0 50px rgba(138, 3, 3, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.9);
    --shadow-inner: 0 0 20px #ff0000, inset 0 0 15px rgba(255, 0, 0, 0.5);
    /* Blade trail motion blur */
    --shadow-stick: -5px 0 15px rgba(255, 0, 0, 0.6), -15px 0 25px rgba(138, 3, 3, 0.4);

    --ui-text-color: #ff3333;
    --ui-text-shadow: 0 2px 5px #000, 0 0 15px rgba(255, 0, 0, 0.8);

    --feedback-font: 'Creepster', 'Nosifer', 'Impact', sans-serif;

    /* Notes */
    /* Blood Drop / Ruby */
    --n-norm-bg: radial-gradient(circle at 30% 30%, #ff4d4d 0%, #ff0000 40%, #8a0303 100%);
    --n-norm-border: transparent;
    --n-norm-shadow: 0 5px 10px rgba(0, 0, 0, 0.8), inset -2px -2px 5px rgba(0, 0, 0, 0.5), inset 2px 2px 5px rgba(255, 255, 255, 0.6);
    /* Ghostly reverse */
    --n-rev-bg: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(150, 150, 160, 0.4) 100%);
    --n-rev-border: rgba(255, 255, 255, 0.5);
    --n-rev-shadow: 0 0 20px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.6);
    /* Obsidian spikes for death */
    --n-dead-bg: radial-gradient(circle at 50% 10%, #333333 0%, #000000 80%);
    --n-dead-border: #ff0000;
    --n-dead-shadow: 0 0 15px #ff0000, inset 0 2px 5px rgba(255, 255, 255, 0.2);
    /* Double / Hold adapt slightly */
    --n-doub-bg: radial-gradient(circle, #ff0055 0%, #8a002b 100%);
    --n-doub-border: #ffffff;
    --n-doub-shadow: 0 0 20px #ff0055, inset 0 0 10px rgba(255, 255, 255, 0.5);
    --n-hold-bg: radial-gradient(circle, #cc3300 0%, #661a00 100%);
    --n-hold-border: #ff9933;
    --n-hold-shadow: 0 0 20px #cc3300;
    --n-hold-grad: rgba(204, 51, 0, 0.5);

    --c-perfect: #ff0000;
    --c-great: #ff4d4d;
    --c-good: #8a0303;
    --c-miss: #3a0000;
    --c-wrong: #3a0000;
    --c-ouch: #3a0000;
    --c-deadly: #3a0000;
    --c-reverse: #ff0000;
    --c-bounce: #ff4d4d;
    --c-hold: #8a0303;
}

/* Background gradient & Fog */
body[data-theme="vampiric"],
#theme-live-preview[data-theme="vampiric"] {
    background: linear-gradient(to bottom, #000000 0%, #050000 60%, var(--vamp-bg-bottom) 100%);
    position: relative;
    overflow: hidden;
}

body[data-theme="vampiric"]::before,
#theme-live-preview[data-theme="vampiric"]::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 50%;
    background: repeating-linear-gradient(transparent 0%, var(--vamp-fog-color) 10%, transparent 20%);
    filter: blur(20px);
    animation: fogDrift 20s linear infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes fogDrift {
    0% {
        transform: translateX(0) scaleY(1);
    }

    100% {
        transform: translateX(10%) scaleY(1.2);
    }
}

/* Steel dial with dried blood */
body[data-theme="vampiric"] .circle-wrapper,
#theme-live-preview[data-theme="vampiric"] .circle-wrapper {
    background:
        radial-gradient(circle, transparent 60%, var(--vamp-steel-blood) 100%),
        repeating-conic-gradient(from 0deg, #222 0deg 10deg, #111 10deg 20deg);
    border: 12px solid var(--vamp-bg-bottom);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), inset 0 0 50px var(--vamp-steel-blood);
}

/* Pulsing Ruby Center */
body[data-theme="vampiric"] .inner-circle,
#theme-live-preview[data-theme="vampiric"] .inner-circle {
    animation: bloodRubyPulse 1.5s infinite alternate ease-in-out;
    border: 2px solid var(--vamp-bg-bottom);
}

@keyframes bloodRubyPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px var(--vamp-ruby-pulse-1), inset 0 0 10px var(--vamp-ruby-pulse-1);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 0 30px var(--vamp-ruby-pulse-1), inset 0 0 20px var(--vamp-ruby-pulse-1);
        filter: brightness(1.2);
    }
}

/* Bloody Scythe Stick */
body[data-theme="vampiric"] .stick-container .stick,
#theme-live-preview[data-theme="vampiric"] .stick-container .stick {
    background: linear-gradient(to top, #333 0%, var(--stick-color) 80%, var(--vamp-stick-grad) 100%);
    border-radius: 0 100% 0 0;
    /* Scythe tip */
    width: 6px;
}

/* Base Note Shape (Normal and others) */
body[data-theme="vampiric"] .mark,
#theme-live-preview[data-theme="vampiric"] .mark {
    border-radius: 50% 50% 50% 10%;
    /* Tear/blood drop shape originally */
    transform: rotate(45deg);
    /* Point towards center */
}

/* Ghostly Reverse */
body[data-theme="vampiric"] .reverse-mark,
#theme-live-preview[data-theme="vampiric"] .reverse-mark {
    animation: ghostFlicker 2s infinite alternate;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    border: none;
}

@keyframes ghostFlicker {
    0% {
        opacity: 0.5;
        filter: blur(1px);
        transform: scale(0.9);
    }

    100% {
        opacity: 0.9;
        filter: blur(3px);
        transform: scale(1.1);
    }
}

/* Death Note Obsidian Spikes */
body[data-theme="vampiric"] .deadly-mark,
#theme-live-preview[data-theme="vampiric"] .deadly-mark {
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 100%, 50% 80%, 0% 100%);
    transform: scale(1.2) rotate(45deg);
    /* Re-add rotate 45 for drop base */
}

/* Particle explosion for blood splash */
body[data-theme="vampiric"] .hit-particle {
    border-radius: 0 50% 50% 50% !important;
    /* Asymmetrical tear drop */
    transform-origin: center;
}

/* Aggressive Gothic Feedback Text */
body[data-theme="vampiric"] .feedback-text,
#theme-live-preview[data-theme="vampiric"] .feedback-text {
    font-family: var(--feedback-font);
    text-transform: uppercase;
    animation: bloodDrip 0.5s forwards, textFlicker 0.1s infinite;
    letter-spacing: 2px;
}

@keyframes bloodDrip {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 30px)) scale(1);
        filter: drop-shadow(0 5px 2px color-mix(in srgb, var(--vamp-ruby-pulse-1) 80%, transparent));
    }
}

@keyframes textFlicker {
    0% {
        filter: drop-shadow(0 0 5px var(--vamp-ruby-pulse-1)) drop-shadow(2px 2px 0px #000);
    }

    50% {
        filter: drop-shadow(0 0 15px var(--vamp-ruby-pulse-1)) drop-shadow(-2px -2px 0px #000);
    }

    100% {
        filter: drop-shadow(0 0 5px var(--vamp-ruby-pulse-1)) drop-shadow(2px -2px 0px #000);
    }
}

/* --- VAMPIRIC PALETTE: Purple --- */
[data-palette="purple"][data-theme="vampiric"],
body[data-theme="vampiric"][data-palette="purple"] {
    --circle-bg: repeating-radial-gradient(circle at center, #110011 0%, #2a002a 30%, #000000 60%);
    --circle-border: #4a004a;
    --inner-bg: radial-gradient(circle, #8a2be2 0%, #4a004a 50%, #1a001a 100%);
    --inner-border: #1a001a;
    --stick-color: #9c27b0;
    --shadow-outer: 0 0 50px rgba(156, 39, 176, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.9);
    --shadow-inner: 0 0 20px #d500f9, inset 0 0 15px rgba(213, 0, 249, 0.5);
    --shadow-stick: -5px 0 15px rgba(213, 0, 249, 0.6), -15px 0 25px rgba(156, 39, 176, 0.4);
    --ui-text-color: #d500f9;
    --ui-text-shadow: 0 2px 5px #000, 0 0 15px rgba(213, 0, 249, 0.8);
    --n-norm-bg: radial-gradient(circle at 30% 30%, #e040fb 0%, #d500f9 40%, #4a004a 100%);
    --n-dead-border: #d500f9;
    --n-dead-shadow: 0 0 15px #d500f9, inset 0 2px 5px rgba(255, 255, 255, 0.2);
    --vamp-fog-color: rgba(156, 39, 176, 0.1);
    --vamp-bg-bottom: #2a002a;
    --vamp-steel-blood: rgba(74, 0, 74, 0.4);
    --vamp-ruby-pulse-1: #d500f9;
    --vamp-stick-grad: #9c27b0;
}

/* --- VAMPIRIC PALETTE: Ash --- */
[data-palette="ash"][data-theme="vampiric"],
body[data-theme="vampiric"][data-palette="ash"] {
    --circle-bg: repeating-radial-gradient(circle at center, #111 0%, #222 30%, #000 60%);
    --circle-border: #333;
    --inner-bg: radial-gradient(circle, #ddd 0%, #555 50%, #111 100%);
    --inner-border: #111;
    --stick-color: #888;
    --shadow-outer: 0 0 50px rgba(255, 255, 255, 0.4), inset 0 0 30px rgba(0, 0, 0, 0.9);
    --shadow-inner: 0 0 20px #fff, inset 0 0 15px rgba(255, 255, 255, 0.5);
    --shadow-stick: -5px 0 15px rgba(255, 255, 255, 0.6), -15px 0 25px rgba(200, 200, 200, 0.4);
    --ui-text-color: #eee;
    --ui-text-shadow: 0 2px 5px #000, 0 0 15px rgba(255, 255, 255, 0.8);
    --n-norm-bg: radial-gradient(circle at 30% 30%, #fff 0%, #ccc 40%, #555 100%);
    --n-dead-border: #fff;
    --n-dead-shadow: 0 0 15px #fff, inset 0 2px 5px rgba(255, 255, 255, 0.2);
    --vamp-fog-color: rgba(200, 200, 200, 0.05);
    --vamp-bg-bottom: #1a1a1a;
    --vamp-steel-blood: rgba(100, 100, 100, 0.2);
    --vamp-ruby-pulse-1: #ffffff;
    --vamp-stick-grad: #aaaaaa;
}

/* --- VAMPIRIC PALETTE: Gold --- */
[data-palette="gold"][data-theme="vampiric"],
body[data-theme="vampiric"][data-palette="gold"] {
    --circle-bg: repeating-radial-gradient(circle at center, #1a1500 0%, #3a2a00 30%, #000000 60%);
    --circle-border: #5a4a00;
    --inner-bg: radial-gradient(circle, #ffe066 0%, #b8860b 50%, #2a2000 100%);
    --inner-border: #1a1500;
    --stick-color: #b8860b;
    --shadow-outer: 0 0 50px rgba(184, 134, 11, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.9);
    --shadow-inner: 0 0 20px #ffd700, inset 0 0 15px rgba(255, 215, 0, 0.5);
    --shadow-stick: -5px 0 15px rgba(255, 215, 0, 0.6), -15px 0 25px rgba(184, 134, 11, 0.4);
    --ui-text-color: #ffd700;
    --ui-text-shadow: 0 2px 5px #000, 0 0 15px rgba(255, 215, 0, 0.8);
    --n-norm-bg: radial-gradient(circle at 30% 30%, #ffef99 0%, #ffd700 40%, #b8860b 100%);
    --n-dead-border: #ffd700;
    --n-dead-shadow: 0 0 15px #ffd700, inset 0 2px 5px rgba(255, 255, 255, 0.2);
    --vamp-fog-color: rgba(184, 134, 11, 0.1);
    --vamp-bg-bottom: #2a2000;
    --vamp-steel-blood: rgba(184, 134, 11, 0.3);
    --vamp-ruby-pulse-1: #ffd700;
    --vamp-stick-grad: #b8860b;
}