/* ================================================
   DECK GRID SUIT ICONS (Stenciled Effect)
   ================================================ */

.deck-card {
    position: relative;
    width: 40px;
    height: 56px;
    background-color: #444;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
}

/* Large stenciled suit icons using ::before */
.deck-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
    pointer-events: none;
}

/* Ensure rank text appears above the icon */
.deck-card {
    position: relative;
    z-index: 1;
}

.deck-card:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Spades */
.deck-card.suit-s {
    background-color: #333;
    color: white;
}

.deck-card.suit-s::before {
    content: '♠';
}

/* Hearts */
.deck-card.suit-h {
    background-color: #8b0000;
    color: white;
}

.deck-card.suit-h::before {
    content: '♥';
}

/* Diamonds */
.deck-card.suit-d {
    background-color: #00008b;
    color: white;
}

.deck-card.suit-d::before {
    content: '♦';
}

/* Clubs */
.deck-card.suit-c {
    background-color: #006400;
    color: white;
}

.deck-card.suit-c::before {
    content: '♣';
}

/* States */
.deck-card.selected {
    opacity: 0.3;
    filter: grayscale(100%);
    cursor: default;
    box-shadow: inset 0 0 0 2px #fff;
}

.deck-card.disabled {
    opacity: 0.1;
    pointer-events: none;
}