:root{
    --clr-font-main: hsla(0 0% 20% / 100);
    --btn-bg-1: hsla(194 100% 69% / 1);
    --btn-bg-2: hsla(217 100% 56% / 1);
    --btn-bg-color: hsla(360 100% 100% / 1);
    --radii: 0.5em;
}

.game-zone{
    width: 100%;
    min-height: 200px;
    padding: 25px 0;
    text-align: center;
    display: none;
}

.tfd-core.frame:has(.game-zone) .single-product-cols {
    display: none !important;
}

body .game-zone.has-credits {
    display: block;
}

.open-all-mode .win-line{
    display: none !important;
}

h2#game-title{
    color: #fff;
    position: absolute;
    top: 0px;
    left: 15px;
    font-size: 18px;
    z-index: 9;
}

.spinner-container{
    width: 100%;
    height: 350px;
    background-color: #110F0F;
    position: relative;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.spinner-container .game-image video{
    width: 100%;
    max-width: 250px;
    margin: 35px auto;
}

.win-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    margin-left: -2px;
    background-image: url('../imgs/win-line.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    z-index: 9;
    pointer-events: none;
}

ul.spinner {
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 50px 0;
    list-style: none;
    transition: transform 0.3s ease-in-out;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.spinner-container:before,
.spinner-container:after{
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 0;
    width: 100px;
    height: calc(100% - 48px);
    pointer-events: none;
    z-index: 8;
}

.spinner-container:before{
    background-image: linear-gradient(90deg,rgba(26,29,32,0) 0,#110F0F 95%, #110F0F);
    transform: rotate(180deg);
    left: 0;
}

.spinner-container:after{
    background-image: linear-gradient(90deg,rgba(26,29,32,0) 0,#110F0F 95%,#110F0F);
}

ul.spinner li {
    background: #fff;
    width: 152px;
    box-shadow: none;
    flex-shrink: 0;
    margin: 0;
    padding: 13px 5px 19px;
    position: relative;
    overflow: hidden;
    transition: all .3s ease-in-out;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #dedfe0 !important;
}

ul.spinner li:first-child{
    margin-left: 0;
}

ul.spinner li img {
    width: 100%;
    height: 80px;
    min-height: 80px;
    object-fit: cover;    
    max-height: 80px;
    max-width: 100px;
    margin: 0 auto;
    border-radius: 10px;
}

ul.spinner li .prize-title{
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    color: #181818;
    margin: 12px 0 0 0;
    padding: 0;
    opacity: 0.95;
    min-height: 46px;
}

ul.spinner li.active{
    border: 2px solid green;
}

.tfd-game-prize-popout-container{
    width: 100%;
    background: #110F0F;
    text-align: center;
    display: none;
    position: relative;
    z-index: 10;
}

.tfd-game-prize-popout{
    padding: 25px;
    text-align: center;
    width: 100%;
}

.tfd-game-prize-popout h3{
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 34px;
    font-weight: 600;
}

.tfd-game-prize-popout p{
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.tfd-game-prize-popout img{
    border-radius: 10px;
    width: 100%;
    max-width: 125px !important;
    margin: 0 auto 15px;
    display: block;
}

p#rollsRemaining{
    width: 100%;
    text-align: center;
    margin-top: 35px;
    margin-bottom: 0;
    color: #181818;
    font-weight: 700;
}

p#rollsRemaining span{
    font-weight: 600;
    color: #fff;
    padding: 0 8px;
    border-radius: 8px;
    display: inline-block;
    margin: 0 5px;
    transition: 0.8s;
    background-size: 280% auto;
    background-image: linear-gradient(
      325deg,
      var(--btn-bg-2) 0%,
      var(--btn-bg-1) 55%,
      var(--btn-bg-2) 90%
    );
    box-shadow:
      0px 0px 20px rgba(71, 184, 255, 0.5),
      0px 5px 5px -1px rgba(58, 125, 233, 0.25),
      inset 4px 4px 8px rgba(175, 230, 255, 0.5),
      inset -4px -4px 8px rgba(19, 95, 216, 0.35);    
}

.game-frame{
    position: relative;
    width: 1400px;
    overflow: hidden;
    margin: 0 auto;
    display: none;
    opacity: 0;
}

a#redeemCredit{
    background: #3E71CD;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: capitalize;
    margin: 10px;
    text-decoration: none !important;
}

a#freeRoll{
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    color: #333;
    transition: all ease 200ms;
}

#freeRoll.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

a#freeRoll:hover{
    color: #3E71CD;
    transition: all ease 200ms;
}

