:root {
    --cyan: #00FFFF;
    --magenta: #FF00FF;
    --acid-green: #00FF00;
    --yellow: #FFFF00;
    --white: #FFFFFF;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050510;
    font-family: 'Inter', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}


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

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through unless on a button */
}

#debug-info {
    display: none !important;
}

#instructions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--cyan);
    font-size: 14px;
    text-align: right;
    text-shadow: 2px 2px 0px #000;
    line-height: 1.5;
}

#mobile-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mobile-btn {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid var(--cyan);
    color: var(--cyan);
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.mobile-btn:active {
    background: rgba(0, 255, 255, 0.5);
}

#joystick-zone {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 0, 255, 0.2);
    border: 2px solid var(--magenta);
    border-radius: 50%;
    pointer-events: auto;
    touch-action: none;
}

#joystick-knob {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--magenta);
    border-radius: 50%;
    pointer-events: none;
}

#mode-toggles {
    position: absolute;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.mode-btn {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid var(--acid-green);
    color: var(--acid-green);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.mode-btn.active {
    background: rgba(0, 255, 0, 0.6);
    color: #000;
}
