/* InazumArcade v404 · phone Home News hardfix.
   The previous patch only gave the carousel height. Some phone/theme stacks
   still left the absolutely-positioned slide effectively invisible. This layer
   forces one active slide to be a real visible block without touching desktop. */
@media (hover:none), (pointer:coarse), (max-width:900px){
  #screen-home .ia-news-panel{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    min-height:232px!important;
    overflow:hidden!important;
  }
  #screen-home .ia-news-panel>.ia-panel-inner{
    display:block!important;
    position:relative!important;
    visibility:visible!important;
    opacity:1!important;
    min-height:232px!important;
    height:auto!important;
    overflow:hidden!important;
  }
  #screen-home .ia-news-panel .ia-panel-kicker{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:relative!important;
    z-index:3!important;
  }
  #screen-home #homeNewsCarousel.ia-news-carousel{
    display:block!important;
    position:relative!important;
    visibility:visible!important;
    opacity:1!important;
    height:178px!important;
    min-height:178px!important;
    max-height:none!important;
    margin-top:6px!important;
    overflow:hidden!important;
    z-index:2!important;
  }
  #screen-home #homeNewsCarousel .ia-news-slide{
    display:none!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    box-sizing:border-box!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  #screen-home #homeNewsCarousel .ia-news-slide.active{
    display:flex!important;
    flex-direction:column!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
    pointer-events:auto!important;
  }
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-visual,
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-copy,
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-copy strong,
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-version,
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-changes,
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-change,
  #screen-home #homeNewsCarousel .ia-news-dots{
    visibility:visible!important;
    opacity:1!important;
  }
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-copy strong{
    color:var(--ia-ui-text,#f4fbff)!important;
  }
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-version{
    color:var(--ia-ui-accent,#ffd84a)!important;
  }
  #screen-home #homeNewsCarousel .ia-news-slide.active .ia-news-change{
    color:var(--ia-ui-accent,#00d8ff)!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    white-space:normal!important;
    overflow:hidden!important;
    line-height:1.22!important;
  }
  #screen-home #homeNewsCarousel .ia-news-visual{
    display:flex!important;
    min-height:50px!important;
    flex:0 0 50px!important;
  }
  #screen-home #homeNewsCarousel .ia-news-copy{
    display:block!important;
    min-height:0!important;
    padding-top:8px!important;
  }
  #screen-home #homeNewsCarousel .ia-news-dots{
    display:flex!important;
    z-index:5!important;
  }
}

/* IA V788 bundle separator: original stylesheet rules preserved */
/* InazumArcade v405 · deterministic FF Online MENU continuity + phone news.
   Phone news uses a dedicated DOM/class set so legacy desktop carousel/theme
   rules cannot make the card empty. Loaded after every customization layer. */

/* The phone renderer sets data-ia-news-phone="1" itself, so these rules do not
   depend on viewport media-query quirks or browser "desktop site" heuristics. */
#screen-home #homeNewsCarousel[data-ia-news-phone="1"]{
  display:block!important;
  position:relative!important;
  width:100%!important;
  height:178px!important;
  min-height:178px!important;
  max-height:none!important;
  margin-top:6px!important;
  overflow:hidden!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:4!important;
  color:#f4fbff!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-card{
  display:none!important;
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  height:154px!important;
  min-height:154px!important;
  box-sizing:border-box!important;
  padding:8px 10px 10px!important;
  margin:0!important;
  overflow:hidden!important;
  visibility:hidden!important;
  opacity:0!important;
  transform:none!important;
  pointer-events:none!important;
  color:#f4fbff!important;
  background:linear-gradient(135deg,rgba(7,31,58,.96),rgba(4,17,37,.96))!important;
  border:1px solid rgba(68,202,255,.28)!important;
  border-radius:10px!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-card.is-active{
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  gap:10px!important;
  align-items:start!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-icon{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:58px!important;
  height:52px!important;
  min-width:58px!important;
  min-height:52px!important;
  box-sizing:border-box!important;
  font-size:27px!important;
  line-height:1!important;
  letter-spacing:1px!important;
  color:#fff!important;
  visibility:visible!important;
  opacity:1!important;
  background:rgba(16,70,108,.72)!important;
  border:1px solid rgba(52,216,255,.35)!important;
  border-radius:8px!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-body{
  display:block!important;
  min-width:0!important;
  visibility:visible!important;
  opacity:1!important;
  color:#f4fbff!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-body>strong{
  display:block!important;
  margin:0 0 5px!important;
  font-size:14px!important;
  line-height:1.18!important;
  font-weight:900!important;
  color:#f4fbff!important;
  visibility:visible!important;
  opacity:1!important;
  white-space:normal!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-version{
  color:#ffd84a!important;
  font-size:inherit!important;
  visibility:visible!important;
  opacity:1!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-lines{
  display:grid!important;
  gap:4px!important;
  visibility:visible!important;
  opacity:1!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-lines>span{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  white-space:normal!important;
  text-overflow:ellipsis!important;
  font-size:11px!important;
  line-height:1.18!important;
  font-weight:700!important;
  color:#63e4ff!important;
  visibility:visible!important;
  opacity:1!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-lines>span::before{
  content:'• ';
  color:#ffd84a!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-dots{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:2px!important;
  height:10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:8!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-dots i{
  display:block!important;
  width:6px!important;
  height:6px!important;
  min-width:6px!important;
  min-height:6px!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.3)!important;
}
#screen-home #homeNewsCarousel[data-ia-news-phone="1"] .ia-phone-news-dots i.active{
  background:#00d8ff!important;
  transform:scale(1.25)!important;
}
html.ia-real-phone-mode #screen-home .ia-news-panel,
html.ia-phone-native #screen-home .ia-news-panel{
  min-height:232px!important;
  visibility:visible!important;
  opacity:1!important;
}
html.ia-real-phone-mode #screen-home .ia-news-panel>.ia-panel-inner,
html.ia-phone-native #screen-home .ia-news-panel>.ia-panel-inner{
  min-height:232px!important;
  height:auto!important;
  overflow:hidden!important;
  visibility:visible!important;
  opacity:1!important;
}
