.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #181c2f !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-rocket {
    position: relative;
    width: 80px;
    height: 140px;
    animation: rocketLaunch 2s ease-in-out forwards;
    z-index: 2;
}

.rocket {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 40px;
    height: 80px;
    background: linear-gradient(180deg, #f5f6fa 80%, #e0e0e0 100%);
    border-radius: 20px 20px 12px 12px/40px 40px 20px 20px;
    box-shadow: 0 2px 8px 0 #0002;
    z-index: 3;
}

.rocket-head {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(180deg, #e74c3c 80%, #c0392b 100%);
    border-radius: 50% 50% 50% 50%/80% 80% 20% 20%;
    z-index: 4;
}

.rocket-stripe-top {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 6px;
    background: #e74c3c;
    border-radius: 3px;
    z-index: 5;
}

.rocket-window {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #b3e5fc 70%, #0288d1 100%);
    border: 3px solid #e74c3c;
    border-radius: 50%;
    box-shadow: 0 0 8px #81d4fa88;
    z-index: 6;
}

.rocket-stripe-bottom {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    height: 6px;
    background: #e74c3c;
    border-radius: 3px;
    z-index: 5;
}

.rocket-fin {
    position: absolute;
    width: 22px;
    height: 38px;
    background: linear-gradient(180deg, #f9d423 60%, #e74c3c 100%);
    z-index: 2;
}
.rocket-fin.left {
    left: -18px;
    top: 38px;
    transform: rotate(-18deg);
    border-radius: 60% 0 80% 60%/100% 0 100% 100%;
    box-shadow: -2px 2px 6px #0002;
}
.rocket-fin.right {
    right: -18px;
    top: 38px;
    transform: rotate(18deg) scaleX(-1);
    border-radius: 60% 0 80% 60%/100% 0 100% 100%;
    box-shadow: 2px 2px 6px #0002;
}
.rocket-fin.center {
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%) scaleY(1.1);
    width: 16px;
    height: 28px;
    background: linear-gradient(180deg, #e74c3c 60%, #f9d423 100%);
    border-radius: 0 0 60% 60%/0 0 100% 100%;
    z-index: 2;
}

.flame-container {
    position: absolute;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%);
    width: 36px;
    height: 60px;
    z-index: 1;
}

.flame {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 50% 50% 50% 50%/80% 80% 100% 100%;
    opacity: 0.9;
}
.flame-yellow {
    width: 18px;
    height: 38px;
    background: radial-gradient(ellipse at center, #fffde4 0%, #ffe259 60%, #ffb347 100%);
    z-index: 3;
    animation: flameMove 0.4s infinite alternate;
}
.flame-orange {
    width: 26px;
    height: 48px;
    background: radial-gradient(ellipse at center, #ffb347 0%, #ff6b01 80%, #e74c3c 100%);
    z-index: 2;
    animation: flameMove 0.5s infinite alternate-reverse;
}
.flame-red {
    width: 34px;
    height: 58px;
    background: radial-gradient(ellipse at center, #e74c3c 0%, #ff6b01 80%, transparent 100%);
    z-index: 1;
    animation: flameMove 0.6s infinite alternate;
}

@keyframes flameMove {
    0% { filter: blur(0.5px) brightness(1); opacity: 1; }
    100% { filter: blur(2px) brightness(1.2); opacity: 0.8; transform: translateX(-50%) scaleY(1.1); }
}

@keyframes rocketLaunch {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(-100vh);
    }
}

.loading-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards 0.5s;
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .loading-screen {
        background: #181c2f;
    }
    .star {
        background: #fff;
        opacity: 0.7;
    }
    .rocket {
        background: linear-gradient(180deg, #e0e6f6 80%, #b0b6c6 100%);
    }
    .rocket-window {
        background: radial-gradient(circle at 30% 30%, #b3e5fc 70%, #0288d1 100%);
        border: 3px solid #e74c3c;
    }
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 1;
    box-shadow: 0 0 6px 2px #fff8;
    animation: starTwinkle 2s infinite;
}

@keyframes starTwinkle {
    0% { opacity: 0.7; }
    20% { opacity: 1; }
    40% { opacity: 0.5; }
    60% { opacity: 1; }
    80% { opacity: 0.6; }
    100% { opacity: 0.7; }
}

.rocket-author-wrapper {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(100vh);
    top: 0;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: wrapperUp 3s cubic-bezier(.6,1.5,.6,1) 0.5s forwards;
}

@keyframes wrapperUp {
    0% { transform: translateX(-50%) translateY(100vh); }
    80% { transform: translateX(-50%) translateY(50vh); }
    100% { transform: translateX(-50%) translateY(50vh); }
}

.loading-author {
    position: fixed;
    left: 50%;
    bottom: 4%;
    top: auto;
    transform: translateX(-50%);
    width: 60vw;
    max-width: 500px;
    min-width: 200px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.35em;
    text-align: center;
    z-index: 10000;
    text-shadow: 0 0 2px #fff, 0 0 8px #00ffe7, 0 0 8px #ff00c8;
    opacity: 1;
    animation: glitch 1.2s infinite linear alternate-reverse;
    pointer-events: none;
    padding: 0.2em 0;
    border-radius: 8px;
    background: rgba(0,0,0,0.08);
}

@keyframes glitch {
    0% { text-shadow: 2px 0 #ff00c8, -2px 0 #00ffe7, 0 0 2px #fff; transform: translateX(-50%) translateY(0); }
    10% { text-shadow: -2px 0 #ff00c8, 2px 0 #00ffe7, 0 0 2px #fff; }
    20% { text-shadow: 2px 2px #ff00c8, -2px -2px #00ffe7, 0 0 2px #fff; }
    30% { text-shadow: -2px -2px #ff00c8, 2px 2px #00ffe7, 0 0 2px #fff; }
    40% { text-shadow: 2px 0 #ff00c8, -2px 0 #00ffe7, 0 0 2px #fff; }
    50% { text-shadow: 0 2px #ff00c8, 0 -2px #00ffe7, 0 0 2px #fff; transform: translateX(-50%) translateY(-2px); }
    60% { text-shadow: 0 -2px #ff00c8, 0 2px #00ffe7, 0 0 2px #fff; }
    70% { text-shadow: 2px 2px #ff00c8, -2px -2px #00ffe7, 0 0 2px #fff; }
    80% { text-shadow: -2px -2px #ff00c8, 2px 2px #00ffe7, 0 0 2px #fff; }
    90% { text-shadow: 2px 0 #ff00c8, -2px 0 #00ffe7, 0 0 2px #fff; }
    100% { text-shadow: 0 0 2px #fff, 0 0 8px #00ffe7, 0 0 8px #ff00c8; transform: translateX(-50%) translateY(0); }
} 