* { touch-action: none; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: #e6f4ec;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
html { position: fixed; top: 0; left: 0; right: 0; bottom: 0; }
body {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
}
#stage {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  touch-action: none;
  cursor: default;
}
#stage.can { cursor: grab; }
#stage.grabbing { cursor: grabbing; }
#stage canvas {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

#ui { position: fixed; left: 0; top: 0; width: 0; height: 0; }
#ui button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
  touch-action: none;
  outline: none;
}
#ui button:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #5a8cff; }

#snd {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 2px 8px rgba(80, 60, 40, .12);
}
#snd svg { width: 28px; height: 28px; display: block; margin: 8px; }
#snd .spk { fill: #6b5a50; }
#snd .wave, #snd .off { fill: none; stroke: #6b5a50; stroke-width: 3; stroke-linecap: round; }
#snd .off { display: none; }
#snd.muted .wave { display: none; }
#snd.muted .off { display: inline; }

#coats {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .42);
  box-shadow: 0 3px 14px rgba(80, 60, 40, .12);
}
#coats button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  transition: transform .15s;
}
#coats button svg { width: 36px; height: 36px; display: block; margin: 4px; }
#coats button[aria-pressed="true"] {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 2px 8px rgba(80, 60, 40, .25);
  transform: scale(1.08);
}
#coats button:active { transform: scale(.92); }

.still #ui { display: none; }
