﻿.splide__slide img {
    width: 100%;
    height: auto;
    /*object-fit: cover;*/
}

/*#image-carousel {
    width: 960px;
    height: 338px;
}*/

.casino-image-wrapper {
    position: relative;
}

.jackpot-total {
    position: absolute;
    top: 0px;
    left: 0px;
    background: rgba(170, 23, 15, 1);
    color: white;
    padding: 4px;
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.jackpot-total-text {
    font-weight: bold;
    font-size: 1rem;
}

.new-ribbon {
    position: absolute;
    top: -1px;
    left: -1px;
    background: #28a745;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(deg);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    pointer-events: none;
}

    /* Rotate only the text */
    .new-ribbon span {
        position: absolute;
        top: 23px; /* adjust to taste */
        left: -1px; /* adjust to taste */
        transform: rotate(-45deg); /* diagonal text */
        transform-origin: left top;
        color: white;
        font-weight: bold;
        font-size: 0.75rem;
    }

/* Home promo carousel (Grant, 26 Oct 2026): 16:9 cards, three per view on desktop and one card
   with a thin strip of the next peeking on phones (perPage and padding are set in header.js). Artwork is 1920x1080;
   any other shape is cropped to 16:9 rather than letterboxed, so older 3:1 banners show cut until
   they are remade. Controls follow the design system: navy arrows, red for the current dot. */
#image-carousel-mobile .splide__slide {
    border-radius: 12px;
    overflow: hidden;
    background: #edeeef;
}

    #image-carousel-mobile .splide__slide a {
        display: block;
    }

    #image-carousel-mobile .splide__slide img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

#image-carousel-mobile .splide__arrow {
    top: calc(50% - 14px);
    width: 40px;
    height: 40px;
    background: #00263E;
    opacity: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

    #image-carousel-mobile .splide__arrow svg {
        width: 1.1em;
        height: 1.1em;
        fill: #ffffff;
    }

    #image-carousel-mobile .splide__arrow:disabled {
        opacity: 0.35;
    }

    #image-carousel-mobile .splide__arrow--prev {
        left: -20px;
    }

    #image-carousel-mobile .splide__arrow--next {
        right: -20px;
    }

#image-carousel-mobile .splide__pagination {
    position: static;
    padding: 10px 0 0;
}

    /* 24px tap targets, since the dots are the only control on phones, drawn as 8px dots. */
    #image-carousel-mobile .splide__pagination__page {
        position: relative;
        width: 24px;
        height: 24px;
        margin: 0;
        background: transparent;
        border-radius: 0;
        opacity: 1;
    }

        #image-carousel-mobile .splide__pagination__page::after {
            content: "";
            position: absolute;
            left: 8px;
            top: 8px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #DCDDDF;
        }

        #image-carousel-mobile .splide__pagination__page.is-active {
            transform: none;
        }

            #image-carousel-mobile .splide__pagination__page.is-active::after {
                background: #E1251B;
            }

.video-container {
    position: relative;
    width: 100%;
    min-height: 150px;
    aspect-ratio: 3 / 1;
}

    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.overlay-text {
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    text-align: center;
    background: rgba(0,0,0,0,5);
    padding: 10px;
    border-radius: 10px;
    height: 100px;
    font-family: 'Roboto', sans-serif;
}

.prizeDraw-canvas {
    width: 961px;
    height: 470px;
    margin-left: -16px;
    position: absolute;
    z-index: 0;
}

.prizewinner-main-div {
    height: 280px;
    margin-top: 20px;
    border: solid 2px gold;
    background: rgba(0,0,0,0.3);
    width: 480px;
}

.prize-winner-trophy {
    text-align: center;
    margin-top: 20px;
    color: gold;
    position: absolute;
    z-index: 1;
}

.prize-draw-schedule-text {
    text-align: center;
    color: gold;
    font-size: 16px;
    padding-top: 25%;
}

.prize-draw-schedule-overview {
    color: gold;
    font-size: 46px;
    margin-bottom: 30px;
}

