/* Additional personal palettes. Effects are off unless explicitly selected. */
:root[data-theme="ocean"] {
  --rail:#101d2b;--sidebar:#15283b;--main:#1c3248;--panel:#122336;
  --hover:#29445e;--line:#102134;--text:#edf6fd;--secondary:#b4cce0;
  --muted:#91aec7;--accent:#2878b5;
  --aurora-a:#328ad352;--aurora-b:#31baa535;--aurora-c:#647bd12e;
  --theme-glow:#58b8ef;
}
:root[data-theme="lavender"] {
  --rail:#211e2d;--sidebar:#2b253b;--main:#352e47;--panel:#241f32;
  --hover:#473c5c;--line:#211c2e;--text:#f3effc;--secondary:#cdbfe1;
  --muted:#ac9cc3;--accent:#7d61bb;
  --aurora-a:#a58ae64d;--aurora-b:#d28bb433;--aurora-c:#768bce30;
  --theme-glow:#c2a5ff;
}
:root[data-theme="rose"] {
  --rail:#271c27;--sidebar:#332533;--main:#40303e;--panel:#2b202c;
  --hover:#554050;--line:#271c28;--text:#fbf0f7;--secondary:#dfc1d5;
  --muted:#bd9aaf;--accent:#a95988;
  --aurora-a:#d77fad45;--aurora-b:#aa7bd438;--aurora-c:#d59d792b;
  --theme-glow:#ee9fca;
}
:root[data-theme="amber"] {
  --rail:#241f19;--sidebar:#2e281f;--main:#393127;--panel:#282219;
  --hover:#4d4233;--line:#241e16;--text:#faf3e8;--secondary:#d8c8ad;
  --muted:#baa586;--accent:#966318;
  --aurora-a:#d79a4345;--aurora-b:#bc654b30;--aurora-c:#9e98632b;
  --theme-glow:#efbb65;
}
:root[data-theme="nord"] {
  --rail:#252d3a;--sidebar:#2e3848;--main:#364153;--panel:#2a3443;
  --hover:#46546a;--line:#252f3d;--text:#eceff4;--secondary:#c1cddd;
  --muted:#9aaec5;--accent:#52769f;
  --aurora-a:#88c0d041;--aurora-b:#81a1c13d;--aurora-c:#b48ead2e;
  --theme-glow:#99c8dc;
}
:root[data-theme="cyberpunk"] {
  --rail:#090c18;--sidebar:#11162a;--main:#182038;--panel:#0d1325;
  --hover:#28324e;--line:#0b1020;--text:#f2f1fc;--secondary:#c1c5e3;
  --muted:#969fc8;--accent:#9d2eb8;
  --aurora-a:#d638db40;--aurora-b:#28cbd835;--aurora-c:#6c63ed40;
  --theme-glow:#df73f5;
}

/* Backgrounds stay behind the content and never receive pointer events. */
:root[data-visual-effects="aurora"] .chat-panel {position:relative;}
:root[data-visual-effects="aurora"] .chat-panel,
:root[data-visual-effects="aurora"] .server-rail {
  isolation:isolate;
}
:root[data-visual-effects="aurora"] .chat-panel::before,
:root[data-visual-effects="aurora"] .server-rail::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    radial-gradient(ellipse at 14% 18%,var(--aurora-a,color-mix(in srgb,var(--accent) 30%,transparent)),transparent 56%),
    radial-gradient(ellipse at 90% 64%,var(--aurora-b,color-mix(in srgb,var(--accent) 20%,transparent)),transparent 58%),
    radial-gradient(ellipse at 40% 100%,var(--aurora-c,color-mix(in srgb,var(--accent) 15%,transparent)),transparent 60%);
  background-size:150% 145%;
  background-position:0% 0%;
  opacity:.55;
  animation:goodmusic-aurora 28s ease-in-out infinite alternate;
}
:root[data-visual-effects="aurora"] .server-rail::before {
  opacity:.42;
  animation-duration:36s;
  animation-direction:alternate-reverse;
}

/* A steady decorative glow, unrelated to keyboard focus. */
:root[data-visual-effects="glow"] .listening-card {
  box-shadow:0 5px 25px -9px color-mix(in srgb,var(--theme-glow,var(--accent)) 35%,transparent);
}
:root[data-visual-effects="glow"] .bot-avatar {
  box-shadow:0 0 18px -5px color-mix(in srgb,var(--theme-glow,var(--accent)) 60%,transparent);
}
:root[data-visual-effects="glow"] .music-header .bot-badge {
  box-shadow:0 0 14px -3px color-mix(in srgb,var(--theme-glow,var(--accent)) 45%,transparent);
}

:root[data-page-hidden="true"] .chat-panel::before,
:root[data-page-hidden="true"] .server-rail::before {
  animation-play-state:paused;
}
@keyframes goodmusic-aurora {
  from {background-position:0% 12%;}
  to {background-position:100% 86%;}
}
@media (prefers-reduced-motion:reduce) {
  :root[data-visual-effects="aurora"] .chat-panel::before,
  :root[data-visual-effects="aurora"] .server-rail::before {
    animation:none!important;
    background-position:50% 50%;
  }
}
