/* CryptoBound mobile controls. Visual-only override: hit boxes and input logic stay unchanged. */
#btnLeft,
#btnRight,
#btnUp,
#btnDown,
#btnShoot {
    background-image: url('/static/images/cryptobound_touch_controls_350x350.png?20261122-touch-v1') !important;
    background-repeat: no-repeat !important;
    opacity: .78 !important;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .72));
    transition: opacity 80ms ease, filter 80ms ease, transform 80ms ease;
    -webkit-tap-highlight-color: transparent;
}

#btnUp {
    background-position: -100px 0 !important;
}

#btnLeft {
    background-position: 0 -100px !important;
}

#btnShoot {
    background-position: -100px -100px !important;
}

#btnRight {
    background-position: -280px -100px !important;
}

#btnDown {
    background-position: -100px -280px !important;
}

#btnLeft:hover,
#btnRight:hover,
#btnUp:hover,
#btnDown:hover,
#btnShoot:hover {
    opacity: .9 !important;
    filter: brightness(1.08) drop-shadow(0 0 8px rgba(25, 235, 255, .72));
}

#btnLeft.active,
#btnRight.active,
#btnUp.active,
#btnDown.active,
#btnShoot:active {
    opacity: 1 !important;
    filter: brightness(1.2) saturate(1.16) drop-shadow(0 0 11px rgba(56, 245, 255, .95));
    transform: scale(.96);
}

#TouchShot {
    box-sizing: border-box !important;
    width: 80px !important;
    height: 80px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent url('/static/images/cryptobound_power_normal_80x80.png?20261122-touch-v1') center / 80px 80px no-repeat !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .65), 0 0 13px rgba(0, 225, 255, .42) !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: .9 !important;
    animation: none !important;
    -webkit-animation: none !important;
    filter: drop-shadow(0 0 5px rgba(20, 224, 255, .46));
    transition: filter 80ms ease, opacity 80ms ease, transform 80ms ease;
}

#TouchShot.active {
    background-image: url('/static/images/cryptobound_power_active_80x80.png?20261122-touch-v1') !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .7), 0 0 18px rgba(42, 240, 255, .85) !important;
    opacity: 1 !important;
    filter: brightness(1.12) saturate(1.12) drop-shadow(0 0 9px rgba(64, 240, 255, .9));
    transform: scale(.96);
}

#TouchBarMsg {
    box-sizing: border-box !important;
    width: 60px !important;
    height: 27px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent url('/static/images/cryptobound_drag_to_shoot_120x54.png?20261122-touch-v2') center / 60px 27px no-repeat !important;
    box-shadow: 0 0 0 0 #ff0;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0 !important;
    opacity: .94 !important;
    animation: blinking_glow_anim 1s ease-in infinite alternate !important;
    -webkit-animation: blinking_glow_anim 1s ease-in infinite alternate !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)) drop-shadow(0 0 4px rgba(35, 230, 255, .42));
    pointer-events: none;
}

@media (pointer: coarse) {
    #btnLeft,
    #btnRight,
    #btnUp,
    #btnDown,
    #btnShoot {
        opacity: .82 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #btnLeft,
    #btnRight,
    #btnUp,
    #btnDown,
    #btnShoot,
    #TouchShot,
    #TouchBarMsg {
        transition: none !important;
        animation: none !important;
        -webkit-animation: none !important;
    }
}
