/* Sudoku Pro – balanced landing hero: large playable-looking board without
   towering left column / dead space below the two other sections.
   Scoped to Home hero; owner panel, ads, academy renderer and game untouched. */
@media (min-width:1240px){
 body.portal-home section.portal-hero .portal-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.34fr) minmax(0,1fr) minmax(0,.95fr)!important;
  align-items:stretch!important;
  gap:14px!important;
 }
 body.portal-home section.portal-hero .portal-hero-grid>.hero-play-first,
 body.portal-home section.portal-hero .portal-hero-grid>.hero-academy-column,
 body.portal-home section.portal-hero .portal-hero-grid>#heroAppsPanel{
  height:auto!important;
  min-height:0!important;
  align-self:stretch!important;
  margin:0!important;
  box-sizing:border-box!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-play-intro{
  margin:3px 0 9px!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-play-intro h1{
  font-size:clamp(23px,2.2vw,32px)!important;
  line-height:1.12!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-play-intro p{
  font-size:11.8px!important;
  line-height:1.44!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-play-card{
  display:grid!important;
  grid-template-columns:minmax(0,1.37fr) minmax(0,.93fr)!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  grid-template-areas:"board head" "board cta"!important;
  align-items:center!important;
  align-content:center!important;
  column-gap:14px!important;
  row-gap:10px!important;
  padding:12px!important;
  min-height:0!important;
  height:auto!important;
  max-width:100%!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-play-head{
  grid-area:head!important;
  align-self:center!important;
  text-align:start!important;
  min-width:0!important;
  gap:8px!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-play-head strong{
  font-size:clamp(14px,1.2vw,18px)!important;
  line-height:1.35!important;
 }
 body.portal-home section.portal-hero .hero-play-first #heroSudokuGridV2{
  grid-area:board!important;
  width:min(100%,290px)!important;
  height:auto!important;
  max-height:none!important;
  margin:0 auto!important;
  justify-self:center!important;
  align-self:center!important;
  aspect-ratio:1!important;
  min-height:0!important;
  box-sizing:border-box!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-play-cta{
  grid-area:cta!important;
  min-width:0!important;
  min-height:52px!important;
  margin:0!important;
  padding:8px 6px!important;
  font-size:12px!important;
  text-align:center!important;
  border-radius:10px!important;
  align-self:end!important;
  white-space:normal!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-shortcuts{
  margin-top:9px!important;
  gap:7px!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-shortcuts a{
  min-height:45px!important;
  padding:7px 9px!important;
 }
 body.portal-home section.portal-hero .portal-hero-grid>.hero-academy-column{
  justify-content:center!important;
  gap:11px!important;
  padding:19px 17px!important;
  background:linear-gradient(160deg,#f0f6ff,#eef2ff 57%,#f5f0ff)!important;
 }
 body.portal-home section.portal-hero .hero-academy-column h2{
  font-size:clamp(24px,2vw,31px)!important;
  line-height:1.18!important;
 }
 body.portal-home section.portal-hero .hero-academy-description{
  font-size:12px!important;
  line-height:1.55!important;
 }
 body.portal-home section.portal-hero .hero-academy-courses{margin:6px 0!important;gap:9px!important}
 body.portal-home section.portal-hero .hero-academy-course{
  min-height:71px!important;
  border-radius:13px!important;
 }
 body.portal-home section.portal-hero .hero-academy-steps{
  padding:9px 2px 0!important;
 }
 body.portal-home section.portal-hero .hero-academy-primary{
  min-height:46px!important;
  margin-top:4px!important;
 }
 body.portal-home section.portal-hero .portal-hero-grid>#heroAppsPanel{
  align-content:center!important;
  grid-template-areas:"device" "stores"!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:8px!important;
  padding:17px 13px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
  height:270px!important;
  min-height:270px!important;
  max-height:270px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  width:91%!important;
  height:240px!important;
  top:9px!important;
  left:0!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  width:34%!important;
  height:207px!important;
  top:40px!important;
  right:-3px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.portal-qr-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .portal-store-merged-card{
  height:41px!important;
  min-height:41px!important;
  max-height:41px!important;
  padding:5px 7px!important;
 }
}
@media (min-width:1240px) and (max-width:1379px){
 body.portal-home section.portal-hero .hero-play-first .hero-web-play-card{
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)!important;
  gap:7px!important;
  padding:9px!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-play-cta{
  min-height:49px!important;font-size:11px!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-play-head strong{
  font-size:14px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
  height:228px!important;min-height:228px!important;max-height:228px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  width:89%!important;height:205px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  width:34%!important;height:185px!important;top:30px!important;
 }
}
@media (min-width:821px) and (max-width:1239px){
 /* Preserve comfortable 2-column intermediate layout and short third card. */
 body.portal-home section.portal-hero .portal-hero-grid{
  align-items:stretch!important;
 }
 body.portal-home section.portal-hero .portal-hero-grid>.hero-play-first,
 body.portal-home section.portal-hero .portal-hero-grid>.hero-academy-column{
  align-self:stretch!important;
  height:auto!important;
  justify-content:center!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel{
  min-height:0!important;
  height:auto!important;
 }
}
@media (max-width:820px){
 body.portal-home section.portal-hero .portal-hero-grid{gap:10px!important}
 body.portal-home section.portal-hero .portal-hero-grid>.hero-play-first,
 body.portal-home section.portal-hero .portal-hero-grid>.hero-academy-column,
 body.portal-home section.portal-hero .portal-hero-grid>#heroAppsPanel{
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-play-intro{
  margin:0 0 8px!important;
 }
 body.portal-home section.portal-hero .hero-play-first .hero-web-play-card{
  min-height:0!important;
 }
 body.portal-home section.portal-hero .hero-academy-column{
  justify-content:flex-start!important;
 }
}
body.portal-home.dark section.portal-hero .portal-hero-grid>.hero-academy-column{
 background:linear-gradient(160deg,#293c59,#313b5d 59%,#3b3156)!important;
}
@media(prefers-reduced-motion:reduce){
 body.portal-home section.portal-hero .hero-web-play-card{transition:none!important}
}

/* 1240–1379: protect the full-sized Sudoku board; do not squeeze 3 small cards. */
@media (min-width:1240px) and (max-width:1379px){
 body.portal-home section.portal-hero .portal-hero-grid{
   display:grid!important;
   grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr)!important;
   align-items:stretch!important;
 }
 body.portal-home section.portal-hero .portal-hero-grid>.hero-play-first,
 body.portal-home section.portal-hero .portal-hero-grid>.hero-academy-column{
   align-self:stretch!important;
   height:auto!important;
   justify-content:center!important;
 }
 body.portal-home section.portal-hero .portal-hero-grid>#heroAppsPanel{
   grid-column:1/-1!important;
   grid-template-columns:minmax(0,1fr) minmax(260px,.70fr)!important;
   grid-template-rows:auto!important;
   grid-template-areas:"device stores"!important;
   align-items:center!important;
   min-height:0!important;
   height:auto!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
   height:203px!important;min-height:203px!important;max-height:203px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
   width:74%!important;height:177px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
   width:23%!important;height:165px!important;top:29px!important;right:8%!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.portal-qr-grid{
   grid-template-columns:minmax(0,1fr)!important;
 }
}
