/* --- RASPADINHAS (cartela) --- */
.cartela-card {  background: rgba(20, 20, 20, 0.8);  border-color: rgba(255, 255, 255, 0.1);  backdrop-filter: blur(20px);}
.cartela-card:hover {  transform: translateY(-8px);  border-color: rgba(34, 197, 94, 0.3);  box-shadow: 0 20px 60px rgba(34, 197, 94, 0.2);}
.cartela-card .card-price-badge {  background: linear-gradient(135deg, #22c55e, #16a34a);  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);}
.prize-info { display: flex;  align-items: center;  justify-content: space-between;  background: rgba(34, 197, 94, 0.1);  border: 1px solid rgba(34, 197, 94, 0.2);  border-radius: 12px;  padding: 1rem;  margin-bottom: 1rem;}
.prize-label { color: #9ca3af; font-size: 0.8rem; margin-bottom: 0.25rem; }
.prize-value { color: #22c55e; font-weight: 800; font-size: 1.1rem; }


        /* Scratch Container */
        #scratch-container {
            position: relative;
            width: 350px;
            max-width: 450px;
            aspect-ratio: 1 / 1;
            margin: 0 auto 2rem;
            border-radius: 12px;
            user-select: none;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }

        #prizes-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            gap: 8px;
            padding: 12px;
            background: linear-gradient(135deg, #1f2937, #374151);
            color: white;
            border-radius: 20px;
            z-index: 1;
        }

        #prizes-grid > div {
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid rgba(34, 197, 94, 0.2);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-weight: 600;
            font-size: 0.85rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        #prizes-grid > div::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(45deg, rgba(34, 197, 94, 0.1), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        #prizes-grid > div:hover::before {
            opacity: 1;
        }

        #prizes-grid img {
            width: 48px;
            height: 48px;
            object-fit: contain;
            margin-bottom: 6px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        }

        #scratch-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border-radius: 20px;
            z-index: 10;
            touch-action: none;
            cursor: pointer;
            user-select: none;
        }

        #btn-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
            z-index: 30;
            border-radius: 20px;
            text-align: center;
            gap: 1rem;
        }

        .overlay-icon {
            font-size: 3rem;
            color: #22c55e;
            margin-bottom: 1rem;
        }
        
        
        /* Result Message */
        #result-msg {
            margin-top: 2rem;
            font-weight: 700;
            text-align: center;
            min-height: 2rem;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        /* Loading States */
        .loading-pulse {
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Prize animations */
        .prize-reveal {
            animation: prizeReveal 0.5s ease-out forwards;
        }

        @keyframes prizeReveal {
            0% {
                transform: scale(0.8);
                opacity: 0;
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Success animations */
        .win-animation {
            animation: winPulse 1s ease-in-out infinite;
        }

        @keyframes winPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .raspadinha-container {
                padding: 0 1rem;
            }
            
            .cartela-title {
                font-size: 2rem;
            }
            
            .game-container {
                padding: 1.5rem;
            }
            
            .instructions-list {
                grid-template-columns: 1fr;
            }

            .prizes-section {
                padding: 1.5rem;
                margin-top: 1.5rem;
            }

            .prizes-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 0.75rem;
                max-height: 280px;
            }

            .prize-card {
                padding: 0.75rem;
            }

            .prize-image {
                width: 56px;
                height: 56px;
                margin-bottom: 0.5rem;
            }

            .prize-image img {
                width: 40px;
                height: 40px;
            }

            .prize-name {
                font-size: 0.75rem;
            }

            .prize-value {
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .cartela-title {
                font-size: 1.5rem;
            }
            
            #scratch-container {
                max-width: 300px;
            }

            .prizes-section {
                padding: 1rem;
            }

            .prizes-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
                gap: 0.5rem;
                max-height: 240px;
            }

            .prize-card {
                padding: 0.5rem;
            }

            .prize-image {
                width: 48px;
                height: 48px;
                margin-bottom: 0.5rem;
            }

            .prize-image img {
                width: 32px;
                height: 32px;
            }

            .prize-name {
                font-size: 0.7rem;
            }

            .prize-value {
                font-size: 0.75rem;
            }

            .prizes-title {
                font-size: 1rem;
                margin-bottom: 1rem;
            }
        }