.country-user-card {
    display: flex;
    height: 220px;
    padding: 4px 6px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    border-radius: 8px;
    background: lightgray 50% / cover no-repeat;
    text-decoration: none;
    overflow: hidden;
    transform-origin: center;
    position: relative;
}

.country-user-card:link,
.country-user-card:visited,
.country-user-card:hover,
.country-user-card:active,
.country-user-card:focus {
    color: #FFF;
    text-decoration: none;
}

.country-user-card-spacer {
    display: block;
    width: 100%;
    min-height: 1px;
}

.country-user-meta {
    display: flex;
    position: relative;
    padding: 8px 12px;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--Dark, #052330);
    width: 100%;
}

.country-user-meta::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, 0.40);
    border-radius: 7px;
    pointer-events: none;
}

.country-user-flag {
    position: absolute !important;
    top: 4px;
    right: 4px;
    width: 40px;
    height: 27px;
    z-index: 2;
}

.country-user-meta img {
    width: 18px;
    height: 12px;
    flex: 0 0 auto;
}

.country-user-meta > span {
    display: flex;
    align-items: center;
    gap: 0.3em;
    width: 100%;
    overflow: hidden;
    color: var(--White, #FFF);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    justify-content: center;
}

.country-user-meta .country-user-meta-name,
.country-user-meta .country-user-meta-separator {
    display: inline;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.country-user-meta .country-user-meta-separator {
    color: var(--Orange, #FC6433);
}

.country-user-meta .country-user-meta-location {
    display: block;
    min-width: 0;
    overflow: hidden;
    opacity: 0.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-user-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--card-bg-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: inherit;
    transform: scale(1);
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

.country-user-card:hover::before,
.country-user-card:focus-visible::before {
    transform: scale(1.04);
}

.country-user-card > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 1200px) {
    .country-user-card:hover::before,
    .country-user-card:focus-visible::before {
        transform: scale(1);
    }
}

@media (max-width: 1050px) {
    .country-user-card {
        height: 120px;
    }

    .country-user-flag {
        width: 32px;
        height: 21px;
    }

    .country-user-meta span {
        font-size: 12px;
    }
}
