/* ============================================================
   Ferramentas da rodada (/ferramentas). Usa os tokens e o nav/rodapé
   de styles.css; aqui só o que é das ferramentas, escopado em .ferr.
   ============================================================ */
:root {
  --f-line: rgba(255, 255, 255, .07);
  --f-line-2: rgba(255, 255, 255, .13);
  --f-faint: #7A7F91;
  --f-up: #2E7D32;
  --f-up-text: #6FD27A;
  --f-down: #C62828;
  --f-down-text: #FF7468;
  --f-doubt: #F2C14E;
  --f-folga-txt: #A5D6A7;
  --f-aperto-txt: #F6B7B7;
  --f-surface-3: #363B4D;
  --f-pitch-a: #2E7D32;
  --f-pitch-b: #1B5E20;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-radius: 18px;
}

.ferr { font-size: 15px; }
.ferr button, .ferr input { font: inherit; color: inherit; }
.ferr button { cursor: pointer; }
.ferr :focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 2px; border-radius: 8px; }
.ferr .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.f-wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* faixa da rodada */
.f-head { padding-block: 44px 28px; }
.round-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cream); background: rgba(234, 92, 31, .14); border: 1px solid rgba(234, 92, 31, .35); padding: 5px 11px; border-radius: 999px; }
.round-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--f-up-text); box-shadow: 0 0 0 4px rgba(111, 210, 122, .18); }
.round-chip.fechado .dot { background: var(--f-faint); box-shadow: none; }
.f-head h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.04; letter-spacing: -.035em; margin: 14px 0 10px; text-wrap: balance; max-width: 16ch; }
.f-head h1 em { font-style: normal; color: var(--orange); }
.f-head p { color: var(--text-dim); max-width: 58ch; font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 13px; color: var(--text-dim); }
.facts b { color: var(--text); font-family: var(--f-mono); font-weight: 500; margin-right: 6px; }

/* corpo: as ferramentas numa fileira de pílulas no topo, para alternar entre elas */
.f-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 8px 72px; align-items: start; }
.f-main { min-width: 0; }
.menu { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tool-link small { display: none; }
.tool-link { display: grid; grid-template-columns: auto auto; flex: none; gap: 2px 12px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 999px; color: var(--text); border: 1px solid var(--f-line-2); transition: background .2s; }
.tool-link:hover { background: var(--surface); }
.tool-link .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--text-dim); }
.tool-link .ic svg { width: 18px; height: 18px; }
.tool-link b { font-size: 13px; font-weight: 600; white-space: nowrap; }
.tool-link[aria-current] { background: var(--surface); border-color: var(--f-line-2); }
.tool-link[aria-current] .ic { background: var(--orange); color: #fff; }

.aviso { margin-bottom: 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--f-line-2); color: var(--cream); font-size: 14px; }
.view[hidden] { display: none !important; }
.view-head { margin-bottom: 18px; }
.view-head h2 { font-size: 26px; letter-spacing: -.03em; }
.view-head p { margin-top: 4px; color: var(--text-dim); font-size: 14px; max-width: 60ch; }
.panel { background: var(--surface); border: 1px solid var(--f-line); border-radius: var(--f-radius); }

