/* Soft gate: Android browser users on onboarding → native app */

html.pp-android-app-gate-pending #app,
html.pp-android-app-gate-active #app {
    visibility: hidden !important;
    pointer-events: none !important;
}

.pp-android-app-gate {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding:
        max(24px, env(safe-area-inset-top, 0px))
        max(20px, env(safe-area-inset-right, 0px))
        max(24px, env(safe-area-inset-bottom, 0px))
        max(20px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    background:
        radial-gradient(circle at 18% 18%, rgba(254, 129, 21, 0.18), transparent 22%),
        radial-gradient(circle at 82% 22%, rgba(67, 142, 122, 0.16), transparent 24%),
        linear-gradient(180deg, #0f1317 0%, #0a0d10 42%, #06080b 100%);
    color: #f8f6f2;
    font-family: "Sen", "Poppins", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pp-android-app-gate__inner {
    width: min(420px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    text-align: center;
    animation: pp-android-app-gate-in 0.55s ease both;
}

.pp-android-app-gate__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pp-android-app-gate__icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 18px 40px rgba(0, 0, 0, 0.35);
}

.pp-android-app-gate__name {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 246, 242, 0.72);
    font-weight: 700;
}

.pp-android-app-gate__copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pp-android-app-gate__title {
    margin: 0;
    font-size: clamp(1.65rem, 6vw, 2rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pp-android-app-gate__subtitle {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.45;
    color: rgba(248, 246, 242, 0.76);
    font-family: "Poppins", "Sen", system-ui, sans-serif;
    font-weight: 400;
}

.pp-android-app-gate__modules {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.pp-android-app-gate__modules li {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: rgba(248, 246, 242, 0.82);
}

.pp-android-app-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.pp-android-app-gate__primary,
.pp-android-app-gate__secondary {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 16px;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.pp-android-app-gate__primary {
    background: linear-gradient(90deg, #b87812 0%, #d89b2d 46%, #f0bb4d 100%);
    color: #1a1205;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 28px rgba(216, 155, 45, 0.28);
}

.pp-android-app-gate__primary:active {
    transform: scale(0.98);
}

.pp-android-app-gate__primary.is-busy {
    opacity: 0.72;
    pointer-events: none;
}

.pp-android-app-gate__secondary {
    background: transparent;
    color: rgba(248, 246, 242, 0.72);
    font-size: 0.95rem;
    font-family: "Poppins", "Sen", system-ui, sans-serif;
    text-decoration: underline;
    text-underline-offset: 3px;
    min-height: 44px;
}

.pp-android-app-gate__secondary:active {
    opacity: 0.75;
}

@keyframes pp-android-app-gate-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-android-app-gate__inner {
        animation: none;
    }

    .pp-android-app-gate__primary,
    .pp-android-app-gate__secondary {
        transition: none;
    }
}
