* {
  box-sizing: border-box;
}

.dis-none, footer,#header, .breadcrumb-shop, .prefooter-customer {
  display: none !important;
}

/* ===== CONTAINER TỔNG ===== */
.quay-container {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.quay-container.show {
  display: block;
}

.overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.overlay.show {
  display: block;
}

/* ===== LOGIN POPUP ===== */
#loginBackdropHome {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100002;
}

#loginBackdropHome.show {
  display: block;
}

#phoneForm {
  margin: 0 auto;
  padding: 20px 12px;
  text-align: center;
  background-image: url(https://cdn.hstatic.net/files/1000253775/file/vong_quay_nen.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  height: 100%;
}
.content-form{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  height: 100%;
}
#phoneForm::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 0, 0, 0.22);
  pointer-events: none;
}

#phoneForm > * {
  // position: relative;
  z-index: 2;
}

#phoneForm h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 12px;
}

#formSubmitPhone {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#phoneForm input[type="text"] {
    width: 100%;
    padding: 20px 14px;
    margin: 10px 0;
    outline: none;
    font-size: 18px;
    background-image: url(https://cdn.hstatic.net/files/1000253775/file/vong_quay_typo_copy.png);
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
}

.error-phone {
  color: #fff;
  font-size: 13px;
  text-align: left;
  margin-top: 8px;
}

.quay-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

#loginBtn,
.btn-thele-first {
    padding: 13px 25px;
    border-radius: 18px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    border: 1px solid white;
}

/* ===== THỂ LỆ ===== */
.spin-instructions {
  font-family: Arial, sans-serif;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.55;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
}

.spin-instructions h2,
.spin-instructions h3 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 8px;
}

.spin-instructions ul {
  list-style-type: disc;
  padding-left: 18px;
  margin: 8px 0 12px;
  text-align: left;
}

.spin-instructions ul li {
  margin-bottom: 6px;
}

.note {
  font-style: italic;
  color: #fff;
  margin-top: 12px;
}

.time {
  font-weight: bold;
  margin-top: 12px;
}

.thele-content {
  margin-top: 0;
  height: 0;
  overflow-y: auto;
  color: #fff;
  font-size: 14px;
}

.thele-content p {
  text-align: left;
}

.thele-content.show {
  height: 280px;
  padding: 12px;
  background: #9A1016;
  border-radius: 12px;
  animation: expandHeight 0.35s ease forwards;
}

#phoneForm .thele-first {
  margin: 12px -4px 0;
}

.thele-content::-webkit-scrollbar {
  width: 4px;
}

.thele-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,.25);
  border-radius: 999px;
}

.thele-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.65);
  border-radius: 999px;
}

.thele-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.85);
}

/* ===== VÒNG QUAY ===== */
#wheelContainer {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 100002;
  padding: 12px 10px 16px;
  text-align: center;
          background-image: url(https://cdn.hstatic.net/files/1000253775/file/vong_quay_nen.png);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
      height: 100%;
}
.wheel-play{
    display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
      height: 100%;
}
.wheel-shell {
  position: relative;
  width: 100%;
}

.wheel-container {
  position: relative;
  width: min(86vw, 360px);
  height: min(86vw, 360px);
  margin: 0 auto;
}

// #wheelContainer .arrow {
//   position: absolute;
//   top: -8px;
//   left: 50%;
//   transform: translateX(-50%);
//   width: 36px;
//   height: 36px;
//   background: linear-gradient(145deg, #FFF7C1, #FFB100, #822600);
//   clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
//   border: 3px solid #FFD700;
//   border-radius: 6px;
//   box-shadow: 0 0 6px rgba(255, 191, 0, 0.6);
//   z-index: 15;
// }

#wheelContainer .wheel-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

// #wheelContainer .wheel-bg::before {
//   content: "";
//   position: absolute;
//   top: -10px;
//   left: -10px;
//   right: -10px;
//   bottom: -10px;
//   border-radius: 50%;
//   background:
//     linear-gradient(to right, #FFF7C1, #FF9600, #822600, #FFECC3, #FFB100, #652500, #C31F00),
//     radial-gradient(circle, #FFF7C1, #FF9600, #822600, #FFECC3, #FFB100, #652500, #C31F00);
//   z-index: -1;
// }

