body[data-theme-page="home"], body[data-theme-page="login"] {
  position: relative;
}
.christmas-lights {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  contain: strict;
  --lights-inset: 8px;
}
.christmas-lights, .christmas-garland {
  pointer-events: none;
  user-select: none;
  --light-width: 4px;
  --light-height: 6px;
  --socket-height: 2.5px;
  --light-step: 400ms;
  --light-housing: linear-gradient(180deg, #b4c0c466 .5px, transparent .5px 75%, #1b2025a8 75%),
    linear-gradient(90deg, #272e34, #75818a 26%, #4d5963 60%, #242b32);
}
html body[data-theme-page] > .christmas-lights {
  position: absolute;
  z-index: 30;
}
.christmas-light, .christmas-light::before, .christmas-light::after {
  box-sizing: border-box;
  pointer-events: none;
}
.christmas-strand {
  position: absolute;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
}
.christmas-lights::before {
  content: "";
  position: absolute;
  inset: max(var(--lights-inset), env(safe-area-inset-top))
    max(var(--lights-inset), env(safe-area-inset-right))
    max(var(--lights-inset), env(safe-area-inset-bottom))
    max(var(--lights-inset), env(safe-area-inset-left));
  border: 1px solid #59677185;
  border-radius: 3px;
  box-shadow: 0 1px #b0b9be40;
}
.christmas-strand--top, .christmas-strand--bottom {
  left: max(var(--lights-inset), env(safe-area-inset-left));
  right: max(var(--lights-inset), env(safe-area-inset-right));
  height: 16px;
}
.christmas-strand--top {
  top: max(var(--lights-inset), env(safe-area-inset-top));
}
.christmas-strand--bottom {
  bottom: max(var(--lights-inset), env(safe-area-inset-bottom));
  transform: rotate(180deg);
}
.christmas-strand--left, .christmas-strand--right {
  top: calc(max(var(--lights-inset), env(safe-area-inset-top)) + 18px);
  bottom: calc(max(var(--lights-inset), env(safe-area-inset-bottom)) + 18px);
  width: 16px;
  flex-direction: column;
}
.christmas-strand--left {
  left: max(var(--lights-inset), env(safe-area-inset-left));
}
.christmas-strand--right {
  right: max(var(--lights-inset), env(safe-area-inset-right));
  transform: rotate(180deg);
}
.christmas-light, .christmas-garland {
  --light-length: calc(var(--socket-height) + var(--light-height) - .5px);
}
.christmas-light {
  position: relative;
  display: block;
  width: var(--light-width);
  height: var(--light-length);
  flex: 0 0 auto;
  background: var(--light-housing);
  background-size: 100% var(--socket-height);
  background-repeat: no-repeat;
  border-radius: .5px .5px 0 0;
}
.christmas-strand--left .christmas-light, .christmas-strand--right .christmas-light {
  transform: translateY(calc((var(--light-length) + var(--light-width)) / 2)) rotate(-90deg);
  transform-origin: 0 0;
}
.christmas-light::before, .christmas-light::after {
  content: "";
  position: absolute;
}
/* The frosted diffuser stays visible between pulses. */
.christmas-light::before {
  inset: calc(var(--socket-height) - .5px) 0 0;
  border-radius: 0 0 1px 1px;
  background:
    linear-gradient(#dfe8ed, #b8c5ce) center / calc(100% - 2px) calc(100% - 2px) no-repeat,
    linear-gradient(90deg, #788893, #b8c6cf 24%, #84939f 72%, #5f6f7b);
  box-shadow: inset 0 0 0 .5px #52616d, inset 0 .5px #3f4b5580, 0 .5px .5px #26323c33;
}
.christmas-light::after {
  inset: calc(var(--socket-height) + .5px) 1px 1px;
  border-radius: .5px;
  background: linear-gradient(#ebf5fc, #fff 45%, #f4faff);
  box-shadow:
    0 0 1px .5px #fff,
    0 0 2.5px 1px #eef8ffe6,
    0 0 4.5px 1px #82a5bf8c;
  animation: christmas-white-twinkle calc(var(--light-step) * 4) ease-in-out infinite;
  animation-delay: calc(var(--light-group, 0) * var(--light-step) * -1);
}
@keyframes christmas-white-twinkle {
  0%, 22%, 100% { opacity: 1; }
  34%, 86% { opacity: .12; }
}
.christmas-garland {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 1;
  height: calc(var(--garland-sag) + var(--light-length));
  transform: translateX(-50%);
}
.christmas-garland:empty {
  display: none;
}
.christmas-garland::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  box-sizing: border-box;
  height: var(--garland-sag);
  border: solid #667681bd;
  border-width: 0 0 1px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.christmas-garland::after {
  content: "";
  position: absolute;
  inset: -2px -4px auto;
  height: 5px;
  background: var(--light-housing), var(--light-housing);
  background-size: 8px 100%;
  background-position: left, left, right, right;
  background-repeat: no-repeat;
}
.christmas-garland .christmas-light {
  position: absolute;
  left: var(--garland-position);
  top: calc(var(--garland-sag) * var(--garland-drop) - .5px);
  transform: translateX(-50%);
}
.christmas-garland--home {
  --garland-count: 18;
  --garland-sag: 9px;
  width: min(432px, 85%);
}
@media screen and (forced-colors: none) {
  .legal-band:has(> .christmas-garland--home:not(:empty)) {
    padding-top: 34px;
  }
}
body.login-access .login-card {
  position: relative;
  --login-garland-half: min(105px, 36%);
}
.christmas-garland--login {
  --garland-count: 10;
  --garland-sag: 5px;
  --light-width: 3.5px;
  --light-height: 4.5px;
  --socket-height: 2px;
  width: calc(2 * var(--login-garland-half));
}
.christmas-garland--login .christmas-light::after {
  box-shadow: 0 0 1px .5px #fff, 0 0 2px .5px #b9d4e6b3;
}
@media (max-width: 720px) {
  .christmas-lights {
    --lights-inset: 4px;
  }
  .christmas-lights, .christmas-garland--home {
    --light-width: 3.5px;
    --light-height: 5.5px;
    --socket-height: 2px;
  }
  .christmas-strand--left, .christmas-strand--right {
    --light-width: 3px;
    --light-height: 4.5px;
    --socket-height: 2px;
  }
  .christmas-garland--home {
    --garland-count: 10;
    --garland-sag: 7px;
    width: min(240px, 85%);
  }
}
@media (max-width: 800px) {
  body.login-access .login-card {
    --login-garland-half: min(63px, 36%);
  }
  .christmas-garland--login {
    --garland-count: 6;
  }
}
@media (prefers-reduced-motion: reduce) {
  .christmas-light::after { animation: none; opacity: .9; }
}
@media (forced-colors: active), print {
  .christmas-lights, .christmas-garland { display: none; }
}
