.topbar.christmas-topbar {
  --holiday-flake: #fffefa;
  --holiday-flake-shade: #91adb5;
  --holiday-snow-top: #fcffff;
  --holiday-snow-base: #b5cbd0;
  background: linear-gradient(108deg, #edf3e5, #f8f3ea 56%, #edf2e5);
}

[data-theme=dark] .topbar.christmas-topbar {
  --holiday-flake: #fffefa;
  --holiday-flake-shade: #aecbd1;
  --holiday-snow-top: #f1f9fa;
  --holiday-snow-base: #91adb7;
  background: linear-gradient(108deg, #283a31, #26302e 56%, #2d3830);
}

.christmas-topbar .brand-area .brand {
  position: relative;
  isolation: isolate;
}

.christmas-topbar .brand::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -7px 0 -4px;
  pointer-events: none;
  opacity: .85;
  background:
    radial-gradient(ellipse at 8px 16px, var(--holiday-flake) 0 .65px, transparent 1.7px) 0 -2px / 39px 53px,
    radial-gradient(circle at 22px 11px, var(--holiday-flake-shade) 0 .65px, transparent 1.5px) 14px -13px / 41px 61px,
    radial-gradient(circle at 9px 7px, var(--holiday-flake) 0 .45px, transparent 1px) 29px -3px / 33px 43px,
    radial-gradient(ellipse at 13px 23px, var(--holiday-flake) 0 .55px, transparent 2px) 9px 0 / 83px 71px;
  mask-image: linear-gradient(transparent, #000 17%, #000 86%, transparent);
  animation: playfg-holiday-snow 5.5s linear infinite;
}

.christmas-topbar .brand::after {
  content: "";
  position: absolute;
  inset: auto 2px -5px 1px;
  height: 8px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 60% 67%, #fff8 0, transparent 70%),
    linear-gradient(to bottom, var(--holiday-snow-top) 25%, var(--holiday-snow-base));
  mask-image:
    radial-gradient(ellipse 10% 75% at 8% 84%, #000 88%, transparent 100%),
    radial-gradient(ellipse 16% 96% at 22% 93%, #000 91%, transparent 100%),
    radial-gradient(ellipse 21% 60% at 41% 78%, #000 91%, transparent 100%),
    radial-gradient(ellipse 13% 92% at 57% 95%, #000 90%, transparent 100%),
    radial-gradient(ellipse 19% 66% at 76% 91%, #000 90%, transparent 100%),
    radial-gradient(ellipse 12% 90% at 88% 95%, #000 91%, transparent 100%);
}

@keyframes playfg-holiday-snow {
  to { background-position: 39px 51px, -27px 48px, 62px 40px, 9px 71px; }
}

@media (max-width: 640px) {
  .christmas-topbar .brand::after { height: 6px; bottom: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  .christmas-topbar .brand::before { animation: none; }
}
