.d-lg-flex {
  overflow: hidden;
}

.landing {
  overflow: hidden;
  max-width: 100%;
}

#bg {
  display: block;
  width: 100%;
  height: auto;
}

.landing-el {
  position: absolute;
  height: auto;
  max-width: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 4;
}

/* Blue ribbon banner — just above scratch card */
.landing-text {
  top: 40%;
  left: 50%;
  width: 82%;
  animation: pulse-center 4s ease-in-out infinite;
}

/* Eye of Horus — middle left */
.landing-eye {
  top: 38%;
  left: -3%;
  width: 25%;
  animation: float-ne 4s ease-in-out infinite;
}

/* Cobra orb — upper right */
.landing-snake {
  top: 25%;
  left: 88%;
  width: 15%;
  animation: float-nw 4s ease-in-out infinite;
}

/* Red gem — middle right near scratch */
.landing-red {
  top: 27%;
  left: 25%;
  width: 8%;
  animation: float-se 4s ease-in-out infinite;
}

/* Khopesh medallion — bottom left */
.landing-knife {
  top: 84%;
  left: 0%;
  width: 25%;
  animation: float-sw 4s ease-in-out infinite;
}

/* Scarab — bottom right */
.landing-bug {
  top: 77%;
  left: 70%;
  width: 40%;
  animation: float-nw 4s ease-in-out infinite;
}

/* Slow diagonal float — swing back and forth */
@keyframes float-nw {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, -14px);
  }
}

@keyframes float-ne {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -14px);
  }
}

@keyframes float-sw {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, 14px);
  }
}

@keyframes float-se {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, 14px);
  }
}

@keyframes float-ne-center {
  0%,
  100% {
    transform: translateX(-50%) translate(0, 0);
  }
  50% {
    transform: translateX(-50%) translate(10px, -12px);
  }
}

@keyframes pulse-center {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.08);
  }
}

/* Frame + scratch share one box — scale together on any screen */
.scratch-stage {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 89%;
  aspect-ratio: 704 / 499;
  transform: translateX(-50%);
  z-index: 3;
}

.landing-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.scratch-stage .cd__main {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.scratch-stage .scratch-card {
  position: absolute;
  top: 7%;
  left: 7%;
  width: 86% !important;
  height: 86% !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

.btn3 {
  top: 83.5%;
  z-index: 5;
}

.btn3 img {
  width: 60%;
  animation: pulse 0.8s linear 1s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  #bg {
    height: 100vh;
    width: auto;
    max-height: 100vh;
  }

  .landing {
    height: 100vh;
  }
}
