.chase-controls {
  --controls-edge: clamp(12px, 3.5vw, 32px);
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.chase-controls__bar {
  position: absolute;
  inset-inline: max(var(--controls-edge), env(safe-area-inset-left, 0px))
    max(var(--controls-edge), env(safe-area-inset-right, 0px));
  bottom: calc(var(--controls-edge) + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(10px, 4vw, 24px);
}

.chase-controls__feet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  flex: 0 1 248px;
  min-width: 0;
}

.chase-controls__button {
  box-sizing: border-box;
  appearance: none;
  min-width: 0;
  min-height: 60px;
  margin: 0;
  padding: 12px clamp(8px, 3vw, 22px);
  border: 1px solid #89948d;
  border-bottom: 3px solid #121c1e;
  border-radius: 4px;
  background: linear-gradient(180deg, #34454c, #222e32);
  box-shadow: inset 0 1px #ffffff1f, 0 3px 10px #0008;
  color: #f2eee2;
  font: 650 clamp(14px, 2vw, 16px) / 1.15 system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.chase-controls__button[data-action="turn"] {
  flex: 0 0 clamp(68px, 21vw, 110px);
}

.chase-controls__button[data-action="restart"] {
  border-top: 3px solid #b17959;
  min-width: 128px;
}

.chase-controls [hidden] {
  display: none;
}

@media (hover: hover) {
  .chase-controls__button:hover {
    background: #40545b;
  }
}

.chase-controls__button:focus-visible {
  outline: 2px solid #b5decc;
  outline-offset: 3px;
}

.chase-controls__button:active {
  color: #142224;
  background: #b5decc;
  box-shadow: inset 0 2px 4px #0005;
}

.chase-controls__feet .chase-controls__button {
  padding-inline: 7px;
  white-space: nowrap;
}
