/* Seasonal and special-occasion themes. themes.js switches them on by date (see its AUTO_HOLIDAYS / AUTO_SEASONS switches),
   or you can force one with <html data-theme="NAME"> or preview any of them with ?theme=NAME in the address, where NAME is
   original (the default), spring, summer, autumn, winter, halloween, thanksgiving, christmas, new-years-eve, july4,
   memorial-day, st-patricks, valentines (and easter, unscheduled).
   Each block overrides the palette variables declared in :root (index.html / player.html);
   while a song plays, player-core.js still paints its own random laser/slab hue on top. */

/* "original": the site's default magenta/pink look. It is what you get with no data-theme at all (the values live in :root in
   index.html / player.html); this block repeats them so data-theme="original" restores it from any other theme. */
html[data-theme="original"] {
  --bg: #0b0b0f; --bg-alt: #14141b; --bg-rgb: 11,11,15; --bg-alt-rgb: 20,20,27; --bg-deep: #07070a;
  --fg: #f4f4f6; --muted: #9b9ba8;
  --accent: #ff4d6d; --accent-rgb: 255,77,109;
  --ex1: #ffb3c0; --ex2: #ff8da1; --ex3: #ff6b85; --ex5: #e0405e; --ex6: #c2344f; --ex7: #a42a41; --ex8: #862134; --ex9: #681828;
  --lz: 255,0,200; --lzl: 255,130,255; --lzw: 30,215,255; --lzg: 130,235,255;
  --s1: 74,30,122; --s2: 44,20,80; --s3: 36,16,64; --s4: 24,10,44;
}

html[data-theme="spring"] {   /* fresh green + blossom pink */
  --bg: #0a100c; --bg-alt: #121b15; --bg-rgb: 10,16,12; --bg-alt-rgb: 18,27,21; --bg-deep: #060a07;
  --fg: #f3f8f4; --muted: #9bb0a2;
  --accent: #5fd68a; --accent-rgb: 95,214,138;
  --ex1: #c4f5d6; --ex2: #9deebb; --ex3: #7fe5a2; --ex5: #45b86f; --ex6: #379a5b; --ex7: #2c7d49; --ex8: #226239; --ex9: #184829;
  --lz: 255,120,190; --lzl: 255,180,225; --lzw: 95,214,138; --lzg: 170,245,195;
  --s1: 30,100,64; --s2: 18,62,40; --s3: 14,48,30; --s4: 9,32,20;
}

html[data-theme="summer"] {   /* sun amber + ocean teal */
  --bg: #100c07; --bg-alt: #1b150d; --bg-rgb: 16,12,7; --bg-alt-rgb: 27,21,13; --bg-deep: #0a0704;
  --fg: #fbf6ee; --muted: #b0a595;
  --accent: #ffb020; --accent-rgb: 255,176,32;
  --ex1: #ffe7a8; --ex2: #ffd878; --ex3: #ffc84a; --ex5: #e09a10; --ex6: #bd7d0a; --ex7: #9a6408; --ex8: #784d06; --ex9: #593804;
  --lz: 255,140,30; --lzl: 255,200,110; --lzw: 30,210,200; --lzg: 130,240,230;
  --s1: 122,70,16; --s2: 80,44,10; --s3: 62,34,8; --s4: 40,22,5;
}

html[data-theme="autumn"] {   /* burnt orange + deep red */
  --bg: #110b08; --bg-alt: #1d1410; --bg-rgb: 17,11,8; --bg-alt-rgb: 29,20,16; --bg-deep: #0b0705;
  --fg: #f8f1ec; --muted: #b0a095;
  --accent: #ff6a2b; --accent-rgb: 255,106,43;
  --ex1: #ffc7a8; --ex2: #ffa578; --ex3: #ff8650; --ex5: #e0561c; --ex6: #bd4515; --ex7: #9a3710; --ex8: #782b0c; --ex9: #592009;
  --lz: 255,70,30; --lzl: 255,150,90; --lzw: 255,190,40; --lzg: 255,225,130;
  --s1: 118,44,20; --s2: 76,28,14; --s3: 60,22,10; --s4: 38,14,7;
}

html[data-theme="winter"] {   /* ice blue + frost white */
  --bg: #080c12; --bg-alt: #101722; --bg-rgb: 8,12,18; --bg-alt-rgb: 16,23,34; --bg-deep: #05080c;
  --fg: #f1f6fb; --muted: #94a3b5;
  --accent: #6cc4ff; --accent-rgb: 108,196,255;
  --ex1: #d3eeff; --ex2: #b0e0ff; --ex3: #8fd2ff; --ex5: #4ea6e0; --ex6: #3d89bd; --ex7: #306f9a; --ex8: #255778; --ex9: #1b4059;
  --lz: 80,160,255; --lzl: 170,215,255; --lzw: 220,240,255; --lzg: 255,255,255;
  --s1: 24,66,118; --s2: 14,42,80; --s3: 11,32,62; --s4: 7,22,42;
}

