/* Zwevende scroll-CTA (mobiel) — o.a. homepage, overzicht, kermis, nieuws */
.home-scroll-cta {
  position: fixed;
  z-index: 21150;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: min(420px, 100vw);
  margin: 0 auto;
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.3s ease,
    transform 0.34s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform, opacity;
  padding: 2px;
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(255, 122, 26, 0.42),
    rgba(139, 43, 184, 0.32),
    rgba(255, 255, 255, 0.14)
  );
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 36px rgba(0, 0, 0, 0.48);
}

.home-scroll-cta.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes home-scroll-cta-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.home-scroll-cta.is-in .home-scroll-cta__btn {
  animation: home-scroll-cta-bob 2.5s ease-in-out infinite;
}

.home-scroll-cta.is-out {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
}

.home-scroll-cta__btn {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 10px 14px;
  text-decoration: none;
  text-align: left;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, rgba(32, 12, 38, 0.98), rgba(18, 4, 28, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 20px rgba(0, 0, 0, 0.35);
}

.home-scroll-cta__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.home-scroll-cta__hint {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: none;
  letter-spacing: 0.02em;
}

.home-scroll-cta__btn:hover {
  border-color: rgba(255, 186, 120, 0.55);
}

.home-scroll-cta__btn:focus-visible {
  outline: 2px solid var(--brand-2, #e55ddc);
  outline-offset: 2px;
}

.home-scroll-cta__close {
  flex: 0 0 40px;
  width: 40px;
  min-height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.home-scroll-cta__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 1099px) {
  .home-scroll-cta {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 769px) {
  .home-scroll-cta {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-scroll-cta {
    transition: opacity 0.2s ease;
  }
  .home-scroll-cta,
  .home-scroll-cta.is-in,
  .home-scroll-cta.is-out {
    transform: none;
  }
  .home-scroll-cta.is-in .home-scroll-cta__btn {
    animation: none;
  }
}
