.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    pointer-events: auto;
}
.aura-zone {
    position: absolute;
    width: 14%;
    height: 40%;
    margin-bottom: 1.5%;
    z-index: 3;
    cursor: pointer;
}
.video-container video {
    position: relative;
    z-index: 2;
    transition: filter 0.3s ease;
    pointer-events: none;
    height: 1080px;
    width: 1920px;
}
/* Rarity-specific hover effects for aura-zone, disabled during playback */
.video-container.rarity-STAR:not(.playing) .aura-zone:hover ~ video {
    filter: brightness(1.6) drop-shadow(0 0 40px #E5E4E2) drop-shadow(0 0 80px #C0C0C0);
}
.video-container.rarity-S:not(.playing) .aura-zone:hover ~ video {
    filter: brightness(1.4) drop-shadow(0 0 30px red);
}
.video-container.rarity-A:not(.playing) .aura-zone:hover ~ video {
    filter: brightness(1.4) drop-shadow(0 0 30px yellow);
}
.video-container.rarity-B:not(.playing) .aura-zone:hover ~ video {
    filter: brightness(1.4) drop-shadow(0 0 30px blue);
}
.video-container.rarity-C:not(.playing) .aura-zone:hover ~ video {
    filter: brightness(1.4) drop-shadow(0 0 15px green);
}
.video-container.rarity-D:not(.playing) .aura-zone:hover ~ video {
    filter: brightness(1.4) drop-shadow(0 0 10px gray);
}
/* Video filter during playbook */
.video-container.rarity-STAR.playing video.active {
    filter: brightness(1.6) drop-shadow(0 0 40px #E5E4E2) drop-shadow(0 0 80px #C0C0C0);
}
.video-container.rarity-S.playing video.active {
    filter: brightness(1.4) drop-shadow(0 0 30px red);
}
.video-container.rarity-A.playing video.active {
    filter: brightness(1.4) drop-shadow(0 0 30px yellow);
}
.video-container.rarity-B.playing video.active {
    filter: brightness(1.4) drop-shadow(0 0 30px blue);
}
.video-container.rarity-C.playing video.active {
    filter: brightness(1.4) drop-shadow(0 0 15px green);
}
.video-container.rarity-D.playing video.active {
    filter: brightness(1.4) drop-shadow(0 0 10px gray);
}
.card {
    position: absolute;
    width: 23%;
    height: 58%;
    z-index: 1;
    opacity: 0;
    display: flex;
    top: 19%;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    animation: idleFloat 4s ease-in-out infinite;
    border-radius: 12px;
    perspective: 1000px;
    transition: all 0.2s ease;
    overflow: hidden;
}
.card.show:hover {
    animation-play-state: paused;
}

/* Holographic shine overlay for STAR cards */
.card.rarity-STAR::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card.rarity-STAR.card-hovering::after {
    opacity: 1;
}

/* Card Zone Styles */
.card-zone {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    z-index: 6;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.card-zone.zone-1 {
    background: radial-gradient(circle, #ff4757, #c44569);
}

.card-zone.zone-2 {
    background: radial-gradient(circle, #3742fa, #2f3542);
}

.card-zone.zone-3 {
    background: radial-gradient(circle, #2ed573, #1e824c);
}

.card-zone.zone-4 {
    background: radial-gradient(circle, #ffa502, #ff6348);
}

.card-zone.zone-5 {
    background: radial-gradient(circle, #a4b0be, #57606f);
}

/* Card Boost Styles */
.card-boost {
    position: absolute;
    bottom: 25%;
    left: 15%;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 3.5em;
    font-weight: 900;
    color: #fff;
    z-index: 5;
    transform: rotate(-15deg);
    letter-spacing: 2px;
}

/* Enhanced Card Boost Glow Effects */
.card.rarity-STAR .card-boost {
    text-shadow: 
        0 0 20px rgba(229, 228, 226, 0.8),
        0 0 40px rgba(192, 192, 192, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4);
}

.card.rarity-S .card-boost {
    text-shadow: 
        0 0 20px rgba(255, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6);
}

.card.rarity-A .card-boost {
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 0 25px rgba(255, 165, 0, 0.6);
}

.card.rarity-B .card-boost {
    text-shadow: 
        0 0 12px rgba(30, 144, 255, 0.7),
        0 0 20px rgba(0, 105, 255, 0.5);
}

.card.rarity-C .card-boost {
    text-shadow: 
        0 0 10px rgba(50, 205, 50, 0.6),
        0 0 15px rgba(34, 139, 34, 0.4);
}

@keyframes boostPulse-STAR {
    0%, 100% { 
        transform: rotate(-15deg) scale(1);
        text-shadow: 
            0 0 20px rgba(229, 228, 226, 0.8),
            0 0 40px rgba(192, 192, 192, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4);
    }
    50% { 
        transform: rotate(-15deg) scale(1.05);
        text-shadow: 
            0 0 30px rgba(229, 228, 226, 1),
            0 0 60px rgba(192, 192, 192, 0.8),
            0 0 80px rgba(255, 255, 255, 0.6);
    }
}

@keyframes boostPulse-S {
    0%, 100% { 
        transform: rotate(-15deg) scale(1);
        text-shadow: 
            0 0 20px rgba(255, 0, 0, 0.8),
            0 0 30px rgba(255, 0, 0, 0.6);
    }
    50% { 
        transform: rotate(-15deg) scale(1.05);
        text-shadow: 
            0 0 30px rgba(255, 0, 0, 1),
            0 0 40px rgba(255, 0, 0, 0.8);
    }
}

@keyframes boostPulse-A {
    0%, 100% { 
        transform: rotate(-15deg) scale(1);
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.8),
            0 0 25px rgba(255, 165, 0, 0.6);
    }
    50% { 
        transform: rotate(-15deg) scale(1.05);
        text-shadow: 
            0 0 25px rgba(255, 215, 0, 1),
            0 0 35px rgba(255, 165, 0, 0.8);
    }
}

@keyframes boostPulse-B {
    0%, 100% { 
        transform: rotate(-15deg) scale(1);
        text-shadow: 
            0 0 12px rgba(30, 144, 255, 0.7),
            0 0 20px rgba(0, 105, 255, 0.5);
    }
    50% { 
        transform: rotate(-15deg) scale(1.05);
        text-shadow: 
            0 0 18px rgba(30, 144, 255, 0.9),
            0 0 30px rgba(0, 105, 255, 0.7);
    }
}

@keyframes boostPulse-C {
    0%, 100% { 
        transform: rotate(-15deg) scale(1);
        text-shadow: 
            0 0 10px rgba(50, 205, 50, 0.6),
            0 0 15px rgba(34, 139, 34, 0.4);
    }
    50% { 
        transform: rotate(-15deg) scale(1.05);
        text-shadow: 
            0 0 15px rgba(50, 205, 50, 0.8),
            0 0 25px rgba(34, 139, 34, 0.6);
    }
}

/* D Tier - Enhanced basic texture with more prominent patterns */
.card.rarity-D {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 2px, transparent 2px),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.15) 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 55%, rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(135deg, #A9A9A9 0%, #C0C0C0 25%, #B8B8B8 50%, #D3D3D3 75%, #A9A9A9 100%);
    background-size: 40px 40px, 25px 25px, 15px 15px, 100% 100%;
    border: 4px double #696969;
    box-shadow: none;
}
.card.rarity-D::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,0.15) 3px, rgba(255,255,255,0.15) 6px),
        repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(169,169,169,0.3) 8px, rgba(169,169,169,0.3) 12px),
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255,255,255,0.08) 45deg, transparent 90deg);
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

/* C Tier - Enhanced dotted texture with more visible patterns */
.card.rarity-C {
    background: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.25) 2.5px, transparent 2.5px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.2) 2px, transparent 2px),
        radial-gradient(circle at 50% 10%, rgba(144,238,144,0.3) 1.5px, transparent 1.5px),
        radial-gradient(circle at 10% 60%, rgba(255,255,255,0.15) 1px, transparent 1px),
        linear-gradient(135deg, #32CD32 0%, #90EE90 20%, #3FE03F 40%, #98FB98 60%, #32CD32 80%, #228B22 100%);
    background-size: 35px 35px, 20px 20px, 30px 30px, 18px 18px, 100% 100%;
    border: 4px double #228B22;
    box-shadow: none;
}
.card.rarity-C::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(45deg, rgba(50, 205, 50, 0.25) 0px, rgba(50, 205, 50, 0.25) 6px, transparent 6px, transparent 12px),
        repeating-linear-gradient(-45deg, transparent 0px, transparent 4px, rgba(144,238,144,0.2) 4px, rgba(144,238,144,0.2) 8px),
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255,255,255,0.15) 30deg, transparent 60deg, rgba(50,205,50,0.1) 90deg),
        repeating-radial-gradient(circle at 30% 70%, rgba(255,255,255,0.12) 1px, transparent 3px, rgba(50,205,50,0.08) 6px, transparent 10px);
    background-size: 16px 16px, 20px 20px, 12px 12px, 25px 25px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

