/* =====================================================================
   BOLÃO MANSUR 2026 — identidade visual
   Verde de gramado, papel marfim, dourado de troféu. Tipografia de placar.
   ===================================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
  --pitch-950: #082219;
  --pitch-900: #0b2e22;
  --pitch-800: #0f3d2e;
  --pitch-700: #155239;
  --pitch-600: #1d6b4b;
  --pitch-100: #e3efe8;
  --pitch-50:  #f0f6f2;
  --paper:     #f5f3ed;
  --paper-2:   #ebe8df;
  --card:      #ffffff;
  --ink:       #15201b;
  --ink-2:     #33413a;
  --muted:     #66736c;
  --line:      #dcd8cc;
  --line-2:    #ebe8df;
  --gold:      #b08a2e;
  --gold-soft: #f4ecd6;
  --silver:    #7d8a91;
  --silver-soft: #edf0f1;
  --bronze:    #9a6136;
  --bronze-soft: #f5e9df;
  --red:       #a3352a;
  --red-soft:  #f8e8e5;
  --amber:     #94630a;
  --amber-soft:#fbf1dc;
  --blue:      #24527a;
  --blue-soft: #e5eef6;
  --radius:    4px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; }
a { color: var(--pitch-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pitch-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.num, .tabular { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(30px, 5vw, 42px); text-transform: uppercase; }
h2 { font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
p { margin: 0 0 12px; }

/* ---------------------------------------------------------------- Topo */
.topbar {
  background-color: var(--pitch-900);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 56px, transparent 56px 112px);
  color: #fff; border-bottom: 3px solid var(--gold);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-emblem { width: 38px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 23px; letter-spacing: .08em; }
.brand-name b { color: var(--gold); font-weight: 700; }
.brand-tag { font-size: 12px; color: rgba(255,255,255,.62); letter-spacing: .03em; margin-top: 4px; }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.85); }
.userbox form { margin: 0; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--pitch-700); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .03em; }
.avatar--lg { width: 72px; height: 72px; font-size: 28px; }
.avatar--sm { width: 26px; height: 26px; font-size: 11px; }
.menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; padding: 8px 12px; cursor: pointer; }

