.profile-modal-overlay {
    position: fixed;
    top: clamp(88px, 11vh, 132px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1400;
    background: linear-gradient(180deg, rgba(3, 8, 18, 0.38), rgba(3, 8, 18, 0.78));
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
    padding: 0 14px 18px;
}

.profile-modal-shell {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - clamp(106px, 13vh, 150px));
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.profile-modal-shell::-webkit-scrollbar {
    display: none;
}

.profile-modal-fragment {
    width: 100%;
    min-height: auto;
    padding: 0;
}

.profile-modal-fragment .panel-card {
    width: 100%;
    min-height: auto;
    margin: 0;
    border-radius: 24px;
    box-shadow: 0 26px 56px rgba(3, 10, 24, 0.38);
}

.profile-modal-fragment .panel-card__head {
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(75, 88, 120, 0.96), rgba(55, 65, 90, 0.96));
}

.profile-modal-fragment .hall-profile-modal__head {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 64px;
    padding-inline: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-modal-fragment .hall-profile-modal__head .panel-card__head-group {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
}

.profile-modal-fragment .hall-profile-modal__head h2 {
    margin: 0;
    text-align: center;
}

.profile-modal-fragment .panel-card__body {
    padding-bottom: 28px;
}

.profile-sheet-close {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(52, 209, 255, 0.34);
    background: rgba(7, 18, 37, 0.78);
    color: #f1f7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 26px rgba(5, 13, 29, 0.18);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.profile-modal-fragment .hall-profile-modal__head .profile-sheet-close {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.profile-sheet-close span {
    font-size: 1.65rem;
    line-height: 1;
}

.profile-sheet-close:hover,
.profile-sheet-close:focus-visible {
    transform: translateY(calc(-50% - 1px));
    border-color: rgba(52, 209, 255, 0.7);
    box-shadow: 0 20px 34px rgba(5, 13, 29, 0.28);
}

body.is-profile-modal-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .profile-modal-overlay {
        top: 110px;
        padding: 0 28px 28px;
    }

    .profile-modal-shell {
        width: min(100%, 1160px);
        max-height: calc(100dvh - 142px);
        margin: 0 auto;
    }

    .profile-modal-fragment .panel-card__body {
        max-width: 1120px;
        width: 100%;
        margin: 0 auto;
    }

    .profile-modal-fragment .panel-card__head {
        padding-inline: 28px;
    }
}

@media (max-width: 768px) {
    .profile-modal-overlay {
        top: 86px;
        padding: 0 10px 14px;
    }

    .profile-modal-shell {
        max-height: calc(100dvh - 102px);
    }

    .profile-modal-fragment .panel-card {
        border-radius: 20px;
    }

    .profile-modal-fragment .hall-profile-modal__head {
        min-height: 56px;
        padding-inline: 12px;
    }

    .profile-modal-fragment .hall-profile-modal__head .profile-sheet-close {
        left: 12px;
    }
}
