/* Base visual: superfícies claras sobre giz, borda de 1 px, pílulas, sombra só no que flutua.
   Marca torneiosports (docs/MARCA.md): Manrope no sistema, Geist Mono em horários, rótulos e dados,
   limão só como destaque (ação, vencedor, ao vivo) e o placar escuro "estádio à noite" como assinatura. */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/geist-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/geist-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #f5f6f8;          /* tela */
  --surface: #ffffff;     /* painel */
  --surface-2: #eef0f3;   /* trilho, bloco interno */
  --ink: #13212b;
  --ink-2: #5c6370;
  --ink-3: #8a909b;
  --line: #e4e7eb;
  --sea: #0b6e79;         /* link e informação */
  --sea-2: #e2f1f2;
  --ball: #d8f04a;        /* ação: botão primário, item ativo, progresso */
  --ball-hover: #cde63a;
  --on-ball: #1d2a00;
  --ball-2: #f3fbd0;      /* ação suave: escolhido, destaque calmo */
  --ball-ink: #4a5f00;
  --bad: #c4363b;
  --bad-2: #fcebec;
  --warn: #a15c12;
  --warn-2: #fbf0e4;
  --ok: #1f7a49;
  --ok-2: #e7f5ee;
  --board: #13212b;       /* placar */
  --solid: #13212b;       /* bloco escuro (destaque, aba ativa, cartão "seu jogo") */
  --solid-hover: #22343f;
  --solid-line: #2b3b46;
  --on-solid: #ffffff;
  --on-solid-2: #c5d2db;
  --on-solid-3: #9fb0bc;
  --line-2: #c9d0d7;      /* borda no hover */
  --bad-line: #f0c9cb;
  --ball-line: #c9de5a;
  --hover: rgb(19 33 43 / 5%);
  --dot: rgb(19 33 43 / 14%);
  --top-bg: rgb(255 255 255 / 85%);
  --r1: 8px; --r2: 12px; --r3: 16px; --r4: 24px;
  --r-lg: 16px;
  --r: 12px;
  --s1: 0 0 0 1px var(--line);
  --s2: 0 0 0 1px var(--line), 0 8px 24px rgb(16 18 24 / 8%);
  --s3: 0 0 0 1px var(--line), 0 24px 64px rgb(16 18 24 / 14%);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: 160ms;
  --text: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: var(--text);
  color-scheme: light;
}

/* Escuro: grafite (não preto), com a mesma bola como destaque. Escolhido em tema.js (claro, escuro ou do aparelho). */
:root[data-tema='escuro'] {
  --bg: #16181c;
  --surface: #1d2025;
  --surface-2: #25292f;
  --ink: #ecedef;
  --ink-2: #9ba1ac;
  --ink-3: #6b717c;
  --line: #30343b;
  --line-2: #474e57;
  --sea: #5cc8d2;
  --sea-2: #123034;
  --ball: #d8f04a;
  --ball-hover: #e4f76f;
  --on-ball: #1d2a00;
  --ball-2: #283010;
  --ball-ink: #d8f04a;
  --ball-line: #4a5719;
  --bad: #ff6369;
  --bad-2: #3a1a1c;
  --bad-line: #5c2a2d;
  --warn: #f0a04b;
  --warn-2: #35260f;
  --ok: #4cc38a;
  --ok-2: #123323;
  --board: #0e1013;
  --solid: #2b3037;
  --solid-hover: #353b43;
  --solid-line: #3d434c;
  --on-solid: #ecedef;
  --on-solid-2: #b7bdc6;
  --on-solid-3: #8f96a0;
  --hover: rgb(236 237 239 / 7%);
  --dot: rgb(236 237 239 / 9%);
  --top-bg: rgb(22 24 28 / 85%);
  --s2: 0 0 0 1px var(--line), 0 1px 0 rgb(255 255 255 / 4%) inset, 0 8px 24px rgb(0 0 0 / 40%);
  --s3: 0 0 0 1px var(--line), 0 1px 0 rgb(255 255 255 / 4%) inset, 0 24px 64px rgb(0 0 0 / 55%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--sea); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--text); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(26px, 4vw, 32px); }
h2 { font-size: 20px; letter-spacing: -0.01em; }
h3 { font-size: 16px; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 16px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

/* barra superior: a rede */
.top { background: var(--solid); color: var(--on-solid); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-solid); text-decoration: none; font: 800 22px/1 var(--display); }
.brand i { width: 18px; height: 18px; border-radius: 50%; background: var(--ball); box-shadow: inset -3px -2px 0 rgba(0,0,0,.15); }
.top .grow { flex: 1; }
.top a.quiet, .top button.quiet { color: var(--on-solid-2); background: none; border: 0; font: inherit; font-size: 15px; cursor: pointer; text-decoration: none; padding: 6px 0; }
.top a.quiet:hover, .top button.quiet:hover { color: var(--on-solid); }

/* blocos */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel > h3 + *, .panel > .between + * { margin-top: 12px; }
.empty { padding: 32px 16px; text-align: center; color: var(--ink-2); }
.empty strong { display: block; font: 800 22px/1.1 var(--display); color: var(--ink); margin-bottom: 6px; }

/* cabeçalho do torneio */
.head { padding: 28px 0 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--ink-2); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; flex: none; }
.about { margin-top: 12px; max-width: 70ch; white-space: pre-line; color: var(--ink-2); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: var(--r); border: 1px solid transparent; font: 700 16px/1 var(--text); cursor: pointer; text-decoration: none;
  background: var(--sea); color: var(--on-solid); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn.dark { background: var(--solid); }
.btn.line { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.line:hover { background: var(--surface-2); filter: none; }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--bad-line); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--sea); font-weight: 700; cursor: pointer; }

/* chips e selos */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.sea { background: var(--sea-2); color: var(--sea); border-color: transparent; }
.chip.ball { background: var(--ball); color: var(--ink); border-color: transparent; }
.chip.bad { background: var(--bad-2); color: var(--bad); border-color: transparent; }
.chip.warn { background: var(--warn-2); color: var(--warn); border-color: transparent; }

/* abas */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 20px 0 18px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: none; border: 0; padding: 12px 14px; font: 700 16px/1 var(--text); color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .n { font-weight: 400; color: var(--ink-3); }

/* seletor de categoria */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.seg button { flex: none; border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: 700 15px/1 var(--text); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed='true'] { background: var(--solid); color: var(--on-solid); }

