﻿
/* 75% */

#characteronewraper {
    position: absolute;
   
    
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #characteronewraper .characterJumpInner {
        /*
        background-image: url('/images/character/one-male.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
           */

        --frames1: 1;
        --idleDuration1: 1.0s;
        --maxPixel1: 0;
        background-repeat: no-repeat;
        background-position: center;
        /*background-size: calc(var(--frames1) * 100%) 100%;*/
        background-size: contain;
        width: 100%;
        height: 100%;
        display: block;
        /*
        will-change: background-position;*/
        will-change: background-image;
        transform: translateZ(0);
        backface-visibility: hidden;
        /*
        animation: spriteIdle1 5s steps( calc(var(--frames1))) infinite;
            */
    }

@keyframes spriteIdle1 {
    0% {
        background-image: url('/images/character/dog-0.png');
    }
    100% {
        background-image: url('/images/character/dog-1.png');
    }
}

    #charactertwowraper {
        position: absolute;
        transition: top 0.3s ease, left 0.3s ease;
        z-index: 1000;
    }

        #charactertwowraper .characterJumpInner {
            /* background-image: url(/images/character/two-male.png);*/
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
        }

#characterthreewraper {
    position: absolute;
    
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #characterthreewraper .characterJumpInner {
        
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

#characterfourwraper {
    position: absolute;
    
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #characterfourwraper .characterJumpInner {
        
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

#characterfivewraper {
    position: absolute;
   
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #characterfivewraper .characterJumpInner {
       
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

#charactersixwraper {
    position: absolute;
   
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}
    #charactersixwraper .characterJumpInner {
        
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }


#characteronewraper.characterGenderfemale {
    position: absolute;
   
   
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #characteronewraper.characterGenderfemale .characterJumpInner {
        background-image: url('/images/character/one-female.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

#charactertwowraper.characterGenderfemale {
    position: absolute;
    
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #charactertwowraper.characterGenderfemale .characterJumpInner {
        background-image: url(/images/character/two-female.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

#characterthreewraper.characterGenderfemale {
    position: absolute;
    
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #characterthreewraper.characterGenderfemale .characterJumpInner {
        background-image: url(/images/character/three-female.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

#characterfourwraper.characterGenderfemale {
    position: absolute;
   
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #characterfourwraper.characterGenderfemale .characterJumpInner {
        background-image: url(/images/character/four-female.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }


#characterfivewraper.characterGenderfemale {
    position: absolute;
    
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #characterfivewraper.characterGenderfemale .characterJumpInner {
        background-image: url(/images/character/five-female.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

#charactersixwraper.characterGenderfemale {
    position: absolute;
   
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 1000;
}

    #charactersixwraper.characterGenderfemale .characterJumpInner {
        background-image: url(/images/character/six-female.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

.characterSize {
    transform-origin: 50% 100%;
    transform: rotateX(-30deg);
    transform-style: preserve-3d;
}
/*
.characterSize.jump {
    animation: jumpBounce 0.4s ease-in-out;
}
*/

.characterJumpInner {
    width: 100%;
    height: 100%;
    will-change: transform;
    backface-visibility: hidden;
   
}



.characterJumpInner.jump {
    /*animation: jumpBounce 260ms cubic-bezier(.22,.9,.25,1) both;*/
    animation: jumpBounce 0.4s ease-in-out;
}


.step-highlight {
    animation: blinkHighlight 1s infinite;
    border-radius: 10px;
}

@keyframes blinkHighlight {
    0%, 100% {
        box-shadow: 0 0 0px rgba(255, 255, 0, 0.7);
    }

    50% {
        box-shadow: 0 0 20px 8px rgba(255, 255, 0, 1);
    }
}


@keyframes jumpBounce {

    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-35px);
    }

    70% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}


.player-label {
    --lightplus: color-mix(in srgb, var(--base) 77%, white);
    --light: color-mix(in srgb, var(--base) 82%, white);
    --dark: color-mix(in srgb, var(--base) 72%, black);
    --deep: color-mix(in srgb, var(--base) 55%, black);
    --face: var(--base);
    --edgeL: color-mix(in srgb, var(--face) 55%, white);
    --edgeD: color-mix(in srgb, var(--face) 55%, black);
    justify-content: center;
    width: 16%;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 8px 0 #b89c2e, 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .4);
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.playerCurrentTurn {
    animation: blinkHighlight 1s infinite;
}

#leftsideboard .player-label {
    width: 100%
}

.player-label::before {
    /*
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 0;
        background: linear-gradient(to bottom, var(--deep), color-mix(in srgb, var(--deep) 75%, black));
        transform: translateY(8px);
        box-shadow: 0 18px 22px rgba(0, 0, 0, .30);
        inset: 0;
        border-radius: 20px;
            */
}

    .player-label::after {
        /*
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
        inset: 0;
        border-radius: 10px;
        border: 7px solid transparent;
        padding: 8px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0) 45%) padding-box, linear-gradient(to bottom, var(--lightplus), var(--base)) border-box;
        box-shadow: 0 18px 22px rgba(0, 0, 0, .28), inset 0 2px 0 rgba(0, 0, 0, .28), inset 0 -8px 14px rgba(0, 0, 0, .30);
        */
    }

.player-label-main {
    background: var(--base);
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 3;
    border-radius: 4px;
    overflow: hidden;
}

.player-label-main-inside {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    z-index: 3;
    height: calc(100% - 6px);
    background: linear-gradient(to bottom, var(--base), color-mix(in srgb, var(--base) 80%, black));
    border-radius: 4px;
}

.player-label-main:before {
    content: "";
    position: absolute;
    left: -10%;
    top: -20%;
    width: 70%;
    height: 55%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 70%);
    transform: rotate(-12deg);
    pointer-events: none;
    z-index: 9;
    opacity: .9;
}

.player-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 16px;
    background: rgba(0, 0, 0, .18);
    filter: blur(10px);
    transform: skewX(-10deg);
    pointer-events: none;
    z-index: 10;
    width: 30%;
}

