/* 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 {
  background: var(--dark-alt);
  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.02);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}

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

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

.badge-tournament {
  background: var(--gradient-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
}

.tournament-prize {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.highlight-box {
  background: var(--gradient-dark);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}