/* ================================
   VRAGEN & ANIMATIES
================================ */

.speelOptieKnop {
  margin: 0.3rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

/* BLUR */
#animatieZoneBlur img {
  transition: filter 0.4s ease;
  filter: blur(10px);
}

.blur-10 { filter: blur(10px); }
.blur-8  { filter: blur(8px); }
.blur-6  { filter: blur(6px); }
.blur-4  { filter: blur(4px); }
.blur-2  { filter: blur(2px); }
.blur-0  { filter: blur(0px); }

/* MOTION */
#animatieZoneMotion {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

#motionStage {
  position: relative;
  width: 100%;
  height: 100%;
}

#motionFoto {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 2s ease-out;
}

/* FADE */
#animatieZoneFade {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#fadeImage {
  opacity: 0;
  transition: opacity 1.5s ease;
}

#fadeImage.visible {
  opacity: 1;
}

/* SLIDE */
#animatieZoneSlide {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  z-index: 50;
}

#slideImg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PIXEL */
#animatieZonePixel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: var(--foto-ratio, 75%);
}

#pixelFoto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#pixelGrid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.pixelBlock {
  position: absolute;
  background: white;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.pixelBlock.hidden {
  opacity: 0;
}

/* SPOTLIGHT */
#animatieZoneSpotlight {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding-bottom: var(--foto-ratio, 56.25%);
}

#spotlightStage,
#spotlightFoto,
#spotlightMask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#spotlightMask {
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    transparent 0%,
    transparent var(--radius, 80px),
    rgba(0,0,0,0.85) calc(var(--radius, 80px) + 1px)
  );
}

/* PUZZEL */
#animPuzzel {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.puzzelStuk {
  position: absolute;
  width: calc(100% / var(--puzzel-size));
  height: calc(100% / var(--puzzel-size));
  transition: transform 0.9s ease, opacity 0.2s ease;
  transform-style: preserve-3d;
  opacity: 0;
}

.puzzelStuk.omgedraaid {
  opacity: 1;
  transform: rotateY(180deg);
}

.puzzelAchterkant {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background-color: #1f3a5f;
}

.puzzelVoorkant {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

/* RANGLIJST */
.ranglijst-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.ranglijst-popup.actief {
  display: flex;
}
