.fsp {
  display: flex;
  flex-direction: column;
}

.fsp__head {
  text-align: center;
  margin-bottom: 0.5rem;
}

.fsp__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.fsp__pulse {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
  background: var(--brand);
  animation: fsp-pulse 2s ease-out infinite;
}

@keyframes fsp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.7);
  }
  70% {
    box-shadow: 0 0 0 0.5rem rgba(var(--brand-rgb), 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0);
  }
}

.fsp__stage {
  position: relative;
  height: 27rem;
  overflow: hidden;
}

.fsp__stage::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 22rem;
  height: 3rem;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.fsp__slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17rem;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  z-index: 1;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease,
    filter 0.55s ease;
}

.fsp__slot[data-pos='front'] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 4;
  pointer-events: auto;
  filter: none;
}

.fsp__slot[data-pos='next'] {
  transform: translate(calc(-50% + 7.5rem), -50%) scale(0.88);
  opacity: 0.45;
  z-index: 2;
  filter: blur(2px) saturate(0.8);
}

.fsp__slot[data-pos='prev'] {
  transform: translate(calc(-50% - 7.5rem), -50%) scale(0.88);
  opacity: 0.45;
  z-index: 2;
  filter: blur(2px) saturate(0.8);
}

.fsp__slot[data-pos='front'] .pkg-card {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 34px rgba(var(--brand-rgb), 0.2);
  border-color: rgba(var(--brand-rgb), 0.45);
}

.fsp__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 0.5rem;
}

.fsp__nav {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fsp__nav:hover {
  background: rgba(var(--brand-rgb), 0.2);
  border-color: rgba(var(--brand-rgb), 0.6);
}

.fsp__nav:active {
  transform: scale(0.92);
}

.fsp__nav svg {
  width: 1.0625rem;
  height: 1.0625rem;
}

.fsp__progress {
  position: relative;
  width: 9rem;
  height: 0.1875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.fsp__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

.fsp__counter {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgb(var(--muted-foreground));
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .fsp__stage {
    height: 23rem;
  }

  .fsp__slot {
    width: 12.5rem;
  }

  .fsp__slot[data-pos='next'] {
    transform: translate(calc(-50% + 5.25rem), -50%) scale(0.86);
  }

  .fsp__slot[data-pos='prev'] {
    transform: translate(calc(-50% - 5.25rem), -50%) scale(0.86);
  }

  .fsp__progress {
    width: 6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fsp__slot {
    transition: none;
  }

  .fsp__pulse {
    animation: none;
  }
}
