/* =====================================================================
   Torneios CTMINHO — identidade do clube
   Verde e laranja do logótipo, Montserrat + Inter, azul dos courts
   ===================================================================== */
:root {
  --green: #45ad61;          /* verde CTMINHO (logótipo) */
  --green-strong: #2f7d45;   /* verde escuro para texto/hover */
  --green-soft: #e8f5ec;
  --orange: #fa7a08;         /* laranja CTMINHO (logótipo) */
  --orange-soft: #fff1e3;
  --court: #1f8fd6;          /* azul dos courts de Vila Verde */
  --ink: #18202b;
  --muted: #5d6877;
  --line: #e3e9e5;
  --bg: #f7f9f8;
  --card: #ffffff;
  --shadow: 0 12px 40px -18px rgba(24, 60, 36, .22);
  --radius: 22px;
  --container: 1180px;
  --head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-strong); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
main { min-height: 60vh; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--muted); font: 600 .92rem/1 var(--head); text-decoration: none; }
.nav a:hover { color: var(--green-strong); background: var(--green-soft); }
.nav a[aria-current="page"] { color: #fff; background: var(--green); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 20px; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; display: none; flex-direction: column;
         padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px; }
}

/* ---------- Hero com a foto dos courts ---------- */
.hero { position: relative; min-height: 78vh; display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero.compact { min-height: 0; }
.hero-bg, .hero-overlay { position: absolute; inset: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(180deg, rgba(18,26,34,.70) 0%, rgba(18,26,34,.52) 45%, rgba(18,26,34,.84) 100%); }
.hero-content { position: relative; z-index: 1; padding: 96px 0 84px; text-align: center; }
.hero.compact .hero-content { padding: 56px 0 48px; }
.hero-logo { height: 76px; width: auto; margin: 0 auto 26px; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 7px 14px; border-radius: 999px;
  background: rgba(250, 122, 8, .18); color: #ffae5c;
  font: 800 .8rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); font-weight: 900; line-height: .96; max-width: 16ch; margin: 0 auto; text-wrap: balance; }
