html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #1a1a1a;
}

#bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

#bg-layer.loaded {
    opacity: 1;
}

.loading-screen-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 3;
    pointer-events: none;
}

.loading-header {
    position: absolute;
    top: 5%;
    text-align: center;
    animation: slideDown 1s ease-out;
}

/*
.loading-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideDown 1s ease-out;
}
*/

.logo {
    max-width: 680px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.loading-info {
    width: 50%;
    max-width: 600px;
    min-width: 300px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.status-message {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #f0f0f0;
    min-height: 1.2em;
}

.progress-bar-wrapper {
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.progress-bar-inner {
    width: 0%;
    height: 100%;
    background: hsl(0, 0%, 47%);
    border-radius: 9px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px #373838;
    position: relative;
    overflow: visible;
    min-width: 30px;
}

.progress-text {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px #000, 0 0 4px #000;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    margin-top: 8px;
    opacity: 0.8;
    color: #ccc;
}

#player-cloud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.floating-avatar {
    position: absolute;
    background-color: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(3px);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    text-align: center;
    transition: opacity 0.5s ease;
    will-change: transform, opacity;
    opacity: 0;
    width: 64px;
}

.floating-avatar .avatarimg {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-avatar .tickerentrytxt {
    padding: 3px 4px;
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    max-width: 64px;
    box-sizing: border-box;
}

#console {
    position: absolute;
    left: 20px;
    bottom: 20px;
    width: 45%;
    max-width: 700px;
    height: 30%;
    max-height: 250px;
    overflow: hidden;
    color: #fff;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    text-shadow: 1px 1px 2px #000;
    z-index: 5;
    display: flex;
    flex-direction: column-reverse;
    pointer-events: none;
}

#console div {
    padding: 2px 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin-top: 2px;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

#credits {
    position: fixed;
    top: 30px;
    right: 30px;
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9),
        0 0 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
}

#credits.visible {
    opacity: 1;
}

#credits::before {
    content: "Сделано ";
    color: rgba(220, 220, 220, 1);
    font-weight: 400;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}