/* B Tier - Enhanced crystalline texture */
.card.rarity-B {
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.3) 3px, transparent 3px),
        radial-gradient(ellipse at 80% 20%, rgba(135,206,250,0.35) 2.5px, transparent 2.5px),
        radial-gradient(circle at 15% 85%, rgba(173,216,230,0.25) 2px, transparent 2px),
        radial-gradient(ellipse at 65% 65%, rgba(255,255,255,0.2) 1.5px, transparent 1.5px),
        linear-gradient(135deg, #1E90FF 0%, #87CEEB 15%, #4169E1 30%, #B0E0E6 45%, #1E90FF 60%, #6495ED 75%, #4169E1 90%, #1E90FF 100%);
    background-size: 30px 30px, 18px 18px, 25px 25px, 12px 12px, 100% 100%;
    border: 4px double #104E8B;
    box-shadow: none;
}
.card.rarity-B::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(90deg, rgba(255,255,255,0.2) 0px, transparent 4px, rgba(30, 144, 255, 0.25) 8px, transparent 12px),
        repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(135,206,250,0.2) 10px, transparent 16px),
        repeating-linear-gradient(-45deg, rgba(30,144,255,0.15) 0px, transparent 6px, rgba(255,255,255,0.1) 10px, transparent 14px),
        conic-gradient(from 45deg at 25% 25%, transparent 0deg, rgba(255,255,255,0.2) 45deg, transparent 90deg, rgba(135,206,250,0.15) 180deg, transparent 270deg);
    background-size: 20px 20px, 25px 25px, 22px 22px, 35px 35px;
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