/* ===== Gerar time ===== */
.gen { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.controls { padding: 18px; display: flex; flex-direction: column; gap: 20px; }
.field .lbl { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 9px; }
.field .lbl output { font-family: var(--f-mono); color: var(--text); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; }
.ferr input[type="range"] { width: 100%; accent-color: var(--orange); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--f-line-2); background: transparent; padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.seg.esq button { font-family: var(--f-mono); font-weight: 500; font-size: 12px; }
.obj-hint { font-size: 12px; color: var(--f-faint); margin-top: 8px; min-height: 2.6em; }
.go { background: var(--orange); color: #fff; border: 0; border-radius: 12px; padding: 13px; font-weight: 800; font-size: 15px; box-shadow: 0 10px 30px -10px rgba(234, 92, 31, .7); }
.go:active { transform: translateY(1px); }
.go:disabled { opacity: .45; box-shadow: none; cursor: default; transform: none; }

.result { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.summary > div { padding: 14px 16px; border-right: 1px solid var(--f-line); min-width: 0; }
.summary > div:last-child { border-right: 0; }
.summary small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--f-faint); }
.summary strong { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 22px; margin-top: 4px; letter-spacing: -.03em; white-space: nowrap; }
.summary span { font-size: 12px; color: var(--text-dim); }

.pitch {
  position: relative; border-radius: var(--f-radius); overflow: hidden; padding: 22px 10px 16px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 44px, transparent 44px 88px),
    linear-gradient(180deg, var(--f-pitch-a), var(--f-pitch-b));
  display: flex; flex-direction: column; gap: 14px; min-height: 480px; justify-content: space-between;
}
.pitch .lines { position: absolute; inset: 10px; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 10px; pointer-events: none; }
.pitch .lines::before { content: ""; position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%, -50%); border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 50%; }
.pitch .lines::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid rgba(255, 255, 255, .22); }
.pitch .box { position: absolute; left: 50%; bottom: 10px; width: 46%; height: 64px; transform: translateX(-50%); border: 1.5px solid rgba(255, 255, 255, .22); border-bottom: 0; pointer-events: none; }
.pitch-row { position: relative; display: flex; justify-content: space-evenly; gap: 4px; }
.tok { width: 86px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; animation: f-pop .45s cubic-bezier(.22, .61, .36, 1) both; }
.tok .esc { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .28); display: grid; place-items: center; }
.tok .esc img { width: 30px; height: 30px; object-fit: contain; }
.tok .cap { position: absolute; top: -4px; right: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--f-pitch-b); }
.tok .nm { font-size: 12px; font-weight: 600; color: #fff; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.tok .meta { display: flex; gap: 4px; align-items: center; }
.tok .pts { font-family: var(--f-mono); font-size: 11px; background: rgba(0, 0, 0, .4); color: #fff; padding: 1px 6px; border-radius: 6px; }
.tok .pvm { font-family: var(--f-mono); font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 6px; background: rgba(0, 0, 0, .4); }
.pvm.up { color: var(--f-up-text); } .pvm.down { color: var(--f-down-text); } .pvm.flat { color: rgba(255, 255, 255, .6); }
.tec { position: absolute; right: 14px; bottom: 14px; }
.tec .tok { width: 74px; }
@keyframes f-pop { from { opacity: .001; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

.app-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 18px; }
.app-cta p { font-size: 14px; color: var(--text-dim); max-width: 46ch; }
.app-cta p b { color: var(--text); }
.btn-ghost { border: 1px solid var(--orange); color: var(--cream); background: rgba(234, 92, 31, .08); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn-ghost:hover { background: rgba(234, 92, 31, .16); }
.cta-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost.copiar { border-color: var(--f-line-2); color: var(--text); background: transparent; cursor: pointer; font-family: inherit; }
.btn-ghost.copiar:disabled { opacity: .45; cursor: default; }
.btn-ghost.copiar.ok { border-color: #66BB6A; color: #A5D6A7; }

/* ===== Gerar time: abas Rápido e Montar (um time só) ===== */
.g-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 18px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--f-line); border-radius: 14px; padding: 4px; gap: 4px; flex: none; }
.tabs button { border: 0; background: transparent; padding: 8px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-dim); }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--f-surface-3); color: var(--text); }
#g-rapido[hidden], #g-montar[hidden] { display: none !important; }
.ferr .btn-link { align-self: center; background: none; border: 0; color: var(--cream); font-weight: 600; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 227, 214, .35); }
.ferr .btn-sec, .barra-cel .btn-sec { border: 1px solid var(--f-line-2); background: transparent; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--text); text-align: center; }
.ferr .btn-sec:hover, .barra-cel .btn-sec:hover { border-color: var(--orange); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns > * { flex: 1 1 auto; }
.pitch-hint { text-align: center; font-size: 12.5px; color: var(--f-faint); margin-top: -4px; }

/* Banco: faixa colada embaixo do campo, nos mesmos tokens (o banco não sai do saldo). */
.banco { background: var(--surface); border: 1px solid var(--f-line-2); border-radius: var(--f-radius); padding: 10px 6px 8px; display: grid; gap: 6px; margin-top: -6px; }
.banco[hidden] { display: none; }
.banco-t { display: flex; justify-content: space-between; align-items: baseline; padding: 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-faint); }
.banco-t span:last-child { letter-spacing: 0; text-transform: none; font-weight: 500; }
.banco-row { display: flex; justify-content: space-evenly; gap: 2px; }
.banco .tok { width: 74px; }
.banco .tok .esc { background: var(--surface-2); }
.banco .tok .cap { box-shadow: 0 0 0 2px var(--surface); }
/* O selo do luxo é o do app: âmbar com o ícone em branco (não o laranja do capitão). */
.tok .cap.lux { background: #FFA000; color: #fff; }
.tok .cap.lux svg { width: 11px; height: 9px; }
.banco-leg .lux-ic { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #FFA000; color: #fff; vertical-align: -3px; }
.banco-leg .lux-ic svg { width: 10px; height: 8px; }
.banco .tok .posb { width: auto; padding: 1px 5px; font-size: 9px; margin-top: -9px; position: relative; }
.banco .tok .nm { color: var(--text); text-shadow: none; }
.banco .tok .pts { background: var(--f-surface-3); }
.banco .tok.vazio .esc { border-color: var(--f-line-2); background: transparent; color: var(--f-faint); }
.banco .tok.vazio .nm { color: var(--f-faint); font-weight: 500; }
.banco button.tok:hover { background: rgba(255, 255, 255, .05); }
.banco-leg { margin: 0; padding: 0 10px; font-size: 12px; color: var(--f-faint); line-height: 1.45; }
.banco-leg b { color: var(--orange-soft); }
.pitch.mini + .banco .tok { width: 62px; }

/* o jogador do campo é um botão: tocar troca */
button.tok { background: none; border: 0; padding: 4px 2px; border-radius: 12px; color: #fff; font: inherit; }
button.tok:hover { background: rgba(255, 255, 255, .08); }
.tok.alvo { background: rgba(234, 92, 31, .28); box-shadow: 0 0 0 2px var(--orange); }
.tok.parado { animation: none; }
.tok.vazio .esc { border: 1.5px dashed rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .12); font-size: 22px; font-weight: 300; line-height: 1; }
.tok.vazio .nm { color: rgba(255, 255, 255, .85); }
.pitch .aviso { position: relative; margin: auto 12px; }

/* campo pequeno: lado do Montar e barra do celular */
.pitch.mini { min-height: 0; padding: 14px 4px 12px; gap: 8px; justify-content: flex-start; }
.pitch.mini .box { height: 40px; }
.pitch.mini .lines::before { width: 70px; height: 70px; }
.pitch.mini .tok { width: 58px; padding: 2px 0; gap: 1px; }
.pitch.mini .tok .esc { width: 30px; height: 30px; }
.pitch.mini .tok .esc img { width: 22px; height: 22px; }
.pitch.mini .tok .nm { font-size: 10.5px; }
.pitch.mini .tok .meta { display: none; }
.pitch.mini .tok.vazio .esc { font-size: 17px; }
.pitch.mini .tec { position: static; display: flex; justify-content: flex-end; margin-top: -6px; padding-right: 4px; }
.pitch.mini .tec .tok { width: 54px; }

/* lista (troca e mercado): mesmas colunas, mesma pílula do MPV e mesmo CPP da Valorização */
.lista { container: lista / inline-size; display: flex; flex-direction: column; }
.lh, .jr { display: grid; grid-template-columns: minmax(0, 1fr) 82px 74px 70px 52px 62px 108px; align-items: center; gap: 8px; }
.lh { padding: 0 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-faint); }
.lh > span:not(:first-child) { text-align: right; }
.lh .on { color: var(--cream); }
.jr { padding: 9px 12px; border-top: 1px solid var(--f-line); }
.jr > .c { text-align: right; font-size: 13px; white-space: nowrap; }
.jr > .c.inf { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--f-folga-txt); }
.jr.pode:hover { background: rgba(255, 255, 255, .035); }
.jr.atual { background: rgba(234, 92, 31, .1); }
.jr.fora { opacity: .5; }
.jr .who { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; }
.jr button.who:hover b { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.jr .who img { width: 22px; height: 22px; }
.jr .who .tx { min-width: 0; display: flex; flex-direction: column; }
.jr .who small { overflow: hidden; text-overflow: ellipsis; }
.act { display: flex; justify-content: flex-end; }
.tag { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; border: 0; background: none; }
.tag.time { color: var(--cream); background: rgba(234, 92, 31, .18); }
.tag.falta { color: var(--f-aperto-txt); }
.tag.cheia { color: var(--f-faint); white-space: normal; text-align: right; line-height: 1.25; }
.tag.esc { color: #fff; background: var(--orange); padding: 6px 12px; font-size: 12.5px; }
.ferr .add { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--f-line-2); background: transparent; display: grid; place-items: center; font-size: 19px; line-height: 1; color: var(--text); }
.ferr .add:hover { border-color: var(--orange); color: var(--orange); }
.ferr .add.sel { background: var(--orange); border-color: var(--orange); color: #fff; font-size: 14px; }
.meta2 { display: none; }
.tag.cheia .cu { display: none; }
.m-mais { padding: 12px; font-size: 12.5px; color: var(--f-faint); border-top: 1px solid var(--f-line); }
.lista .nenhum { margin: 10px 12px; }
@container lista (max-width: 560px) {
  .lh { display: none; }
  .jr { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .jr > .c { display: none; }
  .meta2 { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-left: 44px; font-size: 12px; color: var(--text-dim); }
  .meta2 .num { color: var(--text); font-size: 12px; }
  .meta2 .inf { color: var(--f-folga-txt); font-weight: 600; }
  .tag.cheia .lg { display: none; }
  .tag.cheia .cu { display: inline; }
  .meta2 .mpvp { font-size: 11.5px; padding: 1px 7px; }
}
.ord .lbl, .g-ctl .lbl { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-faint); margin-right: 2px; }

/* aba Montar: mercado largo + campo pequeno ao lado (variação 1) */
.gb { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
.mkt { scroll-margin-top: 84px; padding: 14px 6px 6px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mkt-top { display: flex; flex-direction: column; gap: 10px; padding: 0 10px; }
.busca { width: 100%; background: var(--surface-2); border: 1px solid var(--f-line-2); border-radius: 10px; padding: 9px 12px; font-size: 14px; color: var(--text); }
.busca::placeholder { color: var(--f-faint); }
.busca:focus { outline: none; border-color: var(--orange); }
.pchip i { font-style: normal; font-size: 11px; opacity: .8; margin-left: 2px; }
.pchip.ok i { color: var(--f-folga-txt); opacity: 1; }
.seg button[aria-pressed="true"].pchip.ok i { color: #fff; }
.alvo-aviso { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 10px; padding: 9px 12px; border-radius: 12px; background: rgba(234, 92, 31, .14); font-size: 13px; color: var(--cream); }
.alvo-aviso[hidden] { display: none; }
.alvo-aviso b { color: var(--text); }
.alvo-aviso button { background: none; border: 0; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 92px; }
.orc { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.orc .lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-faint); }
.orc .big { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.orc .big b { font-weight: 500; font-size: 24px; letter-spacing: -.03em; }
.orc .big span { color: var(--text-dim); font-size: 12.5px; text-align: right; }
.orc .bar { height: 6px; border-radius: 6px; background: var(--f-surface-3); overflow: hidden; }
.orc .bar i { display: block; height: 100%; background: var(--orange); border-radius: 6px; }
.orc .linha { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); gap: 8px; }
.orc .linha b { color: var(--text); font-weight: 500; }
.orc .linha b.up-t { color: var(--f-up-text); } .orc .linha b.down-t { color: var(--f-down-text); }
.faltam { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 12.5px; color: var(--text-dim); }
.faltam .posb { width: auto; padding: 2px 6px; }

/* barra do celular (aba Montar) */
.barra-cel { display: none; }
.bc-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.bc-h .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bc-h .tx b { font-weight: 500; font-size: 15px; }
.bc-h .tx span { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-campo { display: none; padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px)); flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; }
.barra-cel.aberta .bc-campo { display: flex; }
@media (max-width: 1020px) {
  .gb { grid-template-columns: minmax(0, 1fr); }
  .gb .side { display: none; }
  .barra-cel:not([hidden]) { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--surface); border-top: 1px solid var(--f-line-2); border-radius: 20px 20px 0 0; box-shadow: 0 -12px 30px rgba(0, 0, 0, .35); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .barra-cel.aberta { padding-bottom: 0; }
  .ferr.montando { padding-bottom: 84px; }
}

/* gaveta de troca (aba Rápido): reaproveita a .v-sheet; o detalhe do jogador abre por cima dela */
#g-scrim { z-index: 1000; }
#g-sheet { z-index: 1001; width: min(480px, 100%); }
#v-scrim { z-index: 1002; }
#v-sheet { z-index: 1003; }
.g-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 16px 10px; flex: none; }
.g-h small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--f-faint); }
.g-h h4 { font-size: 19px; letter-spacing: -.02em; }
.saldo { margin: 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--text-dim); flex: none; }
.saldo b { color: var(--text); font-weight: 500; }
.g-ctl { padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 8px; flex: none; }
.g-ctl .seg button { padding: 5px 10px; font-size: 12.5px; color: var(--text-dim); }
.g-ctl .seg button[aria-pressed="true"] { color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.toggle input { accent-color: var(--orange); width: 16px; height: 16px; }
.g-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 4px 12px; }
.g-fine { flex: none; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: var(--f-faint); border-top: 1px solid var(--f-line); }
@media (max-width: 720px) {
  #g-sheet { width: auto; }
  #g-sheet::before { content: ""; align-self: center; flex: none; width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin-top: 8px; }
  .g-h { padding-top: 10px; }
}

