/*
 * Design System v1 — Agon BT (ui-spec §0). Tema escuro primário ("escuro =
 * disputa, claro = gestão"). Tokens em CSS custom properties → base → componentes.
 * Servido pelo Propshaft (sem build).
 */

/* ============================================================ TOKENS */
/* Tema escuro = primário (`:root`). `[data-theme="dark"]` permite reabrir o tema
   escuro em um trecho dentro de uma página clara de gestão (ex.: card de ranking
   "em disputa" no dashboard). O tema claro abaixo sobrescreve por escopo. */
:root,
[data-theme="dark"] {
  /* Marca */
  --brand: #E94E1B;
  --brand-pressed: #C63F12;
  --brand-on-light: #B33A12;      /* laranja legível como texto sobre claro */
  --brand-tint-dark: #2a1d16;     /* tinta sutil de marca sobre escuro */
  --brand-tint-light: #FBE9E1;    /* tinta sutil de marca sobre claro */

  /* Superfícies (escuro = primário) */
  --surface-app: #16130F;
  --surface-card: #1c1813;
  --surface-deep: #120f0b;        /* preto mais fundo: card de temporada encerrada */
  --surface-panel: #211C16;
  --surface-chip: #2a2620;

  /* Texto sobre escuro */
  --text-1: #F4F0E9;
  --text-2: #C9C3B9;
  --text-3: #8c857c;
  --text-4: #6f6962;

  /* Semântica */
  --success: #2F8F57;
  --warning: #B8860B; /* atenção / W.O. */
  --danger: #C0392B;  /* erro / trava */
  --gold: #C8972E;
  --silver: #9AA0A6;
  --bronze: #B07A46;
  --up: #5fbf72;
  --down: #e0775f;
  --same: #6f6962;

  /* Tipografia */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-num: "Archivo", system-ui, sans-serif;     /* números tabulares */
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --fs-display: 34px;
  --fs-title: 22px;
  --fs-hero-num: 34px;
  --fs-line-num: 19px;
  --fs-strong: 14px;
  --fs-body: 13px;
  --fs-eyebrow: 10px;

  /* Espaço (base 4) e raio */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --gutter: 16px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px; --r-pill: 20px;

  /* Elevação / borda */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glow: 0 0 0 2px var(--brand), 0 0 12px rgba(233, 78, 27, 0.35);
  --elev-card: 0 1px 2px rgba(0, 0, 0, 0.04); /* elevação discreta dos cards */
  --tap: 44px; /* alvo de toque mínimo */
}

/* Tema claro (gestão) — superfícies claras. Fundo e card têm luminosidade
   próxima, então a separação vem de borda + sombra (variante "D" validada): o
   fundo é levemente tingido e a borda é perceptível (≈3:1) para legibilidade em
   qualquer monitor. */
[data-theme="light"] {
  --surface-app: #EFEAE1;
  --surface-card: #ffffff;
  --surface-panel: #ffffff;
  --surface-chip: #EAE6DE;
  --text-1: #16130F;
  /* Escala muted escurecida p/ legibilidade sobre o papel (feedback 2026-07-22):
     os rótulos em caixa-alta (.field__label/.eyebrow usam --text-3) estavam com
     contraste ~1.9:1 (ilegível). Hierarquia mantida: 2 (secundário) > 3 (rótulo) > 4 (hint). */
  --text-2: #726c5e; /* ~4.9:1 — secundário/corpo muted */
  --text-3: #857e6f; /* ~3.8:1 — rótulos, eyebrow, meta (antes #b8b3a8) */
  --text-4: #a8a190; /* ~2.5:1 — hint/desabilitado (antes #b8b3a8) */
  --border: #CFC7B8;
  --border-strong: #a39a8a; /* mais forte que --border: contorna inputs e botões secundários no claro */
  --elev-card: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ============================================================ BASE */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-app);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; }
a { color: var(--brand); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* Ícones Lucide (SVG inline, herdam currentColor). */
svg.lucide { width: 20px; height: 20px; vertical-align: middle; flex: none; }
.bottom-nav__tab svg.lucide { width: 22px; height: 22px; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-eyebrow);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3);
}

/* App frame mobile-first (sem position: relative — o menu de conta agora vive no header). */
.app-frame { max-width: 480px; margin: 0 auto; min-height: 100dvh; padding-bottom: var(--sp-6); }
.stack { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--gutter); }
.row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.linkout { word-break: break-all; font-size: var(--fs-eyebrow); color: var(--text-2); }

/* ============================================================ BUTTON (§1) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: 0 var(--sp-4);
  font-family: var(--font-body); font-size: var(--fs-strong); font-weight: 600;
  border-radius: var(--r-md); border: 1.5px solid transparent; cursor: pointer;
  background: transparent; color: var(--text-1); text-decoration: none; transition: transform .05s ease;
}
.btn:active { transform: scale(0.975); }
.btn--full { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:active { background: var(--brand-pressed); }
.btn--secondary { border-color: var(--border-strong); color: var(--text-1); }
.btn--ghost { color: var(--brand); }
.btn--destructive { border-color: var(--down); color: var(--down); }
.btn--locked { border-style: dashed; border-color: var(--border-strong); color: var(--text-4); cursor: not-allowed; }
.btn--icon { width: var(--tap); min-width: var(--tap); padding: 0; color: var(--text-2); } /* ação só-ícone */
.btn--inline { padding-left: 0; padding-right: 0; font-weight: 600; } /* ação textual discreta (flush à esquerda) */
.btn--inline svg.lucide { width: 16px; height: 16px; }
.btn--sm { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-body); } /* ação compacta (ex.: copiar link) */
.btn--sm svg.lucide { width: 16px; height: 16px; }
.btn[disabled], .btn--disabled { background: var(--surface-chip); color: var(--text-4); cursor: not-allowed; border-color: transparent; }
.btn__reason { display: block; font-size: var(--fs-eyebrow); color: var(--text-4); margin-top: var(--sp-1); }

/* ============================================================ INPUT (§2) */
.field { display: flex; flex-direction: column; gap: var(--sp-1); }
.field__label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); text-transform: uppercase; color: var(--text-3); }
.field__value { margin: 0; font-size: var(--fs-strong); font-weight: 600; color: var(--text-1); } /* dado só-leitura (ex.: jogador vinculado) */
/* Cabeçalho da ficha só-leitura (jogador vinculado): foto + nome centralizados. */
.roster-view-head { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.roster-view-name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-title); text-align: center; }
.input {
  min-height: var(--tap); padding: 0 var(--sp-3);
  background: var(--surface-card); color: var(--text-1);
  border: 1.5px solid var(--border-strong); border-radius: var(--r-md); font-size: var(--fs-body);
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--glow); }
.input--error { border-color: var(--danger); }
/* Campo não-editável (readonly/disabled): fundo apagado + cursor bloqueado. */
.input:disabled, .input[readonly] { background: var(--surface-chip); color: var(--text-3); border-style: dashed; cursor: not-allowed; }
.field__hint { font-size: var(--fs-eyebrow); color: var(--text-3); }
.field__hint--error { color: var(--danger); }
/* Empilhamento de campos dentro de um <form> (gap entre .field e o submit). */
.form-stack { display: flex; flex-direction: column; gap: var(--sp-4); }

/* Grupo de campos opt-in (genérico): o toggle do cabeçalho [data-reveal-toggle]
   revela o corpo (CSS :has, sem JS). Reusável por formato/marca/calendário etc. */
.field-group { border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface-card); }
.field-group__head { padding: 0 var(--sp-4); }
.field-group__body { display: none; padding: 0 var(--sp-4) var(--sp-4); flex-direction: column; gap: var(--sp-4); }
.field-group:has([data-reveal-toggle]:checked) .field-group__body { display: flex; border-top: 1px solid var(--border); padding-top: var(--sp-4); }

