:root {
    --wheel-size: 400px;
    --progress-bar-width: 100%;
    --progress-bar-height: 20px;
    --primary-color: #fd7e14;
    --border-color: #ffd700;
    --shadow-color: #ffd700;
    --background-color: #00aaff;
    --text-color: #fff;
}

#index-section {
    background-image: url('/images/giftcode/giftcode.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
}
#menu-right-section, #nav-section {
    color: #000;
}

.luckywheel-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: #fff;
}
.luckywheel-spin {
    position: relative;
    width: 100%;
    max-width: var(--wheel-size);
    aspect-ratio: 1 / 1;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.luckywheel-info {
    background: #fd7e1461;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3), inset 0 0 10px rgba(253, 126, 20, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(253, 126, 20, 0.6);
    outline: 1px solid rgba(253, 126, 20, 0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 10px;
    gap: 20px;
}

.wheel {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.luckywheel-left-img,
.luckywheel-right-img,
.luckywheel-center-img {
    position: absolute;
    z-index: 1;
}

.luckywheel-left-img {
    left: -20px;
    width: 125px;
    bottom: -36px;
    filter: saturate(0.5);
}

.luckywheel-right-img {
    right: -30px;
    width: 150px;
    bottom: -30px;
    filter: saturate(0.5);
}

.luckywheel-center-img {
    width: 100px;
    filter: opacity(0.5);
}

.progress-bar {
    width: var(--progress-bar-width);
    height: var(--progress-bar-height);
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(255, 255, 255, 0.8);
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.02s linear;
    position: absolute;
    left: 0;
    z-index: 1;
    border-radius: 0;
}

.progress-a {
    background: url('/images/svg/golden-ticket.svg') no-repeat center;
    background-size: contain;
    position: absolute;
    height: 100%;
    width: 5%;
    left: 70%;
    z-index: 0;
    background-color: #fd7e14;
}

.progress-past-a {
    height: 100%;
    background: #00b7eb;
    width: 0%;
    transition: width 0.02s linear;
    position: absolute;
    left: 70%;
    z-index: 1;
}

.progress-y {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.02s linear;
    position: absolute;
    left: 75%;
    z-index: 1;
}

.divider {
    position: absolute;
    height: 100%;
    width: 2px;
    background: var(--text-color);
    left: 70%;
    z-index: 2;
}

.divider-after {
    position: absolute;
    height: 100%;
    width: 2px;
    background: var(--text-color);
    left: 75%;
    z-index: 2;
}

.spin-button {
    cursor: pointer;
    user-select: none;
    background: #fd7e1461;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3), inset 0 0 10px rgba(253, 126, 20, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(253, 126, 20, 0.6);
    outline: 1px solid rgba(253, 126, 20, 0.8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.spin-button.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.luckywheel-ticket {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
}
.luckywheel-ticket-daily {
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    outline: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
}
.luckywheel-ticket-daily img {
    width: 30px;
}
.water-bottle-container {
    position: absolute;
    width: 38px; /* 30px × 1.25 ≈ 37.5px → 38px */
    height: 62px; /* 49.67px × 1.25 ≈ 62.09px → 62px */
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), inset 0 0 4px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px); /* 2.67px × 1.25 ≈ 3.34px → 3px */
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    outline: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px 4px 8px 8px; /* 3.33px, 6.67px × 1.25 → 4px, 8px */
    overflow: hidden;
    top: 0px; /* 0.33px × 1.25 ≈ 0.41px → 0px */
    left: 2px; /* 1.33px × 1.25 ≈ 1.66px → 2px */
}

.water-bottle-container canvas {
    width: 100%;
    height: 100%;
}

.red .water {
    display: none; /* Ẩn phần .water tĩnh */
}

.bottle {
    display: inline-block;
    width: 42px;
    position: absolute;
    right: 15px;
    top: 40px;
}

.bottle:after {
    height: 6px; /* 4.67px × 1.25 ≈ 5.84px → 6px */
    width: 42px; /* 33.33px × 1.25 → 42px */
    border-radius: 19px/4px; /* 15.33px/3.33px × 1.25 → 19px/4px */
    box-shadow: 0 0px 2px -1px rgba(0, 0, 0, 0.2), 0 1px 4px -1px rgba(0, 0, 0, 0.1);
    bottom: -3px; /* -2.53px × 1.25 ≈ -3.16px → -3px */
    z-index: 0;
}

.bottle.red:before {
    height: 6px; /* 4.67px × 1.25 → 6px */
    width: 42px; /* 33.33px × 1.25 → 42px */
    border-radius: 19px/4px;
    box-shadow: 0 1px 4px -1px rgba(0, 204, 255, 0.3), 0 1px 6px -1px rgba(0, 204, 255, 0.4);
    bottom: -1px; /* -1px × 1.25 ≈ -1.25px → -1px */
    z-index: 0;
}

.bottle_top {
    height: 13px; /* 10px × 1.25 ≈ 12.5px → 13px */
    width: 33px; /* 26.67px × 1.25 ≈ 33.34px → 33px */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: none;
    border-bottom: none;
    margin: 0px auto;
    background: rgba(255, 255, 255, 0.15);
}

.bottle_top:after, .bottle_top:before {
    height: 4px; /* 3.33px × 1.25 ≈ 4.16px → 4px */
    width: 33px; /* 26px × 1.25 ≈ 32.5px → 33px */
    border-radius: 19px/4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    left: 0px; /* -0.33px × 1.25 ≈ -0.41px → 0px */
    box-shadow: 0px 0px 3px rgba(255, 255, 255, 0.4) inset;
}

.bottle_top:after {
    top: -3px; /* -2px × 1.25 ≈ -2.5px → -3px */
    box-shadow: 0px 0px 3px rgba(255, 255, 255, 0.4) inset, 0px 1px 1px -0px rgba(255, 255, 255, 0.2);
}

.bottle_top:before {
    top: 10px; /* 8px × 1.25 ≈ 10px */
    box-shadow: 0px 0px 3px rgba(255, 255, 255, 0.3) inset;
}

.bottle_neck {
    height: 8px; /* 6.67px × 1.25 ≈ 8.34px → 8px */
    width: 26px; /* 20.67px × 1.25 ≈ 25.84px → 26px */
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: none;
    border-bottom: none;
    margin: 0px auto;
}

.bottle_neck:after, .bottle_neck:before {
    height: 3px; /* 2.67px × 1.25 ≈ 3.34px → 3px */
    width: 26px; /* 20.67px × 1.25 → 26px */
    border-radius: 13px/3px; /* 10px/2.67px × 1.25 → 13px/3px */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: none;
    left: 0px; /* -0.33px × 1.25 → 0px */
}

.bottle_neck:after {
    top: -2px; /* -1.33px × 1.25 ≈ -1.66px → -2px */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.05);
}

.bottle_neck:before {
    top: 6px; /* 5px × 1.25 ≈ 6.25px → 6px */
}

.bottle_main {
    height: 63px; /* 50px × 1.25 ≈ 62.5px → 63px */
    position: relative;
    width: 41px; /* 32.67px × 1.25 ≈ 40.84px → 41px */
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: none;
    border-radius: 4px; /* 3.33px × 1.25 ≈ 4.16px → 4px */
}

.bottle_main:after, .bottle_main:before {
    height: 5px; /* 4px × 1.25 ≈ 5px */
    width: 40px; /* 32px × 1.25 ≈ 40px */
    border-radius: 19px/4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    left: 0px; /* -0.33px × 1.25 → 0px */
}

.bottle_main:after {
    top: -3px; /* -2.33px × 1.25 ≈ -2.91px → -3px */
    box-shadow: 0px 0px 3px rgba(255, 255, 255, 0.4) inset, 0px 1px 1px -0px rgba(255, 255, 255, 0.3), 0px 0px 1px rgba(0, 0, 0, 0.05) inset, 0px 0px 3px rgba(255, 255, 255, 0.5) inset, 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
}

.bottle_main:before {
    top: 60px; /* 47.67px × 1.25 ≈ 59.59px → 60px */
    box-shadow: 0px 0px 3px rgba(255, 255, 255, 0.5) inset, 0px 0px 1px rgba(0, 0, 0, 0.1) inset;
}

.bottle_mouth {
    height: 22px; /* 17.33px × 1.25 ≈ 21.66px → 22px */
    width: 18px; /* 14.67px × 1.25 ≈ 18.34px → 18px */
    margin: 0px auto;
    position: relative;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-top: none;
    border-bottom: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 5%, rgba(255, 255, 255, 0) 95%, rgba(255, 255, 255, 0.2));
    box-shadow: 0px 0px 3px rgba(255, 255, 255, 0.3);
}

.bottle_mouth:after {
    height: 3px; /* 2px × 1.25 ≈ 2.5px → 3px */
    width: 18px; /* 14.67px × 1.25 → 18px */
    border-radius: 10px/3px; /* 8.33px/2px × 1.25 → 10px/3px */
    border: 1px solid rgba(255, 255, 255, 0.4);
    left: 0px; /* -0.33px × 1.25 → 0px */
    top: -2px; /* -1.33px × 1.25 ≈ -1.66px → -2px */
    z-index: 1;
    box-shadow: 0px 0px 1px rgba(255, 255, 255, 0.3);
}

.bottle_inner {
    height: 62px; /* 49.67px × 1.25 ≈ 62.09px → 62px */
    width: 92%;
    margin: 0px auto;
    border-radius: 4px 4px 8px 8px/4px;
    border: 1px solid rgba(0, 0, 0, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom-width: 0px; /* 0.17px × 1.25 ≈ 0.21px → 0px */
    position: relative;
    box-shadow: 0px 0px 1px rgba(255, 255, 255, 0.4) inset, 0px 0px 3px rgba(255, 255, 255, 0.5) inset, 0px 0px 2px rgba(255, 255, 255, 0.4);
    top: 0px; /* 0.33px × 1.25 → 0px */
    overflow: hidden;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottle_inner canvas#waterCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}

.red .water {
    display: none; /* Ẩn phần .water tĩnh */
}

.bottle_top .highlight {
    display: block;
    height: 13px; /* 10px × 1.25 → 13px */
    width: 8px; /* 6.67px × 1.25 ≈ 8.34px → 8px */
    position: absolute;
    left: 2px; /* 1.67px × 1.25 ≈ 2.09px → 2px */
    top: 2px; /* 1.67px × 1.25 → 2px */
    transform: skew(0deg, 5deg);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.5) 4%, rgba(255, 255, 255, 0.2) 98%, rgba(255, 255, 255, 0));
}

.bottle_top .highlight:after {
    height: 13px; /* 10px × 1.25 → 13px */
    width: 1px; /* 0.67px × 1.25 ≈ 0.84px → 1px */
    left: -1px; /* -1px × 1.25 → -1px */
    top: 0px; /* -0.33px × 1.25 → 0px */
    transform: skew(0deg, 5deg);
    background: rgba(255, 255, 255, 0.2);
}

.bottle_main .highlight {
    display: block;
    height: 58px; /* 50px × 1.25 → 63px */
    width: 10px; /* 8.33px × 1.25 ≈ 10.41px → 10px */
    position: absolute;
    left: 4px; /* 3.33px × 1.25 ≈ 4.16px → 4px */
    top: 3px; /* 2px × 1.25 ≈ 2.5px → 3px */
    transform: skew(0deg, 6deg);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.4) 4%, rgba(255, 255, 255, 0.15) 98%, rgba(255, 255, 255, 0));
    z-index: 2;
}

