/* Sudoku Pro: compact, balanced three-part hero.
   The isolated screen cutout contains no promotional banner or desktop props. */
body.portal-home section.portal-hero{padding-block:12px 16px!important}
body.portal-home section.portal-hero .portal-hero-grid{
  grid-template-columns:minmax(0,1.34fr) minmax(0,1fr) minmax(0,.95fr)!important;
  align-items:start!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>.hero-app-column{
  height:auto!important;
  min-height:0!important;
  align-self:start!important;
  padding:16px!important;
  border-radius:18px!important;
  box-shadow:0 7px 22px rgba(34,63,107,.065)!important;
}
/* Compact the Play section while keeping its 9x9 preview prominent. */
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-play-intro h1{font-size:clamp(23px,2.25vw,32px)!important}
body.portal-home section.portal-hero .hero-play-first .hero-play-intro p{font-size:12px!important;line-height:1.43!important}
body.portal-home section.portal-hero .hero-play-first .hero-web-play-card{
  padding:10px!important;gap:5px!important;
  align-content:center!important;
}
body.portal-home section.portal-hero .hero-sudoku-grid-v2{
  width:min(100%,290px)!important;
  margin:5px auto!important;
}
body.portal-home section.portal-hero .hero-play-first .hero-web-play-cta{min-height:41px!important}
body.portal-home section.portal-hero .hero-web-shortcuts a{min-height:40px!important}
/* Academy: structured editorial card, no giant empty top or bottom. */
body.portal-home section.portal-hero .portal-hero-grid>.hero-academy-column{
  background:linear-gradient(165deg,#f1f7ff 0%,#eff3ff 59%,#f7f2ff 100%)!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:10px!important;
  padding:17px!important;
}
body.portal-home section.portal-hero .hero-academy-topline{margin:0!important}
body.portal-home section.portal-hero .hero-academy-emblem{
  height:37px!important;width:37px!important;flex:0 0 37px!important;
  border-radius:12px!important;font-size:19px!important;
}
body.portal-home section.portal-hero .hero-academy-column h2{
  font-size:clamp(22px,2vw,29px)!important;
  line-height:1.13!important;letter-spacing:-.025em!important;
  margin:0!important;
}
body.portal-home section.portal-hero .hero-academy-description{
  line-height:1.48!important;
  font-size:12px!important;
  margin:0!important;
}
body.portal-home section.portal-hero .hero-academy-courses{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:8px!important;
  margin:5px 0 1px!important;
}
body.portal-home section.portal-hero .hero-academy-course{
  min-height:64px!important;
  border-radius:13px!important;
  padding:9px 11px!important;
  grid-template-columns:40px minmax(0,1fr) 14px!important;
  gap:10px!important;
  background:#ffffffee!important;
  border-color:#d5e3f8!important;
  box-shadow:0 2px 10px #506a950b!important;
}
body.portal-home section.portal-hero .hero-academy-course:hover{
  background:#fff!important;box-shadow:0 5px 16px #506a9521!important;
}
body.portal-home section.portal-hero .hero-academy-course-number{
  width:40px!important;height:40px!important;min-width:0!important;
  font-size:21px!important;border-radius:11px!important;
}
body.portal-home section.portal-hero .hero-academy-course-copy strong{font-size:14px!important}
body.portal-home section.portal-hero .hero-academy-course-copy small{font-size:10.5px!important}
body.portal-home section.portal-hero .hero-academy-steps{
  margin:3px 0 0!important;
  padding:8px 1px 0!important;
  font-size:10.5px!important;
  border-top:1px solid #dce6f7!important;
}
body.portal-home section.portal-hero .hero-academy-primary{
  margin:3px 0 0!important;
  min-height:41px!important;padding:9px 12px!important;
  font-size:12px!important;border-radius:11px!important;
  box-shadow:0 4px 12px #547bbb25!important;
}
/* Apps: ONLY the cropped monitor screen and a slightly tilted phone beside it. */
body.portal-home section.portal-hero .portal-hero-grid>.hero-app-column{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:"device" "stores"!important;
  align-content:start!important;
  align-items:start!important;
  justify-items:stretch!important;
  padding:14px 13px!important;
  gap:7px!important;
  background:linear-gradient(170deg,#fff,#f8fbff)!important;
}
body.portal-home section.portal-hero .hero-app-column .device-showcase{
  display:block!important;
  width:100%!important;min-width:0!important;
  padding:0!important;margin:0!important;
  align-self:start!important;
  overflow:visible!important;
}
body.portal-home section.portal-hero .hero-app-column .device-stage{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:238px!important;
  min-height:0!important;
  max-height:238px!important;
  padding:0!important;margin:0!important;
  overflow:visible!important;
}
body.portal-home section.portal-hero .hero-app-column .hero-monitor-frame{
  position:absolute!important;
  z-index:1!important;
  inset:7px auto auto 0!important;
  display:block!important;
  width:86%!important;
  height:200px!important;
  min-width:0!important;max-width:none!important;max-height:none!important;
  padding:0!important;margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  box-shadow:none!important;
  order:0!important;
  transform:none!important;
}
body.portal-home section.portal-hero .hero-app-column .hero-monitor-frame::after{display:none!important;content:none!important}
body.portal-home section.portal-hero .hero-app-column .hero-screen-cutout{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;max-height:none!important;
  object-fit:contain!important;object-position:center!important;
  border:0!important;box-shadow:none!important;
  filter:drop-shadow(0 13px 12px rgba(34,56,88,.16));
}
body.portal-home section.portal-hero .hero-app-column .phone-art{
  position:absolute!important;
  z-index:2!important;
  inset:35px 0 auto auto!important;
  right:-4px!important;left:auto!important;bottom:auto!important;
  display:block!important;
  width:33%!important;height:179px!important;
  min-width:0!important;max-width:none!important;max-height:none!important;
  padding:0!important;margin:0!important;
  background:transparent!important;
  border:0!important;border-radius:0!important;
  box-shadow:none!important;
  order:1!important;
  transform:rotate(9deg)!important;
  transform-origin:55% 70%!important;
  filter:drop-shadow(0 10px 11px rgba(29,53,84,.18))!important;
}
body.portal-home section.portal-hero .hero-app-column .phone-art>img{
  display:block!important;
  width:100%!important;height:100%!important;
  max-width:100%!important;
  object-fit:contain!important;
  filter:none!important;
}
body.portal-home section.portal-hero .hero-app-column .portal-qr-grid{
  grid-area:stores!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  width:100%!important;
  padding:0!important;margin:0!important;
}
body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card{
  display:flex!important;
  align-items:center!important;justify-content:center!important;
  min-width:0!important;
  width:100%!important;
  height:41px!important;min-height:41px!important;
  max-height:41px!important;
  padding:6px 8px!important;
  border-radius:10px!important;
  gap:7px!important;
  box-shadow:0 3px 10px rgba(21,42,76,.12)!important;
}
body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-mark{
  display:grid!important;place-items:center!important;
  width:19px!important;height:19px!important;
  flex:0 0 19px!important;min-width:19px!important;
}
body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-mark svg{
  width:18px!important;height:18px!important;
}
body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-copy{
  display:grid!important;
  min-width:0!important;
  gap:1px!important;line-height:1.1!important;
}
body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-copy small{
  display:block!important;
  font-size:7px!important;line-height:1.1!important;letter-spacing:0!important;
}
body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-copy strong{
  display:block!important;
  font-size:11px!important;
  line-height:1.1!important;
  font-weight:850!important;
  white-space:nowrap!important;
  word-break:normal!important;overflow-wrap:normal!important;
}
body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-qr{display:none!important}
body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card:focus-visible{
  outline:2px solid #4685d1!important;outline-offset:3px!important;
}
/* Tablet: two top columns, Apps below as one short module. */
@media(max-width:1239px) and (min-width:821px){
  body.portal-home section.portal-hero .portal-hero-grid{
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;
  }
  body.portal-home section.portal-hero .portal-hero-grid>.hero-app-column{
    grid-column:1 / -1!important;
    grid-template-columns:minmax(0,1fr) minmax(265px,.72fr)!important;
    grid-template-rows:auto!important;
    grid-template-areas:"device stores"!important;
    align-items:center!important;
    gap:14px!important;
  }
  body.portal-home section.portal-hero .hero-app-column .device-stage{
    height:204px!important;max-height:204px!important;
  }
  body.portal-home section.portal-hero .hero-app-column .hero-monitor-frame{
    height:180px!important;width:75%!important;
  }
  body.portal-home section.portal-hero .hero-app-column .phone-art{
    width:24%!important;height:163px!important;top:27px!important;right:6%!important;
  }
  body.portal-home section.portal-hero .hero-app-column .portal-qr-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
/* Phone: balanced stacked cards, paired monitor/phone, small store buttons. */
@media(max-width:820px){
  body.portal-home section.portal-hero .portal-hero-grid{
    grid-template-columns:minmax(0,1fr)!important;
    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>.hero-app-column{
    padding:13px!important;
  }
  body.portal-home section.portal-hero .hero-app-column .device-stage{
    height:217px!important;max-height:217px!important;
  }
  body.portal-home section.portal-hero .hero-app-column .hero-monitor-frame{
    width:73%!important;height:192px!important;
    left:3%!important;top:2px!important;
  }
  body.portal-home section.portal-hero .hero-app-column .phone-art{
    width:24%!important;height:174px!important;
    top:26px!important;right:7%!important;
  }
  body.portal-home section.portal-hero .hero-app-column .portal-qr-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:490px){
  body.portal-home section.portal-hero .hero-app-column .device-stage{
    height:181px!important;max-height:181px!important;
  }
  body.portal-home section.portal-hero .hero-app-column .hero-monitor-frame{
    width:78%!important;height:165px!important;left:0!important;
  }
  body.portal-home section.portal-hero .hero-app-column .phone-art{
    width:28%!important;height:144px!important;top:23px!important;right:1%!important;
  }
  body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card{
    height:38px!important;min-height:38px!important;max-height:38px!important;
    gap:5px!important;padding:5px 6px!important;
  }
  body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-copy strong{
    font-size:10.5px!important;
  }
  body.portal-home section.portal-hero .hero-academy-column h2{font-size:23px!important}
  body.portal-home section.portal-hero .hero-academy-steps{font-size:10px!important}
}
@media(max-width:355px){
  body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-copy small{
    display:none!important;
  }
  body.portal-home section.portal-hero .hero-app-column .portal-store-merged-card .store-copy strong{font-size:10px!important}
}
html[dir="rtl"] body.portal-home section.portal-hero .hero-app-column .phone-art{
  transform:rotate(-9deg)!important;
}
body.portal-home.dark section.portal-hero .hero-academy-course{
  background:#334660!important;border-color:#536b8d!important;
}
body.portal-home.dark section.portal-hero .hero-academy-steps{
  border-top-color:#50627e!important;
}
@media(prefers-reduced-motion:reduce){
  body.portal-home section.portal-hero .hero-academy-course{transition:none!important}
}

/* Authority fence: legacy device-stage rules have higher class specificity.
   Anchor the compact Apps layout to its unique panel so all artwork remains in flow. */
body.portal-home section.portal-hero #heroAppsPanel{
 display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:auto auto!important;
 grid-template-areas:"device" "stores"!important;
 align-items:start!important;
 justify-items:stretch!important;
 align-content:start!important;
 gap:5px!important;
 height:auto!important;
 min-height:0!important;
}
body.portal-home section.portal-hero #heroAppsPanel>.device-showcase{
 display:block!important;
 grid-area:device!important;
 width:100%!important;
 height:228px!important;
 min-height:228px!important;
 max-height:none!important;
 padding:0!important;
 margin:0!important;
 align-self:start!important;
 overflow:visible!important;
}
body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
 display:block!important;
 position:relative!important;
 width:100%!important;
 height:228px!important;
 min-height:228px!important;
 max-height:228px!important;
 padding:0!important;
 margin:0!important;
}
body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
 position:absolute!important;
 width:86%!important;height:200px!important;
 top:7px!important;left:0!important;right:auto!important;bottom:auto!important;
 transform:none!important;
}
body.portal-home section.portal-hero #heroAppsPanel .phone-art{
 position:absolute!important;
 display:block!important;
 top:29px!important;right:-4px!important;left:auto!important;bottom:auto!important;
 width:32%!important;height:177px!important;
 transform:rotate(9deg)!important;
}
body.portal-home section.portal-hero #heroAppsPanel>.portal-qr-grid{
 display:grid!important;
 grid-area:stores!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:auto!important;
 width:100%!important;
 height:auto!important;
 gap:7px!important;
 padding:0!important;
 margin:0!important;
}
body.portal-home section.portal-hero #heroAppsPanel .portal-store-merged-card{
 display:flex!important;
 min-width:0!important;
 min-height:40px!important;
 max-height:40px!important;
 height:40px!important;
 padding:6px 7px!important;
 gap:6px!important;
}
body.portal-home section.portal-hero #heroAppsPanel .portal-store-merged-card .store-mark{
 width:18px!important;min-width:18px!important;
 height:18px!important;flex:0 0 18px!important;
}
body.portal-home section.portal-hero #heroAppsPanel .portal-store-merged-card .store-copy{
 min-width:0!important;
}
body.portal-home section.portal-hero #heroAppsPanel .portal-store-merged-card .store-copy strong{
 font-size:10.7px!important;
 white-space:nowrap!important;
 overflow-wrap:normal!important;
}
@media(max-width:1239px) and (min-width:821px){
 body.portal-home section.portal-hero #heroAppsPanel{
  grid-template-columns:minmax(0,1fr) minmax(230px,.72fr)!important;
  grid-template-rows:auto!important;
  grid-template-areas:"device stores"!important;
  align-items:center!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>.portal-qr-grid{
  grid-template-columns:minmax(0,1fr)!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  width:76%!important;height:178px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  width:24%!important;height:162px!important;right:6%!important;
 }
}
@media(max-width:820px){
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase,
 body.portal-home section.portal-hero #heroAppsPanel>.device-showcase>.device-stage{
  height:212px!important;min-height:212px!important;max-height:212px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  width:74%!important;height:189px!important;
  top:2px!important;left:3%!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  width:24%!important;height:170px!important;top:25px!important;right:7%!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel>.portal-qr-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  justify-self:center!important;max-width:450px!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:174px!important;min-height:174px!important;max-height:174px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .hero-monitor-frame{
  width:79%!important;height:160px!important;left:0!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .phone-art{
  width:28%!important;height:139px!important;top:22px!important;right:1%!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .portal-store-merged-card{
  height:38px!important;min-height:38px!important;max-height:38px!important;
 }
 body.portal-home section.portal-hero #heroAppsPanel .portal-store-merged-card .store-copy strong{
  font-size:10px!important;
 }
}
html[dir="rtl"] body.portal-home section.portal-hero #heroAppsPanel .phone-art{
 transform:rotate(-9deg)!important;
}

/* The homepage already contains both smaller store badges beneath the devices.
   Avoid a second redundant floating pair; retain floating-store behavior on other pages. */
body.portal-home .floating-store-dock{display:none!important}