/* ===== Valorização por clube ===== */
.clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; padding: 12px; margin-bottom: 14px; }
.club { border: 1px solid transparent; background: transparent; border-radius: 12px; padding: 8px 2px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-dim); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.club img { width: 30px; height: 30px; object-fit: contain; }
.club:hover { background: var(--surface-2); }
.club[aria-pressed="true"] { border-color: var(--orange); background: rgba(234, 92, 31, .1); color: var(--text); }
.club .all-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 12px; color: var(--text); }

.club-head { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--f-line); }
.club-head .id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.club-head .id > img { width: 44px; height: 44px; object-fit: contain; }
.club-head h3 { font-size: 20px; letter-spacing: -.02em; }
.club-head .vs { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.club-head .vs img { width: 18px; height: 18px; }
.club-head .tally { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-dim); white-space: nowrap; }
.pill.up { background: rgba(46, 125, 50, .2); color: var(--f-up-text); }
.pill.down { background: rgba(198, 40, 40, .2); color: var(--f-down-text); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--f-line); font-size: 12px; color: var(--f-faint); }
.toolbar .seg button { padding: 5px 9px; font-size: 12px; }

/* lista: barra divergente a partir do zero, com MPV (cor da folga) e CPP */
.vpanel { container: vlista / inline-size; }
.vcols, .vrow { display: grid; grid-template-columns: minmax(150px, 1.35fr) 78px 84px 72px minmax(190px, 2fr); gap: 12px; align-items: center; }
.vcols { padding: 8px 18px; border-bottom: 1px solid var(--f-line); }
.vcols > span, .vcols button { background: none; border: 0; padding: 4px 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--f-faint); white-space: nowrap; }
.vcols button:hover, .vcols button[aria-pressed="true"] { color: var(--text); }
.vcols button[aria-pressed="true"]::after { content: " ↓"; color: var(--orange); }
.vcols .ar { justify-self: end; }
.vcols .ax { display: flex; justify-content: space-between; align-items: center; }
.vcols .ax small { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--f-faint); }
.toolbar .t-ord { display: none; }

