
body {
  margin: 0;
  padding: 0;
  /* font-family: Arial, sans-serif!important; */
  background-color: #000;
  margin: 0;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #121212; */
  color: #e0e0e0;
  overflow-x: hidden;
}

/* Ensure no horizontal overflow on small screens */
html {
  overflow-x: hidden;
  box-sizing: border-box;
}


/* Navbar */
.navbar {
  background-color: #161616;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  height: 25px;
  max-width: 100%;
  position: fixed;
  top: -100px; /* Hide initially for animation */
  left: 0;
  right: 0;
  z-index: 1000;
  animation: slideDown 0.8s ease-out forwards;
}

/* Keyframe for slide-in */
@keyframes slideDown {
  from {
    top: -100px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

/* Logo */
.logo img {
  height: 30px;
  width: auto;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #aaa;
}

.arrow {
  margin-left: 4px;
  font-size: 14px;
}

/* Animated Button */
.login-btn {
  background-color: #d35400;
  color: white;
  padding: 10px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-btn:hover {
  background-color: #e67e22;
  transform: scale(1.05);
}



.dp-wrapper {
  position: relative;
  cursor: pointer;
}

.dp {
  width: 40px;
  height: 40px;
 
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  border-radius: 50%;
  
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  overflow: hidden;
}
.imgdp {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover; 
  display: block;
}



.dp-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 8px 12px rgba(0,0,0,0.5);
  
  flex-direction: column;

  z-index: 1000;
  padding: 5px 0;
}

.dp-dropdown button {
  background: none;
  border: none;
  padding: 10px 16px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
}

.dp-dropdown button:hover {
  background-color: #333;
}






/* 🔸 Animated Background on Hover */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #3e3e3e, #b1b1b1, #000000);
  background-size: 100% 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.navbar:hover::before {
  animation: navSweep 3s ease-out forwards;
  opacity: 0.15;
}

/* Background Sweep Animation */
@keyframes navSweep {
  0% {
    left: -100%;
  }
  50% {
    left: 0%;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}





@media (max-width: 1024px) {
  .game-section, .hero, .pricing-container {
    padding-top: 70px;
  }
}

@media (max-width: 768px) {
  .game-section, .hero, .pricing-container {
    padding-top: 80px;
  }
}


/* Hamburger (Mobile Only) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1101;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Slide-out Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100vh;
  width: min(80vw, 320px); /* responsive width */
  background: #161616;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 80px 20px;
  gap: 20px;
  transition: right 0.4s ease-in-out;
  z-index: 1100;
}
.mobile-menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
}
.mobile-menu a:hover {
  color: #f97316;
  padding-left: 8px;
}

/* Active states */
.mobile-menu.active {
  right: 0;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -4px);
}

/* Responsive control */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}







/* Graphics Section */
.graphics-section {
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  animation: fadeSlideIn 1.5s ease-out;
}

.image-slider {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  height: clamp(235px, 55vh, 500px); /* responsive height */
  position: relative;
  margin-top: clamp(60px, 10vh, 100px);
  contain: layout paint;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(.22,.9,.31,1), opacity 0.6s ease-in-out;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform, opacity;
}
.image-slider img.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 1;
}

.text-content .subheading {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease-in-out;
}

.text-content .heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
  animation: fadeInUp 1.2s ease-in-out;
  color: #ffffff;
}

.text-content .description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.4s ease-in-out;
  color: #cccccc;
}

.play-btn1 {
  background: linear-gradient(to right, #611919, #eb3f3f);
  color: white;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
}

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

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 5;
}

.dots-container .dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  backdrop-filter: blur(30px) saturate(200%);
  background-size: 400% 400%;
  animation: dotIdleGradient 6s ease infinite;
  box-shadow: 0 0 8px rgba(43, 43, 43, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 1 !important;
}

.dots-container .dot:hover {
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(84, 84, 84, 0.8);
}

/* Inner mask for inactive state */
.dots-container .dot::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: #000000a9;
  border-radius: 50%;
  transition: transform 0.4s ease-in-out;
}

/* When active, reveal full glow and animate ring */
.dots-container .dot.active::before {
  transform: scale(0);
}

.dots-container .dot.active {
  animation: dotPulse 1.8s ease-in-out infinite, dotActiveGlow 3s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(75, 75, 75, 0.7);
  transform: scale(1.15);
}