.player-label::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    height: 16px;
    background: rgba(0, 0, 0, .18);
    filter: blur(10px);
    transform: skewX(-10deg);
    pointer-events: none;
    z-index: 10;
    width: 30%;
}

.player-label-main:after {
    content: "";
    position: absolute;
    right: 38%;
    bottom: 2px;
    height: 16px;
    background: rgba(255, 255, 255, .3);
    filter: blur(10px);
    transform: skewX(-10deg);
    pointer-events: none;
    z-index: 13;
    width: 24%;
}

.player-label-bottom {
    height: 20px;
    display: block;
    position: absolute;
    left: 2px;
    bottom: -19px;
    transform: rotate(0) skewX(15deg);
    z-index: 1;
    width: 100%;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 4px;
    /*background: linear-gradient(to bottom, var(--deep), color-mix(in srgb, var(--deep) 75%, black));*/
    background: var(--deep)
}

    .player-label-bottom::before {
        content: "";
        position: absolute;
        right: 38%;
        bottom: 11px;
        height: 16px;
        background: rgba(255, 255, 255, .2);
        filter: blur(10px);
        transform: skewX(-10deg);
        pointer-events: none;
        z-index: 13;
        width: 24%;
    }

.player-label-right {
    width: 15px;
    height: calc(100% + 7px);
    display: block;
    position: absolute;
    bottom: -19px;
    right: -6px;
    z-index: 0;
    /*
    background: linear-gradient(to bottom, var(--deep), color-mix(in srgb, var(--deep) 75%, black));
        */
    background: var(--deep);
    border-bottom-right-radius: 12px;
}

.player-label-top {
    background: var(--deep);
    height: 15px;
    width: calc(100% + 0px);
    display: block;
    position: absolute;
    left: 4px;
    top: 0px;
    transform: rotate(0) skewX(15deg);
    border-radius: 4px;
    z-index: 1;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 0px;
}

/* Left & Right Player Containers for 16:9 */
#player-left {
    left: 0;
}

#player-right {
    right: 0;
}

/* Top & Bottom Player Containers for 4:3 */
.player-row {
    position: absolute;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
}

#player-top {
    top: 0;
}

#player-bottom {
    bottom: 0;
}

/* Individual Player Label Styling */

.player-info {
    display: flex;
    flex-direction: row;
    width: 100%;
    position: relative;
    z-index: 4;
    border: none !important;
    height: 35%;
    padding: 8px 8px 0 8px;
    z-index:11
}

.point-and-nickname {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
    background-color: inherit;
    width: 50%;
    justify-content: center;
    align-items: center;
}

.nickname {
    font-size: 16px;
    text-align: center;
    color: #fff;
    padding: 0;
    display: flex;
    justify-content: left;
    align-items: center;
    flex: 1 1 0;
    flex-direction: column;
}

.nickname-text {
    padding: 3px 0px 3px 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    -webkit-text-stroke: 2px rgba(0,0,0,.20);
    text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 10px 14px rgba(0,0,0,.25), 0 -1px 0 rgba(255,255,255,.25);
    height: 100%;
}

    .nickname-text img {
        width: 60%;
        max-width: 100% !important;
        margin: 0 !important;
        opacity: 0.75;
        filter: saturate(.8);
    }