.prize-winner-scrolltext {
    color: gold;
}

.check-result-text {
    font-size: 10px;
    color: white;
}

.next-prizedraw {
    width: 480px;
    text-align: center;
    position: absolute;
    z-index: 1;
    margin-top: 100px;
}

.prize-draw-soon {
    text-align: center;
    color: gold;
    font-size: 12px;
    /* font-size:30px;*/
}

.prize-draw-winner {
    /* position: absolute;
    margin-top: 39px;
    text-align: center;
    width: 480px;*/
}

.trophy-stand-img {
    margin-top: -11px;
    width: 110px;
}

.prize-winner-name {
    color: black;
    margin-top: 18%;
    /* margin-bottom:8px;*/
    font-size: 16px;
    font-weight: bold;
}

.prize-name {
    color: black;
    font-size: 14px;
    margin-top: 7%;
    font-weight: bold;
}

.image-scroll-wrapper {
    overflow: hidden;
}

.image-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* snap */
}

    .image-scroll .featured-img-wrapper {
        flex: 0 0 calc(100% / 8); /* desktop shows 6 */
        max-width: calc(100% / 8);
        padding: 0.25rem;
        box-sizing: border-box;
        border-radius: 8px;
        scroll-snap-align: start; /* snap per image */
     /*   aspect-ratio: 210 / 294;
        border-radius: 25px !important;*/
    }

        .image-scroll .featured-img-wrapper img {
            width: 100%;
            aspect-ratio: 210 / 210;
            border-radius: 7px !important;
        }

        .image-scroll .featured-img-wrapper .mt-2 {
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: #333;
        }

.casino-game-img {
    cursor: pointer;
}

.game-name {
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}


.featured-heading-text{
    font-size:30px;
    margin-left:1.2rem;
    font-weight:bold;
}

.promo-img{
    width:100%;
}
/* Tablet: 3 images visible */
@media (max-width: 992px) {

    .image-scroll .featured-img-wrapper {
        flex: 0 0 calc(100% / 6); /* desktop shows 6 */
        max-width: calc(100% / 6);
        padding: 0.25rem;
        box-sizing: border-box;
        border-radius: 8px;
        scroll-snap-align: start; /* snap per image */
        /*   aspect-ratio: 210 / 294;
        border-radius: 25px !important;*/
    }

    .featured-heading-text {
        font-size:16px;
        margin-bottom:-15px;
    }

    .new-ribbon {
        position: absolute;
        top: -1px;
        left: -1px;
        background: #28a745;
        color: white;
        font-weight: bold;
        font-size: 0.75rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: rotate(deg);
        clip-path: polygon(0 0, 100% 0, 0 100%);
        pointer-events: none;
    }

        /* Rotate only the text */
        .new-ribbon span {
            position: absolute;
            top: 17px; /* adjust to taste */
            left: -1px; /* adjust to taste */
            transform: rotate(-45deg); /* diagonal text */
            transform-origin: left top;
            color: white;
            font-weight: bold;
            font-size: 0.6rem;
        }
}

/*@media(max-width:768px){
    .video-container {
        height: 50vh;
    }
}*/

/* Mobile: 2 images visible */
@media (max-width: 576px) {

    .jackpot-total {
        position: absolute;
        top: 0px;
        left: 0px;
        background: rgba(170, 23, 15, 1);
        color: white;
        padding: 0px;
        width: 100%;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .jackpot-total-text {
        font-weight: bold;
        font-size: 0.5rem;
    }

    .image-scroll .featured-img-wrapper {
        flex: 0 0 calc(100% / 4); /* desktop shows 6 */
        max-width: calc(100% / 4);
        padding: 0.25rem;
        box-sizing: border-box;
        border-radius: 8px;
        scroll-snap-align: start; /* snap per image */
        /*   aspect-ratio: 210 / 294;
        border-radius: 25px !important;*/
    }

    /*.image-scroll .featured-img-wrapper img {
        flex: 0 0 calc(100% / 4);
        max-width: calc(100% / 4);
        aspect-ratio: 210 / 294;
        border-radius: 25px !important;
    }*/
}

/* Optional: hide scrollbar */
.image-scroll::-webkit-scrollbar {
    display: none;
}

.image-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}



