body {
    margin: 0;
    background: #000;
    color: #00ff9f;
    font-family: monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* CRT Screen */
.screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Scanlines */
.screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0,255,150,0.05) 0px,
        rgba(0,255,150,0.05) 1px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
}

/* Flicker */
.screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,255,150,0.04);
    animation: flicker 0.12s infinite;
}

@keyframes flicker {
    0% { opacity: 0.02; }
    50% { opacity: 0.08; }
    100% { opacity: 0.02; }
}

/* Terminal */
.terminal {
    width: 85%;
    max-width: 900px;
}

/* Lines */
.line {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    opacity: 0;
    border-right: 2px solid #00ff9f;
    text-shadow: 0 0 6px rgba(0,255,150,0.6);
}

/* WARN / FAIL Farben */
.warn { color: #ffee00; }
.fail { color: #ff3b3b; }

/* Typing timing */
.l1  { animation: show 0s 0.5s forwards, typing 1.5s steps(30) 0.5s forwards; }
.l2  { animation: show 0s 2s forwards, typing 1.5s steps(30) 2s forwards; }
.l3  { animation: show 0s 3.5s forwards, typing 1.5s steps(30) 3.5s forwards; }
.l4  { animation: show 0s 5s forwards, typing 1.5s steps(30) 5s forwards; }
.l5  { animation: show 0s 6.5s forwards, typing 2s steps(35) 6.5s forwards; }

/* Progress Bar */
.progress {
    opacity: 0;
    margin: 10px 0;
    height: 10px;
    border: 1px solid #00ff9f;
}

.l6 { animation: show 0s 8s forwards; }

.bar {
    height: 100%;
    width: 0;
    background: #00ff9f;
    animation: load 2s linear 8s forwards;
}

@keyframes load {
    to { width: 100%; }
}

/* More lines */
.l7  { animation: show 0s 10.5s forwards, typing 1.5s steps(40) 10.5s forwards; }
.l8  { animation: show 0s 12s forwards, typing 1.5s steps(40) 12s forwards; }
.l9  { animation: show 0s 13.5s forwards, typing 1s steps(40) 13.5s forwards; }
.l10 { animation: show 0s 14.5s forwards, typing 1s steps(40) 14.5s forwards; }

.l11 { animation: show 0s 15.5s forwards, typing 2s steps(45) 15.5s forwards; }
.l12 { animation: show 0s 17.5s forwards, typing 2.5s steps(55) 17.5s forwards; }

/* Show + typing */
@keyframes show {
    to { opacity: 1; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Cursor */
.cursor-line {
    margin-top: 10px;
    opacity: 0;
    animation: show 0s 20.5s forwards;
}

.cursor {
    animation: blink 1s steps(1) infinite;
    text-shadow: 0 0 6px #00ff9f;
}

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