#topRightControls {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
#topRightControls > #mapsButton,
#topRightControls > #timeline {
  position: static;
  margin: 0;
}
#mapsMenu { top: 56px; right: 10px; left: auto; z-index: 1100; }
#privacyButton { top: 10px; left: 10px; bottom: auto; }
#privacyInfo { top: 56px; left: 10px; right: auto; bottom: auto; }
#bottomRightControls {
  position: fixed;
  right: 10px;
  bottom: 32px;
  z-index: 1002;
  display: flex;
  align-items: stretch;
  gap: 10px;
}
#bottomRightControls > #shareButton,
#bottomRightControls > #aboutButton {
  position: static;
  width: auto;
  height: auto;
  padding: 9px 13px;
  border: 0;
  border-radius: 5px;
  background: rgba(246,235,207,.96);
  color: #382b20;
  box-shadow: 0 3px 14px #20140b66,inset 0 0 18px #8d6b3d16;
  font-size: 14px;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: normal;
  cursor: pointer;
}
#bottomRightControls > button:hover,
#bottomRightControls > button:focus-visible {
  color: #74291f;
  background: rgba(255,244,215,.98);
}
#shareMenu { right: 10px; bottom: 76px; max-height: calc(100dvh - 96px); }
@media (max-width: 850px) {
  #topRightControls { right: 8px; left: auto; }
  #topRightControls > #timeline {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: 84px;
    left: 8px;
    width: auto;
  }
  #mapsMenu { right: 8px; }
}
@media (max-width: 400px) {
  #privacyButton, #privacyInfo { left: 8px; }
  #bottomRightControls { right: 8px; gap: 8px; }
  #bottomRightControls > #shareButton,
  #bottomRightControls > #aboutButton { padding: 7px 9px; font-size: 12px; }
}
