:root {
    --bg-color: #0d0d1a;
    --accent-primary: #7b2cbf;
    --accent-secondary: #9d4edd;
    --accent-glow: #e0aaff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --ball-white-bg: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    --ball-red-bg: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
    --ball-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    --font-main: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    display: flex;
}

/* Background Effects */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -5%;
    right: -5%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    z-index: 1;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.highlight {
    background: linear-gradient(90deg, var(--accent-glow), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.1rem;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Balls Container */
.balls-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.powerball-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.powerball-wrapper .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--accent-glow);
    font-weight: 500;
}

/* Ball Styles */
.ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    box-shadow: var(--ball-shadow);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.white-ball {
    background: var(--ball-white-bg);
    color: #333;
}

.red-ball {
    background: var(--ball-red-bg);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.ball::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 10px;
    width: 25px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: rotate(-45deg);
}

.ball.pop {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Button */
.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.6);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.5s;
}

.btn-primary:hover .btn-glow {
    opacity: 1;
    transform: scale(1);
}

footer {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 3rem;
}

/* Responsiveness */
@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .ball {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .balls-wrapper {
        gap: 0.8rem;
    }
}