/* A Tier - Enhanced ornate golden texture */
.card.rarity-A {
    background: 
        radial-gradient(circle at 40% 30%, rgba(255,223,0,0.4) 4px, transparent 4px),
        radial-gradient(circle at 70% 70%, rgba(255,255,255,0.35) 2.5px, transparent 2.5px),
        radial-gradient(circle at 15% 85%, rgba(255,215,0,0.3) 3px, transparent 3px),
        radial-gradient(ellipse at 85% 15%, rgba(255,165,0,0.25) 2px, transparent 2px),
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.2) 1.5px, transparent 1.5px),
        linear-gradient(135deg, #FFD700 0%, #FFA500 12%, #FFFF99 25%, #FFD700 37%, #FF8C00 50%, #FFFF99 62%, #FFD700 75%, #FFA500 87%, #FFD700 100%);
    background-size: 28px 28px, 14px 14px, 22px 22px, 20px 20px, 16px 16px, 100% 100%;
    border: 4px double #B8860B;
    box-shadow: none;
}
.card.rarity-A::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-conic-gradient(from 0deg at 30% 30%, rgba(255,215,0,0.3) 0deg, transparent 20deg, rgba(255,223,0,0.25) 40deg, transparent 60deg, rgba(255,255,255,0.2) 80deg, transparent 90deg),
        repeating-linear-gradient(135deg, rgba(255,215,0,0.25) 0px, transparent 6px, rgba(255,255,255,0.2) 10px, transparent 16px),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,215,0,0.2) 14px, transparent 20px),
        repeating-radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.15) 1px, transparent 4px, rgba(255,215,0,0.1) 8px, transparent 12px);
    background-size: 18px 18px, 22px 22px, 30px 30px, 26px 26px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

