body.mtc-loader-active {
    overflow: hidden !important;
}

.mtc-page-loader {
    --mtc-loader-bg: #111111;
    --mtc-loader-accent: #d1a280;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(10, 10, 10, .14);
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .32s ease, visibility .32s ease, background .32s ease, backdrop-filter .32s ease;
    font-family: inherit;
}

.mtc-page-loader.mtc-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mtc-loader-stage {
    position: relative;
    width: min(90vw, 440px);
    min-height: 305px;
    padding: 27px 24px 23px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(31,31,31,.93), rgba(12,12,12,.86));
    box-shadow: 0 20px 60px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.07);
    transition: background .24s ease, border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

.mtc-loader-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 14%, rgba(255,255,255,.08), transparent 38%),
        linear-gradient(180deg, transparent 68%, rgba(0,0,0,.18));
}

.mtc-bike-wrap {
    position: relative;
    z-index: 3;
    width: min(79vw, 345px);
    transform-origin: 45% 82%;
    animation: mtcStarterShake .18s steps(2, end) infinite;
    will-change: transform;
}

.mtc-bike {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.18));
}

.mtc-bike-shadow ellipse { fill: rgba(0,0,0,.40); }
.mtc-tyre { fill: #090909; stroke: #333; stroke-width: 9; }
.mtc-rim { fill: #181818; stroke: #bcbcbc; stroke-width: 4; }
.mtc-hub { fill: var(--mtc-loader-accent); }
.mtc-spokes { stroke: #777; stroke-width: 2; }
.mtc-brake-disc { fill: none; stroke: #8e8e8e; stroke-width: 3; stroke-dasharray: 5 4; }
.mtc-brake-caliper { fill: var(--mtc-loader-accent); }
.mtc-frame, .mtc-fork, .mtc-handle, .mtc-exhaust, .mtc-arm, .mtc-leg {
    fill: none;
    stroke: #d8d8d8;
    stroke-width: 9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mtc-frame { stroke: var(--mtc-loader-accent); }
.mtc-tank { fill: var(--mtc-loader-accent); stroke: #efefef; stroke-width: 2; }
.mtc-tank-highlight { fill: rgba(255,255,255,.23); }
.mtc-seat, .mtc-tail, .mtc-fender { fill: #222; stroke: #bdbdbd; stroke-width: 2; }
.mtc-engine { fill: #252525; stroke: #adadad; stroke-width: 3; }
.mtc-engine-line { stroke: #777; stroke-width: 2; }
.mtc-windscreen { fill: rgba(177,205,220,.18); stroke: #b9c5cb; stroke-width: 2; }
.mtc-helmet { fill: #eeeeee; stroke: #111; stroke-width: 3; }
.mtc-helmet-stripe { fill: var(--mtc-loader-accent); }
.mtc-visor { fill: #151515; }
.mtc-torso { fill: #202020; stroke: var(--mtc-loader-accent); stroke-width: 3; }
.mtc-headlight { fill: #4b4b4b; stroke: #ddd; stroke-width: 2; transition: fill .15s ease; }
.mtc-headlight-core { fill: rgba(255,248,205,0); transition: fill .15s ease; }
.mtc-headlight-beam { fill: rgba(255, 237, 173, 0); transition: fill .18s ease; }
.mtc-tail-light { fill: #491818; transition: fill .15s ease, filter .15s ease; }
.mtc-smoke { opacity: .55; fill: #999; animation: mtcSmokeCrank .85s ease-out infinite; transform-origin: 95px 168px; }

.mtc-road {
    position: absolute;
    z-index: 1;
    left: 28px;
    right: 28px;
    top: 57%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 12%, rgba(255,255,255,.18) 88%, transparent);
    overflow: hidden;
    transition: opacity .2s ease;
}
.mtc-road span {
    position: absolute;
    top: 10px;
    left: -35%;
    width: 170%;
    height: 3px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.20) 0 30px, transparent 30px 58px);
    transform: skewX(-18deg);
}

.mtc-loader-copy {
    position: relative;
    z-index: 4;
    margin-top: -3px;
    text-align: center;
    color: #fff;
}
.mtc-loader-brand {
    color: var(--mtc-loader-accent);
    font-weight: 800;
    font-size: clamp(18px, 4vw, 25px);
    letter-spacing: .16em;
    text-indent: .16em;
}
.mtc-loader-message {
    margin-top: 7px;
    font-size: clamp(13px, 2.5vw, 16px);
    color: rgba(255,255,255,.82);
    min-height: 1.5em;
}
.mtc-loader-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
}
.mtc-loader-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mtc-loader-accent);
    animation: mtcDot 1s ease-in-out infinite;
}
.mtc-loader-dots span:nth-child(2) { animation-delay: .15s; }
.mtc-loader-dots span:nth-child(3) { animation-delay: .30s; }

/* Motor slaat aan: korte compressie/squat + lampen. */
.mtc-page-loader.mtc-ignition .mtc-bike-wrap {
    animation: mtcIgnitionKick .34s cubic-bezier(.2,.9,.25,1) both;
}
.mtc-page-loader.mtc-ignition .mtc-headlight,
.mtc-page-loader.mtc-engine-started .mtc-headlight {
    fill: #fff1a6;
    filter: drop-shadow(0 0 8px rgba(255,241,175,.9));
}
.mtc-page-loader.mtc-ignition .mtc-headlight-core,
.mtc-page-loader.mtc-engine-started .mtc-headlight-core { fill: #fffbdc; }
.mtc-page-loader.mtc-ignition .mtc-headlight-beam,
.mtc-page-loader.mtc-engine-started .mtc-headlight-beam { fill: rgba(255, 237, 173, .12); }
.mtc-page-loader.mtc-ignition .mtc-tail-light,
.mtc-page-loader.mtc-engine-started .mtc-tail-light {
    fill: #ff4848;
    filter: drop-shadow(0 0 5px rgba(255,65,65,.72));
}
.mtc-page-loader.mtc-ignition .mtc-smoke { animation: mtcIgnitionPuff .42s ease-out both; }

/* Stationair draaien. */
.mtc-page-loader.mtc-engine-started .mtc-bike-wrap {
    animation: mtcEngineIdle .11s linear infinite alternate;
}
.mtc-page-loader.mtc-engine-started .mtc-wheel-spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: mtcWheelSpin .34s linear infinite;
}
.mtc-page-loader.mtc-engine-started .mtc-smoke { animation: mtcSmokeIdle .48s ease-out infinite; }
.mtc-page-loader.mtc-engine-started .mtc-road span { animation: mtcRoadIdle .75s linear infinite; }

/* Acceleratie: venster lost op en motor rijdt door over de pagina. */
.mtc-page-loader.mtc-riding-away {
    background: rgba(10,10,10,.04);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}
.mtc-page-loader.mtc-riding-away .mtc-loader-stage {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.mtc-page-loader.mtc-riding-away .mtc-loader-stage::before,
.mtc-page-loader.mtc-riding-away .mtc-road { opacity: 0; }
.mtc-page-loader.mtc-riding-away .mtc-bike-wrap {
    animation: mtcRideAway var(--mtc-exit-duration, 1050ms) cubic-bezier(.22,.61,.25,1) forwards;
}
.mtc-page-loader.mtc-riding-away .mtc-wheel-spin { animation-duration: .075s; }
.mtc-page-loader.mtc-riding-away .mtc-smoke { animation: mtcSmokeLaunch .34s ease-out infinite; }
.mtc-page-loader.mtc-riding-away .mtc-loader-copy { animation: mtcCopyFade .18s ease forwards; }
.mtc-page-loader.mtc-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes mtcStarterShake {
    0% { transform: translate(0,0) rotate(-.28deg); }
    25% { transform: translate(1px,-1px) rotate(.22deg); }
    50% { transform: translate(-1px,0) rotate(-.14deg); }
    75% { transform: translate(2px,-1px) rotate(.3deg); }
    100% { transform: translate(0,0) rotate(-.2deg); }
}
@keyframes mtcIgnitionKick {
    0% { transform: translate(0,0) rotate(-.2deg) scale(1); }
    32% { transform: translate(-3px,3px) rotate(-1deg) scale(1.012,.985); }
    64% { transform: translate(3px,-3px) rotate(.8deg) scale(.995,1.01); }
    100% { transform: translate(0,-1px) rotate(0) scale(1); }
}
@keyframes mtcEngineIdle {
    from { transform: translateY(0) rotate(-.12deg); }
    to { transform: translateY(-1px) rotate(.12deg); }
}
@keyframes mtcWheelSpin { to { transform: rotate(360deg); } }
@keyframes mtcSmokeCrank {
    0% { opacity: .05; transform: translate(7px,2px) scale(.72); }
    45% { opacity: .48; }
    100% { opacity: 0; transform: translate(-19px,-8px) scale(1.22); }
}
@keyframes mtcIgnitionPuff {
    0% { opacity: .2; transform: translate(6px,1px) scale(.65); }
    45% { opacity: .9; }
    100% { opacity: 0; transform: translate(-34px,-14px) scale(1.65); }
}
@keyframes mtcSmokeIdle {
    0% { opacity: .18; transform: translate(8px,1px) scale(.7); }
    55% { opacity: .55; }
    100% { opacity: 0; transform: translate(-23px,-10px) scale(1.35); }
}
@keyframes mtcSmokeLaunch {
    0% { opacity: .35; transform: translate(7px,1px) scale(.7); }
    45% { opacity: .8; }
    100% { opacity: 0; transform: translate(-36px,-12px) scale(1.5); }
}
@keyframes mtcRoadIdle { to { transform: translateX(-58px) skewX(-18deg); } }
@keyframes mtcDot {
    0%, 100% { opacity: .28; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}
@keyframes mtcRideAway {
    0% { transform: translateX(0) translateY(-1px) rotate(0) scale(1); }
    8% { transform: translateX(-18px) translateY(2px) rotate(-1.2deg) scale(1.01); }
    20% { transform: translateX(15px) translateY(-3px) rotate(.8deg) scale(1.005); }
    100% { transform: translateX(125vw) translateY(-10px) rotate(.15deg) scale(.94); }
}
@keyframes mtcCopyFade { to { opacity: 0; transform: translateY(7px); } }

@media (max-width: 600px) {
    .mtc-loader-stage {
        width: min(90vw, 395px);
        min-height: 275px;
        padding: 22px 18px 20px;
        border-radius: 18px;
    }
    .mtc-bike-wrap { width: min(79vw, 305px); }
    .mtc-road { left: 20px; right: 20px; }
    .mtc-loader-brand { letter-spacing: .12em; text-indent: .12em; }
}

@media (prefers-reduced-motion: reduce) {
    .mtc-bike-wrap,
    .mtc-smoke,
    .mtc-loader-dots span,
    .mtc-wheel-spin,
    .mtc-road span {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
    .mtc-page-loader.mtc-riding-away .mtc-bike-wrap {
        animation: mtcReducedExit .22s ease forwards !important;
    }
    @keyframes mtcReducedExit { to { opacity: 0; transform: translateX(30px); } }
}
