.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    color: #33ff66;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 15px;
    line-height: 1.5;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.boot-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-terminal {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.25rem 2rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.boot-line {
    margin: 0 0 0.2rem;
}

.boot-line.dim {
    color: #1faa45;
    opacity: 0.75;
}

.boot-line.fill {
    white-space: nowrap;
    overflow: hidden;
}

.boot-line.warn {
    color: #ffb000;
}

.boot-line.alert {
    color: #ff4444;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.boot-line.success {
    color: #33ff66;
    font-weight: bold;
}

.boot-line .italic {
    font-style: italic;
    color: #88ffaa;
}

.boot-line .cursor {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: #33ff66;
    animation: boot-blink 1s step-end infinite;
}

@keyframes boot-blink {
    50% { opacity: 0; }
}

@media (max-width: 640px) {
    .boot-screen {
        font-size: 17px;
    }

    .boot-terminal {
        padding: 1.25rem 1rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .boot-screen {
        transition: none;
    }

    .boot-line .cursor {
        animation: none;
    }
}