/* Linha de gestão (lista admin): info à esquerda, ações (ícones) à direita. */
.admin-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--elev-card); }
.admin-row__info { flex: 1; min-width: 0; }
.admin-row__name { font-size: var(--fs-strong); font-weight: 600; }
.admin-row__meta { font-size: var(--fs-eyebrow); color: var(--text-3); margin-top: 2px; word-break: break-word; }
.admin-row__actions { display: flex; gap: var(--sp-1); flex: none; }
.admin-row__actions form { margin: 0; }
/* Ações da linha como ícones compactos (menores que o padrão de 20px). */
.admin-row__actions .btn--icon { width: 38px; min-width: 38px; }
.admin-row__actions svg.lucide { width: 18px; height: 18px; }

/* Aviso de excedente de fixos (orienta, não bloqueia §6.8) — no cabeçalho do grupo. */
.roster-note { font-size: var(--fs-eyebrow); }
.roster-note--over { color: var(--warning); font-weight: 700; }
/* Situação de acesso em linha (ícone + texto): usada na tela de calendário. */
.admin-row__info .admin-row__meta + .admin-row__meta { margin-top: 2px; }
.roster-status { display: inline-flex; align-items: center; gap: 4px; }
.roster-status--pending { color: var(--warning); }
.roster-status svg.lucide { width: 13px; height: 13px; }

/* Linha do histórico de auditoria. */
.audit-row { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }

/* Tela de detalhe: meta no topo + seções separadas por divisória. */
.detail-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); }
.section { display: flex; flex-direction: column; gap: var(--sp-3); border-top: 1px solid var(--border); padding-top: var(--sp-4); }
.link-plain { color: var(--text-1); text-decoration: none; }
/* Campo com afixo à direita (ex.: toggle de senha). */
.input-group { position: relative; display: flex; }
.input-group .input { flex: 1; width: 100%; }
.input--affix { padding-right: var(--tap); }
.input-affix {
  position: absolute; right: 0; top: 0; bottom: 0; width: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: var(--text-3); cursor: pointer;
}
.input-affix:hover { color: var(--text-2); }
/* Utilitário de ocultar — !important para vencer regras de componente (ex.: cards
   e opções com display:flex definido depois nesta folha). */
.is-hidden { display: none !important; }

/* Combobox (busca com lista de opções filtrável) — ex.: filtro por organização.
   Lista estilizada (não o datalist nativo); opções escondidas via .is-hidden. */
.combo { position: relative; }
.combo__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; margin: 0;
  list-style: none; padding: var(--sp-1); background: var(--surface-card); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); box-shadow: var(--elev-card); max-height: 260px; overflow-y: auto; }
.combo__opt { display: flex; align-items: center; min-height: var(--tap); padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm); cursor: pointer; color: var(--text-1); }
.combo__opt:hover { background: var(--surface-chip); }

/* ============================================================ CONTROLS (§3) */
.segmented { display: inline-flex; background: var(--surface-chip); border-radius: var(--r-pill); padding: 2px; }
.segmented__opt { display: inline-flex; align-items: center; border: 0; background: transparent; color: var(--text-3); padding: 8px var(--sp-4); border-radius: var(--r-pill); font-size: var(--fs-body); cursor: pointer; }
.segmented__opt--active { background: var(--brand); color: #fff; }
/* Variante em radios (form): o input fica oculto e o rótulo marcado pinta. */
.segmented__radio { position: absolute; opacity: 0; pointer-events: none; }
.segmented__opt:has(.segmented__radio:checked) { background: var(--brand); color: #fff; }
/* Dentro de um campo de form, ocupa a largura toda com as opções divididas. */
.field .segmented { display: flex; }
.field .segmented .segmented__opt { flex: 1; justify-content: center; }
/* Como filtro (fora de form), largura natural — sem esticar até o fim. */
.segmented[data-gender-filter] { align-self: flex-start; }
/* Toggle RSVP (cockpit): dois button_to viram segmentos (form some do fluxo). */
.seg-toggle form { display: contents; }
.seg-toggle .segmented__opt { font-size: var(--fs-eyebrow); padding: 6px var(--sp-3); }
.toggle { display: inline-flex; align-items: center; gap: var(--sp-2); }
.toggle__track { width: 40px; height: 24px; border-radius: var(--r-pill); background: var(--surface-chip); position: relative; }
.toggle__track--on { background: var(--brand); }
.toggle__knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .12s ease; }
.toggle__track--on .toggle__knob { left: 18px; }
/* Switch de formulário: o próprio checkbox vira o trilho (sem JS), alinhado à
   direita com o rótulo à esquerda. (Idioma de input; o `.toggle`/ToggleComponent
   é o equivalente display-only para leitura — não confundir os dois.) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--tap); }
.switch__input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: var(--r-pill); background: var(--surface-chip); border: 0; position: relative; cursor: pointer; flex: none; margin: 0; transition: background .12s ease; }
.switch__input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--elev-card); transition: left .12s ease; }
.switch__input:checked { background: var(--brand); }
.switch__input:checked::after { left: 18px; }
.stepper { display: inline-flex; align-items: center; gap: var(--sp-3); }
.stepper__btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: transparent; color: var(--text-1); font-size: 18px; cursor: pointer; }
.stepper__btn[disabled] { color: var(--text-4); cursor: not-allowed; }
.stepper__value { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--fs-line-num); min-width: 20px; text-align: center; }

/* ============================================================ SHEET (§4) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface-card); border-radius: 28px 28px 0 0; padding: var(--sp-4); padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; max-height: 85dvh; overflow-y: auto; }
/* Trava o scroll do fundo enquanto o sheet está aberto. */
html.is-sheet-open, html.is-sheet-open body { overflow: hidden; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.sheet__head .sheet__title { margin: 0; }
.sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto var(--sp-3); }
.sheet__title { font-family: var(--font-display); text-transform: uppercase; font-size: var(--fs-title); }

/* ============================================================ TOAST (§5) */
.flash { padding: var(--sp-4) var(--gutter) 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.toast { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--surface-panel); color: var(--text-1); border: 1px solid var(--border); }
.toast--success { border-color: var(--success); }
.toast--info { border-color: var(--warning); }
.toast__close { background: transparent; border: 0; color: var(--text-3); cursor: pointer; display: inline-flex; padding: 2px; }
.toast__close:hover { color: var(--text-1); }

/* Menu da conta — vive na linha do header (HeaderComponent), alinhado ao título. */
.account-menu { position: relative; z-index: 30; margin-right: -6px; }
.account-menu__btn { list-style: none; cursor: pointer; color: var(--text-2); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; min-height: var(--tap); justify-content: center; }
.account-menu__btn::-webkit-details-marker { display: none; }
.account-menu[open] .account-menu__btn { color: var(--brand); }
/* Avatar do usuário logado como gatilho do menu. Para quem acumula os dois papéis,
   um anel na cor do contexto (laranja organizador · verde jogador) + rótulo abaixo. */
.account-menu__av { width: 30px; height: 30px; }
.account-menu[open] .account-menu__av { box-shadow: 0 0 0 2px var(--brand); }
.account-menu__btn--organizer .account-menu__av,
.account-menu[open] .account-menu__btn--organizer .account-menu__av { box-shadow: 0 0 0 2px var(--brand); }
.account-menu__btn--player .account-menu__av,
.account-menu[open] .account-menu__btn--player .account-menu__av { box-shadow: 0 0 0 2px #2F855A; }
.context-label { font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: .01em; }
.context-label--organizer { color: var(--brand); }
.context-label--player { color: #2F855A; }
.account-menu__pop { position: absolute; right: 0; top: calc(100% + 4px); min-width: 180px; background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--elev-card); padding: var(--sp-1); display: flex; flex-direction: column; }
.account-menu__pop form { margin: 0; }
.account-menu__who { padding: var(--sp-2) var(--sp-3) var(--sp-3); border-bottom: 1px solid var(--border); margin-bottom: var(--sp-1); }
.account-menu__name { font-weight: 600; }
.account-menu__email { font-size: var(--fs-eyebrow); color: var(--text-3); word-break: break-all; }
.account-menu__dev { display: flex; align-items: center; gap: 5px; margin-top: var(--sp-1); padding: var(--sp-2) var(--sp-3) 2px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); }
.account-menu__dev svg.lucide { width: 12px; height: 12px; }
.account-menu__item { display: flex; align-items: center; gap: var(--sp-2); width: 100%; text-align: left; padding: var(--sp-2) var(--sp-3); border: 0; background: transparent; color: var(--text-1); text-decoration: none; border-radius: var(--r-sm); cursor: pointer; font: inherit; white-space: nowrap; }
.account-menu__pop .account-menu__item svg.lucide { flex: none; width: 16px; height: 16px; color: var(--text-3); }
.account-menu__item--danger svg.lucide { color: var(--down); }
.account-menu__item:hover { background: var(--surface-chip); }
.account-menu__item--danger { color: var(--down); }

/* ============================================================ TOOLTIP / AUTORIA (§6) */
.authorship { font-size: var(--fs-eyebrow); color: var(--text-3); }

/* ============================================================ AVATAR */
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-chip); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 56px; height: 56px; }
/* Silhueta padrão (sem foto): ícone centralizado, tingido pelo gênero. */
.avatar__silhouette { width: 62%; height: 62%; color: #fff; }
.avatar--male { background: #3E7CB1; }
.avatar--female { background: #C25E8B; }
.avatar--neutral { background: var(--surface-chip); }
.avatar--neutral .avatar__silhouette { color: var(--text-3); }

/* Controle de foto do perfil (J5): preview + "Escolher foto". */
.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; }
/* Controle de foto: avatar + "Escolher foto" (pequeno, colado) à esquerda; hint à direita. */
.photo-field__control { display: flex; align-items: center; gap: var(--sp-3); }
.photo-field__picker { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.photo-field__preview { flex: none; }
.photo-field__preview .avatar { width: 56px; height: 56px; }
.photo-field__pick { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--brand); font-weight: 700; font-size: var(--fs-eyebrow); white-space: nowrap; }
.photo-field__pick svg { width: 13px; height: 13px; }
.photo-field__meta { min-width: 0; }
.photo-field__hint { font-size: var(--fs-eyebrow); }

/* Cropper (bottom-sheet): canvas quadrado sob uma máscara circular. */
.cropper { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1; margin: 0 auto var(--sp-3); }
.cropper__canvas { width: 100%; height: 100%; display: block; border-radius: var(--r-card); background: #000; touch-action: none; cursor: grab; }
.cropper__canvas:active { cursor: grabbing; }
/* Máscara: escurece fora do círculo inscrito (sombra com grande espalhamento). */
.cropper__mask { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5); pointer-events: none; }
.cropper__zoom { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-2); margin-bottom: var(--sp-3); }
.cropper__zoom input[type="range"] { flex: 1; accent-color: var(--brand); }
.cropper__actions { display: flex; gap: var(--sp-2); }

/* ============================================================ STATE BADGE (§7) */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--sp-2); border-radius: var(--r-pill); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--border); color: var(--text-2); }
.badge--draft { color: var(--text-3); }
.badge--ongoing { color: var(--brand); border-color: var(--brand); }
.badge--awaiting_tiebreak { color: var(--warning); border-color: var(--warning); }
.badge--closed { color: var(--text-2); }