// #wheelContainer .wheel {
//   width: 100%;
//   height: 100%;
//   border-radius: 50%;
//   transition: transform 4s cubic-bezier(0.25, 0.1, 0.25, 1);
//   background: conic-gradient(
//     #FFEAA6 0deg 45deg,
//     #BC0000 45deg 90deg,
//     #FFEAA6 90deg 135deg,
//     #BC0000 135deg 180deg,
//     #FFEAA6 180deg 225deg,
//     #BC0000 225deg 270deg,
//     #FFEAA6 270deg 315deg,
//     #BC0000 315deg 360deg
//   );
//   position: relative;
//   overflow: hidden;
// }

#wheelContainer .prize-labels {
  position: absolute;
  inset: 0;
}

#wheelContainer .prize-labels span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  z-index: 6;
  white-space: nowrap;
}

// #wheelContainer .prize-labels .span-1 {
//   transform: rotate(-3deg) translateY(-81px) rotate(-63deg);
//   color: red;
// }
// #wheelContainer .prize-labels .span-2 {
//   transform: rotate(50deg) translateY(-59px) rotate(-72deg);
//   color: yellow;
// }
// #wheelContainer .prize-labels .span-3 {
//   transform: rotate(120deg) translateY(-43px) rotate(-96deg);
//   color: red;
// }
// #wheelContainer .prize-labels .span-4 {
//   transform: rotate(183deg) translateY(-74px) rotate(-119deg);
//   color: yellow;
// }
// #wheelContainer .prize-labels .span-5 {
//   transform: rotate(235deg) translateY(-128px) rotate(-299deg);
//   color: red;
// }
// #wheelContainer .prize-labels .span-6 {
//   transform: rotate(262deg) translateY(-154px) rotate(-279deg);
//   color: yellow;
// }
// #wheelContainer .prize-labels .span-7 {
//   transform: rotate(288deg) translateY(-138px) rotate(-266deg);
//   color: red;
// }
// #wheelContainer .prize-labels .span-8 {
//   transform: rotate(319deg) translateY(-131px) rotate(-255deg);
//   color: yellow;
// }

.sao-vang {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%);
  z-index: 7;
}

.sao-bangron {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
}

.sao-buc {
  width: 150px;
  height: auto;
  position: absolute;
  left: 50%;
  bottom: -52px;
  transform: translateX(-50%);
  z-index: 3;
}

.result-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -130px) scale(0.8);
  min-width: 110px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  z-index: 16;
  opacity: 0;
  transition: all .35s ease;
  pointer-events: none;
}

.result-badge.show {
  opacity: 1;
  transform: translate(-50%, -145px) scale(1);
}

/* ===== NÚT DƯỚI VÒNG QUAY ===== */
.btn-start-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 65px;
}
  .modal-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(https://cdn.hstatic.net/files/1000253775/file/vong_quay_nen.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
#spinBtn,
#button-gift {
    width: 50%;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    cursor: pointer;
    width: 200px;
    border-radius: 7px;
    border: none;
}
#spinBtn {
  background-image: url(https://cdn.hstatic.net/files/1000253775/file/vong_quay-17_6a241cc0e47d4859965f1cd4098f910d.png);
}

#button-gift {
  background-image: url(https://file.hstatic.net/1000253775/file/button_gi_i_th__ng.png);
}

/* ===== POPUP KẾT QUẢ ===== */
.success-lucky,
.gift-img {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 100003;
  width: min(360px, calc(100vw - 24px));
  border-radius: 18px;
  // background: #9A1016;
  // box-shadow: 0 20px 46px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s ease;
  // overflow: hidden;
}

.gift-img {
  width: min(535px, calc(100vw - 24px));
}

.overlay-new.show {
  display: block;
}

.success-lucky.click {
  animation: rise-up 1s ease forwards;
}

.success-lucky-content,
.gift-img-content {
  position: relative;
  // padding: 12px;
}

  .success-info {
    text-align: center;
  }

  .success-info img {
    max-width: 100%;
    border-radius: 12px;
  }
.success-info img {
  width: 100%;
  display: block;
  border-radius: 18px;
  // padding: 4px;
}

.code-content {
  padding: 10px;
  color: #980d12;
  background: #fff;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  margin: 8px 10px 0;
  text-align: center;
  word-break: break-word;
}

