/* ==========================================================================
   Preloader — TK Slávia Orlová
   Jednoduchý, značce věrný loader (tmavé pozadí, logo, odrážející se tenisák)
   ========================================================================== */

#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, #151515 0%, #090909 70%);
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility 0s linear 0s;
}

#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility 0s linear .45s;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logo */
.preloader-logo {
    width: 220px;
    height: 68px;
    margin: 0 0 46px 0;
    background: url('../themes/logo.png') center no-repeat;
    background-size: contain;
    opacity: .95;
}

/* Kurtová základní čára, o kterou se tenisák odráží */
.preloader-court {
    position: relative;
    width: 120px;
    height: 64px;
}

.preloader-baseline {
    position: absolute;
    left: 0;
    bottom: 14px;
    width: 100%;
    height: 1px;
    background: rgba(247, 239, 121, .35);
}

.preloader-ball {
    position: absolute;
    left: 50%;
    top: 0;
    width: 26px;
    height: 26px;
    margin: 0 0 0 -13px;
    background: url('../themes/tennis.ball.fw.png') top no-repeat;
    background-size: cover;
    animation: preloader-bounce 1.1s cubic-bezier(.5, 0, .7, .4) infinite;
}

.preloader-shadow {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 26px;
    height: 6px;
    margin: 0 0 0 -13px;
    border-radius: 50%;
    background: rgba(9, 9, 9, .55);
    animation: preloader-shadow 1.1s cubic-bezier(.5, 0, .7, .4) infinite;
}

.preloader-text {
    margin: 30px 0 0 0;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f2f2f2;
    opacity: .75;
}

.preloader-text span {
    color: #96A028;
}

@keyframes preloader-bounce {
    0%   { top: 0; }
    50%  { top: 34px; }
    58%  { top: 34px; }
    100% { top: 0; }
}

@keyframes preloader-shadow {
    0%   { opacity: .15; transform: scale(.6); }
    50%  { opacity: .55; transform: scale(1); }
    58%  { opacity: .55; transform: scale(1); }
    100% { opacity: .15; transform: scale(.6); }
}

@media (prefers-reduced-motion: reduce) {
    .preloader-ball, .preloader-shadow {
        animation: none;
    }
    .preloader-ball { top: 34px; }
    .preloader-shadow { opacity: .55; transform: scale(1); }
}

@media (max-width: 600px) {
    .preloader-logo { width: 170px; height: 52px; margin-bottom: 34px; }
}