.vrows { padding: 4px 0 8px; }
.vrow { width: 100%; text-align: left; background: none; border: 0; padding: 9px 18px; color: var(--text); animation: f-pop .35s cubic-bezier(.22, .61, .36, 1) both; }
button.vrow:hover { background: rgba(255, 255, 255, .035); }
.vrow[aria-current="true"] { background: rgba(234, 92, 31, .1); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > span:last-child { min-width: 0; }
.who img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.who b { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.who small .num { color: var(--text); font-size: 11.5px; }
.duv { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--f-doubt); border: 1px solid rgba(242, 193, 78, .45); padding: 0 5px; border-radius: 5px; }
.posb { display: inline-block; flex: none; font-size: 10px; font-weight: 800; letter-spacing: .04em; color: #fff; padding: 2px 0; width: 34px; border-radius: 6px; text-align: center; }
.p1 { background: #FF9800; } .p2 { background: #4CAF50; } .p3 { background: #2196F3; } .p4 { background: #9C27B0; } .p5 { background: #F44336; } .p6 { background: #607D8B; }
.c-pr, .c-cpp, .c-mpv { justify-self: end; font-size: 13px; white-space: nowrap; }
.c-cpp.inf { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--f-folga-txt); }
.mpvp { display: inline-block; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.mpvp.qq { font-family: inherit; font-size: 11.5px; }
.folgada { background: rgba(46, 125, 50, .18); border-color: rgba(46, 125, 50, .8); color: var(--f-folga-txt); }
.justa { background: var(--f-surface-3); border-color: rgba(255, 255, 255, .25); color: var(--text); }
.apertada { background: rgba(198, 40, 40, .18); border-color: rgba(198, 40, 40, .8); color: var(--f-aperto-txt); }
.vmeta { display: none; }

.vtrack { position: relative; height: 24px; }
.vtrack::before { content: ""; position: absolute; left: 50%; top: -9px; bottom: -9px; width: 1px; background: var(--f-line-2); }
.vbar { position: absolute; top: 6px; height: 12px; }
.vbar.up { background: var(--f-up-text); border-radius: 0 4px 4px 0; left: 50%; }
.vbar.down { background: var(--f-down-text); border-radius: 4px 0 0 4px; right: 50%; }
.vdot { position: absolute; left: 50%; top: 8px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--f-faint); }
.vlbl { position: absolute; top: 2px; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; letter-spacing: -.02em; }
.vlbl.up { color: var(--f-up-text); } .vlbl.down { color: var(--f-down-text); }
.vlbl.flat { color: var(--f-faint); font-family: inherit; font-size: 11.5px; letter-spacing: 0; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 18px; border-top: 1px solid var(--f-line); font-size: 12px; color: var(--f-faint); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 999px; border: 1px solid; vertical-align: -1px; margin-right: 6px; }
.legend .l-folga { background: rgba(46, 125, 50, .18); border-color: rgba(46, 125, 50, .8); }
.legend .l-aperto { background: rgba(198, 40, 40, .18); border-color: rgba(198, 40, 40, .8); }

/* detalhe do jogador: gaveta à direita no desktop, folha de baixo no celular (espelha a folha do MPV do app) */
.v-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 9, 13, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.v-scrim.open { opacity: 1; pointer-events: auto; }
.v-sheet { position: fixed; z-index: 1001; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); border-left: 1px solid var(--f-line-2); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .8); display: flex; flex-direction: column; transform: translateX(105%); visibility: hidden; transition: transform .28s cubic-bezier(.22, .61, .36, 1), visibility 0s .28s; font-size: 15px; }
.v-sheet.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.22, .61, .36, 1); }
.v-sheet button, .barra-cel button { font: inherit; color: inherit; cursor: pointer; }
.v-sheet input, .barra-cel input { font: inherit; }
.v-sheet .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.sheet-top { display: flex; justify-content: flex-end; padding: 12px 12px 0; flex: none; position: relative; }
.handle { display: none; }
.x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-dim); display: grid; place-items: center; font-size: 15px; line-height: 1; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.sheet-cta { flex: none; padding: 10px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--f-line); }
.sheet-cta .go { display: block; text-align: center; }
.d-head { display: flex; gap: 12px; align-items: center; }
.d-head > img { width: 44px; height: 44px; object-fit: contain; }
.d-head > div { min-width: 0; flex: 1; }
.d-head h3 { font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-vs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.d-vs img { width: 16px; height: 16px; object-fit: contain; }
.d-preco { text-align: right; }
.d-preco b { display: block; font-family: var(--f-mono); font-size: 16px; font-weight: 600; white-space: nowrap; }
.d-preco small { font-family: var(--f-mono); font-size: 11.5px; white-space: nowrap; }
.up-t { color: var(--f-up-text); } .down-t { color: var(--f-down-text); } .dim-t { color: var(--text-dim); }
.d-prev { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.d-prev small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-faint); }
.d-prev b { font-family: var(--f-mono); font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.d-prev .seta { color: var(--f-faint); font-size: 18px; }
.d-prev .rt { text-align: right; }
.d-card { border-radius: 14px; border: 1px solid var(--f-line-2); padding: 14px; }
.d-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--f-faint); }
.d-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 2px; }
.d-big b { font-size: 38px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.d-big span { color: var(--text-dim); font-size: 14px; }
.d-big .selo { margin-left: auto; align-self: center; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 12px; border: 1px solid; }
.d-card p { font-size: 13px; color: var(--text-dim); line-height: 1.4; margin-top: 4px; }
.regua { position: relative; height: 48px; margin-top: 12px; }
.regua .tr { position: absolute; left: 0; right: 0; top: 22px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(198, 40, 40, .45), rgba(198, 40, 40, .45) var(--m), rgba(46, 125, 50, .55) var(--m)); }
.regua .mk { position: absolute; top: 15px; width: 14px; height: 20px; margin-left: -7px; border-radius: 4px; background: var(--orange); border: 2px solid var(--bg); }
.regua .mk-l { position: absolute; top: -2px; transform: translateX(-50%); font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--cream); white-space: nowrap; }
.regua .md { position: absolute; top: 18px; width: 2px; height: 14px; margin-left: -1px; background: var(--text); }
.regua .pr { position: absolute; top: 19px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--text); border: 2px solid var(--surface); }
.regua-leg { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; color: var(--f-faint); margin-top: 2px; }
.regua-leg span:nth-child(2) { color: var(--text-dim); text-align: center; }
.cen h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.cen-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cen-row div { background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; padding: 8px 2px; text-align: center; min-width: 0; }
.cen-row div.mpv { border-color: var(--orange); }
.cen-row b { display: block; font-size: 15px; font-weight: 800; }
.cen-row i { display: block; height: 14px; font-style: normal; font-size: 10px; color: var(--text-dim); }
.cen-row span { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 600; white-space: nowrap; }
.cen > p { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.rank { font-size: 13px; margin-top: 10px; }
.alts h5 { margin: 12px 0 2px; font-size: 13px; font-weight: 700; }
.alt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 10px; border: 0; background: var(--surface-2); text-align: left; margin-top: 6px; }
.alt:hover { background: var(--f-surface-3); }
.alt img { width: 20px; height: 20px; object-fit: contain; grid-row: span 2; }
.alt b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alt small { grid-column: 2; font-family: var(--f-mono); font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.alt .cppv { grid-row: 1 / span 2; grid-column: 3; font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--f-folga-txt); white-space: nowrap; text-align: right; }
.alt .cppv small { display: block; font-family: inherit; font-size: 10px; color: var(--f-faint); }
.nenhum { font-size: 13px; color: var(--text-dim); background: var(--surface-2); border-radius: 10px; padding: 10px; margin-top: 6px; }
.fine { font-size: 11px; color: var(--f-faint); line-height: 1.45; }

