body {
  margin: 0;
  padding: 0;
  background: url('https://vgogroup.sgp1.cdn.digitaloceanspaces.com/pohon/lapangan.png') no-repeat center top;
  background-size: 100% 100%;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-top {
  text-align: center;
  margin-top: 2px;
  margin-bottom: -210px;
}

.logo-top img {
  max-width: 350px;
}

.main-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 40px 20px;
  flex-direction: row;
  max-width: 1300px;
  width: 100%;
}

.tree-container {
  position: relative;
  width: 750px;
  height: 750px;
  top: 0;
  z-index: 1;
}

.tree {
  position: absolute;
  top: 19.5vh;
  left: -6vw;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.prize-box {
  position: absolute;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  z-index: 2;
  display: block;
  background: url('https://vgogroup.sgp1.cdn.digitaloceanspaces.com/pohon/kotaktutup.webp') no-repeat center;
  background-size: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  transform-origin: center;

}

.prize-box[data-index="1"] {
  top: 36%;
  left: -11%;
  width: 22%;
  height: 22%;
  transform: rotate(20deg);
}

.prize-box[data-index="2"] {
  top: 33%;
  left: 11%;
  width: 16%;
  height: 16%;
  transform: rotate(19deg);
}

.prize-box[data-index="3"] {
  top: 43%;
  left: 4%;
  width: 17%;
  height: 13%;
  transform: rotate(12deg);
}

.prize-box[data-index="4"] {
  top: 42%;
  left: 19%;
  width: 15%;
  height: 15%;
  transform: rotate(15deg);
}

.prize-box[data-index="5"] {
  top: 30%;
  left: 24%;
  width: 17%;
  height: 17%;
  transform: rotate(8deg);
}

.prize-box[data-index="6"] {
  top: 42%;
  left: 31%;
  width: 15%;
  height: 15%;
  transform: rotate(4deg);
}

.prize-box[data-index="7"] {
  top: 40.5%;
  left: 47%;
  width: 17%;
  height: 17%;
  transform: rotate(-10deg);
}

.prize-box[data-index="8"] {
  top: 33%;
  left: 37%;
  width: 16%;
  height: 16%;
}

.prize-box[data-index="9"] {
  top: 36%;
  left: 57.5%;
  width: 20%;
  height: 20%;
  transform: rotate(-10deg);
}


.form-content {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.form-frame {
  background: url('https://vgogroup.sgp1.cdn.digitaloceanspaces.com/pohon/papan.webp') no-repeat center center;
  background-size: 100% 100%;
  width: 600px;
  height: 650px;
  padding: 210px 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: 195px;
  position: relative;
  background-position-y: 100px;
}


#spinForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -5px;
}

#spinForm input {
  width: 70%;
  padding: 8px 15px;
  font-size: 22px;
  margin: 0 auto;
  text-align: center;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: block;
}

#spinForm button.btn {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: -65px;
}

.redeem-button {
  width: 100%;
  max-width: 350px;
  transition: transform 0.3s;
  margin-top: -35px;
}


#spinForm .d-flex {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: -10px;
  margin-top: 5px;
}

.btn-image {
  width: 100%;
  max-width: 300px;
  transition: transform 0.3s;
}


button:focus,
button:active,
a:focus,
a:active,
#spinForm .btn,
#spinForm .btn:focus,
#spinForm .btn:active {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.reward-modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.reward-image {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -65%);
  z-index: 2;
  max-width: 480px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 450px;
  height: 450px;
}

#voucherUsedText,
.voucher-text-inside-frame {
  position: absolute;
  bottom: -145px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 500;
  color: white;
  background-color: transparent;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 3;
}

@keyframes fall {
  to {
    transform: translateY(60vh) rotate(360deg);
  }
}

.falling-box {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  animation: fall 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.534);
  z-index: 9998;
  display: none;
}

.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  display: none;
  overflow: hidden;
  font-family: 'Arial', sans-serif;
}

.alert-header {
  background-color: #e53935;
  padding: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
}

.alert-icon {
  background-color: white;
  color: #e53935;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-divider {
  height: 1px;
  background-color: #ddd;
  margin: 0;
}

.alert-body {
  padding: 16px;
  text-align: center;
  font-size: 16px;
  color: #333;
}

.alert-footer {
  padding: 12px;
  display: flex;
  justify-content: center;
  background-color: #f5f5f5;
}