a#freeRoll:hover svg path{
    fill: #3E71CD;
}

body.is-game .woocommerce-notices-wrapper{
    display: none;
}

.tfd-game-btn-group{
    width: 100%;
    max-width: 375px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto;
    margin-top: 45px;
}

a.game-btn{
    border-radius: 8px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    padding: 13px 20px;
    width: 100%;
    text-decoration: none;
    cursor: pointer;
    transition: 0.8s;
    border: none;
}

a.game-btn.primary-btn{
    background-size: 280% auto;
    background-image: linear-gradient(
      325deg,
      var(--btn-bg-2) 0%,
      var(--btn-bg-1) 55%,
      var(--btn-bg-2) 90%
    );
    border-radius: var(--radii);
    color: var(--btn-bg-color);
    box-shadow:
      0px 0px 20px rgba(71, 184, 255, 0.5),
      0px 5px 5px -1px rgba(58, 125, 233, 0.25),
      inset 4px 4px 8px rgba(175, 230, 255, 0.5),
      inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}

a.game-btn.primary-btn:hover{
    background-position: right top;
}

a.game-btn.primary-btn:is(:focus, :focus-visible, :active) {
    outline: none;
    box-shadow: 0 0 0 3px var(--btn-bg-color), 0 0 0 6px var(--btn-bg-2);
}

a.game-btn.secondary-btn{
    --clr-font-main: hsla(0, 0%, 50%, 1);
    --btn-bg-1: hsla(200, 40%, 75%, 1);  /* softened light blue */
    --btn-bg-2: hsla(217, 50%, 65%, 1);  /* muted deeper blue */
    --btn-bg-color: hsla(0, 0%, 90%, 1); /* light grey/white */
    --radii: 0.5em;
    background-size: 280% auto;
    background-image: linear-gradient(325deg, var(--btn-bg-2) 0%, var(--btn-bg-1) 55%, var(--btn-bg-2) 90%);
    border-radius: var(--radii);
    color: #fff;
    box-shadow:
      0 0 10px rgba(150, 200, 240, 0.2),
      0 3px 4px -1px rgba(120, 160, 200, 0.15),
      inset 2px 2px 4px rgba(180, 220, 250, 0.2),
      inset -2px -2px 4px rgba(80, 130, 190, 0.2);;
}

a.game-btn.secondary-btn:hover{
    background-position: right top;
}

a.game-btn.secondary-btn:is(:focus, :focus-visible, :active) {
    outline: none;
    box-shadow:
      0 0 0 3px var(--btn-bg-color),
      0 0 0 6px var(--btn-bg-2);
}


/* Disabled state for game buttons */
a.game-btn.disabled,
a.game-btn[disabled],
.tfd-spin-btn.disabled {
    opacity: 0.6;
    filter: grayscale(80%);
    cursor: not-allowed !important;
    pointer-events: none;
}


.tfd-game-prize-list-container{
    width: 100%;
    min-height: 200px;
    padding: 0 0 50px 0;
}

.tfd-game-prize-list-container-inner{
    max-width: 1280px;
    margin: 0 auto;
}

.tfd-game-prize-list-container h2{
    color: #181818;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    text-align: left;
    padding: 0 15px;
    font-family: var(--wp--preset--font-family--neuzeit-grotesk);
}

.tfd-game-prize-list-container h2:after{
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 50px;
    background-image: linear-gradient(325deg, var(--btn-bg-2) 0%, var(--btn-bg-1) 55%, var(--btn-bg-2) 90%);
    margin: 10px 0;
}

ul.tfd-game-prize-list{
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    padding: 0 15px;
    margin: 0;
    list-style: none;
    transition: transform 0.3s ease-in-out;
}

.crate-prize-item{
    background: #f0f1f3;
    box-shadow: none;
    flex-shrink: 0;
    margin: 0 auto;
    padding: 13px 15px 19px;
    position: relative;
    overflow: hidden;
    transition: all .3s ease-in-out;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
}

ul li.crate-prize-item img{
    width: 100%;
    height: auto;
    max-width: 150px;
    margin: 0 auto;
    border-radius: 10px;
}