/* ============================================================ PLAYER ROW */
.player-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--elev-card); }
.player-row__pos { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--fs-line-num); width: 24px; color: var(--text-2); }
.player-row__name { flex: 1; }
.player-row__num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.var--up { color: var(--up); } .var--down { color: var(--down); } .var--same { color: var(--same); }

/* ============================================================ LIST CARD (cockpit C1) */
/* Lista em card único com linhas divididas (design agon-substitutes / agon-player-row):
   fila de fixos e suplentes. Círculo numerado colorido por status + status inline. */
.list-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--elev-card); }
.list-card__row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border-bottom: 1px solid var(--border); }
.list-card__row:last-child { border-bottom: 0; }
.list-card__info { flex: 1; min-width: 0; }
.list-card__name { font-size: var(--fs-strong); font-weight: 700; }
.list-card__meta { font-size: var(--fs-eyebrow); color: var(--text-3); margin-top: 2px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.list-card__actions { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.list-card__actions form { margin: 0; }
.list-card__actions .btn--icon { width: 38px; min-width: 38px; }
.list-card__actions svg.lucide { width: 18px; height: 18px; }
/* Slots fixos: tag alinha em coluna (mesma largura), botões à direita. */
.action-tag { width: 104px; flex: none; display: flex; }
.action-tag .tag-called, .action-tag .tag-available { width: 100%; }
.action-btns { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-1); width: 80px; flex: none; }
/* Três níveis do suplente (cockpit §6.9): escalado (vai jogar) verde, na fila
   laranja, fora esmaecido — faixa lateral marca o estado. */
.list-card__row--called { border-left: 3px solid var(--success); }
.list-card__row--queued { border-left: 3px solid var(--brand); }
.list-card__row--out { opacity: .5; }
.tag-called, .tag-available { display: inline-flex; align-items: center; justify-content: center; gap: 4px; line-height: 1; align-self: center; font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; border-radius: var(--r-pill); flex: none; }
.tag-called svg.lucide, .tag-available svg.lucide { width: 11px; height: 11px; }
.tag-called { background: var(--brand); color: #fff; }
.tag-available { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.q-num { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 10px; font-weight: 800; color: #fff; background: var(--text-4); flex: none; }
.q-num--ok { background: var(--success); }
.q-num--open { background: var(--danger); } /* vaga aberta na confirmação (§6.6a) */
.list-card__row--open .list-card__name { color: var(--danger); } /* "falta substituir" */
.tag-g { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.st { display: inline-flex; align-items: center; gap: 3px; }
.st svg.lucide { width: 13px; height: 13px; }
.st--ok { color: var(--success); }

/* ============================================================ STAGE CARD */
/* Card também é usado como link (dashboard): texto em tinta, sem sublinhado e
   sem herdar o laranja de link — o laranja fica só para ação/destaque. */
.stage-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); box-shadow: var(--elev-card); color: var(--text-1); text-decoration: none; }
.stage-card--ongoing { border-color: var(--brand); box-shadow: var(--glow); }
.stage-card--pending { border-style: dashed; }
/* Destaque de necessidade de suplente no cockpit (§6.9): atenção vs tudo certo. */
.stage-card--warn { border-color: var(--warning); border-left-width: 4px; }
.stage-card--warn .stage-card__title { color: var(--warning); }
.stage-card--ok { border-color: var(--success); border-left-width: 4px; }
.stage-card--ok .stage-card__title { color: var(--success); }
.stage-card__title { font-family: var(--font-display); font-size: var(--fs-title); }
.stage-card__title--sm { font-size: var(--fs-strong); display: flex; align-items: center; gap: var(--sp-2); }
.stage-card__title--sm svg.lucide { width: 18px; height: 18px; flex: none; }

/* ============================================================ RANKING CARD (dashboard O1) */
/* Duas faces (design hi-fi): publicado = card escuro ("disputa"), independente
   do tema claro de gestão; rascunho = card claro tracejado ("não publicado"). */
.ranking-card { display: flex; flex-direction: column; gap: var(--sp-2); border-radius: var(--r-xl); padding: 14px 15px; text-decoration: none; box-shadow: var(--elev-card); }
.ranking-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-2); }
.ranking-card__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 17px; }
.ranking-card__tag { font-family: var(--font-mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-pill); flex: none; }
.ranking-card__org { margin-top: 2px; }
.ranking-card__info { margin-top: 2px; }
.ranking-card__foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: var(--sp-1); }
.ranking-card__open { background: var(--brand); color: #fff; border-radius: var(--r-md); padding: 8px 12px; font-size: 12px; font-weight: 700; flex: none; }

/* Publicado / em disputa — reabre o tema escuro (data-theme="dark" no card), então
   usa os tokens normalmente em vez de hexes fixos. */
.ranking-card--active { background: var(--surface-card); color: var(--text-1); border: 1px solid var(--border); }
.ranking-card--active .ranking-card__name { color: #fff; }
.ranking-card--active .ranking-card__tag { background: var(--surface-chip); color: var(--text-2); }
.ranking-card--active .ranking-card__status { color: var(--text-3); }
.ranking-card--active .ranking-card__live { color: var(--brand); }
.ranking-card--active .ranking-card__count { font-size: 11px; color: var(--text-3); }
.ranking-card__live svg.lucide { width: 12px; height: 12px; vertical-align: -1px; }

/* Acento semântico por estado (mesma família escura — "tom + acento"):
   andamento = laranja (default acima); aguardando desempate = âmbar (atenção);
   encerrado = preto mais fundo + dourado/troféu e texto esmaecido (temporada campeã). */
.ranking-card--awaiting_tiebreak .ranking-card__live { color: var(--warning); }
.ranking-card--closed { background: var(--surface-deep); }
.ranking-card--closed .ranking-card__name { color: var(--text-2); }
.ranking-card--closed .ranking-card__live { color: var(--gold); }
.ranking-card--closed .ranking-card__status, .ranking-card--closed .ranking-card__count { color: var(--text-4); }
.ranking-card--closed .ranking-card__open { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

/* Rascunho / lobby — card claro tracejado, gestão. */
.ranking-card--draft { background: var(--surface-card); border: 1.5px dashed var(--border-strong); color: var(--text-1); }
.ranking-card--draft .ranking-card__tag { background: var(--surface-chip); color: var(--text-2); }
.ranking-card--draft .ranking-card__meta { font-size: 12px; color: var(--text-2); }

/* ============================================================ HUB (setup do ranking O8/setup) */
.hub-cards { display: flex; flex-direction: column; gap: var(--sp-2); }
/* Card de menu desabilitado ("em breve"): tracejado, sem ação. */
.hub-card--soon { background: var(--surface-card); border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-1); color: var(--text-3); box-shadow: none; opacity: .85; }
.hub-card--soon .stage-card__title { color: var(--text-3); }
.hub-card__soon-tag { font-family: var(--font-mono); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: .08em; color: var(--text-4); }

/* ============================================================ PÓDIO (Classificação O9) */
/* Pódio de avatares com medalha (hi-fi): 1º ao centro/maior (marca + glow), 2º
   prata, 3º bronze; card com o troféu e o escopo no topo. Alinhados pela base,
   o 1º (maior) sobressai como no pódio. */
/* Card do pódio — `data-theme="dark"` no elemento o torna preto por si só, então
   fixa a cor do texto pelos tokens (senão herda o texto claro da página). */
.podium-card { background: var(--surface-card); color: var(--text-1); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-3) 0; display: flex; flex-direction: column; gap: var(--sp-3); overflow: hidden; }
/* Cor por estado (§6.10), reusada no card do pódio e na explicação dos status:
   provisório e final = marca (hi-fi); parcial oficial = verde; desempate = âmbar. */
.state-color--live, .state-color--final { color: var(--brand); }
.state-color--official { color: var(--success); }
.state-color--warn { color: var(--warning); }
.state-color--muted { color: var(--text-2); } /* histórico (só-leitura) */
/* Pódio em degraus (§6.10): 2º · 1º · 3º; blocos por colocação com o nº grande no
   topo e faixa de cor (ouro/prata/bronze); líder com troféu no canto do avatar. */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: var(--sp-2); }
