body { margin: 0; overflow: hidden; touch-action: none; /* Prevent pull-to-refresh on mobile */ }
#loading-bar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    background-color: #333;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    z-index: 100;
}
#loading-bar {
    height: 100%;
    width: 0%;
    background-color: #4CAF50;
    border-radius: 5px;
    transition: width 0.1s;
}
#joystick-zone {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 120px;
    height: 120px;
    z-index: 50;
}
/* Instructions overlay */
#instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    pointer-events: none; /* Let clicks pass through after fading */
    transition: opacity 0.5s;
    z-index: 90;
}
#debug-log {
    position: absolute; 
    top: 10px; 
    left: 10px; 
    color: red; 
    background: rgba(0,0,0,0.7); 
    padding: 5px; 
    font-family: monospace; 
    z-index: 200; 
    pointer-events: none; 
    max-width: 300px; 
    word-wrap: break-word;
}
#interactBtn {
    display: none; 
    position: absolute; 
    bottom: 150px; 
    left: 50%; 
    transform: translateX(-50%); 
    background-color: #fbbf24; 
    color: #000; 
    font-weight: bold; 
    padding: 12px 24px; 
    border-radius: 8px; 
    border: 2px solid #d97706; 
    z-index: 150; 
    cursor: pointer; 
    font-size: 18px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}