/* Базовые настройки для всего сайта */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Press Start 2P', monospace;
    overflow-x: hidden;
    overflow-y: auto;
}
a, a:visited {
    color: #FFFFFF;
    text-decoration: underline;
}
.hidden {
    display: none !important;
}
/* ЭКРАН ПРИВЕТСТВИЯ */
.welcome-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease-in-out;
}
.welcome-text {
    font-size: 32px;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpBlur 2.2s ease-in-out forwards;
}
@keyframes fadeInUpBlur {
    0% { opacity: 0; transform: translateY(40px); }
    30% { opacity: 1; transform: translateY(0); }
    75% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}
/* СТРАНИЦА ПРОФИЛЯ */
.page-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.page-container.visible {
    opacity: 1;
}
.centered-table {
    width: 100%;
}
.profile-avatar {
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.profile-name {
    font-size: 18px;
}
.inner-block {
    background-color: #000000;
}
.fetch-img {
    display: block;
    cursor: pointer;
}
#block1_text {
    display: block;
    max-width: 406px;
    word-wrap: break-word;
    word-break: keep-all;
    white-space: normal;
}
.minecraft-arrow {
    display: inline-block;
    font-size: 18px;
    color: #FFFFFF;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
    padding: 10px 20px;
}
.minecraft-arrow:hover {
    color: #FFB6C1;
    transform: scale(1.15);
    text-shadow: 0 0 20px #FFB6C1, 0 0 40px rgba(255, 182, 193, 0.3);
}
/* ГОРИЗОНТАЛЬНЫЕ ССЫЛКИ-КНОПКИ */
.links-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 0;
}
.minecraft-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #111111;
    border: 2px solid #FFFFFF;
    padding: 10px 15px;
    text-decoration: none !important;
    color: #FFFFFF !important;
    min-width: 160px;
    transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.minecraft-link-btn span {
    font-size: 11px;
}
.minecraft-link-btn img {
    display: block;
    image-rendering: pixelated;
}
.minecraft-link-btn:hover {
    background-color: #1a1a1a;
    border-color: #FFB6C1;
    color: #FFB6C1 !important;
    box-shadow: 0 0 25px rgba(255, 182, 193, 0.2), inset 0 0 25px rgba(255, 182, 193, 0.05);
}
.back-btn-container a {
    font-size: 12px;
    transition: color 0.3s, text-shadow 0.3s;
}
.back-btn-container a:hover {
    color: #FFB6C1 !important;
    text-shadow: 0 0 20px rgba(255, 182, 193, 0.4);
}

/* МОДАЛЬНОЕ ОКНО ДЛЯ КАРТИНКИ (КАК В TELEGRAM) */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30000;
    cursor: pointer;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
    animation: modalZoomIn 0.25s ease-out;
}

@keyframes modalZoomIn {
    from { 
        opacity: 0;
        transform: scale(0.85);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.image-modal-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: block;
    image-rendering: pixelated;
}

.image-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 28px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    transition: color 0.3s, text-shadow 0.3s;
    padding: 5px 10px;
    opacity: 0.7;
}

.image-modal-close:hover {
    color: #FFB6C1;
    text-shadow: 0 0 20px rgba(255, 182, 193, 0.5);
    opacity: 1;
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .image-modal-content img {
        max-width: 95vw;
        max-height: 80vh;
    }
    .image-modal-close {
        top: -40px;
        font-size: 24px;
    }
}

/* ВЫПАДАЮЩИЙ СПИСОК СТРАН В УГЛУ */
.lang-dropdown {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    user-select: none;
}
.lang-current-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #000000;
    border: 2px solid #FFFFFF;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.lang-current-btn:hover {
    background-color: #1a1a1a;
    border-color: #FFB6C1;
    color: #FFB6C1;
    box-shadow: 0 0 25px rgba(255, 182, 193, 0.15);
}
.lang-current-btn span {
    font-size: 11px;
}
.arrow-indicator {
    font-size: 9px;
    margin-left: 5px;
    color: #888888;
    transition: color 0.3s;
}
.lang-current-btn:hover .arrow-indicator {
    color: #FFB6C1;
}
.lang-list {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background-color: #000000;
    border: 2px solid #FFFFFF;
    width: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}
.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
.lang-item span {
    font-size: 11px;
    color: #FFFFFF;
    transition: color 0.3s;
}
.lang-item:hover {
    background-color: #1a1a1a;
}
.lang-item:hover span {
    color: #FFB6C1;
}
.lang-item img, .lang-current-btn img {
    display: block;
    image-rendering: pixelated;
}