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

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

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

.card {
  transition: var(--transition);
  border-radius: 12px;
  overflow: hidden;
}

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

.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table {
  color: var(--dark);
  border-color: rgba(0,0,0,0.1);
  margin-bottom: 0;
}

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

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
}

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

.game-category-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  background: var(--gradient-1);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.btn-primary {
  background: var(--gradient-1);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 25px;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--gray-dark);
}

h2 {
  color: var(--primary);
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 2px;
}

h3 {
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.stats-box {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  background: var(--light);
  border: 2px solid var(--primary);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-label {
  font-size: 0.95rem;
  color: var(--gray-dark);
  font-weight: 500;
}