/* Vitrines editoriais da home HUBMAT — Mini Aventuras, Jogos e Produtos. */
.hm-showcase-section{padding:34px 0}
.hm-showcase-section .hm-wrap{position:relative;z-index:1}
.hm-showcase-kicker{display:inline-flex;align-items:center;gap:8px;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.hm-showcase-kicker:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 5px color-mix(in srgb,currentColor 14%,transparent)}
.hm-showcase-title{margin:10px 0 10px;font-size:clamp(32px,4vw,48px);line-height:.98;letter-spacing:-1.8px;font-weight:900;text-wrap:balance}
.hm-showcase-copy{margin:0;max-width:610px;font-size:13px;line-height:1.6;font-weight:700}
.hm-showcase-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.hm-showcase-btn{min-height:44px;padding:0 16px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;font:inherit;font-size:11px;font-weight:900;text-decoration:none;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.hm-showcase-btn:hover,.hm-showcase-btn:focus-visible{transform:translateY(-2px)}
.hm-showcase-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.hm-showcase-pills span{padding:7px 10px;border-radius:999px;font-size:9px;font-weight:900}

/* Mini Aventuras */
.hm-mini-showcase{position:relative;overflow:hidden;background:linear-gradient(180deg,#f7f6f0 0%,#f3efff 100%)}
.hm-mini-showcase:before{content:"";position:absolute;inset:10% auto auto 72%;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,#c8b7ff 0%,rgba(200,183,255,0) 68%);opacity:.55;filter:blur(14px)}
.hm-mini-showcase-shell{position:relative;overflow:hidden;display:grid;grid-template-columns:.84fr 1.16fr;gap:26px;align-items:center;padding:28px;border-radius:30px;background:radial-gradient(circle at 92% 12%,rgba(189,169,255,.28),transparent 27%),linear-gradient(135deg,#171140 0%,#33246d 56%,#7047bf 100%);box-shadow:0 24px 64px rgba(43,29,91,.16);color:#fff}
.hm-mini-showcase-shell:after{content:"";position:absolute;width:320px;height:320px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-125px;bottom:-170px}
.hm-mini-showcase-copy{position:relative;z-index:2;padding:7px 2px 7px 6px}
.hm-mini-showcase .hm-showcase-kicker{color:#e5d9ff}
.hm-mini-showcase .hm-showcase-copy{color:#ddd8f2}
.hm-mini-showcase .hm-showcase-btn.primary{background:#ffd75a;color:#251c4a;box-shadow:0 6px 0 #c99f21}
.hm-mini-showcase .hm-showcase-btn.secondary{background:rgba(255,255,255,.09);color:#fff;border:1px solid rgba(255,255,255,.18)}
.hm-mini-showcase .hm-showcase-pills span{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);color:#efeaff}
.hm-mini-gallery{position:relative;z-index:2;display:grid;grid-template-columns:1.22fr .78fr;gap:12px;min-width:0}
.hm-mini-card{position:relative;overflow:hidden;border-radius:20px;background:#261c55;border:1px solid rgba(255,255,255,.14);box-shadow:0 16px 35px rgba(0,0,0,.24);text-decoration:none;color:#fff;min-height:0;transition:transform .2s ease,box-shadow .2s ease}
.hm-mini-card:hover,.hm-mini-card:focus-visible{transform:translateY(-4px) rotate(-.3deg);box-shadow:0 22px 42px rgba(0,0,0,.28)}
.hm-mini-card img{width:100%;height:100%;object-fit:cover;transition:transform .24s ease}
.hm-mini-card:hover img,.hm-mini-card:focus-visible img{transform:scale(1.035)}
.hm-mini-card-main{aspect-ratio:1.04/1}
.hm-mini-card-stack{display:grid;grid-template-rows:repeat(3,1fr);gap:10px}
.hm-mini-card-small{min-height:0}
.hm-mini-card-overlay{position:absolute;left:10px;right:10px;bottom:10px;padding:10px 11px;border-radius:13px;background:linear-gradient(180deg,rgba(13,8,34,.18),rgba(13,8,34,.88));backdrop-filter:blur(7px)}
.hm-mini-card-overlay small{display:block;color:#d9ccff;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.hm-mini-card-overlay strong{display:block;margin-top:3px;font-size:13px;line-height:1.1}
.hm-mini-card-main .hm-mini-card-overlay strong{font-size:19px}

/* Jogos */
.hm-games-showcase{position:relative;overflow:hidden;background:linear-gradient(135deg,#50e4dd 0%,#9bf1e4 48%,#fff0a6 100%)}
.hm-games-showcase:before,.hm-games-showcase:after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.hm-games-showcase:before{width:190px;height:190px;left:-70px;top:-75px;background:#ff8fba;opacity:.36}
.hm-games-showcase:after{width:150px;height:150px;right:4%;bottom:-68px;background:#8b6cff;opacity:.18}
.hm-games-showcase-shell{position:relative;display:grid;grid-template-columns:.78fr 1.22fr;gap:24px;align-items:center;padding:28px;border-radius:30px;background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.88);box-shadow:0 22px 55px rgba(22,112,122,.18)}
.hm-games-showcase .hm-showcase-kicker{color:#188b86}
.hm-games-showcase .hm-showcase-title{color:#14324d}
.hm-games-showcase .hm-showcase-copy{color:#557488}
.hm-games-showcase .hm-showcase-btn.primary{background:#173a56;color:#fff;box-shadow:0 6px 0 #0b263a}
.hm-games-showcase .hm-showcase-btn.secondary{background:#fff7bf;color:#584910;border:1px solid #f0d65e;box-shadow:0 5px 0 #e4c94d}
.hm-games-showcase .hm-showcase-pills span{background:#eafafa;color:#267b82;border:1px solid #cfecef}
.hm-games-gallery{display:grid;grid-template-columns:1.2fr .8fr;gap:12px;min-width:0}
.hm-game-card{position:relative;overflow:hidden;border-radius:21px;background:#dff7f9;box-shadow:0 12px 0 #d5edf0,0 20px 32px rgba(24,79,102,.14);text-decoration:none;color:#17324d;transition:transform .18s ease,box-shadow .18s ease}
.hm-game-card:hover,.hm-game-card:focus-visible{transform:translateY(-5px) rotate(.2deg);box-shadow:0 16px 0 #c9e8ec,0 25px 36px rgba(24,79,102,.18)}
.hm-game-card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .22s ease}
.hm-game-card:hover img,.hm-game-card:focus-visible img{transform:scale(1.035)}
.hm-game-card-main{aspect-ratio:1.04/1}
.hm-game-stack{display:grid;grid-template-rows:repeat(3,1fr);gap:10px}
.hm-game-card-small{min-height:0}
.hm-game-label{position:absolute;left:10px;right:10px;bottom:10px;padding:9px 10px;border-radius:12px;background:#fffffff0;box-shadow:0 5px 18px rgba(17,49,74,.16)}
.hm-game-label small{display:block;color:#35818b;font-size:8px;font-weight:900;text-transform:uppercase}
.hm-game-label strong{display:block;margin-top:2px;font-size:13px;line-height:1.1}
.hm-game-card-main .hm-game-label strong{font-size:20px}

/* Produtos: vitrine interativa */
.hm-products .hm-section-head{margin-bottom:18px}
.hm-product-vitrine{padding:16px;border-radius:28px;background:linear-gradient(135deg,#f0f5ff,#f8f4ff 46%,#fff8ee);border:1px solid rgba(7,26,58,.08);box-shadow:0 18px 48px rgba(27,49,81,.08)}
.hm-product-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.hm-product-tab{min-height:48px;padding:8px 12px;border:1px solid rgba(7,26,58,.09);border-radius:13px;background:#fff;color:#576a82;font:inherit;font-size:10px;font-weight:900;cursor:pointer;transition:.18s ease}
.hm-product-tab:hover,.hm-product-tab:focus-visible{transform:translateY(-1px);border-color:#9db6dd}
.hm-product-tab[aria-selected="true"]{background:#071a3a;color:#fff;border-color:#071a3a;box-shadow:0 7px 20px rgba(7,26,58,.16)}
.hm-product-panels{position:relative}
.hm-product-panel{display:none;grid-template-columns:.82fr 1.18fr;gap:18px;align-items:stretch;min-height:360px;padding:20px;border-radius:22px;background:#fff;overflow:hidden}
.hm-product-panel.is-active{display:grid}
.hm-product-panel-copy{display:flex;flex-direction:column;justify-content:center;padding:10px}
.hm-product-panel-copy small{font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.hm-product-panel-copy h3{margin:8px 0 8px;color:#071a3a;font-size:clamp(30px,3.4vw,43px);line-height:.98;letter-spacing:-1.3px}
.hm-product-panel-copy p{margin:0;color:#65758b;font-size:12px;line-height:1.55;font-weight:700}
.hm-product-features{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.hm-product-features span{padding:6px 8px;border-radius:999px;background:#edf3fa;color:#516a86;font-size:8px;font-weight:900}
.hm-product-panel-copy .hm-showcase-btn{align-self:flex-start;margin-top:18px;background:#071a3a;color:#fff;box-shadow:0 5px 0 #28446c}
.hm-product-visual{position:relative;overflow:hidden;border-radius:19px;min-height:320px;background:linear-gradient(135deg,#071a3a,#173f80);box-shadow:0 18px 38px rgba(14,39,73,.16)}
.hm-product-browserbar{position:absolute;left:0;right:0;top:0;z-index:3;height:32px;display:flex;align-items:center;gap:5px;padding:0 10px;background:#f4f6f9;border-bottom:1px solid #e4e9f0}
.hm-product-browserbar i{width:7px;height:7px;border-radius:50%;background:#d4dbe4}.hm-product-browserbar i:nth-child(1){background:#ff826e}.hm-product-browserbar i:nth-child(2){background:#f2c858}.hm-product-browserbar i:nth-child(3){background:#66cc8c}
.hm-product-browserbar span{margin-left:5px;color:#7d8998;font-size:7px;font-weight:800}
.hm-product-live{position:absolute;inset:32px 0 0;overflow:hidden;background:linear-gradient(145deg,#071a3a,#133d7d)}
.hm-product-live iframe{width:200%;height:200%;border:0;transform:scale(.5);transform-origin:0 0;pointer-events:none;background:#fff}
.hm-product-preview-badge{position:absolute;right:10px;bottom:10px;z-index:4;padding:6px 8px;border-radius:999px;background:rgba(7,26,58,.86);color:#fff;font-size:7px;font-weight:900;letter-spacing:.05em}
.hm-product-visual.hq{display:grid;grid-template-columns:.82fr 1.18fr;gap:0;background:linear-gradient(135deg,#8a4726,#d88346)}
.hm-product-visual.hq img{width:100%;height:100%;object-fit:cover;min-height:320px}
.hm-product-visual.hq img:last-child{border-left:4px solid rgba(255,255,255,.24)}
.hm-product-visual.mentor{background:linear-gradient(135deg,#086c58,#1fa37f)}
.hm-product-visual.mentor img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;filter:saturate(.95)}
.hm-product-visual.mentor:after{content:"Acompanhamento individual";position:absolute;left:14px;bottom:14px;padding:8px 10px;border-radius:10px;background:rgba(7,55,46,.82);color:#fff;font-size:9px;font-weight:900}
.hm-product-panel[data-product="premium"] small{color:#2f6fed}
.hm-product-panel[data-product="jornada"] small{color:#7454d6}
.hm-product-panel[data-product="hq"] small{color:#b56731}
.hm-product-panel[data-product="mentoria"] small{color:#17836b}
.hm-product-footer{display:flex;justify-content:center;margin-top:12px}
.hm-product-footer .hm-link{margin-top:0}

/* Mobile / tablet */
@media(max-width:920px){
  .hm-mini-showcase-shell,.hm-games-showcase-shell{grid-template-columns:1fr}
  .hm-mini-showcase-copy,.hm-games-showcase-copy{text-align:center}
  .hm-mini-showcase .hm-showcase-copy,.hm-games-showcase .hm-showcase-copy{margin-inline:auto}
  .hm-showcase-actions,.hm-showcase-pills{justify-content:center}
  .hm-mini-gallery,.hm-games-gallery{max-width:720px;width:100%;margin-inline:auto}
  .hm-product-panel{grid-template-columns:1fr;min-height:0}
  .hm-product-visual{min-height:300px}
}
@media(max-width:680px){
  .hm-showcase-section{padding:26px 0}
  .hm-mini-showcase-shell,.hm-games-showcase-shell{padding:19px 14px;border-radius:24px}
  .hm-showcase-title{font-size:34px;letter-spacing:-1.3px}
  .hm-mini-gallery,.hm-games-gallery{display:block;overflow-x:auto;white-space:nowrap;padding:2px 2px 14px;scroll-snap-type:x mandatory;scrollbar-width:thin}
  .hm-mini-card,.hm-game-card{display:inline-block;vertical-align:top;width:78%;max-width:320px;aspect-ratio:1/1;margin-right:10px;scroll-snap-align:start;white-space:normal}
  .hm-mini-card-stack,.hm-game-stack{display:contents}
  .hm-mini-card-small,.hm-game-card-small{height:auto}
  .hm-product-vitrine{padding:10px;border-radius:22px}
  .hm-product-tabs{display:flex;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  .hm-product-tab{flex:0 0 auto;min-width:132px}
  .hm-product-panel{padding:13px;border-radius:17px}
  .hm-product-panel-copy{text-align:center;padding:8px 3px}
  .hm-product-panel-copy .hm-showcase-btn{align-self:center}
  .hm-product-visual{min-height:250px}
  .hm-product-visual.hq img{min-height:250px}
}
@media(max-width:430px){
  .hm-showcase-btn{width:100%}
  .hm-showcase-pills span{flex:1 1 auto;text-align:center}
  .hm-mini-card,.hm-game-card{width:86%}
  .hm-product-visual{min-height:220px}
  .hm-product-visual.hq img{min-height:220px}
}
@media(prefers-reduced-motion:reduce){
  .hm-showcase-btn,.hm-mini-card,.hm-mini-card img,.hm-game-card,.hm-game-card img,.hm-product-tab{transition:none!important}
}

/* Biblioteca viva — 55 e-books */
.hm-ebooks-live{position:relative;overflow:hidden;background:linear-gradient(145deg,#061935 0%,#0a2d5f 52%,#174d7d 100%);color:#fff}
.hm-ebooks-live:before{content:"";position:absolute;width:340px;height:340px;border-radius:50%;right:-120px;top:-150px;background:radial-gradient(circle,#55e2c3 0%,rgba(85,226,195,0) 69%);opacity:.28}
.hm-ebooks-live:after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;left:-105px;bottom:-150px;background:radial-gradient(circle,#ffd95d 0%,rgba(255,217,93,0) 69%);opacity:.19}
.hm-ebooks-shell{position:relative;z-index:1;display:grid;grid-template-columns:.82fr 1.18fr;gap:28px;align-items:center}
.hm-ebooks-copy{padding:8px 0}
.hm-ebooks-live .hm-showcase-kicker{color:#74e7ce}
.hm-ebooks-live .hm-showcase-title{max-width:540px;color:#fff}
.hm-ebooks-live .hm-showcase-copy{color:#ceddeb}
.hm-ebooks-count{display:flex;align-items:center;gap:13px;margin:18px 0 4px}
.hm-ebooks-count strong{font-size:56px;line-height:.85;letter-spacing:-3px;color:#ffd95d}
.hm-ebooks-count span{max-width:190px;color:#d7e5ef;font-size:11px;font-weight:900;line-height:1.25;text-transform:uppercase;letter-spacing:.07em}
.hm-ebooks-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:15px}
.hm-ebooks-stat{padding:9px 8px;border:1px solid rgba(255,255,255,.11);border-radius:11px;background:rgba(255,255,255,.07);text-align:center}
.hm-ebooks-stat strong{display:block;color:#fff;font-size:17px;line-height:1}
.hm-ebooks-stat small{display:block;margin-top:4px;color:#bcd0df;font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.hm-ebooks-live .hm-showcase-btn.primary{background:#ffd95d;color:#102640;box-shadow:0 6px 0 #caa72e}
.hm-ebooks-live .hm-showcase-btn.secondary{background:rgba(255,255,255,.09);color:#fff;border:1px solid rgba(255,255,255,.18)}
.hm-ebooks-audience{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}
.hm-ebooks-audience a{padding:7px 9px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);color:#dce9f3;font-size:8px;font-weight:900;text-decoration:none;transition:.18s}
.hm-ebooks-audience a:hover,.hm-ebooks-audience a:focus-visible{background:#fff;color:#123354;transform:translateY(-1px)}
.hm-library-stage{position:relative;min-width:0;padding:16px;border:1px solid rgba(255,255,255,.12);border-radius:27px;background:rgba(255,255,255,.08);box-shadow:0 24px 58px rgba(0,0,0,.22);backdrop-filter:blur(7px)}
.hm-library-feature{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center;min-height:268px;padding:17px;border-radius:20px;background:#fff;color:#102640;overflow:hidden}
.hm-library-cover{position:relative;align-self:stretch;min-height:234px;border-radius:12px;overflow:hidden;background:#e9eef4;box-shadow:0 15px 29px rgba(5,29,58,.18)}
.hm-library-cover img{width:100%;height:100%;object-fit:cover;display:block}
.hm-library-cover:after{content:"GRÁTIS";position:absolute;top:9px;left:9px;padding:5px 7px;border-radius:999px;background:#0f8f78;color:#fff;font-size:7px;font-weight:1000;letter-spacing:.06em}
.hm-library-info{min-width:0}
.hm-library-info small{display:block;color:#0f8f78;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.09em}
.hm-library-info h3{margin:7px 0 7px;color:#071a3a;font-size:clamp(23px,2.6vw,33px);line-height:1;letter-spacing:-.9px;text-wrap:balance}
.hm-library-info p{margin:0;color:#64758a;font-size:11px;line-height:1.5;font-weight:700}
.hm-library-info a{display:inline-flex;align-items:center;gap:7px;margin-top:15px;padding:9px 12px;border-radius:11px;background:#071a3a;color:#fff;font-size:9px;font-weight:900;text-decoration:none}
.hm-library-rail{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding:2px 1px 8px;scroll-snap-type:x proximity;scrollbar-width:thin}
.hm-ebook-thumb{appearance:none;position:relative;flex:0 0 76px;width:76px;height:108px;padding:0;border:2px solid rgba(255,255,255,.12);border-radius:10px;overflow:hidden;background:#fff;cursor:pointer;scroll-snap-align:start;box-shadow:0 8px 17px rgba(0,0,0,.16);transition:transform .18s ease,border-color .18s ease,opacity .18s ease}
.hm-ebook-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hm-ebook-thumb:hover,.hm-ebook-thumb:focus-visible{transform:translateY(-3px);border-color:#ffd95d}
.hm-ebook-thumb[aria-current="true"]{border-color:#ffd95d;box-shadow:0 0 0 2px rgba(255,217,93,.22),0 10px 22px rgba(0,0,0,.22)}
.hm-library-label{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0 2px 8px;color:#d3e1ec;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.hm-library-label span:last-child{color:#ffd95d}
@media(max-width:920px){
  .hm-ebooks-shell{grid-template-columns:1fr}
  .hm-ebooks-copy{text-align:center}
  .hm-ebooks-live .hm-showcase-copy,.hm-ebooks-live .hm-showcase-title{margin-inline:auto}
  .hm-ebooks-count,.hm-ebooks-audience{justify-content:center}
  .hm-ebooks-stats{max-width:560px;margin-inline:auto}
  .hm-library-stage{max-width:720px;width:100%;margin-inline:auto}
}
@media(max-width:620px){
  .hm-ebooks-stats{grid-template-columns:repeat(2,1fr)}
  .hm-library-stage{padding:10px;border-radius:21px}
  .hm-library-feature{grid-template-columns:112px minmax(0,1fr);gap:12px;min-height:210px;padding:12px}
  .hm-library-cover{min-height:184px}
  .hm-library-info h3{font-size:21px}
  .hm-library-info p{font-size:9.5px}
  .hm-ebook-thumb{flex-basis:66px;width:66px;height:94px}
  .hm-ebooks-count strong{font-size:49px}
}
@media(max-width:430px){
  .hm-library-feature{grid-template-columns:94px minmax(0,1fr)}
  .hm-library-cover{min-height:160px}
  .hm-library-info p{display:none}
  .hm-library-info h3{font-size:19px}
}

/* Produtos — provas visuais reais */
.hm-product-real-shot{
  position:relative;overflow:hidden;min-height:320px;border-radius:19px;
  background:linear-gradient(135deg,#071a3a,#174a91);
  box-shadow:0 18px 38px rgba(14,39,73,.16);
}
.hm-product-real-shot:before{
  content:"Carregando visual real…";position:absolute;inset:0;display:grid;place-items:center;
  color:rgba(255,255,255,.72);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;
}
.hm-product-real-shot>img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;opacity:0;
  transition:opacity .25s ease,transform .3s ease;
}
.hm-product-real-shot.is-loaded>img{opacity:1}
.hm-product-real-shot.is-loaded:before{display:none}
.hm-product-real-shot:hover>img{transform:scale(1.015)}
.hm-product-real-shot.premium-shot{background:linear-gradient(135deg,#061834,#39267d)}
.hm-product-real-shot.premium-shot>img{object-position:center center}
.hm-product-real-shot.journey-shot{background:linear-gradient(135deg,#071c38,#183f6e)}
.hm-product-real-shot.journey-shot>img{object-position:center center}
.hm-product-shot-caption{
  position:absolute;left:12px;bottom:12px;z-index:4;max-width:75%;padding:8px 10px;border-radius:11px;
  background:rgba(7,26,58,.88);color:#fff;box-shadow:0 7px 20px rgba(0,0,0,.22);backdrop-filter:blur(7px);
}
.hm-product-shot-caption small{display:block;color:#bcd4ff;font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.hm-product-shot-caption strong{display:block;margin-top:2px;font-size:10px;line-height:1.2}
.hm-product-real-badge{
  position:absolute;right:10px;top:10px;z-index:4;padding:6px 8px;border-radius:999px;
  background:#fff;color:#17324d;font-size:7px;font-weight:900;box-shadow:0 7px 18px rgba(0,0,0,.14);
}

/* HQ: páginas reais, composição editorial */
.hm-product-visual.hq-real{
  position:relative;display:grid;grid-template-columns:1.08fr .92fr;gap:9px;padding:10px;
  min-height:320px;border-radius:19px;background:linear-gradient(135deg,#7e3e22,#d37b43);
  box-shadow:0 18px 38px rgba(91,45,24,.18);overflow:hidden;
}
.hm-hq-main,.hm-hq-peek{position:relative;overflow:hidden;border-radius:12px;background:#fff;box-shadow:0 11px 25px rgba(55,25,14,.22)}
.hm-hq-main img,.hm-hq-peek img{width:100%;height:100%;object-fit:cover;display:block}
.hm-hq-main{min-height:300px;transform:rotate(-1deg)}
.hm-hq-stack{display:grid;grid-template-rows:1fr 1fr;gap:9px}
.hm-hq-peek:first-child{transform:rotate(1deg)}
.hm-hq-peek:last-child{transform:rotate(-.6deg)}
.hm-hq-real .hm-product-real-badge{background:#fff3e8;color:#8b4725}

/* Mentoria: banner com retrato oficial */
.hm-product-visual.mentor-banner{
  position:relative;overflow:hidden;min-height:320px;border-radius:19px;
  background:linear-gradient(120deg,#064f44,#0b7e69 54%,#2cb38f);box-shadow:0 18px 38px rgba(7,91,76,.20);
}
.hm-product-visual.mentor-banner:before{
  content:"";position:absolute;inset:0;z-index:2;
  background:linear-gradient(90deg,rgba(4,49,43,.95) 0%,rgba(5,72,61,.78) 45%,rgba(5,72,61,.10) 75%);
}
.hm-product-visual.mentor-banner:after{
  content:"";position:absolute;width:250px;height:250px;right:-80px;top:-90px;border:30px solid rgba(255,255,255,.08);border-radius:50%;z-index:2;
}
.hm-product-visual.mentor-banner>img{
  position:absolute;inset:0 0 0 auto;width:62%;height:100%;object-fit:cover;object-position:50% 16%;display:block;
}
.hm-mentor-banner-copy{
  position:relative;z-index:3;width:57%;height:100%;min-height:320px;display:flex;flex-direction:column;justify-content:center;padding:25px 0 25px 24px;color:#fff;
}
.hm-mentor-banner-copy small{font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;color:#baf3df}
.hm-mentor-banner-copy h4{margin:7px 0 8px;font-size:clamp(24px,2.7vw,34px);line-height:.98;letter-spacing:-1px}
.hm-mentor-banner-copy p{margin:0;color:#d7f2e9;font-size:10px;line-height:1.45;font-weight:700}
.hm-mentor-badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}
.hm-mentor-badges span{padding:6px 8px;border-radius:999px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.14);font-size:7px;font-weight:900}
.hm-mentor-name{margin-top:15px;font-size:9px;font-weight:900;color:#fff}
.hm-mentor-name span{display:block;margin-top:2px;color:#aee9d6;font-size:7px}

/* Produto em foco: mantém o painel visual mesmo em telas menores */
@media(max-width:920px){
  .hm-product-real-shot,.hm-product-visual.hq-real,.hm-product-visual.mentor-banner{min-height:300px}
}
@media(max-width:620px){
  .hm-product-real-shot,.hm-product-visual.hq-real,.hm-product-visual.mentor-banner{min-height:250px}
  .hm-product-visual.hq-real{grid-template-columns:1fr 1fr;padding:8px}
  .hm-hq-main{min-height:232px}
  .hm-mentor-banner-copy{width:62%;min-height:250px;padding:18px 0 18px 16px}
  .hm-product-visual.mentor-banner>img{width:62%;object-position:56% 14%}
  .hm-mentor-banner-copy h4{font-size:23px}
  .hm-mentor-banner-copy p{font-size:9px}
}
@media(max-width:430px){
  .hm-product-shot-caption{max-width:82%;left:8px;bottom:8px}
  .hm-product-real-badge{right:8px;top:8px}
  .hm-product-visual.hq-real{grid-template-columns:1.1fr .9fr}
  .hm-hq-main{min-height:210px}
  .hm-mentor-banner-copy{width:66%;padding-left:14px}
  .hm-mentor-badges span:nth-child(3){display:none}
}


/* HOME COMPACTA V3 — padrão professor como teto visual */
.hm-vitrine-section{
  padding:30px 0;
  background:#f7f8f6;
}
.hm-vitrine-section.alt{background:#eef5f4}
.hm-vitrine-card{
  width:min(1080px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,.88fr) minmax(360px,1.12fr);
  gap:24px;
  align-items:center;
  min-height:300px;
  max-height:360px;
  padding:24px 28px;
  border:1px solid rgba(7,26,58,.10);
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(7,26,58,.07);
  overflow:hidden;
}
.hm-vitrine-copy{min-width:0;text-align:left}
.hm-vitrine-kicker{
  display:inline-flex;align-items:center;gap:7px;
  color:#246b62;font-size:9px;font-weight:900;letter-spacing:.10em;text-transform:uppercase
}
.hm-vitrine-kicker:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 12%,transparent)}
.hm-vitrine-title{
  margin:8px 0 8px;color:#102b46;font-size:clamp(27px,3vw,37px);
  line-height:1.01;letter-spacing:-1.2px;font-weight:900;text-wrap:balance
}
.hm-vitrine-copy>p{
  max-width:520px;margin:0;color:#66788b;font-size:11.7px;line-height:1.5;font-weight:700
}
.hm-vitrine-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}
.hm-vitrine-meta span{
  padding:6px 8px;border-radius:999px;background:#eef3f7;color:#50677f;
  font-size:7.8px;font-weight:900;white-space:nowrap
}
.hm-vitrine-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.hm-vitrine-actions a,.hm-vitrine-actions button{
  min-height:38px;padding:0 13px;border:0;border-radius:11px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  background:#0a2b4c;color:#fff;font:inherit;font-size:9.5px;font-weight:900;
  text-decoration:none;cursor:pointer;box-shadow:0 4px 0 #061a30
}
.hm-vitrine-actions .secondary{
  background:#fff;color:#0a2b4c;border:1px solid #cfd9e3;box-shadow:0 3px 0 #dce4eb
}
.hm-vitrine-media{position:relative;min-width:0;height:250px}

/* Mini Aventuras — linguagem dos cards da própria página /turma-mini/ */
.hm-mini-compact{background:linear-gradient(180deg,#f7f6f0,#f2f3fb)}
.hm-mini-compact .hm-vitrine-card{
  background:linear-gradient(135deg,#153a80 0%,#2457ad 52%,#6a3f9d 100%);
  border:0;color:#fff;box-shadow:0 14px 34px rgba(35,54,115,.16)
}
.hm-mini-compact .hm-vitrine-kicker{color:#d9e7ff}
.hm-mini-compact .hm-vitrine-title{color:#fff}
.hm-mini-compact .hm-vitrine-copy>p{color:#dbe5f4}
.hm-mini-compact .hm-vitrine-meta span{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);color:#fff}
.hm-mini-compact .hm-vitrine-actions a{background:#ffd65b;color:#23365b;box-shadow:0 4px 0 #c7a33b}
.hm-mini-compact .hm-vitrine-actions .secondary{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.18);box-shadow:none}
.hm-mini-fan{display:flex;align-items:center;justify-content:center;padding:6px 12px}
.hm-mini-fan a{
  position:relative;display:block;width:170px;height:232px;border-radius:15px;overflow:hidden;
  border:4px solid rgba(255,255,255,.92);box-shadow:0 13px 28px rgba(0,0,0,.25);background:#0c1830;
  transition:transform .18s ease
}
.hm-mini-fan a:nth-child(1){transform:translateX(34px) rotate(-7deg);z-index:1}
.hm-mini-fan a:nth-child(2){transform:translateY(-4px);z-index:3}
.hm-mini-fan a:nth-child(3){transform:translateX(-34px) rotate(7deg);z-index:2}
.hm-mini-fan a:hover{z-index:5;transform:translateY(-7px) scale(1.02)}
.hm-mini-fan img{width:100%;height:100%;object-fit:cover;display:block}
.hm-mini-fan span{
  position:absolute;left:7px;right:7px;bottom:7px;padding:7px 8px;border-radius:9px;
  background:rgba(7,20,43,.86);color:#fff;font-size:8px;font-weight:900;line-height:1.15
}

/* Jogos — mesma arquitetura, três cenas curtas */
.hm-games-compact{background:#e8f5f2}
.hm-games-compact .hm-vitrine-kicker{color:#08786f}
.hm-games-strip{display:grid;grid-template-columns:1.15fr .85fr;gap:9px;height:250px}
.hm-game-feature,.hm-game-mini{
  position:relative;overflow:hidden;border-radius:15px;background:#d8f0f0;
  border:1px solid #c6e1e1;box-shadow:0 8px 18px rgba(18,91,91,.11)
}
.hm-game-feature img,.hm-game-mini img{width:100%;height:100%;object-fit:cover;display:block}
.hm-game-stack{display:grid;grid-template-rows:1fr 1fr;gap:9px}
.hm-game-caption{
  position:absolute;left:8px;right:8px;bottom:8px;padding:7px 8px;border-radius:9px;
  background:rgba(255,255,255,.92);color:#123a50;font-size:8px;font-weight:900
}

/* Produtos — máximo compacto, sem “página dentro da página” */
.hm-products-compact{
  padding:30px 0;background:#f5f1f9
}
.hm-products-compact .hm-section-head{margin-bottom:14px;padding-top:0;border-top:0}
.hm-products-compact .hm-title{font-size:clamp(27px,3vw,36px)}
.hm-products-compact .hm-lead{font-size:11.5px}
.hm-products-compact-shell{
  width:min(1080px,100%);margin:0 auto;padding:10px;border:1px solid #ded8e8;border-radius:20px;
  background:#fff;box-shadow:0 12px 30px rgba(58,42,91,.07)
}
.hm-products-compact .hm-product-tabs{
  display:flex;gap:6px;overflow-x:auto;margin:0 0 8px;padding:0 0 2px;scrollbar-width:thin
}
.hm-products-compact .hm-product-tab{
  flex:1 0 130px;min-height:36px;padding:7px 10px;border-radius:10px;font-size:8.5px
}
.hm-products-compact .hm-product-panel{
  grid-template-columns:.82fr 1.18fr;gap:18px;align-items:center;
  min-height:270px;max-height:290px;padding:16px;border-radius:15px;background:#fbfcfd
}
.hm-products-compact .hm-product-panel-copy{padding:6px}
.hm-products-compact .hm-product-panel-copy h3{
  margin:6px 0 7px;font-size:clamp(25px,2.8vw,34px);line-height:1
}
.hm-products-compact .hm-product-panel-copy p{font-size:10.5px;line-height:1.45}
.hm-products-compact .hm-product-features{margin-top:10px}
.hm-products-compact .hm-product-panel-copy .hm-showcase-btn{
  min-height:37px;margin-top:13px;padding:0 12px;font-size:8.8px
}
.hm-products-compact .hm-product-real-shot,
.hm-products-compact .hm-product-visual.hq-real,
.hm-products-compact .hm-product-visual.mentor-banner{
  min-height:238px;height:238px;border-radius:14px
}
.hm-products-compact .hm-hq-main{min-height:218px}
.hm-products-compact .hm-mentor-banner-copy{min-height:238px;padding:16px 0 16px 18px}
.hm-products-compact .hm-mentor-banner-copy h4{font-size:24px}
.hm-products-compact .hm-product-footer{display:none}

/* E-books — biblioteca viva, mas com altura de card */
.hm-ebooks-compact{background:#f7f6f0}
.hm-ebooks-compact .hm-vitrine-card{
  background:linear-gradient(135deg,#0a2a50,#0f4777);color:#fff;border:0;
  box-shadow:0 14px 32px rgba(10,42,80,.14)
}
.hm-ebooks-compact .hm-vitrine-kicker{color:#78dfcc}
.hm-ebooks-compact .hm-vitrine-title{color:#fff}
.hm-ebooks-compact .hm-vitrine-copy>p{color:#d7e5ef}
.hm-ebooks-compact .hm-vitrine-meta span{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#fff}
.hm-ebooks-compact .hm-vitrine-actions a{background:#ffd65b;color:#17324d;box-shadow:0 4px 0 #c5a23d}
.hm-ebooks-compact .hm-vitrine-actions .secondary{background:rgba(255,255,255,.09);color:#fff;border-color:rgba(255,255,255,.18);box-shadow:none}
.hm-ebooks-compact .hm-ebooks-number{
  display:inline-flex;align-items:baseline;gap:8px;margin-top:10px
}
.hm-ebooks-compact .hm-ebooks-number strong{color:#ffd65b;font-size:42px;line-height:.9;letter-spacing:-2px}
.hm-ebooks-compact .hm-ebooks-number span{color:#d8e5ee;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.hm-ebook-compact-stage{display:grid;grid-template-columns:150px 1fr;gap:12px;height:250px}
.hm-ebook-feature{
  position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:13px;background:#fff;box-shadow:0 11px 24px rgba(0,0,0,.22)
}
.hm-ebook-feature img{width:100%;height:100%;object-fit:cover;display:block}
.hm-ebook-thumbs{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:8px}
.hm-ebook-thumb-card{appearance:none;position:relative;overflow:hidden;border:0;padding:0;border-radius:11px;background:#fff;cursor:pointer}
.hm-ebook-thumb-card img{width:100%;height:100%;object-fit:cover;display:block}
.hm-ebook-thumb-card span{
  position:absolute;left:5px;right:5px;bottom:5px;padding:5px 6px;border-radius:7px;
  background:rgba(7,26,58,.84);color:#fff;font-size:6.8px;font-weight:900;line-height:1.12
}

/* Tablet: NÃO empilhar. O problema anterior vinha daqui. */
@media(max-width:920px) and (min-width:681px){
  .hm-vitrine-card{
    grid-template-columns:minmax(0,.88fr) minmax(300px,1.12fr);
    gap:18px;min-height:290px;max-height:340px;padding:20px 22px
  }
  .hm-vitrine-title{font-size:30px}
  .hm-vitrine-media{height:225px}
  .hm-mini-fan a{width:145px;height:205px}
  .hm-games-strip{height:225px}
  .hm-products-compact .hm-product-panel{
    grid-template-columns:.8fr 1.2fr;min-height:250px;max-height:270px;padding:13px
  }
  .hm-products-compact .hm-product-real-shot,
  .hm-products-compact .hm-product-visual.hq-real,
  .hm-products-compact .hm-product-visual.mentor-banner{height:218px;min-height:218px}
  .hm-products-compact .hm-hq-main{min-height:198px}
  .hm-products-compact .hm-mentor-banner-copy{min-height:218px}
  .hm-ebook-compact-stage{height:225px;grid-template-columns:135px 1fr}
}

/* Celular: empilha de forma curta, mídia horizontal e sem crescer indefinidamente */
@media(max-width:680px){
  .hm-vitrine-section,.hm-products-compact{padding:24px 0}
  .hm-vitrine-card{
    display:block;min-height:0;max-height:none;padding:18px;border-radius:18px
  }
  .hm-vitrine-copy{text-align:center}
  .hm-vitrine-copy>p{margin-inline:auto}
  .hm-vitrine-meta,.hm-vitrine-actions{justify-content:center}
  .hm-vitrine-media{height:178px;margin-top:15px}
  .hm-mini-fan{height:178px}
  .hm-mini-fan a{width:112px;height:162px}
  .hm-mini-fan a:nth-child(1){transform:translateX(26px) rotate(-6deg)}
  .hm-mini-fan a:nth-child(3){transform:translateX(-26px) rotate(6deg)}
  .hm-games-strip{height:178px}
  .hm-products-compact .hm-section-head{margin-bottom:10px}
  .hm-products-compact .hm-product-panel{
    display:block;min-height:0;max-height:none;padding:12px
  }
  .hm-products-compact .hm-product-panel-copy{text-align:center;padding:3px 4px 10px}
  .hm-products-compact .hm-product-panel-copy .hm-showcase-btn{margin-inline:auto}
  .hm-products-compact .hm-product-real-shot,
  .hm-products-compact .hm-product-visual.hq-real,
  .hm-products-compact .hm-product-visual.mentor-banner{
    min-height:190px;height:190px
  }
  .hm-products-compact .hm-hq-main{min-height:170px}
  .hm-products-compact .hm-mentor-banner-copy{min-height:190px}
  .hm-ebook-compact-stage{height:178px;grid-template-columns:105px 1fr}
  .hm-vitrine-actions a,.hm-vitrine-actions button{min-height:36px}
}


/* FIX CORTE TABLET V4 — conteúdo íntegro sem crescer como página */
/* O card-base deixa de cortar conteúdo. A compactação vem das dimensões internas. */
.hm-vitrine-card{
  max-height:none!important;
  overflow:visible!important;
}

/* Produtos: painel completo, sem esconder texto/imagem na borda inferior. */
.hm-products-compact .hm-product-panel{
  max-height:none!important;
  overflow:visible!important;
}
.hm-products-compact .hm-product-panels{overflow:visible}
.hm-products-compact-shell{overflow:visible}

/* HQ: mostrar as páginas inteiras, sem object-fit:cover. */
.hm-products-compact .hm-product-visual.hq-real{
  overflow:hidden;
  padding:8px;
}
.hm-products-compact .hm-hq-main,
.hm-products-compact .hm-hq-peek{
  background:#f8f4ed;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hm-products-compact .hm-hq-main img,
.hm-products-compact .hm-hq-peek img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center;
}

/* E-books: preservar a capa e garantir que botões/metadados nunca sejam cortados. */
.hm-ebooks-compact .hm-vitrine-card{
  overflow:hidden!important;
  max-height:none!important;
}
.hm-ebooks-compact .hm-vitrine-copy{
  align-self:center;
}
.hm-ebook-compact-stage{
  min-height:0;
}
.hm-ebook-feature,
.hm-ebook-thumb-card{
  background:#f7f9fb;
}
.hm-ebook-feature img,
.hm-ebook-thumb-card img{
  object-fit:contain!important;
  background:#f7f9fb;
}

/* Tablet: mantém duas colunas, mas permite que o card cresça alguns pixels se o texto exigir. */
@media(max-width:920px) and (min-width:681px){
  .hm-vitrine-card{
    min-height:290px;
    max-height:none!important;
    overflow:visible!important;
    padding:18px 20px;
  }
  .hm-products-compact .hm-product-panel{
    min-height:245px;
    max-height:none!important;
    overflow:visible!important;
  }
  .hm-products-compact .hm-product-real-shot,
  .hm-products-compact .hm-product-visual.hq-real,
  .hm-products-compact .hm-product-visual.mentor-banner{
    height:210px;
    min-height:210px;
  }
  .hm-products-compact .hm-hq-main{min-height:190px}
  .hm-products-compact .hm-mentor-banner-copy{min-height:210px}
  .hm-ebook-compact-stage{
    height:210px;
    grid-template-columns:128px 1fr;
  }
  .hm-ebooks-compact .hm-vitrine-title{
    font-size:28px;
    line-height:1;
  }
  .hm-ebooks-compact .hm-ebooks-number strong{font-size:38px}
  .hm-ebooks-compact .hm-vitrine-actions{margin-top:12px}
}

/* Celular: nada de corte, mídia menor e inteira. */
@media(max-width:680px){
  .hm-vitrine-card{overflow:hidden!important}
  .hm-products-compact .hm-product-panel{overflow:hidden!important}
  .hm-products-compact .hm-product-real-shot,
  .hm-products-compact .hm-product-visual.hq-real,
  .hm-products-compact .hm-product-visual.mentor-banner{
    height:180px;
    min-height:180px;
  }
  .hm-products-compact .hm-hq-main{min-height:160px}
  .hm-ebook-compact-stage{
    height:168px;
    grid-template-columns:100px 1fr;
  }
}


/* FLAT FIX V5 — HQ e e-books sem recorte */
.hm-hq-flat{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  height:220px;
  padding:8px;
  border-radius:14px;
  background:#f4ede5;
  overflow:hidden;
}
.hm-hq-flat figure{
  margin:0;
  min-width:0;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 6px 16px rgba(78,46,24,.10);
}
.hm-hq-flat img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center;
  display:block;
  background:#fff;
}

.hm-ebooks-flat{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  height:220px;
}
.hm-ebook-flat-card{
  position:relative;
  min-width:0;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px;
  border-radius:11px;
  overflow:hidden;
  background:#fff;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}
.hm-ebook-flat-card img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center;
  display:block;
  background:#fff;
}
.hm-ebook-flat-card span{
  position:absolute;
  left:5px;
  right:5px;
  bottom:5px;
  padding:5px 6px;
  border-radius:7px;
  background:rgba(7,26,58,.84);
  color:#fff;
  font-size:6.5px;
  line-height:1.15;
  font-weight:900;
}
@media(max-width:920px) and (min-width:681px){
  .hm-hq-flat,.hm-ebooks-flat{height:205px}
}
@media(max-width:680px){
  .hm-hq-flat{height:165px;gap:5px;padding:5px}
  .hm-ebooks-flat{height:165px;gap:5px}
  .hm-ebook-flat-card span{font-size:5.8px}
}


/* SURGICAL FIX V6 — HQ, ebooks e jogos */
/* HQ: sem moldura branca/bege; páginas inteiras sobre fundo transparente. */
.hm-hq-flat{
  padding:0!important;
  gap:9px;
  background:transparent!important;
  overflow:visible!important;
}
.hm-hq-flat figure{
  background:transparent!important;
  box-shadow:0 7px 16px rgba(59,35,24,.12);
  border:1px solid rgba(126,62,34,.12);
}
.hm-hq-flat img{
  background:transparent!important;
  border-radius:9px;
}

/* E-books: cards sem branco, capas preenchendo a área e títulos discretos. */
.hm-ebooks-flat{
  align-items:stretch;
  gap:10px;
}
.hm-ebook-flat-card{
  padding:0!important;
  background:rgba(255,255,255,.06)!important;
  border:1px solid rgba(255,255,255,.13);
  box-shadow:0 7px 16px rgba(0,0,0,.15);
}
.hm-ebook-flat-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover!important;
  object-position:center top;
  background:transparent!important;
}
.hm-ebook-flat-card span{
  left:0;
  right:0;
  bottom:0;
  padding:7px 7px 6px;
  border-radius:0;
  background:linear-gradient(180deg,transparent,rgba(6,24,48,.92) 45%);
  font-size:6.5px;
  line-height:1.15;
}

/* Jogos: impedir que a imagem force a grade além da altura definida. */
.hm-games-strip{
  min-height:0!important;
  overflow:hidden;
}
.hm-game-feature,
.hm-game-mini,
.hm-game-stack{
  min-width:0;
  min-height:0;
}
.hm-game-feature,
.hm-game-mini{
  display:block;
  height:100%;
}
.hm-game-feature img,
.hm-game-mini img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.hm-game-stack{
  height:100%;
  overflow:hidden;
}
.hm-game-caption{z-index:2}

/* Tablet: todos os três blocos cabem no teto visual da seção. */
@media(max-width:920px) and (min-width:681px){
  .hm-hq-flat,.hm-ebooks-flat{height:198px}
  .hm-games-strip{height:205px!important}
  .hm-game-feature,.hm-game-stack{height:205px}
}

/* Celular. */
@media(max-width:680px){
  .hm-hq-flat,.hm-ebooks-flat{height:160px}
  .hm-games-strip{height:168px!important}
  .hm-game-feature,.hm-game-stack{height:168px}
}


/* JOGOS HOME V7 — mesma linguagem da página /jogos */
.hm-games-home-v7{
  position:relative;
  overflow:hidden;
  padding:30px 0;
  background:
    linear-gradient(155deg,rgba(31,196,189,.18) 0 23%,transparent 23.2% 100%),
    linear-gradient(25deg,transparent 0 70%,rgba(255,255,255,.18) 70.2% 83%,transparent 83.2%),
    linear-gradient(145deg,#dff8f5 0%,#ecfbf9 52%,#f5fffd 100%);
}
.hm-games-home-card{
  width:min(1080px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,.78fr) minmax(420px,1.22fr);
  gap:24px;
  align-items:center;
  min-height:300px;
  padding:22px 24px;
  border:1px solid rgba(255,255,255,.96);
  border-radius:22px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 0 rgba(35,132,138,.08),0 16px 34px rgba(21,104,111,.12);
  backdrop-filter:blur(8px);
}
.hm-games-home-copy{min-width:0}
.hm-games-brandline{
  display:flex;align-items:center;gap:8px;margin-bottom:9px;color:#153b55
}
.hm-games-brandline img{width:34px;height:34px;object-fit:contain}
.hm-games-brandline strong{display:block;font-size:15px;line-height:1;font-weight:950}
.hm-games-brandline small{display:block;margin-top:3px;color:#24b7b1;font-size:7px;font-weight:900;letter-spacing:1.5px}
.hm-games-home-copy h2{
  max-width:430px;margin:0;color:#13334d;font-size:clamp(29px,3.2vw,40px);
  line-height:.98;letter-spacing:-1.5px;font-weight:900;text-wrap:balance
}
.hm-games-home-copy>p{
  max-width:440px;margin:9px 0 0;color:#58788d;font-size:11.5px;line-height:1.5;font-weight:700
}
.hm-games-home-filters{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}
.hm-games-home-filters span{
  padding:6px 8px;border:1px solid #d8eef1;border-radius:10px;background:#f8ffff;
  color:#31586d;font-size:7.5px;font-weight:900;box-shadow:0 2px 0 rgba(35,132,138,.10)
}
.hm-games-home-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:15px}
.hm-games-home-actions a{
  min-height:39px;padding:0 13px;border-radius:11px;display:inline-flex;align-items:center;gap:8px;
  background:#173c59;color:#fff;font-size:9.5px;font-weight:900;text-decoration:none;
  box-shadow:0 4px 0 #0d263a
}
.hm-games-home-actions small{color:#1f8580;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}

.hm-games-home-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,1fr);
  gap:10px;
  height:250px;
  min-width:0;
}
.hm-home-game{
  position:relative;
  display:block;
  min-width:0;
  min-height:0;
  overflow:hidden;
  border:4px solid rgba(255,255,255,.96);
  border-radius:16px;
  background:#dff7f8;
  box-shadow:0 4px 0 rgba(26,121,130,.16),0 9px 18px rgba(21,83,96,.13);
  text-decoration:none;
  isolation:isolate;
  transition:transform .18s ease,box-shadow .18s ease
}
.hm-home-game:hover,.hm-home-game:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 6px 0 rgba(26,121,130,.16),0 13px 24px rgba(20,74,92,.17)
}
.hm-home-game img{
  position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center;
  filter:saturate(1.08) contrast(1.025);transition:transform .2s ease
}
.hm-home-game:hover img,.hm-home-game:focus-visible img{transform:scale(1.025)}
.hm-home-game:after{
  content:"";position:absolute;inset:46% 0 0;
  background:linear-gradient(180deg,transparent,rgba(7,31,50,.88));z-index:1;pointer-events:none
}
.hm-home-game span{
  position:absolute;left:9px;right:9px;bottom:8px;z-index:2;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.42)
}
.hm-home-game strong{display:block;font-size:12px;line-height:1.05}
.hm-home-game small{
  display:block;margin-top:3px;font-size:6.7px;text-transform:uppercase;letter-spacing:.55px;font-weight:900;opacity:.92
}

@media(max-width:920px) and (min-width:681px){
  .hm-games-home-card{
    grid-template-columns:minmax(0,.76fr) minmax(380px,1.24fr);
    gap:18px;min-height:285px;padding:18px 20px
  }
  .hm-games-home-copy h2{font-size:31px}
  .hm-games-home-grid{height:220px;gap:8px}
  .hm-home-game{border-width:3px;border-radius:14px}
  .hm-home-game strong{font-size:10.5px}
  .hm-home-game small{font-size:6px}
}
@media(max-width:680px){
  .hm-games-home-v7{padding:24px 0}
  .hm-games-home-card{display:block;min-height:0;padding:17px;border-radius:18px}
  .hm-games-home-copy{text-align:center}
  .hm-games-brandline,.hm-games-home-filters,.hm-games-home-actions{justify-content:center}
  .hm-games-home-copy>p{margin-inline:auto}
  .hm-games-home-grid{height:205px;margin-top:15px;gap:7px}
  .hm-home-game{border-width:3px;border-radius:13px}
  .hm-home-game span{left:7px;right:7px;bottom:6px}
  .hm-home-game strong{font-size:9px}
  .hm-home-game small{display:none}
}


/* EBOOKS 3 DESTAQUES — ajuste cirúrgico */
.hm-ebooks-flat.hm-ebooks-flat-three{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card span{
  font-size:7.2px;
}
@media(max-width:920px) and (min-width:681px){
  .hm-ebooks-flat.hm-ebooks-flat-three{gap:10px}
  .hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card span{font-size:6.8px}
}
@media(max-width:680px){
  .hm-ebooks-flat.hm-ebooks-flat-three{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card span{
    font-size:5.9px;
    padding:5px;
  }
}


/* EBOOKS FLUID V8 — largura responsiva real */
/* A seção dos e-books usa mais largura para as capas do que para o texto. */
.hm-ebooks-compact .hm-vitrine-card{
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr)!important;
  align-items:center;
}

/* Três capas sempre ocupam 100% da área disponível e preservam a proporção real de livro. */
.hm-ebooks-flat.hm-ebooks-flat-three{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(8px,1.2vw,16px)!important;
  align-items:start!important;
  overflow:visible!important;
}
.hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card{
  position:relative;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:240/340;
  padding:0!important;
  border:1px solid rgba(255,255,255,.16);
  border-radius:12px;
  overflow:hidden;
  background:transparent!important;
  box-shadow:0 8px 18px rgba(0,0,0,.16);
}
.hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
  display:block;
}
.hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card span{
  display:none!important;
}

/* Tablet: mantém duas colunas e entrega mais largura às capas. */
@media(max-width:920px) and (min-width:681px){
  .hm-ebooks-compact .hm-vitrine-card{
    grid-template-columns:minmax(235px,.68fr) minmax(0,1.32fr)!important;
    gap:18px!important;
  }
  .hm-ebooks-flat.hm-ebooks-flat-three{
    gap:9px!important;
  }
}

/* Celular: texto em cima e as três capas usam 100% da largura útil do card. */
@media(max-width:680px){
  .hm-ebooks-compact .hm-vitrine-card{
    display:block!important;
    width:100%!important;
  }
  .hm-ebooks-flat.hm-ebooks-flat-three{
    width:100%!important;
    margin-top:16px;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card{
    width:100%!important;
    aspect-ratio:240/340;
    border-radius:10px;
  }
}


/* EBOOKS MOBILE CAROUSEL V9 + AULAS FIRST */
/* Desktop e tablet: três capas grandes ocupam toda a coluna direita. */
.hm-ebooks-compact .hm-vitrine-card{
  grid-template-columns:minmax(250px,.66fr) minmax(0,1.34fr)!important;
  gap:clamp(18px,2vw,30px)!important;
}
.hm-ebooks-flat.hm-ebooks-flat-three{
  width:100%!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(10px,1.25vw,18px)!important;
  align-items:start!important;
  overflow:visible!important;
}
.hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card{
  width:100%!important;
  aspect-ratio:240/340;
  height:auto!important;
  min-height:0!important;
  border-radius:12px;
  overflow:hidden;
}
.hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center top!important;
}

/* Celular: não comprime os três. Vira uma faixa horizontal de capas grandes. */
@media(max-width:680px){
  .hm-ebooks-compact .hm-vitrine-card{
    display:block!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .hm-ebooks-flat.hm-ebooks-flat-three{
    display:flex!important;
    width:calc(100% + 14px)!important;
    margin:16px -7px 0!important;
    gap:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding:0 7px 5px!important;
  }
  .hm-ebooks-flat.hm-ebooks-flat-three::-webkit-scrollbar{display:none}
  .hm-ebooks-flat.hm-ebooks-flat-three .hm-ebook-flat-card{
    flex:0 0 min(72vw,280px)!important;
    width:min(72vw,280px)!important;
    aspect-ratio:240/340;
    scroll-snap-align:center;
    border-radius:13px;
  }
}

/* Tablet intermediário: dar prioridade à largura das capas. */
@media(max-width:920px) and (min-width:681px){
  .hm-ebooks-compact .hm-vitrine-card{
    grid-template-columns:minmax(220px,.62fr) minmax(0,1.38fr)!important;
    gap:16px!important;
  }
  .hm-ebooks-flat.hm-ebooks-flat-three{gap:9px!important}
}


/* HOME POLISH V10 — acabamento final */
body.portal-publico{overflow-x:clip}

/* Rodapé compacto: encerra a home sem criar uma nova “seção gigante”. */
.portal-footer.hm-footer-v2{
  padding:18px 0 16px;
  background:#071a3a;
  color:#c9d6e8;
}
.hm-footer-v2-inner{
  display:grid;
  grid-template-columns:minmax(210px,.9fr) minmax(300px,1.5fr) auto;
  gap:22px;
  align-items:center;
}
.hm-footer-v2-brand>a{
  display:flex;
  align-items:center;
  gap:9px;
  color:#fff;
  text-decoration:none;
}
.hm-footer-v2-brand img{border-radius:10px}
.hm-footer-v2-brand strong{display:block;font-size:13px;line-height:1.05}
.hm-footer-v2-brand small{
  display:block;
  margin-top:2px;
  color:#8eb0d5;
  font-size:7.5px;
  font-weight:900;
  letter-spacing:.08em;
}
.hm-footer-v2-brand p{
  margin:7px 0 0;
  max-width:310px;
  color:#96aac4;
  font-size:8.5px;
  line-height:1.35;
  font-weight:700;
}
.hm-footer-v2-links{
  display:flex;
  justify-content:center;
  gap:6px 12px;
  flex-wrap:wrap;
}
.hm-footer-v2-links a{
  color:#d6e1ef!important;
  font-size:8.7px;
  font-weight:900;
  text-decoration:none;
  transition:color .15s ease;
}
.hm-footer-v2-links a:hover,
.hm-footer-v2-links a:focus-visible{color:#fff!important}
.hm-footer-v2 .hm-footer-social{
  display:flex;
  justify-content:flex-end;
  gap:7px;
}
.hm-footer-v2 .hm-footer-social a{
  width:31px;
  height:31px;
  border-radius:9px;
  transition:transform .15s ease,background .15s ease;
}
.hm-footer-v2 .hm-footer-social a:hover,
.hm-footer-v2 .hm-footer-social a:focus-visible{
  transform:translateY(-1px);
  background:rgba(255,255,255,.09);
}

/* Consistência de foco e interação nos elementos novos da home. */
.hm-home-game:focus-visible,
.hm-mini-fan a:focus-visible,
.hm-ebook-flat-card:focus-visible,
.hm-product-tab:focus-visible,
.hm-vitrine-actions a:focus-visible,
.hm-games-home-actions a:focus-visible{
  outline:3px solid rgba(255,211,75,.72);
  outline-offset:3px;
}

/* Evita mudanças bruscas de layout quando imagens abaixo da dobra chegam. */
.hm-home-game img,
.hm-mini-fan img,
.hm-hq-flat img,
.hm-ebook-flat-card img{
  content-visibility:auto;
}

@media(max-width:900px){
  .hm-footer-v2-inner{
    grid-template-columns:1fr auto;
    gap:16px 20px;
  }
  .hm-footer-v2-links{
    grid-column:1/-1;
    grid-row:2;
    justify-content:flex-start;
  }
}
@media(max-width:620px){
  .portal-footer.hm-footer-v2{padding:16px 0}
  .hm-footer-v2-inner{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    text-align:center;
  }
  .hm-footer-v2-brand>a{justify-content:center}
  .hm-footer-v2-brand p{margin-inline:auto}
  .hm-footer-v2-links{justify-content:center;gap:7px 13px}
  .hm-footer-v2 .hm-footer-social{justify-content:center}
}
@media(prefers-reduced-motion:reduce){
  .hm-footer-v2-links a,
  .hm-footer-v2 .hm-footer-social a{transition:none!important}
}

/* HQ na home: arte inteira, nas mesmas alturas da vitrine existente. */
.hm-products-compact .hm-hq-flat.hm-hq-banner{display:block;min-width:0}
.hm-products-compact .hm-hq-banner>img{display:block;width:100%;height:100%;max-height:100%;border-radius:0;object-fit:contain!important;object-position:center}


/* VISUAIS REAIS PREMIUM/JORNADA — ajuste cirúrgico, sem alterar a altura da vitrine. */
.hm-products-compact .hm-product-real-shot.premium-shot,
.hm-products-compact .hm-product-real-shot.journey-shot{
  background:#f3f6fb;
}
.hm-products-compact .hm-product-real-shot.premium-shot>img,
.hm-products-compact .hm-product-real-shot.journey-shot>img{
  object-fit:contain!important;
  object-position:center!important;
}
.hm-products-compact .hm-product-real-shot.premium-shot:hover>img,
.hm-products-compact .hm-product-real-shot.journey-shot:hover>img{
  transform:none!important;
}
