* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, #120018, #050007 70%);
    color: #ccc;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container, .menu {
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.title {
    font-size: 3rem;
    letter-spacing: 6px;
    color: #d0b3ff;
    text-shadow: 0 0 10px #6a00ff;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 25px;
}

.start-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #5a2b8c;
    color: #caa6ff;
    text-decoration: none;
    letter-spacing: 3px;
    transition: 0.2s;
}

.puzzle-image {
    width: 500px;
    max-width: 100%;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 10px #3a0066);
}

.puzzle-text {
    font-size: 1rem;
    letter-spacing: 1px;
    color: #aaa;
}

/* i was supposed to make snow but i guess we ended up with like this cool crt background */
body::before {
    content: "";
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 200vh;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 5px 5px;
    opacity: 0.15;
    animation: snow 12s linear infinite;
    pointer-events: none;
}

@keyframes snow {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(20vh);
    }
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
}

/* red shift */
.glitch::before {
    color: #ff3bff;
    z-index: -1;
    animation: glitch1 2s infinite linear alternate-reverse;
}

/* blue shift */
.glitch::after {
    color: #3bffff;
    z-index: -2;
    animation: glitch2 2s infinite linear alternate-reverse;
}

/* main flicker */
.glitch {
    animation: flicker 3s infinite;
}

@keyframes glitch1 {
    0% {
        transform: translate(0);
        clip-path: inset(0 0 90% 0);
    }
    20% {
        transform: translate(-2px, 2px);
        clip-path: inset(10% 0 60% 0);
    }
    40% {
        transform: translate(-1px, -1px);
        clip-path: inset(40% 0 40% 0);
    }
    60% {
        transform: translate(2px, 1px);
        clip-path: inset(70% 0 10% 0);
    }
    100% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes glitch2 {
    0% {
        transform: translate(0);
        clip-path: inset(80% 0 0 0);
    }
    25% {
        transform: translate(2px, -2px);
        clip-path: inset(20% 0 50% 0);
    }
    50% {
        transform: translate(-2px, 1px);
        clip-path: inset(50% 0 20% 0);
    }
    75% {
        transform: translate(1px, 2px);
        clip-path: inset(10% 0 70% 0);
    }
    100% {
        transform: translate(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.6; }
    97% { opacity: 1; }
}