/* ---- Special occasions (same variables as the seasons above; activate with data-theme="<name>") ---- */

html[data-theme="halloween"] {   /* pumpkin orange + witchy purple */
  --bg: #0d0810; --bg-alt: #181020; --bg-rgb: 13,8,16; --bg-alt-rgb: 24,16,32; --bg-deep: #07040a;
  --fg: #f6f0f8; --muted: #a897b4;
  --accent: #ff7a1a; --accent-rgb: 255,122,26;
  --ex1: #ffd0a0; --ex2: #ffb26a; --ex3: #ff9640; --ex5: #e0680f; --ex6: #a04ad0; --ex7: #823aab; --ex8: #662c88; --ex9: #4b2066;
  --lz: 255,110,10; --lzl: 255,170,80; --lzw: 150,70,255; --lzg: 200,150,255;
  --s1: 84,34,116; --s2: 52,20,76; --s3: 40,14,58; --s4: 26,9,38;
}

html[data-theme="thanksgiving"] {   /* harvest gold + cranberry + brown */
  --bg: #100b07; --bg-alt: #1c140d; --bg-rgb: 16,11,7; --bg-alt-rgb: 28,20,13; --bg-deep: #0a0704;
  --fg: #f8f1e6; --muted: #b3a38c;
  --accent: #e8a13a; --accent-rgb: 232,161,58;
  --ex1: #f7dcae; --ex2: #f0c47e; --ex3: #ebb257; --ex5: #c8822a; --ex6: #a9402e; --ex7: #8a3325; --ex8: #6c281d; --ex9: #501d15;
  --lz: 220,110,40; --lzl: 240,170,90; --lzw: 190,50,60; --lzg: 235,120,120;
  --s1: 110,60,20; --s2: 72,38,14; --s3: 56,29,10; --s4: 36,18,6;
}

html[data-theme="christmas"] {   /* holly green + red */
  --bg: #080f0a; --bg-alt: #101b13; --bg-rgb: 8,15,10; --bg-alt-rgb: 16,27,19; --bg-deep: #050a06;
  --fg: #f6faf5; --muted: #9bb2a0;
  --accent: #e8373f; --accent-rgb: 232,55,63;
  --ex1: #ffc2c5; --ex2: #ff9a9f; --ex3: #f4686f; --ex5: #c42a32; --ex6: #2f9a55; --ex7: #257a43; --ex8: #1c5e33; --ex9: #144526;
  --lz: 235,40,50; --lzl: 255,140,145; --lzw: 40,200,100; --lzg: 150,245,185;
  --s1: 22,92,48; --s2: 14,60,32; --s3: 10,46,24; --s4: 6,30,16;
}

html[data-theme="new-years-eve"] {   /* champagne gold + midnight blue */
  --bg: #07080f; --bg-alt: #0f111d; --bg-rgb: 7,8,15; --bg-alt-rgb: 15,17,29; --bg-deep: #04050a;
  --fg: #f7f5ee; --muted: #a1a3b3;
  --accent: #f2c94c; --accent-rgb: 242,201,76;
  --ex1: #fff1c2; --ex2: #fbe495; --ex3: #f7d86b; --ex5: #d4a82f; --ex6: #b08a22; --ex7: #8c6d1a; --ex8: #6a5214; --ex9: #4c3a0e;
  --lz: 250,205,70; --lzl: 255,235,160; --lzw: 120,140,255; --lzg: 200,210,255;
  --s1: 28,34,100; --s2: 18,22,66; --s3: 13,16,52; --s4: 8,10,34;
}

html[data-theme="easter"] {   /* pastel lilac + spring yellow + mint */
  --bg: #0e0c14; --bg-alt: #181522; --bg-rgb: 14,12,20; --bg-alt-rgb: 24,21,34; --bg-deep: #08070d;
  --fg: #f8f5fc; --muted: #aaa3bb;
  --accent: #c79cff; --accent-rgb: 199,156,255;
  --ex1: #efe0ff; --ex2: #e0c7ff; --ex3: #d3b2ff; --ex5: #a67ae0; --ex6: #8a62c0; --ex7: #704ea0; --ex8: #583c80; --ex9: #412c61;
  --lz: 255,150,210; --lzl: 255,200,235; --lzw: 255,225,110; --lzg: 170,240,200;
  --s1: 82,58,120; --s2: 52,36,80; --s3: 40,28,64; --s4: 26,18,42;
}

