@font-face {
  font-family: 'NunitoBlack';
  src: url('assets_park/fonts/ThrillPark.woff') format('woff');
  font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  height: 100dvh;
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #1b2a3a;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#gl {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}
#game {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw; height: 100vh;
  z-index: 1;
  background: transparent;
  cursor: crosshair;
}
#br-mobile { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#br-mobile[hidden] { display: none; }
#br-gate {
  position: fixed; inset: 0; z-index: 99990; display: flex;
  background: rgba(12, 28, 44, 0.96); color: #fff;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer;
}
#br-gate[hidden] { display: none; }
#br-gate .title { font: 900 28px NunitoBlack, sans-serif; }
#br-gate .sub { font: 700 15px NunitoBlack, sans-serif; opacity: .8; margin-top: 10px; }
#br-melee, #br-power, #br-map {
  pointer-events: auto; border: 0; color: #fff; cursor: pointer;
  font: 900 13px NunitoBlack, sans-serif;
  border-radius: 999px; box-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.stick {
  position: absolute; width: 118px; height: 118px; pointer-events: auto; touch-action: none;
}
#br-move { left: calc(16px + env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); }
#br-aim { right: calc(16px + env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); }
.stick .base { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; pointer-events: none; }
.stick .knob {
  position: absolute; left: 33px; top: 33px; width: 52px; height: 52px;
  pointer-events: none; transition: transform 60ms linear;
}
.stick.held .knob { transition: none; }
#br-actions {
  position: absolute; right: calc(22px + env(safe-area-inset-right));
  bottom: calc(146px + env(safe-area-inset-bottom));
  display: flex; flex-direction: row; gap: 8px;
}
#br-melee, #br-power, #br-map {
  width: 64px; height: 64px; border-radius: 18px; background: rgba(16, 40, 64, .78);
}
#br-melee.on { background: #e6a317; color: #3a2500; }
#br-power.ready { background: #7a3ec8; }
#br-power:disabled { opacity: .4; }
#br-sticks[hidden] { display: none; }
#br-mobile.ghost #br-sticks .stick { opacity: 0; cursor: crosshair; }
#br-mobile.ghost #br-actions { display: none; }
body.br-mobile #br-bug { left: auto; right: 8px; bottom: auto; top: calc(8px + env(safe-area-inset-top)); }
