.entry-count-wrap {
    position: fixed;
    right: 0;
    bottom: 20px;
    z-index: 9999;
}

.entry-count-wrap.count.shell-promo-entry.high-bottom.LEFT_BOTTOM {
    padding: 0;
    background: transparent;
    border: none;
}

.am-icon.am-icon-entry_close_94e2c122.am-icon-md.entry-close {
    display: none;
}

.entry-arrow {
    display: none;
}

.swiper-container-wrapper {
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: auto;
}

.swiper-container {
    width: 250px;
    height: 250px !important;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.swiper-wrapper {
    height: 250px !important;
    align-items: flex-end;
    transform: translate3d(0px, 0px, 0px) !important;
}

.swiper-slide {
    width: 250px !important;
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 1 !important;
    visibility: visible !important;
}

.item-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
}

.item-img {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-radius: 0;
}

.item-img img {
    width: 80px;
    height: 250px;
    object-fit: contain;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.CASH_VOUCHER .item-img {
    background: transparent;
    box-shadow: none;
    display: none;
}

.mc-vendor-item .item-img {
    background: transparent;
    box-shadow: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.swiper-notification {
    display: none;
}

@media (min-width: 768px) {
    .swiper-container {
        width: 250px;
        height: 250px !important;
    }

    .swiper-slide {
        width: 250px !important;
        height: 250px;
    }

    .swiper-wrapper {
        height: 250px !important;
    }

    .item-img img {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 992px) {
    .swiper-container {
        width: 150px;
        height: 150px !important;
    }

    .swiper-slide {
        width: 150px !important;
        height: 150px;
    }

    .swiper-wrapper {
        height: 150px !important;
    }

    .item-img img {
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 1200px) {
    .swiper-container {
        width: 113px;
        height: 142px !important;
    }

    .swiper-slide {
        width: 113px !important;
        height: 142px;
    }

    .swiper-wrapper {
        height: 142px !important;
    }

    .item-img img {
        width: 113px;
        height: 142px;
    }
}

.ticket-popup-wrap.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.ticket-popup-wrap.top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ticket-popup-wrap.top.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ticket-popup-wrap.top.active::before {
    opacity: 1;
    pointer-events: auto;
}

.ticket-content-wrapper {
    position: relative;
    background: transparent;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    pointer-events: none;
    overflow-y: auto;
}

.ticket-popup-wrap.top.active .ticket-content-wrapper {
    transform: translateY(0);
    pointer-events: auto;
   overflow-x: hidden;
}

.header-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 140px;
    background: transparent;
    background-image: url('../images/header-title.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 2;
    pointer-events: auto;
}

.ribbon-container {
    position: absolute;
    bottom: -210px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background-image: url('../images/ribbon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.ribbon-text {
    color: #fff;
    font-weight: bold;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-top: 18px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.ticket-popup {
    width: 86%;
    max-width: 800px;
    height: auto;
    min-height: 400px;
    background: transparent;
    border: none;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    margin-top: 40px;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
    background-image: url('../images/x-circle.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: auto;
}

.close-btn:hover {
    transform: scale(1.1);
}

.close-btn::before,
.close-btn::after {
    display: none;
}

.reward-hero {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.reward-light {
    position: absolute;
    width: 90%;
    max-width: 520px;
    animation: spin 12s linear infinite;
    z-index: 1;
}

.reward-chest {
    position: relative;
    width: 200px;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
    height: 200px;
}

.ticket-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    z-index: 3;
    position: relative;
    pointer-events: none;
    border-radius: 12px;
    padding: 15px 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.time-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: 15px;
}

.clock-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.time-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.time-container {
    display: flex;
    gap: 12px;
}

.time-box {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    min-width: 60px;
}

.time-value {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    line-height: 1;
}

.time-label {
    font-size: 12px;
    color: #ddd;
    margin-top: 4px;
    text-transform: uppercase;
}

.title-wrap {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 5px;
}

.title-text {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.title-amount {
    color: #ffd700;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-left: 5px;
}

@media (max-width: 768px) {
    .ticket-time {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .time-header {
        justify-content: center;
        width: 100%;
    }

    .time-container {
        width: 100%;
        justify-content: center;
    }

    .time-box {
        min-width: 55px;
        padding: 8px 10px;
    }

    .time-value {
        font-size: 22px;
    }

    .time-title {
        font-size: 16px;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Banner slide on the top */

.banner-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    padding: 0;
}

.banner-container {
    width: 100%;
    overflow: hidden;
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    flex: 0 0 calc(100% / 3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    min-height: 120px;
    background-image: url('../images/ticket-default.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    opacity: 0.6;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.banner-slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slide-amount {
    font-size: 26px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-image: url('../images/ticket-arrow.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    cursor: pointer;
    z-index: 10;
    border: none;
    background-color: transparent;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.banner-nav:hover {
    opacity: 1;
}

.banner-prev {
    left: -50px;
    transform: translateY(-50%) rotate(180deg);
}

.banner-next {
    right: -50px;
    transform: translateY(-50%) rotate(0deg);
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background-color 0.3s ease;
}

.banner-dot.active {
    background-color: #ffd700;
}


/* Progress bar */

.progress-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.money-icon {
    width: 40px;
    height: 40px;
}

.progress-amount {
    font-size: 32px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    height: 30px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
}

.progress-bar {
    height: calc(100% - 8px);
    background: #ffd700;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: width 0.5s ease;
    border-radius: 25px;
}

.progress-info {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.progress-text {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.progress-percent {
    font-size: 14px;
    font-weight: bold;
    color: #ffd700;
}

.progress-label {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.claim-btn {
    width: 200px;
    height: 50px;
    background: transparent linear-gradient(180deg, #fff, #f7c163 50%, #f2b03e) 0 0 no-repeat padding-box;
    border: none;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
    color: red;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.claim-btn:hover {
    transform: scale(1.05);
}


/* ranking board */

.ticket-rank-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    min-height: 238px;
}

.rank-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.rank-background {
    width: 100%;
    max-width: 610px;
    height: 238px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.rank-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 100%;
    padding: 20px 35px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.rank-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.rank-swiper-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 140px;
    margin-top: 15px;
}

.rank-swiper-wrapper {
    position: relative;
    height: 100%;
}

.rank-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    height: 34px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.5s ease;
}

.rank-slide.swiper-slide-active {
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
    height: 34px !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border-bottom: 2px solid #ff5722 !important;
}

.rank-slide.swiper-slide-next,
.rank-slide.swiper-slide-next+.rank-slide,
.rank-slide.swiper-slide-next+.rank-slide+.rank-slide {
    opacity: 1;
    visibility: visible;
    height: 34px;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    background: transparent;
}

.rank-slide:not(.swiper-slide-active):not(.swiper-slide-next):not(.swiper-slide-next + .rank-slide):not(.swiper-slide-next + .rank-slide + .rank-slide) {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
}

.rank-name {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.asterisk {
    color: #ffd700;
    font-size: 18px;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

.rank-amount {
    font-size: 18px;
    font-weight: 900;
    color: #ffd700;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.peso-sign {
    font-size: 16px;
    margin-right: 4px;
    color: #fff;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}
