/* Button Evolution Soccer: as telas da carreira, no visual da direção de arte (arte/DIRECAO_DE_ARTE.md, seção 10).
   A tela é a mesa (feltro e moldura, em index.html); por cima dela, o que se lê está em papel e o que se aperta é placa de lata. */
.carreira { position: fixed; inset: 0; z-index: 6; overflow: auto; --texto: var(--giz); --fraco: rgba(243,239,226,.74); color: var(--giz);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.carreira { background: repeating-linear-gradient(90deg, #236039 0 110px, #1f5733 110px 220px) !important; }
.carreira[hidden], .car-tela[hidden] { display: none; }
.car-tela { max-width: 720px; margin: 0 auto; padding: 14px 14px 40px; }
.car-tela h2 { font: 400 26px/1.1 'Alfa Slab One', Oswald, serif; letter-spacing: .03em; margin: 8px 0 10px; text-transform: uppercase; color: var(--giz); text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.car-tela h3 { font: 700 15px Barlow Condensed, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--fraco); margin: 18px 0 6px; }
.car-tela .dica, .modal .dica { color: var(--fraco); font-size: 13px; margin: 6px 0; }
.voltar { padding: 6px 12px; font-size: 13px; }
.car-rodape { display: flex; justify-content: space-between; gap: 8px; margin: -4px 0 14px; }
canvas.mini { flex: none; vertical-align: middle; }

/* As barras de rolagem (arte/DIRECAO_DE_ARTE.md, 10): um trilho fundo, como o sulco da mesa, e um puxador de madeira
   envernizada, da cor da moldura, que acende em amarelo de giz ao passar o dedo ou o mouse. Valem para tudo que rola. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgba(16,20,24,.28); border-radius: 6px; box-shadow: inset 0 1px 3px rgba(0,0,0,.45), inset 0 -1px 0 rgba(255,255,255,.08); }
::-webkit-scrollbar-thumb { border-radius: 6px; border: 2px solid transparent; background-clip: padding-box;
  background-color: #5b3b22; background-image: linear-gradient(90deg, #7a5131, #5b3b22 45%, #3d2414);
  box-shadow: inset 0 1px 0 rgba(255,222,170,.35), inset 0 -1px 0 rgba(0,0,0,.4); min-height: 28px; }
::-webkit-scrollbar-thumb:horizontal { background-image: linear-gradient(180deg, #7a5131, #5b3b22 45%, #3d2414); }
::-webkit-scrollbar-thumb:hover { background-color: #6b4226; box-shadow: inset 0 0 0 1.5px var(--amarelo), inset 0 1px 0 rgba(255,222,170,.35); }
::-webkit-scrollbar-thumb:active { background-image: linear-gradient(90deg, #8a5d39, #6b4226); box-shadow: inset 0 0 0 1.5px var(--amarelo); }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* sobre o papel, o trilho é um sulco na folha */
.conteudo ::-webkit-scrollbar-track, .modal .cartao::-webkit-scrollbar-track, .cartao ::-webkit-scrollbar-track { background: rgba(31,27,20,.1); box-shadow: inset 0 1px 2px rgba(31,27,20,.3); }
/* os navegadores sem ::-webkit-scrollbar (Firefox) ficam com as cores, sem o desenho */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-color: #5b3b22 rgba(16,20,24,.28); scrollbar-width: thin; } }

/* o que é de papel: a tinta no lugar do giz */
.conteudo, .proximo, .espaco, .clube-card, .meu-clube, .elenco-previa, .dificuldades label {
  --texto: var(--tinta); --fraco: var(--tinta-2); --destaque: var(--carimbo); --linha: rgba(31,27,20,.28); --painel: var(--papel-2);
  color: var(--tinta); background: var(--papel); border-radius: 3px; box-shadow: 0 2px 0 #c9bd9b, 0 8px 18px rgba(0,0,0,.35); }

/* espaços: fichas */
.espacos { display: grid; gap: 12px; }
.espaco { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 14px; border-left: 6px solid var(--carimbo); }
.espaco b { font: 700 18px Barlow Condensed, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.espaco span { color: var(--fraco); font-size: 13px; grid-column: 2; }
.espaco > b:first-child, .espaco > b:first-child + span { grid-column: 1 / -1; }
.espaco canvas + b { grid-column: 2; } .espaco canvas { grid-row: span 2; }
.espaco .acoes { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 10px; border-top: 1px dashed rgba(31,27,20,.4); }
.espaco .acoes button { padding: 8px 12px; font-size: 14px; }

/* nova carreira: os clubes em figurinhas */
.clubes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.clube-card { display: flex; align-items: center; gap: 8px; text-align: left; padding: 8px; text-transform: none; letter-spacing: 0; border: 0; box-shadow: 0 2px 0 #c9bd9b, 0 5px 12px rgba(0,0,0,.3); }
.clube-card b { display: block; font: 700 14px Barlow Condensed, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.clube-card small { color: var(--fraco); font: 500 12px Barlow, sans-serif; }
.clube-card.ligado { background: var(--marca); box-shadow: 0 0 0 3px var(--tinta), 0 5px 12px rgba(0,0,0,.3); }
.dificuldades { display: flex; gap: 8px; margin: 10px 0 14px; }
.dificuldades label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; cursor: pointer; font-weight: 600; box-shadow: 0 2px 0 #c9bd9b; }
.dificuldades label:has(input:checked) { background: var(--marca); box-shadow: 0 0 0 3px var(--tinta); }
.dificuldades input { accent-color: var(--tinta); }

/* menu: o clube numa placa de placar, o próximo jogo num ingresso, as abas de fichário */
.cabecalho { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; background: #0b0b0b radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.5px); background-size: 5px 5px;
  border: 2px solid #000; box-shadow: inset 0 0 0 1px #333, 0 6px 14px rgba(0,0,0,.4); color: var(--giz); --fraco: #9a968a; }
.cabecalho .titulo { flex: 1; min-width: 0; }
.cabecalho .titulo b { display: block; font: 700 18px Oswald, sans-serif; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cabecalho .titulo small, .cabecalho .caixa small { color: var(--fraco); font: 600 11px Barlow Condensed, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.cabecalho .caixa { text-align: right; }
/* a paciência da diretoria (33): um filete sob o caixa */
.cabecalho .diretoria { display: block; width: 100%; min-width: 70px; height: 4px; margin-top: 5px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.cabecalho .diretoria i { display: block; height: 100%; background: #6fcf7f; transition: width .4s; }
.cabecalho .diretoria.atencao i { background: #f2c14e; } .cabecalho .diretoria.ruim i { background: #ef5b4f; }
.confronto.demitido .x > b { color: var(--carimbo); }
.cabecalho .caixa b { display: block; font: 28px/.9 VT323, monospace; color: var(--lampada); text-shadow: 0 0 6px rgba(255,181,46,.7); }
.proximo { position: relative; margin: 14px 0; padding: 14px; }
.confronto { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.confronto .x b { display: block; font: 400 24px 'Alfa Slab One', Oswald, serif; letter-spacing: .02em; white-space: nowrap; }
/* (0.29) os nomes inteiros embaixo das siglas, numa linha só (cada lado cortado se não couber) */
.confronto .x { min-width: 0; }
.confronto .nomes-jogo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 5px; align-items: center; margin: -1px 0 2px; font: 600 11px Barlow, sans-serif; color: var(--tinta-2); white-space: nowrap; }
.confronto .nomes-jogo span { overflow: hidden; text-overflow: ellipsis; }
.confronto .nomes-jogo span:first-child { text-align: right; }
.confronto .nomes-jogo span:last-child { text-align: left; }
.confronto .nomes-jogo i { font-style: normal; opacity: .6; }
.confronto .x small b { display: inline; font: inherit; font-weight: 700; letter-spacing: inherit; } /* a viagem (30) e o clima (1), dentro da linha do mando */
.confronto small { display: block; color: var(--fraco); font-size: 12px; }
.car-tela .proximo .acoes { position: relative; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 2px dashed rgba(31,27,20,.45); }
.proximo .acoes::before, .proximo .acoes::after { content: ''; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: #1f5733; box-shadow: inset 0 2px 3px rgba(0,0,0,.4); }
.proximo .acoes::before { left: -23px; } .proximo .acoes::after { right: -23px; }
.abas { display: flex; gap: 3px; overflow-x: auto; padding: 0 6px; }
.abas button { flex: 1; border: 0; border-radius: 6px 6px 0 0; background: #c9bc98; box-shadow: none; padding: 9px 8px 8px; margin-top: 5px; font-size: 14px; color: var(--tinta-2); }
.abas button.ligado { background: var(--papel); color: var(--tinta); margin-top: 0; padding-top: 14px; box-shadow: inset 0 4px 0 var(--carimbo); }
.abas button:active { transform: none; }
.conteudo { padding: 14px 12px 16px; position: relative; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.chips button { padding: 7px 10px; font: 700 13px Barlow Condensed, sans-serif; letter-spacing: .06em; }
/* os contratos (16): o último ano em vermelho de carimbo; a renovação em três fichas, duração em cima e luvas embaixo */
.ultimo-ano { color: var(--carimbo); font-weight: 700; }
.chips.renovar { justify-content: center; }
.chips.renovar button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; }
.chips.renovar button small { font: 600 12px Barlow, sans-serif; letter-spacing: 0; text-transform: none; }

/* tabela: classificação de jornal */
.tabela { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tabela th { color: var(--tinta); font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .12em; padding: 6px 4px; border-bottom: 2px solid var(--tinta); }
.tabela td { padding: 6px 4px; border-top: 1px solid rgba(31,27,20,.18); text-align: center; font-size: 14px; }
.tabela td:first-child { font: 700 15px Oswald, sans-serif; }
.tabela .esq { text-align: left; }
.tabela.artilharia { margin-top: 18px; }
.tabela.artilharia tr:not(:first-child) td:first-child { font-size: 13px; }
.tabela tr.meu td { background: var(--marca); font-weight: 600; }
.tabela tr.sobe td:first-child { box-shadow: inset 4px 0 #1f7a3d; }
.tabela tr.cai td:first-child { box-shadow: inset 4px 0 var(--carimbo); }
.tabela tr.campeao td:first-child { box-shadow: inset 4px 0 #c8961e; }
/* a faixa de cor também numa seta pequena ao lado da posição */
.tabela tr.sobe td:first-child::after { content: ' ▲'; color: #1f7a3d; font-size: 9px; }
.tabela tr.cai td:first-child::after { content: ' ▼'; color: var(--carimbo); font-size: 9px; }
.tabela tr.campeao td:first-child::after { content: ' ★'; color: #c8961e; font-size: 10px; }
.nome-clube { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* jogos: linhas de caderno */
.jogos { display: grid; gap: 0; }
.linha-jogo { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid rgba(31,27,20,.2); font-size: 14px; }
.linha-jogo.futuro { color: var(--tinta-2); }
.linha-jogo .rod { color: var(--fraco); font: 700 13px Oswald, sans-serif; min-width: 22px; }
.linha-jogo .adv { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.linha-jogo .mando { color: var(--fraco); font-size: 12px; }
.linha-jogo b { font: 700 16px Oswald, sans-serif; } .linha-jogo b.v { color: #1f7a3d; } .linha-jogo b.d { color: var(--carimbo); } .linha-jogo b.e { color: var(--tinta); }

/* elenco */
.linha-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--fraco); }
.linha-topo .chips { flex-wrap: wrap; }
/* o entrosamento (12.5): o anel, o nível e os ajustes em pontos */
.entrosa { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; cursor: default; }
.entrosa svg { display: block; filter: drop-shadow(0 2px 0 rgba(0,0,0,.25)); }
.entrosa .pontos { display: flex; gap: 3px; }
/* as combinações de formatos (3): etiquetas pequenas sob o entrosamento, com o formato desenhado */
.entrosa .combos { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 2px; }
.entrosa .combo { display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 2px; font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #f4ecd8; background: #2f9a52; white-space: nowrap; }
.entrosa .combo svg { fill: currentColor; }
.entrosa .pontos i { width: 6px; height: 6px; border-radius: 50%; background: var(--tinta); }
.entrosa .pontos i.vazio { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(31,27,20,.35); }
.entrosa.n3 svg { animation: entrosaBrilho 2.6s ease-in-out infinite; }
@keyframes entrosaBrilho { 50% { filter: drop-shadow(0 0 5px rgba(47,154,82,.8)); } }
@media (prefers-reduced-motion: reduce) { .entrosa.n3 svg { animation: none; } }
.elenco { display: grid; gap: 6px; }
/* a escalação: a mesa com a formação à esquerda, os botões à direita */
.escalacao { display: grid; grid-template-columns: minmax(150px, 44%) 1fr; gap: 10px; align-items: start; margin-top: 8px; }
.escalacao .elenco { gap: 4px; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.escalacao h4 { margin: 4px 0 0; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--tinta); border-bottom: 2px solid var(--tinta); padding-bottom: 2px; }
.escalacao h4:first-child { margin-top: 0; }
.campo { position: sticky; top: 8px; aspect-ratio: 4 / 5; border-radius: 4px; border: 5px solid #4a2f1b; box-shadow: inset 0 0 0 2px rgba(238,233,218,.75), 0 6px 14px rgba(0,0,0,.4);
  background: repeating-linear-gradient(0deg, #2f6d3f 0 12.5%, #2b6539 12.5% 25%); overflow: hidden; }
.campo i { position: absolute; border: 2px solid rgba(238,233,218,.75); pointer-events: none; }
.campo .meio { left: 50%; top: 0; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.campo .area { left: 24%; right: 24%; bottom: 0; height: 24%; border-bottom: 0; }
.campo .gol { left: 37%; right: 37%; bottom: 0; height: 7%; border-bottom: 0; }
.peca { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 2px; border: 0; background: transparent; width: 24%; min-width: 0; text-transform: none; letter-spacing: 0; box-shadow: none; }
.peca:active { transform: translate(-50%, -50%); box-shadow: none; }
.peca > span { max-width: 100%; padding: 0 3px; border-radius: 2px; background: rgba(8,10,12,.7); color: #fff; font: 600 9px Barlow, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* o nome que não cabe corre para mostrar o resto, e volta (13.2) */
.rola-nome { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rola-nome .rolo { display: inline-block; }
.rola-nome.rola { text-overflow: clip; }
.rola-nome.rola .rolo { animation: rolaNome var(--dur, 4s) ease-in-out infinite alternate; }
@keyframes rolaNome { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--desloca, 0)); } }
@media (prefers-reduced-motion: reduce) { .rola-nome.rola .rolo { animation: none; } .rola-nome.rola { text-overflow: ellipsis; } }
.peca.cansado > span { color: #ffb37a; }
/* o botão do campo: sombra e linha de seleção por filtro, que seguem o contorno do formato (9.5), e não um círculo */
.peca canvas, canvas.retrato { filter: drop-shadow(1px 2px 1.5px rgba(0,0,0,.45)); }
.peca .retrato { display: block; flex: none; }
.peca .mini { width: 34px !important; height: 34px !important; } /* o rosto no campo: pequeno, para os nomes não grudarem */
.peca.escolhido canvas { filter: drop-shadow(2px 0 0 var(--amarelo)) drop-shadow(-2px 0 0 var(--amarelo)) drop-shadow(0 2px 0 var(--amarelo)) drop-shadow(0 -2px 0 var(--amarelo)) drop-shadow(1px 2px 1.5px rgba(0,0,0,.45)); }
.peca.escolhido > span { background: var(--amarelo); color: #1c1608; }
.escalacao .botao-card { gap: 6px; padding: 5px 6px; }
.sigla { flex: none; width: 30px; text-align: center; padding: 2px 0; border-radius: 2px; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .06em; color: #10130f; background: #9aa3ab; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.sigla.goleiro { background: #f2c14e; } .sigla.zagueiro { background: #6fa8dc; } .sigla.meia { background: #7ed492; } .sigla.atacante { background: #ef7b72; }
.sigla.fora { outline: 2px dashed rgba(31,27,20,.7); outline-offset: -2px; }
.botao-card .num { flex: none; width: 18px; text-align: right; font: 700 15px Oswald, sans-serif; color: var(--fraco); }
.botao-card .nivel { flex: none; text-align: center; padding: 3px 4px 2px; border-radius: 3px; background: #141414; font-size: 11px; line-height: 1; }
.botao-card .estrelas { letter-spacing: 0; }
/* o "+" ao lado do nome: abre a melhoria; verde quando há dinheiro para melhorar algum atributo */
.nome-linha { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nome-linha b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.melhorar { flex: none; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; display: grid; place-items: center; font: 700 17px/1 Oswald, sans-serif; background: #b9ae92; color: #f4eedc; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); cursor: pointer; }
.melhorar.pode { background: #2f9a52; color: #fff; box-shadow: inset 0 -2px 0 #1f6b38, 0 0 0 2px rgba(47,154,82,.25); }
/* as abas de dentro do Elenco: fichário pequeno, em cima da aba */
.subabas { display: flex; gap: 4px; margin: 0 0 10px; border-bottom: 2px solid var(--tinta); }
.subabas button { border: 0; border-radius: 4px 4px 0 0; padding: 7px 12px 6px; background: #d6caa6; box-shadow: none; font: 700 13px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-2); }
.subabas button.ligado { background: var(--tinta); color: var(--papel); }
/* (0.29) as abas e os ícones dão um pulinho ao tocar */
#carAbas button:active, .subabas button:active, .abas-pos button:active, .vistas-banco button:active { transform: scale(.92); }
#carAbas button.ligado, .subabas button.ligado, .abas-pos button.on { animation: aba-pulo .28s ease-out; }
@keyframes aba-pulo { 40% { transform: translateY(-3px) scale(1.06); } }
/* (0.29) o Jogar respira quando é o próximo passo */
#carModalBotoes button.jogar-respira { animation: respira 2.2s ease-in-out infinite; }
@keyframes respira { 50% { transform: scale(1.03); box-shadow: 0 0 0 4px rgba(242,193,78,.35), 0 3px 0 rgba(0,0,0,.25); } }
/* (0.29) no resumo da vitória, o meu botão brilha */
.placar-final .lado.venceu canvas { animation: escudo-brilha 1.6s ease-in-out 3; border-radius: 50%; }
@keyframes escudo-brilha { 50% { filter: drop-shadow(0 0 10px rgba(255,214,90,.95)) brightness(1.15); } }
/* (0.29) ao subir de nível no treino, as estrelas acendem uma a uma */
.estrelas.acende::before { animation: estrelas-acende 1.1s steps(var(--passos, 2)) .15s backwards; }
@keyframes estrelas-acende { from { width: var(--de); } }
@media (prefers-reduced-motion: reduce) { #carAbas button.ligado, .subabas button.ligado, .abas-pos button.on, #carModalBotoes button.jogar-respira, .placar-final .lado.venceu canvas, .estrelas.acende::before { animation: none; } }
/* os ícones de ordenar, à direita das abas de dentro */
.subabas .ordem { margin-left: auto; display: flex; gap: 3px; align-items: flex-end; padding-bottom: 3px; }
.subabas .ordem button { display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 3px; background: transparent; color: var(--tinta-2); }
.subabas .ordem button.ligado { background: var(--tinta); color: var(--papel); }
.subabas .ordem button i { font-style: normal; font-size: 9px; }
/* o treinamento: a lista à esquerda e o escolhido à direita (embaixo, no celular) */
.treino { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: start; }
.treino .elenco { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; align-content: start; max-height: min(62vh, 560px); overflow-y: auto; padding-right: 4px; scrollbar-gutter: stable; }
.treino .botao-card { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; margin: 0; }
.treino .botao-card small { text-transform: none; letter-spacing: normal; font-weight: 400; }
.treino .melhorar { width: 16px; height: 16px; font-size: 13px; font-style: normal; }
.treino-painel .detalhe-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.treino-painel .detalhe-cab small { display: block; }
@media (max-width: 620px) { .treino { grid-template-columns: 1fr; } .treino-painel { order: -1; } .treino .elenco { max-height: 48vh; } }
/* o rosto de cada jogador (jogo/rosto.js): num quadradinho de papel, com o traço da súmula */
.rosto { display: block; flex: none; }
.rosto-moldura { display: inline-flex; flex: none; align-self: center; border-radius: 4px; background: #e9dfc3; box-shadow: inset 0 0 0 1.5px rgba(31,27,20,.35); overflow: hidden; }
/* a ficha: uma peça só — o rosto numa moldura com a cor da posição, a sigla numa faixa em cima e o número num selo no canto; as estrelas vão junto da idade */
.ficha { position: relative; flex: none; display: flex; flex-direction: column; width: 40px; border-radius: 5px; overflow: hidden; background: #e9dfc3; border: 2px solid var(--cor-pos, #9aa3ab); box-shadow: 0 1px 0 rgba(31,27,20,.35); }
.ficha.goleiro { --cor-pos: #e0a92c; } .ficha.zagueiro { --cor-pos: #4f8fcc; } .ficha.meia { --cor-pos: #4cb86a; } .ficha.atacante { --cor-pos: #e0574d; }
.botao-card .ficha .sigla, .ficha.fantasma .sigla { width: auto; padding: 1px 0 0; border-radius: 0; box-shadow: none; background: var(--cor-pos, #9aa3ab); color: #10130f; font-size: 10px; line-height: 12px; }
.ficha.fora .sigla { background: repeating-linear-gradient(135deg, var(--cor-pos) 0 4px, rgba(255,255,255,.55) 4px 6px); outline: 0; }
.ficha .rosto { width: 36px; height: 36px; margin: 0 auto; border-radius: 0; background: none; box-shadow: none; }
.botao-card .ficha .num, .ficha.fantasma .num { position: absolute; right: -1px; bottom: -1px; min-width: 16px; padding: 1px 3px 0; border-radius: 4px 0 0 0; background: var(--tinta); color: var(--papel); font: 700 11px/13px Oswald, sans-serif; text-align: center; }
.botao-card > .rosto { align-self: center; border-radius: 4px; background: #e9dfc3; box-shadow: inset 0 0 0 1.5px rgba(31,27,20,.35); }
/* o nível em estrelas: as cinco apagadas e, por cima, a parte acesa (de meia em meia) */
.estrelas { position: relative; display: inline-block; white-space: nowrap; font-family: system-ui, sans-serif; letter-spacing: 1px; color: rgba(255,255,255,.2); vertical-align: -1px; }
.estrelas::before { content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--e); overflow: hidden; color: var(--lampada); text-shadow: 0 0 4px rgba(255,181,46,.55); }
.info small .estrelas, .dica .estrelas, h3 small .estrelas { color: rgba(0,0,0,.18); }
.info small .estrelas::before, .dica .estrelas::before, h3 small .estrelas::before { color: #c98a12; text-shadow: none; }
.escalacao .botao-card .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.escalacao .botao-card .info small { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.escalacao .painel { grid-column: 1 / -1; min-width: 0; }
.escalacao .vaga { min-height: 64px; padding: 0; background: rgba(31,27,20,.04); border: 2px dashed rgba(31,27,20,.35); border-radius: 3px; box-shadow: none; }
.escalacao .vaga:hover { background: rgba(31,27,20,.09); }
.escalacao .vaga:active { transform: none; box-shadow: none; }
.escalacao .reservas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; margin: 4px 0 10px; }
.detalhe-cab { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 3px 3px 0 0; background: var(--marca); border: 1.5px solid var(--tinta); border-bottom: 0; }
.detalhe-cab .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.detalhe-cab .info b { font: 700 16px Barlow Condensed, sans-serif; letter-spacing: .04em; }
.detalhe-cab .info small { color: var(--fraco); font-size: 12px; }
.detalhe.solto { margin-top: 0; border-color: var(--tinta); }
/* os números do botão no clube (34): quatro casas lado a lado, o número grande e o nome embaixo */
.numeros-botao { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 4px 0 8px; }
.numeros-botao span { display: flex; flex-direction: column; align-items: center; padding: 3px 0; border: 1px dashed rgba(31,27,20,.3); border-radius: 3px; }
.numeros-botao b { font: 700 17px Barlow Condensed, sans-serif; line-height: 1.1; }
.numeros-botao small { font-size: 10px; color: var(--fraco); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 520px) {
  #inicio, .carreira { border-width: 7px; }
  .escalacao { grid-template-columns: 46% 1fr; gap: 8px; }
  .campo { aspect-ratio: 3 / 5; border-width: 4px; }
  .peca { width: 30%; }
  .peca .mini { width: 26px !important; height: 26px !important; }
  .escalacao .botao-card { gap: 4px; padding: 5px; }
  .sigla { width: 26px; font-size: 10px; }
  .botao-card .num { width: 15px; font-size: 13px; }
  .botao-card .nivel { font-size: 11px; }
  .conteudo { padding: 12px 8px 14px; }
}
.botao-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 3px; background: var(--papel-2); border: 1.5px solid rgba(31,27,20,.22); cursor: pointer; }
.botao-card.titular { border-color: rgba(31,27,20,.55); }
.botao-card.escolhido, .escalacao .botao-card.escolhido { border-color: var(--tinta); background: var(--marca); box-shadow: 2px 2px 0 var(--tinta); }
.botao-card.trincado { opacity: .6; }
.botao-card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.botao-card .info b { font: 700 15px Barlow Condensed, sans-serif; letter-spacing: .04em; }
.botao-card .info small { color: var(--fraco); font-size: 12px; }
.folego { display: block; height: 5px; border-radius: 1px; background: rgba(31,27,20,.2); overflow: hidden; max-width: 160px; }
/* uma cor só: verde cheia (de 86 para cima), e vai para o amarelo e o vermelho conforme cai */
.folego i { display: block; height: 100%; background: hsl(var(--h, 120) 62% 36%); }
.estrela { padding: 4px 10px; font-size: 18px; color: var(--fraco); background: transparent; }
.estrela.ligado { color: var(--destaque); border-color: var(--destaque); }
.botao-card > button:not(.estrela) { padding: 8px 10px; font-size: 13px; }
.detalhe { padding: 8px 10px 12px; border-radius: 0 0 3px 3px; background: var(--papel); margin-top: -6px; border: 1.5px solid rgba(31,27,20,.3); border-top: 0; }
.atributos { display: grid; gap: 4px; }
.atr { display: grid; grid-template-columns: 60px 1fr 22px auto; align-items: center; gap: 8px; font-size: 13px; }
.atr > b { font: 700 15px Oswald, sans-serif; }
.atr .barra { position: relative; height: 8px; border-radius: 1px; background: rgba(31,27,20,.16); }
.atr .barra i { display: block; height: 100%; border-radius: 1px; background: var(--tinta); }
.atr .barra em { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--carimbo); }
.mini-bt { padding: 4px 8px; font-size: 12px; }
.detalhe .acoes, .car-tela .acoes { display: flex; flex-direction: row; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.detalhe .acoes button, .car-tela .acoes button { padding: 8px 10px; font-size: 13px; }
.car-tela select { width: 100%; padding: 8px; border-radius: 3px; background: #fbf6e6; color: var(--tinta); border: 1.5px solid rgba(31,27,20,.5); font: 500 14px Barlow, sans-serif; }

/* modal e aviso */
.modal { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(6,12,8,.72); }
.modal[hidden] { display: none; }
.modal .cartao { width: min(460px, 100%); max-height: 100%; overflow: auto; text-align: left; }
.modal .cartao h2 { text-align: center; }
.modal .cartao h2:empty { display: none; }
.modal .botoes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.modal textarea.codigo { width: 100%; height: 140px; font: 12px ui-monospace, Consolas, monospace; background: #fbf6e6; color: var(--tinta); border: 1.5px solid rgba(31,27,20,.5); border-radius: 3px; padding: 8px; word-break: break-all; }
.placar-final { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 6px 0 10px; }
.placar-final .lado { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.placar-final .lado small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px Barlow Condensed, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--tinta); }
.placar-final .meio { display: flex; flex-direction: column; align-items: center; }
.placar-final .meio b { font: 400 34px 'Alfa Slab One', Oswald, serif; color: var(--carimbo); white-space: nowrap; }
.placar-final .meio small { font-size: 12px; color: var(--tinta-2); white-space: nowrap; }
.antes .lados { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; }
.antes .lados > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.antes .lados b { font: 700 15px Barlow Condensed, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.antes .lados small { color: var(--fraco); font-size: 12px; }
.antes .x { font: 400 24px 'Alfa Slab One', Oswald, serif; color: var(--carimbo); }
.car-aviso { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9; max-width: 92%; padding: 10px 16px; border-radius: 4px; background: var(--lata); color: var(--giz); border: 2px solid #000; box-shadow: inset 0 0 0 1px #3d3d3d, 0 6px 14px rgba(0,0,0,.5); font: 600 14px Barlow, sans-serif; }
.car-aviso[hidden] { display: none; }

/* o início (13.2) */
.menu-inicio { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.menu-inicio button { text-align: left; }
.menu-inicio button small { display: block; font: 500 12px Barlow, sans-serif; letter-spacing: 0; text-transform: none; opacity: .75; }
.menu-inicio[hidden], .opcoes-partida[hidden] { display: none; }

/* o pós-jogo (13.2): a súmula da partida */
.posjogo { display: grid; gap: 8px; text-align: left; margin: 8px 0; }
.posjogo .grupo { border: 1.5px solid rgba(31,27,20,.4); border-radius: 2px; padding: 10px 12px; }
.posjogo .rotulo { font: 700 12px Barlow Condensed, sans-serif; letter-spacing: .2em; color: var(--tinta); text-transform: uppercase; margin: -10px -12px 8px; padding: 4px 12px; background: rgba(31,27,20,.1); border-bottom: 1.5px solid rgba(31,27,20,.4); }
.posjogo .gols { font-size: 13px; color: var(--texto); display: grid; gap: 2px; }
.posjogo .gols b { font: 700 14px Oswald, sans-serif; color: var(--destaque); margin-right: 4px; }
.posjogo .gols small, .posjogo .melhor small { color: var(--fraco); }
.posjogo .gols .rever { all: unset; box-sizing: border-box; display: flex; align-items: baseline; gap: 4px; width: 100%; padding: 3px 4px; margin: 0 -4px; border-radius: 2px; cursor: pointer; font-size: 13px; color: var(--texto); }
.posjogo .gols .rever small { margin-left: 4px; }
.posjogo .gols .rever i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--destaque); }
.posjogo .gols .rever:hover, .posjogo .gols .rever:focus-visible { background: rgba(31,27,20,.1); }
.posjogo .gols .rever:focus-visible { outline: 2px solid var(--destaque); }
.posjogo .gols .gol-linha { display: flex; align-items: center; gap: 4px; }
.posjogo .gols .gol-linha .rever { flex: 1; margin-right: 0; }
.posjogo .gols .compartilhar { all: unset; cursor: pointer; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 2px; color: var(--destaque); }
.posjogo .gols .compartilhar svg { width: 15px; height: 15px; }
.posjogo .gols .compartilhar:hover, .posjogo .gols .compartilhar:focus-visible { background: rgba(31,27,20,.1); }
.posjogo .gols .compartilhar:focus-visible { outline: 2px solid var(--destaque); }
.posjogo .numeros { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 10px; font: 600 14px Barlow, sans-serif; color: var(--texto); }
.posjogo .numeros span:nth-child(3n+1) { text-align: right; font: 700 16px Oswald, sans-serif; }
.posjogo .numeros span:nth-child(3n+2) { text-align: center; color: var(--fraco); font: 600 12px Barlow Condensed, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.posjogo .numeros span:nth-child(3n) { font: 700 16px Oswald, sans-serif; }
.posjogo .abas-pos { display: flex; gap: 4px; margin-bottom: 8px; }
.posjogo .abas-pos button { all: unset; cursor: pointer; padding: 2px 10px; border: 1.5px solid rgba(31,27,20,.4); border-radius: 2px; font: 700 12px Barlow Condensed, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--fraco); }
.posjogo .abas-pos button.on { background: var(--tinta); border-color: var(--tinta); color: #f4ead5; }
.posjogo .abas-pos button:focus-visible { outline: 2px solid var(--destaque); }
.posjogo .notas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 30vh; overflow-y: auto; }
.posjogo .notas .cab { font: 600 11px Barlow Condensed, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--fraco); margin-bottom: 2px; }
.posjogo .notas .linha { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px; align-items: baseline; font-size: 13px; color: var(--texto); padding: 1px 0; border-bottom: 1px dashed rgba(31,27,20,.15); }
.posjogo .notas .linha small { color: var(--fraco); text-align: right; }
.posjogo .notas .linha span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.posjogo .notas b, .posjogo .nota-craque { font: 700 15px Oswald, sans-serif; }
.posjogo .notas b.alta { color: #2f7a3a; }
.posjogo .notas b.baixa { color: #a8322a; }
/* (0.29) o holofote no craque do jogo (B4): um cone de luz que varre e para em cima dele */
.posjogo .melhor { position: relative; overflow: hidden; }
.posjogo .melhor::before { content: ''; position: absolute; left: -10px; top: -30px; width: 80px; height: 150%; pointer-events: none;
  background: radial-gradient(ellipse 40px 60% at 50% 70%, rgba(255,244,200,.55), transparent 70%);
  animation: holofote 1.6s ease-out backwards, holofote-pulsa 2.4s ease-in-out 1.6s infinite; }
@keyframes holofote { 0% { transform: translateX(260px); opacity: 0; } 30% { opacity: 1; } }
@keyframes holofote-pulsa { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .posjogo .melhor::before { animation: none; } }
.posjogo .melhor .nota-craque { margin-left: auto; font: 700 26px Oswald, sans-serif; letter-spacing: 0; color: var(--destaque); }
.posjogo .numeros.cab span { font: 600 11px Barlow Condensed, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--fraco); margin-bottom: 2px; }
.posjogo .melhor { display: flex; align-items: center; gap: 10px; color: var(--texto); }
.posjogo .melhor b { font: 700 16px Barlow Condensed, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.posjogo .premio { color: var(--texto); font-size: 14px; }
/* o prêmio que conta: o letreiro pula a cada tique e as moedinhas sobem */
.grana-caixa { position: relative; display: inline-block; }
.grana { display: inline-block; padding: 3px 8px 1px; border-radius: 3px; background: #141414; font: 26px/.9 VT323, monospace; color: var(--lampada); text-shadow: 0 0 6px rgba(255,181,46,.7); transform-origin: 50% 70%; }
.grana.pulo { animation: grana-pulo .16s ease-out; }
.grana.fim { animation: grana-fim .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes grana-pulo { 0% { transform: scale(1.28) rotate(var(--giro, 4deg)); } 100% { transform: none; } }
@keyframes grana-fim { 0% { transform: scale(1.6); text-shadow: 0 0 14px rgba(255,200,80,1); } 40% { transform: scale(.92) rotate(-3deg); } 70% { transform: scale(1.06) rotate(2deg); } 100% { transform: none; } }
.moedinha { position: absolute; bottom: 70%; font: 700 15px/1 VT323, monospace; font-style: normal; color: var(--lampada); text-shadow: 0 0 5px rgba(255,181,46,.8); pointer-events: none; animation: moedinha .7s ease-out forwards; }
@keyframes moedinha { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-34px) scale(1.15); opacity: 0; } }
.premio-linha { display: flex; align-items: center; gap: 8px; }
.outros-jogos { margin-top: 6px; }
/* (0.29) as notícias do pós-jogo com ícone, e os outros jogos com escudo e nome inteiro */
.noticia { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; color: var(--tinta); text-align: left; }
.noticia .ic-noticia { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(31,27,20,.08); color: var(--tinta-2); }
.noticia.ruim .ic-noticia { background: rgba(168,50,42,.13); color: var(--carimbo); }
.noticia.bom .ic-noticia { background: rgba(31,122,61,.13); color: #1f7a3d; }
.jogos.outros, .resumo .jogos.outros { grid-template-columns: minmax(0, 1fr); width: min(100%, 460px); margin: 0 auto; } /* (0.29) uma coluna só, centralizada */
h3:has(+ .jogos.outros), .outros-jogos > summary { text-align: center; } /* o título da rodada no centro, em cima dos jogos */
.jogo-outro { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 2px; border-bottom: 1px solid rgba(31,27,20,.15); white-space: nowrap; font-size: 13px; }
.jogo-outro .casa, .jogo-outro .fora { display: flex; align-items: center; gap: 6px; min-width: 0; }
.jogo-outro .casa { justify-content: flex-end; }
.jogo-outro .nome { overflow: hidden; text-overflow: ellipsis; }
.jogo-outro .venceu .nome { font-weight: 700; }
.jogo-outro canvas { flex: none; }
.jogo-outro .placar { font: 700 16px Oswald, sans-serif; font-variant-numeric: tabular-nums; text-align: center; }
.jogo-outro .placar small { display: block; font: 600 9px Barlow, sans-serif; color: var(--fraco); }
.nome-clube .nome-inteiro { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outros-jogos > summary { cursor: pointer; font: 700 13px Barlow Condensed, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--fraco); padding: 6px 0; }
.outros-jogos[open] .jogos { max-height: 40vh; overflow-y: auto; }
/* a troca no mercado: os meus botões, o que o clube aceita em cima; o resto apagado */
.troca-opcoes { display: grid; gap: 6px; max-height: 58vh; overflow-y: auto; text-align: left; }
.troca-opcoes .botao-card { width: 100%; font: inherit; color: inherit; text-transform: none; letter-spacing: normal; margin: 0; }
.troca-opcoes .botao-card small { text-transform: none; letter-spacing: normal; font-weight: 400; }
.troca-opcoes .botao-card.recusa { opacity: .4; cursor: default; }
.troca-opcoes .info { text-align: left; align-items: flex-start; }
.botao-card > button.trocar { padding: 8px 10px; font-size: 13px; }
.posjogo .premio b { display: inline-block; padding: 3px 8px 1px; border-radius: 3px; background: #141414; font: 26px/.9 VT323, monospace; color: var(--lampada); text-shadow: 0 0 6px rgba(255,181,46,.7); }
.posjogo .desgaste { display: grid; gap: 3px; font-size: 13px; color: var(--texto); }
.posjogo .desgaste > div { display: grid; grid-template-columns: 1fr 90px 64px; align-items: center; gap: 8px; }
.posjogo .desgaste small { color: var(--fraco); text-align: right; font-variant-numeric: tabular-nums; }

/* criar o próprio clube (9.4) */
.clube-card.criar { outline: 2px dashed rgba(31,27,20,.5); outline-offset: -5px; }
.meu-clube { margin: 12px 0; padding: 14px; }
.meu-clube[hidden] { display: none; }
.meu-clube .previa { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin-bottom: 8px; }
.meu-clube label { display: grid; gap: 4px; color: var(--fraco); font-size: 13px; margin-bottom: 8px; }
.meu-clube input[type=text] { padding: 9px 10px; border-radius: 3px; background: #fbf6e6; color: var(--tinta); border: 1.5px solid rgba(31,27,20,.5); font: 600 16px Barlow, sans-serif; -webkit-user-select: text; user-select: text; }
.meu-clube .cores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.meu-clube input[type=color] { width: 100%; height: 40px; padding: 2px; border-radius: 3px; background: #fbf6e6; border: 1.5px solid rgba(31,27,20,.5); cursor: pointer; }

/* a prancheta antes da partida (12.1): a formação, o campo e o banco */
.modal .cartao:has(.time-antes) { width: min(660px, 100%); }
.time-antes .formacoes { justify-content: center; flex-wrap: wrap; margin: 6px 0 10px; }
.time-antes .banco { display: grid; gap: 5px; align-content: start; }
.time-antes .reserva.trincado { opacity: .5; }
.time-antes .dica { margin-top: 8px; }

/* o elenco do clube escolhido, na nova carreira (9.4) */
.elenco-previa { margin: 12px 0; padding: 14px; }
.elenco-previa[hidden] { display: none; }
.car-tela .elenco-previa h3 { margin: 0 0 8px; padding-bottom: 4px; color: var(--tinta); border-bottom: 2px solid var(--tinta); }
.elenco-previa h3 small { float: right; font: 600 12px Barlow, sans-serif; letter-spacing: 0; text-transform: none; color: var(--tinta-2); }
.elenco-previa .lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 5px; }
.elenco-previa .botao-card { cursor: default; padding: 5px 8px; gap: 6px; }
.elenco-previa .botao-card .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* a base e a mesa, na aba Clube (11.3, 12.6) */
.jovem .pot { font: 700 13px Barlow Condensed, sans-serif; letter-spacing: .06em; color: var(--destaque); }
.botao-card .dupla { display: flex; flex-direction: column; gap: 4px; }
/* o leilão (17): o cartão dourado, o selo "raro", os lances numa caixa que rola (o mais novo em cima) e o ponto na aba */
.botao-card.leilao { flex-wrap: wrap; box-shadow: inset 0 0 0 2px #c9a227; background: linear-gradient(135deg, rgba(232,194,90,.18), transparent 60%); }
.selo-raro { align-self: flex-start; margin: 1px 0 1px; margin-left: 0; padding: 0 5px; border-radius: 2px; font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: #1f1b14; background: #e8c25a; }
.leilao .lances { flex-basis: 100%; max-height: 66px; overflow-y: auto; margin: 4px 0 0; padding: 4px 0 0; list-style: none; border-top: 1px dashed var(--linha); font-size: 12px; }
.leilao .lances li { display: flex; justify-content: space-between; padding: 1px 2px; color: var(--tinta-2); }
.leilao .lances li:first-child { color: var(--tinta); font-weight: 700; }
.leilao .lances li.meu b { color: var(--carimbo); }
.leilao .fim-leilao { flex-basis: 100%; margin: 4px 0 0; font: 700 13px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--carimbo); }
.leilao .dupla { flex-basis: 100%; flex-direction: row; margin-top: 4px; }
.leilao .dupla button { flex: 1; }
#carAbas button.leilao::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 5px; vertical-align: middle; border-radius: 50%; background: #e8c25a; box-shadow: 0 0 0 1px #1f1b14; }
/* a joia da base (31): o selo azul de pedra lapidada e a proposta de outro clube, numa faixa embaixo do cartão */
.botao-card.joia { flex-wrap: wrap; box-shadow: inset 0 0 0 2px #2f7fbf; }
.selo-joia { margin-left: 5px; font-style: normal; color: #2f7fbf; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.proposta-joia { flex-basis: 100%; display: flex; align-items: center; gap: 6px; padding-top: 5px; border-top: 1px dashed var(--linha); }
.proposta-joia span { flex: 1; display: flex; flex-direction: column; line-height: 1.1; }
.proposta-joia small { color: var(--tinta-2); }
.proposta-joia button { padding: 5px 9px; font-size: 12px; }
.botao-card .dupla button { padding: 6px 10px; font-size: 12px; }
/* no celular, os titulares ao lado do campo ficam estreitos: a ficha encolhe, para caber o nome */
@media (max-width: 520px) {
  .escalacao .elenco .botao-card .ficha { width: 32px; }
  .escalacao .elenco .botao-card .ficha .rosto { width: 28px; height: 28px; }
  .escalacao .elenco .botao-card .ficha .num { font-size: 10px; line-height: 12px; min-width: 13px; }
}
/* arrastar (12.3): a ficha (ou o rosto) segue o dedo; quem vai receber a troca acende; quem saiu fica apagado */
.fantasma { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%, -60%) scale(1.15) rotate(-4deg); box-shadow: 0 8px 16px rgba(0,0,0,.4); opacity: .95; }
.escalacao .botao-card, .escalacao .peca, .prancheta-grade .reserva, .prancheta-grade .peca { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.arrastando .arrastando { opacity: .4; }
.botao-card.solta-aqui, .reserva.solta-aqui { border-color: var(--tinta); background: var(--marca); box-shadow: 0 0 0 3px var(--amarelo); }
.peca.solta-aqui canvas { filter: drop-shadow(2px 0 0 var(--amarelo)) drop-shadow(-2px 0 0 var(--amarelo)) drop-shadow(0 2px 0 var(--amarelo)) drop-shadow(0 -2px 0 var(--amarelo)) drop-shadow(0 0 6px var(--amarelo)); }
.fantasma.retrato { display: block; }
/* a escalação automática, ao lado do entrosamento */
.topo-direita { display: flex; align-items: flex-start; gap: 8px; }
.auto-escala { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: #141414; color: var(--lampada, #ffb52e); box-shadow: 0 2px 0 rgba(0,0,0,.25); cursor: pointer; }
.auto-escala:hover { background: #2a2620; }
.auto-escala:active { transform: translateY(1px); box-shadow: none; }

/* As melhorias do clube (0.27): cartões lado a lado, sem empilhar */
.melhorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; max-height: 60vh; overflow-y: auto; }
.melhoria { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 3px; background: var(--papel-2); border: 1.5px solid rgba(31,27,20,.22); }
.melhoria h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 2px; font: 700 15px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.melhoria p { margin: 0; font-size: 13px; color: var(--tinta-2); }
.melhoria p b { color: var(--tinta); }
.melhoria > button { margin-top: auto; padding: 8px 10px; font-size: 13px; }
.melhoria .feito { margin-top: auto; font: 700 12px Barlow Condensed, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--fraco); }
.melhoria .chips { margin: 2px 0 0; }
.pontos { display: inline-flex; gap: 3px; }
.pontos i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--tinta); }
.pontos i.cheio { background: var(--tinta); }
.patrocinio .metas { list-style: none; margin: 2px 0 6px; padding: 0; display: grid; gap: 5px; }
.patrocinio .metas li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; font-size: 13px; }
.patrocinio .metas .premio { font: 700 13px Oswald, sans-serif; color: var(--tinta); }
.patrocinio .metas .barra { height: 6px; border-radius: 3px; background: rgba(31,27,20,.15); overflow: hidden; }
.patrocinio .metas .barra i { display: block; height: 100%; background: var(--tinta); }
.patrocinio .metas small { font-size: 11px; color: var(--fraco); text-align: right; }
.patrocinio .metas li.feita .barra i { background: #2f8a4a; }
.patrocinio .metas li.feita .meta { text-decoration: line-through; }
.patrocinio.assinado { max-width: 420px; }

/* O capitão (0.27): a braçadeira amarela com o C, e a taça que ele levanta */
/* As habilidades (10): os ícones ao lado do nome e a aba Habilidades do Elenco, numa lista que rola por dentro */
.poder-ic { font-style: normal; font-size: 14px; margin-left: 4px; line-height: 1; }
.habilidades { max-height: min(68vh, 640px); overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; gap: 8px; padding-right: 4px; }
.hab-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.05); }
.hab-card .info small { display: block; opacity: .7; }
.hab-poderes { grid-column: 1 / -1; display: grid; gap: 6px; }
.hab-poder { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(0,0,0,.18); border: 1px solid transparent; }
.hab-poder.ativo { border-color: #f2c14e; }
.hab-poder .poder-ic { font-size: 22px; margin: 0; }
.hab-poder small { display: block; opacity: .75; font-size: 12px; }
.hab-poder .pontos { margin-left: 6px; }
.bracadeira { display: inline-grid; place-items: center; flex: none; width: 15px; height: 15px; border-radius: 3px; background: #f2c14e; box-shadow: inset 0 0 0 1.5px var(--tinta); color: var(--tinta); font: 700 10px/1 Oswald, sans-serif; font-style: normal; }
.taca { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 8px 10px; border-radius: 3px; background: #f7e3a6; border: 1.5px solid var(--tinta); color: var(--tinta); }
.taca .trofeu { font-size: 34px; line-height: 1; }
.taca p { margin: 0; }
/* (0.29) a taça gira com uma chuva dourada (A13) */
.taca { position: relative; overflow: hidden; }
.taca .trofeu svg { animation: taca-gira 2.2s cubic-bezier(.3,.7,.3,1) .2s backwards; }
@keyframes taca-gira { from { transform: perspective(200px) rotateY(-720deg) scale(.6); } }
.taca::before { content: ''; position: absolute; inset: -60px 0 0; pointer-events: none;
  background-image: radial-gradient(circle, #ffd65a 1.5px, transparent 2px), radial-gradient(circle, #fff3b0 1px, transparent 1.6px);
  background-size: 22px 26px, 15px 19px; background-position: 0 0, 7px 5px; animation: chuva-dourada 2.6s linear 2 forwards; opacity: 0; }
@keyframes chuva-dourada { 0% { opacity: 1; background-position: 0 0, 7px 5px; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 4px 78px, 11px 95px; } }
/* (0.29) os efeitos na tela da carreira: o carimbo e as moedas (A14), o martelo (B13) */
.efeito-tela { position: fixed; left: 50%; top: 50%; z-index: 90; pointer-events: none; }
.efeito-tela.carimbo span { display: block; transform: translate(-50%, -50%) rotate(-12deg); padding: 6px 18px; border: 4px solid #c8352b; border-radius: 6px; color: #c8352b;
  font: 700 38px Oswald, sans-serif; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,248,232,.6); animation: carimbo 1.5s ease-out forwards; }
@keyframes carimbo { 0% { transform: translate(-50%, -50%) rotate(-12deg) scale(2.6); opacity: 0; } 14% { transform: translate(-50%, -50%) rotate(-12deg) scale(.94); opacity: 1; } 22% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
.efeito-tela.moeda { width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2a8, #e8b030 55%, #a8741a); border: 1.5px solid #6b4a12;
  animation: moeda-voa .8s cubic-bezier(.5,0,.7,1) backwards; opacity: 0; }
@keyframes moeda-voa { 0% { transform: translate(var(--sx), var(--sy)) scale(.4); opacity: 1; } 25% { transform: translate(calc(var(--sx) * 1.6), calc(var(--sy) * 1.6 - 30px)) scale(1); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(.6); opacity: 1; } }
.efeito-tela.martelo svg { display: block; width: 92px; height: 92px; transform-origin: 50% 90%; translate: -50% -60%; animation: martelo 1.1s ease-in forwards; filter: drop-shadow(0 4px 3px rgba(0,0,0,.4)); }
.efeito-tela.martelo i { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: 8px -10px; border-radius: 50%; border: 3px solid #f2c14e; opacity: 0; animation: martelo-onda .6s ease-out .32s; }
@keyframes martelo { 0% { transform: rotate(-55deg); opacity: 0; } 15% { opacity: 1; } 30% { transform: rotate(18deg); } 40% { transform: rotate(8deg); } 85% { opacity: 1; } 100% { transform: rotate(8deg); opacity: 0; } }
@keyframes martelo-onda { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(5); } }
/* (0.29) a segunda lista de animações da carreira */
/* o caixa conta (D2): verde subindo, vermelho descendo */
.caixa b.sobe { color: #7ee787; } .caixa b.desce { color: #ff8a80; }
/* a rodada nova vira a folha do ingresso (D3) */
.confronto.vira-folha { transform-origin: top; animation: vira-folha .7s cubic-bezier(.3,.8,.3,1); }
@keyframes vira-folha { 0% { transform: perspective(500px) rotateX(-95deg); opacity: .2; } 70% { transform: perspective(500px) rotateX(8deg); opacity: 1; } }
/* o jornal novo entra girando (D4) */
.jornal .edicao.gira { animation: jornal-gira .9s cubic-bezier(.2,.8,.3,1); }
@keyframes jornal-gira { from { transform: rotate(-720deg) scale(.15); opacity: 0; } 70% { opacity: 1; } }
/* os fogos no título (D10) */
.efeito-tela.fogos { left: 0; top: 0; width: 100vw; height: 100vh; }
.efeito-tela.fogos .estouro { position: absolute; width: 0; height: 0; }
.efeito-tela.fogos .estouro i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--cor); box-shadow: 0 0 6px var(--cor); opacity: 0; animation: faisca-fogo 1.3s ease-out backwards; }
@keyframes faisca-fogo { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(70px) translateY(14px); } }
/* a medalha nova gira e brilha (D12) */
.aviso-conquista .medalha { display: inline-block; animation: medalha-gira 1.2s cubic-bezier(.2,.8,.3,1); filter: drop-shadow(0 0 6px rgba(255,214,90,.9)); }
@keyframes medalha-gira { from { transform: perspective(200px) rotateY(-720deg) scale(.3); } }
/* o ingresso do clássico em brasa (D13) */
.confronto.classico { position: relative; animation: brasa 1.6s ease-in-out infinite; }
.confronto.classico::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,150,40,.9) 1.2px, transparent 2px), radial-gradient(circle, rgba(255,90,30,.8) 1px, transparent 1.6px);
  background-size: 26px 30px, 19px 23px; animation: brasa-sobe 3s linear infinite; opacity: .7; }
@keyframes brasa { 50% { box-shadow: 0 0 0 2px rgba(255,110,30,.65), 0 0 14px rgba(255,90,20,.55); } }
@keyframes brasa-sobe { from { background-position: 0 30px, 8px 23px; } to { background-position: 0 -30px, 8px -23px; } }
/* quem chegou ao elenco entra rolando (D14) */
.botao-card.chegou { animation: chega-rolando .9s cubic-bezier(.3,.9,.4,1); }
.botao-card.chegou .ficha, .botao-card.chegou canvas { animation: rola-ficha .9s cubic-bezier(.3,.9,.4,1); }
@keyframes chega-rolando { from { transform: translateX(-110%); opacity: 0; } }
@keyframes rola-ficha { from { transform: rotate(-540deg); } }
@media (prefers-reduced-motion: reduce) { .confronto.vira-folha, .jornal .edicao.gira, .aviso-conquista .medalha, .confronto.classico, .confronto.classico::before, .botao-card.chegou, .botao-card.chegou .ficha, .botao-card.chegou canvas { animation: none; } }
/* (0.29) trocar de aba: o conteúdo entra deslizando (B10) */
#carConteudo.entra { animation: aba-entra .26s ease-out; }
@keyframes aba-entra { from { opacity: 0; transform: translateX(18px); } }
/* (0.29) a tabela anda: cada linha sai do lugar antigo até o novo (B5) */
.tabela tr.anda { animation: linha-anda 1s cubic-bezier(.3,.8,.3,1) .25s backwards; }
.tabela tr.anda.subiu td { animation: linha-subiu 1.6s ease-out .25s; }
@keyframes linha-anda { from { transform: translateY(calc(var(--de) * 100%)); } }
@keyframes linha-subiu { 0%, 60% { background: rgba(126,231,135,.35); } }
/* (0.29) a figurinha nova vira com brilho holográfico (A16) */
.figurinha.nova { position: relative; overflow: hidden; animation: figurinha-vira .9s ease-out; }
.figurinha.nova::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 25%, rgba(255,120,220,.55) 38%, rgba(120,230,255,.55) 48%, rgba(255,250,150,.55) 58%, transparent 70%) no-repeat;
  background-size: 250% 100%; animation: holografico 1.4s ease-in-out .5s 3 backwards; }
@keyframes figurinha-vira { from { transform: perspective(300px) rotateY(180deg); } 50% { transform: perspective(300px) rotateY(90deg); } }
@keyframes holografico { from { background-position: 120% 0; } to { background-position: -40% 0; } }
/* (0.29) no acesso e no título o escudo sobe com a seta; no rebaixamento, desce (B12) */
.escudo-destino { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 2px 0 6px; }
.escudo-destino canvas, .escudo-destino .seta { animation: escudo-sobe 1.2s cubic-bezier(.3,1.5,.5,1) .2s backwards; }
.escudo-destino .seta { font-style: normal; font-size: 26px; color: #2f9e44; }
.escudo-destino.cai canvas, .escudo-destino.cai .seta { animation-name: escudo-cai; }
.escudo-destino.cai .seta { color: #c8352b; }
.escudo-destino.cai canvas { filter: grayscale(.4); }
@keyframes escudo-sobe { from { transform: translateY(40px); opacity: 0; } }
@keyframes escudo-cai { from { transform: translateY(-40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .taca .trofeu svg, .taca::before, #carConteudo.entra, .tabela tr.anda, .tabela tr.anda.subiu td, .figurinha.nova, .figurinha.nova::after, .escudo-destino canvas, .escudo-destino .seta { animation: none; } .taca::before { display: none; } }

/* o nível do clube em estrelas (14): no cabeçalho, no próximo jogo e na escolha do clube */
.cabecalho .titulo small .estrelas { font-size: 12px; letter-spacing: 0; margin-right: 4px; vertical-align: -1px; }
.confronto .niveis-jogo { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; }
.confronto .niveis-jogo i { font-style: normal; color: var(--fraco); }
.clube-card small .estrelas, .confronto .niveis-jogo .estrelas { color: rgba(0,0,0,.18); }
.clube-card small .estrelas::before, .confronto .niveis-jogo .estrelas::before { color: #c98a12; text-shadow: none; }

/* A vitrine de taças (35): uma prateleira de madeira que rola para o lado, com as taças e a temporada de cada uma */
.vitrine { display: flex; gap: 8px; overflow-x: auto; padding: 8px 8px 0; margin: 0 0 10px; background: linear-gradient(#3b2a1c, #2a1d13); border-radius: 4px; border-bottom: 8px solid #6b4a2e; box-shadow: inset 0 6px 10px rgba(0,0,0,.45); scrollbar-gutter: stable; }
.vitrine .trofeu { flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding-bottom: 6px; color: #f4ecd6; text-align: center; }
.vitrine .trofeu svg { width: 40px; height: 52px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.vitrine .trofeu b { font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .04em; line-height: 1.1; }
.vitrine .trofeu small { font-size: 10px; color: #c9b98f; }
.vitrine .placa-recorde { flex: 0 0 104px; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 1px; margin-bottom: 8px; padding: 6px 6px 5px; text-align: center; color: #3a2a12; background: linear-gradient(160deg, #e9cf7e, #b8913d 55%, #d9bb66); border-radius: 3px; box-shadow: 0 3px 4px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,248,214,.5), inset 0 0 0 3px rgba(90,62,20,.35); }
.vitrine .lenda { all: unset; box-sizing: border-box; cursor: pointer; flex: 0 0 72px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding-bottom: 6px; color: #f4ecd6; text-align: center; }
.vitrine .lenda svg { width: 44px; height: 48px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.vitrine .lenda b { font: 700 11px Barlow Condensed, sans-serif; line-height: 1.1; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitrine .lenda small { font-size: 10px; color: #c9b98f; }
.vitrine .lenda.tecnico small { color: #f2c14e; }
.vitrine .lenda:focus-visible { outline: 2px solid var(--destaque); }
.filtro-album { margin-bottom: 8px; display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; }
.chips.filtro-album button { flex: 0 0 auto; padding: 3px 8px; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .04em; min-height: 0; }
.filtro-album small { opacity: .65; margin-left: 2px; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.figurinha { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; text-align: center; background: #f7f1e1; border: 3px solid #b07a4a; border-radius: 4px; box-shadow: 0 2px 3px rgba(0,0,0,.2); min-width: 0; }
.figurinha.prata { border-color: #a9adb3; background: linear-gradient(160deg, #fbfbfb, #e4e6e9); }
.figurinha.ouro { border-color: #c99a2e; background: linear-gradient(160deg, #fff6d6, #f0d98f); }
/* (0.29) a figurinha brilhante (I6): quem foi destaque numa temporada; o brilho corre devagar */
.figurinha.brilhante { position: relative; overflow: hidden; border-color: #9a7cff; box-shadow: 0 0 0 1px #fff inset, 0 0 8px rgba(154,124,255,.6); }
.figurinha.brilhante::before { content: '★'; position: absolute; right: 3px; top: 1px; font-size: 11px; color: #9a7cff; }
.figurinha.brilhante::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 30%, rgba(255,140,230,.45) 42%, rgba(140,230,255,.45) 50%, rgba(255,250,160,.45) 58%, transparent 70%) no-repeat; background-size: 260% 100%; animation: holografico 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .figurinha.brilhante::after { animation: none; background-position: 50% 0; } }
/* (0.29) a Supercopa no fim da temporada */
.supercopa { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 4px 10px; border: 1.5px solid #6b52c9; border-radius: 3px; background: linear-gradient(160deg, #f1ecff, #d9ceff); color: var(--tinta); white-space: nowrap; }
.supercopa .trofeu svg { width: 26px; height: 34px; }
.supercopa div { display: flex; flex-direction: column; }
.supercopa small { font: 600 11px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #4b3a99; }
.supercopa b { font: 700 16px Barlow Condensed, sans-serif; }
.supercopa.meu { box-shadow: 0 0 0 2px #9a7cff, 0 0 12px rgba(154,124,255,.7); }
/* (0.29) o Botão de Ouro no fim da temporada */
.botao-de-ouro { display: flex; align-items: center; gap: 10px; margin: 6px 0; padding: 6px 10px; border: 1.5px solid #c99a2e; border-radius: 3px; background: linear-gradient(160deg, #fff6d6, #f0d98f); color: var(--tinta); white-space: nowrap; }
.botao-de-ouro div { display: flex; flex-direction: column; min-width: 0; }
.botao-de-ouro small { font: 600 11px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a6514; }
.botao-de-ouro b { font: 700 16px Barlow Condensed, sans-serif; overflow: hidden; text-overflow: ellipsis; }
.botao-de-ouro span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.botao-de-ouro.meu { box-shadow: 0 0 0 2px #c99a2e, 0 0 12px rgba(212,175,55,.7); }
/* (0.29) o nome do estádio: um botão-placa no cartão; a lista de nomes */
.nome-estadio { display: block; max-width: 100%; margin: 2px 0 4px; padding: 2px 8px; border: 1.5px solid var(--tinta); border-radius: 2px; background: #2a1d13; color: #f2c14e; font: 700 13px Barlow Condensed, sans-serif; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.lista-nomes { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.lista-nomes button { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-nomes button.ligado { background: var(--tinta); color: var(--papel); }
.figurinha.saiu { filter: grayscale(.55); opacity: .82; }
.figurinha b { font: 700 12px Barlow Condensed, sans-serif; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.figurinha small { font-size: 10px; color: var(--fraco); }
.ficha-lenda { display: flex; gap: 12px; align-items: center; text-align: left; }
.ficha-lenda .quadro svg { width: 70px; height: 77px; }
.vitrine button.placa-recorde { border: 0; font: inherit; cursor: pointer; }
.vitrine button.placa-recorde:focus-visible { outline: 2px solid var(--destaque); }
.vitrine .placa-recorde small { font: 700 9px Barlow Condensed, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #5a3e14; }
.vitrine .placa-recorde b { font: 700 17px Oswald, sans-serif; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitrine .placa-recorde span { font-size: 10px; color: #5a3e14; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitrine .trofeu.vaga { min-height: 82px; border: 1px dashed rgba(244,236,214,.18); border-bottom: 0; border-radius: 4px 4px 0 0; }
.jogos.historia { max-height: 40vh; overflow-y: auto; }
.selo-classico { font: 700 10px Barlow Condensed, sans-serif; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--carimbo); padding: 1px 5px; border-radius: 2px; transform: rotate(-3deg); }
.linha-jogo.classico { background: rgba(168,50,42,.07); }
.confronto.classico { position: relative; }
.confronto.classico::after { content: 'Clássico'; position: absolute; top: -6px; right: -4px; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--carimbo); padding: 2px 7px; border-radius: 2px; transform: rotate(6deg); box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.jornal { max-height: 52vh; overflow-y: auto; display: grid; gap: 8px; padding: 2px; }
.jornal .edicao { padding: 8px 10px 6px; background: #f7f1e1; border: 1px solid rgba(31,27,20,.25); box-shadow: 0 2px 3px rgba(0,0,0,.18); }
.jornal .edicao small { display: block; padding-bottom: 3px; margin-bottom: 4px; border-bottom: 3px double rgba(31,27,20,.55); font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--fraco); }
.jornal .edicao h4 { margin: 0 0 3px; font: 400 16px/1.15 'Alfa Slab One', serif; color: var(--tinta); }
.jornal .edicao p { margin: 2px 0; font: 600 13px Barlow, sans-serif; color: var(--texto); padding-left: 8px; border-left: 2px solid rgba(31,27,20,.3); }
.premiacao { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.premio-div { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 4px; text-align: center; border: 1.5px solid rgba(31,27,20,.35); border-radius: 3px; min-width: 0; }
.premio-div small { font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--fraco); }
.premio-div b { font: 700 15px Barlow Condensed, sans-serif; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premio-div span { font-size: 11px; color: var(--fraco); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.premio-div em { font: 700 13px Oswald, sans-serif; font-style: normal; color: var(--tinta); }
.premio-div.meu { border-color: #b8913d; background: rgba(233,207,126,.35); }
.selecao { margin: 4px 0 8px; }
.selecao > small { display: block; font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--fraco); margin-bottom: 3px; }
.selecao .nomes { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; max-height: 26vh; overflow-y: auto; }
.selecao .nomes span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 3px; border-radius: 2px; }
.selecao .nomes span.meu { background: rgba(233,207,126,.45); }
.selecao .nomes i { font: 700 10px Barlow Condensed, sans-serif; font-style: normal; letter-spacing: .06em; color: var(--fraco); margin-right: 4px; }
.selecao .nomes em { font-style: normal; font-size: 10px; color: var(--fraco); }
.prestigio { color: #8a6a1e; }
.ver-premios { all: unset; cursor: pointer; width: 22px; height: 26px; display: grid; place-items: center; border-radius: 3px; }
.ver-premios i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e3e3e3, #8d8d8d); box-shadow: 0 1px 2px rgba(0,0,0,.4); margin-top: 8px; }
.ver-premios i::before { content: ''; position: absolute; left: 3px; top: -9px; width: 8px; height: 9px; background: linear-gradient(90deg, #2d5aa0 50%, #a8322a 50%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.ver-premios.meu i { background: radial-gradient(circle at 35% 35%, #fbe7a0, #b8913d); }
.ver-premios:hover, .ver-premios:focus-visible { background: rgba(31,27,20,.1); }
.ver-premios:focus-visible { outline: 2px solid var(--destaque); }

/* os dois uniformes do clube na placa (18): o de casa e, encostado embaixo à direita, o de fora, menor */
.cabecalho .uniformes { position: relative; flex: 0 0 auto; width: 48px; height: 44px; }
.cabecalho .uniformes > :first-child { position: absolute; left: 0; top: 0; }
.cabecalho .uniformes .fora { position: absolute; right: 0; bottom: 0; }

/* o visual da mesa do clube (20): amostras redondas de cor, a ligada com o anel de tinta */
.melhoria .visual-mesa { margin-top: 6px; }
.visual-mesa-op { display: grid; gap: 10px; }
.linha-visual b { display: block; font: 700 13px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.linha-visual .amostras { display: flex; flex-wrap: wrap; gap: 6px; }
.amostra { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; background: transparent; box-shadow: none; border: 1.5px solid transparent; border-radius: 4px; }
.amostra i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--tinta); }
.amostra small { font-size: 10px; color: var(--tinta-2); }
.amostra.ligado { border-color: var(--tinta); background: rgba(242,193,78,.35); }
#carBase { max-height: 56vh; overflow-y: auto; } /* a base com a escolinha (41) pode ter 4 jovens: rola dentro */
.caixa-ranking { max-height: 56vh; overflow-y: auto; } /* o ranking de técnicos (42): os 32 rolam dentro */
.pedido { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; padding: 4px 8px; font-size: 13px; color: var(--tinta); border: 1.5px dashed rgba(31,27,20,.35); border-radius: 3px; } /* o pedido da rodada (7) */
.pedido i { font: 700 10px Barlow Condensed, sans-serif; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #2d5aa0; padding: 1px 5px; border-radius: 2px; }
.pedido.diretoria i { background: var(--tinta); }
.pedido b { margin-left: auto; font: 700 14px Oswald, sans-serif; color: #2f7a3a; }
.numeros-botao .moral.alta b { color: #2f7a3a; } .numeros-botao .moral.baixa b { color: var(--carimbo); } /* a moral (28) */
.confronto .viagem { color: var(--carimbo); font-weight: 700; } /* a viagem longa (30) */
.confronto .clima.chuva { color: #2f5f8f; font-weight: 700; } .confronto .clima.calor { color: #b8571a; font-weight: 700; } /* o clima (1) */

/* a suspensão (25): a palavra em vermelho de cartão */
.botao-card .suspenso { color: #d33a2c; font-weight: 700; }

/* o clube parceiro (38): uma faixa curta no topo da Base, com a camisa do parceiro, e o selo na joia que veio de lá */
.parceiro { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 5px 8px; border: 1px dashed var(--linha); border-radius: 2px; }
.parceiro span { display: flex; flex-direction: column; line-height: 1.15; }
.parceiro small { color: var(--tinta-2); font-size: 12px; }
.selo-parceiro { margin-left: 6px; padding: 0 5px; border-radius: 2px; font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: #fff; background: #3c6e8f; }

/* o jogo simulado ao vivo (43, 0.29): no visual da tela de jogar (a pedido do responsável). Em cima, o mesmo placar de
   lâmpadas da partida e, embaixo dele, quem fez os gols; no meio, a mesa (moldura de madeira e feltro em faixas) com os
   números do jogo num placar eletrônico, os lances importantes e o meu time; embaixo, os botões de lata. No celular em pé,
   rodando aparecem os números e os lances; pausado, a prancheta das trocas */
.sim-vivo { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); gap: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: radial-gradient(rgba(255,255,255,.05) 1.2px, transparent 1.8px) 0 0 / 9px 9px, radial-gradient(ellipse at 50% -10%, #23303a 0%, #101418 55%), #101418; color: var(--texto, #ebe6d6); }
.sv-hud { padding: 6px 12px; }
.sv-hud .placar { max-width: 820px; }
.sv-hud .nome { color: var(--texto, #ebe6d6); }
.sv-hud .sv-cor { flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px #3a3a3a; }
.sv-hud .relogio small { white-space: nowrap; }
.sim-vivo.sv-golou .gols { animation: sv-gol .9s ease-out; }
.sim-vivo.sv-golou .placar { animation: sv-pisca .18s steps(2) 5; } /* (0.29) as lâmpadas piscam no gol */
@keyframes sv-pisca { 50% { filter: brightness(1.9); } }
.sv-posse-barra i:first-child { transform-origin: left; animation: sv-balanca 2.6s ease-in-out infinite; position: relative; z-index: 1; box-shadow: 1px 0 0 rgba(255,255,255,.7); } /* (0.29) a posse balança */
@keyframes sv-balanca { 50% { transform: scaleX(1.035); } }
@media (prefers-reduced-motion: reduce) { .sim-vivo.sv-golou .placar, .sv-posse-barra i:first-child { animation: none; } }
@keyframes sv-gol { 0%, 40% { transform: scale(1.4); color: #fff3c4; } 100% { transform: none; } }
/* quem fez os gols, numa linha embaixo de cada time */
.sv-autores { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(820px, 100%); margin: 0 auto; padding: 3px 14px 5px; min-height: 22px;
  font: 600 13px Barlow Condensed, sans-serif; letter-spacing: .04em; color: #d8d2c0; }
.sv-autores > span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.sv-autores > span:last-child { justify-content: flex-end; }
.sv-autores span span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-autores .ico-svg { flex: none; color: var(--lampada, #ffb52e); }
/* a mesa: a moldura de madeira e o feltro da partida */
.sv-mesa { min-height: 0; margin: 4px 10px 8px; padding: 10px; border: 10px solid #5b3b22; border-radius: 14px;
  box-shadow: inset 0 0 0 2px #24160b, inset 0 0 60px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.6);
  background: linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(243,239,226,.35) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    repeating-linear-gradient(90deg, #236039 0 90px, #1f5733 90px 180px); }
.sv-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 10px; height: 100%; min-height: 0; width: min(980px, 100%); margin: 0 auto; }
.sv-painel { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; }
/* o placar eletrônico dos números: lata preta pontilhada, números em lâmpada */
.sv-numeros, .sv-lances, .sv-elenco { border: 2px solid #000; border-radius: 6px; background: rgba(8,10,12,.86) radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.5px); background-size: 5px 5px;
  box-shadow: inset 0 0 0 1px #2c2c2c, 0 6px 16px rgba(0,0,0,.45); }
.sv-numeros { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; }
.sv-publico { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--fraco, #9a968a); }
.sv-publico b { font: 400 24px VT323, monospace; color: var(--lampada, #ffb52e); text-shadow: 0 0 6px rgba(255,181,46,.6); letter-spacing: .04em; }
.sv-posse { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 2px 8px; }
.sv-posse > b { font: 400 22px VT323, monospace; color: var(--lampada, #ffb52e); text-align: center; }
.sv-posse-barra { display: flex; height: 12px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1.5px #000, inset 0 1px 0 rgba(255,255,255,.2); }
.sv-posse-barra i { display: block; height: 100%; transition: width .4s; }
.sv-posse-barra i:last-child { flex: 1; }
.sv-posse small { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 4px; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--fraco, #9a968a); }
.sv-num { display: grid; grid-template-columns: 30px minmax(0, 1fr) 104px minmax(0, 1fr) 30px; align-items: center; gap: 6px; }
.sv-num > b { font: 400 22px VT323, monospace; color: var(--lampada, #ffb52e); text-align: center; line-height: 1; }
.sv-num > span { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--fraco, #9a968a); }
.sv-num small { font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.sv-barra { display: flex; height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.sv-barra.e { justify-content: flex-end; }
.sv-barra i { display: block; height: 100%; border-radius: 3px; transition: width .4s; }
/* os lances importantes, no mesmo placar eletrônico, o mais novo em cima */
.sv-lances { margin: 0; min-height: 0; overflow: auto; list-style: none; padding: 6px 10px; }
.sv-lances li { display: flex; align-items: center; gap: 7px; padding: 5px 2px; border-bottom: 1px solid rgba(255,255,255,.07); white-space: nowrap; font: 500 15px Barlow, sans-serif; color: #e4dfcf; animation: sv-entra .35s ease-out; }
.sv-lances li > b { flex: none; }
.sv-lances li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@keyframes sv-entra { from { opacity: 0; transform: translateY(-6px); } }
.sv-lances li em { flex: none; width: 30px; font: 400 20px VT323, monospace; font-style: normal; color: var(--lampada, #ffb52e); }
.sv-lances li > i { flex: none; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1.5px #000; }
.sv-lances li .ico-svg { flex: none; color: var(--fraco, #9a968a); }
.sv-lances li b { font: 700 15px Barlow Condensed, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.sv-lances li.sv-gol { background: linear-gradient(90deg, rgba(255,181,46,.28), transparent); }
.sv-lances li.sv-gol b { color: var(--lampada, #ffb52e); font-size: 17px; text-shadow: 0 0 8px rgba(255,181,46,.6); }
.sv-lances li.sv-gol .ico-svg { color: var(--lampada, #ffb52e); }
.sv-lances li.sv-intervalo, .sv-lances li.sv-fim { justify-content: center; color: var(--fraco, #9a968a); }
.sv-lances li.sv-troca .sv-sai { color: #ff8a7a; }
.sv-lances li.sv-troca .sv-entra { color: #7fdc8f; font-weight: 600; }
/* o meu time em campo, rodando: nomes com a barra do fôlego, no placar eletrônico */
.sv-elenco { margin: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.sv-bt { display: grid; grid-template-columns: 34px minmax(0, 1fr) 56px; align-items: center; gap: 6px; width: 100%; padding: 5px 8px; text-align: left;
  font: 600 14px Barlow, sans-serif; color: #e4dfcf; background: rgba(255,255,255,.04); border-radius: 4px; }
.sv-bt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-bt small { font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .08em; color: var(--fraco, #9a968a); }
.sv-bt.entrou span { color: #7fdc8f; }
.sv-bt .sv-folego { display: block; width: 100%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.sv-bt .sv-folego i { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.sv-botoes { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 10px 10px; }
.sv-botoes button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 58px; min-height: 48px; padding: 8px 14px; }
#svVel { font: 400 24px VT323, monospace; letter-spacing: 0; }
.sv-trocas { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; color: var(--giz, #f3efe2); font: 400 22px VT323, monospace; }
.sv-botoes [hidden] { display: none; }
/* pausado, a prancheta das trocas, no papel do Elenco: no alto as trocas e o automático, o campo com a formação, o banco
   e embaixo a barra "sai ⇄ entra" com o Trocar */
.sim-vivo.pausado .sv-corpo { grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); }
.sv-elenco.sv-prancheta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "topo topo" "campo banco" "barra barra"; gap: 10px; padding: 12px; border: 0; overflow: hidden;
  background: var(--papel, #efe5cc); color: var(--tinta, #1f1b14); border-radius: 3px; outline: 1px solid rgba(31,27,20,.4); outline-offset: -6px; box-shadow: 0 2px 0 #c9bd9b, 0 10px 24px rgba(0,0,0,.45); }
.sv-tr-topo { grid-area: topo; display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; border-bottom: 3px double rgba(31,27,20,.45); font: 400 26px VT323, monospace; }
.sv-tr-topo .auto-escala { margin-left: auto; }
.sv-tr-campo { grid-area: campo; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.sv-tr-campo .campo { position: relative; top: 0; width: 100%; max-width: 300px; }
.sv-banco { grid-area: banco; display: flex; flex-direction: column; gap: 5px; min-width: 0; min-height: 0; overflow: auto; padding-right: 2px; }
.sv-banco .reserva { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 8px; text-align: left; text-transform: none; letter-spacing: 0; color: var(--tinta); background: rgba(255,255,255,.4);
  border: 1.5px solid rgba(31,27,20,.22); border-radius: 6px; box-shadow: 0 1px 0 rgba(31,27,20,.15); font: 600 14px Barlow, sans-serif; transition: background .15s, transform .15s; }
.sv-banco .reserva:not(:disabled):hover { background: rgba(255,255,255,.75); }
.sv-banco .reserva .atr-mini { gap: 3px; }
.sv-banco .reserva .info { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.sv-banco .reserva .info > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-banco .reserva .info > small { white-space: nowrap; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .06em; color: var(--tinta-2); }
.sv-banco .reserva.alvo { border-color: #2f7a3e; background: rgba(47,122,62,.1); }
.sv-banco .reserva.escolhido { background: var(--amarelo, #f2c14e); border-color: #1f1b14; box-shadow: 0 0 0 2px #1f1b14; transform: translateX(3px); }
.sv-banco .reserva:disabled { opacity: .4; }
/* a barra da troca */
.sv-tr-barra { grid-area: barra; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  background: #1a1d21; color: #ebe6d6; box-shadow: inset 0 0 0 1px #000, 0 4px 12px rgba(0,0,0,.3); }
.sv-vaga { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px; border-radius: 6px; border: 1.5px dashed rgba(255,255,255,.22); min-height: 46px; }
.sv-vaga.cheia { border-style: solid; }
.sv-vaga.sai.cheia { border-color: #ff8a7a; background: rgba(255,138,122,.1); }
.sv-vaga.entra.cheia { border-color: #7fdc8f; background: rgba(127,220,143,.1); }
.sv-vaga .info { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.sv-vaga .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 600 14px Barlow, sans-serif; }
.sv-vaga .info small { display: flex; align-items: center; gap: 5px; white-space: nowrap; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .06em; color: #b9b3a2; }
.sv-vaga .sv-folego { display: inline-block; width: 40px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.sv-vaga .sv-folego i { display: block; height: 100%; }
.sv-vaga-rosto { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.35); font: 700 16px Barlow Condensed, sans-serif; font-style: normal; color: #8d887a; }
.sv-vaga > small { font: 700 12px Barlow Condensed, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8d887a; }
.sv-vaga.sai > small { color: #ff8a7a; } .sv-vaga.entra > small { color: #7fdc8f; }
.sv-seta { color: var(--lampada, #ffb52e); display: flex; }
#svConfirma { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; }
#svConfirma:disabled { opacity: .35; }
@media (max-width: 640px) {
  .sv-mesa { margin: 2px 6px 6px; padding: 8px; border-width: 8px; }
  .sv-corpo { grid-template-columns: minmax(0, 1fr); }
  .sim-vivo:not(.pausado) .sv-elenco { display: none; }
  .sim-vivo.pausado .sv-painel { display: none; }
  .sim-vivo.pausado .sv-corpo { grid-template-columns: minmax(0, 1fr); }
  .sv-elenco.sv-prancheta { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "topo" "campo" "barra" "banco"; gap: 8px; padding: 8px; }
  .sv-tr-campo .campo { width: min(190px, 56%); aspect-ratio: 4 / 5; }
  .sv-tr-barra { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); padding: 6px; gap: 6px; }
  .sv-tr-barra #svConfirma { grid-column: 1 / -1; justify-content: center; min-height: 40px; }
  .sv-vaga { padding: 3px 6px; min-height: 40px; }
  .sv-num { grid-template-columns: 26px minmax(0, 1fr) 92px minmax(0, 1fr) 26px; }
  .sv-autores { font-size: 12px; padding: 2px 10px 4px; }
  .sv-hud { padding: 6px 8px; }
  .sv-hud .placar { gap: 6px; }
  .sv-hud .gols { font-size: 36px; }
}

/* os ícones (44): menos retângulo. As abas viram ícone com o nome curto embaixo; as sub-abas, ícone pequeno sobre o nome;
   as ações do jogador, da base e do próximo jogo, ladrilhos com o ícone num círculo e a legenda embaixo */
.abas button.ico { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 5px; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.abas button.ico.ligado { padding-top: 10px; }
.abas button.ico .ico-svg { width: 22px; height: 22px; }
.subabas button.ico { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 8px 4px; font-size: 10.5px; }
.subabas button.ico .ico-svg { width: 17px; height: 17px; }
.acoes button.ico, .dupla button.ico { display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; min-width: 64px; padding: 6px 6px 5px; border-radius: 10px; font-size: 11.5px; line-height: 1.1; text-align: center; }
.acoes button.ico .ico-svg, .dupla button.ico .ico-svg { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: rgba(31,27,20,.08); box-shadow: inset 0 0 0 1.5px currentColor; }
.acoes button.ico.principal .ico-svg, .dupla button.ico.principal .ico-svg { background: rgba(255,255,255,.15); }
.botao-card .dupla:has(> .ico) { flex-direction: row; }
.car-tela .proximo .acoes button.ico { flex-direction: row; justify-content: center; gap: 8px; border-radius: 6px; font-size: 15px; }
.car-tela .proximo .acoes button.ico .ico-svg { width: 26px; height: 26px; padding: 3px; }
/* no detalhe do jogador, as ações são uma grade de ladrilhos, não faixas empilhadas */
.detalhe .acoes:has(> .ico), .car-tela .detalhe .acoes:has(> .ico) { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.detalhe .acoes:has(> .ico) > button { width: auto; margin: 0; }
.detalhe .acoes:has(> .ico) > #carCapitao { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 6px 4px; border-radius: 10px; font-size: 11.5px; line-height: 1.1; overflow-wrap: anywhere; }
.detalhe .acoes:has(> .ico) > #carCapitao .bracadeira { transform: scale(1.5); margin-top: 4px; }
.detalhe .acoes:has(> .ico) > button { overflow-wrap: anywhere; }
/* uma palavra só no ladrilho (o texto inteiro fica na dica); o "+" de quem pede aumento */
.detalhe .acoes:has(> .ico) > button { position: relative; justify-content: center; min-height: 72px; font-size: 12px; overflow-wrap: normal; white-space: nowrap; }
.detalhe .acoes > button.aumento::after { content: '+'; position: absolute; top: 6px; right: calc(50% - 22px); width: 15px; height: 15px; border-radius: 50%; font: 700 13px/15px Barlow, sans-serif; text-align: center; color: #fff; background: var(--carimbo); box-shadow: 0 0 0 1.5px #1f1b14; }

/* Habilidades e treino enxutos: uma linha por habilidade, da mesma altura, sem buracos; o cartão do treino numa linha só */
.habilidades { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; align-content: start; }
.hab-card { display: block; padding: 0; background: none; }
.hab-card .hab-poder { grid-template-columns: auto auto 1fr auto; gap: 8px; height: 100%; padding: 5px 8px; border-radius: 3px; background: var(--papel-2); border: 1.5px solid rgba(31,27,20,.22); }
.hab-card .hab-poder.ativo { border-color: #c9a227; box-shadow: inset 0 0 0 1px #c9a227; }
.hab-txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hab-txt > span:first-child { display: flex; align-items: center; white-space: nowrap; }
.hab-txt b { font: 700 15px Barlow Condensed, sans-serif; letter-spacing: .04em; }
.hab-txt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.hab-txt .usos { display: block; height: 4px; border-radius: 2px; background: rgba(31,27,20,.15); overflow: hidden; }
.hab-txt .usos i { display: block; height: 100%; background: #c9a227; }
.hab-card .hab-poder button { min-width: 0; padding: 6px 10px; font-size: 13px; }
.hab-card .hab-poder button.ligado { color: #1f1b14; background: #e8c25a; opacity: 1; }
.treino .botao-card { padding: 6px 8px; gap: 8px; }
.treino .botao-card small.curta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* nenhuma linha de cartão quebra: o que não cabe termina em reticências (o nome do clube vai na própria linha) */
.botao-card .info > b, .botao-card .info > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.botao-card .info small.clube-de { font-style: italic; }
.botao-card { min-width: 0; }
/* a mesa do clube em ladrilhos com o desenho de cada uma, numa linha só, e o "Visual" (moldura e traves) no fim */
#carMesa { grid-column: 1 / -1; }
#carMesa h4 .preco { font: 700 12px Barlow Condensed, sans-serif; letter-spacing: .04em; color: var(--tinta-2); }
.mesas-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.mesa-foto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 4px 4px; margin: 0; background: var(--papel); color: var(--tinta); border: 1.5px solid rgba(31,27,20,.3); box-shadow: none; }
.mesa-foto .mesa-mini { width: 100%; max-width: 64px; height: auto; display: block; }
.mesa-foto small { font: 700 12px Barlow Condensed, sans-serif; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.mesa-foto.ligado { border-color: #c9a227; box-shadow: inset 0 0 0 2px #e8c25a; background: #f7e7b4; }
.mesa-foto:disabled:not(.ligado) { opacity: .45; }
.mesa-foto.visual-mesa { margin-top: 0; }
.sim .sim-placar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 0; }
.sim .sim-placar span.t1 { justify-content: flex-end; }
.sim .sim-placar .g { flex: none; }
/* o mercado: o cartão abre a ficha do jogador com os atributos */
.botao-card .info.ver-ficha { cursor: pointer; }
.ficha-mercado .detalhe-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ficha-mercado .detalhe-cab .info { display: flex; flex-direction: column; min-width: 0; }
.ficha-mercado .detalhe-cab b { font: 700 18px Barlow Condensed, sans-serif; }
.ficha-mercado .atr { grid-template-columns: 70px 1fr 24px; }
/* antes da partida (0.28): sem frases; o campo com as cores da mesa, o entrosamento no meio, a saída como uma bola com
   1º e 2º na linha das formações, os ícones do banco e a ficha do jogador tocado embaixo do campo */
.antes .lados b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.antes .lados > div { min-width: 0; }
.antes .lados .x { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.antes .lados .x .entrosa svg { width: 34px; height: 34px; }
.selo-mata { font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: #fff; background: var(--carimbo); padding: 1px 5px; border-radius: 2px; }
.time-antes .formacoes { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; }
.saida-antes { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.saida-antes .bola-ic { display: flex; color: var(--tinta); }
.saida-antes button { min-width: 0; padding: 6px 9px; font-size: 13px; }
.saida-antes button.ligado { background: #f2c14e; color: #1f1b14; }
.time-antes .banco h4 { display: inline-block; margin: 0; }
.vistas-banco { display: inline-flex; gap: 3px; float: right; }
.time-antes .banco .vistas-banco { display: flex; float: none; align-items: center; margin-bottom: 8px; } /* (0.29) as vistas e, à direita, a escalação automática */
.time-antes .banco .vistas-banco .auto-escala { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #141414; color: var(--lampada, #ffb52e); font-size: 0; }
.vistas-banco button { min-width: 0; width: 30px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--papel-2); color: var(--tinta); border: 1.5px solid rgba(31,27,20,.3); box-shadow: none; }
.vistas-banco button.ligado { background: #f2c14e; border-color: #1f1b14; }
.time-antes .reserva .info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.time-antes .reserva .info small b { margin: 0 3px 0 1px; color: var(--tinta); }
.time-antes .reserva .folego { display: inline-block; width: 60px; height: 5px; vertical-align: middle; }
.ficha-escolhido { display: flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 6px; }
.ficha-escolhido .quem { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ficha-escolhido .quem b, .ficha-escolhido .quem small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha-escolhido .atr-mini { display: flex; gap: 6px; }
.ficha-escolhido .atr-mini > span { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 10px; }
.ficha-escolhido .atr-mini small { font-size: 10px; color: var(--tinta-2); }
.ficha-escolhido .atr-mini i { position: relative; width: 8px; height: 26px; background: rgba(31,27,20,.15); border-radius: 2px; overflow: hidden; }
.ficha-escolhido .atr-mini u { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v) * 100%); background: #c9a227; }
.ficha-escolhido .atr-mini b { font-size: 11px; }
/* as barrinhas dos atributos também na linha do banco (na carreira e na partida) */
/* (0.29) os atributos do reserva em plaquinhas iguais, lado a lado: a sigla, o número grande e uma barra embaixo com a cor
   da faixa (fraco vermelho, médio âmbar, bom verde, ótimo verde forte), para ler a força de longe */
.reserva .info { flex: 1; }
.reserva .info .atr-mini { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; margin-top: 3px; }
.reserva .info .atr-mini > span { display: flex; flex-direction: column; align-items: center; padding: 2px 0 3px; line-height: 1; border-radius: 4px;
  background: rgba(31,27,20,.06); border: 1px solid rgba(31,27,20,.13); }
.reserva .info .atr-mini small { font: 600 8.5px Barlow, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-2); }
.reserva .info .atr-mini b { order: 1; margin: 1px 0 2px; font: 700 16px 'Barlow Condensed', Barlow, sans-serif; color: var(--tinta); }
.reserva .info .atr-mini i { order: 2; position: relative; display: block; width: 76%; height: 4px; background: rgba(31,27,20,.14); border-radius: 2px; overflow: hidden; }
.reserva .info .atr-mini u { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: 2px; background: #c9a227; }
.reserva .info .atr-mini .n1 u { background: #c9503f; }
.reserva .info .atr-mini .n2 u { background: #d9a227; }
.reserva .info .atr-mini .n3 u { background: #5aa04a; }
.reserva .info .atr-mini .n4 u { background: #23843f; box-shadow: 0 0 4px rgba(35,132,63,.7); }
.reserva .info .atr-mini .n4 { background: rgba(35,132,63,.12); border-color: rgba(35,132,63,.45); }
.reserva .info .atr-mini .n1 b { color: #9b3a2e; }
/* comparando com o titular tocado: a seta ao lado do número */
.reserva .info .atr-mini .maior b::after, .reserva .info .atr-mini .menor b::after { font-size: 8px; vertical-align: 5px; margin-left: 1px; }
.reserva .info .atr-mini .maior b::after { content: '▲'; }
.reserva .info .atr-mini .menor b::after { content: '▼'; }
.reserva .info .atr-mini .maior { border-color: rgba(31,122,58,.6); }
.reserva .info .atr-mini .menor { border-color: rgba(179,55,43,.55); }
.reserva.escolhido .info .atr-mini > span { background: rgba(255,255,255,.35); }
/* antes da partida sem rolagem: o campo cabe na altura da tela, os combos ficam só na dica do anel, Jogar e Voltar lado a lado */
.antes .lados .x { flex-direction: row; gap: 6px; }
.antes .entrosa .combos { display: none; }
.antes .lados small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.time-antes .prancheta-grade .campo { width: min(100%, calc((100vh - 330px) * 0.8)); justify-self: center; }
.ficha-escolhido:empty { min-height: 0; margin: 0; }
.modal .cartao:has(.antes) .botoes { flex-direction: row; }
.modal .cartao:has(.antes) .botoes > button:first-child { flex: 2; }
.modal .cartao:has(.antes) .botoes > button { flex: 1; }
.time-antes .banco .ficha-escolhido { flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 8px; border-top: 2px solid var(--tinta); }
.time-antes .banco .ficha-escolhido:empty { display: none; }
/* o pós-jogo enxuto (0.28): o craque e o prêmio no alto; as abas com ícone e uma caixa de altura fixa, uma de cada vez */
.posjogo [hidden] { display: none !important; }
.posjogo .pj-topo { display: flex; gap: 8px; align-items: stretch; }
.posjogo .melhor { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1.5px solid rgba(31,27,20,.4); border-radius: 2px; background: rgba(242,193,78,.18); }
.posjogo .melhor .quem { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.posjogo .melhor .quem b { font: 700 16px Barlow Condensed, sans-serif; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posjogo .melhor .quem small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posjogo small.rotulo { all: unset; font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--fraco); }
.posjogo .pj-topo .premio { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 12px; border: 1.5px solid rgba(31,27,20,.4); border-radius: 2px; }
.posjogo .cor-time { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 5px 0 2px; vertical-align: middle; box-shadow: 0 0 0 1.5px #1f1b14; font-style: normal; flex: none; }
.posjogo .abas-pos { display: flex; gap: 4px; margin: 2px 0 0; border-bottom: 2px solid var(--tinta); }
.posjogo .abas-pos button { all: unset; cursor: pointer; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 4px 4px; border: 1.5px solid rgba(31,27,20,.3); border-bottom: 0; border-radius: 3px 3px 0 0; color: var(--tinta-2); font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .1em; text-transform: uppercase; background: var(--papel-2); }
.posjogo .abas-pos button.on { background: var(--tinta); border-color: var(--tinta); color: #f4ead5; }
.posjogo .pj-palco { height: min(34vh, 260px); overflow-y: auto; padding: 8px 4px 2px; }
.posjogo .pj-palco .notas { max-height: none; overflow: visible; }
/* (0.29) o mapa dos chutes: a mesa à esquerda e a contagem de cada time ao lado */
.posjogo .mapa-caixa { display: flex; gap: 12px; align-items: center; justify-content: center; height: 100%; }
.posjogo .mapa-chutes { height: 100%; max-height: 240px; width: auto; }
.posjogo .mapa-legenda { display: flex; flex-direction: column; gap: 8px; font: 600 15px Barlow Condensed, sans-serif; white-space: nowrap; }
.posjogo .mapa-legenda b { margin: 0 2px 0 6px; }
.posjogo .gols > div, .posjogo .gols .rever { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.posjogo .gols .nome { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.posjogo .gols .nome small { margin-left: 3px; }
.posjogo .gols .tag { margin-left: 6px; padding: 0 5px; font: 700 10px Barlow Condensed, sans-serif; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: #1f1b14; background: #e8c25a; border-radius: 2px; flex: none; }
.posjogo .numeros.cab span:first-child { text-align: right; } .posjogo .numeros.cab span:last-child { text-align: left; }
.posjogo .desgaste > div { white-space: nowrap; }
.posjogo .desgaste > div span:first-child { overflow: hidden; text-overflow: ellipsis; }
/* o jogo em ícones (0.28): casa ou fora, a mesa, o clima, a viagem e o mata-mata, numa linha */
.icones-jogo { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 3px; }
.ic-jogo { display: inline-flex; align-items: center; color: var(--tinta); font-style: normal; }
.ic-jogo.mesa .mesa-mini { width: 30px; height: auto; display: block; }
.ic-jogo.clima.chuva { color: #2a6fbf; } .ic-jogo.clima.calor { color: #d9822b; } .ic-jogo.viagem { color: var(--carimbo); }
.linha-jogo .mando { display: inline-flex; align-items: center; color: var(--tinta-2); }
.linha-jogo .adv { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* as melhorias com ícones e números; o botão é a seta e o preço */
.melhoria h4 .tit { display: inline-flex; align-items: center; gap: 6px; }
.nums-melhoria { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 4px; }
.nums-melhoria > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 15px; color: var(--tinta-2); }
.nums-melhoria b { font: 700 17px Barlow Condensed, sans-serif; color: var(--tinta); }
.nums-melhoria i { font-style: normal; color: var(--fraco); }
.melhoria > button.principal { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* o patrocínio: a meta como ícone e número */
.patrocinio .metas .meta { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.patrocinio .metas .meta b { font: 700 15px Barlow Condensed, sans-serif; }
.patrocinio .luvas { display: inline-flex; align-items: center; gap: 5px; }
/* arte final (0.28): o disco do poder, a taça desenhada e o raio do clássico */
.poder-disco { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cor); box-shadow: 0 0 0 1.5px #1f1b14, inset 0 -2px 0 rgba(0,0,0,.2); vertical-align: middle; }
.poder-ic { display: inline-flex; }
.taca .trofeu svg { width: 40px; height: 52px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.selo-classico.ico { display: inline-flex; padding: 2px; transform: none; }
.selo-classico.ico svg { stroke: #fff; }
/* as conquistas (14): medalhas de traço num disco; a feita, dourada; a que falta, apagada */
.conq-cartao { width: min(460px, 100%); }
.conq-numeros { display: flex; justify-content: space-around; gap: 8px; margin: 4px 0 12px; padding: 8px 4px; background: var(--papel-2); border-radius: 3px; }
.conq-numeros span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.conq-numeros b { font: 700 18px Oswald, sans-serif; }
.conq-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px 6px; }
.conq { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.conq small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 12px; color: var(--tinta-2); }
.conq.feita small { color: var(--tinta); font-weight: 700; }
.medalha { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; color: rgba(31,27,20,.35); background: rgba(31,27,20,.08); box-shadow: inset 0 0 0 2px rgba(31,27,20,.18); }
.medalha.feita { color: #1f1b14; background: radial-gradient(circle at 35% 30%, #ffe69a, #e0b43a 60%, #b8891f); box-shadow: 0 0 0 1.5px #1f1b14, inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 3px rgba(0,0,0,.3); }
.aviso-conquista { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.conquista-nova { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: var(--papel, #f3ead2); color: #1f1b14; border-radius: 30px; box-shadow: 0 0 0 1.5px #1f1b14, 0 6px 16px rgba(0,0,0,.45); white-space: nowrap; animation: conq-entra 3.2s ease both; }
.conquista-nova .medalha { width: 34px; height: 34px; }
@keyframes conq-entra { 0% { opacity: 0; transform: translateY(-14px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.calmo .conquista-nova { animation: none; }
/* a História e o jornal em ícones (0.28) */
.selos-hist { display: flex; gap: 8px; flex-wrap: nowrap; margin: 2px 0 10px; }
.selo-hist { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; white-space: nowrap; background: var(--papel-2, #ece2c6); border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(31,27,20,.25); font: 600 13px Barlow, sans-serif; }
.jornal .edicao small { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.jornal .edicao small .ed-temp { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; }

/* a comparação com o titular escolhido (0.29): verde maior, vermelho menor, igual na cor de sempre */
.atr-mini .maior b { color: #1f7a3a; font-weight: 800; }
.atr-mini .maior u { background: #2f9a4e !important; }
.atr-mini .menor b { color: #b3372b; font-weight: 800; }
.atr-mini .menor u { background: #c9503f !important; }

/* as trocas da mesa (0.29): o reserva com a posição e as estrelas, e as trocas num ícone */
#trocasResta { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font: 400 20px VT323, monospace; vertical-align: middle; }
.reserva .info .pos-est { display: block; white-space: nowrap; font: 700 11px Barlow Condensed, sans-serif; letter-spacing: .06em; color: var(--tinta-2); }
/* no Elenco, o reserva comparado com o titular escolhido */
.botao-card .info .atr-mini { display: flex; gap: 2px; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.botao-card .info .atr-mini i { display: none !important; }
.botao-card .info .atr-mini > span { display: flex; align-items: center; gap: 1px; font-size: 10px; }
.botao-card .info .atr-mini small { font-size: 9px; color: var(--tinta-2); }
.botao-card .info .atr-mini i { position: relative; display: inline-block; width: 5px; height: 14px; background: rgba(31,27,20,.15); border-radius: 1px; overflow: hidden; }
.botao-card .info .atr-mini u { position: absolute; left: 0; right: 0; bottom: 0; background: #c9a227; }
.botao-card .info .atr-mini b { font-size: 11px; color: var(--tinta); }

/* (0.29) a divisão sem palavras: escudinho com o número (FIco.divisao); o nome só na dica */
.div-ico { display: inline-flex; vertical-align: -0.2em; line-height: 0; flex: none; }
.div-ico svg { display: block; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
button.bt-div { min-width: 0; padding-inline: .6em; }
button.bt-div:not(.ligado) .div-ico { opacity: .55; }

/* (0.29, a pedido do responsável) o resumo da partida no celular: cabe na largura e, o quanto der, na altura, sem barras
   de rolagem; as abas só com o ícone (o nome fica na dica) e a caixa do painel do tamanho do que tem dentro */
.posjogo > *, .posjogo .pj-topo > * { min-width: 0; }
.posjogo .abas-pos button { min-width: 0; }
@media (max-width: 560px) {
  .modal { padding: 8px; }
  .modal .cartao:has(.posjogo) { padding: 14px 12px 12px; overflow-x: hidden; height: 100%; display: flex; flex-direction: column; }
  .modal .cartao:has(.posjogo) #carModalCorpo { flex: 1 0 auto; display: flex; flex-direction: column; }
  .modal .cartao:has(.posjogo) .resumo, .modal .cartao:has(.posjogo) .posjogo { flex: 1 0 auto; display: flex; flex-direction: column; }
  .modal .cartao:has(.posjogo) .pj-palco { flex: 1 0 auto; }
  .modal .cartao:has(.posjogo) h2 { margin-bottom: 4px; }
  .placar-final { margin: 2px 0 6px; gap: 6px; }
  .placar-final .lado small { font-size: 12px; }
  .posjogo { gap: 6px; margin: 4px 0; }
  .posjogo .melhor { padding: 4px 8px; gap: 8px; }
  .posjogo .melhor canvas { width: 36px !important; height: 36px !important; }
  .posjogo .melhor .nota-craque { font-size: 22px; }
  .posjogo .pj-topo .premio { padding: 4px 8px; }
  .posjogo .premio b { font-size: 22px; }
  .posjogo .abas-pos button { padding: 6px 2px 5px; }
  .posjogo .abas-pos button span { display: none; }
  .posjogo .pj-palco { height: auto; overflow: visible; padding: 6px 2px 0; }
  .posjogo .mapa-chutes { height: 170px; }
  .posjogo .desgaste > div { grid-template-columns: minmax(0, 1fr) 70px 56px; gap: 6px; }
  .modal .cartao:has(.posjogo) .noticia { margin: 4px 0; }
  .modal .cartao:has(.posjogo) h3 { margin: 6px 0 2px; }
  .modal .cartao:has(.posjogo) .jogo-outro { padding: 3px 2px; }
  .modal .cartao:has(.posjogo) .botoes { margin-top: 8px; }
}
@media (max-width: 560px) and (max-height: 720px) {
  .modal .cartao:has(.posjogo) { scrollbar-width: none; } /* se ainda faltar um pouco, rola sem a barra */
  .modal .cartao:has(.posjogo)::-webkit-scrollbar { display: none; }
  .modal .cartao:has(.posjogo) h2 { font-size: 22px; }
  .placar-final .lado canvas { width: 36px !important; height: 36px !important; }
  .placar-final .meio b { font-size: 28px; }
  .posjogo .melhor canvas { width: 30px !important; height: 30px !important; }
  .posjogo .abas-pos button { padding: 4px 2px 3px; }
  .posjogo .notas .linha { padding: 0; font-size: 12px; line-height: 1.25; }
  .posjogo .pj-palco { padding-top: 3px; }
  .posjogo .notas .cab { margin-bottom: 0; }
  .posjogo .desgaste { gap: 1px; font-size: 12px; }
  .posjogo .numeros { gap: 2px 10px; }
  .posjogo .mapa-chutes { height: 130px; }
  .modal .cartao:has(.posjogo) .noticia { font-size: 12px; }
  .modal .cartao:has(.posjogo) .jogo-outro { padding: 2px; font-size: 12px; }
}

/* (0.29, a pedido do responsável) celular sem barras de rolagem: as barras de madeira são do computador; no celular (tela
   estreita ou toque) elas somem, e o dedo rola como sempre. As caixas que rolavam dentro da página (lista de jogadores,
   melhorias, álbum, ranking de técnicos, outros jogos) passam a crescer com a página, para não haver rolagem dentro de rolagem */
@media (max-width: 560px), (pointer: coarse) {
  * { scrollbar-width: none; }
  ::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
@media (max-width: 560px) {
  .treino .elenco, .melhorias, .album, .caixa-ranking, .outros-jogos[open] .jogos { max-height: none; overflow: visible; }
  .treino .elenco { padding-right: 0; scrollbar-gutter: auto; }
  .subabas:has(.ordem) > button.ico .ico-txt { display: none; } /* com os botões de ordenar ao lado, as sub-abas só com o ícone */
  .subabas:has(.ordem) > button.ico { padding-inline: 10px; }
  /* o ranking de técnicos cabe na largura: colunas fixas, e o nome do clube corre dentro da dele */
  .tabela.ranking { table-layout: fixed; width: 100%; }
  .tabela.ranking th:first-child { width: 24px; } .tabela.ranking th:nth-child(2) { width: 36%; } .tabela.ranking th:last-child { width: 34px; }
  .tabela.ranking td { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .tabela.ranking .nome-clube { display: flex; max-width: 100%; min-width: 0; }
  .tabela.ranking .nome-clube .nome-inteiro { min-width: 0; }
}
/* (0.29) antes do jogo, no celular: o campo do tamanho que sobra e o banco em duas colunas (na vista dos atributos, uma);
   em celular baixo, o banco ao lado do campo */
@media (max-width: 560px) {
  .modal:has(.time-antes) { padding: 8px; }
  .modal .cartao:has(.time-antes) { padding: 12px 10px 10px; overflow-x: hidden; }
  .modal .cartao:has(.time-antes) h2 { margin-bottom: 2px; }
  .time-antes .formacoes { margin: 4px 0 6px; gap: 4px; }
  .time-antes .formacoes > button { flex: 1 1 0; min-width: 0; padding-inline: 2px; }
  .time-antes .saida-antes { gap: 2px; } .time-antes .saida-antes button { padding: 6px 6px; }
  .time-antes .prancheta-grade { gap: 6px; }
  .time-antes .prancheta-grade .campo { width: min(100%, 300px, calc((100dvh - 620px) * .8)); }
  .time-antes .banco .ficha-escolhido { flex-direction: row; align-items: center; gap: 8px; padding: 4px 6px; min-height: 68px; }
  .time-antes .banco .ficha-escolhido:empty { display: block; border-top: 0; } /* o lugar da ficha fica guardado: o campo não pula */
  .time-antes .banco .ficha-escolhido .quem { flex: 0 1 38%; min-width: 0; }
  .time-antes .banco .ficha-escolhido .atr-mini { flex: 1; min-width: 0; }
  .time-antes .banco { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .time-antes .banco > h4, .time-antes .banco > .vistas-banco, .time-antes .banco > .ficha-escolhido { grid-column: 1 / -1; }
  .time-antes .banco .vistas-banco { margin-bottom: 2px; }
  .time-antes .banco:has(.reserva .atr-mini) { grid-template-columns: minmax(0, 1fr); }
  .time-antes .reserva { padding: 3px 5px; gap: 5px; }
  .modal .cartao:has(.time-antes) .botoes { margin-top: 8px; }
}
@media (max-width: 560px) and (max-height: 760px) {
  .time-antes .prancheta-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .time-antes .prancheta-grade .campo { width: min(100%, calc((100dvh - 330px) * .8)); }
  .time-antes .banco, .time-antes .banco:has(.reserva .atr-mini) { grid-template-columns: minmax(0, 1fr); }
}
/* (0.29) a prancheta do jogo simulado no celular: o banco em duas colunas, cada reserva com o rosto, o nome, a posição e
   só a plaquinha do fôlego ao lado (o resto dos atributos aparece na vaga do "entra"), sem caixa rolando */
@media (max-width: 560px) {
  .sv-banco { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 4px; padding-right: 0; }
  .sv-banco .reserva { padding: 3px 5px; gap: 5px; }
  .sv-banco .reserva.escolhido { transform: none; }
  .sv-banco .reserva .info { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 4px; align-items: center; }
  .sv-banco .reserva .info > b, .sv-banco .reserva .info > small { grid-column: 1; }
  .sv-banco .reserva .info .atr-mini { grid-column: 2; grid-row: 1 / span 2; }
  .sv-banco .reserva .atr-mini > span:not(:first-child) { display: none; }
}
/* (0.29) o resumo da partida no computador: o placar em cima; o pós-jogo à esquerda e, à direita, as notícias e os outros
   jogos, para caber na altura da tela sem rolar */
@media (min-width: 900px) {
  .modal .cartao:has(.posjogo) { width: min(940px, 100%); }
  .resumo:has(> .posjogo) { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); column-gap: 22px; grid-auto-flow: row dense; align-items: start; }
  .resumo:has(> .posjogo) > * { grid-column: 2; }
  .resumo:has(> .posjogo) > .placar-final { grid-column: 1 / -1; }
  .resumo:has(> .posjogo) > .posjogo { grid-column: 1; grid-row: 2 / span 8; margin-top: 0; }
  .resumo:has(> .posjogo) > .jogos.outros { width: 100%; }
}
/* (0.29, a pedido do responsável) o alto da carreira no celular, para rolar menos: Início e Opções viram dois ícones dentro
   do cabeçalho (no lugar das camisas, que já estão no ingresso), e o ingresso fica mais justo */
@media (max-width: 560px) {
  #carMenu { position: relative; }
  .car-rodape { position: absolute; left: 0; right: 0; top: 0; height: 0; margin: 0; z-index: 2; }
  .car-rodape button.voltar { position: absolute; top: 22px; width: 32px; height: 32px; min-height: 0; padding: 0; font-size: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .car-rodape #carInicio { left: 8px; }
  .car-rodape #carOpcoes { right: 8px; }
  .car-rodape #carInicio::before { content: '‹'; font: 700 24px/1 Oswald, sans-serif; margin-top: -3px; }
  .car-rodape #carOpcoes::before { content: ''; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E") center / contain no-repeat; }
  .cabecalho { padding: 8px 46px; min-height: 56px; }
  .cabecalho .uniformes { display: none; }
  .cabecalho .titulo small { letter-spacing: .04em; }
  .proximo { margin: 8px 0; padding: 10px 12px; }
  .car-tela .proximo .acoes { margin-top: 8px; padding-top: 8px; }
  .proximo .pedido { margin: 2px 0 2px; }
}

/* (0.29, a pedido do responsável) a ficha de quem foi tocado vira um cartão: o rosto, o nome, a posição com as estrelas e as
   barrinhas dos atributos com o número embaixo (substituições da mesa, Elenco e time antes do jogo) */
.ficha-escolhido.com-rosto { gap: 8px; padding: 5px 8px; text-align: left; background: rgba(255,255,255,.5); border: 2px solid var(--tinta);
  border-radius: 8px; box-shadow: 0 2px 0 rgba(31,27,20,.22); }
.ficha-escolhido.com-rosto > canvas { flex: none; }
.ficha-escolhido.com-rosto .quem { gap: 2px; flex: 1 1 auto; }
.ficha-escolhido.com-rosto .quem b { font: 700 16px 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.ficha-escolhido.com-rosto .quem small { display: flex; align-items: center; gap: 5px; font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: .06em; color: var(--tinta-2); }
.ficha-escolhido.com-rosto .atr-mini { flex: none; gap: 4px; }
.ficha-escolhido.com-rosto .atr-mini > span { gap: 2px; }
.ficha-escolhido.com-rosto .atr-mini i { width: 9px; height: 24px; }
.ficha-escolhido.com-rosto .atr-mini .n1 u { background: #c9503f; }
.ficha-escolhido.com-rosto .atr-mini .n2 u { background: #d9a227; }
.ficha-escolhido.com-rosto .atr-mini .n3 u { background: #5aa04a; }
.ficha-escolhido.com-rosto .atr-mini .n4 u { background: #23843f; }
.ficha-escolhido.com-rosto .atr-mini b { font: 700 13px 'Barlow Condensed', sans-serif; }
@media (max-width: 560px) {
  .ficha-escolhido.com-rosto { padding: 4px 6px; gap: 6px; }
  .ficha-escolhido.com-rosto .quem b { font-size: 15px; }
  .ficha-escolhido.com-rosto .atr-mini { gap: 3px; }
  .ficha-escolhido.com-rosto .atr-mini small { font-size: 9px; }
}

/* (0.29, a pedido do responsável: o jogo não é bloco de notas) fileiras de fichas no lugar de frase: o ícone e um valor
   curto em cada ficha; a frase fica na dica (boas-vindas, fim de temporada, campeões, lenda, partida em andamento) */
.fichas-linha { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.ficha-ic { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; padding: 4px 10px; border: 2px solid var(--tinta, #1f1b14);
  border-radius: 999px; background: rgba(255,255,255,.5); box-shadow: 0 2px 0 rgba(31,27,20,.2); font: 700 15px 'Barlow Condensed', sans-serif; letter-spacing: .03em; }
.ficha-ic > b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha-ic > b:empty { display: none; }
.ficha-ic svg { flex: none; }
.ficha-ic .seta-sobe { color: #23843f; font-style: normal; }
.ficha-ic .seta-cai { color: #c9503f; font-style: normal; }
.ficha-ic .ic-txt { font-style: normal; font-weight: 700; }
.fichas-linha.campeoes .ficha-ic { font-size: 13px; padding: 3px 8px; }
.nome-lenda { margin: 6px 0 0; font: 700 18px 'Barlow Condensed', sans-serif; }

/* (0.29, a pedido do responsável: muito texto na tela de vitória) as notícias em fichas curtas, duas por linha: o ícone,
   o nome ou o valor e um detalhe pequeno; a frase inteira na dica */
.noticias { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 8px 0; }
.noticias .noticia { margin: 0; min-width: 0; padding: 4px 8px 4px 4px; border: 1.5px solid rgba(31,27,20,.25); border-radius: 999px; background: rgba(255,255,255,.45); gap: 6px; }
.noticias .noticia.ruim { border-color: rgba(168,50,42,.45); }
.noticias .noticia.bom { border-color: rgba(31,122,61,.45); }
.noticias .noticia .principal { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 700 14px 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.noticias .noticia:not(.curta) .principal { white-space: normal; font: 400 12px Barlow, sans-serif; }
.noticias .noticia .detalhe { flex: none; font: 700 12px 'Barlow Condensed', sans-serif; color: var(--tinta-2); white-space: nowrap; }
.noticias .noticia.ruim .detalhe { color: var(--carimbo); }
.noticias .noticia.bom .detalhe { color: #1f7a3d; }
.noticias .noticia .ic-noticia { width: 24px; height: 24px; }

/* (0.29, a pedido do responsável) o fôlego no time e substituições: a barrinha embaixo do nome no campo, ao lado das
   estrelas no banco e a coluna "Fôl" na ficha de quem foi tocado */
.folego-mini { position: static; display: block; flex: none; border: 0; width: 30px; height: 4px; margin: 1px auto 0; border-radius: 2px; background: rgba(0,0,0,.35); overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.folego-mini > b { display: block; height: 100%; border-radius: 2px; }
.pos-est .folego-mini { display: inline-block; width: 34px; height: 5px; margin: 0 0 0 4px; vertical-align: middle; background: rgba(31,27,20,.18); box-shadow: none; }
