/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial Black', Arial, sans-serif;
    overflow-x: hidden;
}

/* Убираем полосу прокрутки при открытом модальном окне */
html.modal-open,
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Контейнер для particles.js - занимает весь экран */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #000000;
}

/* Обертка для контента - центрирование, масштабируется с окном */
.content-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(12px, 2.5vw, 24px);
}

/* Карточка с контентом - гибкая под размер окна */
.card {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(102, 252, 241, 0.3);
    border-radius: clamp(12px, 2vw, 20px);
    padding: clamp(20px, 4vw, 40px);
    max-width: min(600px, 92vw);
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Аватар - масштабируется с окном */
.avatar {
    width: clamp(80px, 15vw, 120px);
    height: clamp(80px, 15vw, 120px);
    border-radius: 50%;
    border: 3px solid #66fcf1;
    margin: 0 auto clamp(15px, 2.5vw, 25px);
    display: block;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(102, 252, 241, 0.5);
}

/* Кастомные эмодзи из Telegram */
.custom-emoji {
    display: inline-block;
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    margin: 0 2px;
}

.custom-emoji-large {
    width: 2em;
    height: 2em;
    margin: 0 5px;
}

.custom-emoji-small {
    width: 0.9em;
    height: 0.9em;
    margin: 0 1px;
}

/* Анимированные эмодзи (Lottie) */
.lottie-emoji {
    display: inline-block;
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
    margin: 0 2px;
}

/* Заголовок имени - масштабируется */
h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(6px, 1vw, 10px);
    color: #66fcf1;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
    font-family: 'Arial Black', Arial, sans-serif;
}

/* Подзаголовок роли */
.subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    color: #45a29e;
    margin-bottom: clamp(15px, 2.5vw, 25px);
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Биография */
.bio-text {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: clamp(20px, 3vw, 30px);
    text-align: justify;
    font-family: 'Arial', sans-serif;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Контейнер для ссылок - гибкий */
.links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    margin-top: clamp(20px, 3vw, 30px);
}

/* Кнопки-ссылки (старый стиль для совместимости) */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-family: 'Arial Black', Arial, sans-serif;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #ffffff;
}

/* Иконки-ссылки с подписями - масштабируются */
.link-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: clamp(10px, 1.5vw, 15px) clamp(14px, 2vw, 20px);
    border-radius: clamp(8px, 1.2vw, 12px);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(15, 15, 15, 0.5);
    min-width: clamp(70px, 12vw, 80px);
    cursor: pointer;
}

.link-icon i {
    font-size: clamp(1.4em, 2.5vw, 2em);
    margin-bottom: clamp(4px, 0.8vw, 8px);
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.link-icon {
    position: relative;
}

.link-icon img.funpay-logo {
    width: 2em !important;
    height: 2em !important;
    max-width: 32px !important;
    max-height: 32px !important;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(60%) sepia(100%) saturate(2000%) hue-rotate(190deg) brightness(1.2);
    display: inline-block;
    vertical-align: middle;
    background: transparent;
    position: relative;
    z-index: 1;
}

.link-icon.btn-gh {
    position: relative;
}

.link-label {
    font-size: clamp(0.6em, 1.2vw, 0.75em);
    font-family: 'Arial Black', Arial, sans-serif;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: min(100px, 20vw);
    transition: all 0.3s ease;
}

/* Telegram */
.link-icon.btn-tg {
    border-color: #2596be;
    color: #66fcf1;
}

.link-icon.btn-tg i {
    color: #66fcf1;
}

.link-icon.btn-tg:hover {
    background: rgba(37, 150, 190, 0.3);
    box-shadow: 0 0 25px rgba(37, 150, 190, 0.6), 0 0 50px rgba(37, 150, 190, 0.4);
    transform: translateY(-3px);
}

.link-icon.btn-tg:hover i {
    text-shadow: 0 0 15px rgba(37, 150, 190, 0.8), 0 0 30px rgba(37, 150, 190, 0.6);
    transform: scale(1.1);
}

/* FunPay */
.link-icon.btn-gh {
    border-color: #00484b;
    color: #44abff;
}

.link-icon.btn-gh i {
    color: #44abff;
}

.link-icon.btn-gh:hover {
    background: rgba(25, 151, 255, 0.3);
    box-shadow: 0 0 25px rgba(25, 151, 255, 0.6), 0 0 50px rgba(25, 151, 255, 0.4);
    transform: translateY(-3px);
}

.link-icon.btn-gh:hover i {
    text-shadow: 0 0 15px rgba(25, 151, 255, 0.8), 0 0 30px rgba(25, 151, 255, 0.6);
    transform: scale(1.1);
}

.link-icon.btn-gh:hover img.funpay-logo {
    filter: brightness(0) saturate(100%) invert(60%) sepia(100%) saturate(2000%) hue-rotate(190deg) brightness(1.2);
    transform: scale(1.1);
}

/* Кнопка "Остальное" */
.link-icon.btn-other {
    border-color: #66fcf1;
    color: #66fcf1;
    background: rgba(102, 252, 241, 0.1);
}

.link-icon.btn-other i {
    color: #66fcf1;
}

.link-icon.btn-other:hover {
    background: rgba(102, 252, 241, 0.2);
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.6), 0 0 50px rgba(102, 252, 241, 0.4);
    transform: translateY(-3px);
}

