
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif;
  background-color: #0f0f0f;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}


.main-content {
  padding: 30px 0;
  padding-bottom: 0;
  
}


.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 15px;
  padding: 10px 0;
}


.game-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #1a1a1a;
  aspect-ratio: 1 / 1;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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


.game-card-large {
  grid-column: span 2;
  grid-row: span 2;
}


.game-card-special {
  grid-column: span 2;
  grid-row: span 1;
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  padding: 20px;
  position: relative;
}

.game-card-special img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.3;
  filter: blur(2px);
}

.game-info {
  position: relative;
  z-index: 2;
  color: #333;
}

.game-info-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #666;
}

.game-info-count {
  font-size: 11px;
  color: #999;
}


.game-card-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.game-card-dark .game-special-content {
  width: 100%;
}

.game-special-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
}


.game-card-teal {
  background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
}

.game-card-teal .game-special-title {
  font-size: 16px;
  margin-bottom: 5px;
}

.game-card-teal .game-info-count {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}


.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.game-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}


@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
  }

  .game-card-special {
    padding: 15px;
  }

  .game-special-title {
    font-size: 16px;
  }
}

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

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }

  .game-card {
    border-radius: 8px;
  }

  .game-card-special {
    padding: 12px;
  }

  .game-special-title {
    font-size: 14px;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
  animation: fadeIn 0.5s ease forwards;
}


.game-card:nth-child(1) {
  animation-delay: 0.05s;
}
.game-card:nth-child(2) {
  animation-delay: 0.1s;
}
.game-card:nth-child(3) {
  animation-delay: 0.15s;
}
.game-card:nth-child(4) {
  animation-delay: 0.2s;
}
.game-card:nth-child(5) {
  animation-delay: 0.25s;
}

@media screen and (min-width: 769px) {
  
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: #1a1a1a;
  }

  ::-webkit-scrollbar-thumb {
    background: #4fc3f7;
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #29b6f6;
  }
}
