.cm-winter,
.cm-new-year-timer {
  --winter-ink: #c1e6ff;
  --winter-ice: #a5dbfc;
  --winter-flake: #e4f6ff;
  --winter-wire: #b7d2cb57;
  --winter-snow-bright: #f0f8ff;
  --winter-snow-shade: #bad1e2;
}

:is(.cm-winter, .cm-new-year-timer)[data-theme="dark"] {
  --winter-ink: #b9eadb;
  --winter-ice: #9de3d5;
}

:is(.cm-winter, .cm-new-year-timer)[data-theme="light"] {
  --winter-ink: #306077;
  --winter-ice: #79b7d6;
  --winter-flake: #5393b8;
}

.cm-winter .brand-mark {
  position: relative;
  overflow: visible;
}

.winter-brand-hat {
  position: absolute;
  z-index: 1;
  top: -8px;
  left: -5px;
  width: 23px;
  height: 16px;
  pointer-events: none;
  transform: rotate(-24deg);
  filter: drop-shadow(0 2px 2px #10121e55);
}

.winter-brand-hat::before {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 18px;
  height: 12px;
  border-radius: 65% 58% 17% 23% / 86% 77% 12% 13%;
  background: linear-gradient(132deg, #f5888b 12%, #dd4b60 57%, #ae2e50);
  transform: skewX(-14deg);
}

.winter-brand-hat::after,
.winter-brand-hat i {
  position: absolute;
  border-radius: 99px;
  background: linear-gradient(#fff, #dcebf5);
}

.winter-brand-hat::after {
  content: '';
  left: 2px;
  bottom: 1px;
  width: 19px;
  height: 5px;
}

.winter-brand-hat i {
  top: 0;
  right: -1px;
  width: 7px;
  height: 7px;
}



.winter-countdown {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 8px 9px 8px 13px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--winter-ice));
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 1% 0, color-mix(in srgb, var(--winter-ice) 9%, transparent), transparent 70%),
    var(--card);
  box-shadow: inset 0 1px color-mix(in srgb, var(--winter-ice) 24%, transparent), 0 0 15px color-mix(in srgb, var(--winter-ice) 9%, transparent), var(--shadow);
}

.cm-union-home > .cm-home-winter { margin: 0; }

