/* Regras do HUD de tropas, heróis e chefes. */
.hud .selection-panel.unit-mode{
  width:310px !important;
  height:112px !important;
  min-height:112px !important;
  padding:8px !important;
  gap:10px !important;
}
.hud .selection-panel.unit-mode .portrait{
  width:86px !important;
  height:86px !important;
  flex:0 0 86px !important;
}
.hud .selection-panel.unit-mode .portrait img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  transform:scale(1.08) !important;
}
.hud .selection-panel.boss-mode{
  border-color:#d7b45a !important;
  background-image:linear-gradient(180deg,rgba(62,43,20,.97),rgba(18,13,9,.99)) !important;
}
.hud .selection-panel.boss-mode::after{
  content:"CHEFE";
  position:absolute;
  top:7px;
  right:9px;
  padding:3px 6px;
  border:1px solid #c99b42;
  border-radius:3px;
  background:#24170d;
  color:#f7d979;
  font:900 8px/1 system-ui,sans-serif;
  letter-spacing:.12em;
}
.hud .selection-panel.boss-mode .portrait{border-color:#e3bd58 !important;}
.hud .selection-panel.boss-mode .health-track span{background:linear-gradient(90deg,#bf8d28,#ffe174) !important;}
.hud .action-bar.building-actions{overflow-x:auto !important;flex-wrap:nowrap !important;}
.hud .action-bar.building-actions .action.train-action{
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:minmax(0,1fr) 20px !important;
  align-items:center !important;
  gap:0 !important;
  flex:0 0 124px !important;
  width:124px !important;
  min-width:124px !important;
  height:122px !important;
  min-height:122px !important;
  padding:4px 5px 5px !important;
  overflow:hidden !important;
}
.hud .action.train-action .art-icon{
  grid-row:1 !important;
  width:112px !important;
  height:98px !important;
  max-width:100% !important;
  max-height:100% !important;
  margin:0 auto !important;
  object-fit:contain !important;
  transform:translateY(-2px) !important;
}
.hud .action.train-action .hotkey{display:none !important;}
.hud .action.train-action .cost{
  position:relative !important;
  grid-row:2 !important;
  right:auto !important;
  bottom:auto !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  min-height:18px !important;
  margin:0 !important;
  padding:2px 4px !important;
  display:flex !important;
  flex-direction:row !important;
  justify-content:center !important;
  gap:4px !important;
  border-radius:3px !important;
  background:rgba(7,5,3,.88) !important;
  font-size:8px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
.hud .production-queue .queue-item{grid-template-columns:22px 50px minmax(0,1fr) 20px !important;}
.hud .production-queue .queue-item img{width:48px !important;height:48px !important;object-fit:contain !important;}

@media (orientation:landscape) and (max-height:600px), (max-width:900px){
  .hud .selection-panel.unit-mode{width:270px !important;height:106px !important;min-height:106px !important;padding:6px !important;}
  .hud .selection-panel.unit-mode .portrait{width:72px !important;height:72px !important;flex-basis:72px !important;}
  .hud .action-bar.building-actions .action.train-action{grid-template-rows:minmax(0,1fr) 17px !important;flex-basis:100px !important;width:100px !important;min-width:100px !important;height:102px !important;min-height:102px !important;padding:3px 4px 4px !important;}
  .hud .action.train-action .art-icon{width:92px !important;height:81px !important;max-height:100% !important;}
  .hud .action.train-action .cost{min-height:16px !important;padding:2px !important;gap:3px !important;font-size:7px !important;}
  .hud .production-queue .queue-item{grid-template-columns:18px 38px minmax(0,1fr) 18px !important;}
  .hud .production-queue .queue-item img{width:36px !important;height:36px !important;}
}
@media (orientation:landscape) and (max-width:740px){
  .hud .selection-panel.unit-mode{width:230px !important;height:98px !important;min-height:98px !important;}
  .hud .selection-panel.unit-mode .portrait{width:64px !important;height:64px !important;flex-basis:64px !important;}
  .hud .selection-panel.boss-mode::after{font-size:7px;top:5px;right:6px;}
  .hud .action-bar.building-actions .action.train-action{flex-basis:88px !important;width:88px !important;min-width:88px !important;height:92px !important;min-height:92px !important;}
  .hud .action.train-action .art-icon{width:80px !important;height:71px !important;}
  .hud .action.train-action .cost{gap:2px !important;font-size:6.5px !important;letter-spacing:-.03em !important;}
}
