body {
    margin: 0;
    overflow: hidden;
    background: #000;
}

canvas {
    display: block;
}

/* Touch controls for mobile */
#touchControls {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: grid;
    grid-template-areas: 
        ". up ."
        "left . right"
        ". down .";
    grid-template-columns: 60px 60px 60px;
    grid-template-rows: 60px 60px 60px;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
    width: 180px;
    height: 180px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #levelControls {
        bottom: 200px !important;
        left: 20px !important;
    }
}

.touch-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.2s, transform 0.1s;
}

.touch-btn:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.touch-up { grid-area: up; }
.touch-down { grid-area: down; }
.touch-left { grid-area: left; }
.touch-right { grid-area: right; }
