:root {
    --bg-color: #05070a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary-gradient: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --accent-glow: rgba(255, 215, 0, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --ball-size: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dynamic Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #4facfe;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #6a11cb;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #ff0080;
    top: 50%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 100px) scale(1.1); }
}

/* Layout */
.container {
    width: 90%;
    max-width: 600px;
    text-align: center;
    z-index: 10;
}

.header {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Lotto Card */
.lotto-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.number-display {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    min-height: 80px;
    margin-bottom: 3rem;
    align-items: center;
}

.placeholder-text {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1rem;
    font-style: italic;
}

/* Lotto Balls */
.ball {
    width: var(--ball-size);
    height: var(--ball-size);
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #000;
    box-shadow: 0 10px 20px var(--accent-glow);
    transform: scale(0);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Specific ball coloring based on range (Mocking real lotto colors) */
.ball.range-1 { background: linear-gradient(135deg, #fbc02d, #f57f17); } /* 1-10: Yellow */
.ball.range-2 { background: linear-gradient(135deg, #1e88e5, #0d47a1); color: #fff; } /* 11-20: Blue */
.ball.range-3 { background: linear-gradient(135deg, #e53935, #c62828); color: #fff; } /* 21-30: Red */
.ball.range-4 { background: linear-gradient(135deg, #757575, #424242); color: #fff; } /* 31-40: Gray */
.ball.range-5 { background: linear-gradient(135deg, #43a047, #1b5e20); color: #fff; } /* 41-45: Green */

/* Button */
.main-button {
    background: var(--primary-gradient);
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--accent-glow);
}

.main-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.main-button:active {
    transform: translateY(1px);
}

.main-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.footer {
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Desktop Responsiveness */
@media (max-width: 480px) {
    .title { font-size: 2.5rem; }
    .ball { --ball-size: 50px; font-size: 1rem; }
    .number-display { gap: 0.5rem; }
}
