body {
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  max-width: 500px;
  /* Standard mobile-focused width */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.BG {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.logo {
  width: 60%;
  margin-top: 10px;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}
.gold {
  position: absolute;
  width: 80%;
  top: 70%;
  transform: translateY(-50%);
  z-index: 1;
}

.visual-area {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wheel {
  position: relative;
  width: 85%;
  left: -15%;
  z-index: 1;
  animation: rotate 20s linear infinite;
}

.slot-chars {
  position: absolute;
  transform: translateX(-50%, -50%);
  width: 90%;
  top: 17%;
  z-index: 2;
}

.gold-coins {
  position: absolute;
  width: 50%;
  right: -5%;
  bottom: 20%;
  z-index: 3;
  pointer-events: none;
}

.banner-area {
  position: absolute;
  width: 75%;
  top: 53%;
  z-index: 4;
  display: flex;
  justify-content: center;
}

.banner-text {
  position: absolute;
  width: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  animation: pulse 2s ease-in-out infinite;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 95%;
  margin-bottom: 30px;
  z-index: 4;
}

.button-grid img {
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s;
}

.button-grid img:active {
  transform: scale(0.95);
}

.footer-icons {
  width: 100%;
  z-index: 4;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-icons img {
  width: 50%;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

  50% {
    transform: scale(1.05);
  }

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

/* Animations for buttons */
.button-grid img {
  animation: buttonPulse 1.5s infinite alternate;
}

@keyframes buttonPulse {
  0% {
    filter: brightness(1);
  }

  100% {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.4));
  }
}
@media (max-width: 440px) {
  .logo {
    width: 40%;
  }
  .logo img {
    margin-top: -5%;
    max-width: 180px;
  }
  .visual-area {
    margin-top: -10%;
  }
  .wheel {
    margin-top: -5%;
    left: -15%;
  }
  .slot-chars {
    top: 25%;
  }
  .gold {
    top: 75%;
  }
  .button-grid {
    margin-bottom: 10%;
  }
  .footer-icons {
    margin-bottom: 30%;
  }
  .banner-area {
    top: 48%;
  }
  .banner-area img {
    max-width: 300px;
  }
}

@media (max-width: 428px) {
  .logo {
    width: 40%;
  }
  .logo img {
    margin-top: -8%;
    max-width: 180px;
  }
  .visual-area {
    margin-top: -10%;
  }
  .wheel {
    margin-top: -5%;
    left: -15%;
  }
  .button-grid {
    top: 60%;
  }
  .banner-area {
    top: 48%;
  }
  .banner-area img {
    max-width: 300px;
  }
}
@media (max-width: 360px) {
  .logo {
    width: 40%;
  }
  .logo img {
    margin-top: -5%;
  }
  .visual-area {
    margin-top: -10%;
  }
  .wheel {
    margin-top: -5%;
    left: -15%;
  }
  .banner-area {
    top: 46.5%;
  }
  .banner-area img {
    max-width: 280px;
  }
}
