body {
    background:
      linear-gradient(
        to bottom,
        #000E1F 0%,
        #001933 25%,
        #00334d 50%,
        #004466 75%,
        #0C596F 100%
      );
    background-blend-mode: screen; /* Optional: blend star layer */
    background-size: cover;
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.tabs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #0a1a2f;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 48px;
  gap: 8px;
}

.tabs .home-tab {
  background-color: #1976d2; /* Bright blue */
  color: #fff;
}

.tabs .about-tab {
  background-color: #fbc02d; /* Bright yellow */
  color: #222;
}

.tabs .games-tab {
  background-color: #43a047; /* Vivid green */
  color: #fff;
}

.tabs .skin-tab {
  background-color: #FF6809; /* Changed to FF6809 */
  color: #fff;
}

.tab {
  padding: 12px 24px;
  border-radius: 6px;
  margin-right: 8px;
  display: inline-block;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.3s, transform 0.18s;
}

/* Hover styles for each tab, with grow animation */
.tabs .home-tab:hover, .tabs .home-tab:focus {
  background-color: #1565c0;
  color: #fff;
  box-shadow: 0 4px 32px #1976d280, 0 2px 8px #1976d240;
  transform: translateY(-2px) scale(1.04);
}

.tabs .about-tab:hover, .tabs .about-tab:focus {
  background-color: #ffe082;
  color: #222;
  box-shadow: 0 4px 32px #fbc02d80, 0 2px 8px #fbc02d40;
  transform: translateY(-2px) scale(1.04);
}

.tabs .games-tab:hover, .tabs .games-tab:focus {
  background-color: #388e3c;
  color: #fff;
  box-shadow: 0 4px 32px #43a04780, 0 2px 8px #43a04740;
  transform: translateY(-2px) scale(1.04);
}

.tabs .skin-tab:hover, .tabs .skin-tab:focus {
  background-color: #e55a00; /* Darker shade of FF6809 */
  color: #fff;
  box-shadow: 0 4px 32px #FF680980, 0 2px 8px #FF680940;
  transform: translateY(-2px) scale(1.04);
}

.contact-btn {
    display: inline-block;
    padding: 12px 28px;
    margin-left: 32px;
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #42a5f5 0%, #90caf9 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 16px #42a5f540;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: background 0.3s, box-shadow 0.3s, transform 0.18s;
    z-index: 2;
  }
  .contact-btn::before {
    content: "";
    position: absolute;
    left: -60%;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, #e3f2fd 0%, #90caf9 100%);
    opacity: 0.25;
    transform: skewX(-20deg);
    transition: left 0.4s cubic-bezier(.77,0,.18,1);
    z-index: 1;
  }
  .contact-btn:hover, .contact-btn:focus {
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
    box-shadow: 0 4px 32px #42a5f580, 0 2px 8px #1976d240;
    transform: translateY(-2px) scale(1.04);
  }
  .contact-btn:hover::before, .contact-btn:focus::before {
    left: 100%;
    transition: left 0.4s cubic-bezier(.77,0,.18,1);
  }
  @media (max-width: 700px) {
    .contact-btn {
      margin-left: 8px;
      padding: 10px 16px;
      font-size: 1em;
    }
  }