/* formulários */
label, .label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea { width: 100%; min-height: 44px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 12px; }
textarea { min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-2); }
.field + .field, .field + .row, .row + .field, .row + .row { margin-top: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); font-size: 15px; cursor: pointer; margin: 0; }
.check + .check { margin-top: 10px; }
.check input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--sea); }
.hint { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* busca "seu nome" */
.finder { position: relative; margin-top: 18px; max-width: 560px; }
.finder input { padding-left: 46px; min-height: 54px; font-size: 17px; border-radius: 12px; border-color: var(--line); }
.finder svg { position: absolute; left: 15px; top: 16px; width: 22px; height: 22px; color: var(--ink-3); }
mark { background: var(--ball); color: inherit; padding: 0; border-radius: 2px; }

/* jogo como faixa de placar */
.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.game + .game { margin-top: 10px; }
.game.tap { cursor: pointer; }
.game.tap:hover { border-color: var(--sea); }
.game .when { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 8px 14px; font-size: 14px; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.game .when b { color: var(--ink); }
.game .when .grow { flex: 1; }
.team { display: grid; grid-template-columns: 1fr 56px; align-items: stretch; min-height: 52px; }
.team + .team { border-top: 1px solid var(--line); }
.team .who { padding: 8px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; line-height: 1.25; }
.team .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .pts { background: var(--board); color: var(--on-solid-3); display: grid; place-items: center; font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.team.win .who { font-weight: 700; }
.team.win .pts { color: var(--ball); }
.team.lose .who { color: var(--ink-3); }
.team.tbd .who { color: var(--ink-3); font-style: italic; }
.team.open { grid-template-columns: 1fr; }
.game .act { padding: 9px 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--sea); font-size: 15px; }
.game.mine { border-color: var(--solid); box-shadow: 0 0 0 3px var(--ball); }

.slot-title { font: 800 22px/1 var(--display); margin: 28px 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.slot-title:first-child { margin-top: 0; }
.slot-title .faint { font: 400 15px var(--text); }

/* classificação */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .c { text-align: center; }
.table .pos { font: 800 22px/1 var(--display); width: 40px; }
.table tr.q .pos { color: var(--sea); }
.table tr.q td:first-child { box-shadow: inset 4px 0 0 var(--sea); }
.table .nm { font-weight: 700; }
.table .nm small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.table input, .table select { width: auto; min-height: 36px; padding: 4px 8px; }
.table input.rank { width: 60px; text-align: center; }
.scroll-x { overflow-x: auto; }

.group-card .gh { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.gnum { width: 40px; height: 40px; border-radius: 10px; background: var(--solid); color: var(--on-solid); display: grid; place-items: center; font: 900 24px/1 var(--display); flex: none; }
.group-card .gh .meta { color: var(--ink-3); font-size: 14px; }
.group-card details { border-top: 1px solid var(--line); }
.group-card summary { padding: 12px 16px; cursor: pointer; font-weight: 700; color: var(--sea); }
.group-card .games { padding: 0 12px 12px; }

/* chave */
.bracket-wrap { overflow-x: auto; padding-bottom: 8px; }
.origin { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.podium { display: grid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; max-width: 560px; }
.podium div { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); }
.podium div:first-child { border-top: 0; background: var(--solid); color: var(--on-solid); padding: 14px 16px; }
.podium b { flex: none; width: 86px; white-space: nowrap; font: 900 22px/1 var(--display); color: var(--ink-2); }
.podium div:first-child b { color: var(--ball); font-size: 28px; }
.podium span { font-weight: 700; }

/* próximo passo do painel */
.next { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--solid); color: var(--on-solid); border-radius: var(--r-lg); padding: 18px 20px; }
.next h3 { font-size: 26px; }
.next p { color: var(--on-solid-2); margin-top: 4px; max-width: 60ch; }
.next .btn { background: var(--ball); color: var(--ink); }
.next .btn:disabled { background: var(--solid-line); color: #8fa1ad; opacity: 1; }
.progress { height: 8px; background: var(--solid-line); border-radius: 99px; margin-top: 10px; overflow: hidden; max-width: 360px; }
.progress i { display: block; height: 100%; background: var(--ball); }

/* lista de inscritas */
.person { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.person:first-child { border-top: 0; }
.person .grow { flex: 1; min-width: 170px; }
.person .nm { font-weight: 700; }
.person .rk { font: 900 24px/1 var(--display); width: 34px; color: var(--ink-3); }

/* lista do painel */

/* janelas */
/* cabeçalho e botões sempre à vista; só o meio rola */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: min(calc(100dvh - 32px), 900px); overflow: hidden; color: var(--ink); background: var(--surface); box-shadow: 0 24px 70px rgba(19, 33, 43, .3); }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: rgba(19, 33, 43, .5); }
dialog .dh { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
dialog .dh h2 { font-size: 26px; }
dialog .db { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px; }
dialog .df { flex-shrink: 0; display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
dialog .x { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px 8px; }
@media (max-width: 560px) {
  dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; }
  dialog .db { padding: 16px; }
  dialog .df { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  dialog .df .btn { flex: 1 1 auto; }
}

/* lançar placar */
.scorer { display: grid; gap: 10px; }
.scorer .side { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.scorer .side .nm { font-weight: 700; line-height: 1.3; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font: 800 26px/1 var(--display); cursor: pointer; color: var(--ink); }
.stepper output { width: 58px; height: 52px; display: grid; place-items: center; background: var(--board); color: var(--on-solid); border-radius: 10px; font: 900 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.scorer .side.lead output { color: var(--ball); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.quick button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 700 15px var(--text); cursor: pointer; }
.quick button:hover { border-color: var(--sea); }
.more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.more summary { cursor: pointer; font-weight: 700; color: var(--sea); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--solid); color: var(--on-solid); padding: 12px 18px; border-radius: 12px; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.err { background: var(--bad); }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--sea-2); }
.notice.warn { background: var(--warn-2); }

footer { padding: 36px 0 44px; text-align: center; color: var(--ink-3); font-size: 14px; }
.quick button.swap { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }

/* ao vivo */
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ball); }
.live.off { color: #f2a59d; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.filters select { width: auto; min-width: 220px; }
.seg .n { font-weight: 400; opacity: .7; }
.game.fresh { border-color: var(--solid); box-shadow: 0 0 0 3px var(--ball); }
.game.fresh .when { background: var(--ball); color: var(--ink); }
.game.fresh .when::after { content: 'placar novo'; font-weight: 700; margin-left: auto; }
@media (max-width: 560px) { .filters select { width: 100%; } }

/* chave em grade com linhas de ligação */
.bgrid { display: grid; column-gap: 32px; min-width: max-content; padding: 2px 2px 8px; }
.bhead { font-size: 18px; color: var(--ink-2); margin-bottom: 10px; }
.bcell { align-self: center; position: relative; padding: 6px 0; z-index: 1; }
.bcell .game + .game { margin-top: 0; }
.bcell.feeds::after { content: ''; position: absolute; right: -16px; top: 50%; width: 16px; border-top: 2px solid var(--line-2); }
.bjoin { position: relative; }
.bjoin::before { content: ''; position: absolute; left: -16px; top: 25%; bottom: 25%; border-left: 2px solid var(--line-2); }
.bjoin::after { content: ''; position: absolute; left: -16px; top: 50%; width: 16px; border-top: 2px solid var(--line-2); }
.bgrid .team, .bthird .team { min-height: 44px; grid-template-columns: 1fr 44px; }
.bgrid .team.open, .bthird .team.open { grid-template-columns: 1fr; }
.bgrid .team .pts, .bthird .team .pts { font-size: 24px; }
.bgrid .team .who, .bthird .team .who { font-size: 14px; padding: 6px 10px; }
.bgrid .game .when, .bthird .game .when { padding: 5px 10px; font-size: 13px; }
.bgrid .game .act { padding: 6px 10px; font-size: 14px; }
.bthird { margin-top: 18px; width: 250px; }
.team .who span.origin { white-space: normal; overflow: visible; }
.next .step-of { color: var(--on-solid-3); font-size: 14px; margin: 0 0 4px; }

/* "x" entre as duplas, sobre a linha que as separa */
.team { position: relative; }
.team.sb::before { content: 'x'; position: absolute; left: 9px; top: -11px; z-index: 1; padding: 0 7px; background: var(--surface); color: var(--ink-2); font: 900 18px/20px var(--display); border-radius: 4px; }
.team.sb.win::before { left: 15px; }

/* busca com sugestões */
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(19, 33, 43, .15); overflow: hidden; }
.sugg button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 16px; font: 16px var(--text); color: var(--ink); cursor: pointer; }
.sugg button:first-child { border-top: 0; }
.sugg button:hover, .sugg button:focus-visible { background: var(--sea-2); }
.sugg button span { color: var(--ink-3); font-size: 14px; }

/* cartão "seu próximo jogo" */
.mycard { background: var(--solid); color: var(--on-solid); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 8px; }
.mc-title { color: var(--on-solid-3); font-size: 15px; }
.mc-when { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 6px; font-size: 17px; color: var(--on-solid-2); }
.mc-when b { font-weight: 700; color: var(--on-solid); }
.mc-when span:first-of-type { font: 900 30px/1 var(--display); color: var(--ball); order: -1; flex-basis: 100%; }
.mc-who { display: grid; gap: 8px; margin: 14px 0 0; }
.mc-who div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.mc-who dt { color: var(--on-solid-3); font-size: 15px; }
.mc-who dd { margin: 0; font-weight: 700; font-size: 17px; }
.mc-status { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--solid-line); color: var(--on-solid-2); }
.mc-none { margin-top: 8px; font-size: 17px; }

/* em quadra */
.game.oncourt { border-color: var(--solid); }
.game.oncourt .when { background: var(--solid); color: var(--on-solid-2); }
.game.oncourt .when b { color: var(--on-solid); }
.courts { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 5px; margin-top: 8px; }
.courts button { min-width: 0; min-height: 46px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 900 22px/1 var(--display); color: var(--ink); display: grid; place-items: center; }
.courts button small { font: 400 11px var(--text); color: var(--ink-3); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.courts button[aria-pressed='true'] { background: var(--solid); color: var(--ball); border-color: var(--solid); }
.courts button.busy { background: var(--surface-2); color: var(--ink-3); }
.free { color: var(--ink-2); margin: 4px 0 0; }
.free b { color: var(--ink); }

.mycard.now { box-shadow: 0 0 0 4px var(--ball); }
.mc-now { font-size: 17px; color: var(--on-solid); }
.mc-now b { display: block; font: 900 40px/1.05 var(--display); color: var(--ball); margin-top: 4px; }
.toast { display: flex; align-items: center; gap: 14px; }
.toast-act { background: none; border: 0; color: var(--ball); font: 700 15px var(--text); cursor: pointer; padding: 4px 2px; text-decoration: underline; text-underline-offset: 3px; }

/* compartilhar */
.btn svg { width: 17px; height: 17px; flex: none; }
.mycard { position: relative; }
.mc-share { position: absolute; top: 14px; right: 14px; background: var(--ball); color: var(--ink); }
@media (max-width: 560px) { .mc-share { position: static; margin-bottom: 10px; } }

/* presença */
.btn.checkin { width: 100%; min-height: 64px; margin-top: 14px; font: 900 30px/1 var(--display); background: var(--ball); color: var(--ink); border-radius: 14px; }
.mc-ok { font: 900 30px/1.05 var(--display); color: var(--ball); margin-top: 6px; }
.link.light { color: var(--on-solid-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mycard .finder { max-width: none; margin-top: 12px; }
.mycard .finder input { color: var(--ink); }
.progress.light { background: var(--line); max-width: none; height: 10px; margin-top: 10px; }
.progress.light i { background: var(--sea); }

/* regulamento e criação de torneio */
.rules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rules h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 0 0 6px; }
.rules ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.rules li + li { margin-top: 4px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks button { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 700 15px/1 var(--text); color: var(--ink-2); cursor: pointer; }
.picks button[aria-pressed='true'] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: block; padding: 10px 14px 10px 44px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--ink-2); margin: 0; }
.choice::before { content: ''; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); box-sizing: border-box; }
.choice:has(input:checked)::before { border: 6px solid var(--sea); }
.choice input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
.choice b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.choice-group { margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.choice-group:first-child { margin-top: 0; }
.choice:has(input:checked) { border-color: var(--sea); background: var(--sea-2); box-shadow: inset 0 0 0 1px var(--sea); }
.choice:has(input:focus-visible) { outline: 2px solid var(--sea); outline-offset: 2px; }
.wiz-step { font-size: 14px; color: var(--ink-3); font-weight: 700; }
.wiz h3 { margin: 20px 0 8px; font-size: 16px; }
.wiz h3:first-child { margin-top: 0; }
.bk-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.bk-row + .bk-row { border-top: 1px solid var(--line); }

/* celular: ações do torneio numa linha só (rola para o lado) e abas inteiras */

/* outras categorias: botão com × para apagar das salvas, campo com + */
.pick-x { display: inline-flex; }
.pick-x > button:first-child { border-radius: 999px 0 0 999px; border-right: 0; }
.pick-x > .del { border-radius: 0 999px 999px 0; padding: 8px 12px 8px 8px; color: var(--ink-3); font-size: 18px; }
.pick-x > [aria-pressed='true'] + .del { background: var(--solid); border-color: var(--solid); color: var(--on-solid-2); }
.pick-x > .del:hover { color: var(--bad); }
.add-line { display: flex; gap: 8px; }
.add-line input { flex: 1; min-width: 0; }
.add-line .btn { min-width: 48px; padding: 0 14px; font-size: 22px; }
.will { margin: 14px 0 16px; padding: 12px; border-radius: var(--r); background: var(--surface-2); }
.will .label { margin-bottom: 8px; }

/* página de inscrição */
.reg { max-width: 640px; display: grid; gap: 14px; }
.reg-h { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 12px; }
.reg-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--solid); color: var(--ball); font: 800 16px/1 var(--display); flex: none; }
.pix { display: grid; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.pix .label { margin-bottom: 2px; }
.pix-v { font: 800 28px/1 var(--display); }
.pix-key { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pix-key code { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font: 700 16px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; user-select: all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.drop-in { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px; min-height: 84px; border: 2px dashed var(--line); border-radius: var(--r-lg); cursor: pointer; font-weight: 400; color: var(--ink-2); }
.drop-in:hover, .drop input:focus-visible + .drop-in { border-color: var(--sea); }
.drop-in b { display: block; color: var(--ink); font-size: 16px; }
.drop-in .small { display: block; }
.drop-in .plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sea-2); color: var(--sea); font: 800 30px/1 var(--display); flex: none; }
.drop.has .drop-in { border-style: solid; border-color: var(--ok); background: var(--ok-2); }
.drop-in img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.drop-in .doc { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 8px; background: var(--bad-2); color: var(--bad); font-weight: 700; flex: none; }
.drop-in .link { color: var(--sea); text-decoration: underline; }
.done-card { max-width: 640px; text-align: center; padding: 32px 20px; }
.ok-mark { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok); color: var(--on-solid); display: grid; place-items: center; font-size: 30px; font-weight: 700; }

