/* Build 21.345 — approved boundary rendering and ergonomic desktop map. */
#gameScreen.bt22325-underworld-mode #underworld .bt22319-map-toolbar{
  z-index:36!important;top:9px!important;left:9px!important;
  max-width:calc(100% - 15px);line-height:1.25!important;
}
#gameScreen.bt22325-underworld-mode #underworld .bt22345-context-back{
  border-color:#90cce5!important;background:rgba(19,47,60,.96)!important;
  color:#e4f5ff!important;font-weight:700!important;min-width:95px!important;
}
#gameScreen.bt22325-underworld-mode #underworld .bt22345-context-back:hover,
#gameScreen.bt22325-underworld-mode #underworld .bt22345-context-back:focus-visible{
  background:#24516a!important;outline:1px solid #bbe9ff;
}
@media(min-width:1101px){
  /* At a 900px tall desktop the map occupies about 500px, below the status
     cards and regional header. Artwork still bleeds to every frame edge. */
  #gameScreen.bt22325-underworld-mode #underworld .bt22319-map-frame{
    aspect-ratio:auto!important;
    height:clamp(390px,calc(100dvh - 400px),590px)!important;
    min-height:0!important;
    align-self:start!important;
    overflow:hidden!important;
  }
  #gameScreen.bt22325-underworld-mode #underworld .bt22319-map{
    min-height:0!important;inset:0!important;width:100%!important;height:100%!important;
  }
  #gameScreen.bt22325-underworld-mode #underworld .bt22319-sidebar{
    max-height:clamp(390px,calc(100dvh - 400px),590px)!important;
    min-height:0!important;
  }
}
@media(max-width:650px){
  #underworld .bt22319-map-toolbar{flex-wrap:wrap;right:8px;max-width:calc(100% - 16px)!important}
  #underworld .bt22319-map-toolbar span{font-size:8px!important}
}
