.stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 20px;
    font-weight: bold;
    color: rgba(255, 0, 0, 0.7);
    /* Red with transparency */
    border: 2px solid rgba(255, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    pointer-events: none;
    /* Allow interactions with underlying content */
    z-index: 10;
    /* Ensure the stamp appears above the card */
    background-color: rgba(255, 255, 255, 0.8);
    /* Slight background to make text stand out */
}

.cardgroup {
    position: relative;
    /* Ensure the cardgroup is the positioning context */
}

/* Greyscale effect for stamped cards */
.stamped {
    filter: grayscale(100%);
    pointer-events: none;
    /* Disable interactions for stamped cards if needed */
    opacity: 0.8;
    /* Slight fade for inactive look */
    position: relative;
}

/* Ensure the stamp is visible even with greyscale */
.stamped .stamp {
    color: rgba(255, 0, 0, 0.8);
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    pointer-events: none;
}