/* === 🌈 ESTILO GERAL E FUNDO === */
body {
  font-family: 'Fredoka', sans-serif;
  background: linear-gradient(to bottom, #e0f7ff, #fff6f8);
  padding: 20px;
  text-align: center;
  margin: 0;
}

/* === 🏷️ CABEÇALHO === */
.headline, .header {
  border: 3px solid #a84cf5;
  border-radius: 20px;
  padding: 20px;
  font-size: 1.6rem;
  color: #7e2dd2;
  font-weight: bold;
  max-width: 800px;
  margin: 0 auto 30px auto;
  background: #ffffffd9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === 🔘 INPUTS, SELECTS E BOTÕES === */
input, select, button {
  display: block;
  padding: 12px;
  margin: 12px auto;
  border-radius: 10px;
  border: 2px solid #d1d1d1;
  font-size: 1rem;
  width: 90%;
  max-width: 300px;
  transition: all 0.3s ease;
}

button:active {
  transform: scale(0.97);
}

/* === 🧑‍🎨 AVATARES === */
.avatar-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.avatar-box {
  text-align: center;
  flex: 0 1 calc(25% - 15px);
}

.avatar-box img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 0.3s;
}

.avatar-box input[type="radio"] {
  display: none;
}

.avatar-box input[type="radio"]:checked + img {
  border-color: #a84cf5;
  transform: scale(1.1);
}

.premium {
  border: 3px solid gold !important;
  box-shadow: 0 0 10px gold;
}

/* === 🐱 MASCOTE ANIMADO === */
.mascote {
  max-width: 140px;
  margin-top: 30px;
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* === 👥 CONTAINER DOS JOGADORES === */
#jogadoresContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* === 🧍‍♂️ CARTÃO DE JOGADOR === */
.jogador {
  background: #ffffffd9;
  border: 3px solid #a84cf5;
  border-radius: 20px;
  padding: 10px;
  width: 180px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.jogador.eliminado {
  opacity: 0.4;
}

.jogador.eliminado::after {
  content: "❌";
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 1.5rem;
  color: red;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

/* === 🔤 TEXTOS DE JOGADOR === */
h3 {
  margin: 8px 0 5px 0;
  font-size: 1.2rem;
  color: #7e2dd2;
}

p {
  margin: 3px 0;
  font-size: 0.9rem;
  color: #555;
}

/* === 🎯 BOTÕES COM NÚMEROS DOS JOGADORES === */
.btn-num {
  display: inline-block;
  margin: 4px 2px;
  padding: 6px 10px;
  background-color: #a84cf5;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: default;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.riscado {
  text-decoration: line-through;
  background-color: #f5c6f7;
  color: #a84cf5;
}

/* === 📦 TABULEIRO GERAL === */
#tabuleiroContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 30px auto 0 auto;
}

/* === 🔢 NÚMEROS DO TABULEIRO === */
.numero {
  width: 45px;
  height: 45px;
  background: #ffffffd9;
  border: 2px solid #a84cf5;
  border-radius: 12px;
  margin: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #7e2dd2;
  transition: all 0.3s ease;
}

.numero.sorteado {
  background: #7e2dd2;
  color: white;
  animation: destaque 0.4s ease-in-out;
}

@keyframes destaque {
  0% { transform: scale(1); background: #7e2dd2; }
  50% { transform: scale(1.3); background: #a84cf5; }
  100% { transform: scale(1); background: #7e2dd2; }
}

/* === 📱 RESPONSIVIDADE === */
@media (max-width: 768px) {
  .avatar-box {
    flex: 0 1 calc(50% - 15px);
  }

  .avatar-box img {
    width: 80px;
    height: 80px;
  }

  .jogador {
    width: 140px;
  }

  .numero {
    width: 40px;
    height: 40px;
  }
}

#vencedorContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 1s ease-in-out;
}

.vencedor-card {
  background: #fff6f8;
  border: 4px solid #a84cf5;
  border-radius: 25px;
  padding: 30px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  animation: destaqueVencedor 1s ease infinite alternate;
}

.vencedor-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 10px auto;
  border: 4px solid gold;
  box-shadow: 0 0 10px gold;
}

#numerosRestantes .btn-num {
  margin: 5px;
  font-size: 1rem;
}

@keyframes destaqueVencedor {
  0% { transform: scale(1); box-shadow: 0 0 20px #a84cf5; }
  100% { transform: scale(1.05); box-shadow: 0 0 30px #7e2dd2; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mascote-final {
  position: relative;
  margin-top: 20px;
}

.mascote-final img {
  width: 100px;
  animation: puloMascote 1s ease-in-out infinite alternate;
}

.balao-fala {
  position: absolute;
  top: -20px;
  left: 110px;
  background: #fff;
  border: 2px solid #a84cf5;
  border-radius: 15px;
  padding: 10px;
  max-width: 200px;
  font-size: 0.95rem;
  color: #5c2c90;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  animation: falaAnimada 1.5s ease-in-out infinite alternate;
}

@keyframes puloMascote {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

@keyframes falaAnimada {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}
