:root {
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --card-hover: #2C2C2C;
    --text-primary: #F4EFE5;
    --text-secondary: #F4EFE5;
    --accent-glow: rgba(255, 255, 255, 0.1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; 
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #24352C 0%, #0B1512 100%);
    background-attachment: fixed; 
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    min-height: 100dvh; 
    display: flex;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden; 
}

.container {
    width: 100%;
    max-width: 480px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-bottom: 40px;
    margin: 0 auto;
}

/* Кнопка поделиться */
.share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    width: 44px; 
    height: 44px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* Профиль */
.profile-section {
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
    width: 100%;
    padding: 0 10px;
}

.avatar-container {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.main-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    word-wrap: break-word; 
}

/* Ссылки */
.links-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px; 
    background-color: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 16px; 
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.1s ease, background-color 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(126, 145, 130, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@media (hover: hover) {
    .link-card:hover {
        background-color: var(--card-hover);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .share-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

.link-card:active {
    transform: scale(0.97) !important;
    background-color: #333;
}

/* Разделители */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0 12px 0;
    position: relative;
    opacity: 0; 
    animation: fadeIn 0.5s forwards;
    animation-delay: 0.3s;
}

.divider span {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--text-secondary);
    backdrop-filter: blur(5px);
}

footer {
    margin-top: 50px;
    color: #666;
    font-size: 0.75rem;
    text-align: center;
    letter-spacing: 1px;
}

/* --- АДАПТИВНОСТЬ ДЛЯ МАЛЕНЬКИХ ЭКРАНОВ (iPhone SE, старые Android) --- */
@media (max-width: 380px) {
    .container {
        padding-bottom: 20px;
    }

    .main-title {
        font-size: 1.3rem;
    }

    .avatar {
        width: 90px;
        height: 90px;
    }

    .link-card {
        padding: 12px 16px;
        font-size: 0.95rem;
        min-height: 50px;
    }

    .divider {
        margin: 18px 0 10px 0;
    }
}

/* Анимации */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Задержки анимации */
.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(5) { animation-delay: 0.4s; }
.link-card:nth-child(6) { animation-delay: 0.5s; }
.link-card:nth-child(7) { animation-delay: 0.6s; }
.link-card:nth-child(9) { animation-delay: 0.7s; }
.link-card:nth-child(10) { animation-delay: 0.8s; }
.link-card:nth-child(11) { animation-delay: 0.9s; }