.podium__spot { display: flex; flex-direction: column; align-items: center; width: 33%; }
.podium__person { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: var(--sp-2); text-align: center; }
.podium__av-wrap { position: relative; }
.podium__av { width: 44px; height: 44px; border: 2px solid var(--border-strong); }
.podium__spot--1 .podium__av { width: 58px; height: 58px; border-color: var(--gold); }
.podium__spot--2 .podium__av { border-color: var(--silver); }
.podium__spot--3 .podium__av { border-color: var(--bronze); }
/* Selo de troféu do líder (ícone Lucide escuro sobre disco ouro). */
.podium__badge { position: absolute; right: -4px; top: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); border: 2px solid var(--surface-card); display: grid; place-items: center; }
.podium__badge svg.lucide { width: 13px; height: 13px; color: var(--surface-card); }
.podium__name { font-weight: 700; font-size: var(--fs-body); }
.podium__spot--1 .podium__name { font-size: var(--fs-strong); }
.podium__wins { font-family: var(--font-num); font-weight: 800; font-size: var(--fs-strong); }
.podium__wins small { font-family: var(--font-mono); font-size: 8px; color: var(--text-3); letter-spacing: 0.06em; margin-left: 2px; }
.podium__spot--1 .podium__wins { font-size: var(--fs-line-num); }
.podium__spot--1 .podium__wins, .podium__spot--1 .podium__block-num { color: var(--gold); }
.podium__spot--2 .podium__wins, .podium__spot--2 .podium__block-num { color: var(--silver); }
.podium__spot--3 .podium__wins, .podium__spot--3 .podium__block-num { color: var(--bronze); }
.podium__block { width: 100%; border-radius: 10px 10px 0 0; position: relative; overflow: hidden; }
.podium__block::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.podium__block-num { position: absolute; top: 5px; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; opacity: 0.32; }
.podium__spot--1 .podium__block { height: 96px; background: color-mix(in srgb, var(--gold) 15%, var(--surface-card)); }
.podium__spot--1 .podium__block::before { background: var(--gold); }
.podium__spot--1 .podium__block-num { opacity: 0.42; }
.podium__spot--2 .podium__block { height: 70px; background: color-mix(in srgb, var(--silver) 12%, var(--surface-card)); }
.podium__spot--2 .podium__block::before { background: var(--silver); }
.podium__spot--3 .podium__block { height: 54px; background: color-mix(in srgb, var(--bronze) 13%, var(--surface-card)); }
.podium__spot--3 .podium__block::before { background: var(--bronze); }

/* Classificação (O9): cabeçalho das colunas + tinte da linha por variação (▲ verde,
   ▼ vermelho; líder já vem do `--lead`). Toggle "Incluir suplentes" (CSS :has, sem
   JS) revela os suplentes esmaecidos + tag "Suplente". */
.sec-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--fs-title); margin: 0; }
.rank-block .sec-title { margin-bottom: var(--sp-4); } /* respiro entre "Classificação" e a tabela */
/* Navegação entre as classificações das etapas (§6.10): ‹ Etapa N de T ›. */
.stage-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); background: var(--surface-panel); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px 5px; }
.stage-nav__btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text-1); }
.stage-nav__btn--off { color: var(--text-4); pointer-events: none; }
.stage-nav__label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.stage-nav__sep { color: var(--text-4); }
.stage-nav__status { font-weight: 700; } /* cor via state-color--* */
/* Faixa de marca da classificação pública (P1). */
.public-brand { font-size: var(--fs-caption); color: var(--text-3); text-align: center; margin-top: var(--sp-2); }
/* Explicação do status, logo abaixo da barra (§6.10). */
.stage-nav__help { margin: var(--sp-2) 2px 0; font-size: var(--fs-caption); color: var(--text-2); line-height: 1.45; }
/* "Critério de desempate (?)": expander (sem JS) com a cadeia de critérios (§6.10). */
.sec-help summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .06em; text-transform: uppercase; }
.sec-help summary::-webkit-details-marker { display: none; }
.sec-help summary svg.lucide { width: 13px; height: 13px; }
.sec-help__list { margin: var(--sp-2) 0 var(--sp-1); padding-left: 18px; font-size: var(--fs-eyebrow); color: var(--text-2); display: flex; flex-direction: column; gap: 2px; }
.sec-help__list .is-current { font-weight: 700; } /* status atual em destaque (a cor vem do estado) */
.sec-help > p { margin: 0; font-size: var(--fs-eyebrow); color: var(--text-3); }
/* Posições ordinais (1º, 2º… 10º) e pódio prata/bronze — escopados ao container
   `.standings`, então valem igual na aba Classificação E na parcial do cockpit
   (mesma tabela). O suplente não tem posição, então fica de fora. */
