/* ── Popup card ───────────────────────────────────────────────────────────── */

.popup-card {
    display: none;
    position: fixed;
    top: calc(80px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 400px;
    width: calc(100% - 48px);
    background: white;
    border-radius: 20px;
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.55), 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.popup-card.visible {
    display: block;
}

body.popup-open {
    overflow: hidden;
    pointer-events: none;
}

body.popup-open .popup-card {
    pointer-events: auto;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.32);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.55);
}

.popup-close .material-symbols-rounded {
    font-size: 1.15rem;
}
