/* Refined animations without content blinking or layer flashing */
@keyframes page-shadow-front {
  0% { opacity: 0; }
  28% { opacity: 0.5; }
  65% { opacity: 0.3; }
  100% { opacity: 0; }
}
@keyframes page-shadow-back {
  0% { opacity: 0; }
  32% { opacity: 0.6; }
  70% { opacity: 0.25; }
  100% { opacity: 0; }
}
@keyframes orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes float-drift {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}
@keyframes gold-shimmer {
  0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 1px rgba(223, 200, 150, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(235, 215, 170, 0.7)); }
}
@keyframes ribbon-flutter {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(1.5deg); }
}

.stamp-orbit { animation: orbit 32s linear infinite; }
.drift { animation: float-drift 6s ease-in-out infinite; }
.cover-emblem:hover { animation: gold-shimmer 2.4s ease-in-out infinite; }

/* In a real printed book, page ink is static and does not flash or fade in */
.page-content > * {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .turn-sheet { will-change: auto; }
}
