/* Every tap answers (js/react.js): the little things that pop out of the scene.
   Shapes only; js/react.js moves them with Web Animations and removes them. */
.rx-fx { position: fixed; inset: 0; z-index: 39; pointer-events: none; overflow: hidden; }

.rx-p {
  position: absolute;
  width: var(--s, 3vmin);
  height: var(--s, 3vmin);
  margin: calc(var(--s, 3vmin) / -2) 0 0 calc(var(--s, 3vmin) / -2);
  opacity: 0;
  will-change: transform, opacity;
}
.rx-leaf   { border-radius: 0 100% 0 100%; background: var(--c, #6cc24a); box-shadow: inset -.3vmin -.3vmin 0 rgba(0, 0, 0, .1); }
.rx-petal  { border-radius: 50% 50% 50% 0; background: var(--c, #ff9fc0); }
.rx-dot    { border-radius: 50%; background: var(--c, #fff); box-shadow: 0 .2vmin .4vmin rgba(74, 63, 122, .15); }
.rx-drop   { border-radius: 0 50% 50% 50%; rotate: 45deg; background: linear-gradient(135deg, #bfe8ff, #4fb3f0); }
.rx-bubble { border-radius: 50%; border: max(2px, .45vmin) solid rgba(255, 255, 255, .9); background: radial-gradient(circle at 32% 30%, #fff 0 14%, rgba(255, 255, 255, .15) 16%); }
.rx-ember  { border-radius: 50%; background: var(--c, #ffb43c); box-shadow: 0 0 1vmin #ff8a00; }
.rx-ring   { border: max(2px, .6vmin) solid rgba(255, 255, 255, .9); border-radius: 50%; }
.rx-glow   { border-radius: 50%; background: radial-gradient(rgba(255, 240, 150, .9), rgba(255, 216, 77, .35) 40%, rgba(255, 216, 77, 0) 70%); }
.rx-star {
  background: var(--c, #ffd84d);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.rx-heart {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.5S2.5 15.6 2.5 9a5 5 0 0 1 9.5-2.2A5 5 0 0 1 21.5 9c0 6.6-9.5 12.5-9.5 12.5Z' fill='%23ff7aa8' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* A flower that grows where the finger touched the grass: stem, two leaves, petals in --c */
.rx-flower {
  position: absolute;
  width: 12vmin;
  height: 16vmin;
  margin: -16vmin 0 0 -6vmin;
  transform-origin: 50% 100%;
  transform: scale(0);
}
.rx-flower::before {   /* stem */
  content: "";
  position: absolute;
  left: calc(50% - .7vmin);
  bottom: 0;
  width: 1.4vmin;
  height: 11vmin;
  border-radius: 1vmin;
  background: #4ea43e;
}
.rx-flower::after {    /* leaf */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3vmin;
  width: 4.4vmin;
  height: 2.6vmin;
  border-radius: 0 100% 0 100%;
  background: #5fb84d;
}
.rx-flower b {         /* the head: a yellow middle with four petals (like the garden's .flower) */
  position: absolute;
  left: calc(50% - 2.3vmin);
  top: 2.6vmin;
  width: 4.6vmin;
  height: 4.6vmin;
  border-radius: 50%;
  background: #ffe066;
  box-shadow:
    0 -3.5vmin 0 -.3vmin var(--c, #ff7aa8),
    0  3.5vmin 0 -.3vmin var(--c, #ff7aa8),
    3.5vmin 0 0 -.3vmin var(--c, #ff7aa8),
   -3.5vmin 0 0 -.3vmin var(--c, #ff7aa8);
}

@media (prefers-reduced-motion: reduce) {
  .rx-fx { display: none; }
}
