/* board/tour.css
   Animated curved arrow pointing at the "Open Scripture" button.
   The overlay does NOT block clicks (pointer-events: none). */

.bb-tour-arrow-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none; /* let the user still click the button */
}

/* Container for the arrow SVG */
.bb-tour-arrow-wrapper {
  position: absolute;
  width: 260px;
  height: 260px;
  pointer-events: none;
}

.bb-tour-arrow-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Filled body of the arrow: white, glowy, fades in */
.bb-tour-arrow-fill {
  fill: #ffffff;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  animation:
    bb-tour-arrow-fill-fade 0.8s ease-out forwards 0.25s,
    bb-tour-arrow-glow 2.2s ease-in-out 1.2s infinite;
}

/* Outline that actually “draws” the curve */
.bb-tour-arrow-outline {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: bb-tour-arrow-outline-draw 1.1s ease-out forwards;
}

/* Crack strokes on top of the body */
.bb-tour-arrow-crack {
  fill: none;
  stroke: rgba(0, 0, 0, 0.7);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  animation: bb-tour-arrow-crack-fade 0.7s ease-out forwards 0.8s;
}

@keyframes bb-tour-arrow-outline-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bb-tour-arrow-fill-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bb-tour-arrow-crack-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bb-tour-arrow-glow {
  0%,
  100% {
    filter: none;
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1));
  }
}




/* Arrow stroke + draw animation */
.bb-tour-arrow-path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
  animation:
    bb-tour-arrow-draw 1.1s ease-out forwards,
    bb-tour-arrow-glow 2.2s ease-in-out 1.1s infinite;
}

@keyframes bb-tour-arrow-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes bb-tour-arrow-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 18px rgba(255, 255, 255, 1));
  }
}

/* Text label near the tail of the arrow */
.bb-tour-arrow-label {
  position: absolute;
  max-width: 260px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Optional slight tweak on very small screens (you can tune later) */
@media (max-width: 640px) {
  .bb-tour-arrow-label {
    font-size: 0.8rem;
  }
}
