body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #000000, #1a0000);
    font-family: 'Courier New', monospace;
    color: #ff6b00;
    overflow: hidden;
}

#gameContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

#gameHeader {
    display: flex;
    justify-content: space-between;
    width: 800px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #ff6b00;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

#gameHeader h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 0 0 10px #ff6b00, 0 0 20px #ff6b00;
    animation: glow 2s infinite alternate;
}

#score, #lives {
    font-size: 1.5em;
    font-weight: bold;
}

#gameArea {
    position: relative;
}

#gameCanvas {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23000"/><path d="M0 50 Q 50 30, 100 50 T 200 50" stroke="%23333" stroke-width="1" fill="none"/></svg>');
    border: 5px solid #ff6b00;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.7);
}

#instructions {
    margin-top: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ff6b00;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border: 5px solid #ff6b00;
    border-radius: 15px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.8);
}

#gameOver h2 {
    margin: 0 0 15px;
    color: #ff6b00;
    font-size: 2.5em;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.8);
}

#gameOver p {
    font-size: 1.5em;
    margin: 10px 0;
}

#restartButton {
    background: #ff6b00;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s;
}

#restartButton:hover {
    background: #ffaa00;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.8);
}

.hidden {
    display: none;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #ff6b00, 0 0 20px #ff6b00;
    }
    to {
        text-shadow: 0 0 20px #ff6b00, 0 0 30px #ff6b00, 0 0 40px #ff6b00;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.halloween-element {
    animation: float 3s ease-in-out infinite;
}