/* Card Styles - Premium 3D Playing Cards with Authentic Bicycle Rider Backs */

/* ============================================
   CARD BASE - 3D Container
   ============================================ */
.card {
    width: 50px;
    height: 70px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.card:hover {
    z-index: 10;
}

.card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hide face by default, show back */
.card-back {
    display: block;
}

.card-face {
    display: none;
}

/* When flipped, hide back, show face */
.card.flipped .card-back {
    display: none;
}

.card.flipped .card-face {
    display: flex;
}

.card-face, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    box-sizing: border-box;
    overflow: hidden;
}

/* ============================================
   BICYCLE RIDER BACK - Authentic Design
   Victorian-era cherubs, scrollwork, and
   ornate patterns true to the 1887 original
   ============================================ */
.card-back {
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;

    /* Softer, more realistic card shadow */
    box-shadow:
        /* Soft layered shadow */
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.1),
        /* Subtle contact shadow */
        0 1px 2px rgba(0, 0, 0, 0.2),
        /* Inner highlight for card thickness */
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* ============================================
   RED BICYCLE RIDER BACK - Authentic Design
   Classic Victorian cherubs and scrollwork
   ============================================ */
.card-back.red {
    background: #c41e3a;
}

/* Full Bicycle design pattern */
.card-back.red::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 3px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background:
        /* Complete Bicycle Rider Back SVG */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='66' viewBox='0 0 46 66'%3E%3Crect fill='%23c41e3a' width='46' height='66'/%3E%3C!-- Ornate border frame --%3E%3Crect x='2' y='2' width='42' height='62' fill='none' stroke='%23fff' stroke-width='0.8' rx='2'/%3E%3Crect x='4' y='4' width='38' height='58' fill='none' stroke='%23fff' stroke-width='0.4' rx='1'/%3E%3C!-- Corner cherubs --%3E%3Cg fill='%23fff' opacity='0.95'%3E%3C!-- Top-left cherub --%3E%3Ccircle cx='8' cy='8' r='2.5'/%3E%3Cpath d='M5,7 Q3,5 5,9 M11,7 Q13,5 11,9'/%3E%3Cellipse cx='8' cy='11' rx='2' ry='1.5'/%3E%3C!-- Top-right cherub --%3E%3Ccircle cx='38' cy='8' r='2.5'/%3E%3Cpath d='M35,7 Q33,5 35,9 M41,7 Q43,5 41,9'/%3E%3Cellipse cx='38' cy='11' rx='2' ry='1.5'/%3E%3C!-- Bottom-left cherub --%3E%3Ccircle cx='8' cy='58' r='2.5'/%3E%3Cpath d='M5,59 Q3,61 5,57 M11,59 Q13,61 11,57'/%3E%3Cellipse cx='8' cy='55' rx='2' ry='1.5'/%3E%3C!-- Bottom-right cherub --%3E%3Ccircle cx='38' cy='58' r='2.5'/%3E%3Cpath d='M35,59 Q33,61 35,57 M41,59 Q43,61 41,57'/%3E%3Cellipse cx='38' cy='55' rx='2' ry='1.5'/%3E%3C/g%3E%3C!-- Scrollwork borders --%3E%3Cg fill='none' stroke='%23fff' stroke-width='0.5' opacity='0.85'%3E%3Cpath d='M12,5 Q23,8 34,5'/%3E%3Cpath d='M12,61 Q23,58 34,61'/%3E%3Cpath d='M5,15 Q8,33 5,51'/%3E%3Cpath d='M41,15 Q38,33 41,51'/%3E%3C!-- Corner flourishes --%3E%3Cpath d='M6,14 Q4,12 6,10 Q8,12 10,10'/%3E%3Cpath d='M40,14 Q42,12 40,10 Q38,12 36,10'/%3E%3Cpath d='M6,52 Q4,54 6,56 Q8,54 10,56'/%3E%3Cpath d='M40,52 Q42,54 40,56 Q38,54 36,56'/%3E%3C/g%3E%3C!-- Top medallion with angel on bicycle --%3E%3Ccircle cx='23' cy='22' r='12' fill='none' stroke='%23fff' stroke-width='0.8'/%3E%3Ccircle cx='23' cy='22' r='10' fill='none' stroke='%23fff' stroke-width='0.4'/%3E%3Cg fill='%23fff' opacity='0.9'%3E%3C!-- Angel head --%3E%3Ccircle cx='23' cy='16' r='2'/%3E%3C!-- Wings --%3E%3Cpath d='M20,15 Q17,13 19,17'/%3E%3Cpath d='M26,15 Q29,13 27,17'/%3E%3C!-- Body --%3E%3Cellipse cx='23' cy='19' rx='1.5' ry='2'/%3E%3C!-- Penny-farthing big wheel --%3E%3Ccircle cx='23' cy='26' r='5' fill='none' stroke='%23fff' stroke-width='0.6'/%3E%3C!-- Spokes --%3E%3Cpath d='M23,21 L23,31 M18,26 L28,26 M20,23 L26,29 M26,23 L20,29' stroke='%23fff' stroke-width='0.3' fill='none'/%3E%3C!-- Small wheel --%3E%3Ccircle cx='30' cy='28' r='2' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/g%3E%3C!-- Center divider --%3E%3Cellipse cx='23' cy='33' rx='4' ry='2' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3Ccircle cx='23' cy='33' r='1' fill='%23fff'/%3E%3C!-- Bottom medallion (mirrored) --%3E%3Ccircle cx='23' cy='44' r='12' fill='none' stroke='%23fff' stroke-width='0.8'/%3E%3Ccircle cx='23' cy='44' r='10' fill='none' stroke='%23fff' stroke-width='0.4'/%3E%3Cg fill='%23fff' opacity='0.9' transform='rotate(180 23 44)'%3E%3C!-- Angel head --%3E%3Ccircle cx='23' cy='38' r='2'/%3E%3C!-- Wings --%3E%3Cpath d='M20,37 Q17,35 19,39'/%3E%3Cpath d='M26,37 Q29,35 27,39'/%3E%3C!-- Body --%3E%3Cellipse cx='23' cy='41' rx='1.5' ry='2'/%3E%3C!-- Penny-farthing big wheel --%3E%3Ccircle cx='23' cy='48' r='5' fill='none' stroke='%23fff' stroke-width='0.6'/%3E%3C!-- Spokes --%3E%3Cpath d='M23,43 L23,53 M18,48 L28,48 M20,45 L26,51 M26,45 L20,51' stroke='%23fff' stroke-width='0.3' fill='none'/%3E%3C!-- Small wheel --%3E%3Ccircle cx='30' cy='50' r='2' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/g%3E%3C!-- Side decorations --%3E%3Cg fill='%23fff' opacity='0.7'%3E%3Cpath d='M8,33 L10,31 L10,35 Z'/%3E%3Cpath d='M38,33 L36,31 L36,35 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Decorative overlay for depth */
