/* =====================================================================
   Ruislip Live — Christmas overlay (November 2026)
   Tasteful festive accents on the existing look. Easy to remove in January:
   delete this file, assets/xmas.js, and every <!-- XMAS-START --> …
   <!-- XMAS-END --> block in index.html (and the class="xmas" on <body>).
   ===================================================================== */

:root{
  --xmas-red:#c23b2e;
  --xmas-green:#1f6a4a;
  --xmas-holly:#2c8f5c;
  --xmas-berry:#c23b2e;
}

/* Festive logo ring and player shadow — gold already in the brand, plus a hint of holly green */
.xmas .logo img{
  box-shadow:0 0 0 8px var(--ink2),0 0 0 12px var(--gold),0 0 0 16px var(--xmas-green),0 30px 80px rgba(0,0,0,.6);
}
.xmas .player{
  box-shadow:8px 8px 0 var(--xmas-green),0 20px 60px rgba(0,0,0,.45);
}
.xmas .brand::after{
  content:"★";
  display:inline-block;
  margin-left:.32em;
  color:var(--gold);
  font-size:.58em;
  vertical-align:super;
  line-height:1;
}

/* Seasonal greeting in the hero */
.xmas-greet{
  display:flex;
  align-items:center;
  gap:10px;
  margin:-16px 0 28px;
  font-family:Shrikhand,Georgia,serif;
  font-size:clamp(18px,2.2vw,26px);
  color:var(--gold);
  letter-spacing:.01em;
}
.xmas-greet svg{flex:none;width:28px;height:28px}

/* Slim festive banner */
.xmas-banner{
  position:relative;
  z-index:1;
  background:linear-gradient(90deg,#1a0e30 0%,#1f6a4a 50%,#1a0e30 100%);
  border-bottom:2px solid var(--gold);
  box-shadow:inset 0 1px 0 rgba(240,180,58,.25);
}
.xmas-banner-inner{
  max-width:1120px;
  margin:0 auto;
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  text-align:center;
}
.xmas-banner-inner svg{flex:none;width:36px;height:28px}
.xmas-banner p{
  margin:0;
  font-size:15px;
  line-height:1.45;
  color:var(--cream);
  max-width:62ch;
}
.xmas-banner strong{
  font-family:Shrikhand,Georgia,serif;
  font-weight:400;
  color:var(--gold);
  letter-spacing:.01em;
}

/* Footer stripes: swap the teal for holly green while the overlay is on */
.xmas .stripes i:nth-child(4){background:var(--xmas-green)}
.xmas .stripes i:nth-child(3){background:var(--xmas-red)}

/* Snowfall — CSS only once the flakes are in the DOM; never captures clicks */
.xmas-snow{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:12;
  overflow:hidden;
}
.xmas-flake{
  position:absolute;
  top:-12px;
  width:var(--s,8px);
  height:var(--s,8px);
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 6px rgba(255,255,255,.55);
  opacity:.7;
  will-change:transform;
  animation:xmas-fall var(--d,16s) linear infinite;
  animation-delay:var(--delay,0s);
}
@keyframes xmas-fall{
  from{transform:translate3d(0,-12px,0)}
  to{transform:translate3d(var(--drift,20px),108vh,0)}
}

@media (max-width:860px){
  .xmas-banner-inner{padding:10px 16px;gap:10px}
  .xmas-banner p{font-size:13.5px}
  .xmas-greet{justify-content:center;margin:-8px 0 22px}
}
@media (prefers-reduced-motion:reduce){
  .xmas-snow,.xmas-flake{display:none!important;animation:none!important}
  .xmas .brand::after{text-shadow:none}
}
