@keyframes pop-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

body {
    background-color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 20px 20px;
}

.container {
    text-align: center;
    background-color: #2c2c2c;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 10px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.clover-img {
    width: 48px;
    height: 48px;
    animation: spin 5s linear infinite;
}

h1 {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.8);
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    perspective: 1000px;
}

.lotto-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    transform: scale(0.5);
    opacity: 0;
    animation: pop-in 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

#generate-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: 200% auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background-image: linear-gradient(to right, #DA4453 0%, #89216B 51%, #DA4453 100%);
    box-shadow: 0 0 20px rgba(218, 68, 83, 0.5);
}

#generate-btn:hover {
    background-position: right center;
    box-shadow: 0 0 30px rgba(218, 68, 83, 0.8);
}

#generate-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#generate-btn i {
    font-size: 24px;
    transition: transform 0.5s ease;
}

#generate-btn:hover i {
    transform: rotate(360deg);
}
