body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Courier New', monospace;
    color: white;
}

canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#titleCanvas {
    box-shadow: 0 0 30px rgba(100, 149, 237, 0.5);
}

#gameCanvas {
    display: none;
}

#gameUI {
    position: absolute;
    top: 10px;
    left: 10px;
    display: none;
    z-index: 100;
}

.stat {
    margin-bottom: 8px;
    background-color: rgba(0,0,0,0.7);
    padding: 5px;
    border: 2px solid #555;
}

#startButton {
    position: absolute;
    bottom: 40px;
    padding: 10px 20px;
    background-color: #222;
    color: #fff;
    border: 2px solid #888;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

#startButton:hover {
    background-color: #444;
    box-shadow: 0 0 10px rgba(100, 149, 237, 0.8);
}

#gameOver {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.8);
    border: 4px solid #777;
    padding: 20px;
    color: white;
    text-align: center;
    z-index: 1000;
}

button {
    margin-top: 20px;
    background-color: #222;
    color: white;
    border: 2px solid #777;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #444;
}