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

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

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

.table {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

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

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

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

.prize-highlight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

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

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

.tournament-status {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 15px;
  font-size: 0.813rem;
  font-weight: 600;
}

.status-live {
  background-color: #28a745;
  color: white;
}

.status-upcoming {
  background-color: #ffc107;
  color: #000;
}

.status-ended {
  background-color: #6c757d;
  color: white;
}

.info-box {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

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