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

body {
    background-color: #121214;
    color: #ffffff;
    font-family: 'Georgia', 'Times New Roman', serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Канвас на заднем плане */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    filter: saturate(69%);
}

/* Главный контейнер */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 1100px;
}

/* Шапка с аватаром и соцсетями */
.header-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.avatar-box {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

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

/* Никнейм */
.nickname {
    font-size: 2.2rem;
    font-style: italic;
    font-weight: normal;
    margin-bottom: 35px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Сетка кнопок*/
.buttons-grid {
    display: grid;
    /* Ровно 5 колонок одинаковой ширины */
    grid-template-columns: repeat(5, minmax(auto, max-content)); 
    gap: 15px;                  /* Расстояние между кнопками */
    justify-content: center;     /* Центрирование сетки по горизонтали */
    align-items: center;
    width: 100%;
}


/* Кнопки ссылок */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(212, 201, 137, 0.5); /* Желтовато-золотистый цвет с 50% прозрачностью */
    border: 2px solid rgba(175, 162, 95, 0.6);
    border-radius: 22px;
    padding: 10px 20px;
    min-width: 260px;
    max-width: 320px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.3rem;
    font-weight: bold;
    font-style: italic;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
}

.nav-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    background-color: rgba(225, 214, 150, 0.65);
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    /*background: rgba(255, 255, 255, 0.8);*/
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon img,
.btn-icon svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-icon-contain img,
.btn-icon-contain svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.btn-text {
    white-space: wrap;
    overflow: visible;
    text-overflow: clip;
}

/* Адаптированность под мобильные устройства */
@media (max-width: 820px) {
    .buttons-grid {
        grid-template-columns: 1fr; /* Одна колонка на телефонах */
        max-width: 320px;
    }

    .nav-btn {
        width: 100%;
    }

    .header-section {
        gap: 20px;
    }

    .avatar-box {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }
}
