body { 
    margin: 0; 
    overflow: hidden; 
    touch-action: none;
    font-family: Arial, sans-serif;
    background: #1a1a2e;
}

#debug {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 100;
    pointer-events: none;
}

#wasd {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 150px;
    height: 120px;
    z-index: 100;
}

.wasd-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    user-select: none;
    cursor: pointer;
    transition: all 0.1s;
}

#btn-w {
    top: 0;
    left: 55px;
}

#btn-a {
    top: 50px;
    left: 0;
}

#btn-s {
    top: 50px;
    left: 55px;
}

#btn-d {
    top: 50px;
    left: 110px;
}

.active {
    background: rgba(0,100,255,0.7);
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(0,100,255,0.8);
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

#instructions {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100;
    max-width: 200px;
}

