/* Balcony platform scroll cue - redesigned royal badge
   Ensures crystal-clear visibility and elegance over all backgrounds (light marble or dusk).
   Interactive, clickable, and floating with a gentle pulse.
*/

.scroll-cue {
  position: absolute;
  z-index: 50;
  left: 50%;
  top: calc(min(100%, 100vh) - var(--scroll-cue-gap, 30px));
  top: calc(min(100%, 100svh) - var(--scroll-cue-gap, 30px));
  transform: translate(-50%, -100%);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 22px 9px 24px;
  background: linear-gradient(135deg, rgba(86, 15, 49, 0.92) 0%, rgba(50, 7, 28, 0.96) 100%);
  color: #ffd88a;
  border: 1.5px solid rgba(212, 175, 55, 0.9);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  animation: scroll-pill-float 2.4s ease-in-out infinite;
}

.scroll-cue.is-shown {
  opacity: 1;
}

.scroll-cue.is-gone {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue:hover {
  transform: translate(-50%, -100%) scale(1.05);
  background: linear-gradient(135deg, rgba(110, 20, 63, 0.96) 0%, rgba(65, 9, 36, 0.98) 100%);
  border-color: #ffd700;
  color: #ffffff;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.scroll-cue:active {
  transform: translate(-50%, -100%) scale(0.98);
}

.scroll-cue__text {
  font-family: var(--font-sans, "Sora", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.scroll-cue__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  animation: scroll-arrow-nudge 1.6s ease-in-out infinite;
}

@keyframes scroll-pill-float {
  0%, 100% {
    transform: translate(-50%, -100%);
  }
  50% {
    transform: translate(-50%, calc(-100% - 4px));
  }
}

@keyframes scroll-arrow-nudge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue,
  .scroll-cue__arrow {
    animation: none;
  }
}
