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

/* Адаптация Bootstrap компонентов к темной теме */
.bg-light {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}

.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: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.table-responsive {
  margin-bottom: 2rem;
}

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

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

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

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

.badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.tournament-prize {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.list-group-item {
  background-color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 1rem 1.25rem;
}

.list-group-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.highlight-box {
  background: var(--gradient-accent);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .tournament-prize {
    font-size: 1.5rem;
  }
  
  .table {
    font-size: 0.9rem;
  }
}