.link-icon.btn-other:hover i {
    text-shadow: 0 0 15px rgba(102, 252, 241, 0.8), 0 0 30px rgba(102, 252, 241, 0.6);
    transform: scale(1.1);
}

/* Steam 1 */
.link-icon.btn-steam1 {
    border-color: #1b2838;
    color: #66b3ff;
}

.link-icon.btn-steam1 i {
    color: #66b3ff;
}

.link-icon.btn-steam1:hover {
    background: rgba(27, 40, 56, 0.4);
    box-shadow: 0 0 25px rgba(27, 40, 56, 0.6), 0 0 50px rgba(27, 40, 56, 0.4);
    transform: translateY(-3px);
}

.link-icon.btn-steam1:hover i {
    text-shadow: 0 0 15px rgba(27, 40, 56, 0.8), 0 0 30px rgba(27, 40, 56, 0.6);
    transform: scale(1.1);
}

/* Steam 2 (HVH) */
.link-icon.btn-steam2 {
    border-color: #c83232;
    color: #ff6666;
}

.link-icon.btn-steam2 i {
    color: #ff6666;
}

.link-icon.btn-steam2:hover {
    background: rgba(200, 50, 50, 0.3);
    box-shadow: 0 0 25px rgba(200, 50, 50, 0.6), 0 0 50px rgba(200, 50, 50, 0.4);
    transform: translateY(-3px);
}

.link-icon.btn-steam2:hover i {
    text-shadow: 0 0 15px rgba(200, 50, 50, 0.8), 0 0 30px rgba(200, 50, 50, 0.6);
    transform: scale(1.1);
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.modal-content {
    background: rgba(15, 15, 15, 0.95);
    margin: 5% auto;
    padding: 30px;
    border: 2px solid rgba(102, 252, 241, 0.5);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Скрытие скроллбара в модальном окне */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(15, 15, 15, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(102, 252, 241, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 252, 241, 0.5);
}

.close {
    color: #66fcf1;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover,
.close:focus {
    color: #45a29e;
    text-decoration: none;
}

.modal-content h2 {
    color: #66fcf1;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1.8em;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Блоки информации */
.info-block {
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.block-primary {
    border-color: rgba(102, 252, 241, 0.4);
    background: linear-gradient(135deg, rgba(102, 252, 241, 0.1) 0%, rgba(20, 20, 30, 0.9) 100%);
}

.block-primary:hover {
    border-color: rgba(102, 252, 241, 0.7);
    box-shadow: 0 0 25px rgba(102, 252, 241, 0.3);
    transform: translateY(-2px);
}

.block-secondary {
    border-color: rgba(255, 165, 0, 0.4);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(20, 20, 30, 0.9) 100%);
}

.block-secondary:hover {
    border-color: rgba(255, 165, 0, 0.7);
    box-shadow: 0 0 25px rgba(255, 165, 0, 0.3);
    transform: translateY(-2px);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(102, 252, 241, 0.3);
}

.block-icon {
    font-size: 1.8em;
}

.block-header h3 {
    color: #66fcf1;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1.3em;
    text-shadow: 0 0 8px rgba(102, 252, 241, 0.5);
    margin: 0;
}

.block-secondary .block-header h3 {
    color: #ffa500;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.5);
}

.block-secondary .block-header {
    border-bottom-color: rgba(255, 165, 0, 0.3);
}

.block-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Элементы информации */
.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #66fcf1;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-left-width: 5px;
}

.info-label {
    color: #66fcf1;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #e0e0e0;
    font-family: 'Arial', sans-serif;
    font-size: 1em;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Устройства */
.device-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 3px solid #ffa500;
    transition: all 0.2s ease;
}

.device-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-left-width: 5px;
    transform: translateX(5px);
}

.device-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.device-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.device-name {
    color: #ffa500;
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 165, 0, 0.5);
}

.device-specs {
    color: #d0d0d0;
    font-family: 'Arial', sans-serif;
    font-size: 0.9em;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .bio-text {
        font-size: 1em;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }

    .links {
        gap: 15px;
    }

    .link-icon {
        min-width: 70px;
        padding: 12px 15px;
    }

    .link-icon i,
    .link-icon img.funpay-logo {
        font-size: 1.5em;
        width: 1.5em !important;
        height: 1.5em !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }

    .link-label {
        font-size: 0.65em;
        max-width: 80px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 2% auto;
    }

    .modal-content h2 {
        font-size: 1.5em;
    }

    .block-header h3 {
        font-size: 1.1em;
    }

    .info-item {
        padding: 10px;
    }

    .device-item {
        padding: 12px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .device-icon {
        font-size: 1.5em;
    }

    .info-value {
        font-size: 0.9em;
    }

    .device-specs {
        font-size: 0.85em;
    }
}
