.mobile-controls-container {
    position: absolute;
    bottom: 2vh;
    left: 2vw;
    display: flex;
    gap: 1vw;
    z-index: 99999;
    pointer-events: none;
}

.weapon-controls-container {
    position: absolute;
    bottom: 2vh;
    right: 2vw;
    display: flex;
    gap: 1vw;
    z-index: 99999;
    pointer-events: none;
}

.controls-visible { display: flex !important; }
.controls-hidden { display: none !important; }

.jump-button-container,
.weapon-button-container,
.move-button-container {
    pointer-events: auto;
}

.jump-btn,
.move-btn,
.weapon-btn,
.audio-toggle-btn,
.system-btn {
    width: 3.2em;
    height: 3.2em;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.1s ease;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    outline: none;
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    animation: title-grow-fade 1.2s cubic-bezier(.7,-0.2,.3,1.2) 0.1s forwards;
}

.system-controls-container {
    position: absolute;
    top: 2vh;
    right: 2vw;
    display: flex;
    gap: 1vw;
    z-index: 99999;
}

.audio-toggle-btn,
.system-btn {
    right: 2vw;
    bottom: 2vh;
}

.position-absolute {
    position: absolute;
}

body.mobile-portrait .mobile-controls-container,
body.mobile-portrait .weapon-controls-container {
    bottom: 1vh !important;
    gap: 0.3em;
}

body.mobile-portrait .jump-btn,
body.mobile-portrait .move-btn,
body.mobile-portrait .weapon-btn,
.audio-toggle-btn
.system-btn {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
}

body.mobile-portrait .jump-btn svg,
body.mobile-portrait .move-btn svg,
body.mobile-portrait .weapon-btn svg,
.audio-toggle-btn svg
.system-btn svg {
    stroke: rgba(240, 179, 83, 1);
}

body.mobile-portrait .jump-btn:active,
body.mobile-portrait .jump-btn.jumping,
body.mobile-portrait .jump-btn.pressed,
body.mobile-portrait .move-btn:active,
body.mobile-portrait .move-btn.moving,
body.mobile-portrait .move-btn.pressed,
body.mobile-portrait .weapon-btn:active,
body.mobile-portrait .weapon-btn.using,
body.mobile-portrait .weapon-btn.pressed,
.audio-toggle-btn:active,
.audio-toggle-btn.pressed,
.system-btn:active,
.system-btn.pressed {
    background: rgba(0, 0, 0, 0.3);
    scale: 0.95;
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
                inset 0 0 25px rgba(0, 0, 0, 0.3);
}

body.mobile-portrait .jump-btn:active svg,
body.mobile-portrait .jump-btn.jumping svg,
body.mobile-portrait .jump-btn.pressed svg,
body.mobile-portrait .move-btn:active svg,
body.mobile-portrait .move-btn.moving svg,
body.mobile-portrait .move-btn.pressed svg,
body.mobile-portrait .weapon-btn:active svg,
body.mobile-portrait .weapon-btn.using svg,
body.mobile-portrait .weapon-btn.pressed svg,
.audio-toggle-btn:active svg,
.audio-toggle-btn.pressed svg
.system-btn:active svg,
.system-btn.pressed svg {
    scale: 0.8;
}

body.mobile-landscape .jump-btn,
body.mobile-landscape .move-btn,
body.mobile-landscape .weapon-btn,
.audio-toggle-btn,
.system-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(47, 104, 116, 0.4);
}

body.mobile-landscape .jump-btn svg,
body.mobile-landscape .move-btn svg,
body.mobile-landscape .weapon-btn svg,
.audio-toggle-btn svg,
.system-btn svg {
    stroke: rgba(255, 255, 255, 0.8);
}

