/* Seasonal colors and trim are independent of snowfall. */
@media (forced-colors:none) {
  html:root.season-christmas body {
    --concept-cream:#fbf6ec;
    --christmas-pine:#183d32;
    --christmas-paper:#fff8e9;
    --christmas-berry:#963e4a;
    --christmas-gold:#c3a36c;
    --christmas-trim:repeating-linear-gradient(115deg,
      var(--christmas-berry) 0 9px, transparent 9px 13px,
      var(--christmas-pine) 13px 22px, transparent 22px 26px,
      var(--christmas-gold) 26px 30px, transparent 30px 34px);
  }
  .season-christmas .workspace .topbar {
    --focus:var(--christmas-paper);
    background:linear-gradient(90deg,
      var(--christmas-berry) 0 68px, var(--christmas-gold) 68px 100%) left bottom / 100% 2px no-repeat,
      var(--christmas-pine);
    border-bottom-color:var(--christmas-pine);
    color:var(--christmas-paper);
  }
  .season-christmas .topbar :is(.feedback-trigger, .logout-button) { color:inherit; }
  .season-christmas .topbar button:hover { background-color:#ffffff20; }
  .season-christmas .topbar .notification-dot {
    background:var(--christmas-gold);
    border-color:var(--christmas-pine);
  }
  .season-christmas .app-brand { position:relative; }
  .season-christmas .app-brand::after {
    content:"";
    position:absolute;
    inset:-3px auto auto 0;
    width:25px;
    height:14px;
    pointer-events:none;
    background:
      radial-gradient(circle at 13px 9px,#df757b 0 2.5px,transparent 3px),
      radial-gradient(circle at 18px 10px,#c55b64 0 2px,transparent 2.5px),
      radial-gradient(ellipse at 7px 5px,#7ea687 0 5px,transparent 5.5px),
      radial-gradient(ellipse at 19px 4px,#b0c4a1 0 4px,transparent 4.5px);
  }
  .season-christmas body .landing-hero,
  .season-christmas body .invite-stage,
  .season-christmas body[data-authenticated=true] .concept-room-card {
    background-image:var(--christmas-trim);
    background-size:102px 3px;
    background-position:24px top;
    background-repeat:no-repeat;
  }
  .season-christmas body .landing-hero { background-position:left top; }
  .season-christmas body .room-finale-entry { border-left-color:var(--christmas-berry); }
  .season-christmas #navigation .nav-link.active::before { background:var(--christmas-berry); }
}

/* Offset the loops so flakes fade out and return at different times. */
.season-snow-crystals { display:none; }
@media (prefers-reduced-motion:no-preference) and (forced-colors:none) {
  .season-christmas body { isolation:isolate; }
  .season-christmas body::before {
    --snow-light:rgba(119, 150, 155, .46);
    --snow-faint:rgba(139, 167, 170, .32);
    content:"";
    position:fixed;
    inset:-76px 14px 0 -14px;
    z-index:-1;
    pointer-events:none;
    background-image:
      radial-gradient(circle at 29px 54px, var(--snow-light) 0 1.3px, transparent 2.2px),
      radial-gradient(circle at 116px 178px, var(--snow-light) 0 1.7px, transparent 2.7px),
      radial-gradient(circle at 74px 111px, var(--snow-faint) 0 1px, transparent 1.8px),
      radial-gradient(circle at 181px 22px, var(--snow-faint) 0 1.2px, transparent 2px);
    background-size:178px 243px, 253px 281px, 211px 193px, 267px 227px;
    opacity:0;
    animation:season-snowfall 12s linear -4s infinite;
  }
  @keyframes season-snowfall {
    0% { opacity:0; transform:translate(0, 0); }
    18%, 66% { opacity:1; }
    100% { opacity:0; transform:translate(14px, 76px); }
  }
  .season-christmas .season-snow-crystals {
    display:block;
    position:fixed;
    inset:0;
    z-index:-1;
    overflow:hidden;
    pointer-events:none;
  }
  .season-snow-crystals > span {
    position:absolute;
    width:var(--size, 14px);
    aspect-ratio:1;
    background:rgba(105, 140, 146, .58);
    /* Six arms with two branches on each arm. */
    clip-path:polygon(
      46.5% 43.9%, 46.5% 29%, 33.5% 15.5%, 38.5% 10.5%, 46.5% 19%, 46.5% 3%,
      53.5% 3%, 53.5% 19%, 61.5% 10.5%, 66.5% 15.5%, 53.5% 29%,
      53.5% 43.9%, 66.4% 36.5%, 71.6% 18.5%, 78.5% 20.3%, 75.1% 31.5%, 89% 23.5%,
      92.5% 29.5%, 78.6% 37.5%, 90% 40.2%, 88.1% 47%, 69.9% 42.5%,
      57% 50%, 69.9% 57.5%, 88.1% 53%, 90% 59.8%, 78.6% 62.5%, 92.5% 70.5%,
      89% 76.5%, 75.1% 68.5%, 78.5% 79.7%, 71.6% 81.5%, 66.4% 63.5%,
      53.5% 56.1%, 53.5% 71%, 66.5% 84.5%, 61.5% 89.5%, 53.5% 81%, 53.5% 97%,
      46.5% 97%, 46.5% 81%, 38.5% 89.5%, 33.5% 84.5%, 46.5% 71%,
      46.5% 56.1%, 33.6% 63.5%, 28.4% 81.5%, 21.5% 79.7%, 24.9% 68.5%, 11% 76.5%,
      7.5% 70.5%, 21.4% 62.5%, 10% 59.8%, 11.9% 53%, 30.1% 57.5%,
      43% 50%, 30.1% 42.5%, 11.9% 47%, 10% 40.2%, 21.4% 37.5%, 7.5% 29.5%,
      11% 23.5%, 24.9% 31.5%, 21.5% 20.3%, 28.4% 18.5%, 33.6% 36.5%
    );
    opacity:0;
    animation:season-crystal-fall var(--fall-duration) linear var(--fall-delay) infinite;
  }
  .season-snow-crystals > :nth-child(1) { top:9%; left:74%; --size:17px; --drift:-14px; --fall-duration:9s; --fall-delay:-3s; }
  .season-snow-crystals > :nth-child(2) { top:16%; left:24%; --size:12px; --turn:27deg; --fall-duration:13s; --fall-delay:-7s; }
  .season-snow-crystals > :nth-child(3) { top:33%; left:1%; --size:15px; --drift:3px; --fall-duration:10s; --fall-delay:-4s; }
  .season-snow-crystals > :nth-child(4) { top:50%; right:1%; --size:13px; --drift:-6px; --fall-duration:12s; --fall-delay:-9s; }
  .season-snow-crystals > :nth-child(5) { top:69%; left:1.5%; --size:12px; --turn:20deg; --fall-duration:14s; --fall-delay:-2s; }
  .season-snow-crystals > :nth-child(6) { top:26%; right:3%; --size:17px; --turn:-24deg; --fall-duration:11s; --fall-delay:-8s; }
  @keyframes season-crystal-fall {
    0% { opacity:0; transform:translateY(-18px) rotate(calc(var(--turn, 16deg) * -1)); }
    22%, 66% { opacity:1; }
    100% { opacity:0; transform:translate(var(--drift, 10px), 62px) rotate(var(--turn, 16deg)); }
  }
}
