body > #snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* Each soft mound ends on the same baseline. The blue rim and the small
   cream highlight give the snow the same painted light as the gift art. */
:root {
  --snow-drift:
    radial-gradient(ellipse 32% 54% at 22% 105%, #fcf9e8 0 89%, transparent 100%),
    radial-gradient(ellipse 18% 90% at 40% 108%, #f5f6eb 0 79%, #d9e6e3 91%, transparent 100%),
    radial-gradient(ellipse 27% 67% at 57% 110%, #e9f0ea 0 82%, #b7cfd1 95%, transparent 100%),
    radial-gradient(ellipse 27% 37% at 76% 106%, #d8e7e4 0 80%, transparent 100%);
}
.heist-steps, #route .section-head, #vault .wv-inner, #token .token-sheet {
  position: relative;
}
.heist-steps::before, #collection::before, #vault .wv-inner::before,
#token .token-sheet::before, #workshop .ws-parcel::before,
#route .section-head::after {
  content: "";
  position: absolute;
  z-index: 1;
  height: var(--drift-height, 12px);
  pointer-events: none;
  background-image: var(--snow-drift);
  background-position: center bottom;
  background-repeat: repeat-x;
  background-size: var(--drift-span, 220px) 100%;
}
.heist-steps::before {
  bottom: calc(100% - 1px);
  left: 5%;
  right: 8%;
  --drift-height: clamp(8px, 1vw, 14px);
  --drift-span: clamp(155px, 29%, 380px);
  mask-image: linear-gradient(90deg, transparent, black 9%, black 32%, transparent 49%, transparent 58%, black 70%, black 90%, transparent);
}
#workshop .ws-parcel { overflow: visible; }
#workshop .ws-pack-art { border-radius: 7px 7px 0 0; }
#workshop .ws-parcel::before {
  bottom: 100%;
  left: 8%;
  width: 73%;
  --drift-height: 11px;
  --drift-span: 100%;
}
#workshop .ws-parcel-night::before { left: 23%; width: 64%; transform: scaleX(-1); }
#workshop .ws-parcel-gold::before { left: 13%; width: 80%; --drift-height: 12px; }
#route .section-head::after {
  left: 0;
  bottom: -12px;
  width: 100%;
  height: 6px;
  border-bottom: 1px solid #67817980;
  --drift-span: 158px;
  mask-image: linear-gradient(90deg,black,black 27%,transparent 44%, transparent 70%,black 93%,transparent);
}
#collection::before {
  bottom: calc(100% + 3px);
  left: 0;
  width: 100%;
  --drift-span: clamp(145px, 23%, 355px);
  --drift-height: clamp(8px, 1.1vw, 16px);
  mask-image: linear-gradient(90deg,transparent,black 6%,black 23%,transparent 36%,black 57%,transparent 73%,black 91%,transparent);
}
#vault .wv-inner::before {
  left: max(8%,42px);
  width: 61%;
  bottom: calc(100% - clamp(20px,3vw,48px) - 1px);
  --drift-span: clamp(145px, 45%, 320px);
  mask-image: linear-gradient(90deg,transparent, black 12%, black 43%,transparent 65%,black 82%,transparent);
}
#token .token-sheet::before {
  bottom: 100%;
  right: 2%;
  width: min(45%, 360px);
  --drift-span: 100%;
}

@media (max-width: 700px) {
  #workshop .ws-pack-art { border-radius: 7px 0 0 0; }
  #workshop .ws-parcel::before { --drift-height: 8px; }
  #vault .wv-inner::before { bottom: calc(100% - 25px); left: 7%; width: 72%; }
  #route .section-head::after { bottom: -9px; }
}
@media (prefers-reduced-motion: reduce), print {
  body > #snow { display: none; }
}