/* ===== NÚT ACTION TRONG POPUP ===== */
.btn-content,
.btn-conten-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.btn-thele,
.btn-thele-first,
.btn-muangay,
.btn-saochep,
.btn-nhanqua,
.btn-danhan,
#startBtn {
  height: 40px;
  border: none;
  border-radius: 999px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  cursor: pointer;
}

.btn-thele,
.btn-thele-first {
  background-image: url(https://file.hstatic.net/1000253775/file/button-05.jpg);
  grid-column: 1 / span 2;
  grid-row: 2;
}

.btn-muangay {
  background-image: url(https://file.hstatic.net/1000253775/file/button-01.jpg);
  grid-column: 1;
  grid-row: 1;
}

.btn-saochep {
  background-image: url(https://file.hstatic.net/1000253775/file/button-06.jpg);
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

.btn-nhanqua {
  background-image: url(https://file.hstatic.net/1000253775/file/button-04.jpg);
  grid-column: 1;
  grid-row: 1;
}

.btn-danhan {
  background-image: url(https://file.hstatic.net/1000253775/file/button-04.jpg);
  grid-column: 2;
  grid-row: 1;
}

#startBtn {
  background-image: url(https://file.hstatic.net/1000253775/file/button-02.png);
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

/* ===== NÚT ĐÓNG ===== */
.success-close,
.img-close,
.error-close {
    position: absolute;
    top: -12px;
    right: -11px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: white;
    color: black;
    z-index: 20;
    cursor: pointer;
    font-size: 17px;
    line-height: 29px;
    padding: 0;
    z-index: 50;
    font-weight: 700;
}

.error-close {
  background: #9B1A1F;
  border: 2px solid #fff;
}

/* ===== REVEAL 3D ===== */
#reveal3d {
  position: absolute;
  z-index: 9999;
  width: 140px;
  pointer-events: none;
  opacity: 0;
  transform-style: preserve-3d;
  perspective: 1200px;
  transition: none;
}

#reveal3d::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.55) 0%, rgba(255, 215, 0, 0) 70%);
  z-index: -1;
  filter: blur(8px);
}

#reveal3d .reveal-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8dc 0%, #ffd54f 100%);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.35),
    0 8px 18px rgba(255, 193, 7, 0.45);
  transform-style: preserve-3d;
  border: 2px solid rgba(255, 255, 255, 0.65);
}
/* từng state */
#spinBtn[data-state="ready"] {
  background-image: url('https://cdn.hstatic.net/files/1000253775/file/vong_quay-17_6a241cc0e47d4859965f1cd4098f910d.png');
}

#spinBtn[data-state="locked"] {
  background-image: url('https://cdn.hstatic.net/files/1000253775/file/gemini_generated_image_y2awm0y2awm0y2aw.png');
}

#spinBtn[data-state="joined"] {
  background-image: url('https://cdn.hstatic.net/files/1000253775/file/gemini_generated_image_y2awm0y2awm0y2aw.png');
}
#reveal3d img {
  display: block;
  width: 100%;
  height: auto;
}

#reveal3d .reveal-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

#reveal3d.show {
  animation: prizePop3D 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

#reveal3d.hide {
  animation: prizeFadeOut 0.45s ease forwards;
}

/* ===== ANIMATION ===== */
@keyframes prizePop3D {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotateX(72deg) translateY(30px);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) rotateX(0deg) translateY(-25px);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05) rotateX(-6deg) translateY(-18px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(0deg) translateY(-12px);
  }
}

@keyframes prizeFadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(-12px);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) translateY(-35px);
  }
}

@keyframes expandHeight {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: 280px;
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  // #phoneForm,
  // .success-lucky,
  // .gift-img {
  //   width: calc(100vw - 20px);
  // }

  // #wheelContainer {
  //   width: calc(100vw - 12px);
  // }

  .wheel-container {
    width: min(88vw, 330px);
    height: min(88vw, 330px);
  }

  .btn-start-content {
    margin-top: 50px;
  }

  .code-content {
    font-size: 18px;
    letter-spacing: 2px;
  }

  #reveal3d {
    width: 118px;
  }

  #wheelContainer .prize-labels span {
    font-size: 12px;
  }

  .sao-vang {
    width: 78px;
    height: 78px;
  }

  .sao-buc {
    width: 128px;
  }
}