/* BRFOOT: interface esportiva limpa. Tema escuro (quase preto, como Sadock FC e SofaScore) e tema claro.
   Ação em verde-limão; títulos condensados (Big Shoulders Display) e texto em Archivo, fontes OFL locais. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/archivo-latin.woff2) format("woff2"); 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: "Archivo"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../assets/fonts/archivo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Big Shoulders Display"; font-style: normal; font-weight: 600 900; font-display: swap; src: url(../assets/fonts/bigshoulders-latin.woff2) format("woff2"); 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: "Big Shoulders Display"; font-style: normal; font-weight: 600 900; font-display: swap; src: url(../assets/fonts/bigshoulders-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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; }

:root {
  /* escuro (padrão) */
  --bg: #0b0c0e;
  --bg-2: #111317;
  --surface: #15171b;
  --surface-2: #1b1e23;
  --surface-3: #252930;
  --line: #2b3038;
  --line-soft: #1f2329;
  --text: #eceded;
  --muted: #9aa1ab;
  --faint: #6b727c;
  --lime: #c7f03c;
  --lime-ink: #142006;
  --lime-soft: rgba(199, 240, 60, 0.12);
  --accent-text: #c7f03c;
  --orange: #f2a23a;
  --red: #ef4b4b;
  --red-text: var(--red-text);
  --green-text: var(--green-text);
  --yellow: #f6d32d;
  --blue: var(--blue);
  --gold: #dcb68a;
  --score-bg: #000000;
  --glass: rgba(11, 12, 14, 0.86);
  --scrim: rgba(0, 0, 0, 0.66);
  --page-glow: radial-gradient(1100px 520px at 75% -12%, rgba(199, 240, 60, 0.07) 0%, transparent 62%);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: "Big Shoulders Display", "Archivo", "Arial Narrow", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}
/* claro: segue o sistema quando o tema é automático, ou quando escolhido */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f3f5; --bg-2: #e9ebee; --surface: #ffffff; --surface-2: #f5f6f8; --surface-3: #e8ebef;
    --line: #dde1e6; --line-soft: #eceef1; --text: #0f1216; --muted: #59626e; --faint: #8b929c;
    --lime-soft: rgba(116, 160, 0, 0.13); --accent-text: #4a7400; --orange: #c86a00; --red: #d93a3a; --red-text: #c62828;
    --green-text: #2e7d32; --yellow: #a98000; --blue: #1a73e8; --gold: #9a6b34; --score-bg: #0f1216;
    --glass: rgba(255, 255, 255, 0.86); --scrim: rgba(15, 18, 22, 0.45);
    --page-glow: radial-gradient(1100px 520px at 75% -12%, rgba(199, 240, 60, 0.18) 0%, transparent 62%);
    --shadow: 0 12px 32px rgba(16, 24, 40, 0.12); --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f3f5; --bg-2: #e9ebee; --surface: #ffffff; --surface-2: #f5f6f8; --surface-3: #e8ebef;
  --line: #dde1e6; --line-soft: #eceef1; --text: #0f1216; --muted: #59626e; --faint: #8b929c;
  --lime-soft: rgba(116, 160, 0, 0.13); --accent-text: #4a7400; --orange: #c86a00; --red: #d93a3a; --red-text: #c62828;
  --green-text: #2e7d32; --yellow: #a98000; --blue: #1a73e8; --gold: #9a6b34; --score-bg: #0f1216;
  --glass: rgba(255, 255, 255, 0.86); --scrim: rgba(15, 18, 22, 0.45);
  --page-glow: radial-gradient(1100px 520px at 75% -12%, rgba(199, 240, 60, 0.18) 0%, transparent 62%);
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.12); --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.08);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page-glow), var(--bg);
  transition: background-color .25s var(--ease), color .25s var(--ease);
  color: var(--text);
  font: 14px/1.5 var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
img { display: block; }
button, select, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
.num { font-variant-numeric: tabular-nums; }

