@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght:400;700;900&display=swap');

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

body {
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    background: linear-gradient(to bottom, #000510, #0a0a2e);
}

canvas {
    display: block;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a2e, #1a1a3e, #000510);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: #fff;
    animation: pulse 2s ease-in-out infinite;
}

.loading-content h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6600, #ff9900, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 102, 0, 0.5);
}

.loading-content p {
    font-size: 1.2rem;
    color: #00ffff;
    letter-spacing: 3px;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

#countdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
}

.countdown-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 12rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6600, #ff9900, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 80px rgba(255, 102, 0, 0.8),
        0 0 40px rgba(255, 153, 0, 0.6);
    filter: drop-shadow(0 0 30px rgba(255, 102, 0, 0.8));
}

/* Starfield enhancement */
@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .loading-content h1 {
        font-size: 2rem;
    }

    .loading-content p {
        font-size: 1rem;
    }

    .countdown-number {
        font-size: 8rem;
    }
}