/* inscrições: comprovante e pago */
.pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pay .chip { min-height: 30px; padding: 4px 10px; font-size: 13px; text-decoration: none; cursor: pointer; }
.pay-ok input { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--ok); }
.pay-ok.on { background: var(--ok-2); color: var(--ok); border-color: transparent; }
.pay-up { background: var(--surface); }
.pay-up:hover, .pay-ok:hover { border-color: var(--sea); }

/* local do torneio */
.place { margin-top: 12px; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.place-addr { font-weight: 700; color: var(--ink); }
.place .btn { white-space: normal; text-align: left; }
.mc-geo { margin-top: 10px; font-size: 14px; color: var(--on-solid-2); }
.mc-geo b { color: var(--on-solid); }

/* listas de torneios: agrupadas por situação, com a ação certa em cada cartão */
.tgroup + .tgroup { margin-top: 28px; }
.tcard2 { display: flex; flex-direction: column; gap: 4px; }
.tcard2 h2 { font-size: 28px; margin-top: 6px; }
.tcard2 h2 a { color: inherit; text-decoration: none; }
.tcard2 h2 a:hover { color: var(--sea); }
.tcard2 .status { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.tcard2.st-live .status { color: var(--ok); }
.tcard2.st-open .status { color: var(--sea); }
.tcard2.st-done { background: var(--surface-2); }
.tcard-cta { margin-top: auto; padding-top: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.tcard-alert { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--warn-2); color: var(--warn); font-weight: 700; font-size: 14px; }

/* página do torneio: chamada principal */
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--solid); color: var(--on-solid); max-width: 720px; }
.cta-k { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ball); }
.cta-v { font: 800 30px/1.05 var(--display); margin-top: 2px; }
.cta-card .small { color: var(--on-solid-2); margin-top: 4px; }
.btn.ball { background: var(--ball); color: var(--ink); }
.head-links { margin-top: 12px; gap: 18px; }
.head-links .link { display: inline-flex; align-items: center; gap: 6px; }
.head-links svg { width: 16px; height: 16px; }