/* Animate background gradient loop */
@keyframes dotIdleGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Pulse on active dot */
@keyframes dotPulse {
  0%, 100% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Optional glowing ring effect */
@keyframes dotActiveGlow {
  0% {
    box-shadow: 0 0 8px rgba(107, 107, 107, 0.5), 0 0 20px rgba(76, 76, 76, 0.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(97, 97, 97, 0.9), 0 0 32px rgba(63, 63, 63, 0.4);
  }
  100% {
    box-shadow: 0 0 8px rgba(107, 107, 107, 0.5), 0 0 20px rgba(76, 76, 76, 0.2);
  }
}










/* Features Section 2 */
.features-heading {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  animation: fadeSlideIn 1.2s ease;
}

.features-heading h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
}

.heading-line {
  width: 28%;
  height: 4px;
  background: linear-gradient(to right, #ff4d4d, #ffa500);
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 10px #ff4d4d99;
}




.graphics-section {
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  animation: fadeSlideIn 1.5s ease-out;
}
.features-section {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* start from top */
  justify-content: center;
  gap: 2rem;
  padding: 0 3rem 3rem; /* no top padding so children start at top */
  max-width: auto;
  margin: auto;
}

.feature-image img {
  width: auto; /* scale down on small screens */
  border-radius: 12px;
  box-shadow: 0 0 30px rgb(99, 99, 99);
  animation: fadeInLeft 1s ease forwards;
  max-height: 1070px; /* fix overflow and preserve aspect ratio */
  margin: 0; /* remove top/bottom/left offsets so image starts at top */
  align-self: flex-start;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  flex: 1;
  animation: fadeInRight 1s ease forwards;
  margin: 0; /* ensure list starts at top */
  padding-top: 0;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  animation: slideFadeUp 0.6s ease forwards;
  transform: translateY(30px);
  opacity: 0;
}

.feature-item:nth-child(even) {
  animation-delay: 0.2s;
}
.feature-item:nth-child(odd) {
  animation-delay: 0.4s;
}

.feature-icon {
  border-radius: 4px;
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.feature-item h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.feature-item p {
  margin: 0.25rem 0 0;
  color: #bbbbbb;
  font-size: 0.95rem;
}

.feature-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  width: 100%;
}

.btn-primary ,.glass-button2{
  background: linear-gradient(to right, #571515, #d34949);
  color: white;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 40px;
  margin-top: -40px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #ff9900;
  color: #ff9900;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover, .btn-outline:hover {
  transform: translateY(-3px);
}

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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


/* Extra Game Features */
.feature-item:nth-child(4) { animation-delay: 0.6s; }
.feature-item:nth-child(5) { animation-delay: 0.8s; }
.feature-item:nth-child(6) { animation-delay: 1s; }
.feature-item:nth-child(7) { animation-delay: 1.2s; }
.feature-item:nth-child(8) { animation-delay: 1.4s; }
.feature-item:nth-child(9) { animation-delay: 1.6s; }
.feature-item:nth-child(10) { animation-delay: 1.8s; }
.feature-item:nth-child(11) { animation-delay: 2s; }
.feature-item:nth-child(12) { animation-delay: 2.2s; }
.feature-item:nth-child(13) { animation-delay: 2.4s; }
.feature-item:nth-child(14) { animation-delay: 2.6s; }
.feature-item {
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  padding: 1rem 1.2rem;
  border-radius: 12px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  background-clip: padding-box;
  will-change: transform, background;
}

.feature-item:hover {
  transform: translateY(-6px) scale(1.02);
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.12);
}

.feature-item:hover .feature-icon {
  animation: pulseRing 1.2s infinite ease-in-out;
  filter: drop-shadow(0 0 6px #ff464694);
  transform: scale(1.1);
}

/* Icon Pulse Animation */
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}

/* Smooth out icon transition */
.feature-icon {
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .features-section {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .feature-image  {
    display: none;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .feature-list {
    width: 100%;
    padding: 0 1rem;
    
  }

  .feature-item h3 {
    font-size: 1.1rem;
  }

  .feature-item p {
    font-size: 0.9rem;
  }

  .feature-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  .feature-icon {
    width: 36px;
    height: 36px;
  }

  .feature-item {
    gap: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .graphics-section {
    padding: 1.5rem 1rem;
  }

  .features-section {
    padding: 1.5rem 0.8rem;
  }
}

/* Responsive slider and text tuning */
@media (max-width: 1024px) {
  .image-slider { height: clamp(260px, 46vh, 440px); margin-top: 90px; }
  .dots-container { bottom: 16px; }
}

@media (max-width: 768px) {
  .image-slider { height: clamp(220px, 40vh, 380px); margin-top: 84px; }
  .text-content .heading { font-size: 2rem; }
  .text-content .description { font-size: 1rem; }
  .dots-container .dot { width: 10px; height: 10px; }
  .heading-line { width: 50%; }
}

@media (max-width: 480px) {
  .image-slider { height: clamp(200px, 36vh, 340px); }
  .dots-container { bottom: 12px; gap: 10px; }
  .play-btn { padding: 0.7rem 1.4rem; }
}
/* Short viewport (e.g., landscape phones) */
@media (max-height: 600px) {
  .image-slider { height: 32vh; }
}

/* Accessible focus without visual disruption */
:where(.btn-primary, .btn-outline, .play-btn1, .dots-container .dot):focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 3px;
}
/* =================== BACKDROP =================== */
.game-feature-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
}

.game-feature-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =================== MODAL INNER WRAPPER =================== */
.modal-content-wrapper {
  width: min(900px, 94vw);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "image text";
  gap: 28px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.9), rgba(30, 30, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-feature-modal.active .modal-content-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* =================== CLOSE BUTTON =================== */
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(35, 35, 35, 0.75);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 10;
}
.modal-close-btn:hover {
  transform: scale(1.08);
  background: rgba(48, 48, 48, 0.9);
}

/* =================== TEXT AREA =================== */
.modal-text-section {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.game-feature-modal.active .modal-text-section {
  opacity: 1;
  transform: translateX(0);
}

.modal-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.modal-description {
  color: #d0d0d0;
  line-height: 1.7;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

/* =================== BUTTONS =================== */
.modal-action-area {
  margin-top: 22px;
}
.action-play-btn, . {
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 14px #ff660066;
}
.action-play-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px #ffcc003d;
}

/* =================== IMAGE SECTION =================== */
.modal-image-section {
  grid-area: image;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.modal-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform-origin: center;
  transform: scale(0.9) translateX(-24px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: -15px;
}
.game-feature-modal.active .modal-image {
  transform: scale(1.05) translateX(0);
}

/* Prevent background scroll */
body.modal-active {
  overflow: hidden;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  .modal-content-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
    padding: 22px;
  }
  .modal-image {
    height: 300px;
    transform: scale(0.95);
  }
}

@media (max-width: 600px) {
  .modal-content-wrapper {
    width: 94vw;
    padding: 18px;
    gap: 16px;
  }
  .modal-heading {
    font-size: 1.5rem;
  }
  .modal-description {
    font-size: 0.95rem;
  }
  .modal-image {
    height: 240px;
  }
  .action-play-btn {
    width: 100%;
    text-align: center;
  }
}

/* Overlay container layout: image left, text right */
.feature-overlay .overlay-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-areas: "image text";
  gap: 28px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(18, 18, 18, 0.9), rgba(30, 30, 30, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.game-feature-modal.active .modal-content-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* =================== CLOSE BUTTON =================== */
.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(35, 35, 35, 0.75);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 10;
}
.modal-close-btn:hover {
  transform: scale(1.08);
  background: rgba(48, 48, 48, 0.9);
}

/* =================== TEXT AREA =================== */
.modal-text-section {
  grid-area: text;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.game-feature-modal.active .modal-text-section {
  opacity: 1;
  transform: translateX(0);
}

.modal-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.modal-description {
  color: #d0d0d0;
  line-height: 1.7;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
}

/* =================== BUTTONS =================== */
.modal-action-area {
  margin-top: 22px;
}
.action-play-btn {
  background: linear-gradient(90deg, #ff9900, #cc0000);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 14px #ff660066;
}
.action-play-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px #ffcc003d;
}

/* =================== IMAGE SECTION =================== */
.modal-image-section {
  grid-area: image;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.modal-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform-origin: center;
  transform: scale(0.9) translateX(-24px);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: -15px;
}
.game-feature-modal.active .modal-image {
  transform: scale(1.05) translateX(0);
}

/* Prevent background scroll */
body.modal-active {
  overflow: hidden;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 960px) {
  .modal-content-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
    padding: 22px;
  }
  .modal-image {
    height: 300px;
    transform: scale(0.95);
  }
}

@media (max-width: 600px) {
  .modal-content-wrapper {
    width: 94vw;
    padding: 18px;
    gap: 16px;
  }
  .modal-heading {
    font-size: 1.5rem;
  }
  .modal-description {
    font-size: 0.95rem;
  }
  .modal-image {
    height: 240px;
  }
  .action-play-btn {
    width: 100%;
    text-align: center;
  }
}

/* Explicit grid placement */
.overlay-image-wrap { grid-area: image; overflow: hidden; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,0.55); }
.overlay-text { grid-area: text; opacity: 0; transform: translateX(-24px); transition: opacity 450ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }

/* Image sizing fix (prevent collapse) */
.overlay-image {
  width: 100%;
  height: auto;                 /* FIX */
  max-height: 520px;
  object-fit: cover;
  transform-origin: center center;
  transform: scale(0.92) translateX(-28px);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-overlay.active .overlay-image { transform: scale(1.08) translateX(0); }

/* Responsive: stack image above text */
@media (max-width: 860px) {
  .feature-overlay .overlay-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "text";
  }
  .overlay-image { max-height: 45vh; transform: scale(0.94) translateX(0); }
  .feature-overlay.active .overlay-image { transform: scale(1.05); }
}

/* Keep entrance animation */
.feature-overlay.active .overlay-inner { opacity: 1; transform: translateY(0); }

