@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&display=swap");

:root {
    --accent: #7dd6ff;
    --accent-strong: #6b7bff;
    --text: #e9f4ff;
    --muted: #a8b9cc;
    --glass: rgba(7, 14, 24, 0.65);
    --panel-border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
    background-color: #050910;
    color: var(--text);
    font-family: "Oswald", sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    position: relative;
    padding: 0 20px 80px;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: url('../content/img/1.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px);
    transform: scale(1.04);
    transition: background-image 1s ease-in-out;
    z-index: 0;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(125, 214, 255, 0.18), transparent 34%),
                radial-gradient(circle at 80% 10%, rgba(91, 124, 255, 0.16), transparent 32%),
                linear-gradient(135deg, rgba(5, 12, 22, 0.55) 0%, rgba(5, 10, 16, 0.45) 50%, rgba(5, 8, 12, 0.55) 100%);
    pointer-events: none;
    z-index: 1;
}

.screen {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 34px 40px;
    background: var(--glass);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 80px rgba(109, 151, 255, 0.15);
    backdrop-filter: blur(10px);
    max-width: 780px;
    width: min(95vw, 820px);
}

.logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.server-logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.45));
}

.title-block h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: 1px;
}

.subtitle {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#loader {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

#loader span {
    width: 12px;
    height: 70px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
    border-radius: 8px;
    animation: action 950ms ease-in-out infinite;
    box-shadow: 0 10px 20px rgba(109, 151, 255, 0.25);
}

.loading-note {
    margin: 0;
    color: var(--muted);
    letter-spacing: 0.3px;
}

footer {
    height: 60px;
    width: min(90vw, 520px);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--panel-border);
    border-radius: 15px 15px 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 16px;
    backdrop-filter: blur(8px);
    z-index: 2;
}

.icon {
    height: 31px;
    margin-right: 10px;
}

.flexboxmus li {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.textmusique {
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    color: white;
    margin: 0;
}

@keyframes action {
    0%, 60%, 100% {
        transform: scaleY(0.05);
        opacity: 0.6;
    }
    35% {
        transform: scaleY(1);
        opacity: 1;
    }
}

#loader span:nth-child(1) {
    animation-delay: -700ms;
}

#loader span:nth-child(2) {
    animation-delay: -600ms;
}

#loader span:nth-child(3) {
    animation-delay: -500ms;
}

#loader span:nth-child(4) {
    animation-delay: -400ms;
}

#loader span:nth-child(5) {
    animation-delay: -300ms;
}

#loader span:nth-child(6) {
    animation-delay: -200ms;
}

@media (max-width: 640px) {
    .screen {
        padding: 26px 22px;
    }

    .server-logo {
        width: 110px;
    }

    .title-block h1 {
        font-size: 26px;
    }

    .subtitle {
        font-size: 14px;
    }

    #loader span {
        height: 60px;
        width: 10px;
    }

    footer {
        height: 56px;
    }

    .textmusique {
        font-size: 18px;
    }
}
