/* PWA Install Card — floating bottom-right (gin.directory pattern) */
#pwaInstallBanner {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    max-width: 320px;
    background: #1E1E1E;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.pwa-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.pwa-card-logo {
    height: 22px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}
.pwa-card-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.pwa-card-close:hover { color: #fff; }
.pwa-card-desc {
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 14px;
}
.pwa-card-desc strong { color: #D4AF37; }
.pwa-card-actions {
    display: flex;
    gap: 8px;
}
.pwa-card-actions a,
.pwa-card-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.15s;
}
.pwa-card-actions a:active,
.pwa-card-actions button:active { opacity: 0.8; }
.pwa-btn-primary {
    background: #D4AF37;
    color: #121212;
}
.pwa-btn-outline {
    background: transparent;
    color: #D4AF37;
    border: 1.5px solid #D4AF37 !important;
}
.pwa-btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    text-decoration: none;
}

/* Mobile: wider card, bottom-anchored */
@media (max-width: 420px) {
    #pwaInstallBanner {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* Safe area for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #pwaInstallBanner {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }
    @media (max-width: 420px) {
        #pwaInstallBanner {
            bottom: calc(12px + env(safe-area-inset-bottom));
        }
    }
}
