* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0c0f;
    font-family: 'Courier New', monospace;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: #00ffc3;
}

.container {
    z-index: 10;
    text-align: center;
    padding: 2rem;
    border: 2px solid #00ffc3;
    box-shadow: 0 0 20px #00ffc3, inset 0 0 10px #00ffc3;
    background: rgba(0, 255, 195, 0.05);
    backdrop-filter: blur(2px);
    position: relative;
    animation: flicker 3s infinite;
}

.glitch {
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 
        0.05em 0 0 #ff00c1,
        -0.05em -0.025em 0 #00fff9,
        0.025em 0.05em 0 #ff00c1;
    animation: glitch 500ms infinite;
    margin-bottom: 0.5rem;
}

.glitch-box {
    position: relative;
}

.subtitle {
    font-size: 1.2rem;
    color: #ff00c1;
    text-shadow: 0 0 5px #ff00c1;
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.time-display {
    font-size: 4rem;
    font-weight: bold;
    color: #00fff9;
    text-shadow: 0 0 20px #00fff9, 0 0 40px #00fff9;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border: 1px solid #00ffc3;
    display: inline-block;
    letter-spacing: 10px;
}

.message {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 5px #00ffc3;
    margin-top: 2rem;
    animation: pulse 2s infinite;
}

.scanline {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffc3, transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    animation: scan 8s linear infinite;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 195, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 195, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 5;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #ff00c1, -0.05em -0.025em 0 #00fff9, 0.025em 0.05em 0 #ff00c1;
    }
    14% {
        text-shadow: 0.05em 0 0 #ff00c1, -0.05em -0.025em 0 #00fff9, 0.025em 0.05em 0 #ff00c1;
    }
    15% {
        text-shadow: -0.05em -0.025em 0 #ff00c1, 0.025em 0.025em 0 #00fff9, -0.05em -0.05em 0 #ff00c1;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #ff00c1, 0.025em 0.025em 0 #00fff9, -0.05em -0.05em 0 #ff00c1;
    }
    50% {
        text-shadow: 0.025em 0.05em 0 #ff00c1, 0.05em 0 0 #00fff9, 0 -0.05em 0 #ff00c1;
    }
    99% {
        text-shadow: 0.025em 0.05em 0 #ff00c1, 0.05em 0 0 #00fff9, 0 -0.05em 0 #ff00c1;
    }
    100% {
        text-shadow: 0.05em 0 0 #ff00c1, -0.05em -0.025em 0 #00fff9, 0.025em 0.05em 0 #ff00c1;
    }
}

@keyframes flicker {
    0% { opacity: 1; }
    2% { opacity: 0.8; }
    4% { opacity: 1; }
    19% { opacity: 1; }
    21% { opacity: 0.7; }
    23% { opacity: 1; }
    80% { opacity: 1; }
    83% { opacity: 0.9; }
    87% { opacity: 1; }
}

@keyframes pulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; text-shadow: 0 0 10px #00ffc3; }
    100% { opacity: 0.8; }
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

@media (max-width: 600px) {
    .glitch { font-size: 2rem; }
    .time-display { font-size: 2.5rem; letter-spacing: 5px; }
    .message { font-size: 1.2rem; }
}