#portalPrefs { gap: 5px; }
.portal-idioma {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.5rem;
  padding: .2rem .45rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  color: inherit;
  font-size: .82rem;
  font-weight: 650;
}
.portal-idioma::after {
  content: '';
  width: .42rem;
  height: .42rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1rem) rotate(45deg);
}
.portal-idioma:hover { border-color: currentColor; }
.portal-idioma:focus-within { outline: 3px solid #4386cd; outline-offset: 2px; }
.portal-idioma select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.idioma-original {
  width: fit-content;
  padding: .35rem .7rem;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.5;
  margin: .65rem 0 1rem;
}
.pg-lume .idioma-original, .lc-leitura .idioma-original { margin: .65rem 0 1rem; }
@media (max-width: 830px) {
  .top-nav > .portal-idioma { justify-self: start; padding: .4rem .65rem; border-color: var(--line); }
}
@media (max-width: 380px) {
  html:not([lang="pt-BR"]) .head-row .brand span { display: none; }
  .section-head { flex-wrap: wrap; }
  .footer-grid { overflow-wrap: anywhere; }
}
@media (min-width: 831px) and (max-width: 1000px) {
  .head-row { column-gap: 10px; }
  .top-nav { column-gap: 11px; }
  .head-actions { gap: 6px; }
}
@media (min-width: 831px) and (max-width: 900px) {
  html[lang="ru"] .head-row { width: calc(100% - 18px); column-gap: 6px; }
  html[lang="ru"] .top-nav { column-gap: 8px; }
  html[lang="ru"] .head-row .brand span { display: none; }
}
html[lang="ru"] .hero h1 { font-size: clamp(52px, 5.4vw, 87px); }
@media (max-width: 640px) {
  html[lang="ru"] .hero h1 { font-size: clamp(34px, 8.5vw, 53px); }
  html[lang="ru"] :is(.community-copy, .community-links, .weapon-caption, .quick-grid strong) {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  html[lang="ru"] .community-copy .action { max-width: 100%; }
}
@media (min-width: 381px) and (max-width: 420px) {
  html[lang="ru"] .head-row { width: calc(100% - 14px); column-gap: 4px; }
  html[lang="ru"] .head-actions { gap: 4px; }
}
