:root { --bg: #0d0c1d; }
* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; background: var(--bg);
  overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
}
#wrap { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
canvas { display: block; image-rendering: auto; border-radius: 6px; box-shadow: 0 0 60px rgba(255, 79, 139, 0.12); }

#touch { position: fixed; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 16px; pointer-events: none; }
#touch[hidden] { display: none; }
#touch .pad-left, #touch .pad-right { display: flex; gap: 14px; align-items: flex-end; pointer-events: auto; }
#touch button {
  width: 76px; height: 76px; border-radius: 50%; border: 2px solid rgba(232, 230, 240, 0.35);
  background: rgba(232, 230, 240, 0.08); color: #e8e6f0; font-size: 28px; touch-action: none;
}
#touch button.small { width: 52px; height: 52px; font-size: 18px; font-weight: bold; }
#touch button.on { background: rgba(255, 79, 139, 0.35); }
