/* The public CONAIR pages' Christmas theme -- only while static/js/xmas.js
   has put class "xmas" on <html> (routes_wf_music.xmas(): from 1 December,
   always on the test site). Like halloween.css, "html.xmas" outranks each
   page's own ":root" colour variables. Halloween mode, when on, wins. */

html.xmas:not(.halloween) {
  --conair-navy: #0f3d2e;     /* fir green */
  --conair-navy2: #1d5c44;
  --conair-gold: #e0b33a;     /* tinsel */
  --conair-ice: #fff6f0;
}
html.xmas:not(.halloween) body {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(178, 34, 34, .18) 0%, transparent 55%),
    #f3f0ea;
}
html.xmas:not(.halloween) .conair-nav { border-bottom: 4px solid #b22222; }

/* Falling snow: two layers of dots drifting down, behind nothing important. */
.xmas-snow { display: none; }
html.xmas:not(.halloween) .xmas-snow {
  display: block; position: fixed; inset: 0; pointer-events: none; z-index: 9000;
  background-image:
    radial-gradient(3px 3px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 90px 120px, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 160px 60px, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(2px 2px at 230px 170px, #fff 50%, transparent 51%),
    radial-gradient(4px 4px at 300px 90px, rgba(255,255,255,.8) 50%, transparent 51%);
  background-size: 320px 220px;
  animation: xmas-snow 14s linear infinite;
  opacity: .85; filter: drop-shadow(0 0 1px rgba(120,140,160,.6));
}
@keyframes xmas-snow { from { background-position: 0 0; } to { background-position: 60px 660px; } }
@media (prefers-reduced-motion: reduce) { html.xmas .xmas-snow { animation: none; } }

/* The Fly and See Santa banner, above the site's box. */
.xmas-banner { max-width: 1100px; margin: .6em auto 0; }
.xmas-banner-inner {
  display: flex; align-items: center; gap: .9em; padding: .8em 1.1em;
  background: linear-gradient(135deg, #b22222 0%, #8b1a1a 60%, #0f3d2e 100%);
  color: #fff; border: 2px solid #e0b33a; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.xmas-banner-icon { font-size: 2.2em; line-height: 1; }
.xmas-banner-text { flex: 1; line-height: 1.4; }
.xmas-banner-head { font-weight: 700; }
.xmas-banner-title { color: #ffe08a; font-size: 1.15em; text-decoration: none; }
.xmas-banner-title:hover { text-decoration: underline; }
.xmas-banner-sub { font-size: .92em; opacity: .95; margin-top: .15em; }
.xmas-banner-sub a { color: #ffe08a; font-weight: 700; }
.xmas-banner-btns { display: flex; flex-direction: column; gap: .35em; }
.xmas-btn {
  display: inline-block; padding: .35em .9em; border-radius: 4px; text-align: center; white-space: nowrap;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.55);
  font-weight: 700; font-size: .9em; text-decoration: none;
}
.xmas-btn:hover { background: rgba(255,255,255,.22); }
.xmas-btn-play { background: #e0b33a; color: #3a2a00; border-color: #e0b33a; }
.xmas-btn-play:hover { background: #f0c64a; }
@media (max-width: 640px) {
  .xmas-banner-inner { flex-wrap: wrap; }
  .xmas-banner-btns { flex-direction: row; width: 100%; }
  .xmas-btn { flex: 1; }
}
