/* Direção: minimalista, monocromática, os escudos são a única cor forte.
   Um destaque (cobalto) para interação e Libertadores; trilhos finos para as zonas. */
:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --surface-2: #F1F1EE;
  --surface-3: #E9E9E5;
  --line: #E7E7E3;
  --line-strong: #D6D6D1;
  --ink: #0F0F10;
  --ink-2: #4E4E53;
  --ink-3: #8B8B91;
  --accent: #2E5BFF;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(46, 91, 255, .09);
  --z-lib: #2E5BFF;
  --z-pre: #8EA6FF;
  --z-sula: #12A594;
  --z-rel: #E5484D;
  --up: #12A594;
  --down: #E5484D;
  --gold: #E2A400;
  --s1: #2E5BFF;
  --s2: #EB6834;
  --s3: #12A594;
  --draw: #D6D6D1;
  --grid: #EEEEEA;
  --axis: #D6D6D1;
  --shadow-1: 0 1px 2px rgba(15, 15, 16, .04), 0 2px 8px rgba(15, 15, 16, .04);
  --shadow-2: 0 10px 40px rgba(15, 15, 16, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0C; --surface: #141416; --surface-2: #1B1B1E; --surface-3: #232327; --line: #232327; --line-strong: #313137;
    --ink: #F2F2F3; --ink-2: #ADADB4; --ink-3: #77777E; --accent: #5B7BFF; --accent-ink: #FFFFFF; --accent-soft: rgba(91, 123, 255, .14);
    --z-lib: #5B7BFF; --z-pre: #A9B9FF; --z-sula: #1EB3A1; --z-rel: #FF5F64; --up: #1EB3A1; --down: #FF6A6F; --gold: #F2B92E;
    --s1: #5B7BFF; --s2: #E0703A; --s3: #1E9E8E; --draw: #3A3A40; --grid: #1E1E22; --axis: #313137;
    --shadow-1: none; --shadow-2: 0 10px 40px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0C; --surface: #141416; --surface-2: #1B1B1E; --surface-3: #232327; --line: #232327; --line-strong: #313137;
  --ink: #F2F2F3; --ink-2: #ADADB4; --ink-3: #77777E; --accent: #5B7BFF; --accent-ink: #FFFFFF; --accent-soft: rgba(91, 123, 255, .14);
  --z-lib: #5B7BFF; --z-pre: #A9B9FF; --z-sula: #1EB3A1; --z-rel: #FF5F64; --up: #1EB3A1; --down: #FF6A6F; --gold: #F2B92E;
  --s1: #5B7BFF; --s2: #E0703A; --s3: #1E9E8E; --draw: #3A3A40; --grid: #1E1E22; --axis: #313137;
  --shadow-1: none; --shadow-2: 0 10px 40px rgba(0, 0, 0, .5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
.num, td, th, output { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- barra superior ---------- */
.appbar {
  position: sticky; top: 0; z-index: 40; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.appbar-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; }
.brand-text { display: flex; gap: 6px; font-size: 16px; letter-spacing: -.02em; }
.brand-text b { font-weight: 700; }
.brand-text span { color: var(--ink-3); font-weight: 500; }
@media (max-width: 420px) { .brand-text span { display: none; } }
.nav { display: flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 999px; }
.nav-item {
  display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; color: var(--ink-2);
  text-decoration: none; font-weight: 550; font-size: 14px; transition: background .2s, color .2s;
}
.nav-item svg { width: 17px; height: 17px; }
.nav-item:hover { color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
}

/* ---------- cabeçalho das telas ---------- */
main { padding-block: 36px 72px; }
.view-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .01em; }
h1 { margin: 0; font-size: clamp(30px, 5.2vw, 48px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; text-wrap: balance; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; font-weight: 650; }
.lede { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; max-width: 58ch; }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 550; font-size: 14px;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px 12px; }
.card-head p { margin: 4px 0 0; max-width: 70ch; }

/* ---------- layout jogos + tabela ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 20px; align-items: start; }
.layout.single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.col { min-width: 0; }
.sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); }
.switch-mobile { display: none; }

/* paginação por rodada */
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.pager .icon-btn { flex: none; }
.pager .icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.pg-title { flex: 1; text-align: center; }
.pg-title b { display: block; font-size: 20px; letter-spacing: -.03em; font-weight: 700; }
.pg-title span { font-size: 13px; color: var(--ink-3); }
.pills { display: flex; gap: 6px; padding: 0 14px 14px; overflow-x: auto; scrollbar-width: none; }
.pills > :first-child { margin-left: auto; }
.pills > :last-child { margin-right: auto; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  position: relative; flex: none; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.pill:hover { border-color: var(--line-strong); color: var(--ink); }
.pill[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill .dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--surface); background: transparent; }
.pill .dot.part { background: var(--gold); }
.pill .dot.full { background: var(--up); }

/* jogo: um time por linha, como um placar */
.matches { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.match { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.match:last-child { border-bottom: 0; }
.mmeta { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.mmeta b { display: block; color: var(--ink-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.mmeta .flag { display: inline-block; margin-top: 2px; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; font-size: 11px; }
.mteams { display: grid; gap: 6px; }
.mline { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.crest { width: 30px; height: 30px; object-fit: contain; }
.crest.sm { width: 24px; height: 24px; }
.crest.lg { width: 56px; height: 56px; }
.crest.xl { width: 96px; height: 96px; }
.mname { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.mline.lose .mname { color: var(--ink-3); }
.mline.win .mname { font-weight: 700; }
.goal {
  width: 46px; height: 40px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--surface-2);
  text-align: center; font-size: 19px; font-weight: 650; letter-spacing: -.02em; padding: 0; transition: background .15s, border-color .15s, box-shadow .15s;
}
.goal::placeholder { color: var(--ink-3); opacity: .6; }
.goal:hover { border-color: var(--line-strong); }
.goal:focus { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.goal.filled { background: var(--surface); border-color: var(--line-strong); }
.next-round { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }

/* ---------- classificação ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 8px; text-align: right; white-space: nowrap; }
th { font-size: 12px; font-weight: 550; color: var(--ink-3); border-bottom: 1px solid var(--line); }
td { border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.standings th:first-child, .standings td:first-child { padding-left: 20px; }
.standings th:last-child, .standings td:last-child { padding-right: 20px; }
.c-pos { width: 30px; text-align: left; position: relative; font-weight: 600; color: var(--ink-2); }
.c-pos::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--zc, transparent); }
.c-club { text-align: left; width: 100%; }
.club { display: flex; align-items: center; gap: 10px; min-width: 0; }
.club span { font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.c-pts { font-weight: 700; font-size: 15px; color: var(--ink); }
td.dim { color: var(--ink-2); }
.c-delta { width: 34px; font-size: 12px; font-weight: 600; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.same { color: var(--ink-3); }
tbody tr { transition: background .15s; }
.standings tbody tr:hover { background: var(--surface-2); }
tr.flip { transition: transform .5s cubic-bezier(.2, .8, .2, 1), background .15s; }
.zone-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 14px 20px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.zone-legend span { display: inline-flex; align-items: center; gap: 7px; }
.zone-legend i { width: 3px; height: 14px; border-radius: 2px; background: var(--zc); }

/* ---------- às cegas ---------- */
.blind-progress { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 20px; margin: 0 auto 20px; max-width: 760px; }
.bp-num b { font-size: 26px; letter-spacing: -.04em; font-weight: 700; }
.bp-num span { color: var(--ink-3); margin-left: 4px; }
.bp-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bp-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .35s cubic-bezier(.2, .8, .2, 1); }

/* ---------- chances ---------- */
.settings { padding: 6px 20px; margin-bottom: 20px; }
.set-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-label { display: grid; gap: 2px; max-width: 52ch; }
.set-label b { font-weight: 600; }
.slider { display: flex; align-items: center; gap: 10px; }
.slider input { width: min(220px, 46vw); accent-color: var(--accent); }
.slider output { min-width: 36px; text-align: right; font-weight: 650; }
.segmented { display: inline-flex; background: var(--surface-2); padding: 3px; border-radius: 999px; }
.segmented button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 550; font-size: 13.5px; color: var(--ink-2); }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.toggle { position: relative; display: inline-flex; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { width: 46px; height: 28px; border-radius: 99px; background: var(--surface-3); transition: background .2s; position: relative; }
.toggle .thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track .thumb { transform: translateX(18px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle input:disabled + .track { opacity: .4; }
.progress-line { height: 2px; margin: -10px 0 8px; overflow: hidden; border-radius: 2px; }
.progress-line i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s, opacity .4s; }
.busy { opacity: .5; transition: opacity .2s; }

.highlights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.hl { padding: 20px; }
.hl h2 { margin-bottom: 16px; }
.race { display: grid; gap: 16px; }
.race-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.race-row .nm { font-weight: 600; font-size: 16px; }
.race-row .sub { font-size: 13px; color: var(--ink-3); }
.race-row .big { font-size: 40px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.race-bar { display: flex; height: 8px; gap: 3px; margin-top: 4px; }
.race-bar i { display: block; border-radius: 99px; background: var(--ink); }
.race-bar i + i { background: var(--line-strong); }
.risk { display: grid; gap: 10px; }
.risk-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 120px 44px; gap: 10px; align-items: center; font-size: 14px; }
.risk-row .nm { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--z-rel); }
.meter.lib i { background: var(--z-lib); }
.hl-sub { margin: 26px 0 14px !important; padding-top: 20px; border-top: 1px solid var(--line); }
.risk-row b { text-align: right; font-weight: 650; }

.probs th:first-child, .probs td:first-child { padding-left: 20px; text-align: left; }
.probs th:last-child, .probs td:last-child { padding-right: 20px; }
.probs th .sw { display: inline-block; width: 3px; height: 11px; border-radius: 2px; background: var(--zc); margin-right: 5px; vertical-align: -1px; }
.probs tr.row { cursor: pointer; }
.probs tr.row:hover { background: var(--surface-2); }
.probs tr.row[aria-expanded="true"] td { border-bottom-color: transparent; }
td.pc { padding: 5px 4px; }
.cell { display: inline-block; min-width: 50px; padding: 5px 0; border-radius: 8px; text-align: center; font-weight: 600; font-size: 13.5px; background: color-mix(in srgb, var(--zc) var(--mix, 0%), transparent); }
.cell.on-dark { color: #fff; }
.cell.zero { color: var(--ink-3); font-weight: 400; background: none; }
.probs .short-name { display: none; }
.chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s; vertical-align: -3px; margin-left: 2px; }
tr.row[aria-expanded="true"] .chev { transform: rotate(180deg); }
tr.dist td { padding: 4px 20px 20px; text-align: left; white-space: normal; background: var(--surface-2); }
.dist-title { font-size: 13px; color: var(--ink-2); padding-top: 12px; }
.dist-bars { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; align-items: end; height: 96px; margin-top: 12px; }
.dist-bars i { display: block; background: var(--zc); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.dist-bars i:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: var(--bg); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; font-weight: 600;
}
.dist-x { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.hint { margin: 0; padding: 12px 20px 16px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }

.pmatch { display: grid; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pmatch:last-child { border-bottom: 0; }
.pm-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.pm-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pm-side.home { justify-content: flex-end; text-align: right; }
.pm-side span { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-mid { min-width: 64px; text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.pm-mid b { display: block; font-size: 20px; color: var(--ink); letter-spacing: -.03em; font-weight: 700; }
.pbar { display: flex; height: 6px; gap: 3px; }
.pbar i { display: block; height: 100%; border-radius: 99px; }
.pbar .h { background: var(--s1); }
.pbar .d { background: var(--draw); }
.pbar .a { background: var(--ink); }
.pnums { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }
.pnums b { color: var(--ink); font-weight: 650; }
.tag { display: inline-block; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; margin-left: 6px; vertical-align: 1px; }
.tag.lock { background: var(--surface-3); color: var(--ink-2); }

/* ---------- validação ---------- */
.findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.finding { padding: 20px; }
.finding .k { font-size: 13px; color: var(--ink-3); font-weight: 550; }
.finding .v { font-size: 30px; font-weight: 700; letter-spacing: -.04em; margin: 6px 0 8px; line-height: 1.1; }
.finding .v small { font-size: 15px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.finding p { margin: 0; font-size: 14px; color: var(--ink-2); }
.metrics th:first-child, .metrics td:first-child { text-align: left; padding-left: 20px; }
.metrics th:last-child, .metrics td:last-child { padding-right: 20px; }
.metrics td.best { font-weight: 700; }
.metrics thead tr:first-child th { border-bottom: 0; padding-bottom: 0; color: var(--ink-2); }
.metrics tr.sub td { color: var(--ink-2); }
.chart-card { margin-top: 20px; }
.chart { position: relative; padding: 0 20px 16px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; stroke: none; stroke-width: 1; }
.chart text { fill: var(--ink-3); font-family: var(--font); font-size: 11px; }
.chart .lbl { fill: var(--ink-2); font-size: 12px; font-weight: 550; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 2px; border-radius: 2px; }
.legend i.dot { width: 9px; height: 9px; border-radius: 50%; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; display: none; min-width: 150px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); font-size: 12.5px;
}
.tip .t { color: var(--ink-3); margin-bottom: 6px; font-weight: 550; }
.tip .r { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.tip .r b { font-weight: 650; }
.tip .r span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.tip .r span i { width: 12px; height: 2px; border-radius: 2px; }
.table-view { padding: 0 20px 18px; font-size: 13px; }
.table-view summary { cursor: pointer; color: var(--ink-2); font-weight: 550; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > * { min-width: 0; }
.fineprint { margin: 28px 0 0; color: var(--ink-3); font-size: 13px; max-width: 92ch; }

/* ---------- diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(10, 10, 12, .45); backdrop-filter: blur(4px); }
.sheet { width: min(940px, 100vw); margin: auto; }
.sheet-in { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-2); max-height: calc(100dvh - 32px); overflow: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 4px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 20px; }
.champion { display: flex; align-items: center; gap: 16px; margin: 12px 20px 8px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.champion .lbl { font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.champion .nm { font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.champion .st { font-size: 13px; color: var(--ink-3); }
.sheet[open] .sheet-in { animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

.reveal { width: 100vw; height: 100dvh; margin: 0; background: #08080A; color: #F2F2F3; overflow: auto; overscroll-behavior: contain; }
.reveal::backdrop { background: #08080A; }
.rv {
  position: relative; min-height: 100%; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(20px, env(safe-area-inset-left, 0px));
}
.rv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rv-kicker { font-size: 13px; color: #77777E; font-weight: 550; }
.rv-skip { border: 0; background: #1B1B1E; color: #ADADB4; height: 32px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.rv-skip:hover { color: #fff; }
.rv-stage { display: none; flex: 1; flex-direction: column; justify-content: center; padding: 28px 0; }
.rv-stage.on { display: flex; animation: stageIn .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes stageIn { from { opacity: 0; transform: translateY(14px); } }
.rv-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A9B9FF; }
.rv-eyebrow.danger { color: #FF6A6F; }
.rv-eyebrow.gold { color: #F2B92E; }
.rv-headline { margin: 0; font-size: clamp(36px, 9vw, 64px); line-height: 1; letter-spacing: -.045em; font-weight: 750; text-wrap: balance; }
.rv-lead { margin: 18px 0 0; font-size: 18px; color: #ADADB4; }
.rv-note { margin: 22px 0 0; font-size: 15px; color: #ADADB4; min-height: 1.5em; opacity: 0; transition: opacity .6s; }
.rv-note.show { opacity: 1; }
.rv-note b { color: #F2F2F3; }

/* rebaixados: cartas que viram */
.z4-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; perspective: 900px; }
.z4-card { aspect-ratio: 3 / 4; }
.z4-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .9, .3, 1); }
.z4-card.on .z4-inner { transform: rotateY(180deg); }
.z4-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; display: grid; place-items: center; text-align: center; padding: 14px 8px; }
.z4-front { background: #141416; border: 1px solid #26262A; }
.z4-front b { font-size: 40px; color: #3A3A40; font-weight: 700; }
.z4-front span, .z4-back .pos { position: absolute; top: 10px; left: 12px; font-size: 13px; font-weight: 700; color: #77777E; }
.z4-card.next .z4-front { border-color: #FF6A6F; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 106, 111, .12); } }
.z4-back { transform: rotateY(180deg); background: linear-gradient(180deg, #1B1416, #141416); border: 1px solid #4A2326; align-content: center; gap: 8px; overflow: hidden; }
.z4-back img { width: 64%; max-width: 92px; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 auto; transition: filter 1.4s .7s, transform 1.4s .7s cubic-bezier(.5, 0, .8, .4), opacity 1.4s .7s; }
.z4-card.on .z4-back img { filter: grayscale(1) brightness(.75); transform: translateY(10px) rotate(-6deg); }
.z4-back .nm { font-weight: 650; font-size: 15px; line-height: 1.15; }
.z4-back .pt { font-size: 12.5px; color: #FF8F93; font-weight: 600; }

/* título */
.vice { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding: 14px 16px; border-radius: 16px; background: #141416; border: 1px solid #26262A; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.vice.show { opacity: 1; transform: none; }
.vice img { width: 52px; height: 52px; object-fit: contain; }
.vice .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ADADB4; }
.vice .nm { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.vice .pt { font-size: 13px; color: #77777E; }
.champ-slot { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; margin-top: 26px; padding: 34px 16px 30px; border-radius: 22px; background: radial-gradient(120% 90% at 50% 0%, rgba(242, 185, 46, .16), transparent 60%), #111113; border: 1px solid #2A2418; }
.champ-slot .mystery { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; font-size: 56px; font-weight: 750; color: #3A3A40; background: #19191C; animation: pulse-gold 1.1s ease-in-out infinite; }
@keyframes pulse-gold { 50% { box-shadow: 0 0 0 10px rgba(242, 185, 46, .10); } }
.champ-slot img { width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 10px 40px rgba(242, 185, 46, .45)); animation: crown .9s cubic-bezier(.2, 1.4, .3, 1); }
@keyframes crown { from { transform: scale(.4) rotate(-8deg); opacity: 0; } }
.champ-slot .lbl { margin-top: 10px; color: #F2B92E; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.champ-slot .nm { font-size: clamp(30px, 7vw, 44px); font-weight: 750; letter-spacing: -.045em; line-height: 1.05; }
.champ-slot .st { color: #ADADB4; font-size: 14px; }
.champ-slot .margin { margin-top: 6px; display: inline-block; padding: 4px 12px; border-radius: 99px; background: rgba(242, 185, 46, .12); color: #F2B92E; font-size: 13px; font-weight: 600; }

/* resumo */
.sum-head { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: radial-gradient(120% 120% at 0% 0%, rgba(242, 185, 46, .14), transparent 60%), #141416; border: 1px solid #2A2418; }
.sum-head img { width: 64px; height: 64px; object-fit: contain; }
.sum-head .lbl { color: #F2B92E; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sum-head .nm { font-size: 26px; font-weight: 750; letter-spacing: -.04em; line-height: 1.1; }
.sum-head .st { color: #ADADB4; font-size: 13px; }
.sum-z4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 18px; font-size: 13px; color: #ADADB4; }
.sum-z4 .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 99px; background: #1F1416; border: 1px solid #4A2326; color: #F2F2F3; font-weight: 600; }
.sum-z4 .chip img { width: 20px; height: 20px; object-fit: contain; }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rv-row { display: grid; grid-template-columns: 26px 26px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px; position: relative; animation: stageIn .4s both; }
.rv-row::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--rz, transparent); }
.rv-row .p { color: #8B8B91; font-weight: 600; text-align: right; }
.rv-row .crest { width: 26px; height: 26px; }
.rv-row .n { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-row .z { font-size: 12px; color: #77777E; }
.rv-row .pt { font-weight: 700; min-width: 28px; text-align: right; }
.rv-row.first { background: rgba(242, 185, 46, .10); }
.rv-row.down { background: rgba(255, 95, 100, .06); }
.rv-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 8px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.rv-actions.show { opacity: 1; pointer-events: auto; }
.btn.light { background: #F2F2F3; color: #0B0B0C; border-color: #F2F2F3; }
.btn.light:hover { background: #fff; }
.btn.outline-light { background: transparent; color: #F2F2F3; border-color: #3A3A40; }
.btn.outline-light:hover { background: #1B1B1E; }
@media (max-width: 560px) {
  .z4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .z4-card { aspect-ratio: 4 / 4.2; }
  .rv-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* avisos temporários */
.toasts { position: fixed; z-index: 60; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; width: min(400px, calc(100vw - 40px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 14px 14px 16px;
  border-radius: 16px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); animation: toastIn .45s cubic-bezier(.2, .8, .2, 1);
}
.toast.out { animation: toastOut .3s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.toast .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 14%, transparent); }
.toast .ic svg { width: 18px; height: 18px; }
.toast b { display: block; font-weight: 650; margin-bottom: 2px; }
.toast p { margin: 0; font-size: 13.5px; line-height: 1.45; opacity: .82; }
.toast .crests { display: flex; gap: 4px; margin-top: 8px; }
.toast .crests img { width: 22px; height: 22px; object-fit: contain; }
.toast .x { border: 0; background: none; color: inherit; opacity: .6; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.toast .x:hover { opacity: 1; background: color-mix(in srgb, var(--bg) 14%, transparent); }
.toast .x svg { width: 16px; height: 16px; }
.toast .timer { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--bg) 18%, transparent); overflow: hidden; margin-top: 2px; }
.toast .timer i { display: block; height: 100%; background: var(--bg); opacity: .6; transform-origin: left; animation: timer linear forwards; }
.toast:hover .timer i { animation-play-state: paused; }
@keyframes timer { to { transform: scaleX(0); } }

/* chips de calendário nos jogos */
.cal { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 1px 7px 1px 5px; border-radius: 99px; font-size: 11px; font-weight: 600; white-space: nowrap; vertical-align: 1px;
  background: color-mix(in srgb, var(--gold) 16%, transparent); color: color-mix(in srgb, var(--gold) 70%, var(--ink)); }
.cal.hot { background: color-mix(in srgb, var(--z-rel) 14%, transparent); color: color-mix(in srgb, var(--z-rel) 80%, var(--ink)); }
.cal svg { width: 12px; height: 12px; }
.mname-wrap { display: flex; align-items: center; min-width: 0; }
.mname-wrap .mname { min-width: 0; }
.mmeta .tbd { display: inline-block; margin-top: 2px; font-size: 11px; color: var(--ink-3); }

/* fique de olho */
.watch { margin-bottom: 20px; }
.watch-list { list-style: none; margin: 0; padding: 0 20px 6px; }
.watch-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.watch-date { text-align: center; line-height: 1.1; }
.watch-date b { display: block; font-size: 20px; letter-spacing: -.03em; font-weight: 700; }
.watch-date span { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.watch-what b { font-weight: 600; }
.watch-what p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.watch-crests { display: flex; gap: 4px; }
.watch-crests img { width: 26px; height: 26px; object-fit: contain; }
.watch-foot { margin: 0; padding: 12px 20px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.watch-item.past { opacity: .5; }
@media (max-width: 760px) {
  .toasts { left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); width: auto; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px)); }
  .watch-item { grid-template-columns: 50px minmax(0, 1fr); }
  .watch-crests { grid-column: 2; }
}
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2147483647; }

.site-foot { border-top: 1px solid var(--line); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--ink-3); font-size: 13px; }
.site-foot p { margin: 0 0 6px; max-width: 100ch; }
.site-foot a { color: var(--ink-2); }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout.single { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .switch-mobile { display: flex; background: var(--surface-2); padding: 3px; border-radius: 999px; margin-bottom: 16px; }
  .switch-mobile button { flex: 1; border: 0; background: none; height: 36px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
  .switch-mobile button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
  .layout[data-show="games"] .col-table, .layout[data-show="table"] .col-games { display: none; }
  .highlights, .findings, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .appbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .appbar-in { height: 54px; }
  .nav {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; border-radius: 0; gap: 0; padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid var(--line);
  }
  .nav-item { flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; border-radius: 12px; }
  .nav-item svg { width: 22px; height: 22px; }
  .nav-item[aria-current="page"] { background: transparent; box-shadow: none; color: var(--accent); }
  main { padding-block: 24px calc(var(--nav-h) + 40px + env(safe-area-inset-bottom, 0px)); }
  .site-foot { padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px)); }
  .view-head { margin-bottom: 20px; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; justify-content: center; }
  .head-actions .btn.ghost { flex: 0 0 auto; }
  .match { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 16px 14px; }
  .mmeta { display: flex; gap: 6px; align-items: baseline; }
  .mmeta b { display: inline; font-size: 12px; }
  .mmeta b::after { content: "·"; margin-left: 6px; color: var(--ink-3); font-weight: 400; }
  .mmeta .flag { margin-top: 0; }
  .hide-sm { display: none; }
  th, td { padding: 9px 5px; }
  .standings th:first-child, .standings td:first-child, .probs th:first-child, .probs td:first-child { padding-left: 14px; }
  .standings th:last-child, .standings td:last-child, .probs th:last-child, .probs td:last-child { padding-right: 14px; }
  .cell { min-width: 38px; font-size: 12px; padding: 4px 0; }
  .probs .full-name, .probs .chev, .probs .c-proj { display: none; }
  .probs .short-name { display: inline; overflow: visible; text-overflow: clip; }
  .probs td:first-child { min-width: 82px; }
  .probs .club { gap: 8px; }
  td.pc { padding: 5px 2px; }
  .blind-progress { grid-template-columns: auto minmax(0, 1fr); }
  .blind-progress .btn { grid-column: 1 / -1; justify-content: center; }
  .risk-row { grid-template-columns: 24px minmax(0, 1fr) 70px 40px; }
  .race-row .big { font-size: 34px; }
  .sheet { width: 100vw; margin: auto 0 0; }
  .sheet-in { border-radius: 22px 22px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .chart { padding: 0 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.pm-cal { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-cal .cal { margin-left: 0; }

/* bolão das copas */
.pill-cup { display: inline-flex; align-items: center; gap: 5px; }
.pill-cup svg { width: 14px; height: 14px; }
.bolao { border-top: 1px solid var(--line); padding: 0 18px 18px; }
.bolao section { padding: 16px 0 4px; }
.bolao section + section { border-top: 1px solid var(--line); margin-top: 12px; }
.bolao h3 { margin: 0; font-size: 15px; font-weight: 650; }
.bolao h3 + p { margin: 2px 0 0; }
.tie { margin-top: 12px; }
.tie-lbl { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.tie-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.pick:hover { background: var(--surface-2); }
.pick.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); }
.pick:not(.on) .crest { opacity: .9; }
.tie-picks:has(.on) .pick:not(.on) { color: var(--ink-3); }
.tie-picks:has(.on) .pick:not(.on) .crest { filter: grayscale(1); opacity: .5; }
.pk-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-p { font-size: 12px; color: var(--ink-3); font-weight: 550; }
.crest.ext { display: inline-grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.tie-wait { grid-column: 1 / -1; margin: 0; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13px; color: var(--ink-3); }
.bolao-foot { margin: 16px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* vaga por copa na classificação */
.via { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px 1px 4px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 650; white-space: nowrap; }
.via svg { width: 11px; height: 11px; }
.zone-legend .lg-note { flex-basis: 100%; display: block; color: var(--ink-2); }
.final-cups { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 20px 12px; font-size: 13px; color: var(--ink-3); }
.final-cups b { color: var(--ink); font-weight: 650; }
.gband { padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.gband-lbl { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.gband-bars { display: grid; gap: 6px; max-width: 420px; }
.gb { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.gb-k { font-weight: 650; color: var(--ink-2); }
.gb b { text-align: right; font-weight: 650; }

/* revelação: Libertadores 2027 */
.lib-cups { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font-size: 13.5px; color: #ADADB4; }
.lib-cups b { color: #F2F2F3; font-weight: 650; }
.lib-group { margin-top: 20px; }
.lib-lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #77777E; margin-bottom: 8px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.lib-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #141416; border: 1px solid #26262A; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.lib-card.on { opacity: 1; transform: none; }
.lib-card.cup { border-color: #3A4A8C; background: linear-gradient(180deg, #161A2A, #141416); }
.lib-card .crest { width: 34px; height: 34px; }
.lib-card .nm { font-weight: 650; line-height: 1.15; }
.lib-card .why { font-size: 12px; color: #8B8B91; line-height: 1.3; }
.sum-lib { margin-bottom: 0; }
.sum-lib .chip { background: #141A2E; border-color: #2B3A73; }
.sum-lib .chip.pre { background: #161820; border-color: #2E3348; }
@media (prefers-reduced-motion: reduce) { .lib-card { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .pick { grid-template-columns: 24px minmax(0, 1fr); gap: 1px 10px; padding: 9px 10px; font-size: 13.5px; }
  .pk-n { line-height: 1.25; }
  .pick .crest { grid-row: span 2; }
  .pk-p { grid-column: 2; line-height: 1.2; }
}

/* rodapé: crédito */
.site-foot .credit { color: var(--ink-2); }
.link-btn { border: 0; padding: 0; background: none; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-btn:hover, .site-foot a:hover { color: var(--ink); }

/* modo streamer: coluna lateral reservada e quadro 16:9 da webcam num canto */
:root { --cam-w: 360px; --cam-gap: 16px; --cam-side: calc(var(--cam-w) + var(--cam-gap) * 2); }
:root[data-cam-size="s"] { --cam-w: 280px; }
:root[data-cam-size="l"] { --cam-w: 460px; }
.stream-btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
:root[data-stream$="r"] body { padding-right: var(--cam-side); }
:root[data-stream$="l"] body { padding-left: var(--cam-side); }
:root[data-stream$="r"] .reveal { width: calc(100vw - var(--cam-side)); margin-right: var(--cam-side); }
:root[data-stream$="l"] .reveal { width: calc(100vw - var(--cam-side)); margin-left: var(--cam-side); }
:root[data-stream$="r"] .sheet { margin-right: calc(var(--cam-side) + (100vw - var(--cam-side) - min(940px, 100vw - var(--cam-side))) / 2); }
:root[data-stream$="l"] .sheet { margin-left: calc(var(--cam-side) + (100vw - var(--cam-side) - min(940px, 100vw - var(--cam-side))) / 2); }
:root[data-stream$="r"] .toasts { right: calc(var(--cam-side) + 4px); }
.cam-slot {
  position: fixed; z-index: 45; width: var(--cam-w); aspect-ratio: 16 / 9; border-radius: 18px;
  border: 2px dashed var(--line-strong); background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  display: grid; place-items: center; color: var(--ink-3);
}
.cam-slot[hidden] { display: none; }
:root[data-stream^="t"] .cam-slot { top: var(--cam-gap); }
:root[data-stream^="b"] .cam-slot { bottom: var(--cam-gap); }
:root[data-stream$="r"] .cam-slot { right: var(--cam-gap); }
:root[data-stream$="l"] .cam-slot { left: var(--cam-gap); }
.cam-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.cam-label svg { width: 18px; height: 18px; }
.cam-ctrls { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; opacity: 0; transition: opacity .2s; }
.cam-slot:hover .cam-ctrls, .cam-slot:focus-within .cam-ctrls { opacity: 1; }
.cam-group { display: flex; gap: 2px; padding: 2px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-1); }
.cam-group button, .cam-off { border: 0; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: transparent; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.cam-group button:hover, .cam-off:hover { color: var(--ink); background: var(--surface-2); }
.cam-group button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.cam-off { background: var(--surface); box-shadow: var(--shadow-1); }
@media (max-width: 760px) {
  .stream-btn, #foot-stream, .cam-slot { display: none !important; }
  :root[data-stream] body { padding: 0; }
}

/* classificação dividida: 1º–10º e 11º–20º lado a lado, para caber inteira na tela */
#view-manual .layout { grid-template-columns: minmax(330px, .72fr) minmax(0, 1.28fr); }
.split-wrap { container-type: inline-size; }
.split-table { display: grid; grid-template-columns: minmax(0, 1fr); }
.split-table .second thead { display: none; }
@container (min-width: 560px) {
  .split-table { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-table .second { border-left: 1px solid var(--line); }
  .split-table .second thead { display: table-header-group; }
  .split-table .c-x, .split-table .c-v { display: none; }
  .split-table th, .split-table td { padding: 7px 5px; }
  .split-table .standings th:first-child, .split-table .standings td:first-child { padding-left: 14px; }
  .split-table .standings th:last-child, .split-table .standings td:last-child { padding-right: 12px; }
  .split-table .c-club { max-width: 0; width: 100%; }
  .split-table .club { min-width: 0; }
  .split-table .club > span:not(.via) { overflow: hidden; text-overflow: ellipsis; }
}
@container (min-width: 680px) { .split-table .c-v { display: table-cell; } }
@container (min-width: 860px) {
  .split-table .c-x { display: table-cell; }
  .split-table .c-x:nth-child(n+7):nth-child(-n+8) { display: none; }
}
/* telas baixas: cabeçalho do Manual mais enxuto para a tabela caber sem rolar */
@media (min-width: 981px) and (max-height: 820px) {
  main { padding-top: 20px; }
  #view-manual .view-head { margin-bottom: 16px; }
  #view-manual .lede { display: none; }
  #view-manual .kicker { margin-bottom: 4px; }
}
@media (max-width: 980px) {
  #view-manual .layout { grid-template-columns: minmax(0, 1fr); }
}

/* etiquetas de vaga por copa: só o troféu nas tabelas divididas (texto completo no title) */
.via { flex: none; }
@container (min-width: 560px) {
  .split-table .via { padding: 3px; margin-left: 4px; }
  .split-table .via-t { display: none; }
}
@container (min-width: 860px) {
  .split-table .via { padding: 1px 6px 1px 4px; margin-left: 6px; }
  .split-table .via-t { display: inline; }
}
/* tabela acompanha a rolagem: a coluna estica até o fim dos jogos para o cartão sticky ter por onde andar */
.layout > .col-table { align-self: stretch; }
/* aviso de copa no jogo: abaixo do nome, sem empurrar o nome para fora do card */
.mname-wrap { flex-wrap: wrap; row-gap: 2px; }
.mname-wrap .mname { flex: 1 1 100%; }
.mname-wrap .cal { margin-left: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 981px) { #view-manual .match { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; } }
