/* ========================================
   POPUP GAIN
   ======================================== */

/* Overlay de la popup */
.win-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.win-popup-overlay.active {
  display: flex;
}

/* Popup principale */
.win-popup {
  background: linear-gradient(135deg, #1a1f2e 0%, #2d1f3d 100%);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 215, 0, 0.3);
  position: relative;
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Icône du résultat */
.win-popup__icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: bounce 0.6s ease-in-out;
}

/* Titre */
.win-popup__title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.win-popup__title--lose {
  background: linear-gradient(135deg, #ef4444 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.win-popup__title--push {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Montant gagné */
.win-popup__amount {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 1.5rem 0;
  font-family: 'Orbitron', sans-serif;
  color: #10b981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  animation: scaleIn 0.6s ease 0.3s both;
}

.win-popup__amount--lose {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.win-popup__amount--push {
  color: #64748b;
  text-shadow: 0 0 20px rgba(100, 116, 139, 0.5);
}

/* Détails */
.win-popup__details {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.win-popup__detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.75rem 0;
  font-size: 1rem;
  color: #cbd5e1;
}

.win-popup__detail-label {
  font-weight: 600;
  color: #94a3b8;
}

.win-popup__detail-value {
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
}

/* Message */
.win-popup__message {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin: 1rem 0;
  line-height: 1.5;
}

/* Bouton */
.win-popup__button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  font-family: 'Orbitron', sans-serif;
}

.win-popup__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.win-popup__button:active {
  transform: translateY(0);
}

/* Confettis */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffd700;
  animation: confettiFall 3s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}