/* Falling leaves – lightweight decorative layer */
.leaves-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 14px;
  opacity: 0.55;
  animation-name: leaf-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.leaf::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #c4a574;
  border-radius: 0 70% 0 70%;
  transform: rotate(45deg);
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.12);
}

.leaf.l2::before { background: #a67c52; border-radius: 70% 0 70% 0; }
.leaf.l3::before { background: #8b6914; }
.leaf.l4::before { background: #d4b896; border-radius: 60% 10% 60% 10%; }
.leaf.l5::before { background: #6b4423; }

@keyframes leaf-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 0.55; }
  90% { opacity: 0.45; }
  100% {
    transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin));
    opacity: 0;
  }
}

/* Slightly fewer / subtler on mobile */
@media (max-width: 700px) {
  .leaf { opacity: 0.4; width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .leaves-layer { display: none !important; }
}
