/* 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-primary) !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-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

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

.table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-bottom: 2px solid var(--accent);
  color: var(--text-primary);
}

.table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.tournament-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-live {
  background: linear-gradient(135deg, #ff4757, #ff6348);
  color: white;
}

.badge-upcoming {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.badge-slots {
  background: linear-gradient(135deg, #ffd32a, #ff9f1a);
  color: var(--dark);
}

.prize-highlight {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.leaderboard-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  margin-right: 1rem;
}

.position-1 {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: var(--dark);
}

.position-2 {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: var(--dark);
}

.position-3 {
  background: linear-gradient(135deg, #cd7f32, #e89a5d);
  color: white;
}

.position-other {
  background: var(--dark-card);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tournament-card {
  position: relative;
  overflow: hidden;
}

.tournament-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.info-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 8px 8px 0;
}