body.is-loading {
    overflow: hidden;
}

.page-preloader,
.page-preloader * {
    box-sizing: border-box;
}

.page-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.page-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bus-stage {
    position: relative;
    width: min(18vw, 130px);
    aspect-ratio: 1620 / 927;
}

.bus {
    position: absolute;
    inset: 0;
    transform-origin: 50% 78%;
    animation: bus-drive 0.6s ease-in-out infinite;
}

.bus-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.wheel {
    position: absolute;
    z-index: 3;
    width: 13.2%;
    aspect-ratio: 1;
    border: clamp(2px, 0.42vw, 4px) solid #000;
    border-radius: 50%;
    background: #fff;
    animation: wheel-spin 0.34s linear infinite;
}

.wheel::before {
    content: "";
    position: absolute;
    inset: 17%;
    border: clamp(2px, 0.36vw, 4px) solid #000;
    border-radius: 50%;
}

.wheel::after {
    content: "";
    position: absolute;
    width: 20%;
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    border: clamp(2px, 0.32vw, 4px) solid #000;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
}

.wheel-left {
    left: 21.3%;
    top: 67.4%;
}

.wheel-right {
    left: 61.7%;
    top: 67.4%;
}

.wheel-marker {
    position: absolute;
    z-index: 5;
    left: 49%;
    top: 15%;
    width: 4%;
    height: 29%;
    border-radius: 999px;
    background: #000;
    transform-origin: 50% 121%;
}

.road-shadow {
    position: absolute;
    left: 24%;
    right: 20%;
    bottom: 5.5%;
    height: 4%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.10);
    filter: blur(5px);
    animation: shadow-pulse 0.6s ease-in-out infinite;
}

.speed-lines {
    position: absolute;
    left: 5%;
    top: 68%;
    width: 13%;
    height: 15%;
}

.speed-lines i {
    position: absolute;
    right: 0;
    display: block;
    width: 75%;
    height: 3px;
    border-radius: 999px;
    background: #000;
    transform-origin: right center;
    animation: speed-line 0.6s ease-out infinite;
}

.speed-lines i:nth-child(1) {
    top: 10%;
    width: 48%;
    animation-delay: 0s;
}

.speed-lines i:nth-child(2) {
    top: 42%;
    width: 78%;
    animation-delay: -0.18s;
}

.speed-lines i:nth-child(3) {
    top: 76%;
    width: 58%;
    animation-delay: -0.36s;
}

@keyframes bus-drive {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2.5px) rotate(-0.35deg);
    }

    50% {
        transform: translateY(1px) rotate(0.15deg);
    }

    75% {
        transform: translateY(-1.5px) rotate(0.3deg);
    }
}

@keyframes wheel-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes shadow-pulse {
    0%,
    100% {
        transform: scaleX(1);
        opacity: 0.10;
    }

    50% {
        transform: scaleX(0.94);
        opacity: 0.07;
    }
}

@keyframes speed-line {
    0% {
        transform: translateX(18px) scaleX(0.45);
        opacity: 0;
    }

    35% {
        opacity: 0.8;
    }

    100% {
        transform: translateX(-16px) scaleX(1);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .bus-stage {
        width: min(22.5vw, 108px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bus,
    .wheel,
    .road-shadow,
    .speed-lines i {
        animation: none;
    }
}
