.aku-site-motion-rail {
    --aku-scene-height: 48px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: min(calc(100% - 32px), 1280px);
    margin-inline: auto;
    background: radial-gradient(ellipse at right center, var(--aku-tint), transparent 210px);
    border-radius: var(--aku-radius);
    pointer-events: none;
}

[dir="rtl"] .aku-site-motion-rail {
    background: radial-gradient(ellipse at left center, var(--aku-tint), transparent 210px);
}

#main-content:has([data-local-scene], [data-aku-auth-scene], [data-catalogue-scene], [data-page-scene]) > .aku-site-motion-rail {
    display: none;
}

.aku-site-scene {
    position: relative;
    isolation: isolate;
    min-inline-size: 0;
    inline-size: calc(var(--aku-scene-height) * 1.7);
    block-size: var(--aku-scene-height);
    pointer-events: none;
}

.aku-site-scene > canvas,
.aku-site-scene__fallback,
.cx-ic[data-category-card-scene] > canvas {
    position: absolute;
    inset: 0;
    display: block;
    inline-size: 100%;
    block-size: 100%;
    pointer-events: none;
}

.aku-site-scene[data-site-scene-ready] .aku-site-scene__fallback,
[data-category-card-scene][data-card-scene-ready] .aku-card-motion-fallback {
    visibility: hidden;
}

.aku-site-scene__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.aku-site-scene__fallback > span {
    display: grid;
    place-items: center;
    inline-size: 38%;
    aspect-ratio: 1.08;
    max-inline-size: 68px;
    color: var(--aku-accent);
    background: var(--aku-paper);
    border: 1px solid var(--aku-border);
    border-radius: 20%;
    box-shadow: var(--aku-shadow);
    transform: translateY(9%) rotate(-9deg);
}

.aku-site-scene__fallback > span:nth-child(2) {
    color: var(--aku-accent);
    background: var(--aku-tint);
    transform: translateY(-9%) rotate(9deg);
}

.aku-site-motion-rail .aku-site-scene__fallback svg {
    inline-size: 16px;
    block-size: 16px;
}

html body.ak-universal #main-content .mk-requests .aku-requests-intro {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px clamp(14px, 3vw, 36px);
}

.aku-requests-intro__copy {
    min-inline-size: 0;
}

.aku-requests-intro__copy > .mk-button {
    margin-block-start: 14px;
}

.aku-requests-intro .aku-site-scene {
    --aku-scene-height: clamp(96px, 12vw, 174px);
    justify-self: end;
    max-inline-size: 100%;
    background: radial-gradient(ellipse at center, var(--aku-tint), transparent 68%);
}

.cx-ic[data-category-card-scene] {
    position: relative;
    isolation: isolate;
}

.aku-card-motion-fallback {
    display: grid;
    place-items: center;
    inline-size: 100%;
    block-size: 100%;
    pointer-events: none;
}

@media (max-width: 640px) {
    html body.ak-universal #main-content .mk-requests .aku-requests-intro {
        grid-template-columns: minmax(0, 1fr) minmax(64px, 88px);
        align-items: start;
        gap: 8px 10px;
    }

    .aku-requests-intro__copy {
        display: contents;
    }

    .aku-requests-intro__copy > :not(.mk-button) {
        grid-column: 1 / -1;
    }

    .aku-requests-intro__copy > .mk-button {
        grid-column: 1;
        grid-row: 4;
        align-self: center;
        justify-self: start;
        margin-block-start: 0;
    }

    .aku-requests-intro .aku-site-scene {
        --aku-scene-height: 51px;
        grid-column: 2;
        grid-row: 4;
        align-self: center;
    }

    .aku-requests-intro .aku-site-scene__fallback svg {
        inline-size: 14px;
        block-size: 14px;
    }
}

