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

/* Адаптация к теме сайта */
.bg-light {
  background-color: var(--dark-alt) !important;
  color: var(--text-primary) !important;
}

.bg-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

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

.card-title {
  color: var(--accent) !important;
  font-weight: 600;
}

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

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

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

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

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.game-category {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  background: var(--dark-alt);
  border-left: 4px solid var(--accent);
}

.feature-badge {
  display: inline-block;
  padding: 5px 15px;
  background: var(--gradient-accent);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 10px;
}

.stats-box {
  text-align: center;
  padding: 25px;
  background: var(--dark);
  border-radius: 10px;
  border: 2px solid var(--accent);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.list-custom {
  list-style: none;
  padding-left: 0;
}

.list-custom li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.list-custom li:before {
  content: "▶";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}