/* ===== ОСНОВА ===== */
body {
    margin: 0;
    font-family: "Consolas", monospace;
    background: #0a0a0f;
    color: #fff;

    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== ФОН ===== */
canvas#fireflies {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* ===== КОНТЕНТ ===== */
.content {
    position: relative;
    z-index: 1;

    padding: 40px 20px;
    box-sizing: border-box;
    min-height: 100vh;
}

.main-container {
    display: flex;
    justify-content: flex-start;
}

/* ===== ТЕКСТ ===== */
.lore-text {
    width: 100%;
    max-width: 900px;

    font-size: 18px;
    line-height: 1.8;

    text-shadow: 0 0 4px #fff;
    animation: textPulse 6s infinite;

    padding-bottom: 80px;
}

/* ===== ЗАГОЛОВКИ ===== */
.lore-text h1 {
    font-size: 48px;
    margin-bottom: 15px;
    animation: titlePulse 4s infinite ease-in-out;
}

.lore-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* ===== КНОПКА НАЗАД ===== */
#backBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;

    padding: 10px 22px;
    font-size: 16px;

    border: 2px solid rgba(255,255,255,0.85);
    background: transparent;
    color: #fff;
    cursor: pointer;

    text-shadow: 0 0 6px rgba(255,255,255,0.8);
    z-index: 10;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        text-shadow 0.3s ease,
        border-color 0.3s ease,
        opacity 0.3s ease;
}

/* ✨ ЭФИРНОЕ СВЕЧЕНИЕ ПРИ НАВЕДЕНИИ */
#backBtn:hover {
    transform: scale(1.06);

    border-color: rgba(255,255,255,1);
    text-shadow: 0 0 10px rgba(255,255,255,0.9);

    animation: backEtherealGlow 1.2s infinite ease-in-out;
}

/* 🌫 МЯГКОЕ БЕЛОЕ ДЫХАНИЕ */
@keyframes backEtherealGlow {
    0% {
        box-shadow:
            0 0 6px rgba(255,255,255,0.25),
            0 0 12px rgba(255,255,255,0.15);
        opacity: 0.95;
    }
    50% {
        box-shadow:
            0 0 10px rgba(255,255,255,0.45),
            0 0 20px rgba(255,255,255,0.25);
        opacity: 1;
    }
    100% {
        box-shadow:
            0 0 6px rgba(255,255,255,0.25),
            0 0 12px rgba(255,255,255,0.15);
        opacity: 0.95;
    }
}