/* === FIRST WIN MODAL - CELEBRAÇÃO DE PRIMEIRA VITÓRIA === */

.first-win-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.first-win-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.first-win-container {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: #0a0a0a;
  border: 2px solid var(--cor-primaria);
  border-radius: var(--radius-lg);
  padding: var(--espaco-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #e5e5e5;
  text-align: center;
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.first-win-close {
  position: absolute;
  top: var(--espaco-sm);
  right: var(--espaco-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  color: #999;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.first-win-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #666;
  color: #fff;
  transform: scale(1.1);
}

.first-win-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: var(--espaco-md);
}

.first-win-title {
  font-size: var(--texto-lg);
  font-weight: 700;
  margin-bottom: var(--espaco-md);
  line-height: 1.3;
}

.first-win-result {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #4ade80;
  border-radius: var(--radius-md);
  padding: var(--espaco-sm) var(--espaco-md);
  margin-bottom: var(--espaco-md);
  display: flex;
  flex-direction: column;
  gap: var(--espaco-xs);
}

.result-label {
  font-size: var(--texto-xs);
  color: #999;
  text-transform: uppercase;
}

.result-value {
  font-size: var(--texto-xl);
  font-weight: 700;
  color: #4ade80;
}

.first-win-amount {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--cor-primaria);
  border-radius: var(--radius-md);
  padding: var(--espaco-md);
  margin-bottom: var(--espaco-md);
  display: flex;
  flex-direction: column;
  gap: var(--espaco-xs);
}

.amount-label {
  font-size: var(--texto-xs);
  color: #999;
  text-transform: uppercase;
}

.amount-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cor-secundaria);
  text-shadow: 0 2px 8px rgba(var(--cor-secundaria-rgb, 255, 215, 0), 0.4);
}

.first-win-message {
  font-size: var(--texto-sm);
  line-height: 1.5;
  margin-bottom: var(--espaco-lg);
  color: #b0b0b0;
}

.first-win-message strong {
  color: var(--cor-primaria);
  font-weight: 600;
}

.first-win-actions {
  display: flex;
  flex-direction: column;
  gap: var(--espaco-sm);
}

.btn-activate-real {
  display: block;
  width: 100%;
  background: var(--cor-primaria);
  color: white;
  text-decoration: none;
  padding: var(--espaco-md) var(--espaco-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--texto-base);
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
}

.btn-activate-real:hover {
  background: var(--cor-primaria-clara);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.btn-continue-demo {
  width: 100%;
  background: transparent;
  color: #999;
  border: 1px solid #333;
  padding: var(--espaco-sm) var(--espaco-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--texto-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-continue-demo:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #555;
  color: #ccc;
}

@media (max-width: 480px) {
  .first-win-container {
    max-width: 95%;
    padding: var(--espaco-lg);
  }

  .first-win-icon {
    font-size: 56px;
  }

  .first-win-title {
    font-size: var(--texto-base);
  }

  .amount-value {
    font-size: 1.75rem;
  }

  .first-win-message {
    font-size: var(--texto-xs);
  }

  .btn-activate-real {
    font-size: var(--texto-sm);
    padding: var(--espaco-sm) var(--espaco-md);
  }
}