/* S Tier - Enhanced complex fiery texture */
.card.rarity-S {
    background: 
        radial-gradient(ellipse at 25% 35%, rgba(255,69,0,0.5) 5px, transparent 5px),
        radial-gradient(circle at 75% 25%, rgba(255,255,255,0.4) 3px, transparent 3px),
        radial-gradient(ellipse at 60% 80%, rgba(255,20,147,0.35) 4px, transparent 4px),
        radial-gradient(circle at 10% 90%, rgba(255,165,0,0.4) 2.5px, transparent 2.5px),
        radial-gradient(ellipse at 85% 60%, rgba(255,0,0,0.3) 3px, transparent 3px),
        radial-gradient(circle at 40% 10%, rgba(255,255,255,0.25) 2px, transparent 2px),
        linear-gradient(135deg, #FF0000 0%, #FF4500 10%, #DC143C 20%, #FF0000 30%, #FF6347 40%, #B22222 50%, #FF0000 60%, #FF4500 70%, #DC143C 80%, #FF0000 90%, #8B0000 100%);
    background-size: 22px 22px, 11px 11px, 18px 18px, 16px 16px, 20px 20px, 14px 14px, 100% 100%;
    border: 4px double #8B0000;
    box-shadow: none;
}
.card.rarity-S::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-conic-gradient(from 45deg at 40% 40%, rgba(255,0,0,0.35) 0deg, transparent 15deg, rgba(255,69,0,0.3) 30deg, transparent 45deg, rgba(255,255,255,0.2) 60deg, transparent 75deg, rgba(255,0,0,0.25) 90deg),
        repeating-linear-gradient(90deg, rgba(255,0,0,0.25) 0px, transparent 4px, rgba(255,69,0,0.2) 8px, transparent 12px),
        repeating-linear-gradient(45deg, transparent 0px, transparent 6px, rgba(255,255,255,0.15) 8px, transparent 12px),
        repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 1px, transparent 3px, rgba(255,0,0,0.15) 6px, transparent 10px, rgba(255,69,0,0.1) 14px, transparent 18px);
    background-size: 16px 16px, 18px 18px, 20px 20px, 26px 26px;
    opacity: 0.85;
    pointer-events: none;
    z-index: 1;
    animation: fireTexturePulse 3s ease-in-out infinite;
}

.card.rarity-STAR {
    background: 
        linear-gradient(135deg, #E5E4E2 0%, #F8F8FF 8%, #E6E6FA 16%, #F0F8FF 24%, #E5E4E2 32%, #F5F5DC 40%, #E6E6FA 48%, #F8F8FF 56%, #E5E4E2 64%, #F0F8FF 72%, #E6E6FA 80%, #F8F8FF 88%, #E5E4E2 100%);
    background-size: 22px 22px, 18px 18px, 25px 25px, 15px 15px, 20px 20px, 100% 100%;
    border: 3px solid #C0C0C0;
    box-shadow: none;
}

.card.rarity-STAR .card-image {
    z-index: 1 !important;
    opacity: 0.7;
    filter: brightness(1.5);
    height: 100%;
    width: 100%;
}

.card.rarity-STAR::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg, 
            transparent,
            rgba(255, 0, 150, 0.2),
            rgba(0, 255, 255, 0.2),
            rgba(255, 255, 0, 0.2),
            rgba(255, 0, 150, 0.2),
            transparent),
        linear-gradient(45deg, 
            transparent 25%, 
            rgba(255, 255, 255, 0.4) 50%, 
            transparent 75%),
        repeating-conic-gradient(from 30deg at 25% 25%, rgba(255,0,150,0.15) 0deg, transparent 10deg, rgba(0,255,255,0.12) 20deg, transparent 30deg),
        repeating-radial-gradient(ellipse at 60% 60%, rgba(255,255,255,0.25) 1px, transparent 2px, rgba(255,255,0,0.15) 4px, transparent 8px),
        repeating-linear-gradient(60deg, transparent 0px, transparent 3px, rgba(255,0,150,0.1) 5px, transparent 8px);
    background-size: 100% 100%, 100% 100%, 14px 14px, 20px 20px, 16px 16px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    animation: starTexturePulse 6s ease-in-out infinite;
}

