/* Browser game card title visibility: two-line long names and no grid clipping. */
/* Keep CrazyGames-style image overlays on hover-capable desktop devices. */
@media (hover:hover) and (pointer:fine) and (min-width:650px){
  body [data-homepage-sections] .pl-home-arcade-card>.pl-home-arcade-title{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    line-height:1.45!important;
    padding:30px 10px 10px!important;
    max-height:84px!important;
  }
  body .arcade-page [data-arcade-games] .pl-arcade-card .pl-arcade-hover-title{
    display:-webkit-box!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    line-height:1.45!important;
    padding:27px 9px 9px!important;
    max-height:82px!important;
  }
}
/* Touch devices have no meaningful hover: always keep titles readable. */
@media (hover:none), (pointer:coarse){
  body [data-homepage-sections] .pl-home-arcade-card>.pl-home-arcade-title{
    opacity:1!important;transform:none!important;
  }
  body .arcade-page [data-arcade-games] .pl-arcade-item .pl-arcade-list-title{
    display:flex!important;opacity:1!important;visibility:visible!important;
    min-height:36px!important;height:auto!important;max-height:44px!important;
    align-items:flex-start!important;
  }
  body .arcade-page [data-arcade-games] .pl-arcade-card .pl-arcade-hover-title{
    display:none!important;
  }
}
/* On phones the artwork, not its parent anchor, is square. Giving the
   whole anchor aspect-ratio:1 makes the title overflow into the next row. */
@media (max-width:649px){
  body [data-homepage-sections] .pl-home-mosaic>.pl-home-arcade-card{
    aspect-ratio:auto!important;
    height:auto!important;
    align-self:stretch!important;
    overflow:visible!important;
  }
  body [data-homepage-sections] .pl-home-mosaic>.pl-home-arcade-card .pl-home-arcade-title{
    position:static!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-overflow:ellipsis!important;
    max-height:46px!important;
    min-height:33px!important;
    line-height:1.55!important;
    opacity:1!important;
    transform:none!important;
  }
  body [data-homepage-sections] .pl-home-mosaic>.pl-home-arcade-card:first-child .pl-home-arcade-title{
    min-height:30px!important;
  }
  body .arcade-page [data-arcade-games] .pl-arcade-item .pl-arcade-list-title{
    display:flex!important;
    height:auto!important;min-height:36px!important;max-height:44px!important;
    overflow:hidden!important;
  }
  body .arcade-page [data-arcade-games] .pl-arcade-item .pl-arcade-title-link{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.5!important;
    max-height:36px!important;
  }
}