.standings .standings__pos { width: 26px; }
.standings .standings__row:not(.standings__row--sub) .standings__pos::after { content: "º"; }
/* Sobe/desce não tinge a linha — a variação fica só na setinha ▲▼ (decisão 2026-07-21). */
/* Pódio na lista: posição, contorno da foto e vitórias em prata (2º) / bronze
   (3º) — iguais ao pódio, no mesmo padrão do 1º (marca). */
.standings .standings__row--p2 .standings__pos,
.standings .standings__row--p2 .standings__wins { color: var(--silver); }
.standings .standings__row--p2 .standings__av { border: 2px solid var(--silver); }
.standings .standings__row--p3 .standings__pos,
.standings .standings__row--p3 .standings__wins { color: var(--bronze); }
.standings .standings__row--p3 .standings__av { border: 2px solid var(--bronze); }
/* Faixa lateral na cor da medalha no top 3 (1º ouro via --lead) — decisão 2026-07-21. */
.standings .standings__row--lead { box-shadow: inset 3px 0 0 var(--gold); }
.standings .standings__row--p2 { box-shadow: inset 3px 0 0 var(--silver); }
.standings .standings__row--p3 { box-shadow: inset 3px 0 0 var(--bronze); }
.rank-block .switch { margin: var(--sp-1) 0 var(--sp-2); }
.standings__row--sub { opacity: .68; }
/* Ocultos por padrão (2 classes p/ vencer o `.standings__row { display:flex }`);
   o toggle os revela via :has. */
.rank-block .standings__row--sub { display: none; }
.rank-block:has(.switch__input:checked) .standings__row--sub { display: flex; }
.tag-sub { font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); background: var(--surface-chip); border-radius: var(--r-pill); padding: 1px 5px; margin-left: 6px; }

/* ============================================================ NAV (header / bottom nav) */
.app-header { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--gutter); }
/* Ícones do header (voltar e conta) maiores, equilibrados com o título nas duas pontas. */
.app-header svg.lucide { width: 26px; height: 26px; }
.app-header__back { display: inline-flex; align-items: center; background: transparent; border: 0; color: var(--text-2); cursor: pointer; }
.app-header__title { font-family: var(--font-display); font-size: var(--fs-title); flex: 1; }
/* A nav usa a MESMA cor de fundo da tela ativa (DS §17: a cor segue o tema da
   tela) — creme na gestão, escuro na disputa; a separação vem só da borda. */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; display: flex; background: var(--surface-app); border-top: 1px solid var(--border); }
.bottom-nav__tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--sp-2) 0; color: var(--text-3); text-decoration: none; font-size: var(--fs-eyebrow); }
.bottom-nav__tab--active { color: var(--brand); }

/* ============================================================ STATES (transversais) */
.state { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); padding: var(--sp-8) var(--sp-4); text-align: center; color: var(--text-3); }
.state__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-chip); display: flex; align-items: center; justify-content: center; color: var(--text-3); margin-bottom: var(--sp-1); }
.state__icon svg.lucide { width: 26px; height: 26px; }
/* Ícone em destaque (marca) — ex.: troféu da temporada encerrada. */
.state__icon--brand { color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, var(--surface-chip)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.state__title { color: var(--text-2); font-size: var(--fs-strong); }
.state--error .state__title { color: var(--danger); }
.spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--surface-chip); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ AUTH (login / onboarding — tema claro) */
.auth-shell {
  max-width: 412px; margin: 0 auto; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--sp-6); padding: var(--gutter);
}
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.auth-logo { width: 72px; height: 72px; }
.auth-wordmark { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-title); letter-spacing: .01em; color: var(--text-1); }
.auth-card {
  background: var(--surface-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--elev-card);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4);
}
.auth-card__title { font-family: var(--font-display); font-size: var(--fs-title); }
.auth-actions { display: flex; flex-direction: column; align-items: center; }
.auth-error { background: #FEF1EB; border: 1px solid #f0c9bb; color: #8a2b1d; border-radius: var(--r-md); padding: var(--sp-3); font-size: var(--fs-body); }
.auth-note { background: var(--surface-chip); border: 1px solid var(--border); color: var(--text-2); border-radius: var(--r-md); padding: var(--sp-3); font-size: var(--fs-body); }

/* Catálogo /dev */
.dev-index { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }
.dev-index a { display: block; padding: var(--sp-3); background: var(--surface-card); border-radius: var(--r-md); text-decoration: none; }

/* ============================================================ TIMELINE (aba Etapa, DS §12) */
/* Espaço extra para a bottom nav fixa não cobrir o fim do conteúdo. */
.app-frame--tabbed { padding-bottom: 88px; }

/* Barra da temporada: uma casa por etapa (verde = realizada, laranja = atual). */
.season-progress { display: flex; gap: 4px; }
.season-progress__seg { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-chip); }
.season-progress__seg--done { background: var(--success); }
.season-progress__seg--current { background: var(--brand); }

/* Trilho vertical com um nó por item (realizada = verde; pote = apagado). */
.timeline { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--surface-chip); }
.timeline__item { position: relative; }
/* Nós do trilho (protótipo): vazada = combinação no pote; verde = realizada;
   laranja (maior) = etapa de agora. */
.timeline__dot { position: absolute; left: -19px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface-app); border: 2px solid var(--border-strong); }
.timeline__dot--done { background: var(--success); border-color: var(--surface-app); }
.timeline__dot--now { background: var(--brand); border-color: var(--surface-app); width: 13px; height: 13px; left: -20px; }

/* ============================================================ SORTEIO (cockpit O8b) */
/* Bloco escuro do CTA (protótipo hi-fi): botão laranja + escolha manual. */
.draw-cta__alt { color: var(--text-2); font-size: var(--fs-body); }

/* ============================================================ CARD DE JOGO (DS §7) */
.game-card { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); box-shadow: var(--elev-card); }
.game-card__head { display: flex; justify-content: space-between; align-items: center; }
.game-card__pair { font-weight: 700; font-size: var(--fs-strong); display: flex; align-items: center; gap: var(--sp-2); }
.game-card__pair--muted { color: var(--text-3); font-weight: 600; }
.game-card__crown { color: var(--brand); display: inline-flex; }
.game-card__crown svg.lucide { width: 15px; height: 15px; }
/* Selo de W.O. (atenção, ui-spec): dupla incompleta no confronto. */
.tag-wo { display: inline-flex; align-items: center; gap: 4px; color: var(--warning); font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.tag-wo svg.lucide { width: 13px; height: 13px; }
/* Cabeçalho em linha (título à esquerda, meta à direita) — distinto do
   .section-head (empilhado). Usado no progresso, no placar e na parcial. */
.head-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); }