.card-back.red::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

/* ============================================
   BLUE BICYCLE RIDER BACK - Authentic Design
   Classic Victorian cherubs and scrollwork
   ============================================ */
.card-back.blue {
    background: #0d3b66;
}

/* Full Bicycle design pattern */
.card-back.blue::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 3px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    background:
        /* Complete Bicycle Rider Back SVG */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='66' viewBox='0 0 46 66'%3E%3Crect fill='%230d3b66' width='46' height='66'/%3E%3C!-- Ornate border frame --%3E%3Crect x='2' y='2' width='42' height='62' fill='none' stroke='%23fff' stroke-width='0.8' rx='2'/%3E%3Crect x='4' y='4' width='38' height='58' fill='none' stroke='%23fff' stroke-width='0.4' rx='1'/%3E%3C!-- Corner cherubs --%3E%3Cg fill='%23fff' opacity='0.95'%3E%3C!-- Top-left cherub --%3E%3Ccircle cx='8' cy='8' r='2.5'/%3E%3Cpath d='M5,7 Q3,5 5,9 M11,7 Q13,5 11,9'/%3E%3Cellipse cx='8' cy='11' rx='2' ry='1.5'/%3E%3C!-- Top-right cherub --%3E%3Ccircle cx='38' cy='8' r='2.5'/%3E%3Cpath d='M35,7 Q33,5 35,9 M41,7 Q43,5 41,9'/%3E%3Cellipse cx='38' cy='11' rx='2' ry='1.5'/%3E%3C!-- Bottom-left cherub --%3E%3Ccircle cx='8' cy='58' r='2.5'/%3E%3Cpath d='M5,59 Q3,61 5,57 M11,59 Q13,61 11,57'/%3E%3Cellipse cx='8' cy='55' rx='2' ry='1.5'/%3E%3C!-- Bottom-right cherub --%3E%3Ccircle cx='38' cy='58' r='2.5'/%3E%3Cpath d='M35,59 Q33,61 35,57 M41,59 Q43,61 41,57'/%3E%3Cellipse cx='38' cy='55' rx='2' ry='1.5'/%3E%3C/g%3E%3C!-- Scrollwork borders --%3E%3Cg fill='none' stroke='%23fff' stroke-width='0.5' opacity='0.85'%3E%3Cpath d='M12,5 Q23,8 34,5'/%3E%3Cpath d='M12,61 Q23,58 34,61'/%3E%3Cpath d='M5,15 Q8,33 5,51'/%3E%3Cpath d='M41,15 Q38,33 41,51'/%3E%3C!-- Corner flourishes --%3E%3Cpath d='M6,14 Q4,12 6,10 Q8,12 10,10'/%3E%3Cpath d='M40,14 Q42,12 40,10 Q38,12 36,10'/%3E%3Cpath d='M6,52 Q4,54 6,56 Q8,54 10,56'/%3E%3Cpath d='M40,52 Q42,54 40,56 Q38,54 36,56'/%3E%3C/g%3E%3C!-- Top medallion with angel on bicycle --%3E%3Ccircle cx='23' cy='22' r='12' fill='none' stroke='%23fff' stroke-width='0.8'/%3E%3Ccircle cx='23' cy='22' r='10' fill='none' stroke='%23fff' stroke-width='0.4'/%3E%3Cg fill='%23fff' opacity='0.9'%3E%3C!-- Angel head --%3E%3Ccircle cx='23' cy='16' r='2'/%3E%3C!-- Wings --%3E%3Cpath d='M20,15 Q17,13 19,17'/%3E%3Cpath d='M26,15 Q29,13 27,17'/%3E%3C!-- Body --%3E%3Cellipse cx='23' cy='19' rx='1.5' ry='2'/%3E%3C!-- Penny-farthing big wheel --%3E%3Ccircle cx='23' cy='26' r='5' fill='none' stroke='%23fff' stroke-width='0.6'/%3E%3C!-- Spokes --%3E%3Cpath d='M23,21 L23,31 M18,26 L28,26 M20,23 L26,29 M26,23 L20,29' stroke='%23fff' stroke-width='0.3' fill='none'/%3E%3C!-- Small wheel --%3E%3Ccircle cx='30' cy='28' r='2' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/g%3E%3C!-- Center divider --%3E%3Cellipse cx='23' cy='33' rx='4' ry='2' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3Ccircle cx='23' cy='33' r='1' fill='%23fff'/%3E%3C!-- Bottom medallion (mirrored) --%3E%3Ccircle cx='23' cy='44' r='12' fill='none' stroke='%23fff' stroke-width='0.8'/%3E%3Ccircle cx='23' cy='44' r='10' fill='none' stroke='%23fff' stroke-width='0.4'/%3E%3Cg fill='%23fff' opacity='0.9' transform='rotate(180 23 44)'%3E%3C!-- Angel head --%3E%3Ccircle cx='23' cy='38' r='2'/%3E%3C!-- Wings --%3E%3Cpath d='M20,37 Q17,35 19,39'/%3E%3Cpath d='M26,37 Q29,35 27,39'/%3E%3C!-- Body --%3E%3Cellipse cx='23' cy='41' rx='1.5' ry='2'/%3E%3C!-- Penny-farthing big wheel --%3E%3Ccircle cx='23' cy='48' r='5' fill='none' stroke='%23fff' stroke-width='0.6'/%3E%3C!-- Spokes --%3E%3Cpath d='M23,43 L23,53 M18,48 L28,48 M20,45 L26,51 M26,45 L20,51' stroke='%23fff' stroke-width='0.3' fill='none'/%3E%3C!-- Small wheel --%3E%3Ccircle cx='30' cy='50' r='2' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/g%3E%3C!-- Side decorations --%3E%3Cg fill='%23fff' opacity='0.7'%3E%3Cpath d='M8,33 L10,31 L10,35 Z'/%3E%3Cpath d='M38,33 L36,31 L36,35 Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Decorative overlay for depth */
