/* Protezione da scroll orizzontale */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Adattamento tema scuro */
.bg-light {
  background-color: var(--dark-alt) !important;
  color: var(--text) !important;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.table {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.table-dark {
  --bs-table-bg: var(--dark-alt);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.05);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

.table thead {
  background: var(--dark-alt);
  border-bottom: 2px solid var(--primary);
}

.badge-tournament {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.tournament-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-live {
  background: #28a745;
  color: white;
}

.status-upcoming {
  background: var(--accent);
  color: white;
}

.prize-highlight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.tournament-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
  border-left: 4px solid var(--primary);
}

.icon-trophy {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.leaderboard-position {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
}

.requirement-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}