* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

.ui-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.fps-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: #0f0;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 101;
}

.position {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    pointer-events: none;
    z-index: 101;
}

.controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: grid;
    grid-template-columns: repeat(3, 70px);
    gap: 10px;
    pointer-events: auto;
    z-index: 102;
}

.ctrl-btn {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 12px;
    color: white;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ctrl-btn:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.3);
}

.joystick {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 120px;
    height: 120px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(15px);
    border-radius: 60px;
    border: 2px solid rgba(255,255,255,0.3);
    pointer-events: auto;
    z-index: 102;
}

.joystick-base {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    top: 35px;
    left: 35px;
    transition: transform 0.05s linear;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .controls { grid-template-columns: repeat(3, 55px); gap: 8px; }
    .ctrl-btn { padding: 10px; font-size: 20px; }
    .joystick { width: 100px; height: 100px; bottom: 20px; left: 20px; }
    .joystick-base { width: 40px; height: 40px; top: 30px; left: 30px; }
}
