body {
    margin: 0;
    padding: 0;
    background-color: #020202;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Atkinson-Hyperlegible-Regular";
}

* {
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: "Poppins-Medium";
    src: url("/fonts/Poppins-Medium.ttf");
}

@font-face {
    font-family: "Poppins-Regular";
    src: url("/fonts/Poppins-Regular.ttf");
}

@font-face {
    font-family: "LEMONMILK-Medium";
    src: url("/fonts/LEMONMILK-Medium.otf");
}

@font-face {
    font-family: "Atkinson-Hyperlegible-Regular";
    src: url(/fonts/AtkinsonHyperlegible-Regular.ttf);
}

@font-face {
    font-family: "AlimamaShuHeiTi";
    src: url("/fonts/AlimamaShuHeiTi.otf");
}

.content-wrapper {
    flex: 1;
    padding: 1rem 1.2rem;
}

.friends-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.friends-title {
    color: #e2e2e2;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.friends-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    
}

.friend-card {
    background: #16171a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s;
    width: calc(33.333% - 1.5rem);
    min-width: 280px;
    max-width: 320px;
    user-drag: none;
    -webkit-user-drag: none; 
}

.friend-card:hover {
    transform: translateY(-3px);
    background-color: #0e0e10;
}

.friend-card a {
    display: flex;
    padding: 1.2rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    box-sizing: border-box;
}

.friend-pfp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
    border: 2px solid #97bb72;
    background: #020202;
}

.friend-pfp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.friend-info h3 {
    color: #97bb72;
    margin: 0 0 0.3rem 0;
    font-size: 1.2rem;
    font-family: "AlimamaShuHeiTi";
    font-weight: lighter;
}

.friend-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .friend-card {
        width: calc(50% - 1.5rem);
    }
}

@media (max-width: 620px) {
    .friends-flex {
        justify-content: flex-start;
    }
    
    .friend-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .friends-title {
        font-size: 2rem;
    }
}

@media (max-width: 400px) {
    .friend-card a {
        flex-direction: column;
        text-align: center;
    }
    
    .friend-pfp {
        margin: 0 auto 0.8rem auto;
    }
}