html, body {
    margin: 0;
    height: 100%;
    background: #000;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

#game-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#touch {
    display: none;
    position: fixed;
    inset: auto 0 0 0;
    height: 42vh;
    pointer-events: none;
    font-family: "Tiny5", monospace;
}

body.touch #touch { display: block; }

#touch button {
    pointer-events: auto;
    position: absolute;
    border: 2px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .8);
    font: inherit;
    font-size: 16px;
    touch-action: none;
}

#touch button.on { background: rgba(255, 200, 60, .45); }

#dpad { position: absolute; left: 14px; bottom: 18px; width: 150px; height: 150px; }
#dpad .d { width: 50px; height: 50px; border-radius: 8px; }
#dpad .up { left: 50px; top: 0; }
#dpad .down { left: 50px; bottom: 0; }
#dpad .left { left: 0; top: 50px; }
#dpad .right { right: 0; top: 50px; }

#btns { position: absolute; right: 14px; bottom: 18px; width: 190px; height: 150px; }
#btns .b { width: 58px; height: 58px; border-radius: 50%; }
#btns [data-k="punch"] { left: 0; bottom: 30px; }
#btns [data-k="kick"] { left: 66px; bottom: 60px; }
#btns [data-k="jump"] { left: 132px; bottom: 90px; }
#btns .start { width: 90px; height: 30px; border-radius: 15px; left: 0; bottom: 110px; font-size: 9px; }
