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

#game-container {
    position: relative;
    box-shadow: 0 0 50px rgba(79, 70, 229, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

canvas {
    display: block;
    background: linear-gradient(to bottom, #1e1b4b, #312e81);
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #4f46e5;
}

#start-screen, #game-over-screen {
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    pointer-events: auto;
    border: 2px solid #4f46e5;
}

h1, h2 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 32px;
    letter-spacing: 2px;
}

p {
    color: #cbd5e1;
    margin-bottom: 30px;
}

button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    font-family: inherit;
    text-transform: uppercase;
}

button:hover {
    background: #4338ca;
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}