/* Защита от горизонтального скролла */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Адаптация под тему (светлая) */
.bg-dark {
  background: linear-gradient(135deg, var(--dark), var(--dark-card)) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.bg-light {
  background-color: var(--light-card) !important;
  color: var(--text-dark) !important;
  border: 1px solid rgba(0,0,0,0.1);
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
}

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

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255,255,255,0.02);
}

.tournament-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
}

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

.prize-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-accent);
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.tournament-type {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.leaderboard-position {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-weight: bold;
  margin-right: 1rem;
}

.highlight-box {
  background: var(--gradient-accent);
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--primary);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 1rem;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .tournament-card {
    margin-bottom: 1.5rem;
  }
  
  .prize-badge {
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
  }
}