@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    background: #000;
    font-family: 'Press Start 2P', monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    position: relative;
    border: 4px solid #333;
    background: #111;
}

#gameCanvas {
    display: block;
    background: #000;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,255,0,0.02) 100%),
        linear-gradient(90deg, transparent 50%, rgba(0,255,0,0.03) 50%);
    background-size: 100% 100%, 4px 4px;
    pointer-events: none;
    z-index: 1000;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0,255,0,0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 50%,
        rgba(0,0,0,0.1) 50%
    );
    background-size: 2px 100%;
}