/* Responsive HYST Section Styles */
.hyst-hero-container {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
    min-height: 48vh;
    padding-bottom: 12vh;
    margin-top: 3.2vh;
    background: url('Moon_Img.png') no-repeat right top;
    background-size: 78vw auto;
    background-position: 97% -12vh;
    box-sizing: border-box;
    width: 100%;
    transition: background-size 0.3s, background-position 0.3s;
  }
  #hyst-section {
    flex: 1 1 0;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3.6vh 3.2% 3.6vh 3.2%;
    margin: 1.2vh 0 1.2vh 0;
    position: relative;
    z-index: 1;
    text-align: left;
    background: transparent;
    box-sizing: border-box;
  }
  .hyst-title {
    color: #90caf9;
    font-size: 1.3em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.2vh;
    width: 100%;
  }
  .hyst-underline {
    width: 100%;
    max-width: 35%;
    height: 0.4vh;
    background: linear-gradient(90deg, #90caf9, #1976d2);
    margin: 0 auto 2.4vh auto;
    border-radius: 0.2vh;
    display: block;
  }
  .hyst-description {
    color: #cfd8dc;
    font-size: 1.2em;
    line-height: 1.6;
    text-align: left;
  }
  .hyst-store-badges {
    margin-top: 3.2vh;
    display: flex;
    gap: 1.6vw;
    flex-wrap: wrap;
  }
  .hyst-store-badges a {
    display: inline-block;
  }
  .hyst-store-badges img {
    height: 4.8vh;
    max-width: 160px;
    width: auto;
  }
  .hyst-hero-right {
    flex: 1 1 0;
    max-width: 40%;
    min-width: 0;
    /* empty for layout balance */
  }

  /* Tablet adjustments */
  @media (max-width: 1024px) {
    .hyst-hero-container {
      background-size: 120vw auto;
      background-position: 100% 0;
      min-height: 40vh;
      padding-bottom: 8vh;
    }
    #hyst-section {
      max-width: 100%;
      padding: 3vh 5vw 3vh 5vw;
    }
    .hyst-hero-right {
      display: none;
    }
    .hyst-underline {
      max-width: 40%;
    }
  }

  /* Mobile adjustments */
  @media (max-width: 700px) {
    .hyst-hero-container {
      flex-direction: column;
      min-height: unset;
      padding-bottom: 4vh;
      margin-top: 2vh;
      background-size: 200vw auto;
      background-position: 80% 0;
    }
    #hyst-section {
      max-width: 100%;
      padding: 2.4vh 4vw 2.4vh 4vw;
      margin: 0;
      align-items: flex-start;
    }
    .hyst-title {
      font-size: 1.1em;
      margin-bottom: 1vh;
    }
    .hyst-underline {
      max-width: 60%;
      height: 0.3vh;
      margin-bottom: 1.6vh;
    }
    .hyst-description {
      font-size: 1em;
      color: #b3e5fc !important;
    }
    .hyst-store-badges {
      margin-top: 2vh;
      gap: 3vw;
    }
    .hyst-store-badges img {
      height: 4.2vh;
      max-width: 120px;
    }
  }

  /* Extra small screens */
  @media (max-width: 450px) {
    .hyst-hero-container {
      background-size: 300vw auto;
      background-position: 90% 0;
      padding-bottom: 2vh;
    }
    #hyst-section {
      padding: 2vh 2vw 2vh 2vw;
    }
    .hyst-title {
      font-size: 1em;
    }
    .hyst-description {
      font-size: 0.95em;
      color: #b3e5fc;
    }
    .hyst-store-badges img {
      height: 3.2vh;
      max-width: 90px;
    }
  }


.games-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
  }
  .games-carousel-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: filter 0.2s;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  #games-carousel-prev {
    left: -80px;
  }
  #games-carousel-next {
    right: -80px;
  }
  .games-carousel-btn img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: filter 0.2s;
  }
  .games-carousel-btn:active img,
  .games-carousel-btn:focus img {
    filter: brightness(0.8) drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  }
  .game-cards-carousel-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(.4,2,.6,1);
  }
  .flip-card {
    background: transparent;
    width: 300px;
    height: 400px;
    perspective: 1200px;
    border-radius: 12px;
    flex-shrink: 0;
  }
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.8s cubic-bezier(.4,2,.6,1);
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    cursor: pointer;
  }
  .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
  }
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    object-fit: cover;
    overflow: hidden;
  }
  .flip-card-front img, .flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }
  .flip-card-back {
    transform: rotateY(180deg);
  }
  @media (max-width: 1200px) {
    #games-carousel-prev {
      left: -32px;
    }
    #games-carousel-next {
      right: -32px;
    }
  }
  @media (max-width: 1000px) {
    .game-cards-carousel-row {
      flex-direction: column;
      align-items: center;
      gap: 24px;
    }
    .flip-card {
      width: 90vw;
      max-width: 340px;
      height: 340px;
    }
    .games-carousel-btn {
      width: 40px;
      height: 40px;
    }
    .games-carousel-btn img {
      width: 32px;
      height: 32px;
    }
    #games-carousel-prev {
      left: -12vw;
    }
    #games-carousel-next {
      right: -12vw;
    }
  }
  @media (max-width: 600px) {
    #games-carousel-prev {
      left: -8vw;
    }
    #games-carousel-next {
      right: -8vw;
    }
  }

  .spacy-bg-stars {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
  }
  .spacy-bg-stars canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
  }

  .skins-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 32px auto 0 auto;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    perspective: 1200px;
    z-index: 1;
  }