.card-back.blue::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}

/* ============================================
   CARD FACE - Premium Vegas VIP Design
   ============================================ */
.card-face {
    /* Premium card stock with linen texture */
    background:
        /* Subtle linen/canvas texture */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='linen'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23linen)' opacity='0.03'/%3E%3C/svg%3E"),
        /* Horizontal linen weave lines */
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 3px
        ),
        /* Vertical linen weave lines */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 3px
        ),
        /* Base cream card color */
        linear-gradient(135deg,
            #fffef8 0%,
            #faf8f2 30%,
            #f5f2ea 60%,
            #f0ede5 100%);
    flex-direction: column;
    justify-content: flex-start;
    padding: 3px 4px;
    /* Gold-edged border for VIP cards */
    border: 2px solid #daa520;
    /* Ensure content stays inside */
    overflow: hidden;

    /* Softer, more realistic card shadow */
    box-shadow:
        /* Soft ambient shadow */
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.1),
        /* Subtle lift shadow */
        0 1px 2px rgba(0, 0, 0, 0.2),
        /* Inner highlight for thickness */
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.card-face.red {
    color: #cc0000;
}

.card-face.black {
    color: #1a1a1a;
}

.card-rank {
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1;
    font-family: 'Georgia', serif;
}

.card-suit {
    font-size: 0.7rem;
    line-height: 1;
}

