/* The party's custom style on top of the theme (Settings → Custom style, or the DJ Co-Pilot's
   set_style). look.js sets the body classes and variables: fx-font-*, fx-title-*, fx-bg-*,
   fx-corners (--fx-r), --fx-glow (0-1), --fx-pulse (0-1). With every option at its default none
   of these rules apply, so the theme looks exactly as before. */

/* ── Font ─────────────────────────────────────────────────────────────── */
body.fx-font-rounded, body.fx-font-rounded .font-display {
  font-family: "Nunito", "Quicksand", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif; }
body.fx-font-condensed, body.fx-font-condensed .font-display {
  font-family: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif; letter-spacing: .02em; }
body.fx-font-serif, body.fx-font-serif .font-display { font-family: "Playfair Display", Georgia, "Times New Roman", serif; }
body.fx-font-mono, body.fx-font-mono .font-display { font-family: "Courier New", ui-monospace, monospace; }
body.fx-font-handwritten, body.fx-font-handwritten .font-display {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }

/* ── Glow on titles and sung words ────────────────────────────────────── */
body.fx-glow [data-title], body.fx-glow #np-title, body.fx-glow .text-gold, body.fx-glow .sung {
  text-shadow: 0 0 calc(var(--fx-glow) * 6px) var(--gold), 0 0 calc(var(--fx-glow) * 22px) var(--gold-deep); }

/* ── Title effects ────────────────────────────────────────────────────── */
body.fx-title-glow [data-title] { text-shadow: 0 0 10px var(--gold), 0 0 30px var(--gold-deep); }
body.fx-title-neon [data-title] { animation: fx-neon 3.2s infinite; text-shadow: 0 0 6px #fff, 0 0 14px var(--gold), 0 0 34px var(--gold-deep); }
body.fx-title-rainbow [data-title] {
  background: linear-gradient(90deg, #ff4d4d, #ffb84d, #f9f871, #5dff8f, #4dc3ff, #b14dff, #ff4d4d) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-rainbow 4s linear infinite; }
body.fx-title-bounce [data-title] { display: inline-block; animation: fx-bounce 1s ease-in-out infinite; }
body.fx-title-wobble [data-title] { display: inline-block; animation: fx-wobble 2.4s ease-in-out infinite; }

@keyframes fx-neon { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .35; } }
@keyframes fx-rainbow { to { background-position: 200% 0; } }
@keyframes fx-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.12em); } }
@keyframes fx-wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* ── Beat pulse (120 bpm). Panels only glow: a transform or filter on them would break the
   position: fixed popups inside ────────────────────────────────────────────────────────────── */
body.fx-pulse [data-title] { display: inline-block; animation: fx-pulse .5s ease-in-out infinite alternate; }
body.fx-pulse .panel { animation: fx-pulse-glow .5s ease-in-out infinite alternate; }
@keyframes fx-pulse { to { transform: scale(calc(1 + var(--fx-pulse) * .05)); } }
@keyframes fx-pulse-glow { to { box-shadow: 0 0 calc(var(--fx-pulse) * 28px) color-mix(in srgb, var(--gold) 45%, transparent); } }

/* ── Corners ──────────────────────────────────────────────────────────── */
body.fx-corners .panel, body.fx-corners .rounded-2xl { border-radius: calc(1rem * var(--fx-r)); }
body.fx-corners .rounded-xl { border-radius: calc(.75rem * var(--fx-r)); }
body.fx-corners .rounded-lg { border-radius: calc(.5rem * var(--fx-r)); }
body.fx-corners.fx-square .rounded-full { border-radius: 0; }

/* ── Background effects: #fx-bg (made by look.js) sits between the theme's photo (body::before)
   and its shading (body::after), so the "Video & background shading" setting dims it too ─────── */
#fx-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: none; }
body[class*="fx-bg-"] #fx-bg { display: block; }
body.fx-bg-aurora #fx-bg {
  background: radial-gradient(60% 40% at 20% 20%, color-mix(in srgb, var(--gold) 55%, transparent), transparent 70%),
              radial-gradient(50% 40% at 80% 30%, rgba(80, 255, 200, .45), transparent 70%),
              radial-gradient(60% 50% at 50% 90%, rgba(120, 80, 255, .45), transparent 70%);
  animation: fx-drift 14s ease-in-out infinite alternate; }
body.fx-bg-disco #fx-bg {
  background: conic-gradient(from 0deg at 50% 0%, rgba(255, 60, 160, .4), rgba(60, 200, 255, .4),
              rgba(255, 230, 60, .4), rgba(120, 255, 120, .4), rgba(255, 60, 160, .4));
  animation: fx-spin 8s linear infinite; }
body.fx-bg-stars #fx-bg {
  background-color: rgba(2, 3, 12, .7);
  background-image: radial-gradient(1.5px 1.5px at 10% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 35%, #fff, transparent), radial-gradient(1px 1px at 75% 80%, #fff, transparent),
    radial-gradient(2px 2px at 90% 15%, var(--gold), transparent), radial-gradient(1px 1px at 45% 90%, #fff, transparent);
  background-size: 320px 320px; animation: fx-twinkle 3s ease-in-out infinite alternate; }
body.fx-bg-scanlines #fx-bg { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 4px); }
body.fx-bg-dark #fx-bg { background: #050505; }

@keyframes fx-drift { to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
@keyframes fx-spin { to { filter: hue-rotate(360deg); } }
@keyframes fx-twinkle { from { opacity: .45; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  body[class*="fx-"] *, #fx-bg { animation: none !important; }
}
