/* Book Opening Transition - Three.js overlay */

.book-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  pointer-events: none;
  overflow: hidden;
}

.book-transition-overlay.active {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.02);
}

#book-transition-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  pointer-events: none;
}

#book-transition-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.page-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.page-flash.active {
  opacity: 1;
}

@keyframes book-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.book.opening {
  animation: book-pulse 0.3s ease;
}
