.scratch-coupon-container {
position: relative;
display: inline-block;
overflow: hidden;
}
.scratch-canvas {
cursor: crosshair;
display: block;
border-radius: 10px;
}
.scratch-canvas:hover {
cursor: crosshair;
}
.confetti-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
}
.confetti {
position: absolute;
width: 10px;
height: 10px;
background: #f0f;
animation: confetti-fall 3s linear infinite;
}
@keyframes confetti-fall {
0% {
transform: translateY(-100vh) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(100vh) rotate(720deg);
opacity: 0;
}
}
.confetti:nth-child(odd) {
background: #ff6b6b;
animation-delay: 0.1s;
}
.confetti:nth-child(even) {
background: #4ecdc4;
animation-delay: 0.3s;
}
.confetti:nth-child(3n) {
background: #45b7d1;
animation-delay: 0.2s;
}
.confetti:nth-child(4n) {
background: #f9ca24;
animation-delay: 0.4s;
}
.confetti:nth-child(5n) {
background: #6c5ce7;
animation-delay: 0.5s;
}