:root {
    --bg: #0a0a0a;
    --text: #33ff33;
    --dim: #1a5c1a;
    --glow: rgba(51, 255, 51, 0.6);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Courier New", monospace;
    overflow: hidden;
}

/* CRT EFFECT */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.2) 1px,
            transparent 1px,
            transparent 2px
    );
    pointer-events: none;
    z-index: 2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 60%, black 100%);
    pointer-events: none;
    z-index: 2;
}

.container {
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.terminal {
    max-width: 900px;
    margin: auto;
    border: 1px solid var(--dim);
    padding: 20px;
    box-shadow: 0 0 20px var(--glow);
}

.line {
    white-space: pre;
    margin: 4px 0;
}

.cursor {
    display: inline-block;
    width: 10px;
    background: var(--text);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

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

.header {
    margin-bottom: 20px;
    color: #66ff66;
    text-shadow: 0 0 8px var(--glow);
}

.menu {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.menu div {
    border: 1px solid var(--dim);
    padding: 10px;
    text-align: center;
    transition: 0.2s;
}

.menu div:hover {
    background: var(--dim);
    box-shadow: 0 0 10px var(--glow);
    transform: translateY(-2px);
}

.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #2ecc2e;
}

.glitch {
    animation: glitch 1.5s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 red, -2px 0 blue;
    }
    20% {
        text-shadow: -2px 0 red, 2px 0 blue;
    }
    40% {
        text-shadow: 2px 2px red, -2px -2px blue;
    }
    60% {
        text-shadow: -2px -2px red, 2px 2px blue;
    }
    80% {
        text-shadow: 2px -2px red, -2px 2px blue;
    }
    100% {
        text-shadow: 0 0 var(--glow);
    }
}
