.luckywheels-wrap{
  padding: 20px 0;
  min-height: 100vh;
  width: 100%;
 background: url('/wp-content/uploads/2026/05/nentong.png');
  /*background: url('/wp-content/uploads/2026/05/bg-vongquay-scaled.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #e84d2d;*/
  /*background: linear-gradient(165deg, rgb(255, 217, 179) 0%, rgb(255, 184, 122) 20%, rgb(255, 158, 94) 40%, rgb(245, 138, 62) 60%, rgb(232, 116, 42) 80%, rgb(212, 90, 26) 100%);*/
  /*background: linear-gradient(181deg, #f87623 0%, #f87623 20%, #f87623 40%, #e84d2d 60%, #e84d2d 80%, #e84d2d 100%);*/
overflow: hidden;
position: relative;
background-size: cover;


margin: auto;
}

.sw-popup-confirm:hover,
.sw-popup-confirm{
  border-radius: 5px;
  background: #ef5e29;
  color: #fff;
}

/*.luckywheels-wrap:before{
  content: '';
   background: url('/wp-content/uploads/2026/05/fullnen.png');
   width: 100%;
   height: 100%;
   left: 0;
   top: 0;;
   position: absolute;
   background-size: contain;
   background-position: 50% 55px;
   background-repeat: no-repeat;
}*/
.luckywheels-wrap:before{
  content: '';
      background: url(/wp-content/uploads/2026/05/fullnen.png);
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      position: absolute;
      background-size: contain;
      background-position: 50% 96px;
      background-repeat: no-repeat;
      inset: 0;
      width: 1920px;
      /*height: 1200px;*/
      height: 1820px;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
  
}
.header-sw-wheel{
  text-align: center;
  z-index: 1;
      position: relative;
      top: 180px;
}
.footer-sw-wheel{
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.header-sw-wheel img{
  width: 750px;
  margin: 0 auto;
}
.footer-sw-wheel {
  width: 100%;
}
.footer-sw-wheel img{
  width: 790px;
  margin: 0 auto;
}
#spin-app {
  width: 100%;
  height: 100%;
}
#spin-app .sw-wrapper{
  /*background: url('/wp-content/uploads/2026/05/fullnen.png');*/
    background-repeat: no-repeat;
      background-size: contain;
      background-position: center;


}
.sw-wrapper{
position: absolute;
  left: 50%;
  /*top: 50%;*/
  top: calc(50% - 10px);
  transform: translate(-50%, -50%);
}
.sw-prize-bar {
  position: fixed;
  top: 16px;
  z-index: 20;
  width: min(320px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: 0 12px 32px rgba(125, 50, 5, 0.22);
  text-align: left;
}

.sw-prize-bar--left {
  left: max(6px, env(safe-area-inset-left));
}

.sw-prize-bar--right {
  right: max(6px, env(safe-area-inset-right));
}

.sw-prize-bar__title {
  padding: 13px 16px;
  background: #fff0df;
  color: #2d241f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sw-prize-bar__head,
.sw-prize-bar__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 58px;
  align-items: center;
  gap: 8px;
}

.sw-prize-bar--hide-remain .sw-prize-bar__head,
.sw-prize-bar--hide-remain .sw-prize-bar__item {
  grid-template-columns: minmax(0, 1fr) 48px;
}

.sw-prize-bar__head {
  padding: 13px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #a79c94;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.sw-prize-bar__head span:nth-child(2),
.sw-prize-bar__head span:nth-child(3),
.sw-prize-bar__total,
.sw-prize-bar__remain {
  text-align: center;
}

.sw-prize-bar__list {
  max-height: calc(100vh - 122px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sw-prize-bar__item {
  min-height: 74px;
  padding: 5px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fffdf8;
}

.sw-prize-bar__item:nth-child(2n) {
  background: #f5fbff;
}

.sw-prize-bar__reward {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sw-prize-bar__image,
.sw-prize-bar__placeholder {
  width: 40px;
  height: 40px;
  border: 1px solid #f3c8ff;
  border-radius: 10px;
  background: #ffffff;
}

.sw-prize-bar__image {
  display: block;
  object-fit: contain;
}

.sw-prize-bar__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #ffd260;
  color: #ff9f00;
  font-size: 18px;
}

.sw-prize-bar__meta {
  min-width: 0;
}

.sw-prize-bar__badge {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #fff0a8;
  color: #c84f00;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.sw-prize-bar__badge.is-special {
  background: #fff1b8;
  color: #c45100;
}

.sw-prize-bar__badge.is-first {
  background: #bdfcff;
  color: #0071bf;
}

.sw-prize-bar__badge.is-second {
  background: #ead7ff;
  color: #7b2fe0;
}

.sw-prize-bar__badge.is-third {
  background: #ffdacc;
  color: #bf3b12;
}

.sw-prize-bar__badge.is-fourth {
  background: #ffe6a8;
  color: #f08a00;
}

.sw-prize-bar__meta strong {
  display: -webkit-box;
  overflow: hidden;
  color: #2c2825;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sw-prize-bar__total,
.sw-prize-bar__remain {
  color: #6d625b;
  font-size: 13px;
  font-weight: 800;
}

.sw-prize-bar__remain {
  color: #009b63;
}

.sw-prize-bar__remain.is-sold-out {
  color: #f01826;
}

.sw-wrapper {
  width: 320px;
  margin: auto;
}

.sw-wheel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

canvas {
  position: relative;
  z-index: 1;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  width: auto;
  pointer-events: none;
}

.sw-pointer-image,
.sw-pointer-svg {
  display: block;
  object-fit: contain;
}

#spinBtn {
  margin-top: 20px;
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
}

#spinCenterBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  padding: 0;
}
button[disabled],
#spinCenterBtn:disabled{
  opacity: 1 !important;
  border: none !important;
  background-color: transparent; !important;
}
/* #spinBtn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
} */

/* popup */
.sw-popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sw-popup-content {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  animation: pop 0.3s ease;
}

.sw-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  background: transparent;
  top: -5px;
  right: -5px;
}

.sw-popup-close:hover {
  background: #e2e2e2;
  background: transparent;
  top: -5px;
  right: -5px;
}

.sw-popup-reward-image {
  display: block;
  width: 86px;
  height: 86px;
  margin: -20px auto 10px auto;
  object-fit: contain;
}

.sw-auth-popup__content {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  padding: 28px 24px 24px;
}

.sw-auth-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #333333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sw-auth-popup__message {
  margin: 0 0 14px;
  color: #5f5a56;
  font-size: 14px;
  line-height: 1.4;
}

