
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background-color: #071022;
      font-family: "Poppins", sans-serif;
      color: #fff;
      overflow-x: hidden;
    }

    /* ===== HEADER (Desktop) ===== */
    header {
      width: 100%;
      background: linear-gradient(90deg, #050510, #0b0b20);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 50px;
      position: relative;
      z-index: 10;
    }

    .logo img {
      height: 50px;
    }

    .right-section {
      display: flex;
      align-items: center;
      gap: 25px;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 35px;
    }

    nav ul li a {
      text-decoration: none;
      color: #cfcfcf;
      font-size: 22px;
      transition: color 0.3s ease;
    }

    nav ul li a:hover {
      color: #fff;
    }

    .games-btn {
      background: linear-gradient(90deg, #5440ff, #8b5cff);
      color: #fff;
      border: none;
      padding: 8px 16px;
      border-radius: 30px;
      font-size: 18px;
      cursor: pointer;
      transition: opacity 0.3s;
    }

    .games-btn:hover {
      opacity: 0.85;
    }

    /* ===== LANGUAGE SELECTOR ===== */
    .lang-selector {
      position: relative;
      display: flex;
      align-items: center;
      background: #181820;
      border-radius: 30px;
      padding: 6px 12px;
      cursor: pointer;
      font-size: 16px;
      gap: 6px;
    }

    .lang-selector img {
      width: 18px;
      height: 18px;
      border-radius: 50%;
    }

    .lang-selector span {
      color: #ddd;
    }

    .lang-options {
      display: none;
      position: absolute;
      top: 38px;
      right: 0;
      background: #181820;
      border-radius: 10px;
      overflow: hidden;
      min-width: 80px;
      z-index: 10;
    }

    .lang-options div {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      cursor: pointer;
      font-size: 13px;
      color: #ccc;
    }

    .lang-options div:hover {
      background: #2b2b40;
      color: #fff;
    }

    .lang-options img {
      width: 18px;
      height: 18px;
      border-radius: 50%;
    }

    /* ===== MOBILE HEADER ===== */
    .mobile-header {
      display: none;
      width: 100%;
      background: linear-gradient(90deg, #050510, #0b0b20);
      padding: 10px 15px;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 15;
    }

    .menu-icon {
      font-size: 30px;
      cursor: pointer;
    }

    .mobile-logo img {
      height: 42px;
    }

    .mobile-icon img {
      width: 38px;
      height: 38px;
      background: linear-gradient(90deg, #5440ff, #8b5cff);
      border-radius: 50%;
    }
.mobile-icon img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #304BC6 0%, #6E42E8 30.29%, #5658C0 62.5%, #092298 100%);
  border: 3.333px solid #1140FF;
}

    /* ===== MOBILE MENU ===== */
    .mobile-menu {
      display: none;
      flex-direction: column;
      gap: 16px;
      background: #0b0b20;
      padding: 20px;
      z-index: 1000;
    }

    .mobile-menu a {
      text-decoration: none;
      color: #ccc;
      font-size: 15px;
      transition: color 0.3s;
    }

    .mobile-menu a:hover {
      color: #fff;
    }

    .mobile-menu .lang-selector {
      width: fit-content;
    }
    .player-name {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding-left: 10px;
  white-space: nowrap;
  opacity: 0.9;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .player-name {
    font-size: 14px;
    padding-left: 0;
    margin-top: 10px;
  }
}


    /* ===== VIDEO SECTION ===== */
    .video-section {
      position: relative;
      width: 100%;
      overflow: hidden;
      background: linear-gradient(90deg, #050510, #0b0b20);
    }

    .video-section video {
      width: 100%;
      height: auto;
      object-fit: contain;
      display: block;
    }
    
    /* ⭐ Center overlay */
.center-overlay {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

.center-overlay .logo {
  width: 800px; /* adjust size if needed */
  margin-bottom: 10px;
}

/* Country text */
#countryText {
    display: none;
  font-size: 120px;
  font-weight: 800;
  transition: opacity 0.5s ease-in-out;
}

.fade-out {
  opacity: 0;
}

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      header {
        display: none;
      }

      .mobile-header {
        display: flex;
      }

      .video-section video {
        height: 240px;
        object-fit: contain;
      }
    }
    
/* === Game Section === */
.game-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 5;
}
.game-section {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 3);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; /*¢ smooth scroll transition */
  padding: 1rem;
  cursor: grab;
  position: relative;
  z-index: 1;
}
.game-section:active {
  cursor: grabbing;
}
.game-section::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .game-section {
    grid-auto-columns: calc(100% / 5);
  }
}
@media (min-width: 1024px) {
  .game-section {
    grid-auto-columns: calc(100% / 6);
  }
}
@media (min-width: 769px){
  .game-wrapper {
  margin-top: -150px;
  }
  .game-section {
  margin-bottom: 70px;
  }
}  
/* 📱 Very small screens (single column) */
@media (max-width: 480px) {
  .game-wrapper {
  margin-top: -25px;
  }
}
.game-card {
  background: transparent;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
  overflow: hidden;
}
.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.game-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.game-card h3 {
    display: none;
  font-size: 11px;
  color: #fff;
  margin: 0.5rem 0;
}

