/* styles.css */
/* Fondo de la página: imagen tipo web (reemplaza por la tuya si quieres) */
body {
  background-image: url('./background.webp');
  background-size: cover;
  background-position: center 20%;
  min-height: 100vh;
  color: #111;
}

/* Suaviza la tarjeta de la ruleta */
.wheel-card {
  background-color: rgba(255, 255, 255, 0);
  border-radius: 12px;
  overflow: visible;
  color: #ffffff;
}

.winners-card {
  background-color: rgba(255,255,255,0.05);
  color:#ffffff;
  border-radius: 12px;
  overflow: visible;
}

/* Puntero */
.pointer {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 28px solid #9d0054;
  z-index: 20;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

/* Imagen central estilo */
.center-img {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 15;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  border: 6px solid rgba(255,255,255,0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* Lista de ganadores */
.winners-list {
  max-height: 560px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px,1fr));
  gap: 8px;
}

.winner-badge {
  padding: 8px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 3px 8px rgba(0,0,0,.15);
}

/* Canvas responsivo: contenedor lo controla */
canvas {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  background: transparent;
}

/* Pequeños estilos para log */
#logArea .alert {
  margin-bottom: 0.5rem;
}

#spinBtn {  
  background-color: #840051;
  border-color: #65003e;
}

/* Agrega esto al final del archivo */

#closeModalBtn {
  background-color: #4a002d;
  border-color: #9d0061;
  color: #ffffff;
}

/* Modal de ganador */
.winner-modal-content {
  background: linear-gradient(135deg, 
    rgba(157, 0, 84, 0.95) 0%, 
    rgba(76, 0, 42, 0.95) 100%);
  border: 8px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

/* Confeti animado */
.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0.9;
  animation: confetti-fall linear forwards;
}

/* Serpentinas largas */
.serpentine {
  position: absolute;
  width: 4px;
  height: 100px;
  opacity: 0.8;
  animation: serpentine-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(1000px) rotate(720deg);
    opacity: 0;
  }
}

@keyframes serpentine-fall {
  0% {
    transform: translateY(-200px) translateX(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(1000px) translateX(200px) rotate(360deg);
    opacity: 0;
  }
}

/* Animación del número ganador */
@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
  50% {
    transform: scale(1.1);
    text-shadow: 0 0 50px rgba(255, 215, 0, 1);
  }
}

.winner-number {
  animation: pulse-glow 1.5s infinite ease-in-out;
}
