@font-face { font-family: 'Bangers'; src: url('assets/fonts/Bangers-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Anton'; src: url('assets/fonts/Anton-Regular.ttf') format('truetype'); font-display: swap; }

html, body {
  margin: 0; height: 100%; background: #000; overflow: hidden;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
#wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
canvas {
  display: block; background: #05060c;
  width: min(100vw, calc(100vh * 16 / 9)); height: min(100vh, calc(100vw * 9 / 16));
  width: min(100vw, calc(100dvh * 16 / 9)); height: min(100dvh, calc(100vw * 9 / 16));
  image-rendering: auto;
}

#touch[hidden] { display: none; }
#touch { position: fixed; inset: 0; pointer-events: none; font-family: 'Bangers', Impact, sans-serif; }
#stick {
  position: absolute; left: max(20px, env(safe-area-inset-left)); bottom: 24px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25);
  pointer-events: auto; touch-action: none;
}
#knob {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(255,255,255,.35);
}
#buttons {
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: 20px; width: 210px; height: 190px;
  pointer-events: none;
}
#buttons button, #tpause {
  position: absolute; pointer-events: auto; touch-action: none; border-radius: 50%;
  width: 78px; height: 78px; border: 2px solid rgba(255,255,255,.4); color: #fff; font: 17px 'Bangers', Impact, sans-serif;
  letter-spacing: .5px; background: rgba(0,0,0,.35);
}
#buttons button.on, #tpause.on { background: rgba(255,210,63,.55); }
#buttons [data-k="punch"] { right: 0; bottom: 0; background: rgba(200,18,31,.45); }
#buttons [data-k="kick"] { right: 94px; bottom: 6px; background: rgba(40,110,220,.45); }
#buttons [data-k="jump"] { right: 10px; bottom: 96px; background: rgba(40,160,80,.45); }
#buttons [data-k="special"] { right: 104px; bottom: 100px; background: rgba(170,60,220,.45); }
#tpause { left: 50%; top: 10px; width: 50px; height: 50px; margin-left: -25px; font-size: 16px; }
