@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: theme('colors.primary');
    background-image: theme('backgroundImage.gradient-primary'), theme('backgroundImage.diamond-pattern');
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    background-color: #000;
}

.dice-grid {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 40px 40px;
}

.jackpot-text {
    text-shadow: 0 0 10px rgba(239, 191, 73, 0.8), 0 0 20px rgba(239, 191, 73, 0.6);
}

.ticket-scratch-effect {
    background: radial-gradient(circle, transparent 25%, theme('colors.gold') 75%);
    background-size: 200% 200%;
    background-position: center;
    animation: scratchEffect 4s ease-in-out infinite;
}

.flying-coin {
    animation: flyCoin 20s linear infinite;
}

@keyframes scratchEffect {
    0% {
        background-position: 0% 0%;
        opacity: 0.1;
    }

    50% {
        background-position: 100% 100%;
        opacity: 0.4;
    }

    100% {
        background-position: 0% 0%;
        opacity: 0.1;
    }
}

@keyframes flyCoin {
    0% {
        transform: translateX(100vw) translateY(-50px) rotate(0deg);
    }

    100% {
        transform: translateX(-100px) translateY(100vh) rotate(360deg);
    }
}

.coin-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

.winner-tag {
    animation: winnerSpin 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes winnerSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

.glowing-border {
    position: relative;
    overflow: hidden;
}

.glowing-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.glowing-border:hover::before {
    left: 100%;
}