/* Compact install prompt — sits above mobile tabs, never a full-width strip. */
.pwa-install {
    position: fixed;
    z-index: 998;
    left: 12px;
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.75rem 0.7rem 0.7rem;
    background: rgba(12, 14, 20, 0.96);
    border: 1px solid rgba(255, 31, 31, 0.35);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    color: #e5e7eb;
    font-family: Inter, Barlow, sans-serif;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.pwa-install--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-install__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    background: #07080d;
}

.pwa-install__copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.pwa-install__copy strong {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fff;
}

.pwa-install__copy span {
    font-size: 0.74rem;
    line-height: 1.35;
    color: #94a3b8;
}

.pwa-install__actions {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    flex-shrink: 0;
}

.pwa-install__go,
.pwa-install__later {
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.38rem 0.7rem;
    white-space: nowrap;
    font-family: inherit;
}

.pwa-install__go {
    background: #ff1f1f;
    border: 1px solid #ff1f1f;
    color: #fff;
}

.pwa-install__later {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

.pwa-install__close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.3rem;
}

@media (min-width: 901px) {
    .pwa-install {
        left: auto;
        right: 1.25rem;
        bottom: 1.25rem;
        width: min(380px, calc(100vw - 2.5rem));
    }
}