.mainnav { background: var(--pitch-950); }
.mainnav ul { list-style: none; margin: 0 -11px; padding: 0; display: flex; flex-wrap: wrap; }
.mainnav a {
  display: block; padding: 12px 11px; color: rgba(255,255,255,.78); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.mainnav a:hover { color: #fff; }
.mainnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.mainnav .nav-admin { margin-left: auto; }
.mainnav .nav-admin a { color: var(--gold); }
.mainnav .nav-mobile-only { display: none; }

.subnav { background: var(--card); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; padding: 11px 12px; white-space: nowrap; text-decoration: none; color: var(--ink-2);
  font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
.subnav a[aria-current="page"] { color: var(--pitch-800); border-bottom-color: var(--pitch-700); }
.subnav-label { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--gold); padding: 11px 12px 11px 0; white-space: nowrap; }

/* ---------------------------------------------------------------- Página */
.page { flex: 1; padding-top: 28px; padding-bottom: 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.page-head .eyebrow { margin-bottom: 6px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--pitch-600); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; padding: 18px 0 28px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.footer strong { font-family: var(--font-display); letter-spacing: .06em; color: var(--ink-2); font-weight: 600; text-transform: uppercase; }

/* ---------------------------------------------------------------- Painéis */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.panel-head h2, .panel-head h3 { font-size: 18px; letter-spacing: .05em; }
.panel-body { padding: 18px; }
.panel-foot { padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 14px; }
.panel--flush .panel-body { padding: 0; }

/* ---------------------------------------------------------------- Mensagens */
.flash { border: 1px solid; border-left-width: 4px; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; font-weight: 600; }
.flash--success { background: var(--pitch-50); border-color: var(--pitch-600); color: var(--pitch-800); }
.flash--error { background: var(--red-soft); border-color: var(--red); color: #6e2119; }
.flash--warning { background: var(--amber-soft); border-color: var(--amber); color: #5f4106; }
.flash--info { background: var(--blue-soft); border-color: var(--blue); color: #183a57; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); background: var(--amber-soft); color: #5f4106; border: 1px solid #ead7ad; font-size: 15px; }
.notice strong { font-weight: 700; }
.notice--info { background: var(--blue-soft); color: #183a57; border-color: #c9dbea; }

/* ---------------------------------------------------------------- Selos */
.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; line-height: 1.2; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag--plain::before { display: none; }
.tag--open { background: var(--pitch-100); color: var(--pitch-700); }
.tag--closed, .tag--in_progress { background: var(--paper-2); color: var(--ink-2); }
.tag--partial { background: var(--amber-soft); color: var(--amber); }
.tag--complete { background: var(--ink); color: #fff; }
.tag--upcoming { background: var(--blue-soft); color: var(--blue); }
.tag--live { background: var(--red-soft); color: var(--red); }
.tag--postponed { background: var(--amber-soft); color: var(--amber); }
.tag--cancelled { background: var(--red-soft); color: var(--red); }
.tag--finished { background: var(--paper-2); color: var(--ink-2); }
.tag--blocked { background: var(--red-soft); color: var(--red); }
.tag--active { background: var(--pitch-100); color: var(--pitch-700); }
.tag--admin { background: var(--gold-soft); color: #74591a; }

/* ---------------------------------------------------------------- Botões e formulários */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius); border: 1px solid var(--pitch-800); background: var(--pitch-800); color: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.btn:hover { background: var(--pitch-900); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #1d1607; }
.btn--gold:hover { background: #9a7826; color: #1d1607; }
.btn--ghost { background: transparent; color: var(--pitch-800); border-color: var(--line); }
.btn--ghost:hover { background: var(--pitch-50); color: var(--pitch-900); }
.btn--danger { background: transparent; color: var(--red); border-color: #e0b7b0; }
.btn--danger:hover { background: var(--red-soft); color: var(--red); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn--block { width: 100%; }

.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c9c4b6; border-radius: var(--radius); background: #fff;
  font: inherit; color: var(--ink);
}
.input:focus, .select:focus { border-color: var(--pitch-600); outline: 3px solid rgba(29,107,75,.18); outline-offset: 0; }
.field-error { color: var(--red); font-size: 14px; margin-top: 6px; font-weight: 600; }
.input.is-invalid { border-color: var(--red); }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pitch-700); }
.inline-form { display: inline; margin: 0; }
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }

/* ---------------------------------------------------------------- Rodada / placar de status */
.round-bar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px 24px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.round-number { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: .9; }
.round-number small { display: block; font-size: 13px; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.round-number span { font-size: 46px; color: var(--pitch-800); }
.round-info { min-width: 0; }
.round-info .deadline { margin-top: 6px; color: var(--ink-2); }
.round-info .deadline strong { font-variant-numeric: tabular-nums; }
.countdown { text-align: right; }
.countdown-clock { font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--pitch-800);
  font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.countdown-label { font-size: 13px; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
.countdown-text { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.closed-banner { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-size: 18px; }

.round-select { display: flex; align-items: center; gap: 8px; }
.round-select .select { min-height: 40px; width: auto; padding: 6px 10px; }
.round-pager { display: flex; gap: 6px; }
.round-pager a, .round-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; background: var(--card); color: var(--ink-2); font-weight: 700; }
.round-pager span { opacity: .35; }

/* ---------------------------------------------------------------- Cards de jogo */
.matches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.match { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.match-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--muted); }
.match-when { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.match-where { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-body { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; padding: 16px 14px 12px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.05;
  overflow-wrap: anywhere; }
.versus { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 18px; padding: 0 4px; }
.scoreline { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scoreline span { color: var(--muted); font-weight: 500; font-size: 22px; padding: 0 6px; }

.crest { width: 52px; height: 52px; object-fit: contain; flex: none; }
.crest--sm { width: 26px; height: 26px; }
.crest--xs { width: 20px; height: 20px; }
.mono { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--font-display); font-weight: 700;
  letter-spacing: .04em; font-size: 15px; background: var(--paper-2); color: var(--ink-2); border: 2px solid var(--line); }
.crest--sm.mono { font-size: 9px; border-width: 1px; }
.crest--xs.mono { font-size: 8px; border-width: 1px; }

.pick { border-top: 1px dashed var(--line); padding: 12px 14px 14px; }
.pick-label { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: 13px; color: var(--pitch-700); text-align: center; margin-bottom: 8px; }
.pick-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto minmax(0,1fr); align-items: center; gap: 10px; }
.pick-team { font-size: 14px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-team--home { text-align: right; }
.pick-x { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 18px; }
.score-input { width: 62px; height: 58px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink);
  border: 2px solid #c9c4b6; border-radius: var(--radius); background: #fff; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.score-input::-webkit-outer-spin-button, .score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:focus { border-color: var(--pitch-600); outline: 3px solid rgba(29,107,75,.18); outline-offset: 0; }
.score-input:disabled { background: var(--paper); color: var(--ink-2); border-color: var(--line); }
.score-input.is-dirty { border-color: var(--gold); }
.pick-status { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 18px; }
.pick-status .pts { font-weight: 700; }
.pts-3 { color: var(--pitch-700); } .pts-1 { color: var(--blue); } .pts-0 { color: var(--red); }
.match--locked .pick { background: #fbfaf7; }
.match--postponed { border-color: #e6d3a6; }
.match--cancelled { opacity: .7; }
.match--cancelled .team-name { text-decoration: line-through; text-decoration-thickness: 1px; }

.savebar { position: sticky; bottom: 0; z-index: 5; margin-top: 18px; background: var(--pitch-900); color: #fff; border-radius: var(--radius);
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 3px solid var(--gold); }
.savebar .savebar-info { font-size: 14.5px; color: rgba(255,255,255,.85); }
.savebar .savebar-info strong { color: #fff; }

/* ---------------------------------------------------------------- Situação / números */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; }
.stat { padding: 16px 18px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-value small { font-size: 16px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.stat-sub { font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- Tabelas */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 10px 14px; border-bottom: 2px solid var(--line); white-space: nowrap; background: var(--card); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .r, .table th.r { text-align: right; }
.table .c, .table th.c { text-align: center; }
.table .num { font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 700; }
.table tr.is-me td { background: #fff9e8; }
.table tr.is-me td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.table-compact td, .table-compact th { padding: 8px 10px; }
.table .person { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.table .person span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .total { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.sticky-col { position: sticky; left: 0; background: var(--card); z-index: 1; }
tr.is-me .sticky-col { background: #fff9e8; }

.pos { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--font-display);
  font-weight: 700; font-size: 17px; background: var(--paper); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pos--1 { background: var(--gold); color: #1d1607; }
.pos--2 { background: var(--silver); color: #fff; }
.pos--3 { background: var(--bronze); color: #fff; }
tr.podium-1 td { background: #fdf8ea; } tr.podium-2 td { background: #f6f8f9; } tr.podium-3 td { background: #fbf4ee; }

.cell-pts { display: inline-block; min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cell-best { color: var(--pitch-700); }
.cell-prov { color: var(--amber); }

/* Pódio */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 20px; }
.podium-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 16px; text-align: center; border-top-width: 4px; }
.podium-step--1 { border-top-color: var(--gold); padding-top: 26px; order: 2; }
.podium-step--2 { border-top-color: var(--silver); order: 1; }
.podium-step--3 { border-top-color: var(--bronze); order: 3; }
.podium-place { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.podium-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; text-transform: uppercase; margin-top: 8px; line-height: 1.05; overflow-wrap: anywhere; }
.podium-pts { font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--pitch-800); line-height: 1; margin-top: 6px; }
.podium-pts small { font-size: 15px; color: var(--muted); }
.podium .avatar { margin: 10px auto 0; }

/* ---------------------------------------------------------------- Palpites dos participantes */
.result-block + .result-block { margin-top: 18px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.result-teams { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; flex-wrap: wrap; }
.result-teams .score { font-variant-numeric: tabular-nums; padding: 2px 10px; background: var(--ink); color: #fff; border-radius: 3px; }
.result-teams .score--pending { background: var(--paper-2); color: var(--muted); }
.mini-meta { font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- Kid Bengala */
.trophy-hero { background: var(--pitch-900); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 64px, transparent 64px 128px);
  color: #fff; border-radius: var(--radius); padding: 34px 28px; position: relative; overflow: hidden; border-bottom: 4px solid var(--gold); }
.trophy-hero .eyebrow { color: var(--gold); }
.trophy-hero h1 { color: #fff; font-size: clamp(28px, 4.6vw, 44px); margin-top: 6px; }
.trophy-holders { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 26px; }
.trophy-holder-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 7vw, 64px); line-height: .95; text-transform: uppercase; letter-spacing: .02em; }
.trophy-holder-pts { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--gold); margin-top: 6px; }
.trophy-holder-meta { color: rgba(255,255,255,.72); font-size: 15px; margin-top: 4px; }
.trophy-mark { position: absolute; right: 24px; top: 22px; width: 120px; height: 140px; opacity: .14; }
.trophy-empty { color: rgba(255,255,255,.8); font-size: 17px; margin-top: 18px; max-width: 560px; }

/* ---------------------------------------------------------------- Regras */
.rule-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.rule-point { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--pitch-700); }
.rule-point--1 { border-top-color: var(--blue); }
.rule-point--0 { border-top-color: var(--red); }
.rule-point .big { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; }
.rule-point .big small { font-size: 18px; color: var(--muted); margin-left: 4px; }
.rule-point h3 { margin-top: 6px; }
.rule-point p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.rules-list { counter-reset: r; list-style: none; padding: 0; margin: 0; }
.rules-list > li { counter-increment: r; position: relative; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--line-2); }
.rules-list > li:last-child { border-bottom: 0; }
.rules-list > li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--font-display); font-weight: 700;
  font-size: 22px; color: var(--gold); }
.rules-list h3 { font-size: 18px; margin-bottom: 4px; }
.rules-list p { margin: 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- Autenticação */
.auth { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-brand { background: var(--pitch-900); background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 72px, transparent 72px 144px);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; border: 2px solid rgba(255,255,255,.07); border-radius: 50%; transform: translate(-50%, -50%); }
.auth-brand::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.06); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 6vw, 76px); line-height: .9; letter-spacing: .03em; text-transform: uppercase; }
.auth-title b { color: var(--gold); display: block; }
.auth-motto { font-size: 19px; color: rgba(255,255,255,.82); margin-top: 18px; max-width: 420px; }
.auth-foot { font-size: 13.5px; color: rgba(255,255,255,.55); max-width: 420px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 32px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 15px; }
.minimal-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }

/* ---------------------------------------------------------------- Admin */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-value { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.kpi-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.kpi--alert { border-color: #e6d3a6; background: var(--amber-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.log-line { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.log-line:last-child { border-bottom: 0; }
.log-when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.log-actor { font-weight: 700; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--paper); padding: 2px 6px; border-radius: 3px; word-break: break-all; }
.temp-pass { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; letter-spacing: .08em; background: #fff; border: 2px dashed var(--gold); padding: 10px 14px; display: inline-block; margin: 6px 0; }
details.history summary { cursor: pointer; color: var(--pitch-700); font-size: 13.5px; }
details.history ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--card); }
.pagination .is-current { background: var(--pitch-800); color: #fff; border-color: var(--pitch-800); }
.danger-zone { border-color: #e7c4bd; }

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 960px) {
  .grid-main { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 28px 20px; min-height: 0; }
  .auth-brand::after, .auth-brand::before { display: none; }
  .auth-title { font-size: 44px; }
  .auth-motto { font-size: 16px; margin-top: 10px; }
  .auth-foot { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .topbar-inner { min-height: 58px; gap: 10px; }
  .brand-emblem { width: 30px; height: 35px; }
  .brand-name { font-size: 19px; }
  .brand-tag { display: none; }
  .userbox .user-name { display: none; }
  .userbox .logout-form { display: none; }
  .menu-toggle { display: inline-flex; }
  .mainnav { display: none; }
  .mainnav.is-open { display: block; }
  .mainnav ul { flex-direction: column; padding: 6px 0; }
  .mainnav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.06); border-left: 3px solid transparent; padding-left: 12px; }
  .mainnav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.06); border-left-color: var(--gold); }
  .mainnav .nav-admin { margin-left: 0; }
  .mainnav .nav-mobile-only { display: block; }
  .mainnav .nav-mobile-only button { width: 100%; text-align: left; background: none; border: 0; color: rgba(255,255,255,.78); padding: 12px 4px 12px 12px;
    font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
  .page { padding-top: 20px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .matches { grid-template-columns: 1fr; }
  .round-bar { grid-template-columns: auto minmax(0,1fr); padding: 16px; }
  .round-bar .countdown { grid-column: 1 / -1; text-align: left; border-top: 1px solid var(--line-2); padding-top: 12px; }
  .round-number span { font-size: 40px; }
  .countdown-clock { font-size: 34px; }
  .rule-points { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .podium-step { padding: 12px 6px; }
  .podium-name { font-size: 16px; }
  .podium-pts { font-size: 26px; }
  .podium .avatar { display: none; }
  .table { font-size: 14.5px; }
  .table th, .table td { padding: 9px 10px; }
  .hide-sm { display: none !important; }
  .stat-value { font-size: 28px; }
  .trophy-hero { padding: 26px 18px; }
  .trophy-mark { width: 80px; height: 94px; right: 12px; top: 12px; }
  .savebar { margin-left: -16px; margin-right: -16px; border-radius: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .match-body { padding: 14px 10px 10px; }
  .team-name { font-size: 17px; }
  .score-input { width: 64px; height: 60px; }
}
@media (max-width: 380px) {
  .score-input { width: 54px; height: 54px; font-size: 26px; }
  .pick-row { gap: 6px; }
}
@media (min-width: 761px) { .show-sm { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .topbar, .mainnav, .subnav, .footer, .savebar, .btn { display: none !important; } body { background: #fff; } }

/* Monogramas das equipes (sem escudo disponível) — cores gerais, sem reproduzir escudos */
.mono--CAM, .mono--BOT, .mono--COR, .mono--VAS { background: #1b1b1b; color: #fff; border-color: #d9d9d9; }
.mono--CAP, .mono--FLA, .mono--VIT { background: #b3261e; color: #fff; border-color: #1b1b1b; }
.mono--INT, .mono--SAO { background: #c8102e; color: #fff; border-color: #f2f2f2; }
.mono--BAH, .mono--CRU, .mono--GRE { background: #1f4e9c; color: #fff; border-color: #d8e2f2; }
.mono--PAL, .mono--CHA, .mono--CFC { background: #0c6b3a; color: #fff; border-color: #d7ead9; }
.mono--FLU { background: #7a1f3d; color: #fff; border-color: #0c6b3a; }
.mono--MIR { background: #f1c40f; color: #135c2c; border-color: #135c2c; }
.mono--REM { background: #1d2b5c; color: #fff; border-color: #d6dbea; }
.mono--SAN, .mono--RBB { background: #fff; color: #1b1b1b; border-color: #1b1b1b; }
.auth-brand .eyebrow { color: var(--gold); }
.userbox > a { display: inline-flex; }
[hidden] { display: none !important; }
.notice > strong { white-space: nowrap; }

/* ---------------------------------------------------------------- Fotos */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.album { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; }
.album:hover { border-color: var(--pitch-600); color: var(--ink); }
.album-cover { aspect-ratio: 4 / 3; background: var(--paper-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-empty { color: var(--muted); font-size: 14px; }
.album-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.album-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.photo { margin: 0; position: relative; aspect-ratio: 1; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-del { position: absolute; right: 6px; bottom: 6px; margin: 0; }
.photo-del button { background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 3px; font-size: 12px; padding: 4px 8px; cursor: pointer; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,20,15,.97); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none !important; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 8px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 8px 14px; line-height: 1; }
.lb-close { top: 8px; right: 8px; } .lb-prev { left: 4px; top: 50%; transform: translateY(-50%); } .lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------------- Contagem na tela de login */
.prelogin-countdown { margin-top: 26px; border: 1px solid rgba(176,138,46,.55); border-left: 4px solid var(--gold); background: rgba(255,255,255,.04); padding: 14px 16px; border-radius: var(--radius); max-width: 440px; }
.prelogin-countdown .pl-label { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--gold); }
.prelogin-countdown .countdown-clock { color: #fff; font-size: 36px; margin-top: 4px; }
.prelogin-countdown .countdown-text, .prelogin-countdown .countdown-label { color: rgba(255,255,255,.8); }
.prelogin-countdown .pl-deadline { color: rgba(255,255,255,.65); font-size: 13.5px; margin-top: 4px; }
.auth-card .prelogin-countdown { background: var(--card); border-color: var(--line); border-left-color: var(--gold); margin: 0 0 22px; }
.auth-card .prelogin-countdown .countdown-clock { color: var(--pitch-800); }
.auth-card .prelogin-countdown .countdown-text, .auth-card .prelogin-countdown .countdown-label, .auth-card .prelogin-countdown .pl-deadline { color: var(--ink-2); }
@media (min-width: 961px) { .auth-card .prelogin-countdown { display: none; } }
@media (max-width: 960px) { .auth-brand .prelogin-countdown { display: none; } }
.export-bar { display: flex; gap: 8px; flex-wrap: wrap; }

.tag--unreleased { background: var(--blue-soft); color: var(--blue); }
.person-picker .select { max-width: 420px; flex: 1; }
.pick-teams { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.picks-table tfoot td { border-top: 2px solid var(--line-2); font-weight: 600; }
h2.person { display: flex; align-items: center; gap: 10px; }
.closed-banner--wait { background: var(--blue-soft); color: var(--blue); }
/* Galeria de fotos */
.gallery { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.gallery-stage { position: relative; background: #0d1a14; border-radius: var(--radius); height: min(68vh, 620px); display: flex; align-items: center; justify-content: center; overflow: hidden; user-select: none; }
.gallery-img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 6px; background: rgba(0,0,0,.45); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.gallery-nav:hover { background: rgba(0,0,0,.7); }
.gallery-prev { left: 10px; } .gallery-next { right: 10px; }
.gallery-full { position: absolute; right: 10px; top: 10px; border: 0; border-radius: 4px; background: rgba(0,0,0,.5); color: #fff; font-size: 13px; padding: 6px 10px; cursor: pointer; }
.gallery-bar { display: flex; gap: 12px; align-items: baseline; padding: 10px 2px 6px; }
.gallery-count { font-family: var(--font-display); font-size: 18px; letter-spacing: .03em; white-space: nowrap; }
.gallery-caption { color: var(--muted); font-size: 14px; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.gallery-thumb { flex: 0 0 auto; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: var(--paper-2); cursor: pointer; opacity: .65; scroll-snap-align: center; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { border-color: var(--gold); opacity: 1; }
.gallery-thumb:hover { opacity: 1; }
@media (max-width: 760px) {
  .gallery { padding: 6px; }
  .gallery-stage { height: 56vh; }
  .gallery-nav { width: 38px; height: 52px; font-size: 32px; }
  .gallery-thumb { width: 64px; height: 50px; }
}
