:root {
    --bg: #202025;
    --panel: #2D2D48;
    --white: #E8EDF5;
    --line: #7D859E;
    --blue: #1696FF;
    --orange: #f07535;
    --gold: #e4b54e;
    --green: #0e959b;
}

#welcome-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(145deg, #0f3460, #1a1a2e);
    
    /* Важно: изначально скрываем, чтобы не было FOUC-эффекта (мелькания) */
    display: none; 
    
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: Consolas, Monaco, monospace;
    z-index: 99999;
    transition: opacity .8s ease, visibility .8s ease;
    opacity: 1;
    visibility: visible;
}
/* Класс для мгновенного скрытия без анимации */
#welcome-screen.hidden-instantly {
    display: none !important;
}

.loader { width: min(450px, 82vw); }
.window { background: var(--panel); border-radius: 14px; overflow: hidden; box-shadow: 0 0 150px rgb(93 166 255 / 35%); }
.titlebar { height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid #8d958f; background-image: linear-gradient(0deg, #a5a5a5, #ffffff); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f57; }
.yellow { background: #febc2e; }
.green { background: #28c840; }
.title { margin-left: 10px; color: #7f7f7f; font-size: 14px; letter-spacing: 1px; }
.hint { margin-top: 15px; font-size: 13px; color: #8D95AA; display: flex; justify-content: center; animation: blink-fast 0.5s steps(4) infinite; }
@keyframes blink-fast { 50% { opacity: 0 } }
.editor { min-height: 260px; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; background-image: linear-gradient(0deg, #cdcdcd, #e7e7e7); font-weight: 700; }
.line { display: flex; min-height: 34px; line-height: 34px; font-size: 24px; }
.ln { width: 60px; flex-shrink: 0; text-align: right; padding-right: 18px; color: var(--line); user-select: none; }
.code { flex: 1; white-space: pre; color: var(--green); }
.kw { color: var(--gold); }
.live, .love, .create { color: var(--orange); }
.cursor { display: inline-block; width: 10px; color: var(--white); animation: blink .8s infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

@media(max-width:768px){
    .line { font-size: 18px; min-height: 28px; line-height: 28px; }
    .ln { width: 44px; padding-right: 10px; }
    .editor { min-height: 220px; }
}
