body {
  background: #0d0d0d;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* Header */
header {
  text-align: center;
  padding: 40px 20px;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.tabs a {
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.tabs a.active {
  background: linear-gradient(90deg, #ff4655, #ff8c00);
  box-shadow: 0 0 12px rgba(255, 70, 85, 0.6);
}
.tabs a:hover {
  transform: scale(1.1);
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px 40px;
  justify-items: center;
}

/* Game card */
.game-card {
  background: #181818;
  border-radius: 15px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  text-align: center;
  transition: 0.4s;
}
.game-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 25px rgba(255,70,85,0.3);
}
.game-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Countdown */
.countdown {
  margin-top: 6px;
  background: rgba(255,70,85,0.2);
  color: #ff8c00;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  min-width: 120px;
}

/* Claim button */
.claim-btn {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(90deg, #ff4655, #ff8c00);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.claim-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,70,85,0.6);
}

/* Animations */
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.page-exit { animation: fadeOut 0.4s ease forwards; }
@keyframes fadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}



/* genral main temp */
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  background: #000;
}
header h1 {
  font-size: 1.8rem;
}
nav {
  margin-top: 10px;
}
nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
}
nav a.active {
  color: red;
  font-weight: bold;
}

/* Container grid */
.games-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* always 3 per row on desktop */
  gap: 1.5rem;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

/* Game Card */
.game-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-align: center;
  transition: transform 0.2s;
  min-height: 360px;
}

.game-card:hover {
  transform: translateY(-5px);
}

/* Image */
.game-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Title */
.game-card h2 {
  font-size: 1.3rem;
  margin: 8px 0;
  color: #fff;
}

/* Text */
.game-card p {
  font-size: 0.95rem;
  color: #bbb;
}

/* Expiry text */
.game-card .expires {
  font-weight: bold;
  color: #e74c3c;
  margin: 8px 0;
}

/* Button */
.game-card .btn {
  display: inline-block;
  padding: 10px 18px;
  background: #e50914;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.game-card .btn:hover {
  background: #ff1e2d;
}

/* ✅ Responsive */
@media (max-width: 992px) {
  .games-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row for tablets */
  }
}

@media (max-width: 600px) {
  .games-container {
    grid-template-columns: 1fr; /* 1 per row for mobile */
  }
}

/* Coming Soon Card */
.game-card.soon {
  opacity: 0.7;
  filter: grayscale(70%);
  position: relative;
}

.game-card.soon .btn {
  background: gray;
  cursor: not-allowed;
}

.game-card.soon::after {
  content: "Coming Soon";
  position: absolute;
  top: 10px;
  right: 10px;
  background: orange;
  color: black;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
}
/* expired */
.game-card.expired {
  opacity: 0.7;
  filter: grayscale(70%);
  position: relative;
}

.game-card.expired .btn {
  background: gray;
  cursor: not-allowed;
}

.game-card.expired::after {
  content: "Expired";
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: black;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
}

/* Badge (platform label) */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

/* Badge colors */
.badge.epic {
  background: #171a21; /* Epic blue */
}

.badge.steam {
  background: #0078f2; /* Steam dark */
}
.badge.ubi {
  background: hsla(0, 0%, 100%, 0); /* Steam dark */
}

.badge.indiegala{
  background: #e50914;
}
.badge.gog {
  background: hwb(293 2% 33%); /* GOG */
}
.badge.itch {
  background: #e71621; /* itch */
}

/* Make card relative so badge stays inside */
.game-card {
  position: relative;
}

/* Footer always bottom */
footer {
  text-align: center;
  padding: 15px;
  background: #000;
  margin-top: auto;
}
.info {
  color: oklch(65.716% 0.23032 19.593);
  text-decoration: none;
  font-weight: bold;
}

.info:hover {
  text-decoration: underline;
}
.social-icons a {
    margin: 0 8px;
    display: inline-block;
  }
  .social-icons img {
    width: 28px;
    height: 28px;
    
    transition: 0.3s;
  }
  .social-icons img:hover {
    filter: none; /* show original colors on hover */
    transform: scale(1.1);
  }

  /*ads*/
  .adsterra-native-banner {
  margin: 30px 0;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 0, 0, 0.2);
  border-radius: 10px;
}
.adsterra-native-banner img {
  max-width: 100%;
  border-radius: 8px;
}
/* ===== Floating Support Us Button ===== */
.floating-support-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  background: #ff4757;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(255, 70, 85, 0.6);
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
  opacity: 0.85;
}

.floating-support-btn:hover {
  background: #ff6b7d;
  transform: scale(1.07);
  box-shadow: 0 0 25px rgba(255, 70, 85, 0.8);
  opacity: 1;
}

/* Optional – Adjust position for mobile */
@media (max-width: 600px) {
  .floating-support-btn {
    bottom: 75px;
    right: 10px;
    padding: 10px 14px;
    font-size: 14px;
  }
}

/*lang switch to en*/
.lang-top-btn {
  position: fixed;
  top: 15px;
  right: 20px;
  background: linear-gradient(90deg, #ff3b3b, #ff7a7a);
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.6);
  z-index: 1000;
  transition: all 0.3s ease;
}

.lang-top-btn:hover {
  background: #fff;
  color: #ff3b3b;
  box-shadow: 0 0 20px rgba(255, 60, 60, 0.9);
  transform: translateY(-2px);
}

/* Optional: make smaller on mobile */
@media (max-width: 600px) {
  .lang-top-btn {
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Ad Slot Styling */
.ad-slot {
  text-align: center;
  margin: 15px auto;
  display: block;
}

.ad-slot img {
  width: 100%;
  max-width: 728px; /* Adjust per size */
  border-radius: 8px;
  transition: 0.3s ease;
}

.ad-slot img:hover {
  transform: scale(1.03);
}
#ad-rotator img {
  width: 100%;
  max-width: 728px;
  border-radius: 8px;
  transition: opacity 1s ease-in-out;
}