@charset "UTF-8";
/* ================ 花瓣飘落 (开信封时触发) ================ */

.petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4000;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -8vh;
  width: 16px;
  height: 16px;
  will-change: transform, opacity;
  opacity: 0;
  animation: petalFall linear forwards;
}

.petal__inner {
  width: 100%;
  height: 100%;
  border-radius: 55% 5% 55% 55%;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(120, 60, 50, 0.15);
  background: radial-gradient(circle at 32% 28%, #ffd0d6 0%, #e6a9a3 55%, #c88881 100%);
}

.petal--sage .petal__inner {
  background: radial-gradient(circle at 32% 28%, #d6e0c6 0%, #a8b79d 55%, #7b8a72 100%);
  border-radius: 60% 20% 60% 20%;
}

.petal--white .petal__inner {
  background: radial-gradient(circle at 32% 28%, #fffaf0 0%, #f0e3c5 60%, #d9c197 100%);
}

@keyframes petalFall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  50% {
    transform: translate3d(var(--drift, 0), 55vh, 0) rotate(360deg);
  }
  90% { opacity: 0.9; }
  100% {
    transform: translate3d(calc(var(--drift, 0) * 1.6), 115vh, 0) rotate(720deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
}
