/* ======================================================== */
/* 🃏 TURANTPLAY SOLITAIRE CASINO PREMIUM CARDS ENGINE      */
/* ======================================================== */

/* 1. Real Premium Card Texture & Drop Shadows */
.card {
    width: var(--card-width, 82px);
    height: var(--card-height, 122px);
    background: #ffffff linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 6px;
    position: absolute;
    border: 1px solid #d1d1d1;
    /* Deep multi-layered shadow to make cards look lifted off the green table */
    box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.12);
    z-index: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Red Suits Vector Vibrancy Calibration (Hearts & Diamonds) */
.card.red-suit { 
    color: #e51c23; 
    text-shadow: 0.5px 0.5px 0px rgba(0, 0, 0, 0.05);
}

/* Black Suits Vector Calibration (Spades & Clubs) */
.card.black-suit { 
    color: #111111; 
}

/* 2. Traditional Asymmetric Corner Layout Matrix */
.card-content {
    padding: 6px 7px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.corner-index {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 0.9;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -0.5px;
}

/* Exact Inverted Mirror Reflection for Traditional Layouts */
.corner-index.bottom-right {
    position: absolute;
    bottom: 6px;
    right: 7px;
    transform: rotate(180deg);
}

.mini-suit {
    font-size: 12px;
    margin-top: 2px;
}

/* 3. Mathematical Center Geometric Grid Arrangement */
.card-center-decorator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 62%;
    height: 62%;
    font-size: 15px;
    
    /* 3 Columns & 4 Rows setup for identical standard placement mapping */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
}

/* 4. Traditional Royal Face Cards Graphic Frame Overlays (K, Q, J) */
.card.royal-frame {
    /* Subtle luxury inner border shine */
    box-shadow: inset 0 0 0 4px rgba(212, 175, 55, 0.3), 0 3px 8px rgba(0,0,0,0.25);
}

.card.royal-frame .card-center-decorator {
    display: block;
    font-size: 46px;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1;
    opacity: 0.15; /* Elegant central watermark look */
    font-weight: bold;
    width: 100%;
    height: auto;
}

/* Symmetrical Royal Multi-Colored Portrait Border */
.royal-portrait-art {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border: 2px double rgba(184, 134, 11, 0.4);
    border-radius: 4px;
    /* Traditional fine-striped fabric mesh effect inside portraits */
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.02), rgba(0,0,0,0.02) 2px, transparent 2px, transparent 4px);
}

/* 5. Authentic Traditional Mosaic Cross-Grid Card Backs */
.card.back {
    background-color: #c62828;
    background-image: linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%, #ffffff), 
                      linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%, #ffffff);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    border: 4px solid #ffffff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.35);
}

/* Hide face parameters safely when card is closed */
.card.back * { 
    display: none !important; 
}