/* Supplementary styles that don't map cleanly to Tailwind utilities. */

.seating-canvas {
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: rgba(255, 255, 255, 0.02);
}

.seating-table {
  cursor: grab;
  touch-action: none;
}
.seating-table.dragging {
  cursor: grabbing;
  opacity: 0.85;
}

.step-indicator .step-line-wrap::after {
  transition: background 0.35s ease;
}
.step-indicator .step-line-wrap.step-line-done::after {
  background: linear-gradient(to right, #6d7ef7, #9a7cf2);
}
.step-indicator .step-dot.step-dot-active {
  border-color: #8b9bfb;
  background: linear-gradient(135deg, #6d7ef7, #9a7cf2);
  color: #fff;
}
.step-indicator .step-dot.step-dot-done {
  border-color: rgba(139, 155, 251, 0.5);
  background: rgba(109, 126, 247, 0.15);
  color: #b0bcfd;
}

[x-cloak],
.js-hidden {
  display: none !important;
}

.scrollbar-thin::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

/* Invitation page ambient effects (category-driven). */
.invite-fx-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.fx-heart {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: rotate(-45deg);
  opacity: 0;
  animation: fx-rise linear infinite;
}
.fx-heart::before,
.fx-heart::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: inherit;
  border-radius: 50%;
}
.fx-heart::before {
  top: -6px;
  left: 0;
}
.fx-heart::after {
  left: 6px;
  top: 0;
}

@keyframes fx-rise {
  0% {
    transform: translateY(8vh) translateX(0) rotate(-45deg);
    opacity: 0;
  }
  12% {
    opacity: var(--fx-opacity, 0.55);
  }
  88% {
    opacity: var(--fx-opacity, 0.55);
  }
  100% {
    transform: translateY(-108vh) translateX(var(--fx-drift, 20px)) rotate(-45deg);
    opacity: 0;
  }
}

.fx-confetti {
  position: absolute;
  opacity: 0;
  animation: fx-fall linear infinite;
}

@keyframes fx-fall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) translateX(var(--fx-drift, 30px)) rotate(360deg);
    opacity: 0;
  }
}

.fx-spark {
  position: absolute;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), transparent 70%);
  animation: fx-pulse ease-in-out infinite;
}

@keyframes fx-pulse {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.75);
  }
  50% {
    opacity: 0.65;
    transform: scale(1.2);
  }
}

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

@media print {
  body * {
    visibility: hidden;
  }
  #print-area,
  #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    inset: 0;
  }
}