/* ============================================================ RESULTADO (cockpit O8c) */
/* Jogo pendente: borda de marca destacando o que falta lançar (DS §7). */
.game-card--pending { border: 1.5px solid var(--brand); background: var(--surface-panel); }
.game-card__done { display: inline-flex; align-items: center; gap: 4px; color: var(--success); }
.game-card__waiting { display: inline-flex; align-items: center; gap: 4px; color: var(--warning); }
.game-card__done svg.lucide, .game-card__waiting svg.lucide { width: 13px; height: 13px; }
/* Linha da dupla no card: placar à frente (grande, tabular) + nome. */
.game-card__line { display: flex; align-items: center; gap: var(--sp-3); }
.game-card__line--muted { color: var(--text-3); }
.game-card__line--muted .game-card__pair { font-weight: 600; }
.game-card__num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 800; font-size: var(--fs-line-num); width: 22px; text-align: center; color: var(--text-3); }
.game-card__num--win { color: var(--brand); }
/* Rodapé do jogo concluído: autoria à esquerda, "Editar" à direita. */
.game-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); border-top: 1px solid var(--border); padding-top: var(--sp-2); }
.game-card__edit { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand); font-weight: 700; font-size: var(--fs-body); font-family: var(--font-body); }
.game-card__edit svg.lucide { width: 14px; height: 14px; }

/* Escolha da dupla vencedora (bottom-sheet): radios como cartões. */
.pick-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.pick { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface-card); cursor: pointer; }
.pick__radio { position: absolute; opacity: 0; width: 0; height: 0; }
.pick:has(.pick__radio:checked) { border: 1.5px solid var(--brand); background: var(--surface-panel); }
.pick__av { width: 34px; height: 34px; flex: none; }
.pick__body { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.pick__name { font-weight: 700; font-size: var(--fs-strong); }
.pick__meta { font-family: var(--font-mono); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.pick__check { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); color: transparent; flex: none; }
.pick:has(.pick__radio:checked) .pick__check { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick__check svg.lucide { width: 14px; height: 14px; }

/* Placar (opcional): um stepper por dupla. */
.score-block { display: flex; flex-direction: column; gap: var(--sp-2); }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.score-row__name { font-size: var(--fs-body); color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; }
.score-row__crown { color: var(--brand); display: none; }
.score-row__crown svg.lucide { width: 14px; height: 14px; }
/* Dupla vencedora na seção de placar: coroa visível + nome em destaque (marca). */
.score-row--win .score-row__crown { display: inline-flex; }
.score-row--win .score-row__name { color: var(--brand); font-weight: 700; }
.stepper__input { width: 40px; background: transparent; border: 0; color: var(--text-1); -moz-appearance: textfield; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.link-reset { background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand); font-family: var(--font-body); font-size: var(--fs-eyebrow); text-decoration: underline; }

/* Chip de autoria no lançamento ("Lançando como Fulano · fica registrado"). */
.author-chip { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md); background: var(--surface-card); border: 1px solid var(--border); }
.author-chip__av { width: 28px; height: 28px; flex: none; font-size: var(--fs-eyebrow); }
.author-chip__text { flex: 1; font-size: var(--fs-body); }
.author-foot { text-align: center; }

/* Classificação parcial inline (§6.12): linhas enxutas, recalculam ao vivo. */
.standings__live { display: inline-flex; align-items: center; gap: 4px; color: var(--warning); }
.standings__live svg.lucide { width: 12px; height: 12px; }
.standings { background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.standings__row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); }
.standings__row:last-child { border-bottom: 0; }
.standings__pos { width: 16px; text-align: center; font-family: var(--font-num); font-weight: 800; color: var(--text-3); }
/* Líder (1º): número, contorno da foto e vitórias em OURO — mesma cor de medalha
   do pódio (1/2/3 = ouro/prata/bronze na tabela também). Sem fundo/barra. */
.standings__row--lead .standings__pos { color: var(--gold); }
.standings__row--lead .standings__av { border: 2px solid var(--gold); }
.standings__row--lead .standings__wins { color: var(--gold); }
.standings__av { width: 26px; height: 26px; flex: none; font-size: var(--fs-eyebrow); }
.standings__info { flex: 1; min-width: 0; }
.standings__name { font-weight: 700; font-size: var(--fs-body); }
.standings__meta { font-size: var(--fs-eyebrow); color: var(--text-3); }
.standings__trend { display: inline-flex; flex: none; }
.standings__trend svg.lucide { width: 14px; height: 14px; }
.standings__trend--up { color: var(--up); }
.standings__trend--down { color: var(--down); }
.standings__trend--same, .standings__trend--none { color: var(--text-4); }
.standings__wins { font-family: var(--font-num); font-weight: 800; font-size: var(--fs-line-num); color: var(--text-1); display: flex; align-items: baseline; gap: 3px; }
.standings__wins small { font-family: var(--font-mono); font-size: var(--fs-eyebrow); text-transform: uppercase; color: var(--text-4); font-weight: 400; }

/* Placar da etapa realizada (timeline): as duplas (formato do pote) com as
   vitórias da etapa à direita, no mesmo <details>. Trilho de linhas como o pote. */
.stage-scoreboard { margin-top: var(--sp-2); border-top: 1px solid var(--border); }
.stage-line { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.stage-line:last-child { border-bottom: 0; padding-bottom: 0; }
.stage-line .combo__pair { flex: 1; }

/* Combinação expansível no pote (<details>, sem JS): toque abre as duplas. */
.combo__summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: var(--sp-1); }
.combo__summary::-webkit-details-marker { display: none; }
.combo__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.combo__chevron { color: var(--text-3); display: inline-flex; transition: transform .15s ease; }
details[open] > .combo__summary .combo__chevron { transform: rotate(180deg); }
.combo__partner { font-size: var(--fs-body); color: var(--text-2); }
.combo__partner b { color: var(--text-1); }
/* Duplas como linhas: fileiras separadas por borda, como as listas do app. */
.combo__pairs { display: flex; flex-direction: column; margin-top: var(--sp-2); border-top: 1px solid var(--border); }
.combo__pairs .combo__pair { padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.combo__pairs .combo__pair:last-child { border-bottom: 0; padding-bottom: 0; }
/* Na tela de escolha, a lista fecha com linha antes do botão + respiro. */
.combo__pairs--framed .combo__pair:last-child { border-bottom: 1px solid var(--border); padding-bottom: var(--sp-2); }
.combo__pairs--framed { margin-bottom: var(--sp-1); }
/* Dupla do usuário logado em destaque na lista da combinação. */
.combo__pair--mine { color: var(--brand); font-weight: 700; }
/* Aberto (padrão), as duplas já respondem — o resumo "Você joga com…" só
   aparece com o card fechado. */
details[open] > .combo__summary .combo__partner { display: none; }
/* Linha da dupla em grade: nome | & | nome — todos os "&" alinhados na coluna. */
.combo__pair { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: var(--sp-2); align-items: center; }
.combo__side--a { text-align: right; }
.combo__amp { color: var(--text-4); }
/* Preview da confirmação (§6.9): fixo que marcou falta sai riscado, com o
   ícone de falta à frente; o risco de W.O. é avisado no rodapé da combinação. */
.combo__side--absent { text-decoration: line-through; color: var(--down); }
/* Vaga aberta na combinação (§6.6a): quem saiu ainda referenciado, mas não joga. */
.combo__side--open { display: inline-flex; align-items: center; gap: 3px; color: var(--danger); font-weight: 700; }
.combo__side--open svg.lucide { width: 12px; height: 12px; }
.combo__absent { display: inline-flex; color: var(--down); }
/* Na dupla do usuário logado, a falta mantém o destaque (laranja) — fica só o
   tachado + ícone sinalizando a ausência. */
.combo__pair--mine .combo__side--absent,
.combo__pair--mine .combo__absent { color: var(--brand); }
.combo__absent svg.lucide { width: 12px; height: 12px; }
/* Cabeçalho de seção da timeline: explicação colada no título; o respiro fica
   ANTES do título (separando as seções), não entre título e explicação. */
.section-head { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-3); }
.section-head p { margin: 0; }
/* Resposta rápida do usuário na timeline (§6.9): pergunta + segmented lado a lado. */
.quick-rsvp { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
/* Respiro extra entre o detalhe da etapa e a resposta rápida. */
.timeline__item--spaced { margin-top: var(--sp-2); }
/* Troca prevista na dupla (tela de escolha, §6.8b): "⇄ Suplente N" entra no
   lugar do faltante (verde); sem suplente para cobrir, "W.O." (âmbar). Linha
   própria abaixo do nome, sem herdar o tachado. */
.combo__swap { display: flex; align-items: center; gap: 3px; font-size: 9px; color: var(--success); }
.combo__swap svg.lucide { width: 11px; height: 11px; }
.combo__swap--wo { color: var(--warning); }
.combo__side--a .combo__swap { justify-content: flex-end; }

/* Banner de recomendação do app (§6.8c): conselho curto + (?) que abre a premissa.
   Tom neutro (ok) ou de atenção (warn), sempre discreto — é orientação. */
.reco { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-3); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-card); }
.reco__body { display: flex; align-items: flex-start; gap: var(--sp-2); flex: 1; }
.reco__body > svg.lucide { flex: none; margin-top: 1px; }
.reco__label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: .06em; }
.reco--ok { border-left: 3px solid var(--success); }
.reco--ok > .reco__body > svg.lucide, .reco--ok .reco__label { color: var(--success); }
.reco--warn { border-left: 3px solid var(--warning); }
.reco--warn > .reco__body > svg.lucide, .reco--warn .reco__label { color: var(--warning); }
.reco--danger { border-left: 3px solid var(--danger); }
.reco--danger > .reco__body > svg.lucide, .reco--danger .reco__label { color: var(--danger); }
.reco__help { flex: none; }
.reco__help summary { list-style: none; cursor: pointer; color: var(--text-3); display: inline-flex; }
.reco__help summary::-webkit-details-marker { display: none; }
.reco__help-body { margin-top: var(--sp-2); font-size: var(--fs-eyebrow); color: var(--text-2); }
.reco__help-body p { margin: var(--sp-1) 0 0; }
/* Aberto, o (?) vira um painel de largura total abaixo do banner. */
.reco:has(.reco__help[open]) { flex-wrap: wrap; }
.reco:has(.reco__help[open]) .reco__help { width: 100%; order: 3; }

