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

/* Адаптация к темной теме */
.bg-light {
  background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-surface) 100%) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.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-surface);
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
  --bs-table-color: var(--text-primary);
}

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

.table tbody tr {
  transition: background-color 0.3s ease;
}

.table tbody tr:hover {
  background-color: rgba(255, 111, 0, 0.1) !important;
}

/* Карточки турниров */
.tournament-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 111, 0, 0.2);
}

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

.tournament-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gradient-primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

/* Временная шкала */
.timeline-date {
  display: inline-block;
  background: var(--dark-card);
  padding: 8px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-flame);
  margin-bottom: 10px;
}

/* Таблица лидеров */
.leaderboard-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  background: var(--dark-surface);
}

.leaderboard-position.top-3 {
  background: var(--gradient-primary);
  color: white;
}

/* Категории игр */
.game-category {
  background: var(--dark-surface);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--secondary-electric);
  transition: all 0.3s ease;
}

.game-category:hover {
  border-left-color: var(--primary-flame);
  background: var(--dark-card);
}

/* Прогресс-бар */
.tournament-progress {
  height: 8px;
  background: var(--dark-surface);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.tournament-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Информационные боксы */
.info-highlight {
  background: rgba(255, 111, 0, 0.1);
  border-left: 4px solid var(--primary-flame);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Кнопки */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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