:root {
    --neon-green: #00ff00;
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --bg-color: #050510;
    --bg-grid: rgba(0, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Grid Effect */
body::before {
    content: "";
    position: fixed; /* Fixed so it doesn't move with scroll and covers everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    perspective: 1000px;
    transform-style: preserve-3d;
    box-shadow: inset 0 0 100px rgba(0, 255, 255, 0.1);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1.game-title {
    font-size: clamp(3rem, 10vw, 5rem);
    text-transform: uppercase;
    color: #fff;
    text-shadow:
        0 0 5px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 20px var(--neon-blue),
        0 0 40px var(--neon-blue);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--neon-pink);
    margin-bottom: 40px;
    text-shadow: 0 0 10px var(--neon-pink);
    font-weight: bold;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 50px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
    color: var(--neon-green);
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--neon-green);
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow:
        0 0 20px var(--neon-green),
        0 0 40px var(--neon-green);
    transform: scale(1.05);
}

/* Glitch effect on hover */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

footer {
    width: 100%;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    margin-top: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-blue);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Floating animation for decorative elements */
.floating-element {
    position: absolute;
    opacity: 0.3;
    pointer-events: none;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.cube1 {
    width: 60px;
    height: 60px;
    border: 2px solid var(--neon-pink);
    top: 20%;
    left: 10%;
    animation-duration: 12s;
}

.cube2 {
    width: 40px;
    height: 40px;
    border: 2px solid var(--neon-green);
    bottom: 30%;
    right: 15%;
    animation-duration: 15s;
    animation-delay: -5s;
}

/* Wiki Specific Global Tweaks */
.wiki-container .game-title {
    margin-top: 20px;
}