/* ==========================================
   HORROR SOLITAIRE - CARDS
   ========================================== */

.card {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f5f0e6,
            #ddd4c2
        );

    border: 1px solid #181818;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.65);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}


/* Card texture */

.card::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(0, 0, 0, 0.05) 1px,
            transparent 1px
        );

    background-size: 5px 5px;

    opacity: 0.4;
}


/* Face-down horror card */

.card.face-down {
    background:
        linear-gradient(
            135deg,
            #120303,
            #4a0b0b
        );

    border: 3px solid #090909;

    box-shadow:
        inset 0 0 0 2px #6f1515,
        0 7px 15px rgba(0, 0, 0, 0.8);
}


/* Decorative border */

.card.face-down::before {
    content: "☠";

    position: absolute;

    inset: 6px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(180, 120, 70, 0.5);

    color: #c59b62;

    font-size: 2rem;
}


/* Remove placeholder symbol */

.card.face-down {
    font-size: 0;
}


/* Red suits */

.card.hearts,
.card.diamonds {
    color: #9d1010;
}


/* Black suits */

.card.clubs,
.card.spades {
    color: #111;
}


/* Card selection */

.card.selected {
    transform: translateY(-8px);

    box-shadow:
        0 0 0 3px #b38b4d,
        0 12px 25px rgba(0, 0, 0, 0.8);
}


/* Card being dragged */

.card.dragging {
    opacity: 0.7;

    transform:
        rotate(3deg)
        scale(1.05);

    z-index: 1000;
}


/* Empty pile */

.card-pile.empty::before,
.tableau-pile:empty::before {
    content: "♠";

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.08);

    font-size: 2rem;
}