.alert-button {
  background-color: #e53935;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.alert-button:hover {
  background-color: #c62828;
}

#listHadiahModal .modal-dialog {
  max-width: 500px;
  width: 95%;
}

#listHadiahModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  text-align: center;
}

#listHadiahModal .modal-content img {
  max-width: 100%;
  height: auto;
}

#listHadiahModal .close {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 2rem;
  color: white;
  opacity: 1;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 5px 12px;
  line-height: 1;
}

#voucherUsedText {
  font-size: 16px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px #000;
}

.music-control {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

}

.music-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#musicToggle {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s;
}

#musicToggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.music-icon {
  font-size: 40px;
  transition: all 0.3s;
}

.music-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-right: 5px;
}

@media (max-width: 990px) {

  html,
  body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
  }

  body {
    background-image: url('https://vgogroup.sgp1.cdn.digitaloceanspaces.com/pohon/mobile-bg.png');
    background-size: 100% 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .logo-top {
    margin-bottom: -230px;
    z-index: 10;
    text-align: center;
  }

  .logo-top img {
    max-width: 300px;
    width: 100%;
    height: auto;
  }

  .main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 600px;
    gap: 0;
    padding: 0;
    margin-top: -10px;
    position: relative;
    z-index: 1;
  }

  .tree-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin-top: 10px;
    z-index: 0;
    top: 25vh;
  }

  .tree-container .tree {
    width: 90% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
  }

  .prize-box {
    background-size: contain !important;
    z-index: 2;
    position: absolute;
  }

  .prize-box[data-index="1"] {
    top: 17%;
    left: 13%;
    width: 90px;
    height: 90px;
  }

  .prize-box[data-index="2"] {
    top: 17%;
    left: 25%;
    width: 80px;
  }

  .prize-box[data-index="3"] {
    top: 20%;
    left: 35%;
    width: 55px;
    height: 55px;
  }

  .prize-box[data-index="4"] {
    top: 20%;
    left: 45%;
    width: 48px;
    height: 48px;
  }

  .prize-box[data-index="5"] {
    top: 19%;
    left: 52%;
    width: 80px;
    height: 80px;
  }

  .prize-box[data-index="6"] {
    top: 17%;
    left: 62%;
    width: 90px;
    height: 90px;
  }

  .prize-box[data-index="7"] {
    top: 7%;
    left: 38%;
    width: 83px;
    height: 83px;
    transform: rotate(10deg);
  }

  .prize-box[data-index="8"] {
    top: 12%;
    left: 58%;
    width: 43px;
    height: 43px;
  }

  .prize-box[data-index="9"] {
    top: 12%;
    left: 23%;
    width: 58px;
    height: 43px;
    transform: rotate(20deg);
  }

  .form-frame {
    width: 90%;
    max-width: 470px;
    background: url('https://cdn.jsdelivr.net/gh/MinionBiruu/repo-images@main/board.png') no-repeat center top;
    background-size: 80% 65%;
    padding: -10px 20px 40px;
    margin-top: -300px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    background-position-y: 210px;
  }

  .form-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
  }

  #spinForm {
    width: 80%;
    margin: 0;
  }

  #spinForm input {
    width: 85%;
    padding: 12px 20px;
    font-size: 20px;
    border: inherit;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 61px;
  }

  #spinForm button {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    display: flex;
    justify-content: center;
  }

  #spinForm button img.redeem-button {
    width: 120%;
    height: auto;
    max-width: 350px;
  }

  #spinForm .d-flex {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 5px;
  }

  .btn-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 15px;
  }

  .modal-content.reward-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }

  .reward-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 320px;
    height: 320px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
  }

  .reward-text h2 {
    font-size: 20px;
  }

  .music-control {
    top: 10px;
    left: 10px;
    padding: 6px 12px;
    position: absolute;
    z-index: 999;
  }

  .music-label {
    display: none;
  }

  .form-hidden-mobile {
    display: none !important;
  }

  #voucherUsedText,
  .voucher-text-inside-frame {
    position: absolute;
    bottom: -130px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 500;
    color: white;
    background-color: transparent;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 3;
  }
}

@media (max-width: 575px) {
  #listHadiahModal .modal-dialog {
    max-width: 95%;
  }

  #listHadiahModal .modal-content img {
    max-width: 100%;
    height: auto;
  }

  #listHadiahModal .close {
    font-size: 1.5rem;
    padding: 4px 10px;
    top: 0;
    right: 0;
  }
}