/* Página da Copa redesenhada + sorteio por potes ao vivo (docs/national-cups-pot-draw-plan.md §7).
   Protótipo de referência: docs/prototypes/national-cups-draw-page.html.

   Tokens: herda os da arena (claro/escuro já resolvidos no .arena-body) com fallback pros
   valores claros — a página pública (layout world_cup_draw) define os mesmos nomes no body.
   O acento do torneio entra inline em --cx-cup (NationalCups::Definitions#accent).

   O elemento memorável são os potes de camisas brancas de número verde (a camisa veste a bandeira quando sai); o resto fica quieto. Anton só nos
   números (placar, assento, pote). Fontes em rem (escala de acessibilidade do jogador). */

.cupx {
  --cx-paper: var(--bg-deep, #F4F6F5);
  --cx-surface: var(--bg-surface, #FFFFFF);
  --cx-sunk: var(--bg-card, #EEF2F0);
  --cx-ink: var(--text-primary, #15241A);
  --cx-ink-2: var(--text-secondary, #4A5A4F);
  /* #627068 e não o --text-muted da arena (#7A887F, 3,7:1): texto pequeno sobre branco precisa
     de 4,5:1. No escuro o muted da arena já passa e volta a valer (abaixo). */
  --cx-ink-3: #627068;
  --cx-line: var(--border, #DCE3DF);
  --cx-cup: #173A8A;
  --cx-cup-ink: #FFFFFF;
  /* Tons derivados do acento. Os valores fixos são o fallback do WebKit sem color-mix() (iOS
     até 16.1, que o WhatsApp ainda roda): sem eles a variável vira "unset" e o palco da sua
     camisa fica transparente. O @supports logo abaixo troca pelos tons calculados. */
  --cx-cup-soft: var(--cx-sunk);
  --cx-cup-line: var(--cx-cup);
  --cx-cup-shadow: rgba(0, 0, 0, .28);
  --cx-live: #D7263D;
  --cx-you: #E2A700;
  --cx-you-soft: #FFF3C7;
  --cx-done: #2E7D4F;
  --cx-done-line: #C9DDD0;
  --cx-on-cup-2: rgba(255, 255, 255, .86);
  --cx-on-cup-3: rgba(255, 255, 255, .72);
  --cx-shirt-num: #1E7A43;
  --cx-radius-l: 20px;
  --cx-radius-s: 10px;
  --cx-score: 'Anton', var(--font-display, 'Sora'), sans-serif;
  --cx-shirt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 2.5 5.5 4.6 1 10.2l4 4.4 3.2-2V29.5h15.6V12.6l3.2 2 4-4.4-4.5-5.6L21 2.5c-.8 2.4-2.6 3.7-5 3.7s-4.2-1.3-5-3.7Z'/%3E%3C/svg%3E");
  --cx-shirt-dashed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 2.5 5.5 4.6 1 10.2l4 4.4 3.2-2V29.5h15.6V12.6l3.2 2 4-4.4-4.5-5.6L21 2.5c-.8 2.4-2.6 3.7-5 3.7s-4.2-1.3-5-3.7Z' fill='none' stroke='%23000' stroke-width='1.4' stroke-dasharray='2.2 1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  color: var(--cx-ink);
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
@supports (color: color-mix(in srgb, red, red)) {
  .cupx {
    --cx-cup-soft: color-mix(in srgb, var(--cx-cup) 12%, var(--cx-surface));
    --cx-cup-shadow: color-mix(in srgb, var(--cx-cup) 75%, transparent);
    --cx-you-soft: color-mix(in srgb, #FFD84D 30%, var(--cx-surface));
    --cx-done-line: color-mix(in srgb, var(--cx-done) 25%, var(--cx-line));
  }
}
.cupx .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* O reset do Tailwind deixa <img> como bloco — bandeira dentro de texto precisa ficar na linha. */
.cupx img { display: inline-block; vertical-align: -0.15em; }
.cupx-cap-pick b img, .cupx-stage-turn img, .cupx-team-flag img { width: 1.5rem !important; height: auto !important; border-radius: 2px; margin-right: .25rem; }

/* Escuro: o acento puro some sobre #1B251F (1,5:1) — bordas usam um tom clareado. */
[data-theme="dark"] .cupx { --cx-done: #5BC58A; --cx-ink-3: var(--text-muted, #87958C); --cx-you-soft: #3A3418; --cx-cup-line: var(--cx-ink-2); --cx-done-line: #2E4A38; }
@supports (color: color-mix(in srgb, red, red)) {
  [data-theme="dark"] .cupx { --cx-you-soft: color-mix(in srgb, #E2A700 22%, var(--cx-surface)); --cx-cup-line: color-mix(in srgb, var(--cx-cup) 55%, #fff); }
}

/* ── Hero ── */
.cupx-hero {
  background: var(--cx-cup); color: var(--cx-cup-ink);
  border-radius: var(--cx-radius-l); padding: 1.375rem 1.25rem 1.25rem;
  position: relative; overflow: hidden;
}
.cupx-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 28px solid currentColor; opacity: .07; pointer-events: none;
}
.cupx-hero-cup { font-weight: 700; font-size: .9375rem; opacity: .85; margin: 0; }
.cupx-hero-step { font-weight: 800; font-size: 1.625rem; line-height: 1.15; letter-spacing: -0.02em; margin: .375rem 0 0; max-width: 24ch; }
.cupx-hero-when { margin: .375rem 0 0; font-size: .9375rem; opacity: .92; max-width: 56ch; }
.cupx-hero-live { display: inline-flex; align-items: center; gap: .5rem; margin-top: .125rem; font-weight: 700; font-size: .9375rem; }
.cupx-hero-live[hidden] { display: none; }
/* Ponto "ao vivo". O pulso anima só transform/opacity num ::after (roda no compositor): o
   box-shadow animado repintava a tela a cada quadro durante os 20 min do show. */
.cupx-dot { position: relative; flex: none; width: .625rem; height: .625rem; border-radius: 50%; background: var(--cx-live); }
.cupx-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cx-live); animation: cupx-pulse 1.6s ease-out infinite; }
@keyframes cupx-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }

.cupx-score { display: flex; gap: .375rem; margin-top: 1.125rem; }
.cupx-score-cell { background: rgba(0,0,0,.22); border-radius: 12px; padding: .5rem .5rem .375rem; min-width: 3.75rem; text-align: center; }
.cupx-score-num { font-family: var(--cx-score); font-size: 2.5rem; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.cupx-score-unit { font-size: .75rem; opacity: .85; display: block; margin-top: .125rem; }
.cupx-score-cell.is-zero { display: none; }

.cupx-progress { margin-top: 1.125rem; }
.cupx-progress-track { height: 8px; border-radius: 99px; background: rgba(0,0,0,.22); overflow: hidden; }
.cupx-progress-fill { height: 100%; background: currentColor; border-radius: 99px; transition: width .6s ease; }
.cupx-progress-text { display: flex; justify-content: space-between; gap: .5rem; font-size: .875rem; margin-top: .375rem; opacity: .92; }

/* ── Linha do tempo (sequência real → numerada) ── */
.cupx-steps {
  list-style: none; margin: .875rem 0 0; padding: .25rem 0 .75rem;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: .5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.cupx-steps::-webkit-scrollbar { display: none; }
.cupx-step { position: relative; scroll-snap-align: start; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-s); padding: .625rem .75rem; display: flex; flex-direction: column; gap: .125rem; }
.cupx-step-n { font-family: var(--cx-score); font-size: 1.125rem; color: var(--cx-ink-3); line-height: 1; }
.cupx-step-name { font-weight: 700; font-size: .875rem; line-height: 1.25; margin-top: .25rem; }
.cupx-step-when { font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-step-tag { margin-top: .375rem; font-size: .75rem; font-weight: 700; display: inline-flex; align-items: center; gap: .375rem; }

/* Feitas: o ✓ verde no lugar do número e um filete verde no topo — lado a lado, os filetes
   viram a barra de progresso do torneio. O cartão recua (sem fundo). */
.cupx-step.is-done { background: transparent; border-color: var(--cx-done-line); box-shadow: inset 0 3px 0 var(--cx-done); }
.cupx-step-check { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--cx-done); color: #fff; display: grid; place-items: center; }
.cupx-step.is-done .cupx-step-name { color: var(--cx-ink-2); }
.cupx-step.is-done .cupx-step-when { color: var(--cx-ink-3); }

/* Atual: o cartão cheio na cor da edição, um degrau acima dos outros. "Agora" ganha o ponto
   vermelho pulsando; "Próximo" (a etapa ainda não começou) fica sem ponto. */
.cupx-step.is-now { background: var(--cx-cup); border-color: var(--cx-cup); color: var(--cx-cup-ink); transform: translateY(-3px); box-shadow: 0 12px 24px -14px var(--cx-cup-shadow); }
.cupx-step.is-now .cupx-step-n { color: var(--cx-on-cup-3); font-size: 1.375rem; }
.cupx-step.is-now .cupx-step-when { color: var(--cx-on-cup-2); }
.cupx-step.is-now .cupx-step-tag { align-self: flex-start; background: var(--cx-cup-ink); color: var(--cx-cup); border-radius: 999px; padding: .125rem .5rem; }
.cupx-step-tag .cupx-dot { width: .5rem; height: .5rem; }

/* ── Você ── */
.cupx-you { margin-top: 1rem; background: var(--cx-you-soft); border-radius: var(--cx-radius-s); padding: .75rem .875rem; display: flex; gap: .75rem; align-items: center; }
.cupx-you-ball { flex: none; width: 2.875rem; height: 2.875rem; font-size: 1.125rem; --cx-shirt-edge: var(--cx-you); --cx-shirt-inset: 3px; }
.cupx-you { flex-wrap: wrap; }
.cupx-you-text { margin: 0; font-size: .9375rem; flex: 1 1 12rem; }
.cupx-you-link { min-height: 2.75rem; padding: 0 .875rem; border: 1.5px solid var(--cx-you); border-radius: 999px; background: var(--cx-surface); color: var(--cx-ink); font: inherit; font-weight: 700; font-size: .875rem; cursor: pointer; }

/* Ache sua camisa (deslogado) e o convite pra chamar a galera */
.cupx-finder { margin-top: 1rem; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-s); padding: .75rem .875rem; }
.cupx-finder-label { display: block; font-weight: 700; font-size: .9375rem; }
.cupx-finder-row { margin-top: .5rem; display: flex; align-items: center; gap: .5rem; }
.cupx-finder-at { font-weight: 800; color: var(--cx-ink-3); }
.cupx-finder-input { flex: 1; min-width: 0; min-height: 2.75rem; border: 1px solid var(--cx-line); border-radius: 10px; padding: 0 .75rem; font: inherit; font-size: 1rem; background: var(--cx-paper); color: var(--cx-ink); }
.cupx-finder-input:focus-visible { outline: 2px solid var(--cx-cup-line); outline-offset: 1px; }
.cupx-finder-row .cupx-btn { min-height: 2.75rem; }
.cupx-finder-msg { margin: .5rem 0 0; font-size: .875rem; color: var(--cx-ink); font-weight: 600; }
.cupx-finder-msg[hidden] { display: none; }
.cupx-finder-result { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cupx-finder-swap { display: none; flex: none; min-height: 2.75rem; padding: 0 .75rem; border: 0; background: none; color: var(--cx-ink-2); font: inherit; font-weight: 700; font-size: .8125rem; cursor: pointer; text-decoration: underline; }
/* Achou: a busca vira uma linha só, pra não empurrar o palco pra baixo. */
.cupx-finder.is-found { padding: .25rem .25rem .25rem .875rem; box-shadow: inset 3px 0 0 var(--cx-you); }
.cupx-finder.is-found .cupx-finder-label, .cupx-finder.is-found .cupx-finder-row, .cupx-finder.is-found .cupx-finder-alt { display: none; }
.cupx-finder.is-found .cupx-finder-msg { margin: 0; }
.cupx-finder.is-found .cupx-finder-swap { display: inline-flex; align-items: center; }
.cupx-finder-alt { margin: .5rem 0 0; font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-finder-alt a { color: inherit; font-weight: 700; display: inline-block; padding: .375rem 0; }
.cupx-share { margin: .75rem 0 0; }
.cupx-share .cupx-btn { min-height: 2.75rem; }

/* ── Seções ── */
.cupx-section { margin-top: 1.75rem; min-width: 0; }
.cupx-h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; margin: 0; color: var(--cx-ink); }
.cupx-lead { margin: .25rem 0 0; color: var(--cx-ink-2); font-size: .9375rem; max-width: 64ch; }
.cupx-after { margin-top: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; gap: .625rem; }
.cupx-btn { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 12px; padding: .75rem 1rem; font-weight: 700; font-size: .9375rem; cursor: pointer; text-decoration: none; font-family: inherit; }
.cupx-btn-cup { background: var(--cx-cup); color: var(--cx-cup-ink); }
.cupx-btn-quiet { background: var(--cx-sunk); color: var(--cx-ink); }

/* ── Capitães ── */
.cupx-captains { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .375rem; container-type: inline-size; }
/* A escolha é uma coluna de largura fixa, alinhada à esquerda: as bandeiras e os nomes das
   seleções empilham na mesma linha vertical, do capitão 1 ao 8. */
.cupx-cap { display: grid; grid-template-columns: 28px minmax(0,1fr) clamp(7.5rem, 32vw, 11rem); gap: .625rem; align-items: center; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-s); padding: .625rem .75rem; }
.cupx-cap-seat { font-family: var(--cx-score); font-size: 1.25rem; color: var(--cx-ink-3); text-align: center; }
.cupx-cap-id { display: flex; flex-direction: column; min-width: 0; }
.cupx-cap-name { font-weight: 700; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupx-cap-goals { font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-cap-pick { font-size: .875rem; color: var(--cx-ink-3); text-align: left; min-width: 0; }
.cupx-cap-pick b { display: inline-flex; align-items: center; gap: .375rem; color: var(--cx-ink); font-weight: 700; }
.cupx-cap.is-landed .cupx-cap-pick b { animation: cupx-land .5s cubic-bezier(.2,1.4,.4,1); }
@container (max-width: 21rem) {
  .cupx-cap { grid-template-columns: 28px minmax(0, 1fr); row-gap: .25rem; }
  .cupx-cap-pick { grid-column: 2; }
}
@keyframes cupx-land { from { transform: scale(.6); opacity: 0; } }

/* ── Palco ── */
/* O palco gruda no topo durante o sorteio. Toda linha tem altura fixa e corta com reticências:
   um nome que quebrasse em duas linhas faria o quadro inteiro pular a cada 12 s. */
.cupx-stage { position: sticky; top: .5rem; z-index: 20; margin-top: 1rem; background: var(--cx-surface); border: 2px solid var(--cx-cup-line); border-radius: var(--cx-radius-l); padding: .875rem 1rem 1rem; box-shadow: 0 10px 30px -18px var(--cx-cup-shadow); overflow: hidden; }
.cupx-stage[hidden] { display: none; }
.cupx-stage-turn { font-size: .9375rem; color: var(--cx-ink-2); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cupx-stage-turn b { color: var(--cx-ink); }
.cupx-stage-slip { margin-top: .625rem; display: flex; align-items: center; gap: .875rem; height: 4.5rem; }
.cupx-stage-ball { flex: none; width: 4.25rem; height: 4.25rem; font-size: 1.75rem; transform-origin: 50% 8%; }
.cupx-stage-ball.is-long, .cupx-ball-dot.is-long { font-size: 1.125rem; }
.cupx-stage.is-rolling .cupx-stage-ball { animation: cupx-sway .6s ease-in-out infinite alternate; }
@keyframes cupx-sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.cupx-stage-name { margin: 0; min-width: 0; flex: 1; }
.cupx-stage-title, .cupx-stage-name > .cupx-team-label { display: block; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cupx-stage-name > .cupx-team-label img { width: 1.75rem !important; height: auto !important; border-radius: 3px; margin-right: .375rem; vertical-align: -0.1em; }
.cupx-stage-name small { display: block; font-weight: 500; font-size: .875rem; color: var(--cx-ink-2); letter-spacing: 0; margin-top: .125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }
.cupx-stage.is-landed .cupx-stage-slip { animation: cupx-land .55s cubic-bezier(.2,1.4,.4,1); }
/* Tempo 2 da revelação: a bandeira sobe por dentro da camisa. */
.cupx-stage-ball img.is-rising { animation: cupx-rise .5s cubic-bezier(.3,.9,.3,1) both; }
@keyframes cupx-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.cupx-stage-ball.is-blank { -webkit-mask-image: var(--cx-shirt-dashed); mask-image: var(--cx-shirt-dashed); background: var(--cx-ink-3); }
.cupx-stage-ball.is-blank::before { content: none; }
.cupx-stage.is-you { border-color: var(--cx-you); background: var(--cx-you-soft); }
.cupx-stage.is-your-pot { border-color: var(--cx-you); }
.cupx-stage.is-your-pot .cupx-stage-turn { color: var(--cx-ink); font-weight: 700; }
.cupx-stage-next { margin: .625rem 0 0; font-size: .8125rem; color: var(--cx-ink-2); display: flex; justify-content: space-between; gap: .5rem; white-space: nowrap; }
.cupx-stage-next span:last-child { overflow: hidden; text-overflow: ellipsis; }
.cupx-stage-you { margin: .5rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--cx-you-soft); border-radius: 999px; padding: .25rem .25rem .25rem .75rem; font-size: .875rem; }
.cupx-stage-you[hidden] { display: none; }
.cupx-stage-you b { display: inline-flex; align-items: center; gap: .25rem; }
.cupx-stage-you img { width: 1.25rem !important; height: auto !important; border-radius: 2px; }
.cupx-share-link { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .75rem; border-radius: 999px; background: var(--cx-surface); color: var(--cx-ink); font-weight: 700; font-size: .8125rem; text-decoration: none; }
/* O atalho mora na mesma linha da vez: aparecer e sumir não muda a altura do palco. */
.cupx-stage-top { display: flex; align-items: center; gap: .5rem; min-height: 1.75rem; }
.cupx-stage-top .cupx-stage-turn { flex: 1; min-width: 0; }
.cupx-stage-jump { flex: none; position: relative; border: 0; border-radius: 999px; background: var(--cx-cup-soft); color: var(--cx-ink); font: inherit; font-weight: 700; font-size: .75rem; padding: .25rem .625rem; cursor: pointer; }
.cupx-stage-jump::after { content: ""; position: absolute; inset: -.5rem -.25rem; }
.cupx-stage-jump[hidden] { display: none; }
/* O progresso do sorteio também mora no palco: quando ele gruda no topo, o hero já rolou. */
.cupx-stage-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--cx-sunk); }
.cupx-stage-progress i { display: block; height: 100%; background: var(--cx-cup-line); transition: width .6s ease; }

/* ── Alternador (celular) ── */
.cupx-switch { display: flex; margin-top: 1rem; background: var(--cx-sunk); border-radius: 12px; padding: 4px; gap: 4px; }
.cupx-switch button { flex: 1; min-height: 2.75rem; border: 0; background: transparent; padding: .5rem; border-radius: 9px; font-weight: 700; font-size: .875rem; color: var(--cx-ink-2); cursor: pointer; font-family: inherit; }
.cupx-switch button[aria-selected="true"] { background: var(--cx-surface); color: var(--cx-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cupx-panes.has-board[data-active="board"] > .cupx-pane[data-pane="pots"],
.cupx-panes.has-board[data-active="pots"] > .cupx-pane[data-pane="board"] { display: none; }

/* ── Quadro ── */
.cupx-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .75rem; }
.cupx-team { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-s); padding: .625rem; min-width: 0; }
.cupx-team.is-turn { border-color: var(--cx-cup-line); box-shadow: inset 0 0 0 1px var(--cx-cup-line); }
.cupx-team-head { display: flex; align-items: center; gap: .5rem; }
.cupx-team-flag { flex: none; min-width: 1.5rem; font-family: var(--cx-score); color: var(--cx-ink-3); }
.cupx-team-flag img { border-radius: 3px; vertical-align: middle; }
.cupx-team-name { font-weight: 800; font-size: .9375rem; line-height: 1.15; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupx-team-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 2px; }
.cupx-team-list li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: .375rem; font-size: .8125rem; align-items: baseline; padding: 3px 0; border-top: 1px dashed var(--cx-line); }
.cupx-team-list li[hidden] { display: none; }
.cupx-team-pot { font-family: var(--cx-score); color: var(--cx-ink-3); }
.cupx-team-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupx-team-list li[data-captain] .cupx-team-pot { color: var(--cx-cup-line); }
/* Quem acabou de entrar: fundo na cor da edição que desbota em 2 s, além do negrito. */
.cupx-team-list li.is-new { animation: cupx-flash 2s ease-out; font-weight: 700; border-radius: 4px; }
@keyframes cupx-flash { from { background: var(--cx-cup-soft); } to { background: transparent; } }
.cupx-team-list li.is-me .cupx-team-who { font-weight: 800; }

/* ── Potes: o elemento memorável ── */
.cupx-pots { display: grid; gap: .625rem; margin-top: .75rem; }
.cupx-pot { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-l); padding: .75rem; }
.cupx-pot.is-current { border-color: var(--cx-cup-line); }
.cupx-pot.is-mine { box-shadow: inset 0 0 0 2px var(--cx-you); }
.cupx-rules { margin: .5rem 0 0; padding-left: 1.125rem; display: grid; gap: .25rem; font-size: .875rem; color: var(--cx-ink-2); max-width: 62ch; }
.cupx-pot-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.cupx-pot-title { font-weight: 800; font-size: 1rem; }
.cupx-pot-range { font-size: .8125rem; color: var(--cx-ink-2); }
/* ── A camisa (pote, faixa Você e palco) ──
   A silhueta é uma máscara: o número e a bandeira ficam recortados no formato da camisa sem
   mudar o DOM que o cup-live preenche. O fundo do próprio elemento é o debrum; o ::before,
   a mesma camisa recuada, é o corpo. Quando sai, a camisa VESTE a bandeira (a imagem cobre
   o corpo e herda o recorte). */
.cupx-ball-dot, .cupx-you-ball, .cupx-stage-ball {
  --cx-shirt-body: #FFFFFF;
  --cx-shirt-edge: rgba(21, 36, 26, .3);
  --cx-shirt-inset: 1.5px;
  position: relative; isolation: isolate; display: grid; place-items: center; padding-top: .3em; box-sizing: border-box;
  background: var(--cx-shirt-edge); color: var(--cx-shirt-num);
  font-family: var(--cx-score); line-height: 1; font-variant-numeric: tabular-nums;
  -webkit-mask: var(--cx-shirt) center / contain no-repeat; mask: var(--cx-shirt) center / contain no-repeat;
}
.cupx-ball-dot::before, .cupx-you-ball::before, .cupx-stage-ball::before {
  content: ""; position: absolute; z-index: -1; inset: var(--cx-shirt-inset); background: var(--cx-shirt-body);
  -webkit-mask: var(--cx-shirt) center / contain no-repeat; mask: var(--cx-shirt) center / contain no-repeat;
}
.cupx-ball-dot > *, .cupx-you-ball > *, .cupx-stage-ball > * { position: relative; }
.cupx-ball-dot img, .cupx-you-ball img, .cupx-stage-ball img {
  position: absolute; inset: var(--cx-shirt-inset); width: calc(100% - 2 * var(--cx-shirt-inset)) !important;
  height: calc(100% - 2 * var(--cx-shirt-inset)) !important; object-fit: cover; border-radius: 0; vertical-align: 0;
  -webkit-mask: var(--cx-shirt) center / contain no-repeat; mask: var(--cx-shirt) center / contain no-repeat;
}
/* Pote de 8 = duas linhas de 4. Só quando o pote fica estreito de verdade (tela pequena com
   fonte grande) cai pra 3, que é quando o @ deixaria de caber. Tamanhos em rem pra camisa
   crescer junto com a escala de fonte do jogador. */
.cupx-pot { container-type: inline-size; }
.cupx-balls { list-style: none; margin: .625rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem .375rem; }
@container (max-width: 19rem) { .cupx-balls { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cupx-ball { display: grid; justify-items: center; gap: .25rem; text-align: center; min-width: 0; }
.cupx-ball-dot { width: 2.625rem; height: 2.625rem; font-size: 1rem; }
.cupx-ball-name { font-size: .8125rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupx-ball-meta { font-size: .75rem; color: var(--cx-ink-3); }
.cupx-ball.is-drawn .cupx-ball-dot { --cx-shirt-body: var(--cx-sunk); color: var(--cx-ink-3); }
.cupx-ball.is-drawn .cupx-ball-name { color: var(--cx-ink-3); }
/* Camisa em branco: só o contorno tracejado, sem número. */
.cupx-ball.is-blank .cupx-ball-dot { -webkit-mask-image: var(--cx-shirt-dashed); mask-image: var(--cx-shirt-dashed); background: var(--cx-ink-3); }
.cupx-ball.is-blank .cupx-ball-dot::before { content: none; }
/* Saiu e ficou de fora (inclusive quem virou capitão): a camisa desbota. */
.cupx-ball.is-out .cupx-ball-dot { opacity: .45; }
.cupx-ball.is-me .cupx-ball-dot { --cx-shirt-edge: var(--cx-you); --cx-shirt-inset: 3px; }
.cupx-ball.is-me .cupx-ball-name { font-weight: 800; }
.cupx-ball.is-rolling .cupx-ball-dot { transform: translateY(-3px); transition: transform .2s; }


/* ── Ensaio (só equipe) ── */
.cupx-rehearsal { margin: 0 0 .75rem; padding: .625rem .875rem; border-radius: 12px; background: #FDE68A; color: #3B2F00; font-size: .875rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cupx-rehearsal a { color: inherit; font-weight: 700; display: inline-block; padding: .375rem 0; }
.cupx-rehearsal-nav { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.cupx-rehearsal-btn { min-height: 2.5rem; display: inline-flex !important; align-items: center; padding: 0 .75rem !important; border-radius: 999px; background: #3B2F00; color: #FDE68A !important; text-decoration: none; font-size: .8125rem; }
.cupx-rehearsal-btn.is-off { opacity: .35; }
.cupx-rehearsal-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; flex-basis: 100%; }
.cupx-rehearsal-steps a { padding: .25rem .5rem !important; border-radius: 6px; font-weight: 600 !important; font-size: .75rem; text-decoration: none; background: rgba(59, 47, 0, .1); }
.cupx-rehearsal-steps a.is-now { background: #3B2F00; color: #FDE68A; }

/* ── Página pública ── */
.cupx-public {
  --bg-deep: #F4F6F5; --bg-surface: #FFFFFF; --bg-card: #EEF2F0;
  --text-primary: #15241A; --text-secondary: #4A5A4F; --text-muted: #7A887F; --border: #DCE3DF;
  color-scheme: light dark;
  margin: 0; background: var(--bg-deep); color: var(--text-primary);
  font-family: 'Sora', system-ui, sans-serif; font-size: 1rem; line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
  .cupx-public {
    --bg-deep: #141C18; --bg-surface: #1B251F; --bg-card: #17201B;
    --text-primary: #E8EDE9; --text-secondary: #B4C0B8; --text-muted: #87958C; --border: #2A3A30;
  }
  .cupx-public .cupx { --cx-done: #5BC58A; --cx-ink-3: var(--text-muted); --cx-you-soft: #3A3418; --cx-cup-line: var(--cx-ink-2); --cx-done-line: #2E4A38; }
  @supports (color: color-mix(in srgb, red, red)) {
    .cupx-public .cupx { --cx-you-soft: color-mix(in srgb, #E2A700 22%, var(--cx-surface)); --cx-cup-line: color-mix(in srgb, var(--cx-cup) 55%, #fff); }
  }
}
.cupx-topbar { display: flex; justify-content: space-between; align-items: center; padding: .875rem 1rem; max-width: 1240px; margin: 0 auto; }
.cupx-topbar-logo { font-weight: 800; letter-spacing: -0.02em; font-size: 1.25rem; color: inherit; text-decoration: none; }
.cupx-topbar-link { font-weight: 700; font-size: .875rem; color: inherit; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .75rem; margin-right: -.75rem; }
.cupx-public-main { max-width: 1240px; margin: 0 auto; padding: 0 1rem 4rem; }
.cupx-empty { padding: 2rem 0; gap: .75rem; align-items: flex-start; }

/* ════════════════════════════════════════════════════════════════════════════════════════
   CARA DE COPA (crítica de arte + game design, 2026-10-21)
   Cada torneio = 4 tokens no _shell: --cx-cup (acento), --cx-cup-2 (secundária), --cx-cup-deep
   (o telão) e a classe .cupx--<padrão> (textura do hero). Nada de marca oficial: nem taça, nem
   anel de estrelas, nem tipografia de torneio. Regra de cor que não se quebra: amarelo é VOCÊ,
   o acento é o torneio, verde é "feito", vermelho é "ao vivo". Anton vai em seleção, pote,
   número e título — NUNCA em @username (case-sensitive; condensado fica ilegível).
   ════════════════════════════════════════════════════════════════════════════════════════ */
.cupx { position: relative; isolation: isolate; --cx-cup-2: #F2C230; --cx-cup-deep: #0A1A42; }

/* Texturas por torneio: SVG/gradiente mínimo, sempre em baixa opacidade sobre o acento. */
/* Eurocopa sem textura: estrelas brancas soltas não lembravam a bandeira da UE (12 douradas em
   círculo) e só sujavam o fundo. */
.cupx--stars { --cx-pattern: none; }
.cupx--grass { --cx-pattern: repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 92px); }
.cupx--zigzag { --cx-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24'%3E%3Cpath d='M0 18 12 6l12 12 12-12 12 12' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E"); }
.cupx--diamonds { --cx-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 4 36 20 20 36 4 20z' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }


/* Hero: textura do torneio no lugar do anel genérico. O nome do torneio fica na primeira linha,
   sempre legível — a marca d'água vazada atrapalhava a leitura do título e foi removida. */
.cupx-hero { isolation: isolate; }
.cupx-hero::after { display: none; }
.cupx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cx-pattern, none); opacity: .1; pointer-events: none; }
.cupx--diamonds .cupx-hero::before, .cupx--grass .cupx-hero::before { opacity: .06; }
.cupx-hero-text, .cupx-score, .cupx-progress { position: relative; }
.cupx-hero-step { font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
/* Placar de estádio: a célula escura do telão e a dobra no meio do número (placa de flip). */
.cupx-score-cell { position: relative; background: var(--cx-cup-deep); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cupx-score-cell::after { content: ""; position: absolute; left: 0; right: 0; top: calc(.5rem + 1.25rem); height: 1px; background: rgba(0, 0, 0, .45); }
.cupx-watching { margin-left: .5rem; padding: .0625rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 600; font-size: .8125rem; }
.cupx-watching[hidden] { display: none; }

/* Intervalo (pausa de 2 min): o hero vira o telão, com o relógio gigante no meio. */
.cupx.is-intermission .cupx-hero { background: var(--cx-cup-deep); text-align: center; display: grid; justify-items: center; gap: .75rem; padding: 1.5rem 1.25rem 1.75rem; }
.cupx.is-intermission .cupx-hero::before { opacity: .12; }
.cupx--grass.is-intermission .cupx-hero::before, .cupx--diamonds.is-intermission .cupx-hero::before { opacity: .06; }
.cupx.is-intermission .cupx-hero-step { max-width: none; font-size: clamp(1.75rem, 6vw, 2.75rem); }
.cupx.is-intermission .cupx-hero-when { margin-inline: auto; }
.cupx.is-intermission .cupx-score { justify-content: center; margin-top: .5rem; }
.cupx.is-intermission .cupx-score-num { font-size: clamp(3.5rem, 14vw, 5.5rem); }
.cupx.is-intermission .cupx-score-cell { min-width: 6rem; }
.cupx.is-intermission .cupx-score-cell::after { top: calc(.5rem + clamp(1.75rem, 7vw, 2.75rem)); }

/* ── Linha do tempo: cerimônia em ingressos, mata-mata em chaveamento ── */
.cupx-step.is-ceremony { -webkit-mask: radial-gradient(circle .4375rem at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle .4375rem at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle .4375rem at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle .4375rem at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat; padding-inline: 1rem; }
.cupx-step.is-ceremony.is-now { transform: none; }
.cupx-step.is-match { border-style: solid; background: var(--cx-surface); }
/* A etapa atual do mata-mata segue o cartão cheio da etapa atual (o fundo branco acima
   apagava o texto branco). */
.cupx-step.is-match.is-now { background: var(--cx-cup); border-color: var(--cx-cup); }
.cupx-step.is-match.is-done { background: transparent; }
.cupx-step.is-now 
/* Etapa do sorteio já feita: o cartão inteiro leva pra página do sorteio. */
.cupx-step-link { position: static; margin: 0; font-size: .75rem; font-weight: 700; color: var(--cx-cup-line); text-decoration: none; }
.cupx-step-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cupx-step-link:focus-visible { outline: none; }
.cupx-step-link:focus-visible::after { outline: 2px solid var(--cx-cup-line); outline-offset: 2px; }
.cupx-step:has(.cupx-step-link):hover { border-color: var(--cx-cup-line); }
.cupx-step.is-now .cupx-step-link { color: var(--cx-cup-ink); }

/* "Conheça as 8 seleções" (página da Copa depois do sorteio → página do sorteio). */
.cupx-replay { margin: 1rem 0; display: flex; align-items: center; gap: .875rem; padding: .75rem 1rem; border-radius: var(--cx-radius-s); background: var(--cx-cup-deep); color: #fff; text-decoration: none; min-height: 3.5rem; }
.cupx-replay:focus-visible { outline: 2px solid var(--cx-cup-2); outline-offset: 2px; }
.cupx-replay-pots { flex: none; display: flex; gap: 3px; }
.cupx-replay-pots i { width: 1.375rem; height: 1.375rem; background: #fff; -webkit-mask: var(--cx-shirt) center / contain no-repeat; mask: var(--cx-shirt) center / contain no-repeat; }
.cupx-replay-pots i:nth-child(2) { background: var(--cx-cup-2); }
.cupx-replay-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cupx-replay-text b { font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; font-size: 1.125rem; letter-spacing: .02em; }
.cupx-replay-text small { font-size: .8125rem; color: rgba(255, 255, 255, .8); }
.cupx-replay-go { font-size: 1.75rem; line-height: 1; color: var(--cx-cup-2); }
.cupx-replay--back { background: var(--cx-cup); }

/* A camisa de verdade do jogo (jerseys/_<slug>): sem a máscara da silhueta genérica. */
.cupx-ball-dot.is-kit, .cupx-you-ball.is-kit, .cupx-stage-ball.is-kit { -webkit-mask: none; mask: none; background: none; padding: 0; height: auto; }
.cupx-ball-dot.is-kit::before, .cupx-you-ball.is-kit::before, .cupx-stage-ball.is-kit::before { content: none; }
.is-kit > svg, .cupx-moment-shirt > svg, .cupx-pocket-shirt > svg { display: block; width: 100%; height: auto; }
.cupx-ball-dot.is-kit { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
.cupx-ball.is-me .cupx-ball-dot.is-kit { filter: drop-shadow(0 0 0 var(--cx-you)) drop-shadow(0 0 2px var(--cx-you)) drop-shadow(0 0 2px var(--cx-you)); }
.cupx-stage-ball.is-kit svg.is-rising, .cupx-moment-shirt svg.is-painting { animation: cupx-rise .6s cubic-bezier(.3,.9,.3,1) both; }

/* ── Capitães: a mesa do draft ── */
.cupx-cap-seat { font-size: 2rem; line-height: 1; color: var(--cx-cup-line); }
.cupx-cap-pick { display: flex; align-items: center; gap: .5rem; }
.cupx-cap-status { font-size: .8125rem; color: var(--cx-ink-2); }
/* Envelope lacrado: a escolha existe e está guardada. Vazio (tracejado) = ainda na mesa. */
.cupx-envelope { position: relative; flex: none; width: 2.5rem; height: 1.6875rem; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--cx-cup) 0 4px, var(--cx-cup-deep) 4px 8px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); display: grid; place-items: center; }
.cupx-envelope::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 49%, rgba(255, 255, 255, .25) 50%, transparent 52%), linear-gradient(20deg, transparent 49%, rgba(255, 255, 255, .25) 50%, transparent 52%); border-radius: inherit; }
.cupx-envelope i { position: relative; width: 1rem; height: 1rem; border-radius: 50%; background: var(--cx-cup-2); color: #1A1A1A; font-style: normal; font-family: var(--cx-score); font-size: .625rem; display: grid; place-items: center; }
.cupx-envelope.is-empty { background: transparent; border: 1.5px dashed var(--cx-ink-3); box-shadow: none; }
.cupx-envelope.is-empty::before { content: none; }
.cupx-envelope.is-opening { animation: cupx-envelope .7s ease-in-out infinite alternate; }
@keyframes cupx-envelope { to { transform: translateY(-2px) rotate(-4deg) scale(1.08); } }
/* Revelada: a plaquinha da bandeira (figurinha colada) + o nome da seleção em Anton. */
.cupx-cap-pick b.cupx-team-label { font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.0625rem; }
.cupx-cap-pick b img { width: 2.5rem !important; height: 1.6875rem !important; object-fit: cover; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .2); margin-right: .375rem; }

/* ── O telão (palco) ── escuro na cor do torneio nos dois temas, com pontos de LED estáticos. */
.cupx-stage { background: var(--cx-cup-deep); background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 5px 5px; color: #fff; border: 0; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .55); padding-bottom: 1.25rem; }
.cupx-stage-turn { color: rgba(255, 255, 255, .78); display: flex; align-items: center; gap: .5rem; }
.cupx-stage-turn b { color: #fff; }
.cupx-stage-chip { flex: none; padding: .0625rem .5rem; border-radius: 4px; background: var(--cx-cup-2); color: #1A1A1A; font-family: var(--cx-score); font-size: .875rem; letter-spacing: .03em; text-transform: uppercase; }
.cupx-stage-title { color: #fff; }
.cupx-stage-title.is-team { font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; letter-spacing: .015em; font-size: 2rem; line-height: 1.05; }
.cupx-stage-title img { width: 1.75rem !important; height: auto !important; border-radius: 3px; vertical-align: -0.08em; }
.cupx-stage-name small { color: rgba(255, 255, 255, .8); }
.cupx-stage-next { color: rgba(255, 255, 255, .75); }
.cupx-stage-jump { background: rgba(255, 255, 255, .14); color: #fff; }
/* O anel em volta da camisa é o tempo até a próxima (o --p vem do JS a cada meio segundo). */
.cupx-stage-ring { flex: none; display: grid; place-items: center; padding: .3125rem; border-radius: 50%; background: conic-gradient(var(--cx-cup-2) calc(var(--p, 0) * 1turn), rgba(255, 255, 255, .14) 0); }
.cupx-stage-ring > .cupx-stage-ball { --cx-shirt-edge: rgba(255, 255, 255, .55); }
.cupx-stage-ball.is-envelope, .cupx-stage-ball.is-plaque { -webkit-mask: none; mask: none; background: transparent; }
.cupx-stage-ball.is-envelope::before { inset: 22% 6%; border-radius: 6px; background: repeating-linear-gradient(135deg, var(--cx-cup) 0 5px, var(--cx-cup-deep) 5px 10px); -webkit-mask: none; mask: none; box-shadow: 0 0 0 2px var(--cx-cup-2); }
.cupx-stage.is-rolling .cupx-stage-ball.is-envelope { animation: cupx-envelope .7s ease-in-out infinite alternate; }
.cupx-stage-ball.is-plaque::before { content: none; }
.cupx-stage-ball.is-plaque img { -webkit-mask: none; mask: none; inset: 22% 4%; width: 92% !important; height: 56% !important; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.cupx-stage.is-you { box-shadow: 0 0 0 3px var(--cx-you), 0 14px 30px -18px rgba(0, 0, 0, .55); background-color: var(--cx-cup-deep); }
.cupx-stage.is-you .cupx-stage-chip, .cupx-stage.is-your-pot .cupx-stage-chip { background: var(--cx-you); }
.cupx-stage.is-your-pot { box-shadow: 0 0 0 2px var(--cx-you), 0 14px 30px -18px rgba(0, 0, 0, .55); }
.cupx-stage.is-your-pot .cupx-stage-turn { color: #fff; }
/* Progresso em segmentos: um por pote (ou capitão), preenchendo na secundária. */
.cupx-stage-progress { position: absolute; left: .75rem; right: .75rem; bottom: .5rem; height: 5px; background: none; display: flex; gap: 3px; }
.cupx-stage-progress i { position: relative; flex: 1; height: 100%; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.cupx-stage-progress i b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cx-cup-2); transition: width .6s ease; }
.cupx-stage-progress i.is-full { background: var(--cx-cup-2); }
.cupx-stage-progress i span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── O bolso: "Você → seleção", fixo no rodapé ── */
.cupx-pocket { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(.75rem + env(safe-area-inset-bottom)); width: min(34rem, calc(100% - 1.5rem)); display: flex; align-items: center; gap: .625rem; padding: .375rem .375rem .375rem .5rem; border-radius: 999px; background: var(--cx-cup-deep); color: #fff; box-shadow: 0 0 0 2px var(--cx-you), 0 10px 24px -10px rgba(0, 0, 0, .5); }
.cupx-pocket[hidden] { display: none; }
.arena-body .cupx-pocket { bottom: calc(6.25rem + env(safe-area-inset-bottom)); }
.cupx.has-pocket { padding-bottom: 4.5rem; }
.cupx-pocket-shirt { flex: none; width: 2.5rem; height: 2.5rem; position: relative; -webkit-mask: var(--cx-shirt) center / contain no-repeat; mask: var(--cx-shirt) center / contain no-repeat; background: #fff; }
.cupx-pocket-shirt img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.cupx-pocket-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cupx-pocket-text b { font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cupx-pocket-text small { font-size: .75rem; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cupx-pocket .cupx-share-link { min-height: 2.5rem; background: var(--cx-you); color: #1A1A1A; }

/* ── O seu momento: a camada por cima da página ── */
.cupx-moment { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 1.5rem; overflow: hidden; }
.cupx-moment[hidden] { display: none; }
.cupx-moment::before { content: ""; position: absolute; inset: 0; background: var(--cx-cup-deep); opacity: .96; }
.cupx-moment-box { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: .375rem; color: #fff; max-width: 22rem; animation: cupx-land .5s cubic-bezier(.2,1.4,.4,1); }
.cupx-moment-kicker { margin: 0; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
/* No seu momento, o cartão de convocado ocupa a tela sem passar da altura dela. */
.cupx-cc.is-moment { width: min(17rem, calc((100vh - 11rem) * .5625)); width: min(17rem, calc((100dvh - 11rem) * .5625)); }
.cupx-moment-close { min-height: 2.75rem; background: rgba(255, 255, 255, .14); color: #fff; }
.cupx-moment-shirt { position: relative; width: 9rem; height: 9rem; margin: .5rem 0; display: grid; place-items: center; padding-top: .25em; font-family: var(--cx-score); font-size: 3.5rem; color: var(--cx-shirt-num); background: #fff; -webkit-mask: var(--cx-shirt) center / contain no-repeat; mask: var(--cx-shirt) center / contain no-repeat; }
.cupx-moment-shirt img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
/* A bandeira pinta a camisa de baixo pra cima. */
.cupx-moment-shirt img.is-painting { animation: cupx-rise .9s cubic-bezier(.3,.9,.3,1) both; }
.cupx-moment-title { margin: 0; font-family: var(--cx-score); text-transform: uppercase; font-size: 1.5rem; letter-spacing: .02em; }
.cupx-moment-team { margin: 0; font-family: var(--cx-score); text-transform: uppercase; font-size: clamp(2.5rem, 12vw, 3.5rem); line-height: 1; color: var(--cx-cup-2); opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.cupx-moment.is-dressed .cupx-moment-team, .cupx-moment.is-instant .cupx-moment-team { opacity: 1; transform: none; }
.cupx-moment-sub { margin: .25rem 0 0; font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.cupx-moment-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.cupx-moment-actions .cupx-btn { min-height: 2.75rem; }
.cupx-moment-actions .cupx-btn-cup { background: var(--cx-you); color: #1A1A1A; }
.cupx-moment-actions .cupx-btn-quiet { background: rgba(255, 255, 255, .14); color: #fff; }
/* Confete: 24 peças, uma vez, só transform/opacity. */
.cupx-confetti { position: absolute; inset: 0; pointer-events: none; }
.cupx-confetti i { position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; border-radius: 2px; background: var(--cx-cup-2); opacity: 0; animation: cupx-fall 2.2s var(--d) cubic-bezier(.25,.6,.4,1) 1 forwards; }
.cupx-confetti i:nth-child(3n) { background: #fff; }
.cupx-confetti i:nth-child(3n+1) { background: var(--cx-you); width: 6px; }
@keyframes cupx-fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(105vh) rotate(var(--r)); } }

/* ── A figurinha de convocado (faixa "Você") ── */
.cupx-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cup cup" "shirt body" "act act"; column-gap: .875rem; row-gap: .375rem; align-items: center; background: linear-gradient(135deg, var(--cx-surface) 55%, var(--cx-cup-soft)); border: 2px solid var(--cx-you); border-radius: 16px; padding: .75rem .875rem; }
.cupx-card-cup { grid-area: cup; font-family: var(--cx-score); font-size: .875rem; letter-spacing: .03em; color: var(--cx-cup-line); text-transform: uppercase; }
.cupx-card .cupx-card-shirt { grid-area: shirt; width: 4rem; height: 4rem; font-size: 1.5rem; --cx-shirt-edge: var(--cx-you); --cx-shirt-inset: 3px; }
.cupx-card-body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.cupx-card-user { font-weight: 800; font-size: 1.0625rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupx-card-meta { font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-card .cupx-you-text { font-size: .875rem; flex: none; } /* o flex-basis 12rem da faixa antiga esticava a figurinha */
.cupx-card-actions { grid-area: act; display: flex; flex-wrap: wrap; gap: .5rem; }
.cupx-card-actions:empty { display: none; }
.cupx-card-actions a.cupx-you-link { display: inline-flex; align-items: center; text-decoration: none; }
.cupx-card.is-dressed { border-color: var(--cx-cup-2); box-shadow: 0 10px 24px -16px var(--cx-cup-shadow); }
.cupx-card.is-dressed .cupx-card-shirt img { position: absolute; }
.cupx-card.is-standalone { margin-bottom: 1rem; }
.cupx-card-stamps { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.cupx-card-stamps li { font-family: var(--cx-score); text-transform: uppercase; font-size: .8125rem; letter-spacing: .02em; padding: .0625rem .5rem; border-radius: 4px; background: var(--cx-cup); color: var(--cx-cup-ink); }
.cupx-card-stamps li.is-title { background: var(--cx-cup-2); color: #1A1A1A; }
@media (min-width: 640px) {
  .cupx-card { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "shirt cup act" "shirt body act"; }
}

/* ── Cartão de convocado: a miniatura exata do story 1080×1920 ──
   Medidas em cqw (1cqw = 1/100 da largura = 10,8px do story): o que se vê aqui é o que
   convocado_card_controller.js desenha. Uma peça manda — a camisa de verdade, enorme — sobre a
   cor da seleção (--cc-1), com um brilho na secundária (--cc-2) atrás. --cc-ink é branco, ou
   escuro nas seleções de cor clara. Sem molduras, sem faixas: o convite é uma linha fina. */
.cupx-you.is-convocado { margin-top: 1rem; display: flex; justify-content: center; background: none; padding: 0; border: 0; box-shadow: none; }
.cupx-you.is-convocado.is-standalone { margin: 0 0 1rem; }
.cupx-cc { width: min(16.5rem, 100%); display: grid; gap: .625rem; }
.cupx-cc-story { position: relative; isolation: isolate; container-type: inline-size; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 1.125rem; color: var(--cc-ink); text-align: center; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .22) 100%), var(--cc-1); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6); }
.cupx-cc-story > * { position: absolute; left: 0; right: 0; margin: 0 auto; }
.cupx-cc-glow { top: 28cqw; width: 96cqw; height: 96cqw; z-index: -1; border-radius: 50%; background: radial-gradient(circle, var(--cc-2) 0, transparent 68%); opacity: .38; }
/* Zona segura: o WhatsApp mostra só a faixa central (~y 234 a 1686 do 1080×1920); tudo que
   importa mora entre 32 e 136cqw. O convite fica embaixo, fora dela: some no WhatsApp, aparece
   no Instagram. */
.cupx-cc-head { top: 32.4cqw; display: flex; align-items: center; justify-content: center; gap: 2.4cqw; }
.cupx-cc-flag { width: auto !important; height: auto !important; max-width: 9.6cqw; max-height: 6.4cqw; border-radius: 1cqw; box-shadow: 0 0 0 .35cqw rgba(255, 255, 255, .9); }
.cupx-cc-head b { font-family: var(--cx-score); font-weight: 400; font-size: 7.4cqw; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.cupx-cc-cup { top: 41.6cqw; font-weight: 600; font-size: 3.3cqw; opacity: .78; }
.cupx-cc-kit { top: 48.4cqw; width: 51.85cqw; filter: drop-shadow(0 2cqw 3.5cqw rgba(0, 0, 0, .3)); }
.cupx-cc-kit svg { display: block; width: 100%; height: auto; }
/* Braçadeira de capitão na manga esquerda da camisa (coordenadas do SVG da camisa × 78cqw/420). */
.cupx-cc-arm { left: 26.9cqw; right: auto; top: 60.4cqw; width: 7cqw; height: 4.3cqw; border-radius: .7cqw; background: #FFD84D; color: #14201A; font-family: var(--cx-score); font-size: 3.2cqw; line-height: 4.3cqw; transform: rotate(-24deg); box-shadow: 0 .6cqw 1.2cqw rgba(0, 0, 0, .3); }
.cupx-cc-word { top: 107.2cqw; font-family: var(--cx-score); font-size: 16cqw; line-height: 1; text-transform: uppercase; }
.cupx-cc-user { top: 124.1cqw; padding: 0 6cqw; font-weight: 800; font-size: 6.6cqw; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cupx-cc-user small { display: block; font-weight: 600; font-size: 3.4cqw; opacity: .78; margin-top: .6cqw; }
/* Com cargo ("Capitão" embaixo do @), os selos descem uma linha pra não encostar nele. Mesma
   conta no convocado_card_controller.js. */
.cupx-cc.has-role .cupx-cc-stamps { top: 140.4cqw; }
.cupx-cc-stamps { top: 135.4cqw; display: flex; justify-content: center; gap: 1.6cqw; }
.cupx-cc-stamps i { font-style: normal; font-family: var(--cx-score); font-size: 3.4cqw; text-transform: uppercase; letter-spacing: .02em; border: .3cqw solid currentColor; border-radius: .8cqw; padding: .3cqw 1.8cqw; }
/* Cartão da edição (depois da Final). A campeã ganha a estrela dourada acima da camisa — a
   estrela de campeão dos uniformes —, e a camisa encolhe um pouco pra dar lugar a ela (a
   braçadeira acompanha a manga). Honras em selos dourados, que quebram em duas linhas. Mesmas
   medidas no convocado_card_controller.js. */
.cupx-cc-star { top: 46cqw; font-size: 6.4cqw; line-height: 1; color: #F5C542; text-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .35); }
.cupx-cc.is-champion .cupx-cc-kit { top: 52.4cqw; width: 48cqw; }
.cupx-cc.is-champion .cupx-cc-arm { left: 28.6cqw; top: 63.5cqw; width: 6.5cqw; height: 4cqw; line-height: 4cqw; font-size: 3cqw; }
.cupx-cc.has-honors .cupx-cc-stamps { left: 6cqw; right: 6cqw; flex-wrap: wrap; row-gap: 1.6cqw; }
.cupx-cc.has-honors .cupx-cc-stamps i { background: #F5C542; border-color: #F5C542; color: #14201A; }
/* O convite: uma linha fina, sem fundo. */
.cupx-cc-cta { top: auto; bottom: 14.6cqw; font-weight: 400; font-size: 3.3cqw; opacity: .85; letter-spacing: .01em; }
.cupx-cc-cta b { font-weight: 700; }
.cupx-cc-share { width: 100%; min-height: 2.75rem; gap: .5rem; }

/* ── A sua seleção (grupos → Final): cartão à esquerda, painel da seleção à direita ── */
.cupx-hub { display: grid; gap: 1.25rem; margin: 0 0 1.75rem; align-items: start; }
.cupx-hub-card { display: flex; justify-content: center; }
.cupx-hub-panel { min-width: 0; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-l); padding: 1.125rem; display: grid; gap: 1rem; }
.cupx-hub-head { display: flex; align-items: center; gap: .75rem; }
.cupx-hub-flag img { width: 2.75rem !important; height: auto !important; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.cupx-hub-name { margin: 0; font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; font-size: 2rem; line-height: 1; letter-spacing: .01em; }
.cupx-hub-sub { margin: .25rem 0 0; font-size: .875rem; color: var(--cx-ink-2); }
/* O jogo da vez: um mini placar no tom do telão. */
.cupx-hub-match { display: grid; gap: .5rem; padding: .875rem 1rem; border-radius: 14px; background: var(--cx-cup-deep); color: #fff; text-decoration: none; }
.cupx-hub-match:focus-visible { outline: 2px solid var(--cx-cup-2); outline-offset: 2px; }
/* Ao vivo: só a pílula vermelha diz; sem anel em volta. */
.cupx-hub-match-phase { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; color: rgba(255, 255, 255, .8); }
.cupx-hub-match-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .75rem; }
.cupx-hub-team { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.cupx-hub-team b { font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cupx-hub-team.is-other { justify-content: flex-end; }
.cupx-hub-team img { width: 1.75rem !important; height: auto !important; border-radius: 3px; flex: none; }
.cupx-hub-score { display: flex; align-items: baseline; gap: .375rem; font-family: var(--cx-score); }
.cupx-hub-score b { font-weight: 400; font-size: 2rem; line-height: 1; }
.cupx-hub-score span { font-family: Sora, system-ui, sans-serif; font-size: 1.125rem; color: rgba(255, 255, 255, .6); }
.cupx-hub-when { font-family: Sora, system-ui, sans-serif; font-weight: 700; font-size: .875rem; color: var(--cx-cup-2) !important; white-space: nowrap; }
.cupx-hub-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.cupx-hub-stats div { min-width: 0; padding: .625rem .75rem; border-radius: 12px; background: var(--cx-sunk); }
.cupx-hub-stats dt { font-size: .75rem; color: var(--cx-ink-2); }
.cupx-hub-stats dd { margin: .125rem 0 0; font-family: var(--cx-score); font-size: 1.625rem; line-height: 1.1; }
.cupx-hub-stats dd.is-text { font-family: inherit; font-weight: 800; font-size: .9375rem; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cupx-hub-h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.cupx-hub-roster { list-style: none; margin: -.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); column-gap: 1.25rem; }
.cupx-hub-roster li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto auto; align-items: center; gap: .5rem; padding: .375rem .25rem; border-bottom: 1px dashed var(--cx-line); }
.cupx-hub-roster li.is-me { background: var(--cx-you-soft); border-radius: 8px; border-bottom-color: transparent; padding-inline: .5rem; }
.cupx-hub-kit { position: relative; width: 1.875rem; }
.cupx-hub-kit svg { display: block; width: 100%; height: auto; }
.cupx-hub-kit .cupx-armband { position: absolute; left: -.25rem; bottom: -.125rem; width: .875rem; height: .875rem; font-size: .5625rem; margin: 0; }
.cupx-hub-player { font-weight: 700; font-size: .9375rem; color: var(--cx-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupx-hub-player:hover { text-decoration: underline; }
/* Quem está em campo: o último chute de cada um embaixo do @, e o resumo no topo do elenco. */
.cupx-hub-roster-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.cupx-hub-infield { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-hub-infield b { font-family: var(--cx-score); font-weight: 400; font-size: 1.125rem; color: var(--cx-ink); }
.cupx-hub-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--cx-done); }
.cupx-hub-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cupx-hub-last { font-size: .75rem; color: var(--cx-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Em campo: camisa acesa com o ponto verde no ombro e o carimbo em verde. */
.cupx-hub-roster li.is-shot-active .cupx-hub-last { color: var(--cx-done); font-weight: 700; }
.cupx-hub-roster li.is-shot-active .cupx-hub-kit::after { content: ""; position: absolute; top: -.125rem; right: -.25rem; width: .5625rem; height: .5625rem; border-radius: 50%; background: var(--cx-done); box-shadow: 0 0 0 2px var(--cx-surface); }
.cupx-hub-roster li.is-me.is-shot-active .cupx-hub-kit::after { box-shadow: 0 0 0 2px var(--cx-you-soft); }
/* Sumiu (mais de 1 h ou sem chute na Copa): a camisa desbota. */
.cupx-hub-roster li.is-shot-idle .cupx-hub-kit svg { opacity: .38; filter: grayscale(.7); }
.cupx-hub-roster li.is-shot-idle .cupx-hub-player { color: var(--cx-ink-2); }
.cupx-hub-tags { display: inline-flex; gap: .25rem; }
.cupx-hub-tags:empty { display: none; }
.cupx-hub-counted { font-size: .6875rem; font-weight: 800; padding: .0625rem .375rem; border-radius: 999px; background: color-mix(in srgb, var(--cx-done) 16%, transparent); background: rgba(46, 125, 79, .14); color: var(--cx-done); white-space: nowrap; }
.cupx-hub-rule { font-size: .75rem; color: rgba(255, 255, 255, .72); }
.cupx-hub-you { font-size: .6875rem; font-weight: 800; padding: .0625rem .375rem; border-radius: 999px; background: var(--cx-you); color: #1A1A1A; }
.cupx-hub-goals { justify-self: end; font-size: .8125rem; color: var(--cx-ink-2); white-space: nowrap; }
.cupx-hub-goals b { font-family: var(--cx-score); font-weight: 400; font-size: 1.125rem; color: var(--cx-ink); }
@media (min-width: 900px) {
  /* O painel estica até o pé da coluna do cartão (com o botão): os dois terminam juntos. */
  .cupx-hub { grid-template-columns: 16.5rem minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
  .cupx-hub-card { justify-content: flex-start; }
  .cupx-hub-panel { align-content: start; }
}

/* ── Chaveamento na página da Copa (variant "cup" do world_cup/_bracket_tree) ──
   O caminho até a taça: a fase da vez é a única coisa acesa (painel tingido + "Ao vivo" ou
   "Próxima fase"); as encerradas recuam, as futuras ficam leves. Cada jogo é um placarzinho:
   bandeira, seleção em Anton, gols em Anton; vencedor com barra verde, o seu jogo com barra
   amarela, jogo rolando com anel vermelho. A aba Mata-mata das competições não usa isto. */
.cwb-section--cup .wc-section-title { font-family: var(--cx-score); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; }
.cwb.cwb--cup { gap: .5rem; padding: .25rem 0 .75rem; scroll-snap-type: x proximity; }
.cwb.cwb--cup .cwb-col { flex: 0 0 15.5rem; padding: .75rem .625rem; border: 0; border-radius: var(--cx-radius-l, 20px); scroll-snap-align: start; transition: none; }
.cwb.cwb--cup .cwb-col.is-live, .cwb.cwb--cup .cwb-col.is-next { background: var(--cx-cup-soft); box-shadow: inset 0 0 0 1.5px var(--cx-cup-line); }
.cwb.cwb--cup .cwb-col.is-done { opacity: .82; }
.cwb.cwb--cup .cwb-col-head { display: grid; justify-items: center; gap: .25rem; padding-bottom: .75rem; }
.cwb.cwb--cup .cwb-col-name { font-family: var(--cx-score); font-weight: 400; font-size: 1.125rem; letter-spacing: .02em; color: var(--cx-ink); }
.cwb.cwb--cup .cwb-col-count { font-size: .75rem; color: var(--cx-ink-2); }
.cwb-col-state { display: inline-flex; align-items: center; gap: .375rem; padding: .125rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 800; background: var(--cx-cup); color: var(--cx-cup-ink); }
.cwb-col.is-live .cwb-col-state { background: var(--cx-live); }
.cwb-col.is-done .cwb-col-state { background: transparent; color: var(--cx-done); box-shadow: inset 0 0 0 1.5px var(--cx-done); }
.cwb-col-state .cupx-dot { background: #fff; width: .5rem; height: .5rem; }
.cwb-col-state .cupx-dot::after { background: #fff; }

.cwb.cwb--cup .cwb-match { border-radius: 12px; border: 1px solid var(--cx-line); background: var(--cx-surface); box-shadow: none; }
.cwb.cwb--cup a.cwb-match:hover { border-color: var(--cx-cup-line); transform: none; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
.cwb.cwb--cup a.cwb-match:focus-visible { outline: 2px solid var(--cx-cup-line); outline-offset: 2px; }
.cwb.cwb--cup .cwb-side { gap: .5rem; padding: .5rem .625rem; position: relative; }
.cwb.cwb--cup .cwb-flag img { width: 1.5rem !important; height: auto !important; border-radius: 3px; }
.cwb.cwb--cup .cwb-name { font-family: var(--cx-score); font-size: 1rem; letter-spacing: .01em; text-transform: uppercase; color: var(--cx-ink); }
.cwb.cwb--cup .cwb-goals { font-family: var(--cx-score); font-weight: 400; font-size: 1.25rem; min-width: 1.5ch; text-align: right; color: var(--cx-ink); }
/* Vencedor: barra verde; quem perdeu recua. */
.cwb.cwb--cup .cwb-side--won { background: none; }
.cwb.cwb--cup .cwb-side--won::before { content: ""; position: absolute; left: 0; top: .375rem; bottom: .375rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--cx-done); }
.cwb.cwb--cup .cwb-side--won .cwb-goals { color: var(--cx-done); }
.cwb.cwb--cup .cwb-match .cwb-side:not(.cwb-side--won):not(.cwb-side--tbd) .cwb-name { color: var(--cx-ink); }
.cwb.cwb--cup a.cwb-match:has(.cwb-side--won) .cwb-side:not(.cwb-side--won) { opacity: .6; }
/* A sua seleção: amarelo (a cor do jogador em toda a página). */
.cwb.cwb--cup .cwb-side--mine { background: var(--cx-you-soft); }
.cwb.cwb--cup .cwb-side--mine .cwb-name { color: var(--cx-ink); }
.cwb.cwb--cup .cwb-match--mine { border-color: var(--cx-you); box-shadow: 0 0 0 1px var(--cx-you); }
/* Rolando agora: só a pílula "Ao vivo" (sem anel vermelho — com 4 jogos ao mesmo tempo, a
   coluna inteira ficava contornada de vermelho). */
.cwb.cwb--cup .cwb-head-line { padding: .3125rem .625rem; gap: .375rem; justify-content: flex-start; }
.cwb.cwb--cup .cwb-num { font-size: .6875rem; color: var(--cx-ink-3); }
.cwb.cwb--cup .cwb-tag { margin-left: auto; font-size: .625rem; letter-spacing: .02em; background: var(--cx-sunk); color: var(--cx-ink-2); }
.cwb-live, .cwb-mine { display: inline-flex; align-items: center; gap: .3rem; font-size: .625rem; font-weight: 800; padding: .0625rem .4375rem; border-radius: 999px; }
.cwb-live { background: var(--cx-live); color: #fff; }
.cwb-live .cupx-dot { width: .4375rem; height: .4375rem; background: #fff; }
.cwb-live .cupx-dot::after { background: #fff; }
.cwb-mine { background: var(--cx-you); color: #1A1A1A; }
/* A Final: borda grossa na cor do torneio. Nunca amarelo — amarelo é você (e a secundária de
   alguns torneios é amarela). */
.cwb.cwb--cup .cwb-match--final { border: 2px solid var(--cx-cup-line); box-shadow: 0 8px 18px -12px var(--cx-cup-shadow); background: var(--cx-surface); }
.cwb.cwb--cup .cwb-match--final.cwb-match--mine { border-color: var(--cx-you); }
@media (min-width: 900px) {
  .cwb.cwb--cup { overflow-x: visible; }
  .cwb.cwb--cup .cwb-col { flex: 1 1 0; min-width: 14rem; }
}
/* Vagas das fases seguintes: cartão sólido e texto legível (antes: tracejado cinza que sumia).
   O ícone da vaga é a camisa tracejada — a mesma "camisa em branco" do sorteio. A fase da vez
   continua sendo a única com painel tingido; aqui o que muda é só a presença. */
.cwb.cwb--cup .cwb-match--slot { background: var(--cx-surface); border: 1px solid var(--cx-line); }
.cwb.cwb--cup .cwb-match--slot .cwb-side--tbd { padding: .5rem .625rem; }
.cwb.cwb--cup .cwb-match--slot .cwb-side--tbd .cwb-name { font-family: inherit; text-transform: none; font-size: .875rem; font-weight: 600; color: var(--cx-ink-2); }
.cwb.cwb--cup .cwb-tbd-dot { width: 1.25rem; height: 1.25rem; border: 0; border-radius: 0; background: var(--cx-ink-3); -webkit-mask: var(--cx-shirt-dashed) center / contain no-repeat; mask: var(--cx-shirt-dashed) center / contain no-repeat; }
.cwb.cwb--cup .cwb-col:not(.is-live):not(.is-next) .cwb-col-head { padding-top: 1.375rem; }
.cwb.cwb--cup .cwb-col-count { color: var(--cx-ink-2); font-weight: 600; }
.cwb.cwb--cup .cwb-match--slot.cwb-match--final { border: 2px solid var(--cx-cup-line); }
.cwb.cwb--cup .cwb-lane { font-size: .625rem; color: var(--cx-ink-3); margin: .375rem 0; }

/* ── Artilharia (página da Copa) ── */
.cupx-scorers .wc-section-title { font-family: var(--cx-score); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; }
.cupx-scorers-list { list-style: none; margin: .75rem 0 0; padding: .375rem; display: grid; gap: .25rem; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-l); }
.cupx-scorer { display: grid; grid-template-columns: 2.25rem 2.5rem minmax(0, 1fr) auto auto; align-items: center; gap: .75rem; padding: .5rem .75rem; border-radius: 14px; }
.cupx-scorer + .cupx-scorer:not(.is-me) { border-top: 1px dashed var(--cx-line); border-radius: 0; }
.cupx-scorer-rank { font-family: var(--cx-score); font-size: 1.125rem; color: var(--cx-ink-3); text-align: center; }
.cupx-scorer-kit svg { display: block; width: 100%; height: auto; }
.cupx-scorer-id { min-width: 0; display: flex; flex-direction: column; }
.cupx-scorer-name { font-weight: 800; font-size: .9375rem; color: var(--cx-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cupx-scorer-name:hover { text-decoration: underline; }
.cupx-scorer-sel { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-scorer-sel img { width: 1.125rem !important; height: auto !important; border-radius: 2px; }
.cupx-scorer-goals { justify-self: end; font-size: .8125rem; color: var(--cx-ink-2); white-space: nowrap; }
.cupx-scorer-goals b { font-family: var(--cx-score); font-weight: 400; font-size: 1.375rem; color: var(--cx-ink); }
/* O líder: a linha que manda — camisa maior, número e gols grandes, sem fundo próprio. */
.cupx-scorer.is-leader { grid-template-columns: 2.25rem 4rem minmax(0, 1fr) auto auto; padding: .875rem .75rem; }
.cupx-scorer.is-leader .cupx-scorer-rank { font-size: 1.75rem; color: var(--cx-cup-line); }
.cupx-scorer.is-leader .cupx-scorer-name { font-size: 1.125rem; }
.cupx-scorer.is-leader .cupx-scorer-goals b { font-size: 2.25rem; }
.cupx-scorer.is-me { background: var(--cx-you-soft); border-radius: 14px; }

/* Folha de compartilhar o story (fora do .cupx: vai no body). */
.cc-sheet { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(8, 12, 10, .86); }
.cc-sheet-box { width: min(22rem, 100%); display: grid; gap: .75rem; justify-items: center; }
.cc-sheet-img { width: auto; max-width: 100%; max-height: 66vh; border-radius: 1rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.cc-sheet-actions { width: 100%; display: grid; gap: .5rem; }
.cc-sheet-btn { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: .9375rem; text-decoration: none; cursor: pointer; background: rgba(255, 255, 255, .14); color: #fff; }
.cc-sheet-btn.is-primary { background: #FFD84D; color: #1A1A1A; }
.cc-sheet-btn.is-quiet { background: transparent; color: rgba(255, 255, 255, .8); }
.cc-sheet-hint { margin: 0; font-size: .8125rem; color: rgba(255, 255, 255, .75); text-align: center; }

/* ── Convite ── */
.cupx-share { margin: .75rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.cupx-share-btn { min-height: 2.75rem; gap: .5rem; }

/* ── Quadro das seleções: página de álbum (vagas desde o início) ── */
.cupx-team { position: relative; overflow: hidden; }
.cupx-team-name { font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.0625rem; }
.cupx-team-flag img { width: 1.75rem !important; height: auto !important; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.cupx-armband { margin-left: auto; flex: none; width: 1.125rem; height: 1.125rem; border-radius: 3px; background: var(--cx-cup-2); color: #1A1A1A; font-family: var(--cx-score); font-size: .75rem; text-decoration: none; display: grid; place-items: center; }
.cupx-team-list li { grid-template-columns: 22px minmax(0, 1fr) auto; }
.cupx-team-list li.is-vacant .cupx-team-who, .cupx-team-list li.is-void .cupx-team-who { color: var(--cx-ink-3); }
.cupx-team-list li.is-void .cupx-team-who { font-style: italic; font-size: .75rem; }
.cupx-slot-shirt { display: inline-block; width: 1.125rem; height: 1.125rem; vertical-align: -0.2em; background: var(--cx-ink-3); -webkit-mask: var(--cx-shirt-dashed) center / contain no-repeat; mask: var(--cx-shirt-dashed) center / contain no-repeat; opacity: .7; }

/* ── Potes: as urnas da cerimônia ── */
.cupx-pot { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--cx-surface), var(--cx-cup-soft)); border-radius: 18px 18px 30px 30px; }
.cupx-pot::before { content: ""; position: absolute; top: 10%; bottom: 14%; left: 6px; width: 7px; border-radius: 99px; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); opacity: .7; pointer-events: none; }
.cupx-pot-title { font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: 1.25rem; }
.cupx-pot.is-next { box-shadow: inset 0 0 0 2px var(--cx-cup-2), 0 0 0 4px var(--cx-cup-soft); }
.cupx-pot.is-mine.is-next { box-shadow: inset 0 0 0 2px var(--cx-you), 0 0 0 4px var(--cx-cup-soft); }

/* Regras como o quadro da TV: fichas numeradas. */
.cupx-rules { list-style: none; padding: 0; counter-reset: cx-rule; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .375rem; max-width: none; }
.cupx-rules li { counter-increment: cx-rule; display: grid; grid-template-columns: 1.75rem 1fr; gap: .5rem; align-items: start; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: 10px; padding: .5rem .625rem; }
.cupx-rules li::before { content: counter(cx-rule); font-family: var(--cx-score); font-size: 1.5rem; line-height: 1; color: var(--cx-cup-line); }

/* ── Encerrado: o pôster ── */
.cupx-poster { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--cx-radius-l); background: var(--cx-cup); color: var(--cx-cup-ink); padding: 1.25rem 1.25rem 1.125rem; }
.cupx-poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cx-pattern, none); opacity: .1; }
.cupx-poster-title { margin: 0; font-family: var(--cx-score); font-weight: 400; text-transform: uppercase; font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.02; max-width: 24ch; }
.cupx-poster-sub { margin: .5rem 0 0; font-size: .9375rem; color: var(--cx-on-cup-2); }

@media (max-width: 899px) {
  /* Linha do tempo no celular: todas as etapas no MESMO cartão do desktop (feitas só trocam o
     número pelo ✓), rolando dentro da faixa; a atual é trazida pra vista pelo JS. */
  .cupx-steps { grid-auto-columns: auto; }
  .cupx-step { width: 9.5rem; }
  .cupx-stage-title.is-team { font-size: 1.5rem; }
}
@media (max-width: 899px) and (max-height: 640px) {
  .cupx-moment-shirt { width: 6.5rem; height: 6.5rem; font-size: 2.5rem; }
}

@media (min-width: 900px) {
  .cupx-hero { padding: 1.75rem 2rem; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem; }
  .cupx-hero-step { font-size: 2.25rem; }
  .cupx-score { margin-top: 0; }
  .cupx-score-num { font-size: 3.25rem; }
  .cupx-score-cell { min-width: 5rem; }
  .cupx-progress { margin-top: 0; min-width: 340px; }
  .cupx-steps { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); overflow: visible; }
  .cupx-switch { display: none; }
  .cupx-panes.has-board { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
  .cupx-panes.has-board > .cupx-pane { display: block !important; }
  .cupx-stage { top: 1rem; }
}
@media (max-width: 899px) {
  .cupx-stage { padding: .625rem .75rem .875rem; }
  .cupx-stage-turn { font-size: .8125rem; line-height: 1.35; }
  .cupx-stage-slip { margin-top: .375rem; height: 3.75rem; gap: .625rem; }
  .cupx-stage-ball { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
  .cupx-stage-title, .cupx-stage-name > .cupx-team-label { font-size: 1.25rem; }
  .cupx-stage-next { margin-top: .375rem; }

  /* Ao vivo (divulgação e sorteio): a linha do tempo sai e o hero vira uma faixa curta. O
     palco começa logo abaixo, em vez de no meio da tela. */
  .cupx.is-live-show .cupx-steps { display: none; }
  .cupx.is-live-show .cupx-hero { padding: .75rem 1rem .875rem; border-radius: var(--cx-radius-s); }
  .cupx.is-live-show .cupx-hero::after { display: none; }
  .cupx.is-live-show .cupx-hero-when { display: none; }
  /* O nome do torneio fica, numa linha curta: é a única coisa que diz qual Copa é. */
  .cupx.is-live-show .cupx-hero-cup { font-size: .8125rem; }
  .cupx.is-live-show .cupx-hero-step { font-size: 1.125rem; margin-top: .125rem; max-width: none; }
  .cupx.is-live-show .cupx-hero-live { font-size: .8125rem; }
  .cupx.is-live-show .cupx-progress { margin-top: .5rem; }
  .cupx.is-live-show .cupx-progress-text { font-size: .8125rem; margin-top: .25rem; }
}
/* Tela baixa (paisagem, celular pequeno com a barra do WhatsApp): o palco encolhe e, no
   limite, deixa de grudar — melhor rolar do que ocupar metade da tela. */
@media (max-width: 899px) and (max-height: 640px) {
  .cupx-stage-next { display: none; }
  .cupx-stage-slip { height: 3.25rem; }
  .cupx-stage-ball { width: 3rem; height: 3rem; font-size: 1.25rem; }
}
@media (max-height: 520px) {
  .cupx-stage { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .cupx *, .cupx *::before, .cupx *::after { animation: none !important; transition: none !important; }
}

/* Banner da arena em dia de jogo: o hero da página da Copa, inteiro como link. O `.cupx` é só
   pra herdar tokens e textura — aqui ele não é a página, então sem coluna nem gap. */
.wc-announce-cup { display: block; text-decoration: none; color: inherit; border-radius: var(--cx-radius-l); }
.wc-announce-cup .cupx-hero { display: block; transition: filter .15s ease; }
.wc-announce-cup .cupx-hero-text > span { display: block; }
.wc-announce-cup .cupx-hero-text > .cupx-hero-live { display: flex; }
.wc-announce-cup:hover .cupx-hero { filter: brightness(1.06); }
.wc-announce-cup:focus-visible { outline: 3px solid var(--cx-you); outline-offset: 3px; }
@media (min-width: 900px) {
  .wc-announce-cup .cupx-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; }
}

/* A faixa: o hero encolhido a uma linha nos dias sem nada ao vivo. Mesma cor e textura, então
   é reconhecível de longe, mas com 44px de altura não empurra a página de ninguém. */
.wc-strip {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: row; align-items: center; gap: .75rem; min-height: 2.75rem;
  padding: .5rem 1rem; border-radius: 12px;
  background: var(--cx-cup); color: var(--cx-cup-ink); text-decoration: none;
  font-size: .875rem; line-height: 1.2; white-space: nowrap;
}
.wc-strip::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cx-pattern, none); background-size: 96px; opacity: .1; pointer-events: none; }
.cupx--grass.wc-strip::before, .cupx--diamonds.wc-strip::before { opacity: .06; }
.wc-strip-cup { font-weight: 700; color: var(--cx-on-cup-2); flex: none; }
.wc-strip-step { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: .75rem; border-left: 1px solid rgba(255, 255, 255, .28); }
.wc-strip-when { color: var(--cx-on-cup-2); flex: none; }
.wc-strip-go { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .375rem; font-weight: 700; font-size: .8125rem; }
.wc-strip-go i { font-style: normal; font-size: 1.125rem; line-height: 1; transition: transform .15s ease; }
.wc-strip:hover .wc-strip-go i { transform: translateX(2px); }
.wc-strip:focus-visible { outline: 3px solid var(--cx-you); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wc-strip:hover .wc-strip-go i { transform: none; } }
@media (max-width: 640px) {
  .wc-strip { gap: .5rem; padding: .5rem .75rem; font-size: .8125rem; }
  .wc-strip-go span { display: none; }
  .wc-strip-step { padding-left: .5rem; }
  .wc-strip-when { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* Classificação final: a Artilharia com seleções no lugar de jogadores. A campeã leva a estrela
   dourada no ombro da camisa, como no cartão. */
.cupx-standings .cupx-scorer-kit { position: relative; }
.cupx-standings-star { position: absolute; top: -.375rem; right: -.375rem; font-style: normal; font-size: 1.125rem; line-height: 1; color: #E2A700; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cupx-standings .cupx-scorer-name { display: inline-flex; align-items: center; gap: .375rem; }
.cupx-standings .cupx-scorer-name img { width: 1.25rem !important; height: auto !important; border-radius: 2px; }
.cupx-standings .is-leader .cupx-scorer-name { font-family: var(--cx-score); font-weight: 400; font-size: 1.75rem; text-transform: uppercase; letter-spacing: .01em; }
.cupx-standings .cupx-scorer-name:hover { text-decoration: none; }

/* Ritmo entre as seções da página da Copa: o mesmo respiro (2,5rem) entre painel da seleção,
   classificação, chaveamento e artilharia. O painel já traz 1,75rem embaixo. */
.cupx > .wc-section { margin-top: 2.5rem; }
.cupx > .cupx-hub + .wc-section { margin-top: .75rem; }

/* Celular: o cartão não flutua no cinza — o painel inteiro ganha a cor da seleção e o cartão
   se funde nele (sem sombra nem borda própria, fundo liso). Só a TELA muda: o story
   compartilhado é desenhado à parte no convocado_card_controller.js. O botão vira branco, que
   lê sobre qualquer cor de seleção. */
@media (max-width: 899px) {
  .cupx-hub-card { background: var(--cc-1); border-radius: var(--cx-radius-l); padding: .5rem 1rem 1rem; }
  .cupx-hub-card .cupx-cc-story { box-shadow: none; border-radius: 0; background: var(--cc-1); }
  .cupx-hub-card .cupx-cc-share { background: #FFFFFF; color: #14201A; border-color: #FFFFFF; }
  .cupx-hub-card .cupx-cc-share:hover { background: rgba(255, 255, 255, .9); }
}

/* Página do sorteio: o painel da seleção no celular fica só com o cartão — a coluna da direita
   (elenco, jogos) está na página da Copa. */
@media (max-width: 899px) {
  .cupx-hub.is-compact-mobile .cupx-hub-panel { display: none; }
}
/* Mesmo respiro entre seções da página da Copa (2,5rem) até os potes. */
@media (min-width: 900px) {
  .cupx-hub.is-compact-mobile { margin-bottom: 2.5rem; }
}

/* ── Prêmios ── O que VOCÊ leva vem primeiro (fundo amarelo-claro, a cor do "você"); a tabela por
   colocação fica ao lado, quieta, com a sua posição marcada quando a Copa acaba. */
.cupx-prizes .wc-section-title { font-family: var(--cx-score); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; }
.cupx-prizes-rules { font-size: .8125rem; font-weight: 700; color: var(--cx-cup-line); text-decoration: none; }
.cupx-prizes-rules:hover { text-decoration: underline; }
.cupx-prizes-grid { display: grid; gap: 1rem; margin-top: .75rem; }
.cupx-prizes-you { background: var(--cx-you-soft); border-radius: var(--cx-radius-l); padding: 1.125rem; display: grid; gap: 1rem; }
.cupx-prizes-kicker { margin: 0; font-size: .8125rem; font-weight: 700; color: var(--cx-ink-2); }
.cupx-prizes-total { margin: .125rem 0 0; font-family: var(--cx-score); font-size: 1.875rem; line-height: 1.05; text-transform: uppercase; color: var(--cx-ink); }
.cupx-prizes-block { display: grid; gap: .5rem; }
.cupx-prizes-h3 { margin: 0; font-size: .875rem; font-weight: 800; color: var(--cx-ink); }
.cupx-prizes-h3 small { display: block; font-weight: 500; font-size: .8125rem; color: var(--cx-ink-2); margin-top: .125rem; }
.cupx-prizes-matches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; }
.cupx-prizes-matches li { background: var(--cx-surface); border-radius: var(--cx-radius-s); padding: .5rem .625rem; display: grid; gap: .0625rem; font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-prizes-matches b { color: var(--cx-ink); font-size: .8125rem; }
.cupx-prizes-matches em { font-style: normal; font-weight: 700; font-size: .75rem; color: var(--cx-ink-3); }
.cupx-prizes-matches li.is-ticket { box-shadow: inset 0 3px 0 var(--cx-done); }
.cupx-prizes-matches li.is-ticket em { color: var(--cx-done); }
.cupx-prizes-matches li.is-loss { opacity: .7; }
.cupx-prizes-empty { margin: 0; font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-prizes-bar { height: .5rem; border-radius: 999px; background: var(--cx-surface); overflow: hidden; }
.cupx-prizes-bar i { display: block; height: 100%; border-radius: inherit; background: var(--cx-you); }
.cupx-prizes-bar.is-done i { background: var(--cx-done); }
.cupx-prizes-gate { margin: 0; font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-prizes-gate b { color: var(--cx-ink); }
.cupx-prizes-table { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-l); padding: 1.125rem; display: grid; gap: .625rem; align-content: start; }
.cupx-prizes-ladder { list-style: none; margin: 0; padding: 0; display: grid; }
.cupx-prizes-ladder li { display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline; gap: .5rem; padding: .4375rem .5rem; border-radius: var(--cx-radius-s); font-size: .875rem; color: var(--cx-ink); }
.cupx-prizes-ladder li + li { border-top: 1px dashed var(--cx-line); }
.cupx-prizes-ladder b { font-family: var(--cx-score); font-weight: 400; font-size: 1.125rem; color: var(--cx-ink-3); }
.cupx-prizes-ladder li:first-child b { color: var(--cx-cup-line); }
.cupx-prizes-ladder li.is-empty span { color: var(--cx-ink-3); }
.cupx-prizes-ladder li.is-mine { background: var(--cx-you-soft); border-top-color: transparent; }
.cupx-prizes-ladder li.is-mine + li { border-top-color: transparent; }
.cupx-prizes-note { margin: 0; font-size: .75rem; color: var(--cx-ink-3); }
@media (min-width: 900px) {
  .cupx-prizes-grid.has-you { grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); }
}
.cupx-hero-rules { display: inline-block; margin-top: .625rem; font-size: .8125rem; font-weight: 700; color: var(--cx-on-cup-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.cupx-hero-rules:hover { color: var(--cx-cup-ink); text-decoration-color: currentColor; }
.cupx.is-live-show .cupx-hero-rules { display: none; }

/* ── A escolha do capitão ── Mesmo vocabulário da página: título em Anton, superfície branca
   com borda fina, a cor do torneio no que foi escolhido, amarelo só no "você". A lista é feita
   de VAGAS numeradas: a vazia usa a camisa tracejada do chaveamento ("vaga por preencher"). */
.cupx-pick .wc-section-title { font-family: var(--cx-score); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .01em; }
.cupx-pick-clock { font-size: .8125rem; font-weight: 700; color: var(--cx-ink-2); font-variant-numeric: tabular-nums; }
.cupx-pick-box { margin-top: .75rem; background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius-l); overflow: hidden; }
.cupx-pick-me { display: flex; gap: .875rem; align-items: center; padding: 1rem 1.125rem; background: var(--cx-you-soft); }
.cupx-pick-kit { position: relative; flex: none; width: 3.5rem; }
.cupx-pick-kit svg { display: block; width: 100%; height: auto; }
.cupx-pick-kit .cupx-armband { position: absolute; left: -.25rem; bottom: .125rem; width: 1.125rem; height: 1.125rem; margin: 0; background: #FFD84D; }
.cupx-pick-who { min-width: 0; }
.cupx-pick-name { margin: 0; font-weight: 800; font-size: 1.0625rem; color: var(--cx-ink); }
.cupx-pick-name small { display: block; font-weight: 600; font-size: .8125rem; color: var(--cx-ink-2); margin-top: .0625rem; }
.cupx-pick-rule { margin: .375rem 0 0; font-size: .9375rem; color: var(--cx-ink); max-width: 62ch; }
.cupx-pick-form { display: grid; gap: 0; }
.cupx-pick-teams { padding: 1rem 1.125rem; }
.cupx-pick-h3 { margin: 0; font-size: .875rem; font-weight: 800; color: var(--cx-ink); }
.cupx-pick-chips { margin-top: .625rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr)); gap: .5rem; }
.cupx-pick .cupx-pick-chip { display: flex; align-items: center; min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid var(--cx-line); border-radius: var(--cx-radius-s); background: var(--cx-surface); color: var(--cx-ink); font: inherit; font-weight: 700; font-size: .875rem; text-align: left; cursor: pointer; transition: border-color .12s ease, background-color .12s ease; }
.cupx-pick .cupx-pick-chip:hover { border-color: var(--cx-cup-line); }
.cupx-pick .cupx-pick-chip:focus-visible { outline: 2px solid var(--cx-cup-line); outline-offset: 2px; }
.cupx-pick .cupx-pick-chip .wc-draft-chip-label { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.cupx-pick .cupx-pick-chip img { width: 1.375rem !important; height: auto !important; border-radius: 2px; flex: none; }
.cupx-pick .cupx-pick-chip.is-selected { background: var(--cx-cup); border-color: var(--cx-cup); color: var(--cx-cup-ink); }
.cupx-pick .cupx-pick-chip.is-disabled { opacity: .45; cursor: not-allowed; }
.cupx-pick-list { padding: 1rem 1.125rem 1.125rem; border-top: 1px solid var(--cx-line); background: var(--cx-paper); display: grid; gap: .625rem; align-content: start; }
.cupx-pick-list-head { display: flex; justify-content: space-between; align-items: baseline; }
.cupx-pick-count { font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-pick-count b { font-family: var(--cx-score); font-weight: 400; font-size: 1.125rem; color: var(--cx-ink); }
.cupx-pick .cupx-pick-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cupx-pick .cupx-pick-slots .wc-draft-order-item { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; align-items: center; gap: .625rem; min-height: 2.75rem; padding: .375rem .5rem .375rem .625rem; border-radius: var(--cx-radius-s); background: var(--cx-surface); border: 1px solid var(--cx-cup-line); }
.cupx-pick .cupx-pick-slots .wc-draft-order-num { font-family: var(--cx-score); font-size: 1.25rem; line-height: 1; color: var(--cx-cup-line); text-align: center; }
.cupx-pick .cupx-pick-slots .wc-draft-order-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: .9375rem; color: var(--cx-ink); min-width: 0; }
.cupx-pick .cupx-pick-slots .wc-draft-order-label img { vertical-align: -0.2em; margin-right: .5rem; }
.cupx-pick .cupx-pick-slots .wc-draft-order-label img { width: 1.375rem !important; height: auto !important; border-radius: 2px; }
.cupx-pick .cupx-pick-slots .wc-draft-order-item.is-empty { background: transparent; border: 1.5px dashed var(--cx-line); }
.cupx-pick .cupx-pick-slots .wc-draft-order-item.is-empty .wc-draft-order-num { color: var(--cx-ink-3); }
.cupx-pick .cupx-pick-slots .wc-draft-order-item.is-empty .wc-draft-order-label { font-weight: 500; color: var(--cx-ink-3); }
.cupx-pick .cupx-pick-slots .wc-draft-order-item.is-empty .wc-draft-order-label::before { content: ""; display: inline-block; vertical-align: -0.2em; margin-right: .5rem; width: 1.125rem; height: 1.125rem; background: var(--cx-ink-3); -webkit-mask: var(--cx-shirt-dashed) center / contain no-repeat; mask: var(--cx-shirt-dashed) center / contain no-repeat; }
.cupx-pick .wc-draft-order-actions { display: inline-flex; gap: .125rem; }
.cupx-pick .wc-draft-order-actions button { width: 1.75rem; height: 1.75rem; padding: 0; border: 1px solid var(--cx-line); border-radius: 8px; background: var(--cx-surface); color: var(--cx-ink-2); font: inherit; font-size: .8125rem; cursor: pointer; }
.cupx-pick .wc-draft-order-actions button:hover { border-color: var(--cx-cup-line); color: var(--cx-ink); }
.cupx-pick-hint { margin: 0; font-size: .8125rem; color: var(--cx-ink-2); }
.cupx-pick .cupx-pick-status { margin: 0; font-size: .8125rem; font-weight: 700; min-height: 1.1em; }
.cupx-pick .cupx-pick-status.is-clean { color: var(--cx-done); }
.cupx-pick .cupx-pick-status.is-dirty { color: #B45309; }
.cupx-pick-bar { height: .25rem; border-radius: 999px; background: var(--cx-line); overflow: hidden; }
.cupx-pick-bar i { display: block; height: 100%; width: 0; background: var(--cx-cup-line); transition: width .2s ease; }
.cupx-pick-save { width: 100%; min-height: 2.75rem; }
.cupx-pick-foot { margin: .625rem 0 0; font-size: .8125rem; color: var(--cx-ink-2); max-width: 72ch; }
@media (min-width: 900px) {
  .cupx-pick-form { grid-template-columns: minmax(0, 1fr) 20rem; }
  .cupx-pick-list { border-top: 0; border-left: 1px solid var(--cx-line); }
}
@media (prefers-reduced-motion: reduce) { .cupx-pick-bar i, .cupx-pick .cupx-pick-chip { transition: none; } }
.cupx-pick .cupx-pick-slots .wc-draft-order-num { width: auto; height: auto; background: none; border: 0; border-radius: 0; display: block; }
