
:root {
    --background-start: #f1f1f1;
    --background-end: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow: rgba(255, 255, 255, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: linear-gradient(to bottom right, var(--background-start), var(--background-end));
    background-image:
        linear-gradient(to bottom, #d9d9d9, #f2f2f2),
        radial-gradient(at 20% 20%, #f2f2f2, #d9d9d9);
    background-blend-mode: screen;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 40px;
    border-radius: 20px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 30px;
    color: transparent;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    animation: fadeIn 1s ease-in-out;
}

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

lotto-ball {
    --ball-size: clamp(50px, 12vw, 80px);
    width: var(--ball-size);
    height: var(--ball-size);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: white;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 3px 5px rgba(255, 255, 255, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease-out forwards;
    transform: scale(0);
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

#generate-btn {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    outline: none;
}

#generate-btn:hover,
#generate-btn:focus {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

#generate-btn:active {
    transform: translateY(1px) scale(1);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