.card-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.card-bottom {
    display: none;
}

/* ============================================
   MINI CARDS - Result Display
   ============================================ */
.mini-card {
    width: 38px;
    height: 54px;
    background: linear-gradient(135deg,
        #fffef8 0%,
        #f8f6f0 50%,
        #f0ede5 100%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: 'Georgia', serif;
    border: 1px solid #bbb;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mini-card.red {
    color: #cc0000;
}

.mini-card.black {
    color: #1a1a1a;
}

/* ============================================
   CARD ANIMATIONS
   ============================================ */

/* Dealing animation - crisp snap effect */
@keyframes dealCard {
    0% {
        transform: translateY(-80px) rotate(-10deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(0) rotate(2deg) scale(1.02);
        opacity: 1;
    }
    70% {
        transform: translateY(-3px) rotate(-1deg) scale(1);
    }
    85% {
        transform: translateY(1px) rotate(0.5deg) scale(1);
    }
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Card snap micro-animation on land */
@keyframes cardSnap {
    0% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.15),
            0 4px 8px rgba(0, 0, 0, 0.12);
    }
    50% {
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow:
            0 2px 4px rgba(0, 0, 0, 0.15),
            0 4px 8px rgba(0, 0, 0, 0.12);
    }
}

.card.dealing {
    animation: dealCard 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.card.dealing .card-back,
.card.dealing .card-face {
    animation: cardSnap 0.15s ease-out 0.3s;
}

.card:nth-child(1).dealing { animation-delay: 0ms; }
.card:nth-child(2).dealing { animation-delay: 150ms; }
.card:nth-child(3).dealing { animation-delay: 300ms; }

/* Card hover effect for human player */
.human-seat .card {
    transition: transform 0.2s ease;
}

.human-seat .card:hover {
    transform: translateY(-5px);
    z-index: 10;
}

/* Folded cards animation */
@keyframes foldCards {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, -10px) rotate(-15deg) scale(0.9);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50px, 20px) rotate(-30deg) scale(0.5);
        opacity: 0;
    }
}