/* ---- topo ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 20px;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: baseline; text-decoration: none; font-weight: 900; letter-spacing: .5px; font-size: 20px; }
.brand-mark { color: var(--lime-ink); background: var(--lime); padding: 0 6px; border-radius: 4px; margin-right: 2px; }
.brand-word { color: var(--text); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 12px 7px 8px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 600;
}
.tabs a img { width: 22px; height: 22px; border-radius: 5px; }
.tabs a:hover { color: var(--text); background: var(--surface); }
.tabs a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--lime); }

main { padding: 20px; max-width: 1400px; margin: 0 auto; outline: none; }

/* ---- blocos ----------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card h3 img { width: 22px; height: 22px; border-radius: 5px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-text); font-weight: 700; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 600; }
.pill.lime { background: var(--lime-soft); color: var(--accent-text); }
.pill.warn { background: rgba(242, 162, 58, .14); color: var(--orange); }
.crest { width: 28px; height: 28px; object-fit: contain; }
.crest.lg { width: 72px; height: 72px; }
.crest.xl { width: 96px; height: 96px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn img { width: 20px; height: 20px; border-radius: 4px; }

.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 6px; color: var(--muted); font-weight: 700; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--lime); }

table.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr.me td { background: var(--lime-soft); }
.tbl tr.me td:first-child { box-shadow: inset 3px 0 0 var(--lime); }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .team { display: flex; align-items: center; gap: 8px; }
.tbl .team img { width: 20px; height: 20px; object-fit: contain; }
.zone-lib td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.zone-z4 td:first-child { box-shadow: inset 3px 0 0 var(--red); }

/* ---- Central ---------------------------------------------------------- */
.central { grid-template-columns: 2fr 1fr; }
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 300px; border: 1px solid var(--line-soft);
}
.hero .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-body { position: relative; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; gap: 14px; }
.matchup { display: flex; align-items: center; gap: 18px; }
.matchup .side { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; text-align: center; font-weight: 800; }
.matchup .vs { font-size: 26px; font-weight: 900; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.club-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.club-head h1 { font-size: 26px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.feature { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
.feature .portrait { border-radius: 8px; }
.attr { display: grid; grid-template-columns: 40px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; margin: 4px 0; }
.bar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lime); border-radius: 3px; }
.bar.orange i { background: var(--orange); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.list li:last-child { border-bottom: 0; }

/* ---- Escalação -------------------------------------------------------- */
.lineup { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); align-items: start; }
.pitchwrap { position: relative; width: 100%; aspect-ratio: 75 / 112; max-height: calc(100vh - 160px); margin: 0 auto; }
.pitchwrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: var(--radius); }
.slot {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.slot .shirt { filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); transition: transform .12s; }
.slot:hover .shirt { transform: translateY(-2px); }
.slot .tag { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: rgba(10,16,13,.82); white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.slot .pos { font-size: 9px; color: var(--lime); font-weight: 800; letter-spacing: .5px; }
.slot.sel .shirt { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 8px; }
.slot.opp { cursor: default; opacity: .96; }
.bench-list li { cursor: pointer; border-radius: 6px; padding: 6px; }
.bench-list li:hover { background: var(--surface-2); }
.bench-list li.sel { background: var(--lime-soft); }
.ficha { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }

/* ---- Pré-jogo Fut7 ---------------------------------------------------- */
/* cenário em bloco e conteúdo abaixo: as placas do alambrado não ficam sob os botões */
.hero.stacked { min-height: 0; background: var(--surface); }
.hero.stacked .scene { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1200 / 520; }
.hero.stacked .hero-body { min-height: 0; border-top: 1px solid var(--line-soft); }
.hero.stacked .matchup .side { flex-direction: row; text-align: left; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.teams7 { grid-template-columns: 1fr 1fr; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.roster .pl { background: var(--surface-2); border-radius: 8px; padding: 6px; text-align: center; font-size: 12px; }
.roster .pl .portrait { width: 100%; height: auto; border-radius: 6px; }
.roster .pl b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Partida ---------------------------------------------------------- */
.match { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.scorebug {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 16px; margin-bottom: 12px;
}
.scorebug .t { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; min-width: 0; }
.scorebug .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorebug .t.away { justify-content: flex-end; text-align: right; }
.scorebug .sc { display: flex; flex-direction: column; align-items: center; }
.scorebug .sc b { font-size: 30px; font-weight: 900; letter-spacing: 2px; font-variant-numeric: tabular-nums; background: var(--score-bg); padding: 0 14px; border-radius: 6px; }
.scorebug .clock { font: 700 13px var(--mono); color: var(--accent-text); display: flex; align-items: center; gap: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239,75,75,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(239,75,75,0); } 100% { box-shadow: 0 0 0 0 rgba(239,75,75,0); } }
.stage { position: relative; width: 100%; aspect-ratio: 112 / 75; background: #0d1310; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.stage.fut7 { aspect-ratio: 54.4 / 34.4; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.stage.match-stadium { aspect-ratio: var(--stadium-w) / var(--stadium-h); background: #192624; }
.match-venue { padding: 8px 2px 0; color: var(--muted); font-size: 0.8rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; }
.toolbar .grp { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feed { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ev { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 8px; border-radius: 6px; background: var(--surface-2); font-size: 13px; }
.ev .m { font: 700 12px var(--mono); color: var(--muted); }
.ev.goal { background: linear-gradient(90deg, rgba(199,240,60,.22), rgba(199,240,60,.05)); border-left: 3px solid var(--lime); font-weight: 700; }
.ev.sub { border-left: 3px solid var(--orange); }
.ev.card { border-left: 3px solid var(--yellow); }
.ev.half, .ev.end, .ev.kickoff { background: var(--surface-3); font-weight: 700; }
.statline { display: grid; grid-template-columns: 40px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; margin: 8px 0; }
.statline .lbl { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: -4px; }
.statline .dual { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface-3); }
.statline .dual i:first-child { background: var(--lime); }
.statline .dual i:last-child { background: var(--orange); margin-left: auto; }
.subs { display: grid; gap: 4px; }
.subs .row { display: grid; grid-template-columns: 28px 1fr 64px; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.subs .row:hover { background: var(--surface-2); }
.subs .row.sel { background: var(--lime-soft); outline: 1px solid var(--lime); }
.subs .row .n { font-weight: 900; text-align: center; }
.subs h4 { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .6px; margin: 10px 0 4px; }
.sidetabs { display: flex; gap: 4px; margin-bottom: 10px; }
.sidetabs button { flex: 1; }

.overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--scrim); backdrop-filter: blur(3px); z-index: 2; padding: 14px;
}
.overlay .card { max-width: 560px; width: 100%; box-shadow: var(--shadow); max-height: 100%; overflow: auto; }
.interval { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.talk { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---- Comparações ------------------------------------------------------ */
.cmp { grid-template-columns: 1fr 1fr; }
.cmp .stage { aspect-ratio: 112 / 75; }
.cmp .stage.fut7 { aspect-ratio: 54.4 / 34.4; }
.phones { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.phone { width: 230px; padding: 10px; background: #050706; border-radius: 26px; border: 1px solid #2a332e; }
.phone .stage { aspect-ratio: 9 / 16; border-radius: 16px; }
.phone figcaption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
figure { margin: 0; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.verdict { border-left: 3px solid var(--lime); padding: 6px 12px; background: var(--surface-2); border-radius: 0 8px 8px 0; }
.testbox .stage canvas { cursor: pointer; }
.chars { grid-template-columns: 1fr 1fr; }
.mock { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }

/* ---- Assets ----------------------------------------------------------- */
.assets-tbl td { font-size: 13px; }
.lic { font: 700 11px var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--surface-3); white-space: nowrap; }
.lic.cc0 { color: var(--accent-text); }
.lic.by { color: var(--orange); }
.lic.tm { color: var(--red); }
.use { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.use.prod { color: var(--accent-text); } .use.proto { color: var(--orange); } .use.no { color: var(--faint); }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--scrim); backdrop-filter: blur(4px); padding: 16px; }
.modal[hidden] { display: none; }
.modal .card { max-width: 520px; width: 100%; box-shadow: var(--shadow); }

/* ---- responsivo ------------------------------------------------------- */
@media (max-width: 1080px) {
  .central, .lineup, .match { grid-template-columns: 1fr; }
  .pitchwrap { max-width: 520px; }
}
@media (max-width: 720px) {
  main { padding: 14px 16px; }
  .topbar { padding: 8px 12px; gap: 10px; }
  .brand { font-size: 17px; }
  .tabs a { padding: 6px 8px 6px 6px; font-size: 13px; }
  .cmp, .teams7, .chars { grid-template-columns: 1fr; }
  .stage.mobile-vertical { aspect-ratio: 75 / 112; }
  .stage.mobile-vertical.fut7 { aspect-ratio: 34.4 / 54.4; }
  .stage.match-stadium { aspect-ratio: var(--stadium-h) / var(--stadium-w); }
  .scorebug { padding: 8px 10px; gap: 8px; }
  .scorebug .t { font-size: 13px; gap: 6px; }
  .scorebug .t .crest { width: 22px; height: 22px; }
  .scorebug .sc b { font-size: 22px; padding: 0 8px; }
  .matchup .side { min-width: 80px; }
  .hero.stacked .matchup .side { flex-direction: column; text-align: center; font-size: 13px; }
  .crest.xl { width: 68px; height: 68px; }
  .hero-body { padding: 16px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
  .interval { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 90px 1fr; }
}

/* ---- Temporada: resultados, artilharia, fim de temporada ---------------- */
.grid.two { grid-template-columns: 1fr 1fr; }
.results li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 6px 4px; font-size: 13px; }
.results .rt { display: flex; align-items: center; gap: 6px; justify-content: flex-end; min-width: 0; }
.results .rt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results .rt.away { justify-content: flex-start; }
.results .rt img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.results .score { background: var(--score-bg); border-radius: 4px; padding: 1px 8px; min-width: 52px; text-align: center; }
.results li.mine, .scorers li.mine { background: var(--lime-soft); border-radius: 6px; }
.scorers { padding: 0; }
.scorers li { padding: 6px 4px; font-size: 13px; }
.season-end { border-color: var(--lime); background: linear-gradient(160deg, rgba(199,240,60,.1), var(--surface) 55%); }
@media (max-width: 720px) { .grid.two { grid-template-columns: 1fr; } }

/* ---- Elenco e mercado --------------------------------------------------- */
.squadgrid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: start; }
.squad-tbl tr[data-pid] { cursor: pointer; }
.squad-tbl tr[data-pid]:hover td { background: var(--surface-2); }
.squad-tbl tr[data-pid]:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.squad-tbl td, .market-tbl td { white-space: nowrap; }
tr.inj td, li.inj { opacity: .7; }
td.warn { color: var(--orange); font-weight: 700; }
.bar.mini { display: inline-block; width: 48px; vertical-align: middle; }
.pos { color: var(--accent-text); } .neg { color: var(--red); }
.pill.neg { background: rgba(239,75,75,.14); color: var(--red); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.actions { display: grid; gap: 8px; margin-top: 12px; }
.act { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px; background: var(--surface-2); border-radius: 8px; font-size: 13px; }
.toast { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--line); margin: 0 0 12px; font-size: 13px; }
.toast[hidden] { display: none; }
.toast.ok { border-left-color: var(--lime); }
.toast.warn { border-left-color: var(--orange); }
.toast.err { border-left-color: var(--red); }
.report { margin-top: 12px; font-size: 13px; }
.report li img { width: 22px; height: 22px; border-radius: 4px; }
.club-head .seg { align-self: flex-start; }
@media (max-width: 1080px) { .squadgrid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .club-head { flex-wrap: wrap; } }
.sub-m { display: none; }
@media (max-width: 720px) {
  .hide-m { display: none; }
  .sub-m { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
  .squad-tbl td, .market-tbl td { white-space: normal; }
  .market-tbl .btn.sm { padding: 6px 8px; font-size: 12px; }
  .toolbar .grp select, .toolbar .grp input.btn { flex: 1 1 140px; }
}
td.nowrap, .market-tbl td.nowrap { white-space: nowrap; }

/* Escalação: proporção do campo de cada modalidade (com a margem do desenho) */
.pitchwrap.fut7 { aspect-ratio: 34.4 / 54.4; max-width: 560px; }
.bench-list li.pickable:not(.inj) { box-shadow: inset 3px 0 0 var(--lime); }

/* ---- IA do mercado ------------------------------------------------------ */
.bids { border-color: rgba(242,162,58,.45); }
.bids li.bid { flex-wrap: wrap; align-items: flex-start; }
.bid-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.moves li { font-size: 13px; padding: 6px 4px; }
.moves .mv { display: flex; align-items: center; gap: 4px; min-width: 76px; }
.moves .mv img { width: 22px; height: 22px; object-fit: contain; }
.moves .arrow { color: var(--faint); }
.moves li.mine { background: var(--lime-soft); border-radius: 6px; }

/* =========================================================================
   Esqueleto (Fase 1): cabeçalho com clube ativo e Continuar, menu de 5 seções
   ========================================================================= */
.topbar { display: grid; grid-template-columns: auto auto 1fr auto; gap: 16px; align-items: center; min-height: 60px; }
.clubswitch { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 3px; }
.clubswitch button { position: relative; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 5px 10px 5px 6px; border-radius: 7px; cursor: pointer; color: var(--muted); text-align: left; }
.clubswitch button img { width: 28px; height: 28px; object-fit: contain; }
.clubswitch .cs-text { display: flex; flex-direction: column; line-height: 1.15; }
.clubswitch .cs-text b { font-size: 13px; white-space: nowrap; }
.clubswitch .cs-text small { font-size: 11px; color: var(--faint); }
.clubswitch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--lime); }
.clubswitch .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.when { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.when b { font-size: 14px; }
.when small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.continue { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-size: 15px; padding: 11px 18px; white-space: nowrap; }
.btn.continue.warn { background: var(--orange); border-color: var(--orange); color: #241303; }
.btn.continue.live { background: var(--red); border-color: var(--red); color: #fff; }

.layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); max-width: 1480px; margin: 0 auto; }
.layout main { max-width: none; width: 100%; }
.sidenav { position: sticky; top: 61px; align-self: start; display: flex; flex-direction: column; gap: 4px; padding: 20px 8px 20px 16px; height: calc(100vh - 61px); }
.sidenav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 700; }
.sidenav a img { width: 26px; height: 26px; border-radius: 6px; }
.sidenav a:hover { background: var(--surface); color: var(--text); }
.sidenav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--lime); }
.sidenav a.dev { margin-top: auto; font-size: 12px; opacity: .7; }
.sidenav a.dev + a.dev { margin-top: 0; }
.badge { font-style: normal; margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--orange); color: #241303; font-size: 11px; font-weight: 800; text-align: center; }
.subnav .badge { margin-left: 4px; }

.subnav { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { padding: 9px 14px; color: var(--muted); text-decoration: none; font-weight: 700; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--text); }
.subnav a.active { color: var(--text); border-bottom-color: var(--lime); }

/* Início */
.home { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); align-items: start; }
.hero.nextmatch, .hero.nextmatch .hero-body { min-height: 260px; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.strip li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; background: var(--surface-2); border-radius: 8px; text-align: center; font-size: 12px; min-width: 0; }
.strip li img { width: 32px; height: 32px; object-fit: contain; }
.strip li span { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.strip li small { color: var(--faint); }
.strip li.next { outline: 1px solid var(--lime); background: var(--lime-soft); }

.inbox { display: flex; flex-direction: column; gap: 8px; }
.inbox-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.inbox-head h3 { margin: 0; }
.msg { border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-2); }
.msg.unread { border-left: 3px solid var(--lime); }
.msg.task { border-left: 3px solid var(--orange); }
.msg-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; }
.msg-head img { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.msg-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.msg-title b { font-size: 14px; }
.msg.unread .msg-title b { color: var(--text); }
.msg:not(.unread) .msg-title b { font-weight: 600; color: var(--muted); }
.msg-title small { font-size: 11px; color: var(--faint); }
.msg-body { display: none; padding: 0 12px 12px 46px; font-size: 13px; color: var(--muted); }
.msg.open .msg-body { display: block; }
.bid-box { margin-top: 10px; }

/* Pós-jogo */
.result .final { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 12px; }
.result .final .side { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; text-align: center; }
.result .score { font-size: 44px; font-weight: 900; background: var(--score-bg); padding: 4px 20px; border-radius: 8px; }
.result.win { border-color: var(--lime); }
.result.loss { border-color: rgba(239,75,75,.6); }

/* celular: cabeçalho compacto e menu na barra inferior */
@media (max-width: 1080px) {
  .home { grid-template-columns: 1fr; }
  .when { display: none; }
  .topbar { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 720px) {
  .topbar { gap: 8px; padding: 8px 10px; min-height: 54px; }
  .brand-word { display: none; }
  .clubswitch .cs-text { display: none; }
  .clubswitch button { padding: 4px; }
  .btn.continue { font-size: 13px; padding: 9px 12px; justify-self: end; }
  .layout { display: block; }
  .sidenav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; height: auto; flex-direction: row; justify-content: space-around; gap: 0;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: var(--glass); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .sidenav a { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 11px; flex: 1; justify-content: center; }
  .sidenav a img { width: 24px; height: 24px; }
  .sidenav a.active { box-shadow: inset 0 2px 0 var(--lime); }
  .sidenav a.dev { display: none; }
  .sidenav .badge { position: absolute; top: 2px; right: 18%; margin: 0; min-width: 16px; padding: 0 4px; font-size: 10px; }
  main { padding-bottom: 84px; }
  .strip { grid-template-columns: repeat(5, 84px); overflow-x: auto; }
  .msg-body { padding-left: 12px; }
  .result .score { font-size: 34px; padding: 4px 12px; }
}
/* Início: texto legível sobre o cenário; no celular a caixa de entrada vem logo após o próximo jogo */
.hero.nextmatch .hero-body { background: linear-gradient(180deg, rgba(10,15,12,0) 25%, rgba(10,15,12,.78) 100%); }
@media (max-width: 1080px) {
  .home-main { display: contents; }
  .home .o1 { order: 1; } .home .o2 { order: 2; } .home .o3 { order: 3; } .home .o4 { order: 4; }
}
@media (max-width: 720px) {
  .hero.nextmatch .btn.ghost { display: none; } /* Escalação fica na barra inferior (Time) */
  .hero.nextmatch .hero-body { padding-bottom: 54px; }
}

/* =========================================================================
   Fase 2: tabelas ordenáveis, comparação de atletas, Simular até…
   ========================================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tbl th .sorth { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.tbl th .sorth:hover { color: var(--text); }
.tbl th .sorth:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 3px; }
.tbl th .arr { font-size: 9px; opacity: .45; }
.tbl th[aria-sort="ascending"], .tbl th[aria-sort="descending"] { color: var(--accent-text); }
.tbl th[aria-sort="ascending"] .arr, .tbl th[aria-sort="descending"] .arr { opacity: 1; }
.tbl th.r .sorth { justify-content: flex-end; }
.cmpcol { width: 30px; text-align: center; }
.cmpbox { width: 16px; height: 16px; accent-color: var(--lime); cursor: pointer; }

.compare .cmp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.compare .cmp-top h3 { margin: 0; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cmp-head { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cmp-head .portrait { border-radius: 8px; flex: none; }
.cmp-head b { display: block; }
.cmp-tbl { margin-top: 10px; }
.cmp-tbl td { padding: 5px 6px; }
.cmp-tbl td.lbl { color: var(--muted); font-size: 12px; text-align: left; }
.cmp-tbl td.win b { color: var(--accent-text); }
.cmp-tbl .cmp-bars { width: 38%; }
.cmp-tbl .cmp-bars .bar { display: block; margin: 2px 0; }
.cmp-tbl .cmp-bars .bar + .bar i { background: var(--orange); }

details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; z-index: 15; bottom: calc(100% + 6px); left: 0; min-width: 260px; display: grid; gap: 2px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.menu-pop button { all: unset; cursor: pointer; display: flex; flex-direction: column; padding: 8px 10px; border-radius: 6px; }
.menu-pop button:hover, .menu-pop button:focus-visible { background: var(--surface-3); }
.menu-pop small { color: var(--muted); font-size: 12px; }
.prejogo details.menu .menu-pop { bottom: auto; top: calc(100% + 6px); }
@media (max-width: 720px) {
  .menu-pop { min-width: 230px; }
  .cmp-tbl .cmp-bars { display: none; }
}

/* =========================================================================
   Fase 3: táticas
   ========================================================================= */
.ins { display: grid; gap: 12px; }
.ins-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ins-head .seg button { padding: 6px 10px; font-size: 13px; }
.ins-desc { margin: 6px 0 0; font-size: 13px; }
.tslot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: rgba(10,16,13,.86); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; color: var(--text); max-width: 120px; }
.tslot .num { font-size: 15px; color: var(--lime); }
.tslot span { font-size: 12px; font-weight: 700; white-space: nowrap; }
.tslot small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.tslot.custom small { color: var(--orange); }
.tslot.sel { outline: 2px solid var(--lime); }
.roles { display: grid; gap: 8px; margin-top: 12px; }
.role { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: var(--surface-2); }
.role.on { border-color: var(--lime); background: var(--lime-soft); }
.role input { accent-color: var(--lime); margin-top: 3px; }
.role span { display: flex; flex-direction: column; }
.role small { color: var(--muted); }
.ev.tactic { border-left: 3px solid var(--lime); }
a.pill { text-decoration: none; }
@media (max-width: 720px) {
  .tslot { padding: 3px 5px; }
  .tslot small { max-width: 76px; font-size: 9px; }
  .tslot span { font-size: 11px; }
}
@media (max-width: 720px) {
  .tslot small { display: none; }              /* a função completa aparece no painel abaixo do campo */
  .tslot.sel small { display: block; }
  .tslot { padding: 2px 6px; min-width: 44px; }
}

/* =========================================================================
   Fase 4: notas, auxiliar técnico, modo Lances
   ========================================================================= */
.rt { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 6px; font: 800 12px var(--mono); text-align: center; background: var(--surface-3); color: var(--text); }
.rt.r-great { background: rgba(199,240,60,.22); color: var(--accent-text); }
.rt.r-good { background: rgba(120,200,120,.16); color: var(--green-text); }
.rt.r-mid { background: var(--surface-3); color: var(--text); }
.rt.r-bad { background: rgba(239,75,75,.18); color: var(--red-text); }
.rt-tbl td { padding: 5px 8px; }
.mini-tag { display: inline-block; margin-left: 3px; padding: 0 6px; border-radius: 99px; font-size: 10px; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.mini-tag.g { background: rgba(199,240,60,.2); color: var(--accent-text); }
.mini-tag.a { background: rgba(242,162,58,.2); color: var(--orange); }
.mini-tag.y { background: rgba(246,211,45,.2); color: var(--yellow); }
.mini-tag.r { background: rgba(239,75,75,.25); color: var(--red-text); }
.subh { margin: 10px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); }
.tips { display: grid; gap: 6px; margin-bottom: 8px; }
.tip { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--line); font-size: 13px; }
.tip.warn { border-left-color: var(--orange); }
.tip.ok { border-left-color: var(--lime); }
.tip.info { border-left-color: var(--blue); }
.sidetabs { flex-wrap: wrap; }
.sidetabs button { min-width: 0; padding: 6px 6px; font-size: 13px; }
.subs .row span .rt { margin-left: 4px; min-width: 30px; font-size: 11px; }

/* o atributo hidden precisa vencer regras como .feed { display: flex } */
[hidden] { display: none !important; }

/* =========================================================================
   Fase 5: olheiros
   ========================================================================= */
.est { display: inline-block; padding: 1px 7px; border-radius: 6px; background: rgba(242,162,58,.14); color: var(--orange); font: 700 12px var(--mono); }
.eye { color: var(--accent-text); font-size: 10px; }
.stack { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.stack .btn { min-width: 96px; }
.queue li { flex-wrap: wrap; }
.reports { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.report-card { background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 8px; padding: 10px 12px; }
.rc-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 720px) { .reports { grid-template-columns: 1fr; } .stack .btn { min-width: 0; font-size: 12px; } }
@media (max-width: 720px) {
  .market-tbl th, .market-tbl td { padding-left: 4px; padding-right: 4px; }
  .market-tbl .cmpcol { width: 22px; }
  .market-tbl .stack .btn { padding: 5px 6px; font-size: 11px; }
  .market-tbl td:first-child + td { min-width: 0; }
  .market-tbl td b { word-break: break-word; }
}
@media (max-width: 720px) {
  .market-tbl { font-size: 13px; }
  .market-tbl .est { padding: 1px 4px; font-size: 11px; }
  .market-tbl .nowrap { font-size: 12px; }
  .market-tbl .stack .btn { font-size: 10.5px; padding: 5px 5px; }
}

/* elencos reais: competição do clube na busca do mercado */
.comp { display: block; color: var(--faint); font-size: 10.5px; margin-top: 1px; white-space: nowrap; }

/* acesso e rebaixamento */
.moves-box { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--line); font-size: 13px; }
.moves-box.up { border-left-color: var(--lime); }
.moves-box.down { border-left-color: var(--red); }

/* ---- fotos de atletas (com iniciais como alternativa) ------------------- */
.portrait.photo {
  position: relative; display: inline-block; flex: none; overflow: hidden; border-radius: 8px;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--pbg) 70%, #fff 8%), var(--pbg));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.portrait.photo::before {
  content: attr(data-ini); position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 900; letter-spacing: .5px; font-size: 1.6em; color: var(--pfg); opacity: .9;
}
.portrait.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.roster .pl .portrait.photo { width: 100% !important; height: auto !important; aspect-ratio: 120 / 140; }