.sw-auth-popup__form {
  display: grid;
  gap: 10px;
}

.sw-auth-popup__form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #ded7d0;
  border-radius: 8px;
  font-size: 15px;
}

.sw-auth-popup__form button[type="submit"] {
  padding: 12px 14px;
  border: 0;
  border-radius: 24px;
  background: #f4511e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.sw-auth-popup__form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0 }
  to { transform: scale(1); opacity: 1 }
}
/* #spinCenterBtn span{
  transition: transform .3s cubic-bezier(.4,0,.2,1);
 animation: zoomPulse 1.5s ease-in-out infinite;
} */

@keyframes zoomPulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.2);
  }
  100% {
      transform: scale(1);
  }
}

@media screen (max-width: 767px) {
  .sw-prize-bar {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: 44vh;
    border-radius: 12px;
  }

  .sw-prize-bar__list {
    max-height: calc(44vh - 94px);
  }

  .sw-prize-bar__item {
    min-height: 76px;
    padding: 10px 12px;
  }
}




@media screen and (max-width: 1920px) {
  .luckywheels-wrap{
          min-height: 100vh;
          /*width: min(90vw, 700px);*/
          background-size: cover;
          background-position: center;
      }
}
@media screen and (max-width: 1024px) {
  .luckywheels-wrap{
      min-height: 100vh;
      width: 100%;
      background-size: cover;
      background-position: center;
      overflow: hidden;
  }
  .header-sw-wheel img{
    width: 800px;
  }
 /* .footer-sw-wheel img {
    width: 800px;
   max-width: 800px;
  }*/
  .header-sw-wheel {
      top: 140px;
  }
  .footer-sw-wheel {
    bottom: 50px;
  }
  body.customize-support{
    overflow: hidden;
  }
}
