body {
    background: black;
    background-size: cover;
    background-position: center;
    transition: background 0.5s ease-in-out;

    color: #00ff99;
    font-family: monospace, "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji";
    text-align: center;
    padding-top: 50px;
}

/* DARK OVERLAY */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

/* BUTTONS */
button {
    margin: 10px;
    padding: 15px 25px;
    border: 2px solid #00ff99;
    background: transparent;
    color: #00ff99;
    cursor: pointer;
    border-radius: 8px;
}

button:hover {
    background: #00ff99;
    color: black;
}

/* LOW HEALTH EFFECT */
.danger {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { background-color: black; }
    50% { background-color: darkred; }
    100% { background-color: black; }
}

/* GLITCH EFFECT */
.glitch {
    animation: glitch 0.2s infinite;
}

@keyframes glitch {
    0% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    100% { transform: translate(0, 0); }
}

/* FADE LAYER */
#fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: black;
    opacity: 0;
    pointer-events: none;

    transition: opacity 0.5s ease;
    z-index: 10;
}