:root {
    --neon-green: #39ff14;
    --neon-blue: #00f3ff;
    --dark-bg: #050505;
    --panel-bg: rgba(20, 20, 20, 0.8);
    --border-color: #333;
    --font-main: 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--neon-green);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
    padding: 20px;
}

/* CRT Overlay Effects */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none; z-index: 100;
}

.scanline {
    width: 100%; height: 100px; z-index: 101;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(57, 255, 20, 0.1) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1; position: fixed; bottom: 100%;
    pointer-events: none; animation: scanline 10s linear infinite;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

.glitch {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: bold;
    text-shadow: 2px 2px var(--neon-blue);
    position: relative;
    letter-spacing: 5px;
}

.container {
    max-width: 1000px; margin: 0 auto; position: relative; z-index: 10;
}

.hud-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid var(--neon-green);
    padding-bottom: 20px; margin-bottom: 40px;
    flex-wrap: wrap; gap: 20px;
}

.hud-nav button {
    background: transparent; border: 1px solid var(--neon-green);
    color: var(--neon-green); padding: 10px 15px; margin-left: 5px;
    cursor: pointer; font-family: var(--font-main);
    transition: all 0.3s; text-transform: uppercase;
}

.hud-nav button:hover {
    background: var(--neon-green); color: var(--dark-bg);
    box-shadow: 0 0 15px var(--neon-green);
}

/* Grid Layouts */
.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; margin-bottom: 40px;
}

.terminal-window {
    background: var(--dark-bg); border: 2px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); margin-bottom: 40px;
}

.window-header {
    background: var(--neon-green); color: var(--dark-bg);
    padding: 5px 10px; display: flex; align-items: center; gap: 10px;
}

.window-content { padding: 20px; }

/* Aircraft Grid */
.aircraft-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.aircraft-card {
    border: 1px solid #333;
    padding: 10px;
    background: rgba(0, 255, 0, 0.05);
    transition: all 0.2s;
}

.aircraft-card:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 0, 0.1);
}

.aircraft-card h4 {
    color: var(--neon-blue);
    margin-bottom: 5px;
}

.aircraft-card .specs {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Leaderboard */
.leaderboard-section { border-color: var(--neon-blue); }
.leaderboard-section .window-header { background: var(--neon-blue); }

.high-scores-layout {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px;
}

.ace-list {
    list-style: none; flex: 1; min-width: 250px;
}

.ace-list li {
    padding: 10px; border-bottom: 1px dashed var(--neon-blue);
    display: flex; justify-content: space-between;
    font-size: 1.2rem;
}

.ace-list li:first-child {
    color: #fff; text-shadow: 0 0 10px var(--neon-blue);
    border-color: var(--neon-blue);
}

/* System Stats / Progress */
progress {
    width: 100%; height: 20px; margin-bottom: 15px;
    appearance: none;
}
progress::-webkit-progress-bar { background: #111; border: 1px solid #333; }
progress::-webkit-progress-value { background: var(--neon-green); }

/* Game */
.canvas-wrapper {
    position: relative; background: #000; overflow: hidden;
}

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

.game-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); text-align: center;
    background: rgba(0,0,0,0.85); padding: 30px;
    border: 2px solid var(--neon-green); z-index: 50;
}

.hud-stats {
    position: absolute; top: 10px; left: 10px;
    display: flex; gap: 20px; font-weight: bold;
}

footer {
    text-align: center; margin-top: 50px; opacity: 0.6;
    padding-top: 20px; border-top: 1px solid #333;
}

@keyframes blink { 50% { opacity: 0; } }
.status-badge { animation: blink 2s infinite; }