/* The race canvas center belongs to the car and the answer lanes. */
#minimap {
  position: fixed;
  inset: calc(var(--race-ui-top, 66px) + 14px) max(18px, env(safe-area-inset-right)) auto auto;
  z-index: 4;
  width: clamp(94px, 12vw, 164px);
  height: auto;
  aspect-ratio: 11 / 9;
  border-color: #c0d9e675;
  background: linear-gradient(150deg, #102c40f5, #102333eb);
  box-shadow: 0 5px 18px #0a1e3c42;
  pointer-events: none;
}
#game-app { --race-ui-top: 66px; }
#game-app .bottom-hud { justify-content: space-between; }
@media (max-width: 760px) {
  #game-app { --race-ui-top: 52px; }
  #minimap {
    top: calc(var(--race-ui-top) + 76px);
    right: max(8px, env(safe-area-inset-right));
    width: clamp(68px, 20vw, 100px);
    border-radius: 12px;
  }
}
@media (max-height: 520px) and (orientation: landscape) {
  #minimap { top: calc(var(--race-ui-top) + 8px); width: 86px; }
}
