:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--card-bg) 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    color: var(--text-secondary);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.magic-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 3rem;
}

.inner-circle {
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    animation: rotate 20s linear infinite;
}

.inner-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: rotate 15s linear infinite reverse;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

.particle-1 { top: 10%; left: 50%; animation-delay: 0s; }
.particle-2 { top: 30%; right: 20%; animation-delay: 0.5s; }
.particle-3 { bottom: 30%; left: 20%; animation-delay: 1s; }
.particle-4 { bottom: 10%; right: 50%; animation-delay: 1.5s; }
.particle-5 { top: 50%; left: 10%; animation-delay: 2s; }
.particle-6 { top: 50%; right: 10%; animation-delay: 2.5s; }

.content {
    text-align: center;
    max-width: 600px;
    position: relative;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    opacity: 0.9;
}

.progress-container {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    width: 0%;
    animation: progressLoad 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

.stars {
    position: relative;
    height: 50px;
    left:-10px;
}

.star {
    position: absolute;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite;
}

.star-1 { left: 0%; animation-delay: 0s; }
.star-2 { left: 25%; animation-delay: 0.4s; }
.star-3 { left: 50%; animation-delay: 0.8s; }
.star-4 { left: 75%; animation-delay: 1.2s; }
.star-5 { left: 100%; animation-delay: 1.6s; }

.footer {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes progressLoad {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .magic-circle {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }

    .main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .stars {
        height: 40px;
    }

    .star {
        font-size: 1.2rem;
    }
}

/* Additional magical effects */
.container::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 2px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--secondary-color);
    animation: float 4s ease-in-out infinite;
}

.container::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 15%;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-color);
    animation: float 3s ease-in-out infinite reverse;
}