.winter-countdown-label {
  color: var(--winter-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.winter-countdown-label small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  margin-top: 2px;
}

.winter-time {
  display: grid;
  grid-template-columns: repeat(4, minmax(27px, 1fr));
  gap: 5px;
  text-align: center;
}

.winter-time[hidden] {
  display: none;
}

.winter-time span {
  display: grid;
  justify-items: center;
  gap: 1px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
}

.winter-time b {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.winter-time abbr {
  text-decoration: none;
}

.winter-snow-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  flex: 0 0 auto;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
  font: inherit;
}

.winter-snow-toggle[aria-pressed="true"] {
  color: var(--winter-ink);
  border-color: color-mix(in srgb, var(--line) 65%, var(--winter-ice));
  background: color-mix(in srgb, var(--soft) 91%, var(--winter-ice));
}

.winter-snow-toggle:hover,
.winter-snow-toggle:focus-visible {
  border-color: var(--winter-ice);
}

.winter-snow-toggle:focus-visible {
  outline: 2px solid var(--winter-ice);
  outline-offset: 3px;
}

.winter-snow-toggle span {
  font-size: 19px;
  line-height: 1;
}

.winter-hero-decor {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px #e1f4ff4a, inset 0 18px 30px -20px #9dcfe480;
  background:
    radial-gradient(ellipse at 4% 0%, #c4e6f12c, transparent 38%),
    radial-gradient(ellipse at 99% 0%, #a6d9fc26, transparent 39%);
  pointer-events: none;
}

.winter-hero-decor::before {
  content: '';
  position: absolute;
  inset: -1px 0 auto;
  height: 18px;
  border-radius: inherit;
  background:
    var(--winter-drifts, none),
    linear-gradient(var(--winter-snow-bright), var(--winter-snow-shade) 74%, transparent) top / 100% 5px no-repeat;
}

.winter-hero-decor::after {
  content: '';
  position: absolute;
  inset: 0 0 auto auto;
  width: min(185px, 39%);
  height: 44px;
  opacity: .43;
  background:
    repeating-linear-gradient(124deg, #c8effc33 0 1px, transparent 1px 9px),
    repeating-linear-gradient(64deg, #c8effc25 0 1px, transparent 1px 12px);
  mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 76%);
}

.winter-garland {
  position: absolute;
  top: -9px;
  inset-inline: -1px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  height: 22px;
}

.winter-garland i {
  --bulb: #b4e6ff;
  position: relative;
  border-bottom: 1px solid var(--winter-wire);
  border-radius: 0 0 49% 49%;
}

.winter-garland i:nth-child(3n + 2) { --bulb: #f8d48a; }
.winter-garland i:nth-child(3n) { --bulb: #a7debf; }

.winter-garland i::before,
.winter-garland i::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 30%;
  width: 4px;
  height: 6px;
  border-radius: 3px 3px 5px 5px;
  background: var(--bulb);
  box-shadow: 0 1px 9px 1px var(--bulb);
  transform: rotate(12deg);
}

.winter-sprig {
  position: absolute;
  right: 7px;
  bottom: 4px;
  width: min(91px, 23%);
  height: 25px;
  transform: rotate(-12deg);
  opacity: .8;
}

.winter-sprig::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(174deg, transparent 47%, #769e86 49% 53%, transparent 55%),
    repeating-linear-gradient(42deg, #648d77 0 2px, #355f4c 2px 4px, transparent 4px 7px);
  clip-path: polygon(0 53%, 17% 39%, 13% 23%, 33% 34%, 28% 12%, 48% 26%, 43% 0, 64% 18%, 63% 0, 82% 13%, 100% 0, 94% 50%, 79% 59%, 88% 73%, 64% 67%, 72% 86%, 48% 70%, 53% 96%, 30% 73%, 34% 87%, 15% 65%);
}

.winter-sprig::after {
  content: '';
  position: absolute;
  right: 23%;
  bottom: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e8bc6f;
  box-shadow: -16px 1px 0 #b66b59, 0 0 6px #f4d28e67;
}

:where(.cm-winter #content .card:not(.card .card)) {
  position: relative;
}

:where(.cm-winter #content .card:not(.card .card))::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  border-radius: inherit;
  pointer-events: none;
  background: var(--winter-drifts, radial-gradient(48px 7px at 6% 0, var(--winter-snow-bright) 38%, var(--winter-snow-shade) 82%, transparent 95%));
  opacity: .85;
}

.cm-winter .cm-union-home .u-constellation:not(:empty) {
  position: relative;
  padding-bottom: 10px;
}

.cm-winter .cm-union-home .u-constellation:not(:empty)::after {
  content: '';
  position: absolute;
  inset: auto 4px 0;
  height: 6px;
  border-radius: 40% 50% 25% 35%;
  pointer-events: none;
  background: linear-gradient(180deg, var(--winter-snow-bright), var(--winter-snow-shade));
  opacity: .9;
}

.winter-garland i::after {
  bottom: -4px;
  left: 67%;
  transform: rotate(-12deg);
  opacity: .7;
}

.cm-winter .hero:has(.winter-hero-decor) + .section-line + .stats .stat-card {
  box-shadow: inset 0 1px color-mix(in srgb, var(--winter-ice) 21%, transparent), var(--shadow);
}

.winter-snow {
  position: fixed;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: .64;
}

.cm-winter[data-theme="light"] .winter-snow {
  opacity: .35;
}

.winter-snow i {
  position: absolute;
  top: -8px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--winter-flake);
  box-shadow: 0 0 7px var(--winter-flake);
  animation: winter-fall var(--duration) var(--delay) linear infinite;
}

@keyframes winter-fall {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  11%, 75% { opacity: .65; }
  100% { opacity: 0; transform: translate3d(var(--drift), 105vh, 0); }
}

@media (max-width: 760px) {
  

  

  .winter-countdown {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .winter-countdown-label {
    font-size: 11px;
  }

  .winter-snow-toggle {
    width: 39px;
    height: 39px;
  }

  .winter-garland {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .winter-sprig {
    width: 54px;
    height: 17px;
    opacity: .63;
  }

  .winter-garland i:nth-child(n + 6),
  .winter-snow i:nth-child(n + 14) {
    display: none;
  }

  
}



@media (prefers-reduced-motion: reduce) {
  .winter-snow i {
    top: var(--static-y);
    opacity: .35;
    animation: none;
  }
}