ul li.crate-prize-item .prize{
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    color: #181818;
    margin: 12px 0 0 0;
    padding: 0;
    opacity: 0.95;
    text-align: center;
    min-height: 40px;
}

ul li.crate-prize-item .won-counter{
    font-size: 12px;
    font-weight: 600;
    color: #181818;
    margin: 12px 0 0 0;
    padding: 0;
    opacity: 0.95;
    text-align: center;
}

.tfd-countdown-timer p{
    color: #fff;
    margin: 25px 0 0 0;
    font-weight: 600;
    font-size: 14px;
}

.tfd-qty-option.tfd-game-purchase-option{
    background-color: #181d1f;
    padding: 25px;
    margin: -25px auto 0;
    border-radius: 0;
    border: none;
}

.tfd-qty-option.tfd-game-purchase-option h3,
.tfd-qty-option.tfd-game-purchase-option .increment-qty p,
.tfd-qty-option.tfd-game-purchase-option .label-container p{
    color: #fff;
}

.tfd-qty-option.tfd-game-purchase-option .tfd-qty-slider{
    background: #fff;
}


/* Hide page elements */
body.is-game section:not(.tfd-game-section),
body.is-game .elementor-element-2b98534a{
    display: none;
}

@keyframes zoomFadeOut {
    0% {
      opacity: 1;
      transform: scale(1);
    }
    100% {
      opacity: 0;
      transform: scale(1);
    }
}

/* fade in animation */
@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    10% {
        opacity: 0;
    }
    100% {
      opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 3s ease forwards;
}
  
.zoom-fade-out {
    animation: zoomFadeOut 0.5s ease forwards;
}

.tfd-countdown-timer {
    text-align: center;
    margin-top: 15px;
}

.tfd-countdown-timer p {
    color: #666;
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.tfd-countdown-timer .countdown-time {
    color: #007cba;
    font-weight: 500;
    font-size: 13px;
}

/* All prizes results container - displayed outside game zone */
.all-prizes-results {
    margin: 20px auto;
    max-width: 1280px;
    padding: 20px;
}

.all-prizes-results .prize-item {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.all-prizes-results .prize-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.all-prizes-results .prize-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.all-prizes-results .prize-title {
    margin: 8px 0 0;
    font-weight: bold;
    font-size: 12px;
    color: #fff;
}

.all-prizes-results{
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
    margin-top: 20px;
}

.all-prizes-results .all-prizes-heading h2{
    font-size: 32px;
    margin-bottom: 0;
}

.all-prizes-results .all-prizes-heading p{
    margin-top: 0;
}

.all-prizes-results .prize-item{
    text-align: left;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.all-prizes-results .prize-item p{
    color: #131619;
    font-size: 16px;
    margin-bottom: 18px;
}

.all-prizes-results .prize-item .prize-image{
    background: #F6F8FA;
    border: 1px solid #E5E6E8;
    border-radius: 10px;
    padding: 10px;
}

.all-prizes-results .prize-items-hold{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.all-prizes-results .prize-item .prize-content-container .winwink-my-prizes-button-group{
    margin-bottom: 12px;
}

.all-prizes-results .prize-item .prize-content-container .winwink-my-prizes-button-group a{
    font-size: 14px !important;
    padding: 7px 15px !important;
}

@media (max-width: 1300px) {
    .all-prizes-results .prize-item .prize-content-container .winwink-my-prizes-button-group a{
        display: block;
    }
    .all-prizes-results .prize-item .prize-content-container .winwink-my-prizes-button-group a.winwink-claim-prize{
        margin-bottom: 5px;
    }
    .all-prizes-results .prize-item p{
        margin-bottom: 10px;
    }
}

@media (max-width: 1100px) {
    .all-prizes-results .prize-items-hold{
        display: block;
    }
}

@media (max-width: 1000px) {
    ul.tfd-game-prize-list{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .game-image,
    .tfd-game-prize-popout-container{
        padding-top: 50px;
    }    
}

@media (max-width: 768px) {
    ul.tfd-game-prize-list{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .spinner-container .game-image video{
        max-width: 200px;
    }
    .tfd-game-prize-popout img{
        max-width: 85px;
    }
    .tfd-game-prize-popout h3{
        font-size: 26px;
    }
    .tfd-game-prize-popout p{
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 500px) {
    ul.tfd-game-prize-list{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


body.is-game .tfd-competition-stats,
body.is-game .tfd-pill-container{
    display: none !important;
}