/* Sumber aturan ukuran: ubah HANYA breakpoint CSS ini. */

#ulb-root {
    display: none;
}

@media (max-width:999.98px) {
    /* Mode 1: Overlay (Menimpa layar penuh) */
    #ulb-root[data-ready="true"][data-mode="overlay"],
    #ulb-root[data-ready="true"]:not([data-mode]) {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 2147483000;
        background: #fff;
        align-items: center;
        justify-content: center;
        overflow: auto;
        cursor: pointer;
        box-sizing: border-box;
        padding: 20px 16px calc(88px + env(safe-area-inset-bottom));
    }
    body:has(#ulb-root[data-ready="true"][data-mode="overlay"]),
    body:has(#ulb-root[data-ready="true"]:not([data-mode])) {
        overflow: hidden;
    }
    /* Mode 2: Scrollable (Paling atas 1 layar penuh HP, konten utama di bawahnya bisa di-scroll) */
    #ulb-root[data-ready="true"][data-mode="scrollable"] {
        display: flex;
        position: relative;
        width: 100%;
        min-height: 100dvh;
        background: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 99;
        box-sizing: border-box;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(108px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
    }
}

#ulb-root img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#ulb-root:focus-visible {
    outline: 4px solid #1473e6;
    outline-offset: -4px;
}

/* Tombol Thumb Reach ("Let's Go") */

.ulb-btn-wrap {
    position: absolute;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 36px), 360px);
    z-index: 10;
    pointer-events: auto;
}

.ulb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 14px 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(37, 99, 235, .48), 0 2px 6px rgba(0, 0, 0, .12);
    cursor: pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ulb-btn:active {
    transform: scale(.96);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}

.ulb-btn svg {
    width: 22px;
    height: 22px;
    transition: transform .2s ease;
}

.ulb-btn:hover svg {
    transform: translateX(4px);
}

/* Petunjuk Scroll Down di Mode Scrollable */

.ulb-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-align: center;
    padding: 4px 10px;
    animation: ulb-bounce 1.6s infinite ease-in-out;
}

.ulb-scroll-hint svg {
    width: 15px;
    height: 15px;
}

@keyframes ulb-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}