/* Pluggable Seasonal Overlay: Winter Ops / Christmas Theme (WoT Holiday Ops Inspired)
   Toggle ON/OFF in Admin Overview (or SITE_THEME=xmas / SITE_THEME=default). */
body.theme-xmas {
  --bg-0: #111a2c;
  --bg-1: #18233a;
  --bg-2: #202e4a;
  --bg-3: #293a5c;
  --line: rgba(196, 224, 255, 0.16);
  --line-hi: rgba(214, 236, 255, 0.30);
  --hero-img: url('/static/img/hero_winter_ops.jpg?v=10');
}

body.theme-xmas .topbar {
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.94) 0%, rgba(16, 26, 46, 0.80) 100%);
  border-bottom-color: rgba(196, 224, 255, 0.22);
}

/* Glistening crystal icicle trim hanging beneath the top navbar */
body.theme-xmas .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 36px;
  background-image: url('/static/img/xmas_icicles.png');
  background-repeat: repeat-x;
  background-size: auto 36px;
  background-position: top center;
  opacity: 0.78;
  pointer-events: none;
}

body.theme-xmas .hero-bg-layer {
  background-position: right 50%;
}
body.theme-xmas .hero-full::before {
  background:
    linear-gradient(90deg, rgba(11, 19, 34, 0.88) 0%, rgba(12, 21, 38, 0.54) 38%, rgba(12, 21, 38, 0.04) 76%, rgba(12, 21, 38, 0.14) 100%),
    linear-gradient(180deg, rgba(11, 19, 34, 0.34) 0%, rgba(11, 19, 34, 0.0) 22%, rgba(17, 26, 44, 0.0) 78%, var(--bg-0) 100%);
}

/* 3D Sculpted Snowdrift Caps perched cleanly on top of cards (like WoT Holiday Ops Store!) */
body.theme-xmas .xmas-snow-top {
  position: relative;
  overflow: visible;
}
body.theme-xmas .xmas-snow-top::before {
  content: "";
  position: absolute;
  top: -26px;
  right: 14px;
  width: 192px;
  max-width: 66%;
  height: 34px;
  background-image: url('/static/img/xmas_snowcap.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 5px 8px rgba(4, 10, 24, 0.55));
}
body.theme-xmas .xmas-snow-left::before {
  right: auto;
  left: 14px;
  transform: scaleX(-1);
}

/* Hanging crystal icicle cluster accent on featured / checkout / download cards */
body.theme-xmas .xmas-icicle-bottom {
  position: relative;
  overflow: visible;
}
body.theme-xmas .xmas-icicle-bottom::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 20px;
  width: 96px;
  height: 68px;
  background-image: url('/static/img/xmas_icicle_cluster.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top left;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 4px 8px rgba(4, 10, 24, 0.55));
}
body.theme-xmas .xmas-icicle-right::after {
  left: auto;
  right: 20px;
  transform: scaleX(-1);
}

/* Add breathing room around snow-capped & icicle-trimmed cards so accents never clip */
body.theme-xmas .store-grid,
body.theme-xmas .preview-pass-row,
body.theme-xmas .steps-grid,
body.theme-xmas .cap-grid {
  padding-top: 24px;
}
body.theme-xmas .dl-hero-card.xmas-icicle-bottom {
  margin-bottom: 66px;
}
body.theme-xmas .checkout-panel.xmas-icicle-bottom {
  margin-bottom: 60px;
}

body.theme-xmas .site-footer {
  background: #0c1322;
  border-top-color: rgba(196, 224, 255, 0.18);
}

#nox-snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}
