/* Sudoku Pro Apps panel: enlarge original transparent screen/phone mockups
   and use the entire panel instead of centering a tiny fixed-height device row.
   Layout only; real store links and controls are untouched. */
@media(min-width:1380px){
 body.portal-home section.portal-hero .portal-hero-grid>#heroAppsPanel{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  grid-template-areas:"device" "stores"!important;
  align-content:stretch!important;
  align-items:stretch!important;
  gap:10px!important;
  padding:16px 11px 15px!important;
  min-height:0!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase{
  align-self:stretch!important;
  position:relative!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  position:absolute!important;
  width:100%!important;
  height:91%!important;
  left:0!important;
  top:4%!important;
  bottom:auto!important;
  right:auto!important;
  transform:none!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-screen-cutout{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  filter:drop-shadow(0 13px 14px rgba(25,43,78,.16))!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  position:absolute!important;
  width:45%!important;
  height:80%!important;
  top:14%!important;
  right:-1%!important;
  left:auto!important;
  bottom:auto!important;
  transform:rotate(7deg)!important;
  transform-origin:50% 60%!important;
  filter:drop-shadow(0 11px 10px rgba(24,45,82,.20))!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.portal-qr-grid{
  align-self:end!important;
  width:100%!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
/* Between 821 and 1379: prominent devices beside small existing store badges. */
@media(min-width:821px) and (max-width:1379px){
 body.portal-home section.portal-hero #heroAppsPanel{
  grid-template-columns:minmax(0,1.27fr) minmax(240px,.73fr)!important;
  grid-template-areas:"device stores"!important;
  align-items:center!important;
  gap:12px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
  width:100%!important;
  height:228px!important;
  min-height:228px!important;
  max-height:228px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  width:81%!important;
  height:212px!important;
  top:1px!important;
  left:0!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  width:31%!important;
  height:198px!important;
  top:14px!important;
  right:4%!important;
  transform:rotate(7deg)!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.portal-qr-grid{
  grid-template-columns:minmax(0,1fr)!important;
  gap:9px!important;
 }
}
/* On phones, larger monitor and phone side-by-side without bloating the page. */
@media(max-width:820px){
 body.portal-home section.portal-hero #heroAppsPanel{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"device" "stores"!important;
  align-content:start!important;
  gap:6px!important;
  padding:12px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
  height:255px!important;
  min-height:255px!important;
  max-height:255px!important;
  width:100%!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  width:91%!important;
  height:235px!important;
  left:0!important;
  top:3px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  width:34%!important;
  height:222px!important;
  right:0!important;
  top:18px!important;
  transform:rotate(7deg)!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.portal-qr-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
 }
}
@media(max-width:490px){
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
  height:224px!important;
  min-height:224px!important;
  max-height:224px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  width:91%!important;
  height:206px!important;
  top:0!important;
  left:0!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  width:39%!important;
  height:198px!important;
  top:14px!important;
  right:0!important;
 }
}
@media(max-width:355px){
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
  height:192px!important;
  min-height:192px!important;
  max-height:192px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  height:180px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  height:166px!important;
  top:15px!important;
 }
}
html[dir="rtl"] body.portal-home section.portal-hero #heroAppsPanel .phone-art{
 transform:rotate(-7deg)!important;
}
@media(prefers-reduced-motion:reduce){
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{transition:none!important}
}

/* Keep the tilted phone visually inside the rounded panel at every width. */
@media(min-width:1380px){
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{right:8%!important;}
}
@media(max-width:820px){
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{right:5%!important;}
}
