/* Portal navigation: each destination is a focused page, with a concise directory at /. */
body[data-portal-page] #inicio > section { display: none; }
body[data-portal-page="home"] #inicio > #portalHub { display: block; }
body[data-portal-page="game"] #inicio > #jogar,
body[data-portal-page="game"] #inicio > #progresso,
body[data-portal-page="learn"] #inicio > #aprender,
body[data-portal-page="champions"] #inicio > #campeoes,
body[data-portal-page="stories"] #inicio > #personalidades,
body[data-portal-page="featured"] #inicio > #em-alta,
body[data-portal-page="community"] #inicio > #comunidade,
body[data-portal-page="events"] #inicio > #eventos,
body[data-portal-page="shop"] #inicio > #loja { display: block; }
.portal-page-trail { display: none; width: min(1160px, calc(100% - 40px)); align-items: center; gap: 10px; margin: 0 auto; padding: 14px 0 2px; color: var(--muted); font-size: .77rem; }
body[data-portal-page]:not([data-portal-page="home"]) .portal-page-trail { display: flex; }
.portal-page-trail a { min-height: 38px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); color: var(--forest); background: var(--paper); font-weight: 800; text-decoration: none; }
.portal-page-trail a:hover { border-color: var(--gold-dark); background: var(--sage); }
.portal-page-location { color: var(--forest-3); font-weight: 750; }
.home-topbar .intro-return { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--gold-dark); color: var(--forest); background: transparent; font-size: .82rem; font-weight: 850; text-decoration: none; }
.home-topbar .intro-return:hover { color: var(--cream); background: var(--forest); }
.intro-return-icon { font-size: 1.3rem; line-height: 1; }
.home-topbar .intro-return:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.portal-hub { padding: clamp(30px, 5vw, 62px) 0 clamp(44px, 6vw, 76px); }
.portal-hub-shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.portal-hub-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(250px, .85fr); align-items: center; gap: clamp(24px, 5vw, 62px); min-height: 350px; padding: clamp(26px, 5vw, 58px); border: 1px solid var(--brass); color: var(--cream); background: radial-gradient(circle at 88% 20%, rgba(196,163,90,.15), transparent 31%), linear-gradient(132deg, #14241D, #080908 72%); }
.portal-hub-copy .eyebrow { color: var(--gold); }
.portal-hub-copy h1 { max-width: 12ch; margin: 14px 0 13px; color: var(--cream); font: 600 clamp(2.65rem, 5.5vw, 4.45rem)/.96 var(--serif); letter-spacing: -.035em; }
.portal-hub-copy h1 em { color: var(--gold); font-style: italic; }
.portal-hub-copy p { max-width: 580px; margin: 0; color: #e0dacd; font-size: clamp(.93rem, 1.3vw, 1.05rem); line-height: 1.65; }
.portal-hub-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.portal-hub-actions .btn-primary { border-color: var(--gold); color: var(--forest); background: var(--gold); }
.portal-hub-actions .btn-primary:hover { color: var(--cream); background: var(--forest-2); }
.portal-hub-actions .btn-secondary { border-color: var(--cream); color: var(--cream); }
.portal-hub-actions .btn-secondary:hover { color: var(--forest); background: var(--cream); }
.portal-hub-board { display: grid; width: min(100%, 310px); aspect-ratio: 1; grid-template-columns: repeat(4, 1fr); justify-self: center; overflow: hidden; border: 8px solid var(--gold); box-shadow: 0 18px 42px rgba(0,0,0,.32); transform: rotate(-3deg); }
.portal-hub-board span { display: grid; place-items: center; color: var(--forest); background: #e7dfcf; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1; }
.portal-hub-board span:nth-child(4n+2), .portal-hub-board span:nth-child(4n+3) { color: var(--cream); background: #315743; }
.portal-hub-board span:nth-child(n+5):nth-child(-n+8), .portal-hub-board span:nth-child(n+13) { opacity: .95; }
.portal-hub-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: clamp(32px, 5vw, 54px) 0 18px; }
.portal-hub-heading h2 { margin: 8px 0 0; color: var(--forest); font: 600 clamp(1.9rem, 3.5vw, 2.7rem)/1.05 var(--serif); }
.portal-hub-heading p { max-width: 360px; margin: 0 0 4px; color: var(--muted); font-size: .86rem; }
.portal-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.portal-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 5px 16px rgba(8,9,8,.045); }
.portal-card-link { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none !important; }
.portal-card-link:hover .portal-card-visual img { transform: scale(1.035); }
.portal-card-link:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: -3px; }
.portal-card-visual { position: relative; display: grid; min-height: 150px; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; color: var(--cream); background: linear-gradient(135deg, #14241D, #080908); }
.portal-card-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.portal-card-visual::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgba(8,9,8,.75)); pointer-events: none; }
.portal-visual-label { position: absolute; z-index: 1; right: 10px; bottom: 9px; left: 10px; color: white; font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-shadow: 0 1px 4px rgba(0,0,0,.75); }
.portal-card-board { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); background: #14241D; }
.portal-card-board::after { display: none; }
.portal-card-board span { display: grid; place-items: center; color: var(--forest); background: #e7dfcf; font-size: clamp(1.65rem, 4vw, 2.5rem); line-height: 1; }
.portal-card-board span:nth-child(odd) { color: var(--cream); background: #315743; }
.portal-card-copy { display: flex; flex: 1; flex-direction: column; padding: 15px 15px 12px; }
.portal-card-kicker { color: var(--gold-dark); font-size: .6rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.portal-card-copy h3 { margin: 5px 0 5px; color: var(--forest); font: 600 1.45rem/1.08 var(--serif); }
.portal-card-copy p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.portal-card-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; margin-top: auto; padding-top: 11px; color: var(--forest); font-size: .73rem; font-weight: 850; }
.portal-image-credit { margin: 0; padding: 7px 12px; border-top: 1px solid rgba(8,9,8,.07); color: #5b554b; font-size: .58rem; line-height: 1.4; }
.portal-image-credit a { color: var(--forest-3); text-decoration: underline; text-underline-offset: 2px; }
.portal-hub-note { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--gold-dark); color: var(--muted); background: var(--sage); font-size: .76rem; }
.portal-hub-note > span { color: var(--gold-dark); font-size: 1.2rem; }

@media (max-width: 1000px) {
  .portal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-hub-hero { grid-template-columns: minmax(0, 1.15fr) minmax(210px, .85fr); }
}
@media (max-width: 820px) {
  .home-topbar .intro-return { width: 44px; min-width: 44px; padding: 0; }
  .home-topbar .intro-return > span:last-child { display: none; }
}
@media (max-width: 640px) {
  .portal-hub-shell, .portal-page-trail { width: calc(100% - 28px); }
  .portal-hub { padding-top: 20px; }
  .portal-hub-hero { grid-template-columns: minmax(0, 1fr); gap: 23px; min-height: 0; padding: 22px 19px; }
  .portal-hub-copy h1 { max-width: 10ch; font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .portal-hub-copy p { font-size: .88rem; }
  .portal-hub-board { width: min(74%, 250px); }
  .portal-hub-board span { font-size: clamp(2.15rem, 10vw, 3.1rem); }
  .portal-hub-heading { display: block; margin: 31px 0 14px; }
  .portal-hub-heading p { margin-top: 8px; }
  .portal-card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .portal-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; }
  .portal-card-link { display: contents; }
  .portal-card-visual { min-height: 136px; height: 100%; aspect-ratio: auto; }
  .portal-card-copy { padding: 13px 12px; }
  .portal-card-copy h3 { font-size: 1.3rem; }
  .portal-card-copy p { font-size: .7rem; }
  .portal-card-action { min-height: 36px; padding-top: 7px; font-size: .68rem; }
  .portal-image-credit { grid-column: 1 / -1; }
  .portal-page-trail { gap: 7px; font-size: .68rem; }
  .portal-page-trail a { padding-inline: 8px; }
}
@media (max-width: 380px) {
  .portal-card { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .portal-card-visual { min-height: 118px; }
  .portal-card-copy { padding: 10px; }
  .portal-card-copy h3 { font-size: 1.2rem; }
  .portal-card-copy p { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-card-visual img { transition: none; }
}

@media (max-width: 380px) {
  .home-topbar .topbar-main { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "brand menu" "actions actions"; gap: 4px 6px; }
  .home-topbar .topbar-main > .brand { grid-area: brand; min-width: 0; }
  .home-topbar .header-actions { grid-area: actions; justify-content: flex-end; gap: 6px; }
  .home-topbar .intro-return { width: 40px; min-width: 40px; min-height: 42px; }
  .home-topbar .account-button { min-height: 42px; padding-inline: 10px; }
  .home-topbar .mobile-menu { min-width: 74px; min-height: 42px; }
}
