* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    overflow: hidden;
    background-color: #000;
    touch-action: none;
}

canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    touch-action: none;
}

.analog-stick {
    position: fixed;
    bottom: 30px;
    left: 80px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    touch-action: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.analog-knob {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 20px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.score {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 24px;
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 36px;
    text-align: center;
    display: none;
}

.mute-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.mute-btn:hover { opacity: 1; }

.mute-btn svg {
    width: 100%;
    height: 100%;
}

.restart-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}