.player-name-text {
    font-size: 30px;
    color: #fff;
    position: relative;
    z-index: 5;
    text-shadow: 0 2px 1px rgba(0, 0, 0, .98), 0 0 6px rgba(255, 255, 255, .75);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-overflow: ellipsis;
    text-align: center;
    padding: 0 8px;
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.points {
    font-size: 20px;
    text-align: center;
    position: relative;
    flex: 6;
}

    .points span {
        position: relative;
        display: flex;
        z-index: 2;
        padding: 3px 5px 4px 5px;
        justify-content: center;
        align-items: center;
        color:#fff !important
    }

.rank {
    --p1: color-mix(in srgb, var(--base) 65%, black);
    --p2: color-mix(in srgb, var(--base) 45%, black);
    font-size: 18px;
    text-align: center;
    position: relative;
    height: 100%;
    /*width: auto;*/
    width:50%;
    align-self: stretch;
    aspect-ratio: 1 / 1;
    /* enable container units */
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
    /* viền ngoài + shadow nhẹ */
    font-weight:900;
    border-radius: 10px;
    border-radius: 12px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--base) 55%, black), color-mix(in srgb, var(--base) 75%, black) );
    box-shadow: inset 0 10px 14px rgba(255,255,255,.10), inset 0 -16px 18px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.10);
}



    .rank::after {
        /* highlight góc trên-trái giống “đèn” */
        content: "";
        position: absolute;
        inset: 0px;

      
        pointer-events: none;
        border-radius: 12px;
        background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.18), rgba(255,255,255,0) 55%);
    }

    .rank span {
        position: relative;
        display: flex;
        z-index: 2;
        justify-content: center;
        align-items: center;
        color: #fff;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: min(70cqw, 70cqh);
        line-height: 1;
        text-shadow: 0 2px 0 rgba(0,0,0,.98), 0 0 6px rgba(255,255,255,.75);
        letter-spacing: .5px;
    }

.player-cards {
    display: flex;
    flex-direction: row; /* horizontal */
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap; /* or wrap if too many cards */
    flex: 1 1 0;
    position: relative;
    z-index: 10;
    padding: 0 8px;
    padding-bottom: 25px !important;
    flex: 1 1 auto;
    min-height: 0;
}

.card {
    /**/
    width: 25%;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction: column;
    position: relative;
    overflow: visible;
}

    .card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display:block
    }


.card-code{
    color:#fff
}

.player-cards-small {
    padding: 10px 0 0 5px;
    position:relative;
    z-index:3
}
/*Player left*/
#player-left.widescreenplayer .points:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% + 21px);
    background: #30373C;
    left: -25px;
    z-index: 1;
    height: calc(100% - 4px);
}

#player-left.widescreenplayer .rank:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: inherit;
    left: 0;
    z-index: 2;
    border-radius: 50%;
}


/*Player right*/
#player-right.widescreenplayer .player-info {
    flex-direction: row-reverse;
}



#player-right.widescreenplayer .points:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% + 21px);
    background: #30373C;
    right: -25px;
    z-index: 1;
    height: calc(100% - 4px);
}

#player-right.widescreenplayer .rank:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: inherit;
    left: 0;
    z-index: 2;
    border-radius: 50%;
}


/*Player top*/

#player-top.notwidescreenplayer .player-label:not(:nth-child(3)) .points:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% + 21px);
    background: #30373C;
    left: -25px;
    z-index: 1;
    height: calc(100% - 4px);
}

#player-top.notwidescreenplayer .player-label:not(:nth-child(3)) .rank:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: inherit;
    left: 0;
    z-index: 2;
    border-radius: 50%;
}

#player-top.notwidescreenplayer .player-label:nth-of-type(3) .player-info {
    flex-direction: row-reverse;
}


#player-top.notwidescreenplayer .player-label:nth-of-type(3) .points:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% + 21px);
    background: #30373C;
    right: -25px;
    z-index: 1;
    height: calc(100% - 4px);
}

#player-top.notwidescreenplayer .player-label:nth-of-type(3) .rank:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: inherit;
    left: 0;
    z-index: 2;
    border-radius: 50%;
}




#player-bottom.notwidescreenplayer .player-label:not(:nth-child(3)) .points:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% + 21px);
    background: #30373C;
    left: -25px;
    z-index: 1;

    height: calc(100% - 4px);
}

#player-bottom.notwidescreenplayer .player-label:not(:nth-child(3)) .rank:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: inherit;
    left: 0;
    z-index: 2;
    border-radius: 50%;
}

#player-bottom.notwidescreenplayer .player-label:nth-of-type(3) .player-info {
    flex-direction: row-reverse;
}

    

#player-bottom.notwidescreenplayer .player-label:nth-of-type(3) .points:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% + 21px);
    background: #30373C;
    right: -25px;
    z-index: 1;
    height: calc(100% - 4px);
}

#player-bottom.notwidescreenplayer .player-label:nth-of-type(3) .rank:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background: inherit;
    left: 0;
    z-index: 2;
    border-radius: 50%;
}

#player-bottom .player-label {
    flex-direction: column-reverse
}



.player-label-after {
    position: absolute;
    bottom: -35px;
    left: 50%;
    width: 70%;
    height: 10px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(0,0,0,.5), transparent);
    filter: blur(6px);
    z-index: 100;
}