/* escolha em botões (nível) */
.pick-r { position: relative; margin: 0; }
.pick-r input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.pick-r span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--ink-2); cursor: pointer; }
.pick-r input:checked + span { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.pick-r input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
.trust { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.trust svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ok); }

/* painel: menu "Mais" e resumo */
.menu { position: relative; }
.menu > summary { list-style: none; gap: 6px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(19, 33, 43, .14); display: grid; }
.menu-list button { display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; font: 700 15px/1.2 var(--text); color: var(--ink); cursor: pointer; }
.menu-list button:hover { background: var(--surface-2); }
.menu-list svg { width: 16px; height: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 22px; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); }
button.kpi { cursor: pointer; }
button.kpi:hover { border-color: var(--sea); }
.kpi b { font: 900 34px/1 var(--display); }
.kpi span { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.kpi small { color: var(--ink-3); font-size: 13px; }
.kpi em { margin-top: 6px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--sea); }
.kpi.warn { background: var(--warn-2); border-color: transparent; }
.kpi.warn b, .kpi.warn em { color: var(--warn); }
.kpi.ink { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.kpi.ink span, .kpi.ink small { color: var(--on-solid-2); }
.kpi.ink em { color: var(--ball); }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi b { font-size: 28px; } }

/* chave no celular: uma fase por vez */
.bk-mob { display: none; }
.bk-mob .bk-tabs { margin-bottom: 14px; }
.bk-mob .bhead { margin: 0 0 10px; }
.bk-list { display: grid; gap: 12px; }
@media (max-width: 720px) {
  .bk-desk { display: none; }
  .bk-mob { display: block; }
  .podium { max-width: none; }
}

/* tela de placar */
.score-meta { margin: -4px 0 14px; font-size: 14px; color: var(--ink-3); }
.score-msg { min-height: 22px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--ok); }
.score-msg.bad { color: var(--bad); }
.call-box { margin-top: 16px; padding: 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.call-box .label { margin: 0; }
dialog .btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

/* painel: menu lateral fixo (computador) e barra embaixo (celular) */
a.tab { text-decoration: none; }
.tab[aria-current='page'] { color: var(--ink); border-bottom-color: var(--ink); }
.seg a.seg-a { flex: none; padding: 8px 14px; border-radius: 9px; font: 700 15px/1 var(--text); color: var(--ink-2); text-decoration: none; }
.seg a.seg-a[aria-pressed='true'] { background: var(--solid); color: var(--on-solid); }
.cat-title { font-size: 32px; }
.catcard { text-decoration: none; color: inherit; }
.catcard:hover { border-color: var(--sea); }
.mob-only { display: none; }
@media (max-width: 900px) {
  .mob-only { display: flex; }
}


/* =====================================================================
   Componentes (camada nova; vale por cima das regras antigas acima)
   ===================================================================== */
.wrap { max-width: 1240px; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 6px; }

/* botões em pílula */
.btn { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; font: 600 14px/1 var(--text); background: var(--ball); color: var(--on-ball);
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
.btn:hover { filter: none; background: var(--ball-hover); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: 1; background: var(--surface-2); color: var(--ink-2); }
.btn.dark { background: var(--solid); color: var(--on-solid); }
.btn.dark:hover { background: var(--solid-hover); }
.btn.line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border: 0; font-weight: 500; }
.btn.line:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.danger { background: var(--surface); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad-line); border: 0; font-weight: 500; }
.btn.danger:hover { background: var(--bad-2); }
.btn.ghost { background: transparent; color: var(--ink); font-weight: 500; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 999px; }
.btn.ball { background: var(--ball); color: var(--on-ball); }
.link { font-weight: 600; }

/* superfícies */
.panel { border-radius: var(--r3); border: 1px solid var(--line); box-shadow: none; padding: 20px; }
.empty strong { font: 700 18px/1.3 var(--text); letter-spacing: -0.01em; }
.notice { border-radius: var(--r2); background: var(--sea-2); color: var(--ink); font-size: 14px; }
.notice.warn { background: var(--warn-2); }
.hint { color: var(--ink-2); font-size: 13px; }
.slot-title { font: 700 20px/1.2 var(--text); letter-spacing: -0.01em; margin: 28px 0 12px; }
.slot-title .faint { font: 500 14px var(--text); color: var(--ink-2); }

/* chips */
.chip { border-radius: 999px; font-size: 12px; font-weight: 600; padding: 3px 10px; border: 0; background: var(--surface-2); color: var(--ink-2); }
.chip.sea { background: var(--sea-2); color: var(--sea); }
.chip.ball { background: var(--ball-2); color: var(--ball-ink); }
.chip.ok { background: var(--ok-2); color: var(--ok); }

