/* Защита от горизонтального скролла */
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: none !important;
}

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

.card {
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

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

.game-category {
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  background: var(--gradient-1);
  color: white;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.game-card {
  position: relative;
  overflow: hidden;
}

.game-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1;
}

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

.table thead {
  background: var(--gradient-1);
  color: white;
  border: none;
}

.table thead th {
  border: none;
  padding: 1rem;
  font-weight: 600;
}

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

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

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

.provider-logo {
  width: 120px;
  height: 60px;
  background: var(--light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.1);
}

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

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

.cta-banner {
  background: var(--gradient-3);
  color: white;
  padding: 3rem 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 3rem 0;
}

.btn-primary {
  background-color: linear-gradient(135deg, #00D9FF 0%, #0099FF 100%);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 2rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: linear-gradient(135deg, #00D9FF 0%, #0099FF 100%);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.game-filter {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.1);
}

.filter-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 2rem;
  margin: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .cta-banner {
    padding: 2rem 1rem;
  }
}