.mast:has(.idiomas[open]) {z-index: 18}
.idiomas {position: relative; pointer-events: auto; justify-self: end; color: #fff3d9; font: 750 14px/1.35 var(--ui)}
.idiomas summary {
  list-style: none; display: flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 44px; min-width: 44px; cursor: pointer; border-radius: 6px; background: #172621;
}
.idiomas .lang-code {display: none}
.idiomas summary {padding-inline: .55rem}
@media (max-width: 650px) {
  .idiomas .lang-name {display: none}
  .idiomas .lang-code {display: inline}
  .idiomas summary {padding-inline: 3px}
}
.idiomas summary::-webkit-details-marker {display: none}
.idiomas .seta {width: .48em; height: .48em; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-.13em) rotate(45deg)}
.idiomas[open] .seta {transform: translateY(.13em) rotate(225deg)}
.idiomas ul {
  position: absolute; top: 100%; right: 0; z-index: 2; list-style: none; margin: 0; padding: .375rem;
  width: max-content; max-width: calc(100vw - 32px); max-height: 72svh; overflow: auto;
  background: #f3ead4; color: #192820; border: 1px solid currentColor; border-radius: .25rem;
}
.idiomas li a {display: flex; align-items: center; min-height: 44px; padding-inline: .75rem}
.idiomas a[aria-current] {font-weight: 850; text-decoration: underline; text-underline-offset: .25em}
.idiomas a:focus-visible {outline-offset: -3px}
@media(max-width:650px){.mast:has(.idiomas){column-gap:4px}}

/* O arco do título tem comprimento fixo no viewBox, inclusive no celular. */
:lang(es) .hero-copy svg {font-size: 146px}
:lang(it) .hero-copy svg {font-size: 150px}
.crew-bio h3, .world-copy h2, .fit-card b, .fit-tabs button,
.bench-intro h3, .dispatches h3, .detail-copy h2, .supply-shelf h3 {
  hyphens: auto; overflow-wrap: anywhere;
}
html:not(:lang(pt)) #powers .power-copy {container-type: inline-size}
html:lang(en) {--power-fit: 20cqi}
html:lang(es), html:lang(fr) {--power-fit: 25cqi}
html:lang(de) {--power-fit: 23cqi}
html:lang(it) {--power-fit: 19cqi}
@media (orientation: landscape) {
  html:not(:lang(pt)) #powers .power-copy h2 {font-size: min(clamp(62px,9.5vw,170px), var(--power-fit))}
}
@media (orientation: portrait) {
  html:not(:lang(pt)) #powers .power-copy h2 {font-size: min(clamp(56px,15vw,115px), var(--power-fit))}
}
@media (max-width: 650px) {
  html:not(:lang(pt)) #powers .switches button {
    flex-direction: column; gap: 1px; padding: 2px; font-size: 12px; line-height: 1.15;
  }
  html:not(:lang(pt)) .crew-bio h3 {font-size: clamp(19px,5.3vw,23px)}
  .fit-tabs button, .fit-card b, .fit-card::after {min-width: 0; overflow-wrap: anywhere}
}
@media (max-width: 650px) and (max-height: 700px) {
  html:not(:lang(pt)) .hero-logo {width: min(52vw,23svh,196px)}
  html:not(:lang(pt)) .hero-copy h1 {width: min(70vw,30svh,300px)}
}
