/* --- SCRATCH CARD WIDGET --- */
.starter-scratch-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    cursor: crosshair;
    /* Default size, overridden by controls */
    width: 100%; 
    max-width: 400px; 
    margin: 0 auto;
}

.starter-scratch-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff; /* Default back bg */
}

.starter-scratch-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.starter-scratch-canvas {
    position: relative; /* Canvas dictates height if not set absolutely? No, usually wrapper size dictates */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Coupon Style Helper */
.starter-scratch--coupon {
    border: 2px dashed #e5e7eb;
    padding: 10px;
    background: #f9fafb;
    border-radius: 12px;
}
.starter-scratch--coupon .starter-scratch-container {
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Text Content Helper */
.starter-scratch-text-content {
    text-align: center;
    padding: 20px;
}
.starter-scratch-code {
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    background: #eef2ff;
    color: #4f46e5;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #c7d2fe;
    display: inline-block;
    margin-top: 8px;
}