* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%; overflow: hidden;
  background: #070b18; color: #cfe3e0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
body { touch-action: none; user-select: none; -webkit-user-select: none; }
#scene {
  display: block; image-rendering: pixelated; image-rendering: crisp-edges;
  width: 100vw; height: 100vh; touch-action: none;
}
#sound {
  position: fixed; left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; min-width: 48px; padding: 0 16px 0 13px;
  border-radius: 999px; border: 1px solid rgba(168, 208, 196, 0.28);
  background: rgba(10, 20, 30, 0.62);
  color: #a9c9c2; font-size: 13px; letter-spacing: .04em;
  backdrop-filter: blur(6px); cursor: pointer; z-index: 5;
  transition: background .3s, color .3s, border-color .3s;
}
#sound:hover { background: rgba(16, 32, 44, 0.75); }
#sound:focus-visible { outline: 2px solid #8fd3bf; outline-offset: 3px; }
#sound.on { color: #ffe2a8; border-color: rgba(255, 210, 140, 0.45); background: rgba(28, 24, 18, 0.65); }
#sound .wave { opacity: 0; transition: opacity .3s; }
#sound.on .wave { opacity: 1; }
#sound svg { flex: 0 0 auto; }
