* {}

/*html, body {
    overscroll-behavior: contain;
    touch-action: none;
}
*/
#screens-div {
    position: absolute;
    display: flex;
    width: 100vw;
    height: 100dvh;
    flex-wrap: nowrap;
    justify-content: center;
    /* ��������� ������� ��� ������� ������ */
    transition: left 0.3s ease-out;
}

#likes-screen {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-size: 9%;
    background-position: center;
}

.like-card {
    overflow: hidden;
    outline-offset: -0.1rem;
    font-size: small;
    position: absolute;
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    max-width: 20rem;
    border-radius: 2.1rem;
    /* box-shadow: 0 0 0.3rem 0rem #727272; */
    /* max-width: 19.6875rem; */
    /* max-height: 32rem; */
    /* border: 0.0325rem solid var(--border-color); */
    backdrop-filter: blur(0.8rem);
    -webkit-backdrop-filter: blur(5px);
    background-color: var(--ticket-background);
    background: var(--ticket-background);
    /* box-shadow: inset 11px 8px 1rem -0.4rem #6b6b6b12, inset -11px -8px 1rem -0.4rem #0000000f; */
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 2.5px 1px -1px rgba(255, 255, 255, 0.15),
        0 -3px 1.5px -2px rgba(255, 255, 255, 0.15) inset,
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 0rem solid #ffffff00;
    transition: all 0.4s ease-out;
}

.screen-div {
    z-index: 0;
    display: none;
    width: 100%;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ��������� ��� ���� ������� */
#screens-div {
    padding-bottom: calc(var(--app-content-safe-area-inset-bottom, 0px) + 4.81rem);
    position: relative;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    background-size: 9%;
    background-position: center;
}

/* �������� ��� ������ �� ��������� */
.screen-div {
    z-index: 0;
    display: none;
    width: 100%;
    height: 100%;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ���������� ������ �������� ����� */
.screen-div.active {
    display: flex;
}

@media (min-width: 1025px) {
    #screens-div {
        margin-left: var(--desktop-sidebar-width, 64px);
        width: calc(100% - var(--desktop-sidebar-width, 64px));
        transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        height: 100dvh;
        min-height: 100dvh;
        padding-top: 16px;
        padding-bottom: 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .screen-div {
        position: relative;
        height: 100%;
        justify-content: flex-start;
        padding-top: 0;
        padding-bottom: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .screen-div > #header-text-main {
        position: sticky;
        top: 0;
        left: auto;
        right: auto;
        width: 100%;
        z-index: 6;
        pointer-events: none;
        padding-top: 12px;
        padding-bottom: 12px;
        margin-bottom: 6px;
    }

    /* Унифицируем desktop-поведение карточечных экранов */
    #mainBlock,
    #likes-screen {
        justify-content: center;
        overflow: hidden;
    }

    #mainBlock > #header-text-main,
    #likes-screen > #header-text-main {
        position: absolute;
        top: 12px;
        left: 0;
        right: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #mainBlock .card-container,
#likes-screen #likes-card-container {
        margin-left: auto;
        margin-right: auto;
    }
}

#shared-profile-screen {
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.shared-profile-card-container {
    box-shadow: 0px 6px 40px 24px #0b0b0b;
    transition: all 0.2s ease-out;
    display: inline-flex;
    margin-top: 0;
    position: relative;
    width: 80vw;
    aspect-ratio: 3 / 4;
    max-width: 20rem;
    justify-content: center;
    font-weight: 500;
}

.shared-profile-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}