.card.folding {
    animation: foldCards 0.4s ease-in forwards;
}

/* Showdown reveal - simple fade */
@keyframes revealCard {
    0% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.card.revealing {
    animation: revealCard 0.3s ease-out forwards;
}

.card:nth-child(1).revealing { animation-delay: 0ms; }
.card:nth-child(2).revealing { animation-delay: 100ms; }
.card:nth-child(3).revealing { animation-delay: 200ms; }

/* Winner cards glow - Premium Gold Foil Edge Effect */
@keyframes winnerCardGlow {
    0%, 100% {
        box-shadow:
            /* Base shadow */
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 4px 8px rgba(0, 0, 0, 0.15),
            /* Gold foil inner edge */
            inset 0 0 0 2px rgba(255, 215, 0, 0.8),
            inset 0 0 8px rgba(255, 215, 0, 0.3),
            /* Outer gold glow */
            0 0 15px rgba(255, 215, 0, 0.5),
            0 0 30px rgba(255, 200, 50, 0.3),
            0 0 45px rgba(255, 180, 0, 0.2);
        filter: brightness(1.05);
    }
    50% {
        box-shadow:
            /* Base shadow */
            0 2px 4px rgba(0, 0, 0, 0.2),
            0 4px 8px rgba(0, 0, 0, 0.15),
            /* Gold foil inner edge - intensified */
            inset 0 0 0 2px rgba(255, 225, 100, 1),
            inset 0 0 12px rgba(255, 215, 0, 0.5),
            /* Outer gold glow - intensified */
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 50px rgba(255, 200, 50, 0.5),
            0 0 75px rgba(255, 180, 0, 0.3);
        filter: brightness(1.1);
    }
}

/* Gold foil shimmer across the card */
@keyframes goldFoilShimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.winner .card .card-face {
    animation: winnerCardGlow 1.5s ease-in-out infinite;
    border: 2px solid #ffd700;
    position: relative;
}

/* Gold shimmer overlay on winner cards */
.winner .card .card-face::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 215, 0, 0.1) 35%,
        rgba(255, 235, 150, 0.25) 50%,
        rgba(255, 215, 0, 0.1) 65%,
        transparent 80%
    );
    background-size: 200% 100%;
    animation: goldFoilShimmer 2s ease-in-out infinite;
    pointer-events: none;
    border-radius: 4px;
}

/* ============================================
   CARDS LAYOUT - No overlap
   ============================================ */
.player-cards .card {
    margin: 0 2px;
}

/* ============================================
   CARD SHIMMER EFFECT - Premium Holographic
   ============================================ */
@keyframes cardShimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes holoSheen {
    0% {
        transform: translateX(-100%) rotate(25deg);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    30% {
        transform: translateX(100%) rotate(25deg);
        opacity: 0;
    }
    100% {
        transform: translateX(100%) rotate(25deg);
        opacity: 0;
    }
}

.card-back::before {
    position: relative;
}

/* Holographic sheen overlay for all card backs */
.card-back .holo-sheen {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.15) 55%,
        transparent 60%
    );
    transform: translateX(-100%) rotate(25deg);
    animation: holoSheen 4s ease-in-out infinite;
    pointer-events: none;
}

.card-back.shimmering::before {
    background-image:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 45%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.1) 55%,
            transparent 100%
        );
    background-size: 200% 100%;
    animation: cardShimmer 2s ease-in-out infinite;
}

/* Premium edge highlight */
.card-back {
    position: relative;
}

.card-back::after {
    z-index: 1;
}

/* Card back texture overlay */
.card-back.red,
.card-back.blue {
    position: relative;
}

/* Subtle texture on card backs */
.card-back.red::before,
.card-back.blue::before {
    z-index: 0;
}

/* Ensure center medallion is on top */
.card-back.red::after,
.card-back.blue::after {
    z-index: 2;
}