.how { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how > div { padding: 18px; border-right: 1px solid var(--f-line); min-width: 0; }
.how > div:last-child { border-right: 0; }
.how h3 { font-size: 14px; letter-spacing: 0; margin-bottom: 6px; }
.how p { font-size: 13px; color: var(--text-dim); }
.how code { font-family: var(--f-mono); font-size: 12px; color: var(--cream); background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

@media (max-width: 1020px) {
  .gen { grid-template-columns: minmax(0, 1fr); }
  .controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls .go, .controls .wide { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .how { grid-template-columns: minmax(0, 1fr); }
  .how > div { border-right: 0; border-bottom: 1px solid var(--f-line); }
  .how > div:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .f-head { padding-block: 26px 18px; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .summary strong { font-size: 16px; }
  .summary > div { padding: 12px 10px; }
  .summary span { font-size: 11px; }
  .pitch { min-height: 430px; padding-inline: 2px; }
  .tok { width: 62px; }
  .tok .nm { font-size: 11px; }
  .tok .esc { width: 34px; height: 34px; }
  .tok .esc img { width: 26px; height: 26px; }
  .tec { right: 6px; bottom: 8px; }
  .tec .tok { width: 58px; }
  .club-head .tally { margin-left: 0; }
}
/* a lista precisa de ~640px para as cinco colunas; abaixo disso (no painel, não na tela) vira a versão de celular */
@container vlista (max-width: 640px) {
  /* no celular a linha vira nome + frase (preço, MPV, CPP) + barra, e o detalhe sobe de baixo */
  .vcols { display: none; }
  .toolbar .t-ord { display: flex; }
  .toolbar span.t-ord { display: inline; }
  .vrow { grid-template-columns: minmax(0, 1fr); gap: 5px; padding: 10px 14px; }
  .vrow > .c-pr, .vrow > .c-mpv, .vrow > .c-cpp { display: none; }
  .who small { display: none; }
  .vmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--text-dim); }
  .vmeta .num { color: var(--text); font-size: 12px; }
  .vmeta .mpvp { font-size: 11.5px; padding: 1px 7px; }
}
/* a folha de detalhe sobe de baixo no celular */
@media (max-width: 720px) {
  .v-sheet { top: auto; left: 0; width: auto; height: 88vh; height: 88dvh; border-left: 0; border-top: 1px solid var(--f-line-2); border-radius: 22px 22px 0 0; transform: translateY(105%); box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .8); }
  .sheet-top { justify-content: center; padding: 8px 0 4px; min-height: 48px; }
  .handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
  .x { position: absolute; right: 12px; top: 8px; }
  .sheet-body { padding-inline: 16px; }
  .d-big b { font-size: 34px; }
}
/* ---------- Dicas: Tabela (Geral/Scouts) ou Por posição ---------- */
.dicas { container: dicas / inline-size; }
.d-painel { padding: 18px; }
.d-titulo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.d-titulo h2 { font-size: 22px; letter-spacing: -.02em; }
.d-titulo p { color: var(--text-dim); font-size: 14px; }
.d-visao button { display: inline-flex; align-items: center; gap: 6px; }
.d-visao button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.d-visao svg { width: 15px; height: 15px; }
.d-ctrl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 14px; background: rgba(255, 255, 255, .02); border: 1px solid var(--f-line); border-radius: 14px; margin-bottom: 14px; }
.d-ctrl .lbl { font-size: 11px; font-weight: 700; color: var(--f-faint); letter-spacing: .1em; text-transform: uppercase; }
.d-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.d-row .busca { flex: 1 1 220px; min-width: 0; }
.d-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.d-chip { background: none; border: 1px solid var(--f-line-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.d-chip:hover { color: var(--text); }
.d-chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.d-tg { font-size: 11px; font-weight: 600; color: var(--text); background: var(--f-surface-3); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.d-tg.sg { color: #9EC9FF; background: rgba(33, 150, 243, .15); }
.d-tg b { font-weight: 600; }
.d-janela { font-size: 12px; color: var(--f-faint); margin: -4px 2px 12px; }
.d-janela b { color: var(--text-dim); font-weight: 600; }
.d-st { flex: none; font-size: 10px; font-weight: 700; border: 1px solid; border-radius: 5px; padding: 1px 5px; letter-spacing: .04em; white-space: nowrap; }
.d-st.s7 { color: var(--f-up-text); border-color: rgba(111, 210, 122, .45); }
.d-st.s2 { color: var(--f-doubt); border-color: rgba(242, 193, 78, .5); }
.d-st.s6 { color: var(--f-down-text); border-color: rgba(255, 116, 104, .45); }
.dicas .nulo { opacity: .45; }
.dicas .nulo:hover, .dicas .nulo:focus-visible { opacity: .8; }
.d-nm { min-width: 0; }
.d-nm b { display: flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; }
.d-nt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.d-nm small { display: block; color: var(--f-faint); font-size: 12px; white-space: nowrap; }
.d-mais { margin-top: 12px; width: 100%; background: none; border: 1px dashed var(--f-line-2); border-radius: 12px; padding: 10px; color: var(--text-dim); font-size: 13px; font-weight: 600; }
.d-mais:hover { color: var(--text); }
.forte { color: var(--cream); font-weight: 700; }

.d-tbl { overflow-x: auto; scrollbar-width: thin; }
.d-t { min-width: 100%; display: grid; }
.d-cab, .d-lin { display: grid; gap: 10px; align-items: center; padding: 0 10px; }
.d-t.geral .d-cab, .d-t.geral .d-lin { grid-template-columns: 30px minmax(200px, 1.6fr) 84px 76px 80px 78px 64px 92px; }
/* cabe nos ~830px que o painel tem ao lado do menu; abaixo disso rola */
.d-t.scouts { min-width: 800px; }
.d-t.scouts .d-cab, .d-t.scouts .d-lin { grid-template-columns: 22px minmax(170px, 1fr) 26px 42px 54px 50px 40px 56px 40px 40px 34px 38px 80px; gap: 6px; }
.d-cab { font-size: 11px; font-weight: 700; color: var(--f-faint); letter-spacing: .06em; text-transform: uppercase; padding-block: 6px 8px; border-bottom: 1px solid var(--f-line-2); }
.d-cab > * { text-align: right; }
.d-cab .esq { text-align: left; }
.d-cab button { background: none; border: 0; padding: 0; text-transform: inherit; letter-spacing: inherit; font-weight: inherit; font-size: inherit; display: inline-flex; gap: 3px; justify-content: flex-end; align-items: center; width: 100%; color: inherit; white-space: nowrap; }
.d-cab button:hover, .d-cab button[aria-sort] { color: var(--text); }
.d-cab button[aria-sort]::after { content: "↓"; color: var(--orange); }
.d-cab button[aria-sort="ascending"]::after { content: "↑"; }
.d-cab .pts-h { color: var(--cream); }
.d-lin { width: 100%; text-align: right; padding-block: 9px; border: 0; border-bottom: 1px solid var(--f-line); border-radius: 8px; background: none; color: var(--text); }
button.d-lin:hover { background: rgba(255, 255, 255, .03); }
.d-rk { color: var(--f-faint); font-size: 12px; text-align: left; }
.d-quem { display: flex; align-items: center; gap: 9px; text-align: left; min-width: 0; }
.d-quem img, .d-cand > img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.d-pts { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.d-pts b { font-size: 16px; font-weight: 700; }
.d-pts i { display: block; height: 4px; border-radius: 2px; background: var(--orange); opacity: .85; }
.d-lin .c { font-size: 13px; white-space: nowrap; }
.d-lin .c.inf { font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--f-folga-txt); }
.d-meta { display: none; }
.d-rola { display: none; font-size: 12px; color: var(--f-faint); margin-bottom: 6px; }

.d-pos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.d-card-pos { background: var(--surface-2); border-radius: 16px; padding: 14px; min-width: 0; }
.d-pos-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.d-pos-h h3 { font-size: 15px; font-weight: 800; letter-spacing: 0; }
.d-pos-h small { color: var(--f-faint); font-size: 12px; margin-left: auto; }
.d-cand { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; width: 100%; text-align: left; padding: 9px 8px; border: 0; border-radius: 10px; background: none; color: var(--text); }
button.d-cand:hover { background: rgba(255, 255, 255, .04); }
.d-cand + .d-cand { border-top: 1px solid var(--f-line); }
.d-cand.top { background: rgba(234, 92, 31, .08); }
.d-cand.top .d-pb b { color: var(--cream); }
.d-pb { text-align: right; }
.d-pb b { font-size: 18px; font-weight: 700; display: block; line-height: 1.1; }
.d-pb small { font-size: 10px; color: var(--f-faint); letter-spacing: .08em; text-transform: uppercase; }
.d-barra { grid-column: 2 / 4; height: 5px; border-radius: 3px; background: var(--f-surface-3); overflow: hidden; }
.d-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange-deep), var(--orange)); border-radius: 3px; }
.d-tags { grid-column: 2 / 4; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-dim); }
.d-tags .mpvp { font-size: 11.5px; padding: 1px 7px; }

