/* i18n.css — seletor de idioma (games-v5 2B). Só a edição com prefixo (gringa) carrega este arquivo: o servidor
   injeta o <link> e o controle na página. Na BR ele não existe.

   Forma: a mesma linguagem do botão "Sair" (.btn-ghost) — borda 1px, raio 10px, Chakra Petch 600 —, porque mora ao
   lado dele. Um <select> NATIVO transparente cobre a pílula inteira: no celular abre o seletor do sistema (melhor que
   qualquer menu desenhado), no teclado é um select comum. Nada se anima além da cor (feedback ≤ --dur-3). */

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-height: 44px;
  padding: 0 9px 0 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease, transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}
/* toque responde: a pílula afunda um pouco (o select transparente recebe o :active) */
.lang-switch:active { transform: scale(0.97); }
.lang-switch svg { width: 16px; height: 16px; flex: none; }
.lang-switch .lang-switch__caret { width: 10px; height: 10px; opacity: 0.8; }
.lang-switch__code { text-transform: uppercase; }
/* o select ocupa a pílula inteira (alvo de toque = pílula) e fica invisível; o texto é o código ao lado do globo */
.lang-switch__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* iOS não dá zoom em controle ≥ 16px */
  color: #0b1124;  /* lista nativa legível em sistema claro */
  border: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.lang-switch:focus-within {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
  color: var(--text);
}
@media (hover: hover) and (pointer: fine) {
  .lang-switch:hover { color: var(--text); border-color: var(--blue-deep); }
}

/* login: no alto, à direita, fora do hero */
.lang-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: var(--sp-3, 12px);
}
.lang-bar .lang-switch { min-height: 44px; }

/* celular estreito: o globo sai, fica "EN ▾" — o nome do cliente e o Sair não podem ser empurrados para fora */
@media (max-width: 400px) {
  .topbar .user-chip { gap: 6px; }
  .user-chip .lang-switch { padding: 0 8px; gap: 0; min-width: 44px; justify-content: center; }
  /* r1 F2: alvo de toque 44×44 também no ícone do perfil (sem o nome, ele ficava 38 de largura) */
  .user-chip .user-link { min-width: 44px; justify-content: center; }
  .user-chip .lang-switch .lang-switch__globe,
  .user-chip .lang-switch .lang-switch__caret { display: none; }
  /* com o seletor a mais, o nome cortado em 1 letra ("O…") não diz nada e empurrava a marca: fica o ícone do perfil
     (o link e o nome acessível continuam) e "GAMES" volta a caber inteiro */
  .user-chip .user-link #userName { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch { transition: color 0.2s ease, border-color 0.2s ease; }
  .lang-switch:active { transform: none; }
}

/* ---------- aviso de data FIFA no /palpites (games-v5 F2, só gringa) ----------------------------------------------
   Informação, não alarme: sem vermelho e sem botão. Ícone de pausa no tinte azul calmo do .lock-card, texto à esquerda,
   estático (aparece a cada visita na semana pausada: nada de animação de entrada). */
.aviso-fifa {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  margin: 0 0 var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.aviso-fifa[hidden] { display: none; }
.aviso-fifa__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--lock-tint);
  color: var(--blue-light);
  box-shadow: inset 0 0 0 1px var(--border-soft);
}
.aviso-fifa__icon svg { width: 20px; height: 20px; }
.aviso-fifa__title {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-4);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  color: var(--text);
  overflow-wrap: anywhere;
}
.aviso-fifa__body {
  margin: var(--sp-1) 0 0;
  max-width: 60ch;
  font-size: var(--fs-2);
  line-height: var(--lh-body);
  color: var(--text-2);
}
.aviso-fifa__volta {
  margin: var(--sp-2) 0 0;
  font-size: var(--fs-2);
  font-weight: 700;
  color: var(--text);
}

/* r1 F2 (lente visual M1): /palpites em es/en no celular estreito — "¡Todo al día!" e "3 de 3 pronosticados · …" saíam
   do cartão (scroll lateral de 25–55 px em 360/390). Só a gringa carrega este arquivo: a BR não muda. */
.week-block__head > * { min-width: 0; }
.wrap:not(.wide) .week-block .progress-wrap { flex-wrap: wrap; row-gap: var(--sp-1); min-width: 0; }
.week-block .progress-label { white-space: normal; min-width: 0; flex: 1 1 12ch; overflow-wrap: anywhere; }
.week-block .progress-cta { max-width: 100%; white-space: nowrap; }