@media (max-width: 380px) {
    .prize-name {
        margin-top: 11%;
    }
}

.previous-winners-header {
    color: gold;
    text-align: center;
    font-size: 46px;
}

#prize-draw-schedule-div {
    margin-left: 16px;
}

.prize-draw-winner-text {
    text-align: center;
    color: gold;
    font-size: 12px;
    margin-top: 100px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.prize-draw-winner {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 5s;
}

/* ---- layout-shift guards ----
   The slideshow and featured rows arrive by ajax, so their containers start at
   0px and push the page down as each one lands. Reserving their approximate
   space while they are :empty keeps the content below still. The inline
   whitespace inside these divs was removed in Index.cshtml so :empty matches. */

@keyframes vc-shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

#vc-slideshow:empty,
#vc-featured-1:empty,
#vc-featured-2:empty {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(128,128,128,0.10) 40%, rgba(128,128,128,0.20) 50%, rgba(128,128,128,0.10) 60%);
    background-size: 200% 100%;
    animation: vc-shimmer 1.4s linear infinite;
}

/* Reserves about the loaded carousel's height (one 16:9 card 86% wide plus the dots on
   phones, a third of the width on desktop) so the logged-in home does not jump when the
   slides arrive by AJAX */
#vc-slideshow:empty {
    aspect-ratio: 390 / 216;
}

@media (min-width: 992px) {
    #vc-slideshow:empty {
        aspect-ratio: 1200 / 250;
    }
}

/* Heading row plus one row of square game tiles: 1/8 width by default,
   1/6 below 992px and 1/4 below 576px, mirroring .featured-img-wrapper */
#vc-featured-1:empty,
#vc-featured-2:empty {
    min-height: 270px;
}

@media (max-width: 992px) {
    #vc-featured-1:empty,
    #vc-featured-2:empty {
        min-height: 210px;
    }
}

@media (max-width: 576px) {
    #vc-featured-1:empty,
    #vc-featured-2:empty {
        min-height: 170px;
    }
}

/* The slideshow is server-rendered (Index.cshtml), so until Splide mounts the browser lays
   out the raw list: with Splide's flex list and no slide width, each slide sizes to its
   image's intrinsic width (banners are uploaded at up to 4000px) and every slide is visible,
   so the hero renders enormous and then snaps down when the carousel initialises. PageSpeed
   measured that as CLS 1.29 on 16 Sep. Splide adds .is-initialized on mount, so before that the
   slides take the widths the carousel will give them (three per view on desktop, one and a thin
   peek on phones, see header.js), the rest are hidden, and the dots' height is reserved. */
#vc-slideshow .splide:not(.is-initialized) {
    padding-bottom: 34px;
}

#vc-slideshow .splide:not(.is-initialized) .splide__list {
    gap: 16px;
}

#vc-slideshow .splide:not(.is-initialized) .splide__slide {
    width: calc((100% - 32px) / 3);
}

#vc-slideshow .splide:not(.is-initialized) .splide__slide:nth-child(n+4) {
    display: none;
}

@media (max-width: 991px) {
    #vc-slideshow .splide:not(.is-initialized) .splide__list {
        gap: 16px;
        padding-left: 16px;
    }

    #vc-slideshow .splide:not(.is-initialized) .splide__slide {
        width: calc(86% - 16px);
    }

    #vc-slideshow .splide:not(.is-initialized) .splide__slide:nth-child(n+3) {
        display: none;
    }
}

/* Soften the swap from placeholder to real content */
#vc-slideshow > *,
#vc-featured-1 > *,
#vc-featured-2 > * {
    animation: fadeIn 0.25s ease-in;
}


