/* The look of a falling leaf. Hosts place and animate it (site: fixed layer in px, game: lanes
   in cqw) and set the size with --ww-leaf-w. Needs tokens.css.
   Markup: <span class="ww-leaf"></span>  (+ ww-leaf--lime | ww-leaf--autumn) */
.ww-leaf {
  position: absolute;
  width: var(--ww-leaf-w, 22px);
  height: calc(var(--ww-leaf-w, 22px) * 0.7);
  background: linear-gradient(to bottom right, var(--ww-leaf-a1), var(--ww-leaf-a2));
  border-radius: 0 75% 0 75%;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.6);
}
.ww-leaf--lime   { background: linear-gradient(to bottom right, var(--ww-leaf-b1), var(--ww-leaf-b2)); }
.ww-leaf--autumn { background: linear-gradient(to bottom right, var(--ww-leaf-c1), var(--ww-leaf-c2)); }
/* midrib */
.ww-leaf::after {
  content: "";
  position: absolute;
  left: 8%; top: 50%;
  width: 84%; height: 1px;
  background: rgba(0, 0, 0, 0.28);
  transform: rotate(-35deg);
  transform-origin: left center;
}
/* stem */
.ww-leaf::before {
  content: "";
  position: absolute;
  left: -14%; bottom: -8%;
  width: 26%; height: 2px;
  background: var(--ww-leaf-stem);
  border-radius: 2px;
  transform: rotate(-35deg);
}
