body {
    background: rgb(15, 1, 26);
    margin: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    touch-action: none;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#canvasWrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#game {
    display: block;
}

#controlsCanvas {
    display: none;
    margin-top: 10px;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

#overlay h1 {
    font-family: monospace;
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 8px;
}

#overlay button {
    font-family: monospace;
    font-size: 1.2rem;
    padding: 12px 40px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 4px;
}

#overlay button:hover {
    background: rgba(255,255,255,0.1);
}

#highscores {
    margin-top: 20px;
    color: white;
    font-family: monospace;
    text-align: center;
}

#highscores h2 {
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

#highscores ol {
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (pointer: coarse) {
    #game {
        max-width: 100vw;
        max-height: 60vh;
    }
}

@media (pointer: fine) {
    #controlsCanvas {
        display: none !important;
    }
}

#debug {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    color: white;
    font: 16px monospace;
    background: rgba(0,0,0,0.8);
    padding: 5px;
}