/* segmentado em pílulas (categorias, filtros, fases) */
.seg { gap: 6px; padding: 1px; border: 0; border-radius: 999px; background: transparent; }
.seg button, .seg a.seg-a { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 500 13px/1 var(--text); }
.seg button:hover:not([aria-pressed='true']), .seg a.seg-a:hover:not([aria-pressed='true']) { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button[aria-pressed='true'], .seg a.seg-a[aria-pressed='true'] { background: var(--ball-2); color: var(--ball-ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ball-line); }
.seg .n { opacity: 1; color: inherit; font-weight: 500; }

/* abas: mesma pílula */
.tabs { gap: 6px; border-bottom: 0; margin: 18px 0 16px; padding: 1px; }
.tab { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; margin: 0; background: transparent; color: var(--ink-2); font: 500 14px/36px var(--text); }
.tab:hover { background: var(--hover); color: var(--ink); }
.tab[aria-selected='true'], .tab[aria-current='page'] { background: var(--solid); color: var(--on-solid); font-weight: 600; border: 0; }
.tab[aria-selected='true'] .n, .tab[aria-current='page'] .n { color: var(--line-2); }

/* campos */
label, .label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
input, select, textarea { min-height: 42px; border: 1px solid var(--line); border-radius: var(--r2); font-size: 15px; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgb(11 110 121 / 18%); }
.finder input { border-radius: 999px; min-height: 48px; font-size: 15px; }
.finder svg { top: 13px; }

/* janelas (folhas) */
dialog { border-radius: var(--r4); box-shadow: var(--s3); }
dialog::backdrop { background: rgb(16 18 24 / 28%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog .dh { border-bottom: 0; padding: 18px 24px 6px; }
dialog .dh h2 { font-size: 20px; }
dialog .db { padding: 12px 24px 20px; }
dialog .df { background: var(--surface); border-top: 1px solid var(--line); padding: 14px 24px; }
dialog[open] { animation: subir 240ms var(--ease); }
@keyframes subir { from { opacity: 0; transform: translateY(8px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { dialog[open] { animation: none; } }

/* cartão "próximo passo": claro, com a ação em destaque */
.next { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r3); }
.next .step-of { color: var(--ink-2); }
.next h3 { color: var(--ink); font-size: 20px; }
.next p { color: var(--ink-2); }
.progress { background: var(--surface-2); }
.progress i { background: var(--ball); }
.progress.light { background: var(--surface-2); }

/* listas e tabelas */
.person { border-color: var(--line); }
.table th { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.table .pos { font: 700 18px/1 var(--text); }
.gnum { border-radius: 999px; font: 700 16px/1 var(--text); background: var(--ball-2); color: var(--ball-ink); }

/* placar: a assinatura (fica escuro, número grande) */
.team .pts { font: 700 26px/1 var(--text); }
.game { border-radius: var(--r3); }
.game .when { background: var(--surface); font-size: 13px; }

/* resumo do painel */
.kpi { border-radius: var(--r3); padding: 16px 18px; }
.kpi b { font: 700 32px/1.05 var(--text); letter-spacing: -0.02em; }
.kpi.ink em { color: var(--ball); }
.tcard2 h2 { font-size: 20px; }
.cta-card { border-radius: var(--r4); }
.cta-v { font: 700 26px/1.15 var(--text); letter-spacing: -0.02em; }
.podium b { font: 700 18px/1 var(--text); }
.podium div:first-child b { font-size: 22px; }

/* topo das páginas públicas: claro, com a marca */
.top { background: var(--top-bg); color: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { color: var(--ink); font: 700 17px/1 var(--text); letter-spacing: -0.02em; }
.brand i { background: var(--ball); box-shadow: inset -3px -2px 0 rgb(0 0 0 / 12%), 0 0 0 1px rgb(0 0 0 / 6%); }
.top a.quiet, .top button.quiet { color: var(--ink-2); font-weight: 500; }
.top a.quiet:hover, .top button.quiet:hover { color: var(--ink); }
.live { color: var(--ok); }
.head { padding: 32px 0 8px; }
/* fundo pontilhado no topo, sumindo para baixo (como na hooby) */
body.pub::before, .casca-principal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 300px; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.5px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent); mask-image: linear-gradient(to bottom, black, transparent); }
body.pub { position: relative; }
body.pub > main { position: relative; }

/* =====================================================================
   Moldura do painel (casca): lateral clara de altura cheia + conteúdo numa folha arredondada
   ===================================================================== */
.casca { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; background: var(--surface); }
.casca.sem-lateral { grid-template-columns: 1fr; }
.casca.sem-lateral .casca-lateral { display: none; }
.casca-lateral { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 12px; padding: 16px 12px 12px; overflow-y: auto; }
.casca-marca { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--ink); text-decoration: none; }
.casca-marca i { width: 30px; height: 30px; border-radius: 10px; background: var(--ball); display: grid; place-items: center; flex: none; }
.casca-marca i::after { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--on-ball); }
.casca-marca b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.casca-marca small { display: block; font-size: 12px; color: var(--ink-2); }
.casca-torneio { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r3); color: var(--ink); text-decoration: none; }
.casca-torneio:hover { border-color: var(--line-2); }
.casca-torneio small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.casca-torneio b { display: block; font-size: 14px; line-height: 1.3; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.casca-nav { display: grid; gap: 2px; }
.casca-h { margin: 14px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.casca-item { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px 0 12px; border-radius: var(--r2); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; letter-spacing: -0.01em; background: none; border: 0; cursor: pointer; width: 100%; text-align: left; font-family: inherit; }
.casca-item svg { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.casca-item span.rot { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.casca-item:hover { background: var(--hover); }
.casca-item[aria-current='page'] { background: var(--ball); color: var(--on-ball); font-weight: 600; }
.casca-item[aria-current='page'] svg { color: var(--on-ball); }
.casca-item .chip { font-size: 11px; padding: 1px 8px; }
.casca-sub { display: grid; gap: 2px; margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--line); }
.casca-sub .casca-item { height: 34px; font-size: 13px; padding-left: 10px; }
.casca-sub .casca-item[aria-current='page'] { background: var(--ball-2); color: var(--ball-ink); }
.casca-sub .n { color: var(--ink-2); font-size: 12px; }
.casca-add { color: var(--sea); }
.casca-add svg { color: var(--sea); }
.casca-pe { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.casca-principal { position: relative; min-width: 0; background: var(--bg); }
.casca-conteudo { position: relative; padding: 28px 32px 48px; max-width: 1280px; margin: 0 auto; animation: entrar 220ms var(--ease) backwards; }
@keyframes entrar { from { opacity: 0; } }
@media (min-width: 768px) {
  .casca-principal { margin: 10px 10px 10px 0; border: 1px solid var(--line); border-radius: var(--r4); min-height: calc(100dvh - 20px); overflow: clip; }
  .casca.sem-lateral .casca-principal { margin: 10px; }
}
/* celular: sem lateral; barra de abas flutuante e o menu vira gaveta */
.casca-abas { display: none; }
.casca-veu { display: none; }
@media (max-width: 899px) {
  .casca { grid-template-columns: 1fr; }
  .casca-lateral { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 50; background: var(--surface); box-shadow: var(--s3); transform: translateX(-105%); transition: transform 240ms var(--ease); }
  .casca.menu-aberto .casca-lateral { transform: none; }
  .casca.menu-aberto .casca-veu { display: block; position: fixed; inset: 0; z-index: 45; background: rgb(16 18 24 / 28%); }
  .casca-principal { margin: 0; border: 0; border-radius: 0; }
  .casca-conteudo { padding: 18px 16px 110px; }
  .casca-abas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 8px; right: 8px; bottom: calc(6px + env(safe-area-inset-bottom)); z-index: 30; height: 60px; padding: 4px; border-radius: var(--r4); background: var(--surface); box-shadow: var(--s2); }
  .casca-aba { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--ink-2); font: 500 11px/14px var(--text); text-decoration: none; border-radius: var(--r2); cursor: pointer; }
  .casca-aba i { display: grid; place-items: center; width: 48px; height: 28px; border-radius: 999px; }
  .casca-aba svg { width: 20px; height: 20px; }
  .casca-aba[aria-current='page'] { color: var(--ink); font-weight: 600; }
  .casca-aba[aria-current='page'] i { background: var(--ball); color: var(--on-ball); }
}
@media (prefers-reduced-motion: reduce) { .casca-conteudo { animation: none; } .casca-lateral { transition: none; } }

/* cabeçalho de página dentro da folha */
.pagina-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagina-topo h1 { font-size: 28px; }
.pagina-topo .facts { margin-top: 6px; font-size: 14px; }
.cat-title { font-size: 22px; }
/* números que mudam ou se alinham: algarismos tabulares */
.team .pts, .kpi b, .table td, .table th, .n, .seg .n, .progress + p, .stepper output, .chip, .casca-sub .n, .cta-v, .pix-v { font-variant-numeric: tabular-nums; }
/* escolha marcada (formato, categoria, nível): a mesma cor de ação */
.choice { border-radius: var(--r3); }
.choice:has(input:checked) { border-color: var(--ball-line); background: var(--ball-2); box-shadow: inset 0 0 0 1px var(--ball-line); }
.choice:has(input:checked)::before { border-color: var(--solid); }
.pick-r input:checked + span, .picks button[aria-pressed='true'] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.picks button, .pick-r span { font-weight: 500; font-size: 14px; }
.drop-in .plus { background: var(--ball-2); color: var(--ball-ink); }
.casca-conteudo .slot-title:first-child { margin-top: 0; }

/* ajustes que dependem do tema */
mark { color: var(--on-ball); }
.choice::before { background: var(--surface); }
dialog { color: var(--ink); background: var(--surface); }
:root[data-tema='escuro'] .casca-marca i, :root[data-tema='escuro'] .brand i { box-shadow: none; }
:root[data-tema='escuro'] img { opacity: .95; }
:root[data-tema='escuro'] .toast { background: var(--surface-2); color: var(--ink); box-shadow: var(--s2); }
:root[data-tema='escuro'] .pix-key code { background: var(--surface); }
:root[data-tema='escuro'] dialog::backdrop { background: rgb(0 0 0 / 50%); }

/* troca de tema: três opções em pílula (lateral do painel) e botão no topo das páginas públicas */
.tema { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 3px; margin: 6px 4px 2px; border-radius: 999px; background: var(--surface-2); }
.tema button { display: grid; place-items: center; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
.tema button svg { width: 16px; height: 16px; }
.tema button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: var(--s1); }
.tema-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); cursor: pointer; }
.tema-btn:hover { background: var(--hover); color: var(--ink); }
.tema-btn svg { width: 18px; height: 18px; }

/* Pix automático */
.pay-card { max-width: 640px; text-align: center; padding: 28px 20px; }
.pay-qr { display: block; margin: 18px auto 0; width: 220px; height: 220px; border-radius: var(--r2); background: #fff; padding: 10px; border: 1px solid var(--line); image-rendering: pixelated; }
.pay-card .pix-key { text-align: left; }
.pay-card .pix-key code { font-size: 12px; max-height: 80px; overflow: auto; }
.pay-wait { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--warn); }

/* pagamento: mostra os campos do modo escolhido */
.pay-box:not(:has([name=pay_auto]:checked)) .pay-auto, .pay-box:not(:has([name=pay_manual]:checked)) .pay-manual { display: none; }

/* =====================================================================
   Telas largas: cada tela usa a largura (nada de coluna de celular esticada)
   ===================================================================== */
/* cartão de jogo: quando cabe, as duas equipes ficam frente a frente numa linha */
.game { container-type: inline-size; }
.g-row { position: relative; }
@container (min-width: 400px) {
  .g-row { display: grid; grid-template-columns: 1fr 1fr; }
  .g-row .team + .team { border-top: 0; border-left: 1px solid var(--line); }
  .g-row .team.sa .who { align-items: flex-end; text-align: right; }
  .g-row .team.sb { grid-template-columns: 56px 1fr; }
  .g-row .team.sb .pts { order: -1; }
  .g-row .team.sb::before { display: none; }
  .g-row::after { content: '×'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--ink-2); font: 700 13px/1 var(--text); box-shadow: var(--s1); }
  .g-row .team.open .who, .g-row .team.tbd .who { min-height: 52px; }
}

/* página do torneio: conteúdo + coluna lateral (inscrição, busca, regulamento) */
.pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.pub-bar .tabs { margin: 0; }
.pub-side .cta-card { max-width: none; }
.pub-side .finder { max-width: none; }
.pub-side .about { margin-top: 14px; }
@media (min-width: 1100px) {
  .pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  .pub-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .pub-side { grid-column: 2; grid-row: 1; position: sticky; top: 80px; display: grid; gap: 14px; }
  .pub-side .cta-card { flex-direction: column; align-items: stretch; margin-top: 0; }
  .pub-side .cta-card .btn { width: 100%; }
  .pub-side .finder { margin-top: 0; order: -1; }
  .pub-side .head-links { margin-top: 0; }
}

/* inscrição: formulário + resumo fixo ao lado */
.reg-side .sum { display: grid; gap: 10px; margin: 10px 0 0; }
.reg-side .sum div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.reg-side .sum dt { color: var(--ink-2); font-size: 14px; }
.reg-side .sum dd { margin: 0; text-align: right; font-weight: 600; }
.reg-side .sum dd small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.how { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 10px; }
.how li { counter-increment: passo; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.how li::before { content: counter(passo); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ball-2); color: var(--ball-ink); font-weight: 700; font-size: 13px; }
.reg-side { margin-top: 14px; }
@media (min-width: 1000px) {
  .reg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .reg { max-width: none; }
  .reg-side { margin-top: 0; position: sticky; top: 80px; }
  .done-card, .pay-card { margin: 0 auto; }
}

/* presença: escolher o nome à esquerda, listas à direita */
.pres-layout { display: grid; gap: 22px; margin-top: 18px; }
@media (min-width: 1000px) {
  .pres-layout { grid-template-columns: 400px minmax(0, 1fr); gap: 28px; align-items: start; }
  .pres-layout #me { position: sticky; top: 80px; }
}

/* painel: progresso do próximo passo com largura útil */
.next .progress { width: min(460px, 100%); }
/* listas de jogos: as colunas se dividem entre os jogos que existem (2 jogos = 2 colunas largas, em linha) */
.grid:has(> div > .game) { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.next > div:first-child { flex: 1 1 320px; min-width: 0; }
@container (min-width: 400px) { .g-row .team.open.sb { grid-template-columns: 1fr; } }
.seg a.seg-a { display: inline-flex; align-items: center; }

.draft-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- checkbox no formato de escolha (várias formas de Pix) ---------- */
.choice:has(input[type=checkbox])::before { border-radius: 5px; }
.choice:has(input[type=checkbox]:checked)::before { border: 0; background: var(--sea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- lotes da inscrição ---------- */
.lot-row { position: relative; align-items: end; padding-right: 36px; margin-top: 8px; }
.lot-row .lot-del { position: absolute; right: 0; bottom: 6px; }

/* ---------- logo, patrocínio e equipe ---------- */
.head-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tlogo { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-md, 12px); background: var(--surface); border: 1px solid var(--line); flex: none; }
@media (min-width: 720px) { .tlogo { width: 84px; height: 84px; } }
.credits { margin-top: 18px; display: grid; gap: 8px; }
.credits-people { display: grid; gap: 6px; margin: 0; }
.credits-people div { display: flex; gap: 8px; flex-wrap: wrap; }
.credits-people dt { font-weight: 700; color: var(--ink-3); font-size: 13px; min-width: 96px; }
.credits-people dd { margin: 0; color: var(--ink); }
.credits .label { margin-top: 6px; }
.sponsors { display: flex; flex-wrap: wrap; gap: 10px; }
.sponsors figure { margin: 0; display: grid; justify-items: center; gap: 4px; width: 96px; }
.sponsors img { width: 96px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-sizing: border-box; }
.sponsors figcaption { font-size: 12px; color: var(--ink-2); text-align: center; overflow-wrap: anywhere; }
.sponsors figure:not(:has(img)) figcaption { width: 96px; height: 64px; display: grid; place-items: center; padding: 6px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--ink); }
.supporters { margin: 0; color: var(--ink-2); }
.brand-logo { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.img-slot { width: 84px; height: 84px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; flex: none; text-align: center; }
.img-slot img { width: 100%; height: 100%; object-fit: contain; }
.img-slot.sm { width: 56px; height: 40px; border-radius: 8px; }
.sponsor-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sponsor-row input { flex: 1; min-width: 0; }

/* ---------- acessos por torneio e rodapé público ---------- */
.access-row { padding: 12px 0; border-top: 1px solid var(--line); }
.access-row:first-child { border-top: 0; padding-top: 4px; }
.access-row .pix-key code { font-size: 13px; overflow-wrap: anywhere; }
.pub-foot { display: flex; gap: 10px; justify-content: center; padding: 28px 16px 40px; color: var(--ink-3); font-size: 14px; }
.gmode { margin-bottom: 14px; }

/* lista de torneios: excluir no cartão */
.tcard-wrap { position: relative; display: flex; }
.tcard-wrap > .tcard2 { flex: 1; padding-bottom: 56px; }
.tcard-del { position: absolute; right: 16px; bottom: 16px; }
/* opções de grupos */
.gopts { display: grid; gap: 10px; margin-top: 12px; }
.gopt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gopt .hint { margin: 0; }

/* ---------- marca torneiosports (2026-11-15) ----------
   Cores: estádio #0B1F17 (fundos escuros, texto), giz #F2F4EC (fundo claro), gramado #1DA462 (apoio,
   sucesso, barra em fundo claro), limão #D7FF3F (só destaque). Limão nunca é texto sobre fundo claro. */
:root {
  --bg: #f2f4ec;
  --surface: #ffffff;
  --surface-2: #e9ede3;
  --ink: #0b1f17;
  --ink-2: #5c6b62;
  --ink-3: #7c8a81;
  --line: #e1e6dc;
  --line-2: #c5cebf;
  --sea: #12804a;
  --sea-2: #e2f3e9;
  --ball: #d7ff3f;
  --ball-hover: #ccf52c;
  --on-ball: #0b1f17;
  --ball-2: #f1fbcd;
  --ball-ink: #3d5200;
  --ball-line: #b8dd2b;
  --bad: #c2372b;
  --bad-2: #fdecea;
  --bad-line: #f3c6c1;
  --ok: #12804a;
  --ok-2: #e2f3e9;
  --board: #0b1f17;
  --solid: #0b1f17;
  --solid-hover: #16302a;
  --solid-line: #3c5a4c;
  --on-solid: #f2f4ec;
  --on-solid-2: #c9d4cc;
  --on-solid-3: #93a59a;
  --hover: rgb(11 31 23 / 5%);
  --dot: rgb(11 31 23 / 13%);
  --top-bg: rgb(242 244 236 / 85%);
  --barra: #1da462;        /* elemento da marca: limão no escuro, gramado no claro */
  --r4: 20px;
  --s2: 0 0 0 1px var(--line), 0 8px 24px rgb(11 31 23 / 8%);
  --s3: 0 0 0 1px var(--line), 0 24px 64px rgb(11 31 23 / 16%);
}
:root[data-tema='escuro'] {
  --bg: #0b1f17;
  --surface: #112821;
  --surface-2: #16302a;
  --ink: #f2f4ec;
  --ink-2: #c9d4cc;
  --ink-3: #8ea398;
  --line: #234238;
  --line-2: #3c5a4c;
  --sea: #4fd08f;
  --sea-2: #113a29;
  --ball: #d7ff3f;
  --ball-hover: #e2ff6e;
  --on-ball: #0b1f17;
  --ball-2: #24320c;
  --ball-ink: #d7ff3f;
  --ball-line: #56671b;
  --bad: #ff6b5e;
  --bad-2: #3a1a17;
  --bad-line: #5c2b26;
  --ok: #4fd08f;
  --ok-2: #113a29;
  --board: #06140e;
  --solid: #16302a;
  --solid-hover: #1d3b33;
  --solid-line: #3c5a4c;
  --on-solid: #f2f4ec;
  --on-solid-2: #c9d4cc;
  --on-solid-3: #93a59a;
  --hover: rgb(242 244 236 / 7%);
  --dot: rgb(242 244 236 / 8%);
  --top-bg: rgb(11 31 23 / 85%);
  --barra: #d7ff3f;
}
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
.btn { font-weight: 800; }
/* dados: horários, rótulos, etapas */
.label, .step-of, .game .when, .kpi small, .chip.mono { font-family: var(--mono); }
.label, .step-of { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.game .when { font-size: 12.5px; }
.game .when b { font-weight: 500; }
/* vencedor: barra da marca no lugar da faixa reta */
.team .who { position: relative; }
.team.win .who { padding-left: 28px; }
.team.win .who::after { content: ''; position: absolute; left: 12px; top: 50%; width: 4px; height: 20px; margin-top: -10px; background: var(--barra); transform: skewX(-18deg); pointer-events: none; }
.team.win .pts { color: var(--ball); }
/* jogo em linha: no lado A (texto à direita) a barra fica do lado do placar */
@container (min-width: 400px) {
  .g-row .team.sa.win .who { padding-left: 14px; padding-right: 28px; }
  .g-row .team.sa.win .who::after { left: auto; right: 12px; }
}

/* logo (SVG inline, cor herdada; a barra usa --ts-barra) */
.ts-logo { display: block; height: 22px; width: auto; color: var(--ink); --ts-barra: var(--barra); }
.brand { gap: 0; }
.brand i, .casca-marca i { display: none; }
.casca-marca { flex-direction: column; align-items: flex-start; gap: 6px; padding: 6px 8px; }
.casca-marca .ts-logo { height: 24px; }
.casca-marca small { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
/* barra solta: separa placar (3 / 1) ou data · hora · local */
.ts-barra { display: inline-block; width: .12em; height: .8em; background: var(--barra); transform: skewX(-18deg); vertical-align: -.08em; margin: 0 .25em; }
.pub-foot .marca-pe { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.pub-foot .marca-pe .ts-logo { height: 16px; color: var(--ink-2); }
.pub-foot { flex-wrap: wrap; align-items: center; }
.pub-foot .marca-pe { text-decoration: none; }

/* ---------- site da marca (/) ---------- */
.site-nav { display: flex; gap: 18px; margin-right: 8px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.site-nav a:hover { color: var(--sea); }
.site .label { display: inline-flex; align-items: center; color: var(--ink-2); margin: 0 0 12px; }
.site-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.site-hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: .98; letter-spacing: -0.04em; font-weight: 800; }
.site-lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 20px 0 28px; max-width: 34ch; }
.site-cta { gap: 10px; flex-wrap: wrap; }
.site-cta .btn { min-height: 48px; padding: 0 22px; font-size: 16px; }
.site-board { background: var(--board); color: var(--on-solid); border-radius: var(--r4); padding: 6px; box-shadow: var(--s3); transform: rotate(-2deg); }
.sb-when, .sb-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-solid-3); }
.sb-foot { justify-content: center; gap: 4px; --barra: var(--ball); }
.sb-live { display: inline-flex; align-items: center; gap: 6px; background: var(--ball); color: var(--on-ball); padding: 5px 10px; border-radius: 999px; }
.sb-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sb-row { display: grid; grid-template-columns: 1fr 72px; min-height: 76px; border-top: 1px solid var(--solid-line); }
.sb-who { display: flex; flex-direction: column; justify-content: center; padding: 0 18px 0 30px; position: relative; font-size: 16px; color: var(--on-solid-2); }
.sb-who b { font-weight: 600; }
.sb-row.win .sb-who { color: var(--on-solid); }
.sb-row.win .sb-who b { font-weight: 800; }
.sb-row.win .sb-who::before { content: ''; position: absolute; left: 12px; top: 50%; width: 5px; height: 28px; margin-top: -14px; background: var(--ball); transform: skewX(-18deg); }
.sb-pts { display: grid; place-items: center; font: 800 40px/1 var(--text); font-variant-numeric: tabular-nums; color: var(--on-solid-3); }
.sb-row.win .sb-pts { color: var(--ball); }
.site-sec { padding-top: 40px; padding-bottom: 40px; }
.site-sec h2, .site-final h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; max-width: 22ch; }
.site-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.site-feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r4); padding: 24px; }
.site-feat h3 { font-size: 18px; margin: 16px 0 6px; }
.site-feat p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.site-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--solid); color: var(--ball); }
.site-ico svg { width: 22px; height: 22px; }
.site-steps { list-style: none; counter-reset: passo; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 28px 0 0; }
.site-steps li { counter-increment: passo; border-top: 2px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.site-steps li::before { content: '0' counter(passo); font: 500 13px/1 var(--mono); color: var(--ink-2); letter-spacing: .08em; }
.site-steps b { font-size: 20px; font-weight: 800; }
.site-steps span { color: var(--ink-2); line-height: 1.55; }
.site-atleta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r4); padding: 32px; }
.site-atleta p:not(.label) { color: var(--ink-2); max-width: 46ch; margin: 10px 0 0; line-height: 1.55; }
.site-final { background: var(--board); color: var(--on-solid); margin-top: 40px; padding: 72px 0; --barra: var(--ball); }
.site-final h2 { color: var(--on-solid); }
.site-final p { color: var(--on-solid-2); margin: 10px 0 24px; font-size: 18px; }
.btn.line.on-dark { color: var(--on-solid); border-color: var(--solid-line); background: transparent; }
.btn.line.on-dark:hover { border-color: var(--on-solid-2); }
.site-foot { gap: 18px; }
@media (max-width: 860px) {
  .site-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 32px; }
  .site-board { transform: none; }
  .site-feats, .site-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .site-nav { gap: 12px; } .site-nav a { font-size: 14px; } .site-atleta { padding: 22px; } }

