:root {
    --mc-bg-dark: #121212;
    --mc-bg-pattern: #1e1e1e;
    --mc-stone: #757575;
    --mc-stone-light: #999999;
    --mc-stone-dark: #3a3a3a;
    --mc-grass: #4a8c38;
    --mc-dirt: #3f2818;
    --mc-text-white: #ffffff;
    --mc-text-shadow: #202020;
    --mc-accent: #55ffff;
    --mc-gold: #ffaa00;
    --tg-color: #24A1DE; /* Цвет Telegram */
    --dc-color: #5865F2; /* Цвет Discord */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'MinecraftFont', monospace;
    background-color: var(--mc-bg-dark);
    color: var(--mc-text-white);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(45deg, var(--mc-bg-pattern) 25%, transparent 25%, transparent 75%, var(--mc-bg-pattern) 75%, var(--mc-bg-pattern)),
        linear-gradient(45deg, var(--mc-bg-pattern) 25%, transparent 25%, transparent 75%, var(--mc-bg-pattern) 75%, var(--mc-bg-pattern));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    opacity: 0.6;
}

.container {
    background: rgba(0, 0, 0, 0.85);
    border: 4px solid var(--mc-stone);
    padding: 40px 20px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 0 0 4px #000, 
        15px 15px 0 rgba(0, 0, 0, 0.7);
}

.container::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--mc-grass);
    border-bottom: 4px solid var(--mc-dirt);
    border-left: 4px solid var(--mc-dirt);
    border-right: 4px solid var(--mc-dirt);
}

.logo-wrapper {
    margin-bottom: 20px;
}

.server-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    filter: drop-shadow(4px 4px 0 #000);
}

.server-title {
    font-size: 3.5rem;
    color: var(--mc-accent);
    text-shadow: 4px 4px 0 var(--mc-text-shadow);
    margin-bottom: 10px;
    line-height: 1.1;
}

.description {
    font-size: 1.4rem;
    color: #ddd;
    text-shadow: 2px 2px 0 var(--mc-text-shadow);
    margin-bottom: 30px;
    line-height: 1.5;
}

#progress-percent {
    color: var(--mc-gold);
}

.status-box {
    background: #2a2a2a;
    border: 2px solid #555;
    padding: 15px;
    display: inline-block;
    margin-bottom: 30px;
    width: 100%;
    box-shadow: inset 4px 4px 0 #000;
}

.status-label {
    display: block;
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 5px;
}

.status-value {
    font-size: 1.8rem;
    color: #55ff55;
    text-shadow: 2px 2px 0 #000;
}

.blinking {
    animation: blinkAnim 1.2s infinite step-end;
}

@keyframes blinkAnim {
    50% { opacity: 0; }
}

/* Контейнер для кнопок */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
}

/* Общий стиль кнопок */
.mc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--mc-stone);
    color: var(--mc-text-white);
    font-family: 'MinecraftFont', monospace;
    font-size: 1.6rem;
    padding: 12px 30px;
    border: 4px solid #000;
    cursor: pointer;
    text-shadow: 2px 2px 0 var(--mc-text-shadow);
    box-shadow: 
        inset 4px 4px 0 var(--mc-stone-light), 
        inset -4px -4px 0 var(--mc-stone-dark);
    transition: transform 0.05s, background-color 0.1s, filter 0.2s;
    width: 100%;
    max-width: 320px;
    text-decoration: none; /* Для тега <a> */
}

.btn-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Стиль кнопки Telegram */
.btn-telegram {
    background-color: #2a2a2a; /* Темный фон, как у камня, но чуть темнее */
}

.btn-telegram:hover {
    background-color: var(--tg-color);
    color: #fff;
    box-shadow: 
        inset 4px 4px 0 #4ec0ea, 
        inset -4px -4px 0 #1a7bb0;
}

.btn-telegram:active {
    transform: translateY(4px);
    box-shadow: 
        inset 4px 4px 0 #1a7bb0, 
        inset -4px -4px 0 #4ec0ea;
}

/* Стиль кнопки Discord (Неактивная) */
.btn-discord.disabled {
    background-color: #3a3a3a;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 
        inset 4px 4px 0 #555, 
        inset -4px -4px 0 #222;
}

.btn-discord.disabled:hover {
    background-color: #3a3a3a;
    color: #666;
    box-shadow: 
        inset 4px 4px 0 #555, 
        inset -4px -4px 0 #222;
    transform: none;
}

/* Тултип для неактивной кнопки (опционально, работает через CSS) */
.btn-discord.disabled[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 1rem;
    border: 2px solid #555;
    white-space: nowrap;
    z-index: 10;
}

.footer {
    margin-top: 20px;
    font-size: 1rem;
    color: #888;
    text-shadow: 1px 1px 0 #000;
}

.signature {
    margin-top: 5px;
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .server-title {
        font-size: 2.5rem;
    }
    .mc-btn {
        font-size: 1.4rem;
        padding: 10px 20px;
    }
}