.d-scouts .d-sc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.d-sc-row div { background: var(--surface-2); border-radius: 10px; padding: 8px 4px; text-align: center; }
.d-sc-row b { display: block; font-size: 15px; font-weight: 600; }
.d-sc-row small { font-size: 11px; color: var(--text-dim); }

@container dicas (max-width: 1000px) { .d-pos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container dicas (max-width: 640px) {
  .d-painel { padding: 14px 12px; }
  .d-ctrl { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .d-ctrl .lbl { margin-top: 6px; }
  .d-ctrl .lbl:first-child { margin-top: 0; }
  .d-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -12px; padding-inline: 12px; }
  .d-titulo .seg { width: 100%; }
  .d-titulo .seg button { flex: 1; justify-content: center; }
  .d-pos { grid-template-columns: 1fr; }
  .d-t.geral .d-cab { display: none; }
  .d-t.geral .d-lin { grid-template-columns: 22px minmax(0, 1fr) auto; row-gap: 4px; padding-inline: 4px; }
  .d-t.geral .d-lin > .c { display: none; }
  .d-t.geral .d-meta { display: flex; grid-column: 2 / 3; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-dim); text-align: left; }
  .d-t.geral .d-meta .mpvp { font-size: 11.5px; padding: 1px 7px; }
  .d-t.geral .d-pts { grid-row: 1; grid-column: 3; }
  /* Scouts no celular: rola na horizontal com o nome preso à esquerda */
  .d-t.scouts { min-width: 760px; }
  .d-t.scouts .d-cab, .d-t.scouts .d-lin { grid-template-columns: 0 128px 30px 50px 56px 54px repeat(6, 42px) 64px; gap: 8px; padding-inline: 0; }
  .d-t.scouts .d-rk, .d-t.scouts .d-cab > :first-child { visibility: hidden; }
  .d-t.scouts .d-quem, .d-t.scouts .d-cab > :nth-child(2) { position: sticky; left: 0; background: var(--surface); z-index: 1; padding-block: 4px; box-shadow: 8px 0 8px -8px rgba(0, 0, 0, .6); }
  .d-t.scouts .d-quem .posb, .d-t.scouts .d-quem small { display: none; }
  .d-t.scouts .d-pts b { font-size: 14px; }
  .d-t.scouts .d-pts i { display: none; }
  .d-rola { display: block; }
}