.hero.compact h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 22ch; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.hero-badges span {
  padding: 10px 16px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(10px);
}
.hero-badges .estado { background: var(--green); border-color: var(--green); }
.champion { margin: 22px 0 0; font-size: 1.05rem; }
.champion b { font-family: var(--head); font-weight: 800; color: #ffae5c; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; font: 700 .95rem/1 var(--head); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--green); color: #fff; box-shadow: 0 14px 30px -16px rgba(69,173,97,.9); }
.btn.primary:hover { background: var(--green-strong); color: #fff; }
.btn.ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.14); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero:not(.compact) h1 { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- Secções ---------- */
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.head a { font-weight: 600; }
.empty { background: #fff; border: 1px dashed #c6d3cb; border-radius: var(--radius); padding: 28px; color: var(--muted); }

/* estados */
.tag { display: inline-block; padding: 6px 11px; border-radius: 999px; font: 700 .78rem/1 var(--head); white-space: nowrap; background: var(--green-soft); color: var(--green-strong); }
.tag.inscricoes { background: var(--orange); color: #fff; }
.tag.a-decorrer { background: #d93b3b; color: #fff; }
.tag.terminado { background: #eef1f3; color: var(--muted); }
.tag.masters { background: var(--ink); color: #ffae5c; }

/* lista do histórico */
.tlist { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tlist li + li { border-top: 1px solid var(--line); }
.tlist a { display: grid; grid-template-columns: 64px 1fr auto 20px; gap: 4px 18px; align-items: center; padding: 16px 22px; color: var(--ink); text-decoration: none; }
.tlist a:hover { background: #f5faf6; color: var(--ink); }
.tlist a:hover .tgo { color: var(--green); transform: translateX(3px); }
.tyear { font: 900 1.05rem/1 var(--head); color: var(--green); }
.tmain { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tname { font: 700 1.05rem/1.3 var(--head); }
.tdate { font-size: .88rem; color: var(--muted); }
.tchamp { font-size: .92rem; color: var(--muted); white-space: nowrap; }
.tgo { font: 700 1.5rem/1 var(--head); color: #b9c4bd; transition: transform .15s, color .15s; }
@media (max-width: 640px) {
  .tlist a { grid-template-columns: 1fr 20px; gap: 2px 12px; padding: 14px 18px; }
  .tyear, .tmain, .tchamp { grid-column: 1; }
  .tgo { grid-column: 2; grid-row: 1 / span 3; }
}

/* ---------- Página de torneio ---------- */
.tabs { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 10; background: rgba(247,249,248,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs .container { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.tabs .container::-webkit-scrollbar { display: none; }
.tabs button { flex-shrink: 0; border: 0; border-radius: 999px; padding: 10px 18px; background: transparent; color: var(--muted); font: 700 .9rem/1 var(--head); cursor: pointer; }
.tabs button:hover { background: var(--green-soft); color: var(--green-strong); }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.panel { padding: 44px 0 72px; }
.panel[hidden] { display: none; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.info-grid div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.info-grid dt { color: var(--muted); font-size: .88rem; }
.info-grid dd { margin: 4px 0 0; font: 800 1.1rem/1.3 var(--head); }

.rules { list-style: none; counter-reset: r; margin: 0 auto; padding: 28px; max-width: 860px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; }
.rules li { counter-increment: r; display: flex; gap: 14px; align-items: flex-start; line-height: 1.7; }
.rules li::before { content: counter(r); flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green-strong); font: 800 .8rem/1 var(--head); }

/* horário */
.filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.days { display: flex; gap: 8px; flex-wrap: wrap; transition: opacity .2s; }
.days button { border: 0; border-radius: 999px; padding: 11px 20px; background: #eaf0ec; color: var(--muted); font: 800 .9rem/1 var(--head); cursor: pointer; }
.days button[aria-pressed="true"] { background: var(--green); color: #fff; }
input[type=search], select { font: inherit; padding: 10px 16px; border: 1px solid #cfd9d3; border-radius: 999px; background: #fff; color: var(--ink); min-width: 0; }
input[type=search] { width: min(300px, 100%); }
mark { background: #ffe0bf; color: inherit; border-radius: 3px; padding: 0 2px; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.slot { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.slot time { font: 800 1.35rem/1 var(--head); color: var(--ink); padding-top: 18px; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.game { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); font: 700 .98rem/1.35 var(--head); }
.game .ct { flex-shrink: 0; padding: 6px 10px; border-radius: 8px; background: var(--court); color: #fff; font-size: .78rem; }
.game .vs { color: var(--muted); font: 500 .9rem var(--body); margin: 0 4px; }
@media (max-width: 560px) { .slot { grid-template-columns: 1fr; gap: 6px; } .slot time { padding-top: 0; } }

.bracket-frame { width: 100%; min-height: 820px; border: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

/* resultados */
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 26px; }
.podium div { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); border-top: 5px solid var(--green); }
.podium div.gold { border-top-color: var(--orange); }
.podium span { color: var(--muted); font-size: .9rem; }
.podium b { display: block; margin-top: 4px; font: 800 1.35rem/1.2 var(--head); }

/* fotos */
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.links a { display: block; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.links a:hover { border-color: var(--green); }
.links b { display: block; font: 800 1.1rem/1.25 var(--head); margin-bottom: 4px; }
.links span { color: var(--muted); font-size: .9rem; }

/* ---------- Tabelas (ranking) ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
th { background: #f3f7f4; color: var(--muted); font: 700 .82rem/1.2 var(--head); vertical-align: bottom; }
th a { color: var(--green-strong); }
th.l, td.l { text-align: left; }
th.tba { color: #a3adb8; font-weight: 600; }
td.pos { width: 56px; font: 800 1rem/1 var(--head); color: var(--muted); }
td.name { font-weight: 600; }
td.total { font: 800 1.1rem/1 var(--head); color: var(--green-strong); }
td.zero { color: #b8c1ca; }
tr.q td.pos { color: var(--ink); box-shadow: inset 5px 0 0 var(--green); }
tr.cut td { border-bottom: 2px dashed var(--orange); }
tbody tr:hover td { background: #f7fbf8; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--green); vertical-align: -2px; margin-right: 6px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: #eaf0ec; border-radius: 999px; }
.seg button { border: 0; border-radius: 999px; padding: 8px 16px; background: transparent; color: var(--muted); font: 700 .88rem/1 var(--head); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; }

/* ---------- Histórico ---------- */
.year { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.year:first-of-type { border-top: 0; }
.year h2 { font-size: 3rem; font-weight: 900; color: var(--green); }
.year h2 + a { display: inline-block; margin-top: 8px; font-weight: 600; }
@media (max-width: 640px) { .year { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 48px; padding: 44px 0 48px; background: #eef3ef; border-top: 1px solid var(--line); }
.footer-inner { text-align: center; color: var(--muted); }
.footer-inner img { height: 46px; width: auto; margin: 0 auto 16px; }
.footer-inner p { margin: 4px 0; }
.footer-inner small { display: block; margin-top: 12px; }

/* ---------- Página inicial: cartões de torneio ---------- */
.hero-lead { max-width: 56ch; margin: 18px auto 0; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.hero:not(.compact) { min-height: 64vh; }
.year-label { font: 900 1.6rem/1 var(--head); color: var(--green); margin: 8px 0 16px; }
.year-label { margin-bottom: 12px; }
.tgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.tcard { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-decoration: none; }
.tcard:hover { border-color: var(--green); color: var(--ink); }
.tcard:hover .tmore { color: var(--green); }
.tcard-img { position: relative; aspect-ratio: 16 / 9; background: var(--green-soft); }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; }
.tcard-img .tag { position: absolute; top: 14px; left: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tcard-img .tag.terminado { background: rgba(255,255,255,.94); }
.tcard-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; flex: 1; }
.tcard .tname { font-size: 1.25rem; }
.tchamp { margin-top: 6px; font-weight: 600; }
.tmore { margin-top: auto; padding-top: 14px; font: 700 .88rem/1 var(--head); color: var(--green-strong); }

.hero.home { min-height: 0; }
.hero.home .hero-content { padding: 72px 0 64px; }

/* =====================================================================
   Estrutura v2
   ===================================================================== */
.small { font-size: .9rem; }
td.wrap { white-space: normal; min-width: 260px; }
.hero.home .hero-content { padding: 64px 0 56px; }
.hero-badges .estado.inscricoes { background: var(--orange); border-color: var(--orange); }
.hero-badges .estado.a-decorrer { background: #d93b3b; border-color: #d93b3b; }
.hero-badges .estado.terminado { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }

.btn.orange { background: var(--orange); color: #fff; box-shadow: 0 14px 30px -16px rgba(250,122,8,.9); }
.btn.orange:hover { background: #e06a00; color: #fff; }
.chip { display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-strong); font: 700 .88rem/1 var(--head); text-decoration: none; }
.chip:hover { background: #d6eedd; color: var(--green-strong); }

/* torneio em destaque */
.features { display: grid; gap: 24px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.feature-img { position: relative; display: block; min-height: 280px; }
.feature-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-img .tag { position: absolute; top: 18px; left: 18px; font-size: .85rem; padding: 8px 13px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.feature-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.feature-ed { margin: 0; font: 800 .78rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.feature h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 900; }
.feature h2 a { color: var(--ink); text-decoration: none; }
.feature h2 a:hover { color: var(--green-strong); }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts span { font-size: .82rem; color: var(--muted); }
.facts b { font: 700 1rem/1.3 var(--head); }
.feature-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature-img { min-height: 200px; aspect-ratio: 16/9; } }

.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 20px; padding: 16px 20px; background: var(--orange-soft); border: 1px solid #ffd3a8; border-radius: 18px; font-weight: 600; }
.info-grid { margin: 0; }

/* horário — ordem de jogo */
.oop-title { margin: 0 0 12px; font: 800 1.35rem/1.2 var(--head); }
.oop-day { margin: 26px 0 12px; font-size: 1.15rem; color: var(--green-strong); }
.oop-day:first-child { margin-top: 0; }
.oop { display: grid; grid-template-columns: 84px repeat(var(--cols), minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.oop > div { border-bottom: 1px solid var(--line); }
.oop-h { padding: 14px 16px; background: #f3f7f4; font: 700 .82rem/1 var(--head); color: var(--muted); }
.oop-h .ct { display: inline-block; padding: 7px 12px; border-radius: 8px; background: var(--court); color: #fff; font-size: .82rem; }
.oop-t { display: flex; align-items: center; }
.oop-time { padding: 18px 16px; font: 800 1.2rem/1 var(--head); color: var(--ink); background: #fbfcfb; border-right: 1px solid var(--line); }
.oop-cell { padding: 10px 12px; border-left: 1px solid var(--line); display: grid; gap: 8px; }
.oop-cell.vazio { background: repeating-linear-gradient(135deg, transparent 0 8px, #f6f8f7 8px 16px); }
.m { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f7fbf8; border: 1px solid #e3efe6; }
.m .p { font: 700 .98rem/1.3 var(--head); }
.m .p.solo { color: var(--green-strong); }
.m .v { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.m .r { margin-top: 4px; align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--green); color: #fff; font: 700 .8rem/1.3 var(--head); }
@media (max-width: 700px) {
  .oop { grid-template-columns: 64px 1fr; }
  .oop-h:not(.oop-t) { display: none; }
  .oop-t { display: none; }
  .oop-time { grid-row: span var(--cols); font-size: 1.05rem; padding: 16px 10px; }
  .oop-cell { border-left: 0; }
  .oop-cell.vazio { display: none; }
  .oop-cell::before { content: attr(data-court); justify-self: start; padding: 4px 9px; border-radius: 6px; background: var(--court); color: #fff; font: 700 .72rem/1 var(--head); }
}

/* quadro e mapa */
.frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.frame iframe { display: block; width: 100%; height: min(85vh, 1000px); border: 0; }
.frame.map iframe { height: 420px; }
.local { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.local-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.local-info p { margin: 8px 0; }
.local-info .btn { margin-top: 10px; }
@media (max-width: 820px) { .local { grid-template-columns: 1fr; } }

/* galeria */
.links a { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.links .ico { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--green-soft); font-size: 1.4rem; }

/* ranking */
th.sep, td.sep { border-left: 1px solid var(--line); }
.rk-rules { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; margin-top: 36px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.rk-rules p { margin: 6px 0 0; }
.pts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pts li { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 10px 12px; border-radius: 14px; background: var(--green-soft); }
.pts b { font: 900 1.3rem/1 var(--head); color: var(--green-strong); }
.pts span { font-size: .75rem; color: var(--muted); margin-top: 4px; text-align: center; }
.rk-links { grid-column: 1 / -1; font-weight: 600; }
@media (max-width: 820px) { .rk-rules { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .hero.compact .hero-content { padding: 36px 0 32px; } .hero-badges span { padding: 7px 12px; font-size: .82rem; } }

/* ---------- v3: cartões, histórico por ano, inscrições ---------- */
.tag.inscricoes-fechadas { background: #eef1f3; color: var(--muted); }
.hero-badges .estado.inscricoes-fechadas { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.callout.closed { background: #f1f3f5; border-color: var(--line); }
.tgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tcard { transition: transform .15s, border-color .15s; }
.tcard:hover { transform: translateY(-2px); }
.tcard-img { display: block; overflow: hidden; }
.tcard-img img { transition: transform .4s; }
.tcard:hover .tcard-img img { transform: scale(1.03); }
.tcard .tname { font: 800 1.2rem/1.25 var(--head); color: var(--ink); text-decoration: none; }
.tcard .tname:hover { color: var(--green-strong); }
.tcard .tdate { font: 700 .85rem/1.3 var(--head); color: var(--orange); }
.tcard .tchamp { margin-top: 6px; font-weight: 600; color: var(--ink); white-space: normal; }
.minis { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mini { padding: 4px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-strong); font: 700 .72rem/1.2 var(--head); }
.tcard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.btn.sm { padding: 10px 16px; font-size: .85rem; }
.pontos-head { margin-top: 40px; }
.pontos-head h3 { font-size: 1.4rem; margin-right: auto; }

/* ---------- histórico discreto ---------- */
#historico { padding-top: 8px; }
.h-sm { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.hist-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .hist-grid { grid-template-columns: 1fr; } }
.hist-list { background: transparent; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
.hist-list li + li { border-top: 0; }
.hist-list li { border-bottom: 1px solid var(--line); }
.hist-list a { grid-template-columns: 52px 1fr auto 16px; padding: 12px 4px; }
.hist-list a:hover { background: transparent; }
.hist-list a:hover .tname { color: var(--green-strong); }
.hist-list .tname { font-size: .98rem; font-weight: 700; }
.hist-list .tyear { font-size: .9rem; }
.hist-list .tchamp { font-size: .85rem; }
.hist-list .tgo { font-size: 1.2rem; }
.hist-pontos { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.hist-pontos-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hist-pontos-head h3 { font-size: 1rem; }
.hist-pontos .seg button { padding: 6px 12px; font-size: .78rem; }
.mini-rank { list-style: none; margin: 0 0 12px; padding: 0; }
.mini-rank li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.mini-rank .p { font: 800 .85rem var(--head); color: var(--muted); }
.mini-rank b { font: 800 .85rem var(--head); color: var(--green-strong); }