/* ===== Games Header ===== */
    .games-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 60px 20px 40px;
      background-color: #071022;
      background-image: url('images/Homg-bg-2.png');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-radius: 20px;
      overflow: hidden;
      text-align: center;
    }

    .games-header h2 {
      font-size: 45px;
      font-weight: 800;
      letter-spacing: 1px;
      margin-bottom: 15px;
    }

    .games-header p {
      font-size: 16px;
      color: #ccc;
      max-width: 800px;
      margin: 0 auto;
      line-height: 1.6;
    }

    /* ===== Carousel Layout ===== */
    .carousel {
      position: relative;
      width: 100%;
      max-width: 980px;
      height: 420px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 30px auto 0;
    }

    .nav-btn {
      position: absolute;
      top: 50%;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      font-size: 24px;
      cursor: pointer;
      z-index: 30;
      transition: background 0.3s ease;
      transform: translateY(-50%);
    }
    .nav-btn:hover {
      background: rgba(255, 255, 255, 0.25);
    }
    .nav-btn.left { left: 1px; }
    .nav-btn.right { right: 1px; }

    .cards-wrap {
      position: relative;
      width: 100%;
      max-width: 780px;
      height: 360px;
      perspective: 1400px;
    }
    .cards-wrap .card .game_title {
    display: block !important;
}

    /* ===== Card Style ===== */
    .card {
      position: absolute;
      width: 450px;
      height: auto;
      left: 50%;
      top: 30%;
      transform-origin: center center;
      border-radius: 18px;
      overflow: hidden;
      background: #0b2030;
      transition: transform 0.7s cubic-bezier(.2, .9, .25, 1), opacity .4s ease, filter .4s ease;
      display: flex;
      flex-direction: column;
      margin-top: 100px;
    }

    .hero {
      width: 100%;
      height: 225px;
      background-size: contain;
      background-position: center;
      background-repeat: no-repeat;
    }

    .info {
      padding: 10px 15px;
      background: #11182a;
    }

    .game_title h3{
      display: none;
      font-weight: 800;
      color: green;
      background: var(--accent);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 10px;
    }

    .desc {
      font-size: 14px;
      font-weight: 500;
      color: #ccc;
      margin-bottom: 15px;
      margin-top: 15px;
      text-align: left;
    }

    .play {
      font-size: 15px;
      color: #9ea7ff;
      text-decoration: none;
      font-weight: 700;
      display: block;
      text-align: left;
    }

    /* ===== Card Positions ===== */
    .card.center { transform: translate(-50%, -50%) scale(1); z-index:10; opacity:1; filter:none; }
    .card.left1 { transform: translate(-90%, -50%) scale(0.8) rotateY(15deg); opacity:0.5; filter:blur(3px); }
    .card.right1 { transform: translate(-10%, -50%) scale(0.8) rotateY(-15deg); opacity:0.5; filter:blur(3px); }
    .card.left2 { transform: translate(-120%, -50%) scale(0.6) rotateY(20deg); opacity:0.2; filter:blur(6px); }
    .card.right2 { transform: translate(20%, -50%) scale(0.6) rotateY(-20deg); opacity:0.2; filter:blur(6px); }
    .card.hidden { opacity:0; pointer-events:none; }

    /* ===== RESPONSIVE STYLES ===== */
    @media (max-width: 1024px) {
      .carousel { height: 360px; }
      .cards-wrap { height: 320px; }
      .card { width: 400px; height: 280px; }
      .game_title h3 { font-size: 26px; }
      .desc { font-size: 13px; }
    }

   @media (max-width: 768px) {
  .carousel { height: 330px; }           /* bigger carousel */
  .cards-wrap { height: 320px; }

  .card {
    width: 300px;                         /* bigger card */
    height: 300px;
    border-radius: 14px;
    margin-top: 40px;
  }

  .hero {
    height: auto;                        /* larger image */
    background-size: cover;
  }

  .game_title h3 { font-size: 20px; }
  .desc { font-size: 12px; }

  .nav-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
      .games-header h2 {
      font-size: 25px;
    }

  /* side cards still visible but closer */
  .card.left1  { transform: translate(-85%, -50%) scale(0.92) rotateY(8deg); }
  .card.right1 { transform: translate(-15%, -50%) scale(0.92) rotateY(-8deg); }
}

@media (max-width: 480px) {
  .carousel { height: 320px; }
  .cards-wrap { height: 320px; }

  .card {
    width: 320px;                      /* increase card width */
    height: 310px;
    margin-top: 65px;
  }

  .hero {
    height: 175px;                     /* bigger image */
    background-size: cover;
  }

  .game_title h3 { font-size: 14px; }
  .desc { font-size: 11px; }
  .play {font-size: 14px;}
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