html[data-theme="july4"] {   /* red, white and blue */
  --bg: #080b14; --bg-alt: #0f1424; --bg-rgb: 8,11,20; --bg-alt-rgb: 15,20,36; --bg-deep: #05070e;
  --fg: #f8f9fc; --muted: #9ba3b8;
  --accent: #ff3b4e; --accent-rgb: 255,59,78;
  --ex1: #ffffff; --ex2: #dfe6ff; --ex3: #b8c8ff; --ex5: #6f90ff; --ex6: #3f64e0; --ex7: #304fb8; --ex8: #243b90; --ex9: #1a2b6c;
  --lz: 255,40,60; --lzl: 255,150,160; --lzw: 70,120,255; --lzg: 255,255,255;
  --s1: 24,40,120; --s2: 15,26,80; --s3: 11,19,62; --s4: 7,12,40;
}

html[data-theme="valentines"] {   /* rose + deep crimson */
  --bg: #12080c; --bg-alt: #1f0f16; --bg-rgb: 18,8,12; --bg-alt-rgb: 31,15,22; --bg-deep: #0b0407;
  --fg: #fbf2f5; --muted: #b59ba5;
  --accent: #ff4f8b; --accent-rgb: 255,79,139;
  --ex1: #ffc4d9; --ex2: #ff9dc2; --ex3: #ff77aa; --ex5: #e03470; --ex6: #bd2a5d; --ex7: #99214b; --ex8: #781a3b; --ex9: #59122c;
  --lz: 255,50,120; --lzl: 255,150,190; --lzw: 255,110,150; --lzg: 255,200,220;
  --s1: 118,24,64; --s2: 76,14,42; --s3: 58,10,32; --s4: 38,6,21;
}

html[data-theme="memorial-day"] {   /* remembrance: deep navy, flag red, soft white stars */
  --bg: #080a12; --bg-alt: #0f1320; --bg-rgb: 8,10,18; --bg-alt-rgb: 15,19,32; --bg-deep: #05060b;
  --fg: #f6f7fb; --muted: #9aa1b6;
  --accent: #d8404c; --accent-rgb: 216,64,76;
  --ex1: #ffd0d4; --ex2: #f5a3aa; --ex3: #ea7a83; --ex5: #b8303b; --ex6: #6f86d6; --ex7: #5a70bb; --ex8: #455a98; --ex9: #334374;
  --lz: 216,64,76; --lzl: 245,160,168; --lzw: 110,140,235; --lzg: 235,240,255;
  --s1: 30,44,104; --s2: 19,29,70; --s3: 14,22,54; --s4: 9,14,36;
}

html[data-theme="st-patricks"] {   /* emerald green + gold */
  --bg: #07100a; --bg-alt: #0f1b12; --bg-rgb: 7,16,10; --bg-alt-rgb: 15,27,18; --bg-deep: #040a06;
  --fg: #f4faf5; --muted: #98b09d;
  --accent: #2fd16b; --accent-rgb: 47,209,107;
  --ex1: #c2f5d4; --ex2: #92eab0; --ex3: #62de8c; --ex5: #22a350; --ex6: #e0b42a; --ex7: #bd9520; --ex8: #997718; --ex9: #765b12;
  --lz: 40,210,100; --lzl: 150,245,185; --lzw: 245,200,50; --lzg: 255,235,150;
  --s1: 16,100,50; --s2: 10,64,32; --s3: 7,50,24; --s4: 5,32,16;
}

/* ---- Decorations (themes.js adds them whenever a theme other than "original" is on) ----
   .theme-fx: floating emoji over the page (never blocks clicks); the logo gets the theme's emoji after it. */
.theme-fx { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.theme-fx i {
  position: absolute; top: 0; left: var(--x); font-style: normal; line-height: 1; font-size: var(--size);
  opacity: 0; will-change: transform, opacity; animation: fx-fall var(--dur) linear var(--delay) infinite;
}
.theme-fx.rise i { top: auto; bottom: 0; animation-name: fx-rise; }
@keyframes fx-fall {
  0%   { transform: translate3d(0, -12vh, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: var(--op); }
  50%  { transform: translate3d(var(--sway), 50vh, 0) rotate(var(--spin)); }
  92%  { opacity: var(--op); }
  100% { transform: translate3d(calc(var(--sway) * -.4), 112vh, 0) rotate(calc(var(--spin) * 1.6)); opacity: 0; }
}
@keyframes fx-rise {
  0%   { transform: translate3d(0, 12vh, 0) rotate(0deg) scale(.7); opacity: 0; }
  10%  { opacity: var(--op); }
  55%  { transform: translate3d(var(--sway), -55vh, 0) rotate(var(--spin)) scale(1); }
  90%  { opacity: var(--op); }
  100% { transform: translate3d(calc(var(--sway) * -.5), -115vh, 0) rotate(calc(var(--spin) * 1.4)) scale(1.1); opacity: 0; }
}
html[data-theme] nav .logo::after { content: var(--theme-emoji, ""); margin-left: .35em; font-size: .9em; }
@media (prefers-reduced-motion: reduce) { .theme-fx { display: none; } }
