/* 刮刮乐样式 */
.scratch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 320px;
}

#scratchCanvas {
    border-radius: 8px;
    cursor: pointer;
    touch-action: none;
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 结果弹窗动效 */
#scratchResultBody .win-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
    animation: bounceIn 0.6s ease;
}

#scratchResultBody .lose-text {
    font-size: 1.5rem;
    color: #6c757d;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* 撒花效果 */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiFall 3s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 移动端适配 */
@media (max-width: 576px) {
    .scratch-container {
        max-width: 90vw;
    }
    #scratchCanvas {
        width: 100% !important;
        height: auto !important;
    }
}
