.brand-lockup {
  position: relative;
}
.winter-flurry {
  display: none;
}
.christmas .screen::before,
.christmas .brand::before,
.christmas .brand-lockup::after,
.christmas .login::after {
  position: absolute;
  content: '';
  pointer-events: none;
}
.christmas .screen::before {
  inset: 0 0 auto;
  height: 180px;
  background:
    radial-gradient(circle at 5% 35%, #e3f6fe 0 1px, transparent 2px),
    radial-gradient(circle at 13% 8%, #e3f6fe9c 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 22% 51%, #e3f6fe8c 0 1px, transparent 2px),
    radial-gradient(circle at 4% 77%, #e3f6fe7d 0 2px, transparent 3px),
    radial-gradient(circle at 79% 10%, #e3f6fe9c 0 1px, transparent 2px),
    radial-gradient(circle at 92% 28%, #e3f6fe 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 96% 69%, #e3f6fe7d 0 2px, transparent 3px),
    linear-gradient(180deg, #c5edff23 0, transparent 50%);
}
.christmas .brand {
  isolation: isolate;
  padding-top: max(24px, env(safe-area-inset-top));
}
.christmas .brand::before {
  inset: -5px 0 auto;
  height: 88px;
  z-index: -1;
  background: url('/christmas-garland.webp') center top / 100% 100% no-repeat;
}
.christmas .brand p {
  color: #fff1d5;
  text-shadow: 0 1px 4px #120b09;
}
.christmas .screen:has(#login:not([hidden])) {
  background:
    linear-gradient(
      180deg,
      var(--brand-glow) 0%,
      var(--brand-panel) 24%,
      #08132624 45%,
      #07101c50 82%,
      var(--brand-bg)
    ),
    url('/christmas-market.webp') center bottom / auto 78% no-repeat,
    linear-gradient(165deg, var(--brand-glow), var(--brand-bg) 66%);
}
.christmas .screen:has(#login:not([hidden])) .rays {
  display: none;
}
.christmas .screen:has(#login:not([hidden])) .login {
  background: color-mix(in srgb, var(--brand-panel) 90%, #14101c);
}
.christmas .screen:has(#login:not([hidden])) .pfoot {
  color: #fff1da;
  text-shadow:
    0 1px 4px #110f12,
    0 0 8px #110f12;
}
.christmas .brand-lockup::after {
  inset: -12px -10px auto auto;
  width: 37px;
  height: 30px;
  z-index: 1;
  background: url('/holiday-hat.svg') center / contain no-repeat;
  filter: drop-shadow(0 2px 3px #30112f7c);
  transform: rotate(7deg);
}
.christmas .brand-lockup:has(#logo[hidden])::after {
  inset: -16px -14px auto auto;
  width: 32px;
}
.christmas .login::after {
  top: 11px;
  right: 12px;
  width: 38px;
  height: 30px;
  background:
    radial-gradient(circle at 57% 27%, #f2fafeb5 0 1.4px, transparent 2.4px),
    radial-gradient(circle at 80% 43%, #eeffff99 0 1px, transparent 2px),
    radial-gradient(ellipse at top right, #e5f7fc2b, transparent 73%);
}
.christmas .timer-drawer {
  border-top-color: color-mix(in srgb, var(--brand-accent) 50%, #e3f6fe);
}
.christmas .winter-flurry {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 165px;
  overflow: hidden;
  display: block;
  pointer-events: none;
}
.winter-flurry::before,
.winter-flurry::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    radial-gradient(circle at 8% 20%, #fff 0 1.8px, transparent 2.8px),
    radial-gradient(circle at 20% 1%, #ebfaff 0 1px, transparent 2px),
    radial-gradient(circle at 37% 16%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 63% 5%, #ebfaff 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 78% 39%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 91% 14%, #fff 0 2px, transparent 3px);
  animation: winter-flurry 3.4s ease-out both;
}
.winter-flurry::after {
  animation-duration: 3.9s;
  --snow-x: -9px;
  translate: 9px -30px;
}
@keyframes winter-flurry {
  from {
    opacity: 0.15;
    transform: translateY(-21px);
  }
  34% {
    opacity: 0.8;
  }
  to {
    opacity: 0;
    transform: translate(var(--snow-x, 8px), 119px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .christmas .winter-flurry {
    display: none;
  }
}
