/* Every seasonal override is scoped. site-config.js is the only main switch. */
html.christmas-on {
  --christmas-gold: #efd18f;
  --christmas-red: #bd4755;
  --christmas-strip-surface: #18352f;
  --christmas-green: #3f846b;
}
html.christmas-on body {
  background-color: #0b1e27;
  background-image: radial-gradient(ellipse at 5% 0, #23473c80, transparent 48%),
    radial-gradient(ellipse at 95% 30%, #722f4228, transparent 50%);
}
html.christmas-on .navbar { background: #0b242beF; border-bottom-color: #d5b97c55; }
html.christmas-on .nav-links .advent-nav-link { color: #f8dfa6; border: 1px solid #c5a86a66; background: #d9b76d0d; }
html.christmas-on .footer { background: #0b222b; border-top-color: #b9a36b66; }
html.christmas-on :is(.hero-intro,.home-lmu,.home-endurance,.home-quote-section,.e-hero,.icons-hero,.wdl-hero,.lmu-hero,.rdn-hero,.help-card,.legal-page,.log,.krl-history) {
  border-color: #cfb87640;
  box-shadow: 0 12px 40px #03141630;
}
html.christmas-on :is(.hero-intro,.help-card,.legal-page,.log) { background-color: #142e32; }
html.christmas-on .team-card { border-bottom: 1px solid #d4be7d55; }
html.christmas-on .regelwerk { background: #10262e; }
html.christmas-on .regelwerk .regel-block { background: #173239; }
html.christmas-on .christmas-ribbon {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: .4rem 1.8rem; min-height: 45px; padding: .65rem 1rem;
  background: #14342e; border-bottom: 1px solid #c5aa6944;
  color: #f0dfb7; font-size: .75rem;
}
html.christmas-on .christmas-ribbon-label { letter-spacing: .16em; font-size: .65rem; font-weight: 800; }
html.christmas-on .christmas-ribbon a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
html.christmas-on .christmas-motion { color: #e6e5d5; border: 0; border-bottom: 1px dotted #ccbb8a; background: none; font-size: .7rem; cursor: pointer; padding: .15rem; }

/* Cable and individual lamps; soft eight-second dimming, never a strobe. */
html.christmas-on .christmas-lights {
  position: absolute; left: 0; right: 0; display: flex; justify-content: space-around;
  height: 16px; border-top: 1px solid #3f6655; pointer-events: none; z-index: 2;
}
html.christmas-on .christmas-lights--nav { bottom: -11px; }
html.christmas-on .christmas-bulb {
  --bulb: #eabe78; display: block; position: relative; margin-top: 4px;
  width: 7px; height: 11px; flex: 0 0 7px; border-radius: 45% 45% 55% 55%;
  background: var(--bulb); box-shadow: 0 2px 11px 2px color-mix(in srgb, var(--bulb) 55%, transparent);
  animation: christmas-lamp 8s ease-in-out var(--bulb-delay) infinite alternate;
}
html.christmas-on .christmas-bulb::before { content: ''; position: absolute; width: 3px; height: 5px; background: #78917a; top: -5px; left: 2px; }
html.christmas-on .christmas-bulb:nth-child(4n+1) { --bulb: #e97d81; }
html.christmas-on .christmas-bulb:nth-child(4n+2) { --bulb: #8bd8a8; margin-top: 6px; }
html.christmas-on .christmas-bulb:nth-child(4n+3) { --bulb: #fff0ca; }
@keyframes christmas-lamp { from { opacity: .5; } to { opacity: 1; } }

html.christmas-on .christmas-hero { position: relative; }
html.christmas-on .christmas-hero-garland { position: absolute; right: 18px; top: 0; width: 185px; height: 38px; pointer-events: none; }
html.christmas-on .help-hero { padding-top: 2rem; }
html.christmas-on .footer { position: relative; padding-top: 1.5rem; }
html.christmas-on .christmas-footer-scene { display: flex; align-items: end; justify-content: center; gap: clamp(1rem,5vw,5rem); height: 140px; max-width: 1000px; margin: 0 auto 2rem; padding: 0 1rem 5px; border-bottom: 2px solid #d3e6df; }
html.christmas-on .christmas-footer-scene svg { width: min(17%,110px); height: 125px; pointer-events: none; }
html.christmas-on .christmas-footer-scene svg:nth-child(2) { height: 75px; }
html.christmas-on .christmas-lights--footer { top: -1px; }

/* A winter paddock welcome; the site's original racing hero stays below. */
html.christmas-on .winter-promo {
  position: relative; display: grid; grid-template-columns: 1fr 1.05fr;
  width: min(1320px,calc(100% - 2rem)); margin: 2rem auto 3rem;
  border: 1px solid #c7ae6e66; border-radius: 24px; overflow: hidden;
  background: #102d35; isolation: isolate;
}
html.christmas-on .winter-promo-copy { padding: clamp(1.5rem,4vw,3.7rem); align-self: center; }
html.christmas-on .winter-promo .eyebrow { color: #ecd194; font-size: .65rem; letter-spacing: .2em; }
html.christmas-on .winter-promo .winter-promo-title { font-size: clamp(2rem,4.2vw,4rem); line-height: 1.07; letter-spacing: -.045em; margin: 1rem 0; }
html.christmas-on .winter-promo .winter-promo-title span { color: #f0d38f; }
html.christmas-on .winter-promo p { font-size: .95rem; color: #bfd3d0; margin: 1rem 0 1.5rem; max-width: 43ch; }
html.christmas-on .winter-promo .winter-cta { display: inline-flex; align-items: center; gap: 1rem; padding: .95rem 1.2rem; min-height: 48px; border-radius: 7px; border: 1px solid #f0d38f; background: #efd08e; color: #183435; font-size: .82rem; font-weight: 800; text-decoration: none; }
html.christmas-on .winter-promo .winter-cta:hover { background: #fff0c4; }
html.christmas-on .winter-promo-art { width: 100%; height: 100%; min-height: 380px; object-fit: contain; object-position: center bottom; background: #102d38; }
html.christmas-on .winter-promo-lights { top: 0; }
html.christmas-on .winter-promo-note { display: block; color: #b6cdc7; font-size: .7rem; margin-top: 1.2rem; letter-spacing: .04em; }

/* No decorative layer intercepts clicks; transforms don't affect layout. */
html.christmas-on .christmas-flight { position: fixed; z-index: 1100; inset: 0; overflow: hidden; contain: strict; pointer-events: none; user-select: none; }
html.christmas-on .christmas-sleigh { position: absolute; top: 18vh; left: 0; display: block; width: clamp(440px,65vw,1000px); max-width: none; height: auto; animation: christmas-fly 12s ease-in-out both; }
@keyframes christmas-fly {
  0% { transform: translate3d(-110%,20px,0) rotate(-3deg); }
  40% { transform: translate3d(28vw,-28px,0) rotate(0deg); }
  100% { transform: translate3d(110vw,12px,0) rotate(2deg); }
}
html.christmas-on .christmas-snow { position: fixed; z-index: 1002; inset: 0; overflow: hidden; pointer-events: none; contain: strict; }
html.christmas-on .christmas-flake { position: absolute; top: -10vh; left: var(--snow-x); width: var(--snow-size); height: var(--snow-size); border-radius: 50%; opacity: var(--snow-opacity); background: #f2fbff; animation: christmas-fall var(--snow-speed) linear var(--snow-delay) infinite; }
@keyframes christmas-fall { to { transform: translate3d(var(--snow-drift),115vh,0); } }
html.christmas-on.christmas-still .christmas-bulb { animation: none; }
html.christmas-on.christmas-tab-hidden :is(.christmas-bulb,.christmas-flake,.christmas-sleigh) { animation-play-state: paused; }
@media (max-width: 760px) {
  html.christmas-on .winter-promo { grid-template-columns: 1fr; margin-top: 1rem; }
  html.christmas-on .winter-promo-copy { padding: 2rem 1.5rem; }
  html.christmas-on .winter-promo-art { height: auto; min-height: 0; aspect-ratio: 1200/610; }
  html.christmas-on .winter-promo .winter-promo-title { font-size: clamp(2rem,8vw,3.5rem); }
  html.christmas-on .christmas-ribbon-label { display: none; }
  html.christmas-on .christmas-ribbon { gap: .5rem 1rem; font-size: .7rem; }
  html.christmas-on .christmas-hero-garland { width: 120px; height: 25px; right: 12px; }
  html.christmas-on .christmas-footer-scene { height: 110px; gap: .5rem; }
  html.christmas-on .christmas-footer-scene svg { height: 95px; }
  html.christmas-on .christmas-sleigh { top: 22vh; }
}
@media (prefers-reduced-motion: reduce) {
  html.christmas-on :is(.christmas-flight,.christmas-snow) { display: none !important; }
  html.christmas-on .christmas-bulb { animation: none; }
}

html.christmas-on .christmas-bell { position: absolute; top: 12px; right: 18px; width: 48px; height: 45px; pointer-events: none; }
html.christmas-on .winter-promo-copy { position: relative; }

html.christmas-on .winter-promo .winter-promo-title { font-weight: 800; text-wrap: balance; max-width: none; color: #f2f8fb; }
@media (prefers-reduced-motion: reduce) { html.christmas-on .christmas-motion { display: none; } }

/* Hide the winter paddock promotion ribbon on every page; keep festive nav lights. */
.christmas-ribbon { display: none !important; }

html.christmas-on .homepage .slider-container {
  background: var(--christmas-strip-surface);
  border-color: var(--christmas-gold);
}
