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

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

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

.table {
  color: var(--text-primary);
  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);
  --bs-table-color: var(--light);
}

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

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

.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-glow);
}

.tournament-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

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

.tournament-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-live {
  background: linear-gradient(135deg, #ff4444, #cc0000);
  color: white;
  animation: pulse 2s infinite;
}

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

.status-ended {
  background: rgba(255, 255, 255, 0.2);
  color: var(--light);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.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, #FFA500);
  color: #000;
}

.position-2 {
  background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
  color: #000;
}

.position-3 {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
  color: #fff;
}

.position-other {
  background: rgba(255, 255, 255, 0.1);
  color: var(--light);
}

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

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

.cta-tournament {
  background: var(--gradient-primary);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.cta-tournament:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

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