body.mobile-landscape .jump-btn:active,
body.mobile-landscape .jump-btn.jumping,
body.mobile-landscape .jump-btn.pressed,
body.mobile-landscape .move-btn:active,
body.mobile-landscape .move-btn.moving,
body.mobile-landscape .move-btn.pressed,
body.mobile-landscape .weapon-btn:active,
body.mobile-landscape .weapon-btn.using,
body.mobile-landscape .weapon-btn.pressed,
.audio-toggle-btn:active,
.audio-toggle-btn.pressed,
.system-btn:active,
.system-btn.pressed {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3),
                inset 0 0 20px rgba(0, 0, 0, 0.3);
                scale: 0.95;
}

body.mobile-landscape .jump-btn:active svg,
body.mobile-landscape .jump-btn.jumping svg,
body.mobile-landscape .jump-btn.pressed svg,
body.mobile-landscape .move-btn:active svg,
body.mobile-landscape .move-btn.moving svg,
body.mobile-landscape .move-btn.pressed svg,
body-mobile-portrait .weapon-btn:active svg,
body-mobile-portrait .weapon-btn.using svg,
body.mobile-landscape .weapon-btn.pressed svg,
.audio-toggle-btn:active svg,
.audio-toggle-btn.pressed svg,
.system-btn:active svg,
.system-btn.pressed svg {
    scale: 0.8;
}

body.mobile-landscape .mobile-controls-container {
    bottom: 2vh !important;
    left: 2vw !important;
    transform: none;
    justify-content: flex-start;
    gap: 1vw;
}

body.mobile-landscape .weapon-controls-container {
    bottom: 2vh !important;
    right: 2vw !important;
    left: auto !important;
    transform: none;
    margin-left: 0 !important;
    justify-content: flex-end;
    gap: 1vw;
}

.weapon-btn.superlaser-ready {
    opacity: 1 !important;
    position: relative;
}

body.mobile-landscape .weapon-btn.superlaser-ready {
    background: rgba(252, 245, 191, 0.3);
    border-color: rgba(240, 179, 83, 0.8);
    box-shadow: 0 4px 12px rgba(240, 179, 83, 0.6),
                0 0 12px rgba(240, 179, 83, 0.4),
                inset 0 0 20px rgba(240, 179, 83, 0.1);
    animation: superlaserGlowLandscape 1.5s ease-in-out infinite alternate;

}

body.mobile-portrait .weapon-btn.superlaser-ready {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(240, 179, 83, 0.1),
                inset 0 0 20px rgba(255, 255, 255, 1);
    animation: superlaserGlowPortrait 1.5s ease-in-out infinite alternate;
}

.weapon-btn.superlaser-ready::before {
    content: '2x';
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(240, 179, 83, 0.9);
    color: #000;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: doubleTapPulse 1.5s ease-in-out infinite;
}

.weapon-btn.superlaser-ready svg {
    stroke: rgba(240, 179, 83, 0.9);
    filter: drop-shadow(0 0 4px rgba(240, 179, 83, 0.6));
}

.weapon-btn.superlaser-ready:active,
.weapon-btn.superlaser-ready.pressed {
    border-color: rgba(240, 179, 83, 1);
    box-shadow: 0 2px 8px rgba(240, 179, 83, 0.8),
                inset 0 0 20px rgba(240, 179, 83, 0.2);
}

.weapon-btn.superlaser-ready:active svg,
.weapon-btn.superlaser-ready.pressed svg {
    stroke: rgba(240, 179, 83, 1);
    filter: drop-shadow(0 0 6px rgba(240, 179, 83, 0.8));
}

@keyframes superlaserGlowLandscape {
    0% { box-shadow: 0 0 4px 0px #f9e79f; }
    100% { box-shadow: 0 0 12px 0px #f7ca18; }
}

@keyframes superlaserGlowPortrait {
    0% { box-shadow: 0 0 0 0 rgba(75, 160, 209, 1); }
    100% { box-shadow: 0 0 8px 0px rgba(75, 160, 209, 1); }
}

@keyframes doubleTapPulse {
    0%, 100% {
        background-shadow: 0 0 12px 0px rgba(0, 0, 0, 0.9);
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}