:root {
    --bg-color: #050505;
    --neon-green: #00ff41;
    --neon-cyan: #00f3ff;
    --neon-red: #ff2a2a;
    --grid-color: rgba(0, 255, 65, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: #000;
    color: var(--neon-green);
    font-family: 'Share Tech Mono', monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 70vh;
    max-height: 800px;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
    overflow: hidden;
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    border-radius: 4px;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* CRT Effects */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

.vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
    z-index: 11;
}

/* UI Layers */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    pointer-events: auto;
    transition: opacity 0.3s;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.active {
    opacity: 1;
    pointer-events: auto;
}

/* Typography */
h1.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    letter-spacing: 10px;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    margin-bottom: 0.5rem;
}

.void {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 5px;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.btn {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    padding: 1rem 2rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 5px var(--neon-green);
}

.btn:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 20px var(--neon-green);
}

.controls-hint {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* HUD */
#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    text-shadow: 0 0 5px var(--neon-green);
}

.danger {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red);
}

/* ============================================
   Project Page Styling
   ============================================ */

.page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-nav {
    width: 100%;
    margin-bottom: 2rem;
}

.back-link {
    color: var(--neon-green);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    transform: translateX(-5px);
}

.project-info {
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    background: rgba(10, 10, 15, 0.8);
    padding: 2rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    width: 100%;
    max-width: 800px;
}

.project-info h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-green);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.project-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '►';
    color: var(--neon-cyan);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 0.2rem;
}

.feature-list strong {
    color: #fff;
    font-family: 'Share Tech Mono', sans-serif;
    font-weight: 700;
}

@media (max-width: 850px) {
    .page-wrapper {
        padding: 1rem;
    }

    .project-info {
        padding: 1.5rem;
    }
}