.card.show {
    animation: revealCard 5s forwards, idleFloat 4s ease-in-out infinite;
}
/* Rarity-specific glow pulse animations with 4s delay */
.card.rarity-STAR.show {
    animation: revealCard 10s forwards, glowPulse-STAR 6s ease-in-out .7s infinite;
}
.card.rarity-S.show {
    animation: revealCard 10s forwards, glowPulse-S 10s cubic-bezier(0.4, 0, 0.6, 1) .7s infinite;
}
.card.rarity-A.show {
    animation: revealCard 10s forwards, glowPulse-A 10s cubic-bezier(0.4, 0, 0.6, 1) .7s infinite;
}
.card.rarity-B.show {
    animation: revealCard 10s forwards, glowPulse-B 10s cubic-bezier(0.4, 0, 0.6, 1) .7s infinite;
}
.card.rarity-C.show {
    animation: revealCard 10s forwards, glowPulse-C 10s cubic-bezier(0.4, 0, 0.6, 1) .7s infinite;
}
.card.rarity-D.show {
    animation: revealCard 10s forwards;
}

/* Additional animations for texture effects */
@keyframes fireTexturePulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.95; }
}

@keyframes starTexturePulse {
    0%, 100% { opacity: 0.9; }
    33% { opacity: 1.0; }
    66% { opacity: 0.75; }
}

@keyframes revealCard {
    0%, 7% { opacity: 0; }
    8.5%, 39% { opacity: 1; }
    40%, 100% { opacity: 1; }
}
@keyframes idleFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(1deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
@keyframes holoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes holoSweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}
@keyframes textHoloSweep {
    0% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}
