/*
 * Full Sequence Button Styling
 * Adds an enchanted presentation to the launcher control on the play overlay.
 */

.full-sequence-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fefcff;
  background: rgba(18, 22, 40, 0.92);
  box-shadow: 0 12px 32px rgba(60, 99, 255, 0.32), 0 8px 24px rgba(7, 10, 28, 0.55);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.19, 1, 0.32, 1), box-shadow 0.45s ease, filter 0.45s ease;
  outline: none;
  min-width: 210px;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.full-sequence-btn::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.24));
  z-index: -1;
}

.full-sequence-btn__glow {
  position: absolute;
  inset: -140%;
  background: conic-gradient(from 0deg, rgba(102, 126, 234, 0.0) 0deg, rgba(102, 126, 234, 0.3) 120deg, rgba(118, 75, 162, 0.4) 180deg, rgba(255, 206, 84, 0.4) 240deg, rgba(102, 126, 234, 0.0) 360deg);
  filter: blur(42px);
  opacity: 0.9;
  animation: full-sequence-aurora 6.5s linear infinite;
  z-index: -2;
}

.full-sequence-btn__sparkles {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  mix-blend-mode: screen;
}

.full-sequence-btn__sparkles span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.1) 65%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.4);
  animation: full-sequence-sparkle 2.6s ease-in-out infinite;
}

.full-sequence-btn__sparkles span:nth-child(2) {
  animation-delay: 0.8s;
}

.full-sequence-btn__sparkles span:nth-child(3) {
  animation-delay: 1.6s;
}

.full-sequence-btn__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.full-sequence-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.45), 0 12px 26px rgba(7, 10, 28, 0.65);
  filter: drop-shadow(0 0 22px rgba(255, 235, 173, 0.35));
}

.full-sequence-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 8px 16px rgba(46, 55, 112, 0.4);
}

.full-sequence-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45), 0 0 0 6px rgba(102, 126, 234, 0.55), 0 16px 40px rgba(102, 126, 234, 0.35);
}

@keyframes full-sequence-aurora {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes full-sequence-sparkle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  35% {
    opacity: 0.85;
    transform: translate(-48%, -60%) scale(1);
  }
  70% {
    opacity: 0.35;
    transform: translate(-52%, -40%) scale(1.45);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(1.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .full-sequence-btn,
  .full-sequence-btn__glow,
  .full-sequence-btn__sparkles span {
    animation: none !important;
    transition: none !important;
  }
  .full-sequence-btn {
    filter: none;
  }
}