/* Overlay do sorteio (O8b): momento de "sorteando" por ~3s antes de iniciar a
   etapa. Fundo escuro fixo (independe do tema da tela). */
.draw-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(22, 19, 15, 0.94); }
.draw-overlay__box { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); color: #F4F0E9; text-align: center; }
.draw-overlay__spin { width: 56px; height: 56px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--brand); animation: draw-spin .7s linear infinite; }
@keyframes draw-spin { to { transform: rotate(360deg); } }
.draw-overlay__label { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-title); }
.draw-overlay__combo { font-family: var(--font-mono); color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ============================================================ ELENCO GRID (E1)
   Escalação em grade: vagas numeradas (nº = prioridade global, §6.10), foto e
   estado de acesso no próprio card. Um grupo por gênero (misto) ou único (masc/
   fem). Resumo/limites vêm de Roster::Lineup; a view só formata. */
.roster-group + .roster-group { margin-top: var(--sp-4); }
.roster-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-1); }
.roster-group__label { font-family: var(--font-mono); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.roster-group__count { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: var(--fs-strong); color: var(--text-1); flex: none; }
.roster-group__count--over { color: var(--warning); }
.roster-group__count .lim { color: var(--text-3); font-weight: 600; }
.roster-bar { height: 4px; border-radius: 2px; background: var(--surface-chip); overflow: hidden; display: flex; margin-bottom: var(--sp-3); }
.roster-bar__seg { height: 100%; }
.roster-bar__seg--fill { background: var(--brand); }
.roster-bar__seg--complete { background: var(--success); }
.roster-bar__seg--over { background: var(--warning); }
.roster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.roster-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1);
  width: 100%; min-height: 108px; padding: var(--sp-3) var(--sp-2); text-align: center; text-decoration: none; color: var(--text-1);
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--elev-card);
  font-family: inherit; font-size: var(--fs-body); cursor: pointer; }
.roster-cell--empty { background: transparent; border-style: dashed; border-color: var(--border-strong); box-shadow: none; }
.roster-cell--over { border-color: var(--warning); }
/* Vaga aberta (§6.6a): mostra de quem era (esmaecido) + "Substituir" em vermelho. */
.roster-cell--open { border-color: var(--danger); background: var(--brand-tint-dark); box-shadow: none; }
.roster-cell--open .roster-cell__n { color: var(--danger); }
.roster-cell--open .roster-cell__ava { opacity: .5; filter: grayscale(1); }
.roster-cell--open .roster-cell__name { color: var(--text-2); }
[data-theme="light"] .roster-cell--open { background: #FBEBE8; }
.roster-cell__sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--danger); }
/* Card de Desistências: fora da disputa, esmaecido, com a ação de voltar. */
.roster-cell--desisted { background: var(--surface-chip); border-style: dashed; box-shadow: none; opacity: 0.8; }
.roster-cell--desisted .btn { min-height: 28px; padding: 0 var(--sp-2); }
.roster-cell__n { position: absolute; top: var(--sp-1); left: var(--sp-2); font-family: var(--font-num); font-variant-numeric: tabular-nums; font-weight: 700; font-size: var(--fs-eyebrow); color: var(--text-3); }
.roster-cell--over .roster-cell__n { color: var(--warning); }
.roster-cell__ava { position: relative; flex: none; }
.roster-cell__name { font-size: var(--fs-body); font-weight: 600; line-height: 1.2; max-height: 2.4em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.roster-cell--empty .roster-cell__name { color: var(--text-2); font-weight: 500; }
.roster-cell__add { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--border-strong); color: var(--text-3); }
.roster-cell__add svg.lucide { width: 20px; height: 20px; }
/* Pontinho de estado de acesso (§3.2), sobre o avatar. */
.roster-dot { position: absolute; right: -2px; bottom: -2px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--surface-card); display: grid; place-items: center; }
.roster-dot svg.lucide { width: 9px; height: 9px; color: #fff; }
.roster-dot--accepted { background: var(--success); }
.roster-dot--pending { background: var(--warning); }
.roster-dot--no_invite { background: var(--text-3); }
/* Menu de ações da vaga (bottom-sheet): botões empilhados. */
.sheet-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.sheet-actions .btn { justify-content: flex-start; }
.sheet-actions .btn--on { border-color: var(--brand); color: var(--brand-on-light); } /* permissão ativa (ex.: pode sortear) */
.sheet-actions form { margin: 0; }

/* Modal de confirmação centrado (substitui o window.confirm nativo) — janela
   flutuante clara sobre tudo, inclusive sobre um bottom-sheet aberto (z acima de .sheet). */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 50; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 51;
  width: min(340px, calc(100vw - 2 * var(--gutter))); max-height: 80dvh; overflow-y: auto;
  background: var(--surface-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5); padding: var(--sp-4); }
.modal__message { margin: 0 0 var(--sp-4); color: var(--text-1); line-height: 1.4; }
.modal__actions { display: flex; gap: var(--sp-2); }
.modal__actions .btn { flex: 1; justify-content: center; }

/* ==========================================================================
   Arte de export da classificação (Pós-MVP, produto §5.2)
   Board de torneio estático para WhatsApp/Instagram — não é a tela do app.
   Direção aprovada: .interface-design/system.md. Server-rendered; a captura
   em PNG é client-side (shared/_export_js). Paleta local (--ep-*), fontes do DS.
   ========================================================================== */