@keyframes glowPulse-STAR {
    0% { box-shadow: 0 0 20px rgba(229, 228, 226, 0.8); }
    50% { box-shadow: 0 0 40px rgba(255, 255, 255, 1), 0 0 60px rgba(192, 192, 192, 0.8), 0 0 80px rgba(229, 228, 226, 0.6); }
    100% { box-shadow: 0 0 20px rgba(229, 228, 226, 0.8); }
}
@keyframes glowPulse-S {
    0% { box-shadow: none; }
    20% { box-shadow: 0 0 40px rgba(255, 0, 0, 1), 0 0 80px rgba(255, 0, 0, 0.9); }
    60% { box-shadow: 0 0 30px rgba(255, 0, 0, 1), 0 0 60px rgba(255, 0, 0, 0.8); }
    100% { box-shadow: 0 0 40px rgba(255, 0, 0, 1), 0 0 80px rgba(255, 0, 0, 0.9); }
}
@keyframes glowPulse-A {
    0% { box-shadow: none; }
    20% { box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 165, 0, 0.9); }
    60% { box-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 60px rgba(255, 165, 0, 0.8); }
    100% { box-shadow: 0 0 40px rgba(255, 215, 0, 1), 0 0 80px rgba(255, 165, 0, 0.9); }
}
@keyframes glowPulse-B {
    0% { box-shadow: none; }
    20% { box-shadow: 0 0 20px rgba(30, 144, 255, 0.8), 0 0 40px rgba(0, 105, 255, 0.6); }
    60% { box-shadow: 0 0 15px rgba(30, 144, 255, 0.7), 0 0 30px rgba(0, 105, 255, 0.5); }
    100% { box-shadow: 0 0 20px rgba(30, 144, 255, 0.8), 0 0 40px rgba(0, 105, 255, 0.6); }
}
@keyframes glowPulse-C {
    0% { box-shadow: none; }
    20% { box-shadow: 0 0 15px rgba(50, 205, 50, 0.6), 0 0 25px rgba(34, 139, 34, 0.4); }
    60% { box-shadow: 0 0 10px rgba(50, 205, 50, 0.5), 0 0 20px rgba(34, 139, 34, 0.3); }
    100% { box-shadow: 0 0 15px rgba(50, 205, 50, 0.6), 0 0 25px rgba(34, 139, 34, 0.4); }
}
.card-header {
    position: absolute;
    left: -8px;
    font-family: 'Cinzel Decorative', 'Century Gothic', sans-serif;
    font-size: 3em;
    font-weight: 900;
    color: white;
    transform: rotate(-20deg);
    transform-origin: top left;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 4;
    overflow: hidden;
}
.card.rarity-STAR .card-header {
    font-size: 3.5em;
    color: #E5E4E2;
    background: linear-gradient(90deg, 
        #E5E4E2 20%,
        #ff0096 25%,
        #00ffff 30%,
        #ffff00 35%,
        #ff0096 40%,
        #E5E4E2 45%,
        #E5E4E2 55%,
        #ff0096 60%,
        #00ffff 65%,
        #ffff00 70%,
        #ff0096 75%,
        #E5E4E2 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textHoloSweep 10s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 30px rgba(229, 228, 226, 0.9), 0 0 40px rgba(192, 192, 192, 0.8);
}
.card.rarity-S .card-header {
    text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 18px rgba(255, 255, 255, 0.9);
}
.card.rarity-A .card-header {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 0.8);
}
.card.rarity-B .card-header {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.7);
}
.card.rarity-C .card-header {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 9px rgba(255, 255, 255, 0.6);
}
.card.rarity-D .card-header {
    text-shadow: none;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    border: 2px solid #696969;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
    z-index: 2;
    border-radius: 8px;
    pointer-events: none;
}

/* Action card specific image styling */
.card.action-card .card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    border: none;
}

.rarity-S .card-image {
    border: 2px solid #8B0000;
}
.rarity-A .card-image {
    border: 2px solid #B8860B;
}
.rarity-B .card-image {
    border: 2px solid #104E8B;
}
.rarity-C .card-image {
    border: 2px solid #228B22;
}
.rarity-D .card-image {
    border: 2px solid #696969;
}
.card-text-container-top {
    position: absolute;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 5px;
    z-index: 3;
    box-sizing: border-box;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
}
.card-text-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 5px;
    z-index: 3;
    box-sizing: border-box;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
}
.card-text {
    font-family: 'Cinzel', 'Arial', sans-serif;
    position: absolute;
    font-size: 1em;
    color: white;
    text-align: center;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    z-index: 5;
    margin-top: auto;
    padding: 20px;
    line-height: 1.2;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(to right, transparent, black, transparent);
    width: 100%;
}
.card.rarity-STAR .card-text {
    color: #E5E4E2;
    background: linear-gradient(90deg, 
        #E5E4E2 20%,
        #ff0096 25%,
        #00ffff 30%,
        #ffff00 35%,
        #ff0096 40%,
        #E5E4E2 45%,
        #E5E4E2 55%,
        #ff0096 60%,
        #00ffff 65%,
        #ffff00 70%,
        #ff0096 75%,
        #E5E4E2 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textHoloSweep 10s ease-in-out infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 16px rgba(229, 228, 226, 0.6);
}
@import url('https://fonts.googleapis.com/css2?family=Cinzel&family=Cinzel+Decorative:wght@700;900&display=swap');