.maze-touch-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 5rem));
  justify-content: center;
  gap: .5rem;
  padding: .6rem;
  background: #10213b;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.maze-touch-controls button {
  min-height: 48px;
  border: 1px solid #82e7eb;
  border-radius: 10px;
  background: #bdf7f6;
  color: #10213b;
  display: grid;
  place-items: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
}

.maze-touch-controls button::before {
  content: "";
  width: .65rem;
  height: .65rem;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(var(--arrow-angle));
  pointer-events: none;
}

[data-maze-direction="ArrowLeft"] { --arrow-angle: -135deg; }
[data-maze-direction="ArrowRight"] { --arrow-angle: 45deg; }
[data-maze-direction="ArrowUp"] { --arrow-angle: -45deg; }
[data-maze-direction="ArrowDown"] { --arrow-angle: 135deg; }

.maze-touch-controls button.is-held {
  background: #ffc82f;
}

.maze-touch .scratch-rail button {
  min-height: 44px;
}

.maze-touch .scratch-rail {
  overflow-y: auto;
}
