@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --phosphor-primary: #33ff00;
    --phosphor-secondary: #22aa00;
    --bg-color: #051005;
    --scanline-color: rgba(0, 0, 0, 0.5);
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: var(--phosphor-primary);
    font-family: 'Press Start 2P', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.crt-container {
    position: relative;
    width: 840px;
    height: 640px;
    background-color: var(--bg-color);
    border: 2px solid #333;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(51, 255, 0, 0.2);
    overflow: hidden;
}

.scanlines {
    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%,
            var(--scanline-color) 50%,
            var(--scanline-color));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    opacity: 0.6;
}

.crt-container::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 2;
    pointer-events: none;
}

.screen-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
    text-shadow: 0 0 5px var(--phosphor-primary);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

h1 {
    font-size: 24px;
    margin: 0;
}

#score-board {
    font-size: 20px;
}

canvas {
    border: 2px solid var(--phosphor-secondary);
    background-color: rgba(0, 20, 0, 0.8);
    box-shadow: 0 0 10px var(--phosphor-secondary);
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border: 2px solid var(--phosphor-primary);
    text-align: center;
}

.hidden {
    display: none;
}