/* The footer under the race, without touch controls: the map, the driving mode and the
   way back to the circuits. With touch controls on a phone it leaves (racer.css): the
   pause panel offers the same actions. */
footer {
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  min-height: 84px;
  padding: 6px max(0px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom))
    max(0px, env(safe-area-inset-left));
  font-size: var(--fs-13);
  color: var(--text-2);
}
footer #map {
  display: block;
  position: static;
  width: 114px;
  height: 75px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  pointer-events: none;
}
footer > p {
  margin: 0;
  min-width: 0;
  line-height: 1.4;
}
footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-4);
  min-width: 0;
}
footer button {
  min-height: var(--target);
  padding: 0 var(--space-1);
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: 600;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 100%;
  background: var(--lime);
}
@media (max-width: 750px) and (orientation: portrait) {
  footer {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: var(--space-1) var(--space-3);
    padding-left: max(var(--space-3), env(safe-area-inset-left));
    padding-right: max(var(--space-3), env(safe-area-inset-right));
  }
  footer #map {
    width: 100px;
    height: 66px;
  }
  footer > div {
    grid-column: 1/-1;
    justify-content: space-between;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  footer {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    min-height: 0;
    padding-left: max(var(--space-3), env(safe-area-inset-left));
    padding-right: max(var(--space-3), env(safe-area-inset-right));
  }
  footer #map {
    width: 88px;
    height: 58px;
  }
}
