:root {
    --jch-onboarding-bg: #f7f9fc;
}

html.jch-onboarding-open,
body.jch-onboarding-open {
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: none;
}

.jch-app-onboarding[hidden] {
    display: none !important;
}

.jch-app-onboarding {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--jch-onboarding-bg);
    opacity: 0;
    transition: opacity 180ms ease;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.jch-app-onboarding.is-visible {
    opacity: 1;
}

.jch-app-onboarding.is-closing {
    opacity: 0;
    pointer-events: none;
}

.jch-app-onboarding__stage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
}

.jch-app-onboarding__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 300ms cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.jch-app-onboarding__slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--jch-onboarding-bg);
}

.jch-app-onboarding__frame {
    position: relative;
    flex: 0 0 auto;
    width: min(100vw, 47.3655dvh);
    aspect-ratio: 863 / 1822;
    max-width: 100vw;
    max-height: 100dvh;
    overflow: hidden;
    background: #fff;
}

.jch-app-onboarding__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/*
 * The artwork already contains the visible CTA. This transparent accessible
 * button sits precisely over that CTA so the image remains visually exact.
 */
.jch-app-onboarding__action {
    position: absolute;
    left: 7.8%;
    right: 7.8%;
    bottom: max(3.65%, env(safe-area-inset-bottom));
    height: 7.4%;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.jch-app-onboarding__action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .95);
    outline-offset: -6px;
    box-shadow: 0 0 0 6px rgba(31, 100, 235, .45);
}

@media (orientation: landscape) {
    .jch-app-onboarding__frame {
        width: min(47.3655dvh, 100vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jch-app-onboarding,
    .jch-app-onboarding__track {
        transition: none !important;
    }
}