/* ---------- marketplace (/torneios) ---------- */
.mk-busca { margin-top: 18px; max-width: 420px; }
.mk-top { display: flex; gap: 14px; align-items: center; }
.mk-logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: var(--surface-2); flex: none; }
.mk-n { margin-top: 4px; }

/* site v2 (referência de estrutura: página de evento, seletor de modalidade, pagamento, vitrine) */
.site-nav { align-items: center; }
.site-nav-cta { color: var(--on-ball) !important; }
.site-nota { margin-top: 14px; }
.site-pick { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--board); color: var(--on-solid); border-radius: var(--r4); padding: 32px; --barra: var(--ball); }
.site-pick h2 { color: var(--on-solid); }
.site-pick .label { color: var(--on-solid-3); }
.site-pick p:not(.label) { color: var(--on-solid-2); margin: 8px 0 0; }
.site-pick-row { display: flex; gap: 10px; flex: 1; max-width: 460px; min-width: 260px; }
.site-pick-row select { flex: 1; min-height: 48px; background: var(--surface); color: var(--ink); }
.site-pick-row .btn { min-height: 48px; }
.site-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.site-split.rev > :first-child { order: 2; }
.site-split > div > p:not(.label) { color: var(--ink-2); line-height: 1.6; margin: 14px 0 0; max-width: 52ch; }
.site-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-list li { display: flex; gap: 10px; align-items: baseline; }
.site-list li::before { content: ''; flex: none; width: 4px; height: 14px; background: var(--barra); transform: skewX(-18deg); }
.site-split-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r4); padding: 24px; box-shadow: var(--s2); display: grid; gap: 16px; }
.ssc-top { display: flex; gap: 14px; align-items: center; }
.ssc-top b { display: block; font-size: 20px; font-weight: 800; }
.ssc-top small { color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.ssc-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--board); position: relative; flex: none; }
.ssc-logo::after { content: ''; position: absolute; left: 25px; top: 14px; width: 6px; height: 28px; background: var(--ball); transform: skewX(-18deg); }
.ssc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ssc-chips span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.ssc-btn { justify-self: start; pointer-events: none; }
.ssc-pix { display: grid; gap: 6px; }
.ssc-pix small { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.ssc-pix b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ssc-ok { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--ok-2); color: var(--ok); font-weight: 700; font-size: 14px; }
.site-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.site-chips .chip { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.site-chips .chip:hover { border-color: var(--ink); }
#vitrine-box .between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
@media (max-width: 860px) { .site-split { grid-template-columns: 1fr; gap: 28px; } .site-split.rev > :first-child { order: 0; } .site-pick { padding: 24px; } }
@media (max-width: 560px) { .site-nav a:not(.site-nav-cta) { display: none; } }

/* entrar e criar conta */
.auth { max-width: 440px; margin: 40px auto; }
.auth h1 { font-size: 40px; }
.casca-org { margin: 2px 10px 8px; font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.ad-thumb { flex: none; display: grid; place-items: center; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.ad-thumb.topo { width: 146px; height: 36px; }
.ad-thumb.lateral { width: 40px; height: 80px; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ok-t { color: var(--ok); }

/* vitrine: filtros, destaques e publicidade (espaços fixos, rótulo sempre visível, nada por cima do conteúdo) */
.mk-filtros { display: grid; grid-template-columns: 2fr repeat(2, 1.2fr) repeat(2, 1fr); gap: 10px; align-items: end; margin-top: 20px; position: relative; }
.mk-f label { display: block; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 6px; }
.mk-f input, .mk-f select { width: 100%; min-height: 44px; }
.mk-limpar { position: absolute; right: 0; top: -22px; }
.mk-esporte { margin: 0 0 2px; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.mk-esporte .status { display: inline-flex; font: inherit; }
.mk-card { position: relative; }
.mk-destaque { border-color: var(--ball-line); box-shadow: inset 0 0 0 1px var(--ball-line); }
.mk-selo { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; background: var(--ball); color: var(--on-ball); font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.mk-ad { display: block; position: relative; text-decoration: none; }
.mk-ad img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--surface-2); }
.mk-ad-rot { display: block; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 6px; }
.mk-ad-top { margin-top: 16px; }
.mk-ad-top .mk-ad { max-width: 970px; margin: 0 auto; }
.mk-ad-top img { aspect-ratio: 970 / 90; object-fit: cover; }
.mk-layout { display: block; }
.mk-rail { display: none; }
@media (min-width: 1660px) {
  .mk-layout { display: grid; grid-template-columns: 1fr minmax(0, 1240px) 1fr; gap: 24px; }
  .mk-main { grid-column: 2; width: 100%; }
  .mk-rail:not([hidden]) { display: block; padding-top: 40px; }
  .mk-rail .mk-ad { position: sticky; top: 90px; width: 160px; }
  .mk-rail img { aspect-ratio: 160 / 600; object-fit: cover; }
  #rail-l { justify-self: end; grid-column: 1; grid-row: 1; }
  #rail-r { justify-self: start; grid-column: 3; grid-row: 1; }
}
@media (max-width: 900px) { .mk-filtros { grid-template-columns: 1fr 1fr; } .mk-f-q { grid-column: 1 / -1; } }
