@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght=0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght=0,100..800;1,100..800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #171717;
    overflow: hidden;
}

.boot-screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #171717;
    position: relative;
}

/* Окно терминала с кодом */
.terminal {
    color: #D9D9D9;
    font-family: "JetBrains Mono", monospace;
    font-size: 18px;
    line-height: 1.8;
    width: 600px;
    padding: 30px;
    border: rgba(217, 217, 217, 0.15) 1px solid;
    border-radius: 20px;
    background-color: #2B2B2B;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Базовые настройки для эффекта печатающегося текста */
.line,
.final-line .text {
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

/* Очередность и задержки появления строк */
.l1 {
    animation: typing 1.2s steps(28) forwards;
}

.l2 {
    animation: typing 1.2s steps(28) forwards;
    animation-delay: 1.2s;
}

.l3 {
    animation: typing 1.2s steps(28) forwards;
    animation-delay: 2.5s;
}

.l4 {
    animation: typing 1.2s steps(28) forwards;
    animation-delay: 3.8s;
}

.l5 {
    animation: typing 1.2s steps(28) forwards;
    animation-delay: 5s;
}

.final-line {
    display: flex;
    align-items: center;
}

.final-line .text {
    animation: typing 1s steps(12) forwards;
    animation-delay: 6.5s;
    color: #D9D9D9;
    /* Зеленый убран, теперь стандартный светлый цвет текста */
    font-weight: 600;
}

/* Мигающий каретка-курсор в конце */
.cursor {
    width: 10px;
    height: 1.2em;
    background: #D9D9D9;
    /* Цвет курсора теперь тоже совпадает с текстом */
    opacity: 0;
    margin-left: 4px;
    animation:
        showCursor 0s forwards 7.6s,
        blink 1s step-end infinite 7.6s;
}

/* Кликабельный оверлей перехода на Home */
.continue-overlay {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 60px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0);
    /* Эффекты затемнения и размытия убраны */
    transition: background 0.3s ease;
    animation: activateOverlay 0.5s ease forwards 8s;
}

.continue-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
    /* При ховере будет лишь легкое, едва заметное затемнение */
}

.continue-overlay p {
    color: rgba(255, 255, 255, 0.6);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 28px;
    border-radius: 30px;
    background: #171717;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.continue-overlay:hover p {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* КЛЮЧЕВЫЕ КАДРЫ АНИМАЦИЙ */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes showCursor {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes blink {

    from,
    to {
        background-color: transparent;
    }

    50% {
        background-color: #D9D9D9;
    }
}

@keyframes activateOverlay {
    from {
        opacity: 0;
        pointer-events: none;
    }

    to {
        opacity: 1;
        pointer-events: auto;
    }
}