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

/* Адаптация к темной теме */
.bg-light {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-light) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Таблицы */
.table {
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.1);
}

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

.table thead {
  background: linear-gradient(135deg, var(--deep-violet), var(--rich-purple));
  border-bottom: 2px solid var(--electric-cyan);
  color: var(--text-light);
}

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

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

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

.tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.tournament-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--electric-cyan), var(--neon-pink));
  color: var(--midnight);
}

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

/* Leaderboard стили */
.leaderboard-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-violet), var(--rich-purple));
  font-weight: 700;
  color: var(--text-light);
}

.top-position {
  background: linear-gradient(135deg, var(--accent-orange), var(--neon-pink));
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

/* Timeline */
.timeline-step {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric-cyan), var(--neon-pink));
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.timeline-step::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 25px;
  width: 2px;
  height: calc(100% + 10px);
  background: linear-gradient(180deg, var(--electric-cyan), transparent);
}

.timeline-step:last-child::after {
  display: none;
}

/* CTA кнопки */
.btn-primary {
  background: linear-gradient(135deg, var(--electric-cyan), var(--neon-pink));
  border: none;
  color: var(--midnight);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
  color: var(--midnight);
}

/* Списки преимуществ */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '✓';
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 0.75rem;
  background: linear-gradient(135deg, var(--electric-cyan), var(--neon-pink));
  border-radius: 50%;
  text-align: center;
  line-height: 25px;
  color: var(--midnight);
  font-weight: 700;
}