.bottle_main .highlight:after {
    height: 63px; /* 50px × 1.25 → 63px */
    width: 2px; /* 1.33px × 1.25 ≈ 1.66px → 2px */
    left: -3px; /* -2px × 1.25 ≈ -2.5px → -3px */
    top: 0px;
    transform: skew(0deg, 3deg);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 80%);
}

.bottle_neck .highlight {
    display: block;
    height: 8px; /* 6.67px × 1.25 → 8px */
    width: 10px; /* 8.33px × 1.25 ≈ 10.41px → 10px */
    position: absolute;
    left: 1px; /* 0.67px × 1.25 ≈ 0.84px → 1px */
    top: 3px; /* 2px × 1.25 ≈ 2.5px → 3px */
    transform: skew(0deg, 6deg);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3) 4%, rgba(255, 255, 255, 0.1) 98%, rgba(255, 255, 255, 0));
}
.luckywheel-reward-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 10px;
}
.journey-reward-box {
    width: max-content; /* Sử dụng độ rộng tự động theo ảnh */
    animation: glow 1s ease-in-out infinite;
    background: #e9ecef;
}
#customBody {
    max-height: 100vh;
    background: #fff;
}
#customBody img {
    width: 100%;
    height: auto;
}
.close {
    position: fixed;
    right: 10px;
    top: 10px;
    border: 1px solid #ccc !important;
    margin: 0 auto;
    padding: 5px !important;
    border-radius: 50%;
}
/* Responsive cho điện thoại */
@media (max-width: 576px) {
    .luckywheel-spin {
        max-width: 100%;
        padding: 0 10px;
    }

    .luckywheel-left-img {
        left: 0;
        width: 110px;
    }

    .luckywheel-right-img {
        right: 0;
        width: 125px;
    }

    .spin-button {
        padding: 8px 16px;
        font-size: 16px;
    }
}