@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0f042b;
  color: #fff;
  font-family: "Archivo", system-ui, sans-serif;
  overscroll-behavior: none;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  touch-action: none;
}

.pads {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.pads[hidden] {
  display: none;
}

.pad-group {
  display: flex;
  gap: 10px;
}

.pads button {
  pointer-events: auto;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(22, 5, 84, 0.7);
  color: #fff;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pads button b {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-size: 24px;
  line-height: 1;
}

.pads button span {
  font-size: 12px;
  opacity: 0.8;
}

.pads button.is-down {
  background: #ff1a97;
  border-color: #ff1a97;
}
