/* Christmas theme (Settings -> Screen & theme; look.js sets body[data-theme="christmas"]):
   bright cozy holiday lounge photo, emerald-and-red frosted panels, top pine garland, and warm
   twinkling fairy-light glow with Festival Gold accents. */

body[data-theme="christmas"] {
  --velvet: #b91c1c;
  --xmas-pine: #0f3d26;
  --xmas-red: #dc2626;
  --xmas-green: #16a34a;
}

body[data-theme="christmas"]::before {
  background-image: url("/static/img/christmas.jpeg");
  background-position: center 42%;
  filter: brightness(1.08) saturate(1.1);
}

/* Lighter, warmer overlay than Club/Rock so the bright Christmas tree and lights shine through */
body[data-theme="christmas"]::after {
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 194, 91, 0.16), transparent 45%),
    radial-gradient(circle at 82% 24%, rgba(220, 38, 38, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(10, 32, 20, 0.28) 0%, rgba(12, 28, 18, 0.56) 55%, rgba(16, 12, 10, 0.78) 100%);
  opacity: calc(0.18 + var(--stage-dim, 0.4) * 0.72);
}

body.tv[data-theme="christmas"]::after {
  background: radial-gradient(ellipse 75% 65% at 45% 45%, rgba(10, 32, 20, 0.22), rgba(10, 26, 16, 0.72));
}

/* Top pine & ornament garland + warm twinkling fairy-light glow */
body[data-theme="christmas"] #fx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

body[data-theme="christmas"] #fx-bg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(70px, 14vw, 175px);
  background: url("/static/img/christmas-garland.png") top center / min(100%, 1600px) auto no-repeat;
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

body[data-theme="christmas"] #fx-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 222, 130, 0.30) 0%, transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(255, 208, 110, 0.28) 0%, transparent 24%),
    radial-gradient(circle at 30% 78%, rgba(220, 38, 38, 0.18) 0%, transparent 28%),
    radial-gradient(circle at 74% 72%, rgba(22, 163, 74, 0.18) 0%, transparent 28%),
    radial-gradient(circle at 52% 28%, rgba(255, 232, 160, 0.20) 0%, transparent 30%);
  animation: xmas-twinkle 4.8s ease-in-out infinite alternate;
}

@keyframes xmas-twinkle {
  0% {
    opacity: 0.55;
    transform: scale(1);
    filter: brightness(0.95);
  }
  50% {
    opacity: 0.92;
    transform: scale(1.02);
    filter: brightness(1.12);
  }
  100% {
    opacity: 0.68;
    transform: scale(0.99);
    filter: brightness(1.02);
  }
}

/* Frosted emerald-pine glass panels keep white & gold text crisp over the bright backdrop */
body[data-theme="christmas"] .panel {
  background: linear-gradient(160deg, rgba(10, 40, 24, 0.72), rgba(28, 14, 14, 0.68));
  border-color: color-mix(in srgb, var(--gold) 36%, rgba(220, 38, 38, 0.35));
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 235, 180, 0.16);
}

body[data-theme="christmas"] .font-display {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 0 22px rgba(244, 194, 91, 0.28);
}

body[data-theme="christmas"] .btn-gold {
  box-shadow: 0 4px 16px rgba(244, 194, 91, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="christmas"] #fx-bg::after {
    animation: none;
    opacity: 0.75;
  }
}
