/* ---------- Página de campeonatos ---------- */
.page-champ { background: var(--bg); }

/* Topo */
.ch-hero {
  position: relative; overflow: hidden; color: #fff; padding: 130px 0 60px;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(255, 212, 0, .18), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(43, 107, 255, .45), transparent 60%),
    var(--navy);
}
.ch-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.ch-hero .wrap { position: relative; }
.ch-hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
/* Título dimensionado para caber na coluna da esquerda sem passar por baixo do cartão de ganhos */
.ch-hero h1 { font-size: clamp(50px, 6.6vw, 112px); }
@media (max-width: 860px) { .ch-hero h1 { font-size: clamp(50px, 13.4vw, 112px); } }
.ch-hero-in > * { min-width: 0; }
.ch-hero h1 span { color: var(--yellow); }
.ch-profile { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ch-profile li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #dbe6ff; }
.ch-profile li b { color: #fff; }
.ch-money {
  background: var(--yellow); color: var(--ink); border-radius: 26px; padding: 28px 30px; transform: rotate(-2deg);
  box-shadow: 0 10px 0 rgba(0,0,0,.25);
}
.ch-money small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b5500; }
.ch-money strong { display: block; font: 900 clamp(64px, 8vw, 104px)/.9 var(--font-d); font-stretch: 70%; margin: 8px 0 10px; }
.ch-money span { font-weight: 700; font-size: 15px; }
.ch-money span b { background: var(--ink); color: var(--yellow); padding: 3px 8px; border-radius: 6px; }

.ch-kpis { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; overflow: hidden; }
.kpi { padding: 22px 24px; }
.kpi + .kpi { border-left: 1px solid rgba(255,255,255,.16); }
.kpi b { display: block; font: 900 52px/.9 var(--font-d); font-stretch: 70%; color: var(--yellow); }
.kpi span { font-size: 13px; font-weight: 600; color: #b8c8ee; }

/* Ganhos por ano */
.ch-earn { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: end; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; align-items: end; height: 340px; padding-top: 30px; border-bottom: 2px solid var(--ink); }
.bar { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.bar .v { font: 800 17px/1 var(--font-d); font-stretch: 85%; color: var(--ink); white-space: nowrap; }
.bar .col {
  width: 100%; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, var(--blue-2), var(--blue));
  height: 0; transition: height 1s var(--ease);
}
.bar.max .col { background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); }
.bar .y { position: absolute; bottom: -30px; font: 900 20px/1 var(--font-d); font-stretch: 70%; color: var(--muted); }
.bars-wrap { padding-bottom: 34px; }

/* Destaques */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hl-card {
  position: relative; border-radius: 20px; padding: 22px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; min-height: 230px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.hl-card:hover { transform: translateY(-5px); box-shadow: 0 20px 36px rgba(21, 70, 214, .14); }
.hl-card .place { font: 900 64px/.85 var(--font-d); font-stretch: 65%; color: var(--blue); }
.hl-card.gold .place { color: #e0a800; }
.hl-card.gold { background: linear-gradient(160deg, #fff8d6, #fff 60%); border-color: #ffe27a; }
.hl-card .meta { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hl-card h3 { font-size: 22px; line-height: 1; }
.hl-card .with { font-size: 13px; color: var(--muted); margin-top: auto; }
.hl-card .with b { color: var(--text); }
.hl-card .prize { align-self: flex-start; font: 800 18px/1 var(--font-d); font-stretch: 85%; background: var(--ink); color: var(--yellow); padding: 7px 12px; border-radius: 8px; }

/* Abas segmentadas */
.seg { display: inline-flex; padding: 5px; border-radius: 14px; background: var(--bg-alt); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; cursor: pointer; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.seg-sm button { padding: 8px 12px; font-size: 13px; }

/* Parceiros */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner { border-radius: 20px; border: 2px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; background: #fff; transition: border-color .2s, transform .25s var(--ease); }
.partner:hover { border-color: var(--blue); transform: translateY(-4px); }
.partner.top { border-color: var(--ink); background: var(--ink); color: #fff; }
.partner .p-head { display: flex; align-items: center; gap: 12px; }
.avs { display: flex; }
.avs span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 900 20px var(--font-d); background: var(--blue-soft, #e8efff); color: var(--blue); border: 3px solid #fff; }
.avs span + span { margin-left: -10px; }
.partner.top .avs span { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.partner h3 { font-size: 26px; line-height: .95; }
.partner .p-rank { margin-left: auto; font: 900 32px/1 var(--font-d); font-stretch: 65%; color: var(--line); }
.partner.top .p-rank { color: var(--yellow); }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-stats div { background: var(--bg-alt); border-radius: 12px; padding: 10px 12px; }
.partner.top .p-stats div { background: rgba(255,255,255,.08); }
.p-stats b { display: block; font: 900 24px/1 var(--font-d); font-stretch: 75%; }
.p-stats span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.partner.top .p-stats span { color: #9fb4e8; }
.p-best { font-size: 13px; color: var(--muted); }
.p-best b { color: var(--text); }
.partner.top .p-best { color: #b8c8ee; }
.partner.top .p-best b { color: #fff; }

/* Times */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: t; }
.timeline li { position: relative; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.timeline li b { display: block; font: 900 28px/1 var(--font-d); font-stretch: 70%; text-transform: uppercase; }
.timeline li span { font-size: 13px; color: #9fb4e8; }
.timeline li.now { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.timeline li.now span { color: #5b4a00; font-weight: 600; }
.timeline li.now::after { content: "Atual"; position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: var(--yellow); padding: 4px 8px; border-radius: 6px; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.f-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); }
.f-search:focus-within { border-color: var(--blue); }
.f-search input { flex: 1; border: 0; outline: 0; padding: 12px 0; font: inherit; color: var(--text); background: transparent; min-width: 0; }
.filters select { padding: 12px 36px 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; font-weight: 600; color: var(--text); background: #fff; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.filters select:focus { outline: 0; border-color: var(--blue); }
.f-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.f-check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Tabela */
.table-wrap { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.results { width: 100%; border-collapse: collapse; font-size: 14px; }
.results th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg-alt); padding: 14px 16px; }
.results td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.results tbody tr:hover { background: #fafcff; }
.results .r { text-align: right; }
.results .date { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.results .t-name { font-weight: 700; color: var(--ink); }
.results .t-name a:hover { color: var(--blue); text-decoration: underline; }
.results .t-tier { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--bg-alt); padding: 2px 7px; border-radius: 5px; }
.results .t-tier.s { background: var(--ink); color: var(--yellow); }
.results .team { color: var(--muted); }
.results .team b { color: var(--text); font-weight: 600; }
.results .prize { font: 800 16px/1 var(--font-d); font-stretch: 85%; color: var(--ink); white-space: nowrap; }
.results .prize.none { color: #b8c0d0; font-weight: 600; }
.fmt { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #e8efff; color: var(--blue); white-space: nowrap; }
.fmt.solo { background: #f1f1f5; color: #555c70; }
.fmt.trio { background: #fff3c4; color: #7a5d00; }
.fmt.squad { background: #ffe1e1; color: #a12b2b; }
.pl { display: inline-grid; place-items: center; min-width: 52px; padding: 6px 8px; border-radius: 10px; font: 900 18px/1 var(--font-d); font-stretch: 75%; background: var(--bg-alt); color: var(--text); }
.pl.p1 { background: var(--yellow); color: var(--ink); }
.pl.p2 { background: #dfe4ee; color: #333b50; }
.pl.p3 { background: #f6d2ad; color: #6b3a0b; }
.pl.p10 { background: #e8efff; color: var(--blue); }
.empty-row td { text-align: center; color: var(--muted); padding: 40px; }
.more-row { display: flex; justify-content: center; margin-top: 18px; }
.more-row[hidden] { display: none; }

/* Prêmios especiais */
.awards { margin-top: 40px; padding: 24px 26px; border-radius: 20px; background: var(--bg-alt); }
.awards h3 { font-size: 26px; margin-bottom: 12px; }
.awards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.awards li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 12px 16px; background: #fff; border-radius: 12px; font-size: 14px; }
.awards li .aw { font-weight: 800; color: var(--blue); }
.awards li .pz { margin-left: auto; font: 800 16px var(--font-d); font-stretch: 85%; }
@media (max-width: 600px) {
  .awards { margin-top: 28px; padding: 18px 14px; }
  .awards h3 { font-size: 22px; }
  /* data · prêmio em dinheiro na 1ª linha; "Venceu uma partida" e o torneio embaixo, alinhados à esquerda */
  .awards li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "date pz" "aw aw" "tx tx"; gap: 4px 12px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
  .awards li .date { grid-area: date; color: var(--muted); font-size: 13px; }
  .awards li .aw { grid-area: aw; }
  .awards li > span:nth-child(3) { grid-area: tx; }
  .awards li .pz { grid-area: pz; margin: 0; font-size: 17px; }
}

.footer a u { color: #fff; }

/* Responsivo */
@media (max-width: 1080px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .ch-earn { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .ch-hero { padding-top: 100px; }
  .ch-hero-in { grid-template-columns: 1fr; }
  .ch-money { justify-self: start; }
  .ch-kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
  .bars { height: 260px; gap: 8px; }
  .bar .v { font-size: 13px; }
  /* tabela vira cartões */
  .table-wrap { border: 0; border-radius: 0; }
  .results thead { display: none; }
  .results, .results tbody, .results tr, .results td { display: block; width: 100%; }
  .results tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; background: #fff; }
  .results td { padding: 0; border: 0; }
  .results td.c-place { grid-row: span 3; align-self: start; }
  .results td.c-date { grid-column: 2; font-size: 12px; }
  .results td.c-prize { grid-column: 3; grid-row: 1; }
  .results td.c-name { grid-column: 2 / span 2; }
  .results td.c-fmt { display: none; }
  .results td.c-team { grid-column: 2 / span 2; font-size: 13px; }
  .empty-row { display: block !important; }
}
@media (max-width: 600px) {
  .highlights, .partners, .timeline { grid-template-columns: 1fr; }
  .kpi { padding: 16px; }
  .kpi b { font-size: 40px; }
  .filters select { flex: 1 1 140px; }
  .seg-sm { width: 100%; justify-content: space-between; }
  .seg-sm button { flex: 1; padding: 8px 4px; }
  .bar .v { font-size: 11px; writing-mode: vertical-rl; transform: rotate(180deg); }
}
.partner .p-now { margin-left: auto; align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: var(--yellow); color: var(--ink); padding: 5px 9px; border-radius: 6px; white-space: nowrap; }

/* ---------- Fortnite Tracker + Liquipedia ---------- */
/* 8 números no topo (2 linhas de 4) */
.ch-kpis .kpi:nth-child(4n+1) { border-left: 0; }
.ch-kpis .kpi:nth-child(n+5) { border-top: 1px solid rgba(255,255,255,.16); }
.ch-src { margin: 12px 0 0; font-size: 12px; color: #9fb4e8; }
/* Barras em dois tons: oficiais da Epic (embaixo) + terceiros (em cima) */
.bar .col { background: linear-gradient(to top, var(--blue) 0 var(--off, 100%), #9db8ff var(--off, 100%) 100%); }
.bar.max .col { background: linear-gradient(to top, #f0c400 0 var(--off, 100%), var(--yellow-2) var(--off, 100%) 100%); }
.bars-legend { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.bars-legend li { display: flex; align-items: center; gap: 10px; }
.bars-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.lg-off { background: var(--blue); }
.lg-oth { background: #9db8ff; }
/* Tabela: rodada e números da sessão */
.results .t-session { font-size: 13px; color: var(--muted); margin-top: 2px; }
.results .t-stats, .results .t-src { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.results .t-src { font-style: italic; }
.results .t-tier { margin-right: 6px; }
@media (max-width: 860px) {
  .ch-kpis .kpi:nth-child(odd) { border-left: 0; }
  .ch-kpis .kpi:nth-child(even) { border-left: 1px solid rgba(255,255,255,.16); }
  .ch-kpis .kpi:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.16); }
}
/* Cards de parceiros nunca passam da largura da tela (ex.: anos "21·23·24·25·26") */
.partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.partner, .p-stats div { min-width: 0; }
.p-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-stats b { overflow-wrap: anywhere; }
@media (max-width: 1080px) { .partners { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .partners { grid-template-columns: minmax(0, 1fr); } }
.p-head > h3 { min-width: 0; overflow-wrap: anywhere; }
.p-stats b { overflow-wrap: normal; white-space: nowrap; }

/* ---------- Destaque: FNCS Summit Düsseldorf ---------- */
.summit .sm-hl { color: var(--yellow); }
.summit .lead { color: #c4d6ff; max-width: 60ch; }
.sm-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
.sm-win {
  position: relative; overflow: hidden; border-radius: 26px; padding: 30px; color: var(--ink);
  background: radial-gradient(420px 260px at 100% 0%, rgba(255,255,255,.45), transparent 60%), var(--yellow);
  display: flex; flex-direction: column; gap: 18px;
}
.sm-win-head { position: relative; display: flex; flex-direction: column; gap: 4px; }
.sm-win-head b { font: 900 34px/1 var(--font-d); font-stretch: 70%; text-transform: uppercase; }
.sm-win-head span { font-size: 14px; font-weight: 600; color: #5b4a00; }
.sm-win-head .sm-duo { align-self: flex-start; margin-top: 8px; background: var(--ink); color: var(--yellow); padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 15px; }
.sm-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; position: relative; }
.sm-stats li { background: rgba(255,255,255,.55); border-radius: 14px; padding: 14px; }
.sm-stats b { display: block; font: 900 44px/.9 var(--font-d); font-stretch: 70%; }
.sm-stats span { font-size: 12px; font-weight: 700; color: #5b4a00; }
.sm-note { position: relative; margin: auto 0 0; font-size: 14px; color: #4a3d00; }


.sm-path { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: st; }
.sm-path li { position: relative; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 4px; }
.sm-path li .d { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #9fb4e8; }
.sm-path li b { font: 900 22px/1 var(--font-d); font-stretch: 75%; text-transform: uppercase; }
.sm-path li span:last-child { font-size: 14px; color: #c4d6ff; }
.sm-path li.now { border-color: var(--yellow); box-shadow: inset 0 0 0 1px var(--yellow); }
.sm-path li.now b { color: var(--yellow); }

.sm-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-facts li { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #dbe6ff; }
.sm-src { margin: 16px 0 0; font-size: 12px; color: #9fb4e8; }
.sm-src a u { color: #fff; }

@media (max-width: 1080px) { .sm-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .sm-path { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .sm-win { padding: 22px; }
  .sm-win-head b { font-size: 28px; }
  .sm-stats b { font-size: 34px; }
}
/* Separa a seção do topo (também escuro) com um azul mais vivo */
.summit { background: linear-gradient(160deg, var(--blue) 0%, var(--navy-2) 70%); }
.summit::before { background: radial-gradient(700px 420px at 90% 0%, rgba(255, 212, 0, .16), transparent 60%); }
/* Clipe da vitória (Twitch) */
.sm-clip { margin-top: 22px; }
.sm-clip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sm-clip-head h3 { font-size: 28px; }
.sm-player { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; border: 2px solid rgba(255,255,255,.14); }
.sm-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.sm-clip-load { background: radial-gradient(circle at center, rgba(145, 70, 255, .35), transparent 60%), linear-gradient(140deg, var(--navy-2), #050f30); }
.sm-clip-load .play { background: #9146ff; color: #fff; box-shadow: 0 0 0 12px rgba(145, 70, 255, .25); }
/* Prêmio no mundial (Summit) */
.summit .sec-head { align-items: center; }
.sm-prize {
  background: var(--yellow); color: var(--ink); border-radius: 24px; padding: 22px 26px; transform: rotate(-2deg);
  box-shadow: 0 10px 0 rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 4px; min-width: 260px;
}
.sm-prize small { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6b5500; }
.sm-prize strong { font: 900 clamp(60px, 7vw, 92px)/.9 var(--font-d); font-stretch: 70%; margin: 4px 0; }
.sm-prize span { font-size: 15px; font-weight: 700; }
.sm-prize span b { background: var(--ink); color: var(--yellow); padding: 2px 7px; border-radius: 6px; }
.sm-prize .sm-prize-why { font-size: 13px; font-weight: 600; color: #5b4a00; }
@media (max-width: 860px) { .sm-prize { transform: none; align-self: flex-start; } }
@media (max-width: 600px) { .sm-prize { width: 100%; min-width: 0; } }
.sm-note { margin-top: 0; }
/* Card da partida 5 sozinho, na largura toda (sem "Top 5" e sem "Partida a partida") */
.sm-grid { grid-template-columns: 1fr; }
.sm-win { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head note" "stats stats"; gap: 22px 40px; padding: 34px; }
.sm-win-head { grid-area: head; }
.sm-win .sm-note { grid-area: note; position: relative; align-self: center; margin: 0; font-size: 16px; line-height: 1.6; }
.sm-win .sm-stats { grid-area: stats; }
.sm-win .sm-stats b { font-size: 56px; }
@media (max-width: 860px) {
  .sm-win { grid-template-columns: 1fr; grid-template-areas: "head" "stats" "note"; padding: 24px; gap: 18px; }
  .sm-win .sm-note { font-size: 14px; }
  .sm-win .sm-stats b { font-size: 40px; }
}
@media (max-width: 600px) { .sm-win .sm-stats b { font-size: 32px; } }

/* Números que contam: dígitos com a mesma largura, pra não tremer durante a animação */
#totalEarn, #yearEarn b, .ch-kpis .kpi b, .sm-prize strong, .sm-prize b, .sm-stats b, .bar .v { font-variant-numeric: tabular-nums; }

/* Selo "Mais recente" sobre a borda de cima do card (celular e computador), para nomes longos não quebrarem no meio */
.partner { position: relative; }
.partner .p-now { position: absolute; top: -11px; right: 16px; margin: 0; }
.partner .p-head > h3 { overflow-wrap: normal; word-break: normal; }

/* ---------- Filtros dos parceiros: barra única ---------- */
.p-toolbar { display: grid; gap: 12px; margin: -16px 0 30px; padding: 12px; border-radius: 20px; background: var(--bg-alt); border: 1px solid var(--line); }
.p-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Destaque azul que desliza até a opção escolhida */
.seg-slide { position: relative; }
.seg-slide .seg-pill {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 10px;
  background: var(--blue); box-shadow: 0 6px 14px rgba(21, 70, 214, .28);
  transition: transform .35s var(--ease), width .35s var(--ease), height .35s var(--ease), opacity .2s;
}
.seg-slide button { position: relative; z-index: 1; }
.seg-slide button[aria-selected="true"], .seg-slide button[aria-pressed="true"] { background: transparent; color: #fff; }
#partnerTabs { background: #fff; }

/* Contagem de parceiros em cada formato */
#partnerTabs .cnt {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px;
  font-size: 12px; font-variant-numeric: tabular-nums; background: var(--bg-alt); color: var(--muted); transition: background .2s, color .2s;
}
#partnerTabs button[aria-selected="true"] .cnt { background: rgba(255, 255, 255, .22); color: #fff; }
#partnerTabs button.is-empty { opacity: .5; }

/* Chave "Só oficiais da Epic" */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: #c6cfe6; transition: background .25s; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(7, 26, 77, .25); transition: transform .25s var(--ease); }
.switch input:checked + .sw { background: var(--blue); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Anos: fileira de chips que rola para o lado quando não cabe */
.p-years { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 6px; }
.p-years-label { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; gap: 2px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; border: 0; background: transparent; cursor: pointer; padding: 8px 14px; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .2s;
}
.chips button:hover { color: var(--blue); }
.chips button[aria-pressed="true"]:hover { color: #fff; }

/* Cards entram em sequência a cada troca de filtro */
.partners .p-flip { animation: pIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.partners .p-empty { animation: pIn .4s var(--ease) both; }
@keyframes pIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .partners .p-flip, .partners .p-empty { animation: none; }
  .seg-slide .seg-pill { transition: none; }
}

@media (max-width: 600px) {
  .p-toolbar { padding: 10px; }
  #partnerTabs { width: 100%; }
  #partnerTabs button { flex: 1; padding: 10px 6px; }
  .p-years { padding-left: 4px; }
}

/* Ano: ícone de calendário no lugar da palavra, e "Todos" separado dos anos */
.p-years-label { display: none; }
.p-years-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--blue); border: 1px solid var(--line); }
.p-years-ico svg { width: 18px; height: 18px; }
.chip-sep { flex: none; align-self: center; width: 2px; height: 20px; margin: 0 8px; border-radius: 2px; background: #b9c4e0; }
.chips { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Filtros dos parceiros: versão compacta e minimalista ---------- */
/* Computador: barra mais baixa, botões menores e destaque azul com sombra bem leve */
@media (min-width: 601px) {
  .p-toolbar { gap: 6px; padding: 8px 10px; border-radius: 16px; margin: -20px 0 26px; background: transparent; border-color: var(--line); }
  #partnerTabs { padding: 3px; border-radius: 11px; gap: 2px; }
  #partnerTabs button { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
  #partnerTabs .cnt { min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; font-size: 11px; }
  .chips button { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
  .p-years { gap: 8px; padding-left: 2px; }
  .p-years-ico { width: 26px; height: 26px; border-radius: 8px; }
  .p-years-ico svg { width: 14px; height: 14px; }
  .chip-sep { height: 16px; margin: 0 6px; }
  .switch { font-size: 13px; gap: 8px; }
  .switch .sw { width: 34px; height: 20px; }
  .switch .sw::after { top: 3px; left: 3px; width: 14px; height: 14px; }
  .switch input:checked + .sw::after { transform: translateX(14px); }
  .seg-slide .seg-pill { border-radius: 8px; }
}
.seg-slide .seg-pill { box-shadow: 0 1px 3px rgba(21, 70, 214, .18); }

/* Celular: formato em cima, anos no meio e a chave "Só oficiais da Epic" embaixo dos anos */
@media (max-width: 600px) {
  .p-bar { display: contents; }
  #partnerTabs { order: 1; }
  .p-years { order: 2; }
  .switch { order: 3; padding-left: 4px; }
}

/* Telas largas: formato, anos e chave numa linha só */
@media (min-width: 1081px) {
  .p-toolbar { display: flex; align-items: center; gap: 14px; padding: 6px 12px 6px 6px; }
  .p-bar { display: contents; }
  #partnerTabs { order: 1; }
  .p-years { order: 2; flex: 1; padding-left: 0; }
  .switch { order: 3; margin-left: auto; }
}

/* Telas largas: a chave fica logo depois dos anos (com um traço separando), e a barra só ocupa o espaço que precisa */
@media (min-width: 1081px) {
  .p-toolbar { width: fit-content; max-width: 100%; }
  .p-years { flex: 0 1 auto; }
  .switch { margin-left: 0; }
  .switch::before { content: ""; width: 2px; height: 16px; border-radius: 2px; background: #b9c4e0; margin-right: 6px; }
}

/* ---------- Ganhos por ano: barras interativas + painel do ano ---------- */
.bars .bar { appearance: none; border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bars .bar .col { transition: height 1s var(--ease), opacity .16s ease-out, transform .2s var(--ease); transform-origin: bottom; will-change: transform, opacity; }
.bars .bar .v, .bars .bar .y { transition: color .16s, opacity .16s ease-out, transform .2s var(--ease); }
/* Quando um ano está escolhido, os outros ficam mais apagados */
.bars.has-on .bar:not(.on) .col { opacity: .35; }
.bars.has-on .bar:not(.on) .v { opacity: .45; }
.bars .bar.on .col { transform: scaleX(1.06); }
.bars .bar.on .v { transform: translateY(-4px); color: var(--blue); }
.bars .bar.max.on .v { color: #b88a00; }
.bars .bar.on .y { color: var(--ink); }
.bars .bar:focus-visible { outline: none; }
.bars .bar:focus-visible .col { outline: 3px solid var(--blue); outline-offset: 3px; }

.bar-detail {
  margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(21, 70, 214, .07); min-height: 210px;
}
.bd-top { display: flex; align-items: center; gap: 10px; }
.bd-year { font: 900 30px/1 var(--font-d); font-stretch: 75%; color: var(--ink); }
.bd-badge { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 4px 8px; border-radius: 6px; }
.bd-total { margin-top: 6px; font: 900 40px/1 var(--font-d); font-stretch: 80%; color: var(--blue); font-variant-numeric: tabular-nums; }
.bd-total small { display: block; margin-top: 6px; font: 600 13px/1.3 var(--font-b); color: var(--muted); }
.bd-split { margin: 14px 0 12px; height: 8px; border-radius: 99px; background: #9db8ff; overflow: hidden; }
.bd-split i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .5s var(--ease); }
.bd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 14px; }
.bd-list li { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
.bd-list li span { display: inline-flex; align-items: center; gap: 6px; }
.bd-list li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bd-list i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bd-best { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.bd-best b { color: var(--ink); }
.bar-hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .bd-list { grid-template-columns: 1fr; }
  .bd-total { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .bars .bar .col, .bars .bar .v, .bd-split i { transition: none; }
}
@media (max-width: 600px) {
  /* No celular os valores ficam de lado: mantém a rotação na barra escolhida */
  .bars .bar.on .v { transform: rotate(180deg); }
}

/* ---------- Premiações: cards que giram (frente = resultado, verso = números do torneio) ---------- */
.hl-flip { perspective: 1200px; cursor: pointer; border-radius: 20px; outline: none; -webkit-tap-highlight-color: transparent; transition: transform .25s var(--ease); }
.hl-flip:hover { transform: translateY(-5px); }
.hl-flip:focus-visible .hl-card { outline: 3px solid var(--blue); outline-offset: 3px; }
.hl-inner {
  display: grid; height: 100%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1); /* sem passar dos 180°: não mostra a borda nem o conteúdo espelhado */
}
.hl-flip.is-flipped .hl-inner { transform: rotateY(180deg); }
.hl-flip .hl-card { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: box-shadow .25s; }
/* Cada face tem sua rotação fixa, inclusive com o mouse em cima (o efeito de subir é no card inteiro, .hl-flip:hover) */
.hl-flip .hl-front, .hl-flip .hl-front:hover { transform: rotateY(0deg) translateZ(1px); }
.hl-flip .hl-back, .hl-flip .hl-back:hover { transform: rotateY(180deg) translateZ(1px); }
.hl-flip:hover .hl-card { box-shadow: 0 20px 36px rgba(21, 70, 214, .14); }
.hl-back { background: var(--navy); border-color: var(--navy); color: #fff; gap: 12px; }
.hl-flip.gold .hl-back { background: linear-gradient(160deg, #1a2f73, var(--navy) 70%); border-color: #ffe27a; }
.hl-back .meta { color: #9fb4e8; }
.hl-back h4 { margin: 0; font: 900 18px/1.05 var(--font-d); font-stretch: 80%; text-transform: uppercase; color: #fff; }

.hl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hl-turn { font-size: 12px; font-weight: 700; color: var(--blue); white-space: nowrap; opacity: .75; transition: opacity .2s, transform .3s var(--ease); }
.hl-flip:hover .hl-front .hl-turn { opacity: 1; transform: translateX(-2px); }
.hl-back .hl-turn { color: #9fb4e8; }

.hb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hb-stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 9px 10px; min-width: 0; }
.hb-stat b { display: block; font: 900 24px/1 var(--font-d); font-stretch: 75%; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hb-stat span { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; color: #b8c8ee; line-height: 1.2; }
.hb-stat.hl { background: var(--yellow); border-color: var(--yellow); }
.hb-stat.hl b, .hb-stat.hl span { color: var(--ink); }
.hb-none { margin: 0; font-size: 13px; color: #c9d6f5; }
.hb-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hb-foot a { font-size: 12px; font-weight: 700; color: var(--yellow); }
.hb-src { font-size: 11px; line-height: 1.3; color: #9fb4e8; }
.hb-foot a:hover { text-decoration: underline; }

/* Ao girar, os números do verso entram um depois do outro */
.hl-flip.is-flipped .hb-stat { animation: hbIn .45s var(--ease) both; }
.hl-flip.is-flipped .hb-stat:nth-child(1) { animation-delay: .25s; }
.hl-flip.is-flipped .hb-stat:nth-child(2) { animation-delay: .3s; }
.hl-flip.is-flipped .hb-stat:nth-child(3) { animation-delay: .35s; }
.hl-flip.is-flipped .hb-stat:nth-child(4) { animation-delay: .4s; }
.hl-flip.is-flipped .hb-stat:nth-child(5) { animation-delay: .45s; }
.hl-flip.is-flipped .hb-stat:nth-child(6) { animation-delay: .5s; }
@keyframes hbIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .hl-inner { transition: none; }
  .hl-flip.is-flipped .hb-stat { animation: none; }
}

/* Celular: dica de que o card vira ao tocar (espiada no verso + aviso pulsando) */
@keyframes hlPeek { 0%, 100% { transform: rotateY(0); } 45% { transform: rotateY(-22deg); } 70% { transform: rotateY(6deg); } }
.hl-flip.peek:not(.is-flipped) .hl-inner { animation: hlPeek .9s cubic-bezier(.4, 0, .2, 1); }
@keyframes hlHint { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (hover: none) {
  .hl-flip:not(.is-flipped) .hl-front .hl-turn { opacity: 1; animation: hlHint 2.4s ease-in-out infinite; }
  .hl-flip:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hl-flip.peek .hl-inner, .hl-flip .hl-front .hl-turn { animation: none !important; }
}



/* ---------- Jogadores: cards que giram como os das Premiações (frente = parceiros, sessões, ganhos e anos; verso = o resto) ---------- */
.p-flip { border-radius: 20px; }
.p-flip .partner { min-height: 0; overflow: visible; }
.p-flip:hover .partner:not(.top) { border-color: var(--blue); }
.p-flip .p-turn { margin-top: auto; align-self: flex-end; }
.partner.top .p-turn { color: var(--yellow); }
.p-back { border-width: 2px; padding: 22px; }
.p-flip.top .p-back { background: linear-gradient(160deg, #1a2f73, var(--navy) 70%); border-color: var(--yellow); }
.p-back h4 { overflow-wrap: anywhere; }
.p-back .hb-stat b { font-size: 22px; }
.pb-line { margin: 0; font-size: 13px; line-height: 1.4; color: #c9d6f5; }
.pb-line b, .p-back .hb-src b { color: #fff; }
.p-back .hb-src { font-size: 12px; }
/* Frente estilo carta: formato, nick grande e faixa de números embaixo */
.p-flip .pc { justify-content: space-between; gap: 12px; }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-fmt { font: 800 11px/1 var(--font-d); font-stretch: 100%; letter-spacing: .14em; text-transform: uppercase; background: var(--blue); color: #fff; padding: 6px 10px 5px; transform: skewX(-12deg); }
.partner.top .pc-fmt { background: var(--yellow); color: var(--ink); }
.pc-with { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.partner.top .pc-with { color: #9fb4e8; }
.partner .pc-name { margin: 4px 0 0; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.partner .pc-name.md { font-size: 24px; }
.partner .pc-name.sm { font-size: 22px; }
.pc-strip { display: grid; grid-template-columns: 1fr 1.3fr 1fr; border-top: 2px solid var(--line); padding-top: 14px; }
.partner.top .pc-strip { border-color: rgba(255, 255, 255, .14); }
.pc-strip div { min-width: 0; padding: 0 10px; }
.pc-strip div:first-child { padding-left: 0; }
.pc-strip div + div { border-left: 1px solid var(--line); }
.partner.top .pc-strip div + div { border-color: rgba(255, 255, 255, .14); }
.pc-strip b { display: block; font: 900 28px/1 var(--font-d); font-stretch: 72%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-strip span { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.partner.top .pc-strip span { color: #9fb4e8; }
.pc-strip .has b { color: var(--blue); }
.partner.top .pc-strip .has b { color: var(--yellow); }
.pc-foot { display: flex; justify-content: flex-end; }
.p-back { gap: 10px; }
.pc-top .p-now { position: static; margin-left: auto; }
.partner .pc-name > span { color: var(--blue); }
.partner.top .pc-name > span { color: var(--yellow); }

/* Times: animação ao passar o mouse (sobe, clareia, borda amarela e faixa amarela crescendo embaixo) */
.timeline li { overflow: hidden; transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; }
.timeline li b { transition: transform .3s var(--ease); }
.timeline li::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.timeline li.now::before { background: var(--ink); }
@media (hover: hover) {
  .timeline li:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .12); border-color: rgba(255, 212, 0, .7); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); }
  .timeline li.now:hover { background: #ffdc2e; border-color: var(--yellow); box-shadow: 0 14px 30px rgba(255, 212, 0, .3); }
  .timeline li:hover b { transform: translateX(4px); }
  .timeline li:hover::before { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .timeline li, .timeline li b, .timeline li::before { transition: none; } }

/* Card da partida 5: explicação num quadro (título pequeno + 2 pontos com ✓), em vez de parágrafo solto */
.sm-win .sm-note { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .42); border: 1px solid rgba(10, 20, 48, .1); color: #3d3300; font-size: 15px; line-height: 1.5; }
.sm-note-lbl { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 800 11px/1 var(--font-b); letter-spacing: .14em; text-transform: uppercase; color: #7a6200; }
.sm-note-lbl::before { content: "★"; font-size: 13px; color: var(--ink); }
.sm-note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sm-note li { position: relative; padding-left: 28px; }
.sm-note li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); font: 900 11px/1 var(--font-b); }
.sm-note b { color: var(--ink); font-weight: 800; }
@media (max-width: 860px) { .sm-win .sm-note { font-size: 14px; padding: 14px 16px; } }

/* Destaque no texto de abertura do mundial ("partida 5"): marca amarela com texto escuro */
.lead .sm-lead-hl { display: inline-block; background: var(--yellow); color: #0a1430; font-weight: 800; padding: 0 8px; border-radius: 6px; line-height: 1.45; white-space: nowrap; transform: skewX(-6deg); }
