.loader-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0A192F;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}

.loader-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    pointer-events: none;
}

.loader-logo-svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.loader-logo-svg circle {
    fill: none;
    stroke: #D4AF37;
    stroke-width: 2;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: drawCircle 2s ease-in-out infinite;
}

.loader-logo-svg .hand {
    stroke: #D4AF37;
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: 40px 40px;
}

.loader-logo-svg .hour {
    animation: rotate 12s linear infinite;
}

.loader-logo-svg .minute {
    animation: rotate 1s linear infinite;
}

.loader-welcome {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    max-width: min(340px, calc(100vw - 40px));
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    border-right: 2px solid #D4AF37;
    animation: loaderWelcomeTyping 1.8s steps(29, end) 0.1s both, loaderCaret 0.8s step-end infinite;
}

.loader-welcome span {
    color: #D4AF37;
}

.loader-typing {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    margin-top: 10px;
    max-width: min(560px, calc(100vw - 40px));
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    border-right: 2px solid #D4AF37;
    animation: loaderTyping 3.2s steps(66, end) 1.9s both, loaderCaret 0.8s step-end infinite;
}

.loader-screen.compact .loader-typing {
    display: none;
}

.loader-screen.compact .loader-welcome {
    display: none;
}

@media (max-width: 560px) {
    .loader-welcome {
        font-size: 16px;
    }

    .loader-typing {
        font-size: 12px;
        max-width: calc(100vw - 32px);
    }
}

@keyframes loaderTyping {
    from { width: 0; }
    to { width: min(560px, calc(100vw - 40px)); }
}

@keyframes loaderWelcomeTyping {
    from { width: 0; }
    to { width: min(340px, calc(100vw - 40px)); }
}

@keyframes loaderCaret {
    0%, 100% { border-color: transparent; }
    50% { border-color: #D4AF37; }
}

@keyframes drawCircle {
    0% { stroke-dashoffset: 220; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -220; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
