/* Storewide winter decoration. All visuals are non-interactive overlays. */
.asto-christmas-layer {
  position: fixed;
  z-index: 99999;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.asto-christmas-flake {
  position: absolute;
  top: -24px;
  left: var(--flake-x);
  color: rgba(255, 253, 247, var(--flake-opacity));
  font-family: Georgia, serif;
  font-size: var(--flake-size);
  line-height: 1;
  text-shadow: 0 1px 3px rgba(62, 38, 29, .82), 0 0 6px rgba(255, 255, 255, 1), 0 0 15px rgba(178, 133, 70, .92);
  animation: asto-christmas-fall var(--flake-duration) linear var(--flake-delay) infinite;
  will-change: transform, opacity;
}

.asto-christmas-flake.is-diamond {
  color: rgba(157, 113, 54, calc(var(--flake-opacity) + .04));
  text-shadow: 0 1px 3px rgba(58, 34, 25, .78), 0 0 7px rgba(255, 255, 255, 1), 0 0 17px rgba(185, 139, 71, .98);
}

.asto-christmas-flight {
  position: absolute;
  top: clamp(82px, 10vh, 132px);
  left: 0;
  width: clamp(132px, 17vw, 180px);
  opacity: 0;
  animation: asto-christmas-flyby 24s linear -3s infinite;
  will-change: transform, opacity;
}

.asto-christmas-sleigh {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 7px rgba(74, 37, 24, .2));
}

.asto-christmas-greeting {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: -5px auto 0;
  padding: 5px 10px;
  border: 1px solid rgba(190, 157, 105, .62);
  border-radius: 999px;
  background: rgba(255, 250, 240, .94);
  color: #6f243d;
  box-shadow: 0 2px 8px rgba(65, 39, 31, .14);
  font: 600 12px/1.25 Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
}

@keyframes asto-christmas-fall {
  0% { transform: translate3d(0, -12px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: var(--flake-opacity); }
  88% { opacity: var(--flake-opacity); }
  100% { transform: translate3d(var(--flake-drift), calc(100vh + 48px), 0) rotate(190deg); opacity: 0; }
}

@keyframes asto-christmas-flyby {
  0% { transform: translateX(-125%); opacity: 0; }
  2% { opacity: 1; }
  62% { transform: translateX(var(--flight-distance)); opacity: 1; }
  66%, 100% { transform: translateX(var(--flight-distance)); opacity: 0; }
}

@media (max-width: 600px) {
  .asto-christmas-flake:nth-of-type(n+19) { display: none; }
  .asto-christmas-flight {
    top: 105px;
    width: min(130px, 36vw);
    animation-duration: 22s;
  }
  .asto-christmas-greeting {
    margin-top: -4px;
    padding: 4px 8px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .asto-christmas-layer { display: none; }
}
