.scratch-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 2 / 1; /* Optional, can use height instead */
    margin: 20px auto;
    border: 2px solid #ccc;
}

#rewardText {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    background: #fff; /* MUST be here to make visible under scratch layer */
    z-index: 0; /* Canvas is z-index: 1 */
}

#scratchCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
    cursor: crosshair;
}


h2.scratch-h2 {
    padding: 15px;
    margin: 0 !important;
    background: linear-gradient(270deg, black, #c7921e, #3f2b01);
    background-size: 600% 600%;
    animation: gradientAnimation 8s ease infinite;
    color: white; /* Optional: keep text readable */
}

/* Keyframes for animated gradient */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