.carousel-track {
    width: 100%;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: none;
}
.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition:
      opacity 0.7s cubic-bezier(.77,0,.18,1),
      transform 0.7s cubic-bezier(.77,0,.18,1),
      filter 0.7s cubic-bezier(.77,0,.18,1),
      z-index 0s;
    z-index: 1;
    pointer-events: none;
    will-change: transform, opacity, filter;
}
.carousel-item.center {
    opacity: 1;
    z-index: 3;
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 12px 48px #FF680980) drop-shadow(0 4px 32px #0008);
    pointer-events: auto;
}
.carousel-item.left {
    opacity: 0.55;
    z-index: 2;
    /* Increased horizontal offset for more gap */
    transform: translate(calc(-50% - 380px), -50%) scale(0.88) rotateY(18deg);
    filter: drop-shadow(0 4px 32px #0008);
}
.carousel-item.right {
    opacity: 0.55;
    z-index: 2;
    /* Increased horizontal offset for more gap */
    transform: translate(calc(-50% + 380px), -50%) scale(0.88) rotateY(-18deg);
    filter: drop-shadow(0 4px 32px #0008);
}
.carousel-item.far-left,
.carousel-item.far-right {
    opacity: 0.3;
    z-index: 1;
    /* Increased horizontal offset for more gap */
    transform: translate(calc(-50% - 700px), -50%) scale(0.7) rotateY(30deg);
    filter: blur(2px) grayscale(0.5);
}
.carousel-item.far-right {
    transform: translate(calc(-50% + 700px), -50%) scale(0.7) rotateY(-30deg);
}
.carousel-item img {
    height: 300px;
    border-radius: 32px;
    border: 6px solid #fff2;
    background: #0a1a2f;
    box-shadow: 0 4px 32px #0008;
    transition: box-shadow 0.7s cubic-bezier(.77,0,.18,1), border 0.7s cubic-bezier(.77,0,.18,1);
    user-select: none;
    pointer-events: none;
    background: #0a1a2f;
    /* Add space between images by using a wrapper and gap */
    margin: 0;
    display: block;
}
.carousel-item.center img {
    border: 6px solid #FF6809;
    box-shadow: 0 12px 48px #FF680980, 0 4px 32px #0008;
    pointer-events: auto;
}
/* Add a wrapper for spacing between items */
.carousel-item-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    /* The gap is handled by the transform offset, but for extra safety: */
    padding: 0 64px;
    box-sizing: border-box;
}
@media (max-width: 1400px) {
    .carousel-item.left { transform: translate(calc(-50% - 260px), -50%) scale(0.85) rotateY(18deg);}
    .carousel-item.right { transform: translate(calc(-50% + 260px), -50%) scale(0.85) rotateY(-18deg);}
    .carousel-item.far-left { transform: translate(calc(-50% - 480px), -50%) scale(0.7) rotateY(30deg);}
    .carousel-item.far-right { transform: translate(calc(-50% + 480px), -50%) scale(0.7) rotateY(-30deg);}
    .carousel-item-inner { padding: 0 40px; }
}
@media (max-width: 1200px) {
    .carousel-item.left { transform: translate(calc(-50% - 180px), -50%) scale(0.8) rotateY(18deg);}
    .carousel-item.right { transform: translate(calc(-50% + 180px), -50%) scale(0.8) rotateY(-18deg);}
    .carousel-item.far-left { transform: translate(calc(-50% - 320px), -50%) scale(0.7) rotateY(30deg);}
    .carousel-item.far-right { transform: translate(calc(-50% + 320px), -50%) scale(0.7) rotateY(-30deg);}
    .carousel-item-inner { padding: 0 24px; }
}
@media (max-width: 900px) {
    .carousel-track { height: 180px; }
    .carousel-item img { height: 120px !important; }
    .carousel-item.left { transform: translate(calc(-50% - 100px), -50%) scale(0.8) rotateY(18deg);}
    .carousel-item.right { transform: translate(calc(-50% + 100px), -50%) scale(0.8) rotateY(-18deg);}
    .carousel-item.far-left { transform: translate(calc(-50% - 180px), -50%) scale(0.7) rotateY(30deg);}
    .carousel-item.far-right { transform: translate(calc(-50% + 180px), -50%) scale(0.7) rotateY(-30deg);}
    .carousel-item-inner { padding: 0 12px; }
}
@media (max-width: 600px) {
    .carousel-track { height: 80px; }
    .carousel-item img { height: 50px !important; }
    .carousel-item.left { transform: translate(calc(-50% - 50px), -50%) scale(0.8) rotateY(18deg);}
    .carousel-item.right { transform: translate(calc(-50% + 50px), -50%) scale(0.8) rotateY(-18deg);}
    .carousel-item.far-left { transform: translate(calc(-50% - 90px), -50%) scale(0.7) rotateY(30deg);}
    .carousel-item.far-right { transform: translate(calc(-50% + 90px), -50%) scale(0.7) rotateY(-30deg);}
    .carousel-item-inner { padding: 0 4px; }
}

