*, *::before, *::after { box-sizing: border-box; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden;
  position: fixed; inset: 0; overscroll-behavior: none;
  background: #f6e9d6;
  -webkit-text-size-adjust: 100%;
}
#stage { position: fixed; inset: 0; overflow: hidden; }
#stage canvas { position: absolute; left: 0; top: 0; display: block; }
#ui { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); right: calc(env(safe-area-inset-right, 0px) + 10px); display: flex; gap: 8px; z-index: 2; }
#ui button {
  width: 44px; height: 44px; padding: 6px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.62); box-shadow: 0 1px 4px rgba(120, 80, 40, 0.18);
  cursor: pointer; outline: none;
}
#ui button:active { transform: scale(0.92); }
#ui button:focus-visible { box-shadow: 0 0 0 3px rgba(240, 160, 90, 0.7); }
#ui svg { width: 100%; height: 100%; display: block; fill: none; stroke: #8a5a3a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
#ui .spk, #ui .tip { fill: #8a5a3a; stroke: none; }
#ui .x { display: none; }
#snd.off .wave { display: none; }
#snd.off .x { display: inline; }
