/* Tesla Roadster Sim: the pause menu's MAP tab (ui/map.js): the city fills the tab; over it, the
   waypoint top left, the street under the pointer at the bottom, the legend bottom left and the
   zoom buttons bottom right. */
.mn-map {
  background: #365f83;
}
.mn-map canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}
.mp-info,
.mp-hover,
.mp-legend,
.mp-zoom button {
  background: var(--box);
  border-radius: 2px;
}
.mp-info {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 14px;
}
.mp-info b {
  display: none;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d991f7;
}
.mp-clear {
  display: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d0d0d;
  background: #f2f2f2;
  border: 0;
  border-radius: 2px;
  padding: 4px 8px 3px;
  cursor: pointer;
}
.mp-info.set b,
.mp-info.set .mp-clear {
  display: inline-block;
}
.mp-hover {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}
.mp-hover:empty {
  display: none;
}
.mp-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px 8px 10px;
  font-weight: 600;
  font-size: 12.5px;
}
.mp-legend summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.mp-legend ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.mp-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mp-legend svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #0a0c12;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mp-legend .lg-you {
  fill: #fff;
  stroke: rgba(0, 0, 0, 0.75);
  stroke-width: 1.2;
}
.mp-legend .lg-route {
  stroke: #b24ff0;
  stroke-width: 3.2;
}
.lg-sw {
  flex: none;
  width: 14px;
  height: 14px;
  margin: 1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.lg-sw.park {
  background: #4f7048;
}
.lg-sw.sand {
  background: #bba97d;
}
.mp-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 4px;
}
.mp-zoom button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.mp-zoom button:hover {
  background: rgba(0, 0, 0, 0.9);
}
.mp-zoom svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.mp-zoom button:focus-visible,
.mp-clear:focus-visible,
.mp-legend summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
