:root {
    --bg-color: #1a1815;
    --text-color: #d1c7b1;
    --accent-glow: rgba(157, 0, 255, 0.4);
    --terminal-green: #889e81;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Courier New", Courier, monospace;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.scanlines {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 3px;
    z-index: 100;
    pointer-events: none;
}

.lain {
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 400px;
    height: 500px;
    background: url("lain.webp");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.15;
    filter: grayscale(1) contrast(1.2);
    z-index: 1;
    transition: opacity 0.5s;
}

.terminal {
    position: relative;
    z-index: 10;
    width: 80%;
    max-width: 800px;
}

.navi-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 5px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.error-code {
    font-size: 8rem;
    margin: 0;
    letter-spacing: -5px;
    color: var(--text-color);
    text-shadow: 3px 0px 10px var(--accent-glow);
    animation: jitter 4s infinite;
}

.error-status {
    font-size: 1.5rem;
    margin-top: -10px;
    background: var(--text-color);
    color: var(--bg-color);
    display: inline-block;
    padding: 0 10px;
}

.message {
    margin: 40px 0;
    font-size: 1.1rem;
    line-height: 1.4;
    border-left: 1px solid var(--accent-glow);
    padding-left: 15px;
}

.highlight {
    color: var(--terminal-green);
}

.prompt {
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
}

.cursor {
    animation: blink 1s infinite;
    background: var(--text-color);
    color: var(--text-color);
}

.yeaidont {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.7rem;
    opacity: 0.3;
}

@keyframes jitter {
    0% {
        transform: translate(0);
    }
    1% {
        transform: translate(2px, -2px);
    }
    2% {
        transform: translate(-2px, 1px);
    }
    3% {
        transform: translate(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}
