/* Veltrion Web Platform PWA Phase 36B: launch-panel install/status CTA */
html.vweb-pwa-standalone body {
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
}

.vweb-pwa-launch-card {
    position: relative;
    z-index: 4;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid rgba(231, 188, 106, .30);
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 218, 137, .13), transparent 38%),
        linear-gradient(180deg, rgba(30, 20, 12, .88), rgba(7, 6, 5, .92));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(0,0,0,.28);
}

.vweb-pwa-install {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(255, 229, 152, .58);
    border-radius: 0;
    padding: 9px 12px;
    color: #261006;
    background:
        linear-gradient(180deg, #ffe8a5 0%, #daa04b 48%, #913313 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.48),
        inset 0 -14px 22px rgba(91, 21, 10, .25),
        0 8px 18px rgba(0,0,0,.34),
        0 0 20px rgba(239, 194, 111, .14);
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.vweb-pwa-install[hidden] {
    display: none !important;
}

.vweb-pwa-install:disabled,
.vweb-pwa-install.is-disabled {
    cursor: default;
    color: rgba(248, 224, 169, .72);
    border-color: rgba(231, 188, 106, .24);
    background:
        linear-gradient(180deg, rgba(39, 27, 15, .95), rgba(11, 8, 6, .95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 18px rgba(0,0,0,.24);
}

.vweb-pwa-install__icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffe6a2;
    background: rgba(35, 13, 4, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 229, 152, .38);
    font-size: 15px;
    font-weight: 900;
    flex: 0 0 auto;
}

.vweb-pwa-install:disabled .vweb-pwa-install__icon,
.vweb-pwa-install.is-disabled .vweb-pwa-install__icon {
    color: rgba(239, 194, 111, .72);
    background: rgba(0,0,0,.28);
}

.vweb-pwa-install__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.08;
}

.vweb-pwa-install__copy b {
    display: block;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.vweb-pwa-install__copy em {
    display: block;
    margin-top: 4px;
    color: rgba(47, 13, 5, .72);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .14em;
}

.vweb-pwa-install:disabled .vweb-pwa-install__copy em,
.vweb-pwa-install.is-disabled .vweb-pwa-install__copy em {
    color: rgba(239, 194, 111, .54);
}

.vweb-pwa-launch-card__status {
    margin: 8px 2px 0;
    color: rgba(246, 232, 202, .62);
    font-size: 11px;
    line-height: 1.45;
    word-break: keep-all;
}

.vweb-pwa-launch-card--fallback {
    position: fixed;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    width: min(270px, calc(100vw - 28px));
}

.vweb-pwa-ios-guide {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(76px, calc(env(safe-area-inset-bottom, 0px) + 76px));
    z-index: 9998;
    width: min(300px, calc(100vw - 32px));
    border: 1px solid rgba(234, 190, 104, 0.36);
    border-radius: 18px;
    padding: 14px 16px;
    color: #f9e8bf;
    background: rgba(6, 9, 15, .94);
    box-shadow: 0 18px 45px rgba(0,0,0,.42);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

html.vweb-pwa-ios-help .vweb-pwa-ios-guide {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.vweb-pwa-ios-guide strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.vweb-pwa-ios-guide p {
    margin: 0;
    color: rgba(249, 232, 191, .78);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 720px) {
    .vweb-pwa-launch-card {
        margin-top: 10px;
        padding: 8px;
    }

    .vweb-pwa-install {
        min-height: 48px;
        padding: 8px 10px;
        gap: 8px;
    }

    .vweb-pwa-install__copy b {
        font-size: 14px;
    }

    .vweb-pwa-launch-card__status {
        font-size: 10px;
        line-height: 1.35;
    }
}

@media (max-width: 420px) {
    .vweb-pwa-install__icon {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .vweb-pwa-install__copy b {
        font-size: 13px;
    }

    .vweb-pwa-install__copy em {
        font-size: 9px;
    }
}

/* Phase 36C: fullscreen/scope test hints */
html.vweb-pwa-phase36c.vweb-pwa-standalone {
    background: #05070c;
}
html.vweb-pwa-phase36c .vweb-pwa-launch-card__status::after {
    content: "  · 36C fullscreen/root scope";
    opacity: 0.72;
}
