* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #111111;
    font-family: 'Oswald', sans-serif;
    overflow: hidden;
    position: relative;
}

/* Холст с шумом на заднем плане */
#canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15; /* Интенсивность шума */
    z-index: 1;
    pointer-events: none;
}

/* Виньетка (затемнение по краям) */
html::after {
    content: '';
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.95) 100%);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

/* Центрирование текста */
.center {
    height: auto;
    width: 90%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

h1, p {
    margin: 0;
    padding: 0;
    animation: funnytext 4s ease-in-out infinite;
}

h1 {
    font-size: clamp(8rem, 20vw, 16rem);
    color: rgba(255, 255, 255, 0.4);
    line-height: 1;
    filter: blur(3px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

p {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* Кнопка возврата на главную страницу */
.btn-home {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Эффект сканирующей полосы CRT-монитора */
body::after {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: -5px;
    height: 5px;
    animation: scanline 8s linear infinite;
    opacity: 0.4;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0));
    z-index: 4;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: -5px; }
    100% { top: 100%; }
}

@keyframes funnytext {
    0% {
        color: rgba(255, 255, 255, 0.3);
        filter: blur(3px);
    }
    30% {
        color: rgba(255, 255, 255, 0.6);
        filter: blur(1px);
    }
    65% {
        color: rgba(255, 255, 255, 0.2);
        filter: blur(5px);
    }
    100% {
        color: rgba(255, 255, 255, 0.3);
        filter: blur(3px);
    }
}