@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  background: url('img/bannerDrafto.png') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}


.ranking-container::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}


.glass-effect {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.6);
  animation: fadeInUp 0.8s ease;
  max-width: 500px;
  width: 90%;
  margin: auto;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.yellow-text {
  color: #ffc107;
}

/* Tabla con scroll por si hay muchos jugadores */
.ranking-table {
  max-height: 300px;
  overflow-y: auto;
  display: block;
}

.ranking-table td,
.ranking-table th {
  font-size: 1.2rem;
  padding: 1rem;
  white-space: nowrap;
}

.ranking-table tbody tr td:first-child {
  font-size: 1.5rem;
}

/* Hover suave */
.ranking-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}


.top-1 {
  background-color: rgba(255, 215, 0, 0.1);
  font-weight: 600;
}
.top-2 {
  background-color: rgba(192, 192, 192, 0.1);
}
.top-3 {
  background-color: rgba(205, 127, 50, 0.1);
}


.btn-warning {
  font-weight: 600;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
  transition: all 0.2s ease;
}

.btn-warning:hover {
  background-color: #e0a800;
  transform: scale(1.05);
}

body {
    background: linear-gradient(to bottom, #8e2de2, #000000);
    color: white;
    padding: 50px 20px;
}

/* Estilos para avatares en el ranking */
.ranking-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffc107;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.ranking-table td {
  vertical-align: middle;
}
