.main-content {
  background: rgba(8, 6, 18, 0.8);
  padding: 40px;
  overflow-y: auto;
  
  flex: 1;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  height: 100%;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.games-section-header {
  max-width: 1600px;
  margin: 0 auto 24px;
  text-align: center;
  color: #f4efff;
  padding-bottom: 10px;
  position: relative;
}

.games-section-header::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  border-radius: 999px;
  margin: 18px auto 0;
  background: linear-gradient(120deg, #ffe75e, #ff7dc2);
  box-shadow: 0 10px 25px rgba(255, 125, 194, 0.45);
}

.games-section-header .eyebrow {
  font-size: 13px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.games-section-header h1 {
  font-size: 34px;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.games-section-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  letter-spacing: 0.5px;
}

.ad_block {
  max-width: 1600px;
  margin: 0 auto 32px;
}

.ad_box {
  position: relative;
  padding: 5px 5px;
  padding-top: 10px;
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(255, 125, 194, 0.08), rgba(116, 242, 242, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 45px rgba(4, 0, 20, 0.4);
  overflow: hidden;
  text-align: center;
}

.ad_box::before,
.ad_box::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.7;
}

.ad_box::before {
  width: 220px;
  height: 220px;
  top: -80px;
  right: 40px;
  background: rgba(255, 125, 194, 0.5);
}

.ad_box::after {
  width: 260px;
  height: 260px;
  bottom: -110px;
  left: -60px;
  background: rgba(116, 242, 242, 0.4);
}

.ad_box p {
  letter-spacing: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.ad_cont {
  min-height: 252px;
  border-radius: 20px;
  background: rgba(7, 3, 20, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  box-shadow: 0 18px 35px rgba(3, 0, 14, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  perspective: 800px;
}

.game-card::before,
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.game-card::before {
  background: linear-gradient(135deg, rgba(255, 125, 194, 0.5), rgba(116, 242, 242, 0.5));
  mix-blend-mode: screen;
}

.game-card::after {
  border: 2px solid rgba(255, 255, 255, 0.45);
  filter: blur(6px);
  transform: scale(0.92);
}

.game-card:hover {
  transform: translateY(-16px) scale(1.03) rotateX(6deg);
  box-shadow: 0 35px 60px rgba(5, 0, 20, 0.6);
}

.game-card:hover::before,
.game-card:hover::after {
  opacity: 1;
}

.game-card:hover::before {
  animation: glowPulse 1.6s ease-in-out infinite alternate;
}

.game-card > * {
  position: relative;
  z-index: 1;
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  transform-origin: center;
  animation: floatImage 3s ease-in-out infinite;
  will-change: transform;
}

.game-card:hover img {
  transform: scale(1.08) rotate(1deg);
  filter: saturate(1.1) brightness(1.05);
  animation: hoverImage 1.2s ease forwards, floatImage 3s ease-in-out infinite;
}

.game-title {
  padding: 12px;
  text-align: center;
  font-weight: bold;
  font-size: 11px;
  color: #f5f1ff;
  background: rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes glowPulse {
  from {
    filter: drop-shadow(0 0 12px rgba(255, 125, 194, 0.6));
  }
  to {
    filter: drop-shadow(0 0 25px rgba(116, 242, 242, 0.8));
  }
}

@keyframes floatImage {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes hoverImage {
  0% {
    transform: scale(1.02);
  }
  60% {
    transform: scale(1.1) rotate(0.8deg);
  }
  100% {
    transform: scale(1.08) rotate(1deg);
  }
}


@media (max-width: 1400px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media (max-width: 768px) {
  .main-content {
    width: 100%;
    padding: 24px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .games-section-header h1{
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 15px;
  }

  .games-grid {
    gap: 10px;
  }

  .game-title {
    font-size: 10px;
    padding: 8px;
  }
}

.main-content::-webkit-scrollbar {
  width: 8px;
}

.main-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.main-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.site-intro {
  margin-top: 40px;
  padding: 40px 30px 50px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-content {
  max-width: 960px;
  margin: 0 auto;
  color: #f1eaff;
  line-height: 1.8;
}

.intro-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #ff9ad6;
}

.intro-content h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #b8afff;
  letter-spacing: 0.5px;
}

.intro-content p {
  margin-bottom: 16px;
  text-indent: 2em;
}

.site-footer {
  margin-top: 40px;
  padding: 26px 20px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 18px;
  color: #f8f6ff;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
}

.footer-links {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: #ffe5ff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.75;
}

.footer-links .divider {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .site-intro {
    padding: 30px 20px 40px;
  }

  .intro-content h2 {
    font-size: 22px;
  }
}