.modal-box,
body {
  text-align: center;
}
html {
  scroll-behavior: smooth;
}
body {
  background: url(https://cdn.jsdelivr.net/gh/MinionBiruu/luckyvgo-img@main/desktop_background.webp)
    center center/cover no-repeat;
  color: #fff;
  min-height: 105vh;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.slot-wrapper {
  position: relative;
  width: 750px;
  margin: 0 auto;
}
.mesin-slot-bg {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  right: 10vw;
  top: 12vh;
}
.gacha-container {
  position: absolute;
  top: 40%;
  right: 37%;
  transform: translateX(-50%);
  width: 300px;
  height: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}
.slot {
  width: 70px;
  height: 310px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.spin-wrapper,
.voucher-content {
  flex-direction: column;
  gap: 1px;
  display: flex;
}
.reel {
  position: relative;
}
.reel img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  display: block;
}
.kotak-wrapper {
  position: absolute;
  right: 200px;
  top: 45%;
  transform: translateY(-50%);
  width: 650px;
  height: auto;
  z-index: 10;
}
.kotak-background {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.btn-secondary-img,
.btn-spin-img {
  width: 450px;
  cursor: pointer;
  transition: transform 0.2s;
}
.voucher-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px;
  align-items: center;
  margin-bottom: 10px;
  left: 1.5%;
  top: 5vw;
}
.voucher-content input {
  padding: 16px;
  width: 405px;
  border-radius: 6px;
  border: none;
  font-size: 28px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}
.btn-spin-img {
  max-width: 100%;
  margin-top: 10px;
}
.btn-spin-img:hover {
  transform: scale(1.03);
}
.spin-wrapper {
  align-items: center;
}
.bottom-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.btn-secondary-img:hover {
  transform: scale(1.05);
}
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
}
.modal-box {
  background: 0 0;
  padding: 20px;
  border-radius: 10px;
  color: #ff0;
  width: auto;
  max-width: 80%;
  animation: 0.4s ease-out popIn, 1.8s ease-in-out infinite zoomInOut;
  top: 15%;
}
.modal-box h2 {
  font-size: 34px;
  font-weight: 700;
  color: #ffeb3b;
  text-shadow: 2px 2px 8px #000;
  margin-bottom: 25px;
  text-transform: uppercase;
}
#welcomeModal button,
.modal-box button {
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 700;
  background: #fff000;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgb(255 255 0 / 0.5);
}
.modal-box img {
  width: 520px;
  top: 20%;
  height: auto;
  display: block;
  margin: 0 auto -30px;
  animation: 1.5s infinite pulseGlow;
}
.modal-box button {
  border: none;
  border-radius: 8px;
}
.info-modal,
.list-hadiah-img {
  border-radius: 10px;
  max-width: 500px;
}
#welcomeModal button:hover,
.modal-box button:hover {
  background: gold;
  transform: scale(1.05);
}
.modal-list-hadiah {
  position: absolute;
  left: 30%;
  top: 18%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  width: 90%;
  background: #242323;
}
.list-hadiah-img {
  width: 100%;
  height: auto;
}
@keyframes pulseGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px yellow);
  }
  50% {
    filter: drop-shadow(0 0 25px yellow);
  }
}
@keyframes popIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes zoomInOut {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
@keyframes glowText {
  from {
    text-shadow: 0 0 5px #ff0, 0 0 10px gold;
  }
  to {
    text-shadow: 0 0 15px #ff0, 0 0 25px orange;
  }
}
.pulse-glow {
  animation: 1.8s ease-in-out infinite pulseGlow;
  transform-origin: center;
}
.highlight-win {
  position: relative;
  animation: 0.8s infinite alternate glow;
  filter: drop-shadow(0 0 10px gold);
  z-index: 100;
}
.person-image,
.tuas-slot {
  position: absolute;
  transform: translateY(-50%);
  height: auto;
}
@keyframes glow {
  from {
    filter: drop-shadow(0 0 5px yellow);
  }
  to {
    filter: drop-shadow(0 0 20px gold) brightness(1.2);
  }
}
.info-modal {
  overflow-y: auto;
  background: #222;
  color: #fff;
  text-align: left;
  width: 90%;
  animation: 0.6s ease-out popIn;
  box-shadow: 0 0 25px rgb(255 255 0 / 0.6);
}
.how-to-play-content {
  text-align: justify;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.6;
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 20px;
}
.modal-box::-webkit-scrollbar {
  width: 8px;
}
.modal-box::-webkit-scrollbar-thumb {
  background-color: rgb(255 255 0 / 0.7);
  border-radius: 5px;
}
.tuas-slot {
  top: 96%;
  left: 3.8vw;
  width: 200px;
  z-index: 3;
  cursor: pointer;
  transition: 0.2s;
}
.tuas-slot:hover {
  transform: translateY(-50%) scale(1.05);
  filter: brightness(1.1);
}
.tuas-slot:active {
  transform: translateY(-50%) scale(0.95);
  filter: brightness(0.9);
}
.person-image {
  top: 40vh;
  right: 34vw;
  width: 570px;
  z-index: 2;
}
.machine-person-wrapper {
  position: relative;
  display: inline-block;
}
.logo-desktop {
  position: absolute;
  top: 1vh;
  left: 23%;
  transform: translateX(-50%);
  width: 280px;
  z-index: 10;
}
.logo-mobile {
  display: none;
}
.info-icon {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.2s;
}
.cloud-front-layer,
.cloud-layer {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  position: absolute;
}
.info-icon:hover {
  transform: scale(1.1);
}
.info-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.welcome-box {
  background: #fff0;
  border-radius: 12px;
  padding: 0;
  text-align: center;
  animation: 0.5s ease-out popIn;
}
.welcome-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
}
#welcomeModal button {
  border: none;
  border-radius: 8px;
  margin-top: 20px;
}
.cloud-layer {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 420px;
}
.cloud,
.cloud-front-1 {
  position: absolute;
  bottom: 0;
  opacity: 2;
  width: 1000px;
  height: auto;
  animation: 3s ease-in-out infinite alternate awanGerak;
  transform: scale(1.2);
}
.awan1 {
  left: -150px;
  animation-delay: 0s;
}
.awan2 {
  left: 30%;
  width: 1000px;
  animation-delay: 2s;
}
.awan3 {
  right: -180px;
  width: 950px;
  animation-delay: 4s;
}
@keyframes awanGerak {
  0% {
    transform: translateX(0) scale(1.2);
  }
  100% {
    transform: translateX(80px) scale(1.2);
  }
}
.cloud-front-layer {
  bottom: -10%;
  left: 0;
  width: 100%;
  height: 420px;
}
.cloud-front-2 {
  position: absolute;
  bottom: 40;
  opacity: 2;
  width: 1000px;
  height: auto;
  animation: 6s ease-in-out infinite alternate awanGerak;
  transform: scale(1.2);
  left: 1%;
}
@keyframes kabutDepan {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(50px);
  }
}
@media (max-width: 768px) {
  .voucher-content,
  body {
    flex-direction: column;
  }
  .machine-person-wrapper,
  .mesin-slot-bg,
  .slot-wrapper {
    position: relative;
    width: 100%;
  }
  body,
  html {
    overflow-y: auto;
    height: auto;
    position: relative;
  }
  body {
    background: url(https://cdn.jsdelivr.net/gh/MinionBiruu/luckyvgo-img@main/olympus-bg.webp)
      center center/cover no-repeat;
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo-mobile,
  .person-image {
    display: none;
  }
  .machine-person-wrapper {
    height: 45vh;
    display: flex;
    justify-content: center;
    margin-top: 2vh;
  }
  .slot-wrapper {
    max-width: 600px;
    margin: 0 auto;
  }
  .mesin-slot-bg {
    height: 75vh;
    right: 0;
    top: -5%;
  }
  .gacha-container {
    position: absolute;
    top: 46%;
    right: 11.5%;
    transform: translateX(-50%);
    width: 240px;
    height: 30vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
  }
  .slot {
    width: 65px;
    height: 280px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .reel {
    position: relative;
  }
  .reel img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    display: block;
  }
  .tuas-slot {
    position: absolute;
    top: 125%;
    left: 36%;
    width: 25%;
    height: auto;
    z-index: 10;
    transform: translateY(-50%);
  }
  .kotak-wrapper {
    width: 90%;
    max-width: 380px;
    position: relative;
    margin: 0 auto 2vh;
    top: 15vh;
    left: -1vw;
  }
  .kotak-background {
    width: 100%;
    height: auto;
  }
  .voucher-content {
    position: relative;
    padding: 15% 5% 5%;
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    top: 5%;
  }
  .voucher-content input {
    width: 70%;
    font-size: 18px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgb(255 255 255 / 0.9);
    color: #000;
  }
  .btn-secondary-img,
  .btn-spin-img {
    width: 80%;
    max-width: 300px;
    margin: -5px 0;
  }
  .bottom-buttons,
  .spin-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -8px;
  }
  .modal-box {
    width: 90%;
    max-width: 500px;
    padding: 15px;
  }
  .modal-box img {
    width: 100%;
    max-width: 400px;
  }
  .modal-box h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .logo-desktop {
    position: absolute;
    top: -5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    z-index: 10;
  }
  .modal-list-hadiah {
    position: absolute;
    left: 21%;
    top: 18%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    background: #242323;
  }
}
@media (max-width: 480px) {
  .cloud-front-layer,
  .gacha-container {
    pointer-events: none;
    overflow: hidden;
  }
  .cloud-front-1,
  .cloud-front-2 {
    opacity: 2;
    animation: 3s ease-in-out infinite alternate kabutDepanMobile;
  }
  body,
  html {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    height: auto;
    position: relative;
  }
  body {
    display: block;
    background-size: cover;
    padding-bottom: 60px;
  }
  .machine-person-wrapper {
    transform: scale(0.9);
    transform-origin: top center;
    margin-top: calc(env(safe-area-inset-top, 0) + 8px);
  }
  *,
  ::after,
  ::before {
    box-sizing: inherit;
  }
  .mesin-slot-bg {
    width: 130vw;
    height: 80vh;
    max-width: 650px;
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .gacha-container,
  .tuas-slot {
    position: absolute;
    z-index: 3;
  }
  .gacha-container {
    height: 33vh;
    top: 57%;
    left: 48%;
    transform: translateX(-50%);
    width: 53vw;
    aspect-ratio: 3/4.5;
  }
  .slot {
    width: 25%;
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .reel,
  .voucher-content {
    flex-direction: column;
    display: flex;
  }
  .reel {
    gap: 0;
  }
  .reel img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    display: block;
  }
  .kotak-wrapper {
    transform: scale(1);
    transform-origin: top center;
    margin: 22px auto 0;
    left: 2%;
  }
  .kotak-background {
    width: 90%;
    height: auto;
    top: -1%;
  }
  .tuas-slot {
    top: 147%;
    left: 29%;
    width: 38%;
    height: auto;
    transform: translateY(-50%);
  }
  .voucher-content {
    position: relative;
    padding: 13% 5% 5%;
    width: 90%;
    margin: 0 auto;
    align-items: center;
    top: 7%;
    left: -3.5%;
  }
  .voucher-content input {
    width: 70%;
    font-size: 18px;
    padding: 12px;
    margin-bottom: 15px;
    background: rgb(255 255 255 / 0.9);
    color: #000;
  }
  .btn-secondary-img,
  .btn-spin-img {
    width: 78%;
    max-width: 300px;
    margin: -5px 0;
  }
  .bottom-buttons,
  .spin-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -8px;
  }
  .logo-desktop {
    display: block;
    position: absolute;
    top: -3vh;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    z-index: 10;
  }
  .cloud-front-layer {
    position: absolute;
    bottom: 30%;
    left: 0;
    width: 100vh;
    height: 100vw;
    z-index: -10;
  }
  .cloud-front-1 {
    position: absolute;
    left: -10%;
    bottom: 0;
    width: 140vw;
  }
  .cloud-front-2 {
    position: absolute;
    left: -35%;
    bottom: -35%;
    width: 140vh;
  }
  @keyframes kabutDepanMobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(30px);
    }
  }
  .info-modal {
    background: #222;
    color: #fff;
    text-align: left;
    padding: 10px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    animation: 0.6s ease-out popIn;
    box-shadow: 0 0 25px rgb(255 255 0 / 0.6);
  }
  .modal-list-hadiah {
    position: absolute;
    left: 10%;
    top: 25%;
    transform: translate(-50%, -50%);
    max-width: 350px;
    width: 90%;
    background: #242323;
  }
}
@media (max-width: 425px) {
  .mesin-slot-bg {
    width: 140vw;
    height: 70vh;
    max-width: 650px;
    position: relative;
    top: 0;
    left: 52%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .gacha-container {
    position: absolute;
    height: 29vh;
    top: 49%;
    left: 50%;
    transform: translateX(-50%);
    width: 57vw;
    aspect-ratio: 3/4.5;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
  }
  .slot {
    width: 25%;
    height: 280px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .kotak-wrapper {
    position: relative;
    top: 15vh;
    left: 3vw;
    width: 90%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }
  .kotak-background {
    width: 90%;
    height: auto;
    top: -3%;
  }
  .tuas-slot {
    position: absolute;
    top: 130%;
    left: 30%;
    width: 38%;
    height: auto;
    z-index: 3;
    transform: translateY(-50%);
  }
  .modal-list-hadiah {
    position: absolute;
    left: 6%;
    top: 25%;
    transform: translate(-50%, -50%);
    max-width: 340px;
    width: 90%;
    background: #242323;
  }
}
@media (max-width: 375px) {
  .reel,
  .slot {
    display: flex;
  }
  body {
    background-position: center;
    height: 100vh;
  }
  .mesin-slot-bg {
    width: 160vw;
    height: 80vh;
    position: relative;
    top: 0;
    left: 52%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .gacha-container,
  .tuas-slot {
    position: absolute;
    z-index: 3;
  }
  .tuas-slot {
    top: 147%;
    left: 27%;
    width: 45%;
    height: auto;
    transform: translateY(-50%);
  }
  .gacha-container {
    height: 34vh;
    top: 54%;
    left: 49%;
    transform: translateX(-50%);
    width: 65vw;
    aspect-ratio: 3/4.5;
    overflow: hidden;
    pointer-events: none;
  }
  .slot {
    width: 25%;
    height: 280px;
    overflow: hidden;
    justify-content: center;
    align-items: flex-start;
  }
  .reel {
    flex-direction: column;
    gap: 0;
  }
  .reel img {
    width: 100%;
    height: 40px;
    object-fit: contain;
    display: block;
  }
  .info-modal {
    background: #222;
    color: #fff;
    text-align: left;
    padding: 10px;
    border-radius: 10px;
    max-width: 350px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    animation: 0.6s ease-out popIn;
    box-shadow: 0 0 25px rgb(255 255 0 / 0.6);
  }
  .kotak-wrapper {
    position: relative;
    top: 18vh;
    left: 3vw;
    width: 90%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }
  .logo-desktop {
    display: block;
    position: absolute;
    top: -3vh;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    z-index: 10;
  }
  .modal-list-hadiah {
    position: absolute;
    left: -5%;
    top: 25%;
    transform: translate(-50%, -50%);
    max-width: 250px;
    width: 90%;
    background: #242323;
  }
}
