/* V36: phones held sideways only. A slimmer HUD so it covers less of the town.
   Upright phones and computers are not matched by these queries. */
@media (orientation:landscape) and (max-height:550px) and (pointer:coarse) and (min-width:667px){
 #game #hud:not([hidden]){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:4px!important;padding:3px!important;border-radius:13px;
  width:max-content!important;max-width:calc(100vw - var(--edge) - var(--right) - 78px)!important;right:auto!important;margin:0!important}
 #game #hud>.chip{flex:0 0 auto;width:auto!important;height:36px!important;min-height:36px!important;padding:0 7px!important;font-size:12px!important}
 #game #hud>.chip[hidden]{display:none!important}
 #game #hud #hDay,#game #hud #hTime,#game #hud #hMoney{font-size:12px!important;white-space:nowrap}
 #game #hud>#hGems{min-width:46px!important}
 #game #hud>#bars{width:68px!important;padding:3px 5px!important}
 #game #hud>#btnCareer{flex:0 1 auto;min-width:62px!important;max-width:170px!important;justify-content:flex-start!important}
 #game #hud>#btnCareer .ring{flex:0 0 22px!important;width:22px!important;height:22px!important}
 #game #hud>#btnBuild{min-width:46px!important}
 #game #hud>#btnSound,#game #hud>#btnPhone{width:40px!important;padding:0!important;justify-content:center!important}
 #game #hud>#btnPhone::after{content:none!important}
}
/* Very small phones: one row will not fit, so keep two rows, only shorter. */
@media (orientation:landscape) and (max-height:550px) and (pointer:coarse) and (max-width:666px){
 #game #hud:not([hidden]){gap:3px!important;padding:3px!important}
 #game #hud>.chip{height:31px!important;min-height:31px!important}
 #game #hud #hDay,#game #hud #hTime,#game #hud #hMoney{font-size:12px!important}
}
@media (orientation:landscape) and (max-height:550px) and (pointer:coarse){
 #game #bj-hud-guide:not([hidden]){top:calc(100% + 5px);min-height:34px!important}
}
