/* Star Empire 0.6.74: horizontal planet tabs compact on phone / tablet.
   Full planet names remain in native title attributes. Attack alert animation,
   red border and click-to-view attack details continue unchanged. */
@media (min-width:761px) and (max-width:1180px){
 .game .screen.empire-dashboard>.planet-tabs{
  box-sizing:border-box!important;
  flex:0 0 60px!important;
  height:60px!important;min-height:60px!important;max-height:60px!important;
  padding:4px 3px 12px!important;gap:5px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  align-items:center!important;
 }
 .game .planet-tabs .planet-pill{
  box-sizing:border-box!important;
  flex:0 0 126px!important;
  width:126px!important;min-width:126px!important;max-width:126px!important;
  height:38px!important;min-height:38px!important;max-height:38px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:5px!important;padding:3px 7px!important;border-radius:8px!important;
  overflow:hidden!important;
 }
 .game .planet-tabs .mini-planet{
  width:21px!important;height:21px!important;
  flex:0 0 21px!important;
 }
 .game .planet-tabs .planet-tab-title{
  display:block!important;min-width:0!important;max-width:100%!important;
  font-size:10px!important;line-height:1.15!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;text-align:left!important;
 }
 .game .planet-tabs .planet-tab-title small{
  font-size:8px!important;line-height:1.1!important;margin-top:1px!important;
  display:block!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
 }
}
@media (max-width:760px){
 .game .screen.empire-dashboard>.planet-tabs{
  box-sizing:border-box!important;
  flex:0 0 56px!important;
  height:56px!important;min-height:56px!important;max-height:56px!important;
  padding:3px 3px 11px!important;
  gap:4px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  align-items:center!important;
  touch-action:pan-x!important;-webkit-overflow-scrolling:touch;
 }
 .game .planet-tabs .planet-pill{
  box-sizing:border-box!important;
  flex:0 0 112px!important;
  width:112px!important;min-width:112px!important;max-width:112px!important;
  height:34px!important;min-height:34px!important;max-height:34px!important;
  padding:3px 6px!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:4px!important;overflow:hidden!important;border-radius:7px!important;
 }
 .game .planet-tabs .mini-planet{
  width:19px!important;height:19px!important;flex:0 0 19px!important;
 }
 .game .planet-tabs .planet-tab-title{
  display:block!important;min-width:0!important;
  max-width:100%!important;
  font-size:10px!important;line-height:1.2!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  white-space:nowrap!important;text-align:left!important;
 }
 .game .planet-tabs .planet-tab-title small{display:none!important}
}
/* Keep the red alert and the warning icon legible without widening cards. */
@media (max-width:1180px){
 .game .planet-tabs .planet-pill.planet-under-attack{
  position:relative!important;
  padding-right:20px!important;
 }
 .game .planet-tabs .planet-attack-indicator{
  top:2px!important;right:2px!important;
  width:15px!important;height:15px!important;
  font-size:11px!important;border-width:1px!important;
 }
 .game .planet-tabs .planet-pill:focus-visible{
  outline:2px solid #a7ecf1!important;outline-offset:2px!important;
 }
}
