:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #0d0b14;
  touch-action: none; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
body { position: fixed; inset: 0; }
#c {
  position: absolute;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}
#touch { display: none; }
body.touch #touch { display: block; }
.pad { position: absolute; bottom: calc(14px + var(--sab)); display: flex; gap: 12px; }
.pad.left { left: calc(14px + var(--sal)); }
.pad.right { right: calc(14px + var(--sar)); }
.top { position: absolute; top: calc(8px + var(--sat)); right: calc(8px + var(--sar)); display: flex; gap: 8px; }
.btn {
  width: 72px; height: 72px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font: bold 28px monospace; color: #fff;
  background: rgba(255,255,255,.12);
  border: 4px solid rgba(255,255,255,.55);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.35);
}
.btn.on { background: rgba(255,255,255,.38); transform: translateY(2px); }
.btn.small { width: 44px; height: 44px; font-size: 20px; border-width: 3px; box-shadow: inset -3px -3px 0 rgba(0,0,0,.35); }
#swapBtn { color: #15131f; text-shadow: 1px 1px 0 rgba(255,255,255,.4); }
@media (orientation: landscape) {
  .top { flex-direction: column; }
  .pad .btn { width: 60px; height: 60px; font-size: 24px; }
}