@media (prefers-reduced-motion: reduce) { .ferr *, .v-sheet, .v-scrim, .barra-cel { animation: none !important; transition: none !important; } }
.v-sheet :focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 2px; }

/* ---------- vindos do servidor (SEO) ---------- */
/* Os 10 da previsão nas Dicas: o JS troca pela tabela ao carregar. */
.d-top { margin: 0; padding: 0 0 0 22px; display: grid; gap: 6px; font-size: 14px; color: var(--text-dim); }
.d-top b { color: var(--text); }
.d-top a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Um link por clube para a página de valorização dele, no pé de todas as ferramentas. */
.f-clubes { margin-top: 18px; padding: 16px 18px; }
.f-clubes h2 { font-size: 14px; letter-spacing: 0; margin-bottom: 10px; }
.f-clubes div { display: flex; flex-wrap: wrap; gap: 6px; }
.f-clubes a { font-size: 13px; color: var(--text-dim); text-decoration: none; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--f-line); }
.f-clubes a:hover, .f-clubes a:focus-visible { color: var(--text); border-color: var(--orange); }
.f-clubes a[aria-current="page"] { color: var(--text); border-color: var(--orange); }

/* Carregando: a lista que já está na tela apaga enquanto a nova chega da API;
   sem lista ainda, o texto "Carregando…" pulsa. */
#g-list, #m-list, #v-body, #dicas, #pitch, #v-detail { transition: opacity .15s ease; }
#g-list.carregando, #m-list.carregando, #v-body.carregando, #dicas.carregando, #pitch.carregando { opacity: .5; }
.nenhum.carregando, .aviso.carregando { animation: f-pulsa 1.1s ease-in-out infinite; }
@keyframes f-pulsa { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .nenhum.carregando, .aviso.carregando { animation: none; } }
