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

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

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    padding-top: 100px;
}

#gameCanvas {
    display: block;
    background: #000;
    border: 2px solid #fff;
}

#ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#score, #lives {
    position: absolute;
    top: 10px;
    color: #fff;
    font-size: 18px;
    letter-spacing: 2px;
}

#score {
    left: 20px;
}

#lives {
    right: 20px;
}

#start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

#start-screen h1 {
    font-size: 48px;
    letter-spacing: 8px;
    margin-bottom: 30px;
}

#start-screen p {
    font-size: 18px;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

.controls {
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.7;
}

.controls p {
    margin: 8px 0;
    animation: none;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}

#game-over h1 {
    font-size: 42px;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

#game-over p {
    font-size: 20px;
    margin-bottom: 30px;
}

#restart-btn {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 30px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s;
}

#restart-btn:hover {
    background: #fff;
    color: #000;
}

.hidden {
    display: none;
}