body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Оставляем градиент на самом нижнем слое */
    background: radial-gradient(circle at center, #2c3e50 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

/* Черный слой, который будет плавно перекрывать градиент */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0; /* Изначально прозрачный */
    transition: opacity 2s ease-in-out; /* Плавное проявление 2 секунды */
    z-index: 1; 
}

/* Когда добавляем этот класс, черный слой становится видимым */
body.black-bg::before {
    opacity: 1;
}

#matrix {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2; /* Матрица поверх черного слоя */
}

#start-panda {
    position: relative;
    z-index: 10;
    cursor: pointer;
    max-width: 90vw;
    max-height: 90vh;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.fade-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}