/* ---- nova carreira: assumir clube --------------------------------------- */
body.onboard .sidenav { display: none; }
body.onboard .layout { display: block; }
.novo { max-width: 1180px; margin: 0 auto; padding-bottom: 96px; }
.novo-head h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.5px; margin: 4px 0 6px; }
.novo-head p { margin: 0 0 18px; max-width: 640px; }
.novo-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.novo-tabs button {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
}
.novo-tabs button img { width: 40px; height: 40px; object-fit: contain; }
.novo-tabs button small { display: block; color: var(--muted); font-size: 12px; }
.novo-tabs button b { font-size: 16px; }
.novo-tabs button[aria-selected="true"] { border-color: var(--lime); box-shadow: inset 0 -3px 0 var(--lime); background: var(--surface-2); }
.novo-mode { display: none; }
.novo-mode.on { display: block; }
.novo-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 58px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px;
  transition: border-color .12s, background .12s, transform .12s;
}
.pick:hover { border-color: var(--line); background: var(--surface-2); }
.pick:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.pick.on { border-color: var(--lime); background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 35%, transparent), var(--surface-2) 70%); }
.pick .crest { width: 34px; height: 34px; object-fit: contain; flex: none; }
.pick-txt { display: grid; min-width: 0; }
.pick-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-txt small { color: var(--muted); font-size: 12px; }
.tag-off { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; color: var(--lime-ink); background: var(--lime); padding: 1px 5px; border-radius: 4px; }
.pick-detail {
  position: sticky; top: 76px; border-radius: 14px; padding: 18px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 55%, #000 20%) 0%, var(--surface) 58%);
  border: 1px solid var(--line);
}
.pd-head { display: flex; gap: 14px; align-items: center; }
.pd-head h2 { font-size: 28px; font-weight: 900; margin: 2px 0 4px; }
.pd-stats { grid-template-columns: repeat(2, 1fr); margin: 16px 0 12px; }
.pd-stats .stat { background: rgba(0,0,0,.28); }
.pd-stats .stat b small { font-size: 13px; color: var(--muted); font-weight: 600; }
.pd-star { display: flex; gap: 12px; align-items: center; background: rgba(0,0,0,.28); border-radius: 10px; padding: 8px; }
.pd-star > div { display: grid; gap: 2px; }
.pd-star b { font-size: 16px; }
.pd-note { font-size: 12px; margin: 12px 0 0; }
.novo-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: var(--glass); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}
.novo-sum { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.novo-sum span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.novo-sum b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.novo-sum img { width: 26px; height: 26px; object-fit: contain; }
.novo-sum i { color: var(--faint); font-style: normal; }
.novo-warn { font-size: 12px; max-width: 300px; }
@media (max-width: 860px) {
  .novo-grid { grid-template-columns: 1fr; }
  .pick-detail { position: static; order: -1; }
  .pick-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 560px) {
  .novo-tabs button { padding: 8px 10px; gap: 8px; }
  .novo-tabs button img { width: 30px; height: 30px; }
  .novo-tabs button b { font-size: 14px; }
  .pd-head h2 { font-size: 22px; }
  .novo-warn { display: none; }
  .novo-sum b { max-width: 34vw; font-size: 13px; }
}

/* =========================================================================
   Sistema visual 2026: tipografia, superfícies, temas e movimento
   ========================================================================= */
/* "ilhas escuras": cenários, campo e placar continuam escuros no tema claro */
.hero:not(.stacked), .stage, .board, .pitch-dark, .mode-card {
  --text: #eceded; --muted: #aab1ba; --faint: #7d848e; --accent-text: #c7f03c; --surface: #15171b; --surface-2: #1b1e23; --surface-3: #252930; --line: #2b3038; --line-soft: #1f2329;
  color: var(--text);
}
h1, h2, .display { font-family: var(--display); font-weight: 800; letter-spacing: .2px; text-transform: uppercase; line-height: .95; }
.club-head h1 { font-size: clamp(30px, 3.4vw, 42px); }
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.card h3 { font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.eyebrow { letter-spacing: 1.4px; font-size: 11.5px; font-weight: 800; }
.btn { border-radius: 10px; transition: transform .12s var(--ease), background-color .15s, filter .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn.primary { box-shadow: 0 6px 18px rgba(130, 170, 20, .22); }
.btn.big { padding: 13px 22px; font-size: 15px; }
.linkbtn { all: unset; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; margin-bottom: 8px; display: inline-block; }
.linkbtn:hover { color: var(--text); }
.linkbtn:focus-visible, .btn:focus-visible, .iconbtn:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.tbl tr { transition: background-color .15s; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.scorebug .sc b, .result .score, .results .score { font-family: var(--display); font-weight: 900; letter-spacing: 1px; color: #fff; }
.stat b, .kpi b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .3px; }
.brand { font-family: var(--display); font-size: 24px; letter-spacing: .6px; }
.top-spacer { flex: 1; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.iconbtn:hover { background: var(--surface-2); }
.iconbtn svg { width: 20px; height: 20px; }
.topbar { grid-template-columns: auto auto 1fr auto auto; }
.topbar .theme-toggle { justify-self: end; }
.cs-add { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border-radius: 9px; color: var(--muted); text-decoration: none; border: 1px dashed var(--line); margin-left: 2px; }
.cs-add > span[aria-hidden] { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); font-weight: 900; font-size: 18px; color: var(--text); }
.cs-add:hover { color: var(--text); border-color: var(--accent-text); }
.cs-add .cs-text { display: flex; flex-direction: column; line-height: 1.15; }
.cs-add .cs-text b { font-size: 13px; } .cs-add .cs-text small { font-size: 11px; color: var(--faint); }
body.onboard .topbar { display: flex; }
@media (max-width: 1080px) { .topbar { grid-template-columns: auto 1fr auto auto; } }
@media (max-width: 720px) { .cs-add .cs-text { display: none; } .iconbtn { width: 36px; height: 36px; } }

/* movimento: entrada em cascata e transição entre telas */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .45s var(--ease) both; animation-delay: var(--d, 0ms); }
.swap-in { animation: pop .3s var(--ease) both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
#view > * { animation: fadein .3s var(--ease) both; } /* só opacidade: transform prenderia barras fixas */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}

/* ---- nova carreira (passo 1: modalidade) --------------------------------- */
.novo-head .display { font-size: clamp(40px, 6vw, 72px); margin: 6px 0 10px; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px;
  text-align: left; cursor: pointer; border: 1px solid #2b3038; border-radius: 20px; padding: 0; background: #0b0c0e;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.mode-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lime); }
.mode-card:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.mode-pitch { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.mode-card:hover .mode-pitch { transform: scale(1.04); }
.mode-pitch.fut11 { background:
  linear-gradient(180deg, rgba(11,12,14,.05) 0%, rgba(11,12,14,.5) 45%, #0b0c0e 88%),
  repeating-linear-gradient(90deg, #1f5a32 0 46px, #1b5030 46px 92px); }
.mode-pitch.fut7 { background:
  linear-gradient(180deg, rgba(11,12,14,.05) 0%, rgba(11,12,14,.5) 45%, #0b0c0e 88%),
  repeating-linear-gradient(90deg, #2e2a22 0 38px, #26221b 38px 76px); }
.mode-pitch::before { content: ""; position: absolute; left: 50%; top: 22%; width: 150px; height: 150px; margin-left: -75px; border: 2px solid rgba(255,255,255,.28); border-radius: 50%; }
.mode-pitch::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid rgba(255,255,255,.22); }
.mode-pitch.fut7::before { border-color: rgba(220,182,138,.5); }
.mode-crests { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.mode-crests img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); animation: rise .5s var(--ease) both; animation-delay: calc(200ms + var(--k) * 45ms); }
.mode-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.mode-body b.display { font-size: clamp(38px, 4.4vw, 58px); color: #fff; }
.mode-body ul { margin: 4px 0 10px; padding: 0; list-style: none; color: var(--muted); display: grid; gap: 4px; }
.mode-body li::before { content: "—"; color: var(--lime); margin-right: 8px; }
.mode-body .btn { align-self: flex-start; }
.kpi { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { display: block; }
.kpi b small { font-size: 14px; color: var(--muted); font-weight: 600; }
.pd-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 12px; }
.pick-detail { background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 30%, var(--surface)) 0%, var(--surface) 60%); box-shadow: var(--shadow-sm); }
.pick-detail .pd-head h2 { font-size: 40px; }
.pd-star { background: var(--surface-2); }
.pick { background: var(--surface); }
.pick.on { background: linear-gradient(90deg, color-mix(in srgb, var(--c1) 28%, var(--surface)), var(--surface-2) 70%); }
.novo-sum small { display: block; font-size: 11px; color: var(--faint); }
.novo-sum span { display: flex; flex-direction: column; }
.novo-sum img { width: 34px; height: 34px; }
.novo-bar { background: var(--glass); }
@media (max-width: 760px) {
  .mode-cards { grid-template-columns: 1fr; }
  .mode-card { min-height: 300px; }
}

/* =========================================================================
   Quadro de escalação: campo escuro, rostos, números e banco compacto
   ========================================================================= */
.board {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: linear-gradient(180deg, #121316 0%, #0d0e10 100%);
  border: 1px solid #24272c; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.board::before { /* brilho da cor do clube */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 45% at 50% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%);
}
.board-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #22252a; }
.bh-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bh-team img { width: 34px; height: 34px; object-fit: contain; flex: none; }
.bh-team b { display: block; font-size: 22px; letter-spacing: .5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.bh-team small { display: block; color: #8d949e; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-form { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--c1); filter: brightness(1.6) saturate(1.2); letter-spacing: .5px; }
.board.side-away .board-head { flex-direction: row-reverse; text-align: right; }
.board.side-away .bh-team { flex-direction: row-reverse; }

.board-pitch { position: relative; aspect-ratio: 4 / 5; margin: 10px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; }
.board.fut7 .board-pitch { aspect-ratio: 4 / 3.9; }
.bpl { position: absolute; pointer-events: none; border: 1px solid rgba(255,255,255,.07); }
.bpl-mid { left: 0; right: 0; top: 0; height: 0; border-width: 1px 0 0; }
.bpl-circle { left: 50%; top: 0; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.bpl-box { left: 24%; right: 24%; bottom: 0; height: 15%; border-bottom: 0; border-radius: 6px 6px 0 0; }

.bp {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: clamp(66px, 21%, 116px); outline: none; touch-action: none; user-select: none; -webkit-user-select: none;
  animation: bp-in .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms);
}
.board.fut7 .bp { width: clamp(70px, 23%, 124px); }
@keyframes bp-in { from { opacity: 0; transform: translate(-50%, -40%) scale(.92); } to { opacity: 1; transform: translate(-50%, -50%); } }
.bp-frame { position: relative; display: block; width: 72%; aspect-ratio: 1 / 1.02; }
.bf {
  position: absolute; inset: 0; display: grid; place-items: end center; overflow: hidden;
  clip-path: polygon(50% 0, 96% 20%, 96% 80%, 50% 100%, 4% 80%, 4% 20%);
  background: radial-gradient(90% 80% at 50% 25%, color-mix(in srgb, var(--c1) 55%, #2a2d33), #17191d 75%);
}
.bf::after { /* contorno da moldura */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c1) 70%, #fff 10%), transparent 55%);
  clip-path: polygon(50% 0, 96% 20%, 96% 80%, 50% 100%, 4% 80%, 4% 20%, 4% 20%, 8% 22%, 8% 78%, 50% 96%, 92% 78%, 92% 22%, 50% 4%, 8% 22%, 4% 20%);
  opacity: .9;
}
.bf img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.bf.cut img { width: 96%; height: 96%; object-fit: contain; object-position: 50% 100%; }
.bf.ini::before { content: attr(data-ini); align-self: center; font-family: var(--display); font-weight: 900; font-size: clamp(16px, 2.2vw, 26px); color: rgba(255,255,255,.75); letter-spacing: .5px; }
.bp-num {
  position: absolute; top: -4px; right: -10%; min-width: 22px; padding: 2px 4px; text-align: center;
  font: 800 12px/1.1 var(--font); color: #fff; background: #0b0c0e; border: 1px solid #2c3036; border-radius: 5px;
  font-variant-numeric: tabular-nums;
}
.bp-name {
  max-width: 128%; padding: 3px 7px; border-radius: 6px; background: rgba(10,11,13,.92); border: 1px solid #30343b;
  font: 800 10.5px/1.2 var(--font); text-transform: uppercase; letter-spacing: .3px; color: #f2f3f5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bp-role { font: 800 9px/1 var(--font); color: var(--lime); letter-spacing: .6px; margin-top: -2px; }
.bp .cardy { position: absolute; left: -6%; top: 30%; width: 8px; height: 11px; border-radius: 2px; background: var(--yellow); }
.bp .cardr { position: absolute; left: -6%; top: 30%; width: 8px; height: 11px; border-radius: 2px; background: var(--red); }
.bp.inj .bf { filter: grayscale(1) brightness(.7); }
.bp.inj .bp-name::after { content: " +"; color: var(--red); }

/* interação: seleção, alvo de soltura, arrasto */
.board .bp[role="button"], .board .bb[role="button"] { cursor: pointer; }
.board .bp[role="button"]:hover .bp-frame { transform: translateY(-2px); }
.bp-frame { transition: transform .15s var(--ease); }
.bp.sel .bp-name, .bb.sel { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 0 18px rgba(199,240,60,.35); }
.bp.sel .bp-frame { filter: drop-shadow(0 0 10px rgba(199,240,60,.55)); }
.bp:focus-visible .bp-name, .bb:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.bp.drop .bp-frame, .bb.drop { transform: scale(1.08); filter: drop-shadow(0 0 12px rgba(199,240,60,.7)); }
.bp.dragging, .bb.dragging { opacity: .35; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 96px; transform-origin: center; opacity: .95; }
.drag-ghost.bp { display: flex; flex-direction: column; align-items: center; gap: 4px; --c1: #3a3f46; animation: none; }
.drag-ghost.bb { width: 160px; }
.board.is-dragging .bp:not(.dragging) .bp-frame { transition: transform .12s; }

.board-bench { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 10px 12px 12px; border-top: 1px solid #22252a; }
.bb {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px;
  background: #16181c; border: 1px solid #24272c; color: #e6e7e9; font-size: 12.5px; touch-action: none; user-select: none;
  transition: transform .12s var(--ease), border-color .12s, background-color .12s;
}
.bb b { min-width: 20px; color: #8d949e; font-variant-numeric: tabular-nums; }
.bb span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.bb small { color: #6d737c; font-size: 10px; font-weight: 800; }
.bb.inj { opacity: .55; }
.bb-inj { font-style: normal; font-weight: 900; color: var(--red); }
.bb[role="button"]:hover { background: #1c1f24; border-color: #33373e; }

/* pré-jogo: dois quadros e o placar no meio */
.lineups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) minmax(0, 1fr); gap: 14px; align-items: start; }
.lineups-mid { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 16px 14px 14px;
  background: linear-gradient(180deg, #16181c, #0e0f12); border: 1px solid #24272c; border-radius: 16px; text-align: center;
}
.scoreboard .sb-team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.scoreboard .sb-team img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.scoreboard .sb-team b { font-family: var(--display); font-size: 18px; letter-spacing: .5px; color: #fff; text-transform: uppercase; }
.scoreboard .sb-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.scoreboard .sb-score { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; color: #fff; letter-spacing: 1px; }
.scoreboard .sb-meta { grid-column: 1 / -1; color: #8d949e; font-size: 12px; margin-top: 6px; }
.scoreboard .sb-chip { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 99px; font: 800 12px var(--font); color: var(--lime-ink); background: var(--lime); }
.lineups-mid .card { padding: 12px; }
.lineups-mid .hero-actions { flex-direction: column; }
.lineups-mid .hero-actions .btn, .lineups-mid .hero-actions details { width: 100%; }
.lineups-mid .hero-actions details > summary { width: 100%; }
.prejogo-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.prejogo-head h1 { font-size: clamp(30px, 3.6vw, 44px); }

/* Escalação: quadro do meu time + painel */
.xi-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 16px; align-items: start; }
.xi-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.xi-hint { font-size: 12px; color: var(--muted); margin: 8px 2px 0; }

@media (max-width: 1180px) {
  .lineups { grid-template-columns: 1fr 1fr; }
  .lineups-mid { grid-column: 1 / -1; order: -1; position: static; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
}
@media (max-width: 860px) {
  .xi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lineups { grid-template-columns: 1fr; }
  .lineups-mid { grid-template-columns: 1fr; }
  .bp-name { font-size: 9.5px; padding: 2px 5px; }
  .bp-num { font-size: 10.5px; min-width: 18px; }
  .bh-team b { font-size: 19px; }
  .board-bench { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* rostinho nas tabelas (Elenco, Mercado) */
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > span:last-child { min-width: 0; }
.av { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.av::before { content: attr(data-ini); font: 800 11px var(--font); color: var(--muted); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.av.cut img { object-fit: contain; object-position: 50% 100%; top: 2px; }
@media (max-width: 720px) { .av { width: 28px; height: 28px; } }

/* =========================================================================
   Partida ao vivo: placar de transmissão, fluxo da partida, painel em abas
   ========================================================================= */
.mbar {
  --text: #eceded; --muted: #9aa1ab; --faint: #6b727c; color: var(--text);
  position: relative; overflow: hidden; margin-bottom: 14px; border-radius: 18px; border: 1px solid #24272c;
  background:
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--h) 24%, transparent), transparent 60%),
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--a) 24%, transparent), transparent 60%),
    linear-gradient(180deg, #16181c, #0d0e10);
  box-shadow: var(--shadow-sm);
}
.mb-top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 20px 6px; }
.mb-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mb-team img { width: 54px; height: 54px; object-fit: contain; flex: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.mb-team b { display: block; font-size: clamp(20px, 2.4vw, 30px); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-team small { color: var(--muted); font-size: 12px; }
.mb-team > div { min-width: 0; }
.mb-team.away { flex-direction: row-reverse; text-align: right; }
.mb-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mb-score { display: flex; align-items: center; gap: 10px; font-size: clamp(44px, 5vw, 64px); font-weight: 900; line-height: 1; color: #fff; }
.mb-score b { display: inline-block; min-width: .62em; text-align: center; font-variant-numeric: tabular-nums; }
.mb-score i { font-style: normal; color: #5d636c; font-size: .6em; }
.mb-clock { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: rgba(239, 75, 75, .14); color: #ff8080; font: 800 13px var(--mono); }
.mb-clock #half { font-family: var(--font); color: var(--muted); font-weight: 700; font-size: 12px; }
.mb-scorers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; padding: 0 20px 8px; font-size: 12.5px; color: #c9cdd3; min-height: 22px; }
.mb-scorers .r { text-align: right; }
.mb-meta { color: var(--faint); font-size: 11.5px; text-align: center; white-space: nowrap; }
.mb-flow { position: relative; height: 74px; padding: 0 20px 6px; }
.mb-flow svg { display: block; width: 100%; height: 60px; }
.mb-flow rect { transition: height .3s; }
.flow-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; margin-top: -2px; }
.rc { display: inline-block; width: 8px; height: 11px; border-radius: 2px; background: var(--red); vertical-align: -1px; }

/* ícones dos lances (formas em CSS) */
.ball-ic { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #0b0c0e 0 22%, transparent 24%), #fff; border: 1px solid #0b0c0e; vertical-align: -2px; margin-right: 4px; }
.card-ic { display: inline-block; flex: none; width: 9px; height: 12px; border-radius: 2px; background: var(--yellow); vertical-align: -2px; }
.card-ic.red { background: var(--red); }
.sub-ic { display: inline-block; flex: none; width: 14px; height: 12px; background: linear-gradient(var(--lime), var(--lime)) 0 3px / 10px 2px no-repeat, linear-gradient(var(--red), var(--red)) 4px 8px / 10px 2px no-repeat; }
.glove-ic, .shot-ic, .whistle-ic, .board-ic { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; margin: 0 2px; }
.glove-ic { background: var(--blue); } .shot-ic { background: var(--orange); } .whistle-ic { background: var(--muted); } .board-ic { background: var(--lime); }

/* painel lateral */
.mpanel { padding: 12px; }
.ptabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 10px; background: var(--surface-2); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 12px; padding: 7px 6px; border-radius: 9px; cursor: pointer; transition: background-color .15s, color .15s; }
.ptabs button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.mpanel .feed { max-height: 560px; gap: 4px; }
.ev { grid-template-columns: 40px 1fr; padding: 8px 10px; border-radius: 10px; background: transparent; border-bottom: 1px solid var(--line-soft); animation: rise .3s var(--ease) both; }
.ev .m { font: 800 12px var(--font); color: var(--muted); padding-top: 1px; }
.ev-t { display: flex; align-items: flex-start; gap: 8px; }
.ev-t > i { margin-top: 4px; }
.ev.foul, .ev.longball, .ev.steal, .ev.wide { color: var(--muted); }
.ev.goal { background: linear-gradient(90deg, var(--lime-soft), transparent); border: 0; border-left: 3px solid var(--lime); font-weight: 400; }
.ev.card { border-left: 0; }
.ev.sub { border-left: 0; }
.ev.half, .ev.end, .ev.kickoff { background: var(--surface-2); font-weight: 700; border: 0; }
.goal-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.goal-row > span:not(.av) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.goal-row b { font-size: 13.5px; }
.goal-row small { color: var(--muted); }
.goal-row > img { width: 24px; height: 24px; object-fit: contain; }

.cmp-stats { display: grid; gap: 12px; padding: 4px 2px; }
.cs-v { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; font-size: 13px; }
.cs-v span { text-align: center; color: var(--muted); font-size: 12.5px; }
.cs-v b { font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 6px; justify-self: start; }
.cs-v b:last-child { justify-self: end; }
.cs-v b.win { background: var(--text); color: var(--bg); }
.cs-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 5px; }
.cs-bars i { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.cs-bars i::after { content: ""; position: absolute; top: 0; bottom: 0; width: var(--w, 0%); border-radius: 3px; transition: width .4s var(--ease); }
.cs-bars i:first-child::after { right: 0; background: var(--h); }
.cs-bars i:last-child::after { left: 0; background: var(--a); }
.tsides { display: grid; gap: 14px; }
.tside h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; }
.tside h4 img { width: 22px; height: 22px; object-fit: contain; }
.tside h4 .faint { margin-left: auto; font-weight: 700; }
.tside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tside li { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 8px; }
.tside li:hover { background: var(--surface-2); }
.tside li.gone { opacity: .55; }
.tside .tn { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.tside .tn b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tside .tn small { color: var(--faint); font-size: 11px; }
.tside .av { width: 30px; height: 30px; }

/* comemoração de gol */
.goal-pop {
  all: unset; position: absolute; left: 50%; top: 50%; z-index: 3; cursor: pointer;
  display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; border-radius: 18px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--gc) 55%, #0b0c0e), #0b0c0e 70%);
  border: 1px solid color-mix(in srgb, var(--gc) 60%, #fff 10%); color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transform: translate(-50%, -50%); animation: goal-in .5s var(--ease) both;
}
@keyframes goal-in { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-3deg); } 60% { transform: translate(-50%, -50%) scale(1.05); } 100% { opacity: 1; transform: translate(-50%, -50%); } }
.goal-pop .gp-crest img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.goal-pop .gp-face .av { width: 72px; height: 72px; border: 2px solid var(--gc); background: #1b1e23; }
.goal-pop .gp-txt { display: flex; flex-direction: column; line-height: 1.05; }
.goal-pop .gp-txt b { font-size: 56px; letter-spacing: 1px; color: #fff; }
.goal-pop.mine .gp-txt b { color: var(--lime); }
.goal-pop .gp-txt span { font-weight: 700; font-size: 15px; margin-top: 4px; }
.goal-pop .gp-txt small { font-size: 22px; color: #c9cdd3; margin-top: 2px; }
.goal-pop.theirs { filter: saturate(.8); }

@media (max-width: 720px) {
  .mb-top { gap: 8px; padding: 12px 12px 4px; }
  .mb-team { flex-direction: column; text-align: center; gap: 4px; }
  .mb-team.away { flex-direction: column; text-align: center; }
  .mb-team img { width: 40px; height: 40px; }
  .mb-team b { font-size: 16px; white-space: normal; }
  .mb-team small { display: none; }
  .mb-scorers { padding: 0 12px 6px; font-size: 11px; }
  .mb-meta { display: none; }
  .mb-scorers { grid-template-columns: 1fr 1fr; }
  .mb-flow { padding: 0 12px 6px; height: 64px; }
  .mb-flow svg { height: 50px; }
  .goal-pop { padding: 10px 14px 10px 10px; gap: 10px; }
  .goal-pop .gp-crest { display: none; }
  .goal-pop .gp-face .av { width: 52px; height: 52px; }
  .goal-pop .gp-txt b { font-size: 38px; }
}
.pre-card { text-align: center; }
.pre-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 14px 0 12px; }
.pre-vs span { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: pop .5s var(--ease) both; }
.pre-vs span:last-child { animation-delay: .12s; }
.pre-vs img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.pre-vs b { font-size: 22px; }
.pre-vs i { font-style: normal; font-size: 34px; color: var(--muted); }
.pre-card .hero-actions { justify-content: center; }
@media (max-width: 720px) {
  .pre-vs { margin: 8px 0; }
  .pre-vs img { width: 44px; height: 44px; }
  .pre-vs b { font-size: 16px; }
  .pre-card > p { font-size: 12.5px; margin: 6px 0 10px; }
  .overlay { padding: 8px; }
  .overlay .card { padding: 12px; }
}

.feedf { display: flex; margin-bottom: 8px; }
.feedf button { flex: 1; font-size: 12px; }
.feed.only-key .ev.longball, .feed.only-key .ev.steal, .feed.only-key .ev.foul { display: none; }

/* =========================================================================
   Tela inicial (#menu)
   ========================================================================= */
body.on-menu .topbar { background: transparent; border-bottom-color: transparent; position: absolute; left: 0; right: 0; }
body.on-menu main { padding: 0; max-width: none; }
body.on-menu .layout, body.onboard .layout { max-width: none; }
.menu {
  --text: #eceded; --muted: #aab1ba; --faint: #737a84; --surface: #15171b; --surface-2: #1b1e23; --line: #2b3038;
  position: relative; min-height: 100vh; overflow: hidden; color: var(--text);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 520px); grid-template-rows: 1fr auto; gap: 24px 48px;
  align-items: center; padding: 96px max(24px, calc((100% - 1240px) / 2)) 28px;
  background: radial-gradient(900px 600px at 15% 30%, rgba(199,240,60,.10), transparent 60%), linear-gradient(180deg, #0b0c0e, #07080a);
}
.mn-bg { position: absolute; inset: 0; pointer-events: none; }
.mn-pitch { position: absolute; inset: 8% -10% -30% 30%; transform: perspective(900px) rotateX(58deg); transform-origin: 50% 100%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 60px, transparent 60px 120px),
    linear-gradient(transparent 49.7%, rgba(255,255,255,.12) 49.7% 50.3%, transparent 50.3%),
    radial-gradient(circle at 50% 50%, transparent 0 13%, rgba(255,255,255,.12) 13% 13.4%, transparent 13.4%),
    linear-gradient(180deg, #13361f, #0b1a10);
  border: 2px solid rgba(255,255,255,.1); border-radius: 8px; opacity: .75;
  mask-image: linear-gradient(180deg, transparent, #000 35%);
}
.mn-bg img { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 46px; height: 46px; object-fit: contain;
  opacity: .1; filter: grayscale(.3); animation: drift 18s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
@keyframes drift { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-22px) rotate(4deg); } }
.mn-hero { position: relative; }
.mn-logo { font-size: clamp(84px, 13vw, 190px); line-height: .82; letter-spacing: -1px; margin: 0 0 18px; color: #fff; }
.mn-logo span { display: inline-block; color: var(--lime-ink); background: var(--lime); padding: 0 .08em; margin-right: .04em; border-radius: .06em; }
.mn-hero p { max-width: 480px; font-size: 17px; color: var(--muted); margin: 0; }
.mn-panel { position: relative; display: grid; gap: 18px; }
.mn-sec { display: grid; gap: 10px; }
.mn-cont {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 16px; border: 1px solid #2b3038;
  background: linear-gradient(110deg, color-mix(in srgb, var(--c1) 34%, #15171b), #15171b 65%);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.mn-cont:hover, .mn-cont:focus-visible { transform: translateY(-2px); border-color: var(--lime); box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.mn-crest { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.mn-info { display: grid; gap: 2px; min-width: 0; }
.mn-info small { color: var(--muted); font-size: 12px; }
.mn-info b { font-size: 30px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mn-meta img { width: 16px; height: 16px; object-fit: contain; }
.mn-actions { display: grid; gap: 8px; }
.mn-act { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid #2b3038; background: rgba(21,23,27,.85);
  color: var(--text); text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.mn-act:hover { border-color: #4a515b; background: #1b1e23; transform: translateX(3px); }
.mn-act b { font-size: 16px; }
.mn-act small { color: var(--muted); font-size: 12.5px; }
.mn-act.main { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.mn-act.main small { color: rgba(20,32,6,.75); }
.mn-act.main b { font-size: 20px; }
.mn-foot { grid-column: 1 / -1; font-size: 12px; position: relative; }
@media (max-width: 900px) {
  .menu { grid-template-columns: 1fr; padding: 84px 16px 24px; align-content: start; gap: 22px; }
  .mn-logo { font-size: clamp(72px, 24vw, 130px); }
  .mn-hero p { font-size: 15px; }
  .mn-cont { grid-template-columns: 48px 1fr; }
  .mn-cont .btn { grid-column: 1 / -1; }
  .mn-crest { width: 48px; height: 48px; }
  .mn-info b { font-size: 24px; }
}
