.pe-immersive-fab[hidden],
.pe-immersive-nudge[hidden] {
    display: none !important;
}

.pe-immersive-fab {
    position: fixed;
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 850;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font: 700 13px/1.1 Arial, sans-serif;
    pointer-events: auto;
}

.pe-immersive-fab__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 54px;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe08a, #d4af37 48%, #9f7615);
    color: #111827;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, .26), 0 12px 28px rgba(0, 0, 0, .42), 0 0 22px rgba(212, 175, 55, .42);
    cursor: pointer;
    font: inherit;
    letter-spacing: 0;
}

.pe-immersive-fab__action:focus-visible,
.pe-immersive-fab__dismiss:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.pe-immersive-fab__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.pe-immersive-fab__label {
    white-space: nowrap;
}

.pe-immersive-fab__dismiss {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-left: -2px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(10, 12, 16, .82);
    color: rgba(255, 255, 255, .82);
    cursor: pointer;
    font: 700 18px/1 Arial, sans-serif;
}

.pe-immersive-fab--table {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.pe-immersive-nudge {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: calc(20px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) calc(20px + env(safe-area-inset-left, 0px));
    background: rgba(3, 7, 18, .68);
}

.pe-immersive-nudge__panel {
    width: min(420px, 100%);
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 14px;
    background: linear-gradient(180deg, #161b2d 0%, #080b14 100%);
    color: #f8fafc;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .62);
    padding: 20px;
}

.pe-immersive-nudge__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.pe-immersive-nudge__title {
    margin: 0;
    color: #fff;
    font: 800 20px/1.15 Arial, sans-serif;
}

.pe-immersive-nudge .auth-install-gate__eyebrow {
    margin: 0 0 4px;
    color: #f8d56b;
    font: 800 11px/1 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pe-immersive-nudge__copy {
    margin: 0 0 16px;
    color: rgba(226, 232, 240, .82);
    font: 500 13px/1.55 Arial, sans-serif;
}

.pe-immersive-nudge__close {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78);
    cursor: pointer;
    font: 700 22px/1 Arial, sans-serif;
}

.pe-immersive-nudge .auth-install-gate__steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pe-immersive-nudge .auth-install-gate__steps li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(248, 250, 252, .9);
    font: 600 13px/1.45 Arial, sans-serif;
}

.pe-immersive-nudge .auth-install-gate__icon {
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(212, 175, 55, .18);
    color: #f8d56b;
    font-weight: 800;
}

.pe-immersive-nudge__safari {
    margin: 14px 0 0;
    color: rgba(226, 232, 240, .72);
    font: 600 12px/1.45 Arial, sans-serif;
}

@keyframes peImmersiveGlow {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(212, 175, 55, .26), 0 12px 28px rgba(0, 0, 0, .42), 0 0 18px rgba(212, 175, 55, .35);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(212, 175, 55, .12), 0 16px 34px rgba(0, 0, 0, .46), 0 0 30px rgba(212, 175, 55, .62);
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .pe-immersive-fab__action {
        animation: peImmersiveGlow 2.8s ease-in-out infinite;
    }
}

@media (max-width: 950px) and (orientation: landscape) {
    .pe-immersive-fab--table {
        left: calc(110px + env(safe-area-inset-left, 0px));
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 420px) {
    .pe-immersive-fab__label {
        display: none;
    }
}
