/* InazumArcade v403 · FF Online nav continuity + phone Home news visibility.
   JS continuity lives in ia260-players-core-v403.js. This file only fixes the
   Home release-notes panel on touch phones without changing desktop geometry. */

/* On phone layouts the Home cards become auto-height. The release-note slides
   are absolutely positioned, so their percentage-height carousel can collapse
   to zero when its parent no longer has an explicit desktop height. Give that
   carousel a real block height on touch devices. */
@media (hover:none), (pointer:coarse){
  #screen-home .ia-news-panel{
    display:block!important;
    visibility:visible!important;
    min-height:220px!important;
    overflow:hidden!important;
  }
  #screen-home .ia-news-panel > .ia-panel-inner{
    display:block!important;
    min-height:220px!important;
    height:auto!important;
    overflow:hidden!important;
  }
  #screen-home #homeNewsCarousel.ia-news-carousel{
    display:block!important;
    position:relative!important;
    height:166px!important;
    min-height:166px!important;
    max-height:none!important;
    overflow:hidden!important;
    visibility:visible!important;
    opacity:1!important;
  }
  #screen-home #homeNewsCarousel .ia-news-slide.active{
    opacity:1!important;
    visibility:visible!important;
    transform:translateX(0)!important;
  }
  #screen-home #homeNewsCarousel .ia-news-visual{
    min-height:48px!important;
  }
}

/* Real-phone landscape gets a little more room for three compact changelog
   lines while preserving the existing two-column Home flow. */
@media (hover:none) and (orientation:landscape),
       (pointer:coarse) and (orientation:landscape){
  #screen-home .ia-news-panel{min-height:228px!important}
  #screen-home .ia-news-panel > .ia-panel-inner{min-height:228px!important}
  #screen-home #homeNewsCarousel.ia-news-carousel{height:172px!important;min-height:172px!important}
}
