/* Player homepage compact hero and top-of-page Academy entry.
   This is a dedicated last-loaded stylesheet. Ad slots, gameplay and Owner UI are unchanged. */
.portal-home .portal-topbar .topbar-inner{
  height:78px!important;min-height:78px!important;
}
.portal-home .portal-topbar .brand img{
  width:236px!important;height:60px!important;max-width:31vw!important;
  object-fit:contain;
}
.portal-home .portal-hero{
  padding:14px 0 15px!important;
}
.portal-home .portal-hero-grid{
  gap:24px!important;
  align-items:center!important;
}
.portal-home .hero-play-first .eyebrow{
  font-size:.63rem!important;
  line-height:1.3!important;
}
.portal-home .hero-play-intro{
  gap:4px!important;margin:7px 0 9px!important;
}
.portal-home .hero-play-intro h1{
  font-size:clamp(1.95rem,2.55vw,2.65rem)!important;
  line-height:1.06!important;
}
.portal-home .hero-play-intro p{
  font-size:.82rem!important;
  line-height:1.46!important;
  max-width:620px!important;
}
.portal-home .hero-academy-entry{
  display:flex;align-items:center;gap:10px;
  min-width:0;margin:0 0 11px;padding:10px 12px;
  border-radius:14px;border:1px solid #c8dbf7;
  background:linear-gradient(115deg,#f1f6ff,#f8f4ff);
  color:#284e80;box-shadow:0 4px 15px #3c69ad0b;
}
.portal-home .hero-academy-icon{
  display:grid;place-items:center;flex:0 0 38px;
  width:38px;height:38px;border-radius:12px;
  background:linear-gradient(145deg,#d6e8ff,#e6deff);
  color:#586ab4;font-weight:900;font-size:23px;
}
.portal-home .hero-academy-copy{
  display:flex;flex-direction:column;gap:2px;
  flex:1 1 auto;min-width:0;
}
.portal-home .hero-academy-copy strong{
  color:#2d568b;font-size:12.5px;font-weight:900;line-height:1.3;
}
.portal-home .hero-academy-copy>span{
  color:#587298;font-size:10.5px;line-height:1.35;
}
.portal-home .hero-academy-links{
  display:flex;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:5px;min-width:0;
}
.portal-home .hero-academy-links a{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 9px;min-height:33px;box-sizing:border-box;
  border-radius:9px;border:1px solid #b8cff2;
  background:#fff;color:#3568aa;font-size:10.5px;
  line-height:1.2;font-weight:850;text-decoration:none;
  white-space:nowrap;
}
.portal-home .hero-academy-links a:hover{
  background:#e8f1ff;border-color:#699ddd;
}
.portal-home .hero-academy-links a:focus-visible{
  outline:2px solid #3779d1;outline-offset:2px;
}
.portal-home .hero-play-first .hero-web-play-card{
  min-height:266px!important;
  height:auto!important;
  padding:11px!important;
  grid-template-columns:minmax(0,1.07fr) minmax(135px,.80fr)!important;
  grid-template-areas:"board head" "board cta"!important;
  gap:8px 12px!important;
  align-items:center!important;
  border-radius:17px!important;
}
.portal-home .hero-play-first .hero-mini-sudoku{
  width:min(100%,240px)!important;
  max-width:240px!important;
  max-height:240px!important;
  height:auto!important;
  justify-self:center!important;
}
.portal-home .hero-play-first .hero-web-play-head strong{
  font-size:.9rem!important;line-height:1.3!important;
}
.portal-home .hero-play-first .hero-web-play-cta{
  min-height:43px!important;
  align-self:start!important;
  font-size:.73rem!important;
}
.portal-home .hero-web-shortcuts{
  margin-top:8px!important;gap:7px!important;
}
.portal-home .hero-web-shortcuts a{
  padding:8px 9px!important;min-height:44px!important;
  border-radius:11px!important;
}
.portal-home .hero-web-shortcuts strong{font-size:.72rem!important}
.portal-home .hero-web-shortcuts small{font-size:.60rem!important;line-height:1.2!important}
.portal-home .portal-device-card.hero-app-column{
  gap:7px!important;
}
.portal-home .hero-app-intro{
  gap:1px!important;padding:0 6px!important;
}
.portal-home .portal-device-card.hero-app-column .device-showcase{
  padding:0 0 12px 30px!important;
}
.portal-home .portal-device-card .desktop-art{
  height:274px!important;max-height:274px!important;
  object-fit:cover!important;
  object-position:center;
  border-radius:20px!important;
}
.portal-home .portal-device-card .device-stage{
  max-height:274px!important;
}
.portal-home .portal-device-card .phone-art{
  width:clamp(123px,20%,159px)!important;
  left:-28px!important;bottom:-23px!important;
}
.portal-home .portal-device-card.hero-app-column .portal-qr-grid{
  padding-left:30px!important;gap:8px!important;
}
.portal-home .portal-quick-play-section{
  padding-top:5px!important;
}
.portal-home .home-main>.academy-home-feature{
  margin-top:24px!important;margin-bottom:29px!important;
}
.portal-home.dark .hero-academy-entry{
  background:linear-gradient(115deg,#273d60,#342e50);
  border-color:#536d91;color:#e0eafa;
}
.portal-home.dark .hero-academy-icon{
  background:linear-gradient(140deg,#38567a,#534b81);color:#dae5ff;
}
.portal-home.dark .hero-academy-copy strong{color:#e1edff}
.portal-home.dark .hero-academy-copy>span{color:#b6cee8}
.portal-home.dark .hero-academy-links a{
  background:#304968;color:#e1efff;border-color:#5977a0;
}
@media(max-width:1199px){
  .portal-home .portal-hero-grid{gap:17px!important}
  .portal-home .hero-play-first .hero-web-play-card{
    max-width:100%!important;
  }
  .portal-home .portal-device-card.hero-app-column{
    width:100%!important;max-width:100%!important;
  }
  .portal-home .portal-device-card .desktop-art{
    height:245px!important;max-height:245px!important;
  }
  .portal-home .portal-device-card .device-stage{max-height:245px!important}
  .portal-home .portal-device-card.hero-app-column .device-showcase{
    padding-bottom:9px!important;
  }
  .portal-home .portal-device-card .phone-art{
    width:clamp(114px,19%,155px)!important;
  }
}
@media(max-width:700px){
  .portal-home .portal-topbar .topbar-inner{
    height:auto!important;min-height:75px!important;
    padding-top:7px!important;padding-bottom:7px!important;
  }
  .portal-home .portal-topbar .brand img{
    width:130px!important;height:40px!important;max-width:42vw!important;
  }
  .portal-home .portal-hero{padding:10px 0 11px!important}
  .portal-home .hero-play-intro{
    margin:6px 0 8px!important;
  }
  .portal-home .hero-play-intro h1{
    font-size:clamp(1.65rem,6.7vw,2.05rem)!important;
    line-height:1.08!important;
  }
  .portal-home .hero-play-intro p{
    font-size:.77rem!important;line-height:1.43!important;
  }
  .portal-home .hero-academy-entry{
    display:grid;grid-template-columns:31px minmax(0,1fr);
    grid-template-areas:"icon text" "links links";
    gap:7px 9px;margin-bottom:10px;padding:9px 10px;
  }
  .portal-home .hero-academy-icon{
    grid-area:icon;width:31px;height:31px;flex-basis:31px;
    font-size:19px;border-radius:10px;
  }
  .portal-home .hero-academy-copy{grid-area:text}
  .portal-home .hero-academy-copy strong{font-size:12px}
  .portal-home .hero-academy-copy>span{font-size:10px}
  .portal-home .hero-academy-links{
    grid-area:links;justify-content:stretch;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .portal-home .hero-academy-links a{
    padding:6px 7px;min-height:31px;font-size:11px;
  }
  .portal-home .hero-play-first .hero-web-play-card{
    min-height:0!important;height:auto!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"head" "board" "cta"!important;
    gap:8px!important;padding:11px!important;
    margin:0!important;
  }
  .portal-home .hero-play-first .hero-web-play-head{
    padding-inline:2px!important;
  }
  .portal-home .hero-play-first .hero-mini-sudoku{
    width:min(100%,220px)!important;
    max-width:220px!important;max-height:220px!important;
  }
  .portal-home .hero-play-first .hero-web-play-cta{
    min-height:42px!important;
    margin-top:3px!important;
  }
  .portal-home .hero-web-shortcuts{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;margin-top:9px!important;
  }
  .portal-home .hero-web-shortcuts a{
    padding:7px 8px!important;min-height:43px!important;
    gap:1px!important;
  }
  .portal-home .hero-web-shortcuts a:nth-child(3){
    grid-column:1/-1;
  }
  .portal-home .portal-device-card.hero-app-column{
    gap:5px!important;
  }
  .portal-home .portal-device-card.hero-app-column .device-showcase{
    padding:0 0 5px 0!important;
  }
  .portal-home .portal-device-card .desktop-art{
    height:150px!important;max-height:150px!important;
    border-radius:15px!important;
  }
  .portal-home .portal-device-card .device-stage{max-height:150px!important}
  .portal-home .portal-device-card.hero-app-column .portal-qr-grid{
    padding-left:0!important;
  }
  .portal-home .hero-app-intro small{line-height:1.35!important}
}
@media(max-width:390px){
  .portal-home .hero-play-first .hero-mini-sudoku{
    width:min(100%,208px)!important;max-width:208px!important;max-height:208px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .portal-home .hero-academy-links a{transition:none!important}
}

/* V3: real THREE-PANEL hero. No Academy ribbon inside the Play column.
   Overrides historical hero sizing while preserving the actual game/store controls. */
body.portal-home section.portal-hero{
  padding:14px 0 19px!important;
}
body.portal-home section.portal-hero .portal-hero-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.97fr) minmax(0,1.07fr)!important;
  grid-template-rows:auto!important;
  align-items:stretch!important;
  gap:15px!important;
  direction:ltr!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{
  min-width:0!important;
  width:auto!important;
  margin:0!important;
  padding:17px!important;
  border:1px solid #dce5f3!important;
  border-radius:20px!important;
  box-shadow:0 11px 28px rgba(42,72,119,.07)!important;
  position:relative;
  overflow:visible;
  box-sizing:border-box;
  align-self:stretch!important;
}
body.portal-home section.portal-hero .portal-hero-grid> .hero-play-first{
  background:linear-gradient(155deg,#ffffff 7%,#f6faff 100%)!important;
}
body.portal-home section.portal-hero .portal-hero-grid> .hero-academy-column{
  background:linear-gradient(154deg,#f4f7ff,#eef5ff 55%,#f6f0ff)!important;
  border-color:#cedef5!important;
}
body.portal-home section.portal-hero .portal-hero-grid> .hero-app-column{
  background:linear-gradient(160deg,#fff 5%,#f8faff 100%)!important;
}
body.portal-home section.portal-hero .hero-play-first .eyebrow{
  display:block!important;font-size:10px!important;
  letter-spacing:.055em;line-height:1.45!important;
  margin-bottom:9px!important;
}
body.portal-home section.portal-hero .hero-play-first .hero-play-intro{
  margin:0 0 13px!important;gap:6px!important;
}
body.portal-home section.portal-hero .hero-play-first .hero-play-intro h1{
  font-size:clamp(22px,2.25vw,34px)!important;
  line-height:1.1!important;
  letter-spacing:-.035em!important;
  margin:0!important;
}
body.portal-home section.portal-hero .hero-play-first .hero-play-intro p{
  font-size:12px!important;line-height:1.55!important;margin:0!important;
}
body.portal-home section.portal-hero .hero-play-first .hero-web-play-card{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:"head" "board" "cta"!important;
  min-height:0!important;
  height:auto!important;
  padding:12px!important;
  gap:9px!important;
  margin:0!important;
  align-content:center!important;
}
body.portal-home section.portal-hero .hero-play-first .hero-mini-sudoku{
  width:min(100%,201px)!important;
  max-width:201px!important;
  max-height:201px!important;
  height:auto!important;
  align-self:center!important;
  justify-self:center!important;
}
body.portal-home section.portal-hero .hero-web-play-head{
  justify-self:stretch!important;
}
body.portal-home section.portal-hero .hero-web-play-cta{
  width:100%!important;
  box-sizing:border-box!important;
  min-height:42px!important;
  margin-top:1px!important;
}
body.portal-home section.portal-hero .hero-web-shortcuts{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;margin-top:10px!important;
}
body.portal-home section.portal-hero .hero-web-shortcuts a{
  min-width:0!important;min-height:48px!important;
  padding:7px 9px!important;
}
body.portal-home section.portal-hero .hero-web-shortcuts a:nth-child(3){
  grid-column:1/-1!important;
}
body.portal-home section.portal-hero .hero-academy-column{
  display:flex!important;flex-direction:column;
  gap:13px!important;
  direction:ltr;
}
body.portal-home section.portal-hero .hero-academy-topline{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
}
body.portal-home section.portal-hero .hero-academy-eyebrow{
  color:#5273ad;letter-spacing:.13em;font-size:10px;
  line-height:1.4;font-weight:900;
}
body.portal-home section.portal-hero .hero-academy-emblem{
  flex:0 0 43px;display:grid;place-items:center;
  height:43px;width:43px;border:1px solid #cbdaf4;
  border-radius:14px;color:#5670b2;background:#e6efff;
  font-size:26px;
}
body.portal-home section.portal-hero .hero-academy-column h2{
  color:#2c4b7a;line-height:1.18;letter-spacing:-.025em;
  font-size:clamp(23px,2.05vw,31px);font-weight:900;
  margin:0!important;
}
body.portal-home section.portal-hero .hero-academy-description{
  color:#60769a;font-size:12px;line-height:1.65;
  margin:0!important;
}
body.portal-home section.portal-hero .hero-academy-courses{
  display:grid;gap:9px!important;margin-top:2px;
}
body.portal-home section.portal-hero .hero-academy-course{
  display:grid;grid-template-columns:47px minmax(0,1fr) 20px;
  gap:10px;align-items:center;
  min-height:78px;box-sizing:border-box;
  padding:11px;
  border:1px solid #ccdcf5;border-radius:15px;
  text-decoration:none;color:#234976;
  background:#fff;box-shadow:0 5px 13px #35538d0a;
  transition:transform .15s ease,border-color .15s ease;
}
body.portal-home section.portal-hero .hero-academy-course:hover{
  transform:translateY(-2px);border-color:#82aae3;
}
body.portal-home section.portal-hero .hero-academy-course-number{
  display:grid;place-items:center;
  width:46px;height:46px;
  border-radius:13px;background:#e6efff;
  font-size:23px;line-height:1;font-weight:950;
  color:#3a6caf;
}
body.portal-home section.portal-hero .hero-academy-practice-course .hero-academy-course-number{
  background:#eee8ff;color:#7660b3;
}
body.portal-home section.portal-hero .hero-academy-course-copy{
  min-width:0;display:grid;gap:3px;
}
body.portal-home section.portal-hero .hero-academy-course-copy strong{
  font-size:15px;font-weight:850;line-height:1.3;color:#2f517f;
}
body.portal-home section.portal-hero .hero-academy-course-copy small{
  font-size:11px;line-height:1.4;color:#647c9e;
}
body.portal-home section.portal-hero .hero-academy-course-arrow{
  color:#6992c7;font-size:19px;
}
body.portal-home section.portal-hero .hero-academy-steps{
  display:flex;gap:6px;flex-wrap:wrap;
  align-items:center;justify-content:space-between;
  padding:8px 0;color:#5876a3;
  border-top:1px solid #dbe5f5;
  font-size:11px;font-weight:800;
}
body.portal-home section.portal-hero .hero-academy-step-arrow{
  opacity:.6;font-size:13px;font-weight:700;
}
body.portal-home section.portal-hero .hero-academy-primary{
  display:flex;justify-content:center;align-items:center;
  text-align:center;text-decoration:none;
  margin-top:auto!important;padding:12px 14px;min-height:44px;
  box-sizing:border-box;border-radius:12px;
  background:linear-gradient(125deg,#447dbe,#6a72c3);
  color:white;font-size:13px;font-weight:900;
  box-shadow:0 9px 16px #4771af25;
}
body.portal-home section.portal-hero .hero-academy-primary:hover{
  filter:brightness(1.07);
}
body.portal-home section.portal-hero .hero-academy-column a:focus-visible{
  outline:2px solid #367ad3;outline-offset:3px;
}
body.portal-home section.portal-hero .portal-device-card.hero-app-column{
  grid-template-areas:"appintro" "device" "stores"!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  align-content:start!important;
  gap:14px!important;
}
body.portal-home section.portal-hero .hero-app-intro{
  padding:0!important;gap:4px!important;
  direction:ltr!important;
}
body.portal-home section.portal-hero .hero-app-intro span{
  font-size:10px!important;line-height:1.4!important;
}
body.portal-home section.portal-hero .hero-app-intro strong{
  font-size:17px!important;line-height:1.3!important;
}
body.portal-home section.portal-hero .hero-app-intro small{
  font-size:11px!important;line-height:1.4!important;
}
body.portal-home section.portal-hero .portal-device-card.hero-app-column .device-showcase{
  min-width:0;
  padding:0 0 11px 17px!important;
}
body.portal-home section.portal-hero .portal-device-card .device-stage{
  max-height:215px!important;
}
body.portal-home section.portal-hero .portal-device-card .desktop-art{
  width:100%!important;height:215px!important;max-height:215px!important;
  border-radius:15px!important;object-fit:cover!important;
  object-position:center!important;
}
body.portal-home section.portal-hero .portal-device-card .phone-art{
  display:block!important;
  left:-18px!important;bottom:-17px!important;
  width:clamp(83px,22%,123px)!important;
  filter:drop-shadow(0 11px 15px rgba(20,42,82,.17));
}
body.portal-home section.portal-hero .portal-device-card.hero-app-column .portal-qr-grid{
  padding-left:0!important;width:100%!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
}
body.portal-home section.portal-hero .portal-store-merged-card{
  min-height:72px!important;
  width:100%!important;
  padding:7px!important;
  grid-template-columns:25px minmax(0,1fr) 37px!important;
  gap:5px!important;
  border-radius:12px!important;
}
body.portal-home section.portal-hero .portal-store-merged-card .store-mark{
  width:24px!important;height:24px!important;
}
body.portal-home section.portal-hero .portal-store-merged-card .store-mark svg{
  width:22px!important;height:22px!important;
}
body.portal-home section.portal-hero .portal-store-merged-card .store-copy strong{
  font-size:12px!important;line-height:1.2!important;white-space:normal!important;
}
body.portal-home section.portal-hero .portal-store-merged-card .store-copy small{
  font-size:8px!important;letter-spacing:0!important;
}
body.portal-home section.portal-hero .portal-store-merged-card .store-qr{
  width:35px!important;height:35px!important;
  padding:1px!important;
}
/* Three columns on desktop and large landscape tablet. */
@media (max-width:1239px) and (min-width:821px){
  body.portal-home section.portal-hero .portal-hero-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:13px!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(0,1.35fr)!important;
    grid-template-areas:"appintro appintro" "device stores"!important;
    align-items:center!important;
  }
  body.portal-home section.portal-hero .hero-app-column .desktop-art{
    height:205px!important;max-height:205px!important;
  }
  body.portal-home section.portal-hero .hero-app-column .portal-qr-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
/* All three modules stay separate but stack cleanly on phones. */
@media (max-width:820px){
  body.portal-home section.portal-hero .portal-hero-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!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:15px!important;border-radius:17px!important;
  }
  body.portal-home section.portal-hero .hero-play-first .hero-web-play-card{
    max-width:100%!important;
  }
  body.portal-home section.portal-hero .hero-play-first .hero-mini-sudoku{
    width:min(100%,225px)!important;max-width:225px!important;max-height:225px!important;
  }
  body.portal-home section.portal-hero .hero-play-intro h1{
    font-size:clamp(24px,5vw,34px)!important;
  }
  body.portal-home section.portal-hero .hero-academy-column{
    gap:12px!important;
  }
  body.portal-home section.portal-hero .portal-device-card .phone-art{
    display:none!important;
  }
  body.portal-home section.portal-hero .portal-device-card.hero-app-column .device-showcase{
    padding:0!important;
  }
  body.portal-home section.portal-hero .portal-device-card .desktop-art{
    height:200px!important;max-height:200px!important;
  }
  body.portal-home section.portal-hero .portal-device-card .device-stage{
    max-height:200px!important;
  }
}
@media(max-width:490px){
  body.portal-home section.portal-hero{
    padding:10px 0 12px!important;
  }
  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> .hero-app-column{
    padding:13px!important;
  }
  body.portal-home section.portal-hero .hero-play-intro p{
    font-size:12px!important;
  }
  body.portal-home section.portal-hero .hero-play-first .hero-mini-sudoku{
    width:min(100%,205px)!important;max-width:205px!important;max-height:205px!important;
  }
  body.portal-home section.portal-hero .hero-academy-column h2{
    font-size:24px!important;
  }
  body.portal-home section.portal-hero .hero-academy-course{
    min-height:68px;
    grid-template-columns:43px minmax(0,1fr) 17px;
    gap:8px;padding:9px!important;
  }
  body.portal-home section.portal-hero .hero-academy-course-number{
    width:42px;height:42px;font-size:21px;
  }
  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 .portal-device-card .desktop-art{
    height:150px!important;max-height:150px!important;
  }
  body.portal-home section.portal-hero .portal-device-card .device-stage{
    max-height:150px!important;
  }
}
html[dir="rtl"] body.portal-home section.portal-hero .hero-academy-column{
  direction:rtl;text-align:right;
}
html[dir="rtl"] body.portal-home section.portal-hero .hero-academy-step-arrow{
  transform:scaleX(-1);
}
html[dir="rtl"] body.portal-home section.portal-hero .hero-app-intro{
  direction:rtl!important;text-align:right!important;
}
body.portal-home.dark section.portal-hero .portal-hero-grid> .hero-play-first,
body.portal-home.dark section.portal-hero .portal-hero-grid> .hero-app-column{
  background:linear-gradient(150deg,#223349,#293b53)!important;
  border-color:#405772!important;
}
body.portal-home.dark section.portal-hero .portal-hero-grid> .hero-academy-column{
  background:linear-gradient(155deg,#293653,#313557 55%,#352e53)!important;
  border-color:#516386!important;
}
body.portal-home.dark section.portal-hero .hero-academy-column h2,
body.portal-home.dark section.portal-hero .hero-academy-course-copy strong{
  color:#e8f0ff!important;
}
body.portal-home.dark section.portal-hero .hero-academy-description,
body.portal-home.dark section.portal-hero .hero-academy-course-copy small,
body.portal-home.dark section.portal-hero .hero-academy-steps{
  color:#c2d0e9!important;
}
body.portal-home.dark section.portal-hero .hero-academy-course{
  background:#31415e!important;border-color:#536887!important;
}
body.portal-home.dark section.portal-hero .hero-academy-course-number{
  background:#38557b!important;color:#cfddff!important;
}
body.portal-home.dark section.portal-hero .hero-academy-practice-course .hero-academy-course-number{
  background:#4d456f!important;
}
body.portal-home.dark section.portal-hero .hero-academy-eyebrow{
  color:#a6cafa!important;
}
body.portal-home.dark section.portal-hero .hero-academy-emblem{
  background:#3e5178!important;color:#cedfff!important;border-color:#52658c!important;
}
body.portal-home.dark section.portal-hero .hero-academy-steps{
  border-color:#53627d!important;
}
@media(prefers-reduced-motion:reduce){
  body.portal-home section.portal-hero .hero-academy-course{
    transition:none!important;
  }
}

/* Final density pass: no redundant Academy shortcut inside the Play panel. */
body.portal-home section.portal-hero .hero-play-first .eyebrow{
  padding:5px 8px!important;
  margin-bottom:6px!important;
}
body.portal-home section.portal-hero .hero-play-first .hero-mini-sudoku{
  width:min(100%,186px)!important;
  max-width:186px!important;
  max-height:186px!important;
}
body.portal-home section.portal-hero .hero-play-first .hero-web-play-cta{
  margin:1px 0 0!important;
}
body.portal-home section.portal-hero .hero-web-shortcuts{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  margin-top:9px!important;
}
body.portal-home section.portal-hero .hero-web-shortcuts a{
  grid-column:auto!important;
}
@media(max-width:820px){
  body.portal-home section.portal-hero .hero-play-first .hero-mini-sudoku{
    width:min(100%,195px)!important;
    max-width:195px!important;max-height:195px!important;
  }
}

/* Keep full store names and QR codes legible on narrow handsets. */
@media(max-width:490px){
  body.portal-home section.portal-hero .portal-device-card.hero-app-column .portal-qr-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.portal-home section.portal-hero .portal-store-merged-card{
    min-height:57px!important;
    grid-template-columns:27px minmax(0,1fr) 39px!important;
    padding:6px 9px!important;
    gap:10px!important;
  }
  body.portal-home section.portal-hero .portal-store-merged-card .store-copy strong{
    font-size:13px!important;
  }
}
