body {
  margin: 0;
  background-color: #0A0A0F;
  font-family: 'Poppins', sans-serif;
  color: white;
}

.games-section {
  position: relative;
  padding: 100px 20px;
  background: linear-gradient(to bottom, #0A0A0F, #050508);
  overflow: hidden;
}

.background-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #FFD700 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.05;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 0.6s ease forwards;
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 999px;
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 10px;
}

.section-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

/* Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* Card */
.game-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0));
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.5);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #FF1744;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}

.game-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
}

.icon-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  color: #FFD700;
  transition: opacity 0.3s ease;
}

.game-card:hover .icon-overlay {
  opacity: 1;
}

.game-info {
  padding: 24px;
}

.category {
  color: rgba(255, 215, 0, 0.7);
  font-size: 0.9rem;
}

.game-info h3 {
  font-size: 1.25rem;
  margin: 8px 0 16px;
}

.gold-button {
  width: 100%;
  background: linear-gradient(to right, #FFD700, #FFA500);
  color: black;
  border: none;
  padding: 12px 0;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gold-button:hover {
  background: linear-gradient(to right, #FFE55C, #FFD700);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* View All */
.view-all {
  text-align: center;
  margin-top: 60px;
}

.outline-button {
  border: 2px solid #FFD700;
  color: #FFD700;
  background: transparent;
  padding: 16px 40px;
  font-size: 1.125rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.outline-button:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* Animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