.export-poster{
  --ep-gold:#E9C46A; --ep-gold-hi:#f6dc9a; --ep-gold-deep:#b98f34; --ep-silver:#cdd2d8;
  --ep-sun:#E94E1B; --ep-sun-lo:#ff7a45; --ep-bone:#F2EAD8; --ep-sand:#c6bca8;
  --ep-clay:#8b8271; --ep-faint:#5c554a; --ep-amber:#E5B23B; --ep-blue:#3f7fc4;
  --ep-line:rgba(255,255,255,.08);
  --ep-grid:1.5rem 2.6rem minmax(0,1fr) 1.1rem 3rem;
  position:relative; width:100%; max-width:440px; margin:0 auto;
  border:1px solid var(--ep-line); border-radius:18px; overflow:hidden;
  color:var(--ep-bone); font-family:var(--font-body);
  background:
    radial-gradient(140% 40% at 82% 2%, rgba(233,78,27,.16), transparent 46%),
    radial-gradient(120% 34% at 6% 6%, rgba(233,196,106,.07), transparent 52%),
    linear-gradient(180deg,#141009 0%,#0f0b06 46%,#0b0805 100%);
  box-shadow:0 12px 34px -14px rgba(0,0,0,.65);
}

.export-poster__head{ padding:1.5rem 1.25rem 0; text-align:center; }
.export-poster__eyebrow{ display:flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:var(--font-mono); font-size:.66rem; font-weight:700; letter-spacing:.13em;
  text-transform:uppercase; color:var(--ep-gold); }
.export-poster__dot{ width:.42rem; height:.42rem; border-radius:50%; background:var(--ep-sun);
  box-shadow:0 0 0 .22rem rgba(233,78,27,.2); }
.export-poster__title{ margin-top:.6rem; }
.export-poster__title h2{ margin:0; font-family:var(--font-display); font-size:1.72rem;
  line-height:1.02; font-weight:800; letter-spacing:.01em; text-transform:uppercase; color:#fff;
  text-wrap:balance; }
.export-poster__cat{ display:inline-block; margin-top:.55rem; font-family:var(--font-mono);
  font-size:.6rem; font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  color:var(--ep-sun-lo); background:rgba(233,78,27,.12); border:1px solid rgba(233,78,27,.4);
  padding:.24rem .6rem; border-radius:6px; }

.export-poster__board{ margin:1.15rem .9rem 0; border:1px solid var(--ep-line); border-radius:14px;
  overflow:hidden; background:rgba(255,255,255,.02); }
.export-poster__cols{ display:grid; grid-template-columns:var(--ep-grid); gap:.5rem; align-items:center;
  padding:.65rem .85rem .5rem; font-family:var(--font-mono); font-size:.56rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; color:var(--ep-faint); border-bottom:1px solid var(--ep-line); }
.export-poster__cols .r{ text-align:right; }
.export-poster__cols span:first-child{ text-align:center; }

.export-poster__row{ position:relative; display:grid; grid-template-columns:var(--ep-grid);
  gap:.5rem; align-items:center; padding:.5rem .85rem; }
.export-poster__row + .export-poster__row{ border-top:1px solid rgba(255,255,255,.05); }
.export-poster__row::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:.28rem; background:transparent; }
.export-poster__row--r1{ background:linear-gradient(102deg, rgba(233,196,106,.06), rgba(233,196,106,.28) 42%, rgba(233,196,106,.07) 72%, transparent); }
.export-poster__row--r1::before{ background:linear-gradient(180deg,var(--ep-gold-hi),var(--ep-gold-deep)); }
.export-poster__row--r2{ background:linear-gradient(102deg, rgba(205,210,216,.05), rgba(205,210,216,.19) 42%, rgba(205,210,216,.05) 72%, transparent); }
.export-poster__row--r2::before{ background:linear-gradient(180deg,#e6ebf0,#9aa0a6); }
.export-poster__row--r3{ background:linear-gradient(102deg, rgba(233,120,60,.06), rgba(233,110,45,.23) 42%, rgba(233,120,60,.06) 72%, transparent); }
.export-poster__row--r3::before{ background:linear-gradient(180deg,var(--ep-sun-lo),var(--ep-sun)); }

.export-poster__pos{ font-family:var(--font-num); font-size:1.05rem; font-weight:800;
  font-variant-numeric:tabular-nums; text-align:center; color:var(--ep-clay); }
.export-poster__row--r1 .export-poster__pos{ color:var(--ep-gold); }
.export-poster__row--r2 .export-poster__pos{ color:var(--ep-silver); }
.export-poster__row--r3 .export-poster__pos{ color:var(--ep-sun-lo); }

.export-poster__ava{ display:inline-flex; padding:2px; border-radius:50%; background:var(--ep-blue);
  box-shadow:0 2px 5px rgba(0,0,0,.4); }
.export-poster__ava .avatar{ width:2.2rem; height:2.2rem; }
.export-poster__ava--r1{ background:linear-gradient(160deg,var(--ep-gold-hi),var(--ep-gold-deep)); }
.export-poster__ava--r2{ background:linear-gradient(160deg,#eef2f6,#9aa0a6); }
.export-poster__ava--r3{ background:linear-gradient(160deg,var(--ep-sun-lo),var(--ep-sun)); }

.export-poster__who{ min-width:0; }
.export-poster__who b{ display:block; font-family:var(--font-display); font-size:.9rem;
  font-weight:800; letter-spacing:.01em; text-transform:uppercase; color:var(--ep-bone); line-height:1.12; }
.export-poster__meta{ display:block; margin-top:.15rem; font-family:var(--font-mono); font-size:.56rem;
  letter-spacing:.02em; text-transform:uppercase; color:var(--ep-clay); font-variant-numeric:tabular-nums; }
.export-poster__f{ color:var(--ep-amber); }

.export-poster__trend{ display:flex; align-items:center; justify-content:center; }
.export-poster__trend .up{ color:#5fbf72; display:inline-flex; }
.export-poster__trend .down{ color:#e0775f; display:inline-flex; }
.export-poster__trend svg{ width:1rem; height:1rem; }

.export-poster__wins{ font-family:var(--font-num); font-size:1.42rem; font-weight:800;
  font-variant-numeric:tabular-nums; letter-spacing:-.02em; text-align:right; color:var(--ep-bone); white-space:nowrap; }
.export-poster__row--r1 .export-poster__wins{ color:var(--ep-gold); }
.export-poster__row--r3 .export-poster__wins{ color:var(--ep-sun-lo); }
.export-poster__wins small{ font-family:var(--font-mono); font-size:.5rem; font-weight:700;
  color:var(--ep-faint); letter-spacing:.06em; text-transform:uppercase; margin-left:.22rem; }

.export-poster__note{ margin:.75rem .9rem 0; font-size:.62rem; font-style:italic;
  color:var(--ep-clay); text-align:center; }

.export-poster__brands{ display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem 1.3rem;
  margin:.9rem .9rem 0; padding-top:.85rem; border-top:1px solid var(--ep-line); }
.export-poster__brand{ display:flex; flex-direction:column; align-items:center; gap:.12rem; }
.export-poster__brand-fam{ font-family:var(--font-mono); font-size:.5rem; letter-spacing:.13em;
  text-transform:uppercase; color:var(--ep-faint); }
.export-poster__brand-val{ font-size:.74rem; font-weight:800; color:var(--ep-sand); }

.export-poster__foot{ display:flex; align-items:center; justify-content:space-between; gap:.6rem;
  margin-top:1rem; padding:.7rem .9rem .95rem; border-top:1px solid var(--ep-line); }
.export-poster__made{ font-family:var(--font-mono); font-size:.62rem; font-weight:700;
  letter-spacing:.13em; text-transform:uppercase; color:var(--ep-sand); }
.export-poster__link{ font-family:var(--font-mono); font-size:.54rem; color:var(--ep-faint);
  word-break:break-all; text-align:right; }

.export-hint{ text-align:center; font-size:.82rem; color:#8c857c; margin-top:-.15rem; }
