/* Tirage offre fidélité (≥10 artefacts) — design system D.Majin */

.ll-popup {
  position: fixed;
  inset: 0;
  z-index: 100610;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 1rem max(12px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 245, 212, 0.12), transparent 55%),
    rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease, ease), visibility 0.35s var(--ease, ease);
}

.ll-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ll-popup__panel {
  position: relative;
  width: min(22rem, 92vw);
  max-height: min(92vh, 44rem);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.32);
  background:
    linear-gradient(165deg, rgba(18, 24, 34, 0.98) 0%, rgba(10, 12, 16, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 245, 212, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(0, 245, 212, 0.14);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.ll-popup.is-open .ll-popup__panel {
  transform: scale(1);
  opacity: 1;
}

.ll-popup__kicker {
  margin: 1.15rem 1.25rem 0.3rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise, #00f5d4);
}

.ll-popup__title {
  margin: 0 1.25rem 0.75rem;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(1.55rem, 5vw, 2rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--blanc, #f8f9fa);
}

.ll-popup__text {
  margin: 0 1.25rem 0.85rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(248, 249, 250, 0.92);
}

/* Fenêtre de tirage — les images défilent clairement */
.ll-popup__reel {
  --ll-slot: 11.5rem;
  position: relative;
  margin: 0 1.15rem 0.75rem;
  height: var(--ll-slot);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 245, 212, 0.12), transparent 62%),
    var(--noir-2, #121214);
  box-shadow: 0 0 22px rgba(0, 245, 212, 0.12);
}

.ll-popup__reel::before,
.ll-popup__reel::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 28%;
  pointer-events: none;
}

.ll-popup__reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(8, 10, 14, 0.92), transparent);
}

.ll-popup__reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(8, 10, 14, 0.92), transparent);
}

.ll-popup__reel-frame {
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  top: 50%;
  height: calc(var(--ll-slot) - 1.4rem);
  margin-top: calc((var(--ll-slot) - 1.4rem) / -2);
  z-index: 3;
  border-radius: 8px;
  border: 2px solid rgba(0, 245, 212, 0.65);
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.25);
  pointer-events: none;
}

.ll-popup__reel.is-spinning .ll-popup__reel-frame {
  border-color: var(--jaune, #fee440);
  box-shadow: 0 0 20px rgba(254, 228, 64, 0.35);
}

.ll-popup__reel.is-win {
  box-shadow:
    0 0 0 1px rgba(254, 228, 64, 0.35),
    0 0 28px rgba(0, 245, 212, 0.35),
    0 0 40px rgba(254, 228, 64, 0.2);
}

.ll-popup__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.12s linear;
}

.ll-popup__track.is-fast {
  transition: transform 0.08s linear;
}

.ll-popup__track.is-settle {
  transition: transform 0.45s cubic-bezier(0.18, 0.9, 0.28, 1);
}

.ll-popup__slot {
  height: var(--ll-slot);
  flex: 0 0 var(--ll-slot);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem 0.85rem;
  box-sizing: border-box;
}

.ll-popup__slot img {
  width: 68%;
  max-height: 7.2rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.ll-popup__slot-name {
  margin: 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--noir, #0a0a0b);
  background: linear-gradient(135deg, var(--turquoise, #00f5d4), #00c9b7);
}

.ll-popup__status {
  margin: 0 1.25rem 0.75rem;
  min-height: 1.25rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--jaune, #fee440);
  text-align: center;
}

.ll-popup__hint {
  margin: 0 1.25rem 1.1rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--gris, #6b7280);
}

.ll-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 1.25rem 1.25rem;
}

.ll-popup__actions .btn {
  width: 100%;
}

.ll-popup__actions .btn[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.ll-popup__actions a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.ll-popup .hidden {
  display: none !important;
}

.ll-em {
  color: var(--turquoise, #00f5d4);
  font-weight: 700;
}

.ll-popup__howto .ll-popup__title {
  margin-bottom: 0.55rem;
}

.ll-popup__steps {
  list-style: none;
  margin: 0 1.15rem 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ll-popup__steps li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 212, 0.18);
  background: rgba(0, 245, 212, 0.05);
}

.ll-step-num {
  flex: 0 0 1.55rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--noir, #0a0a0b);
  background: linear-gradient(135deg, var(--turquoise, #00f5d4), #00c9b7);
}

.ll-step-body {
  flex: 1;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(248, 249, 250, 0.94);
}

.ll-popup__howto-note {
  margin: 0 1.25rem 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(254, 228, 64, 0.28);
  background: rgba(254, 228, 64, 0.08);
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(248, 249, 250, 0.92);
}

body.ll-popup-open {
  overflow: hidden;
}

@media (max-width: 420px) {
  .ll-popup__reel {
    --ll-slot: 10.5rem;
  }
}
