:root {
  /* Kích thước mặc định cho PC */
  --wheel-size: 500px;
  --wheel-origin: 250px; /* Bằng 1/2 size */
}

@media (max-width: 768px) {
  :root {
    /* Kích thước tự động co giãn cho Mobile */
    --wheel-size: 90vw; 
    --wheel-origin: 45vw; /* Bằng 1/2 size */
  }
}

.hc-luckywheel ul,
.hc-luckywheel li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hc-luckywheel {
  position: relative;
  width: var(--wheel-size); 
  height: var(--wheel-size); 
  border-radius: 50%;
  box-shadow: 0 2px 3px #333, 0 0 2px #000;
}

.hc-luckywheel-container {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  background-clip: padding-box;
  background-image: url('VX_20tr.png');
  background-size: cover;
  /* 12 prizes: mỗi ô 30°, offset = 30/2 = 15° để kim trỏ giữa ô đầu tiên */
  transform: rotate(15deg);
  background-position: center;
  background-repeat: no-repeat;
  -webkit-transition: transform 6s ease;
  transition: transform 6s ease;
}

.top-banner {
    display: block;
    width: 100%;
    max-width: 400px;
    position: fixed;
    top: 13%;
    left: 50%;
    transform: translate(-50%, -50%); 
}

.bottom-text {
    max-width: 600px;
    margin: 720px auto 50px;
    padding: 20px;
    text-align: center;
}
.bottom-text h2,.bottom-text h3 {
      color: #ffffff;
}

.hc-luckywheel-container canvas {
  width: inherit;
  height: inherit;
  border-radius: 50%;
}

.hc-luckywheel-list {
  position: absolute;
  left: 0;
  top: 0;
  width: inherit;
  height: inherit;
  z-index: 2;
}

.hc-luckywheel-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-weight: bold;
}

.hc-luckywheel-item span {
  position: relative;
  font-size: 11px !important; /* 12 ô, điều chỉnh phù hợp */
  display: block;
  padding-top: calc(var(--wheel-size) / 10);
  writing-mode: vertical-rl; 
  text-orientation: mixed;
  margin: 0 auto;
  text-align: center;
  -webkit-transform-origin: 50% var(--wheel-origin);
  -ms-transform-origin: 50% var(--wheel-origin);
  transform-origin: 50% var(--wheel-origin);
  visibility: hidden;

}

.hc-luckywheel-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  border-radius: 50%;
  color: #f4e9cc;
  text-align: center;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hc-luckywheel-btn img {
  width: 50%;
  height: auto;
  max-width: 150px;
}

body { margin: 0; padding: 0; height: 100vh; width: 100%; }

.bg {
  background-image: url('BG-PC.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
/* Ipad */
@media (min-width: 768px) and (max-width: 1024px) {
  .bg {
    background-image: url('BG-IPAD.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* iPad không hỗ trợ fixed tốt */
    background-repeat: no-repeat;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Fix Safari/iPad */
  }
}
/* Mobile */
@media (max-width: 768px) {
  .hc-luckywheel-btn img {
    max-width: 90px;
  }
  .hc-luckywheel-item span {
    position: relative;
    font-size: 9px !important; /* Tăng so với bản cũ (6px) vì ô rộng hơn */
  }
  .hc-luckywheel {
    position: fixed;
    top: 55% !important;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .bg {
    background-image: url('BG-MB.jpg');
  }   
.bottom-text {
    max-width: 600px;
    margin: 550px auto 50px;
    padding: 20px;
    text-align: center;
}
.top-banner {
    display: block;
    width: 100%;
    max-width: 400px;
    position: fixed;
    top: 18%;
    left: 50%;
    transform: translate(-50%, -50%); 
}
}