/* ==========================================================================
   artilheiroPro v2 — folha de estilos única (mobile-first)
   Substitui: style.css, skin.css, lessframework.css, superfish.css,
   flexslider.css, jquery.tweet.css, prettyPhoto.css e poshytip.
   ========================================================================== */

:root {
  /* Cores: gramado, giz e colete amarelo */
  --pitch: #0f3d22;
  --pitch-2: #124a29;
  --brand: #1f7a3a;
  --brand-strong: #165c2b;
  --bib: #ffd23f;
  --bib-strong: #f2b705;
  --chalk: #f3f7f1;
  --paper: #ffffff;
  --ink: #14281b;
  --muted: #566a5b;
  --line: #d3e0d0;
  --edge: #7a9380;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --ok-bg: #e6f4ea;

  /* Tipografia */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --radius: 10px;
  --radius-lg: 16px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-strong); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  box-shadow: 0 0 0 4px var(--bib);
  border-radius: 6px;
}

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1rem; background: var(--bib); color: var(--ink);
  font-weight: 700; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  border: 0; border-radius: 8px; cursor: pointer;
  font: 700 1.05rem/1.2 var(--font-body); text-decoration: none;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); }
.btn--primary:disabled { opacity: .65; cursor: progress; }
.btn--block { width: 100%; }

.field { display: grid; gap: .35rem; min-width: 0; }
.field > label { font-weight: 600; font-size: .9rem; }
.field input,
.field select {
  width: 100%; min-height: 48px; padding: .65rem .8rem;
  font: inherit; font-size: 1rem; color: var(--ink); background-color: var(--paper);
  border: 1.5px solid var(--edge); border-radius: 8px;
}
.field input:focus,
.field select:focus { border-color: var(--brand); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%2314281b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.field-row { display: grid; gap: 1rem; }

.pw { position: relative; }
.pw input { padding-right: 3.25rem; }
.pw__toggle {
  position: absolute; right: .125rem; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer;
}
.pw__toggle[aria-pressed="true"] { color: var(--brand-strong); }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--brand-strong); text-decoration: underline;
}

.alert {
  margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem;
}
.alert:empty { display: none; }
.alert--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #f1b8b2; }
.alert--info { background: var(--ok-bg); color: var(--brand-strong); border: 1px solid #b9dcc4; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.site-header__bar {
  position: relative; display: flex; align-items: center; gap: .75rem;
  max-width: var(--maxw); margin: 0 auto; min-height: 64px;
  padding: .5rem var(--gutter);
}
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 40px; width: auto; max-width: 60vw; }

.lang { display: flex; gap: .125rem; margin-left: auto; order: 1; }
.lang a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; }
.lang img { display: block; width: 20px; height: 13px; }

.nav-toggle {
  order: 2; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
  color: var(--ink); cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--chalk); }

.site-nav { order: 3; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .65rem .9rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-nav a:hover { background: var(--chalk); }
.site-nav a[aria-current="page"] { color: var(--brand-strong); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 8px 8px 0 0; }

@media (max-width: 859.98px) {
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem; box-shadow: 0 12px 24px -12px rgb(0 0 0 / .25);
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brand); border-radius: 0 8px 8px 0; background: var(--chalk); }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { order: 4; flex-basis: 100%; }
  .no-js .site-header__bar { flex-wrap: wrap; }
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { order: 1; margin-left: auto; }
  .lang { order: 2; margin-left: .5rem; }
}

/* ---------- Gramado (hero e título de página) ---------- */
.hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--chalk);
  background: repeating-linear-gradient(90deg, var(--pitch) 0 4.5rem, var(--pitch-2) 4.5rem 9rem);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(900px, 130vw); aspect-ratio: 1; right: -20%; top: 50%; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%23f3f7f1' stroke-width='6'%3E%3Ccircle cx='400' cy='400' r='220'/%3E%3Cline x1='400' y1='0' x2='400' y2='800'/%3E%3Ccircle cx='400' cy='400' r='10' fill='%23f3f7f1'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .16;
}
.hero__inner {
  display: grid; gap: 1.75rem 3rem; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 4rem) var(--gutter) clamp(2rem, 6vw, 4.5rem);
  grid-template-areas: "headline" "card" "slides";
}
.hero__headline { grid-area: headline; min-width: 0; }
.hero h1, .page-hero h1 {
  font: 800 clamp(2.9rem, 9.5vw, 6.25rem) / .9 var(--font-display);
  letter-spacing: -.005em; text-wrap: balance;
}
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    grid-template-areas: "headline card" "slides card";
    align-items: start;
  }
}

.page-hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--gutter);
}
.page-hero h1 { font-size: clamp(2.5rem, 8vw, 4.25rem); }

/* ---------- Cartão de acesso (login / cadastro) ---------- */
.auth {
  grid-area: card; container-type: inline-size;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg); padding: 1.25rem;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / .45);
}
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem;
  padding: .25rem; margin-bottom: 1.25rem; background: var(--chalk); border-radius: 10px;
}
.no-js .tabs { display: none; }
.tab {
  min-height: 44px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font: 700 1rem var(--font-body); cursor: pointer;
}
.tab[aria-selected="true"] {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / .18), inset 0 -3px 0 var(--brand);
}
.no-js [role="tabpanel"][hidden] { display: block !important; margin-top: 1.5rem; }

.auth form { display: grid; gap: 1rem; }
.auth__lead { font: 800 1.6rem / 1.05 var(--font-display); color: var(--brand-strong); margin-bottom: 1rem; }
.auth__link { justify-self: center; padding: .6rem 1rem; font-weight: 600; }
.auth__social {
  display: grid; justify-items: center; gap: .5rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}

@container (min-width: 400px) {
  .field-row--2 { grid-template-columns: 1fr 1fr; }
  .field-row--state { grid-template-columns: 7.5rem 1fr; }
}

/* ---------- Slides ---------- */
.slides {
  grid-area: slides; position: relative; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--radius-lg);
  background: var(--pitch-2); border: 2px solid rgb(243 247 241 / .25);
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s; }
.slide.is-active, .no-js .slide:first-child { opacity: 1; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1rem 1rem;
  background: linear-gradient(to top, rgb(7 30 16 / .88), transparent);
  font: 700 clamp(1.25rem, 3.4vw, 1.75rem) / 1.15 var(--font-display); color: #fff;
}
.slide figcaption a { color: #fff; }
.slides__dots { position: absolute; right: .5rem; bottom: .5rem; display: flex; }
.slides__dots button {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer; border-radius: 50%;
}
.slides__dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: rgb(255 255 255 / .55); border: 1.5px solid #fff;
}
.slides__dots button[aria-current="true"]::before { background: var(--bib); border-color: var(--bib); }
.no-js .slides__dots { display: none; }

/* ---------- Seções e painéis ---------- */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}
.live, .ranks { display: grid; gap: 1.25rem; }
.panel {
  min-width: 0; overflow: hidden; background: var(--paper);
  border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem;
}
.panel--live { border-top-color: var(--bib-strong); }
.panel__foot { margin: .75rem 0 0; font-weight: 700; }

@media (min-width: 760px) {
  .live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel--feed, .panel--wide { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .live { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel--feed { grid-column: auto; }
}

/* Conteúdo vindo do servidor (HTML legado): neutraliza tabelas, <font>, floats */
.fragment { min-height: 5rem; font-size: .95rem; overflow-x: auto; }
.fragment[aria-busy="true"]::before {
  content: ""; display: block; height: 5.5rem; border-radius: 8px;
  background: linear-gradient(90deg, var(--line) 25%, #e6efe3 50%, var(--line) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.fragment h1, .fragment h2, .fragment h3, .fragment h4 {
  font: 800 1.5rem / 1.05 var(--font-display); color: var(--ink); text-align: left; margin: 0 0 .6rem;
}
.fragment center { display: block; text-align: left; }
.fragment font { font: inherit; color: inherit; }
.fragment [style*="float"] { float: none !important; }
.fragment [style*="width"] { max-width: 100%; }
.fragment [hidden] { display: none !important; }
.fragment a { font-weight: 600; }
.fragment img { max-width: 100%; height: auto; vertical-align: middle; }
.fragment table { width: 100%; border-collapse: collapse; }
.fragment th { text-align: left; font-weight: 700; color: var(--muted); font-size: .85rem; }
.fragment th, .fragment td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fragment tr:last-child td { border-bottom: 0; }
.fragment tr:nth-child(even) td { background: rgb(31 122 58 / .05); }
.fragment td:first-child { font-variant-numeric: tabular-nums; }
.fragment ul, .fragment ol { list-style: none; margin: 0; padding: 0; }
.fragment li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.fragment li:last-child { border-bottom: 0; }
.fragment .is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }
.fragment .is-entering { animation: enter .45s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

.state { margin: 0; padding: 1rem; border: 1px dashed var(--edge); border-radius: 8px; color: var(--muted); }

/* ---------- Faixa do aplicativo ---------- */
.app { background: var(--bib); color: var(--ink); }
.app__inner {
  display: grid; gap: 1.5rem; align-items: center; justify-items: start;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2rem, 6vw, 3.5rem) var(--gutter);
}
.app__shot { width: auto; max-height: 380px; justify-self: center; }
.app h2 { font: 800 clamp(2rem, 6vw, 3.25rem) / .95 var(--font-display); margin-bottom: .75rem; }
.app p { font-size: 1.15rem; max-width: 34ch; }
.app__badge { display: inline-block; line-height: 0; }
.app__badge img { width: 180px; }
@media (min-width: 760px) {
  .app__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* ---------- Estatísticas ---------- */
.rank-tabs {
  display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 .75rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.rank-tab {
  flex: 0 0 auto; scroll-snap-align: start; min-height: 44px; padding: .5rem 1rem;
  border: 1.5px solid var(--edge); border-radius: 999px; background: var(--paper);
  color: var(--ink); font: 700 .95rem var(--font-body); white-space: nowrap; cursor: pointer;
}
.rank-tab[aria-selected="true"] { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.no-js .rank-tabs { display: none; }
.no-js .rank[hidden] { display: block !important; }

.rank h2 { font: 800 1.75rem / 1.05 var(--font-display); margin-bottom: .4rem; }
.rank__lead { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }

.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.filters .field { flex: 1 1 8rem; }
.icon-btn {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 1.5px solid var(--edge); border-radius: 8px; background: var(--paper);
  color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--chalk); }

@media (min-width: 1024px) {
  .ranks { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .rank-tabs { display: none; }
  .rank[hidden] { display: block !important; }
}

/* ---------- Botões extras ---------- */
.btn--yellow { background: var(--bib); color: var(--ink); }
.btn--yellow:hover { background: var(--bib-strong); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--edge); }
.btn--ghost:hover { background: var(--chalk); }
.field textarea {
  width: 100%; min-height: 9rem; padding: .65rem .8rem; resize: vertical;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--edge); border-radius: 8px;
}
.field textarea:focus { border-color: var(--brand); }

/* ---------- Conteúdo de texto (sobre) ---------- */
.prose { max-width: 68ch; }
.prose h2 {
  font: 800 clamp(1.75rem, 4vw, 2.25rem) / 1.05 var(--font-display);
  color: var(--brand-strong); margin: 2.25rem 0 .75rem;
}
.prose > h2:first-child { margin-top: 0; }
.prose p { font-size: 1.05rem; }
.features {
  display: grid; gap: 1rem; margin: 1.75rem 0 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.feature {
  margin: 0; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.feature img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature figcaption { padding: 1rem; }
.feature strong { display: block; font: 800 1.4rem / 1.05 var(--font-display); margin-bottom: .35rem; }
.feature span { color: var(--muted); }
.credit {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted);
}

/* ---------- Contato / anuncie ---------- */
.contact {
  display: grid; gap: 2rem;
  grid-template-areas: "intro" "form" "aside";
}
.contact__intro { grid-area: intro; }
.contact__form { grid-area: form; }
.contact__aside { grid-area: aside; }
@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem 3rem; align-items: start;
    grid-template-areas: "intro form" "aside form";
  }
}
.contact__intro h2, .contact__aside h2 { font: 800 clamp(1.6rem, 4vw, 2rem) / 1.05 var(--font-display); margin: 1.5rem 0 .5rem; }
.contact__intro > :first-child { margin-top: 0; }
.lead { font-size: 1.15rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1.25rem;
}
.card form { display: grid; gap: 1rem; }
.card__title { font: 800 1.75rem / 1.05 var(--font-display); margin: 0; }
.address { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }

/* ---------- Perfil do artilheiro ---------- */
.profile__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--gutter);
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: center;
}
.profile__photo {
  width: 96px; height: auto; aspect-ratio: 103 / 90; object-fit: cover;
  border-radius: 14px; border: 3px solid var(--chalk); background: var(--pitch-2);
}
.profile h1 {
  font: 800 clamp(2rem, 7vw, 3.75rem) / .95 var(--font-display);
  overflow-wrap: anywhere; text-wrap: balance;
}
.profile__info { min-width: 0; }
.profile__meta { display: flex; flex-wrap: wrap; gap: .15rem .85rem; margin: .4rem 0 0; color: #dfe9dc; }
.profile__action { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.profile__action form { margin: 0; }
@media (min-width: 700px) {
  .profile__photo { width: 130px; }
  .profile__inner { grid-template-columns: auto 1fr auto; }
  .profile__action { grid-column: auto; }
}

.stack { display: grid; gap: 1.25rem; }
.panel__title {
  display: flex; align-items: center; gap: .6rem;
  font: 800 1.6rem / 1.05 var(--font-display); margin: 0 0 1rem;
}
.panel__title img { flex: none; }
.panel--score { border-top-color: var(--bib-strong); }
.summary { margin: 0; font-size: 1.1rem; }
.summary .num {
  margin-inline: .1em; color: var(--brand-strong); font-variant-numeric: tabular-nums;
  font: 800 clamp(2.5rem, 9vw, 3.75rem) / 1 var(--font-display);
}
.record {
  display: flex; align-items: center; gap: .75rem; margin: 1rem 0 0;
  padding: .75rem 1rem; background: rgb(255 210 63 / .25); border-radius: 8px;
}
.record strong { font: 800 1.5rem / 1 var(--font-display); }

.split { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
}
.chart { width: 100%; min-height: 260px; }

/* Tabelas de dados: no celular a tabela "pelada" vira lista de cartões */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data-table th {
  text-align: left; font-size: .85rem; font-weight: 700; color: var(--muted);
  padding: .6rem .5rem; border-bottom: 2px solid var(--line); vertical-align: bottom;
}
.data-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table th.num { text-align: right; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.total td {
  font-weight: 700; background: rgb(255 210 63 / .22); border-top: 2px solid var(--bib-strong);
}
@media (max-width: 639.98px) {
  .data-table--cards thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  }
  .data-table--cards, .data-table--cards tbody, .data-table--cards tr, .data-table--cards td { display: block; }
  .data-table--cards tr { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .data-table--cards tbody tr:last-child { border-bottom: 0; }
  .data-table--cards td {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .2rem 0; border: 0; text-align: right;
  }
  .data-table--cards td::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; }
  .data-table--cards td:first-child { font-size: 1.05rem; font-weight: 700; }
  .data-table--cards td:first-child::before { content: none; }
}

.videos { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }

.share { display: grid; gap: .75rem; }
.share__label { font-weight: 600; }
.share__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.share__row input {
  flex: 1 1 16rem; min-width: 0; min-height: 48px; padding: .65rem .8rem;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--chalk);
  border: 1.5px solid var(--edge); border-radius: 8px;
}
.share__status { margin: 0; min-height: 1.5em; color: var(--brand-strong); font-weight: 600; }
.no-js [data-share-whatsapp], .no-js [data-share] { display: none; }


/* ---------- Botão para fundo escuro ---------- */
.btn--chalk { background: rgb(243 247 241 / .12); color: #fff; border: 1.5px solid rgb(243 247 241 / .55); }
.btn--chalk:hover { background: rgb(243 247 241 / .22); }

/* ---------- Páginas simples (contato, recuperar senha, aplicativo) ---------- */
.card--narrow { max-width: 520px; margin-inline: auto; }
.card--narrow p { margin: 0; }
.hint { color: var(--muted); font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions .btn { flex: 1 1 10rem; }
.info-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.info-card {
  display: grid; gap: .6rem; align-content: start; padding: 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius);
}
.info-card h2 { font: 800 1.6rem / 1.05 var(--font-display); margin: 0; }
.info-card p { margin: 0; }
.info-card .btn { justify-self: start; overflow-wrap: anywhere; text-align: left; }

.app-page { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .app-page { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.app-page h2 { font: 800 clamp(2rem, 6vw, 3.25rem) / .95 var(--font-display); margin: 0 0 1rem; }
.app-page h3 { font: 800 1.5rem / 1.05 var(--font-display); margin: 1.5rem 0 .75rem; }
.app-page .lead { max-width: 52ch; }
.app-page__badge { display: inline-block; line-height: 0; }
.app-page__badge img { width: 200px; }
.app-page__shot { justify-self: center; width: auto; max-height: 520px; }

/* ---------- Página da pelada: conteúdo + menu lateral (usuário logado) ---------- */
.layout { display: grid; gap: 1.25rem; }
@media (min-width: 960px) {
  .layout--menu { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
  .layout--menu > .stack { grid-column: 1; grid-row: 1; }
  .layout--menu > .side-menu { grid-column: 2; grid-row: 1; }
}
.side-menu {
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--bib-strong);
  border-radius: var(--radius);
}
.side-menu summary {
  display: flex; align-items: center; min-height: 48px; padding: 0 1rem; cursor: pointer;
  font: 800 1.25rem var(--font-display); list-style: none;
}
.side-menu summary::-webkit-details-marker { display: none; }
@media (min-width: 960px) { .js .side-menu summary { display: none; } }
.side-menu__body { padding: .5rem 1rem 1rem; }
.side-menu__photo {
  display: grid; justify-items: start; gap: .5rem;
  padding: .5rem 0 .75rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.side-menu__photo img {
  width: 103px; height: auto; aspect-ratio: 103 / 90; object-fit: cover;
  border-radius: 10px; border: 2px solid var(--line);
}
.side-menu ul { list-style: none; margin: 0; padding: 0; }
.side-menu li a, .side-menu li .link-btn {
  display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px;
  font-weight: 600; text-decoration: none; text-align: left; color: var(--ink);
}
.side-menu li a::before {
  content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--line); border: 1.5px solid var(--edge);
}
.side-menu li a:hover { color: var(--brand-strong); }
.side-menu li a[aria-current="page"] { color: var(--brand-strong); }
.side-menu li a[aria-current="page"]::before { background: var(--bib); border-color: var(--bib-strong); }
.side-menu li .link-btn { color: var(--danger); padding: 0; }
.side-menu .badge {
  margin-left: auto; min-width: 1.6rem; padding: 0 .45rem; border-radius: 999px;
  background: var(--bib); color: var(--ink); font: 700 .8rem / 1.6rem var(--font-body); text-align: center;
}

/* Ranking da pelada */
.data-table--rank th.pos, .data-table--rank td.pos { width: 3.25rem; text-align: left; }
.data-table--rank td.pos { font: 800 1.35rem / 1 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.data-table--rank tr.top td.pos { color: var(--brand-strong); }
.data-table--rank tr.top td:first-child { box-shadow: inset 4px 0 0 var(--bib-strong); }
.data-table--rank td a { font-weight: 600; }

/* ---------- Cartões clicáveis (principal) ---------- */
a.feature { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.feature:hover { border-color: var(--brand); }
@media (prefers-reduced-motion: no-preference) { a.feature:hover { transform: translateY(-2px); } }
.feature__text { padding: 1rem; }
.userbar {
  flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .95rem; color: var(--muted);
}
.userbar strong { color: var(--brand-strong); }
@media (max-width: 599.98px) { .userbar { display: none; } }
.ad-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0;
  padding: .75rem 1rem; background: var(--paper); border: 1px dashed var(--edge); border-radius: var(--radius);
  font-size: .95rem;
}
.ad-note small { color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.ad-note img { max-height: 32px; width: auto; }

/* ---------- Funções (lista numerada) e texto legal ---------- */
.funcs {
  display: grid; gap: 1rem; counter-reset: func;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.func {
  position: relative; counter-increment: func; margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 4.5rem;
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius);
}
.func::before {
  content: counter(func); position: absolute; left: 1rem; top: 1rem;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--bib); color: var(--ink); font: 800 1.5rem / 1 var(--font-display);
}
.func__title { font: 800 1.5rem / 1.05 var(--font-display); margin: 0 0 .5rem; }
.func p { margin: 0; }
.legal { max-width: 75ch; }
.legal p { margin: 0 0 1em; }
.legal__date { color: var(--muted); }
.page-hero h1 { overflow-wrap: anywhere; }

/* ---------- Formulários da área logada ---------- */
.card--form { width: 100%; max-width: 640px; container-type: inline-size; }
.card--form form { display: grid; gap: 1rem; }
.choices { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.choice { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--brand); }
.account {
  display: grid; gap: .1rem; margin: 0; padding: .75rem 1rem;
  background: var(--chalk); border-radius: 8px; overflow-wrap: anywhere;
}
.account span { color: var(--muted); }
.alert .btn { margin-top: .75rem; }
.alert p { margin: 0; }

/* ---------- Janela de foto (popup) ---------- */
.page-popup { background: var(--chalk); }
.popup { max-width: 520px; margin: 0 auto; padding: 1.25rem var(--gutter) 2rem; }
.popup h1 { font: 800 clamp(1.75rem, 6vw, 2.25rem) / 1.05 var(--font-display); margin: 0 0 1rem; color: var(--brand-strong); }
.field input[type="file"] { padding: .5rem; min-height: 56px; }
.field input[type="file"]::file-selector-button {
  min-height: 36px; margin-right: .75rem; padding: 0 .9rem; border: 0; border-radius: 6px;
  background: var(--brand); color: #fff; font: 600 .95rem var(--font-body); cursor: pointer;
}
.photo-preview {
  justify-self: start; max-width: 100%; max-height: 240px; object-fit: contain;
  border: 2px solid var(--line); border-radius: 12px; background: var(--paper);
}

.field .hint { margin: 0; }
.field input[readonly] { background: var(--chalk); color: var(--muted); }

/* ---------- Passos numerados (compartilhar) ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; max-width: 820px; }
.step {
  counter-increment: step; background: var(--paper); border: 1px solid var(--line);
  border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 1.25rem;
}
.step__title { display: flex; align-items: center; gap: .75rem; font: 800 1.6rem / 1.05 var(--font-display); margin: 0 0 .75rem; }
.step__title::before {
  content: counter(step); flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--bib); color: var(--ink); font: 800 1.4rem / 1 var(--font-display);
}
.step p { margin: 0 0 .75rem; }
.step img { display: block; max-width: 100%; height: auto; margin: .75rem 0 0; border: 1px solid var(--line); border-radius: 10px; }
.callout {
  max-width: 820px; margin: 0; padding: 1rem 1.25rem; font-weight: 600; font-size: 1.1rem;
  background: rgb(255 210 63 / .25); border-radius: var(--radius);
}

/* ---------- Botões de ação em linha (listarPeladas) ---------- */
.btn--sm { min-height: 40px; padding: .35rem .8rem; font-size: .95rem; gap: .4rem; }
.btn--sm img { width: 20px; height: 20px; flex: none; }
.btn--danger { background: transparent; color: var(--danger); border: 1.5px solid #e2a29b; }
.btn--danger:hover { background: var(--danger-bg); }
.row-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.row-actions form { margin: 0; }
.list-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1rem; }
.list-foot .total { margin: 0 0 0 auto; color: var(--muted); }
@media (max-width: 639.98px) {
  .data-table--cards td.actions-cell { display: block; padding-top: .6rem; text-align: left; }
  .data-table--cards td.actions-cell::before { content: none; }
}
@media (min-width: 640px) { .data-table td.actions-cell { min-width: 14rem; } }

/* ---------- Paginação (listas do Mentawai) ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 1rem 0 0; }
.pager__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .85rem;
  border: 1.5px solid var(--edge); border-radius: 8px; background: var(--paper);
  color: var(--ink); font-weight: 700; text-decoration: none;
}
a.pager__link:hover { background: var(--chalk); }
.pager__link.is-current { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.pager__info { margin: 1rem 0 0; text-align: center; color: var(--muted); }

/* ---------- Cadastro de gols: vídeo do YouTube ---------- */
.video-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.video-row input { flex: 1 1 14rem; min-width: 0; }
.video-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.video-status--ok { color: var(--brand-strong); }
.video-status--error { color: var(--danger); }
.video-preview { max-width: 420px; }
.video-preview:empty { display: none; }
.tag {
  display: inline-block; padding: .1rem .65rem; border-radius: 999px;
  background: var(--bib); color: var(--ink); font-weight: 700; font-size: .85rem;
}

/* Tabelas-cartão com um campo de destaque (cell-title) que sobe para o topo no celular */
@media (max-width: 639.98px) {
  .data-table--titled tr { display: flex; flex-direction: column; }
  .data-table--titled td.cell-title { order: -1; font-size: 1.05rem; font-weight: 700; text-align: left; }
  .data-table--titled td.cell-title::before { content: none; }
  .data-table--titled td:first-child:not(.cell-title) { font-size: inherit; font-weight: inherit; }
  .data-table--titled td:first-child:not(.cell-title)::before { content: attr(data-label); }
  .data-table--cards td:empty { display: none; }
}

/* ---------- Fragmentos da home (gols recentes, maiores artilheiros, vídeos, convidados) ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed__item { display: flex; align-items: flex-start; gap: .6rem; }
.feed__item img { flex: none; width: 20px; height: 20px; margin-top: .15rem; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: baseline; gap: .5rem; }
.rank-list__pos { font: 800 1.4rem / 1 var(--font-display); color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.rank-list__name { overflow-wrap: anywhere; font-weight: 600; }
.rank-list__goals { color: var(--muted); white-space: nowrap; }
.video-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-thumb::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgb(0 0 0 / .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.status img { width: 20px; height: 20px; }
.status--ok { color: var(--brand-strong); }

/* ---------- Páginas de resultado (erro / sucesso) ---------- */
.result {
  display: grid; justify-items: start; gap: 1rem; max-width: 640px; padding: 1.5rem;
  background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius);
}
.result--error { border-top-color: var(--danger); }
.result__icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--ok-bg); color: var(--brand-strong);
}
.result--error .result__icon { background: var(--danger-bg); color: var(--danger); }
.result p { margin: 0; }
.result__msg { font-size: 1.1rem; font-weight: 600; }
.result__msg:empty { display: none; }
.result h1 { margin: 0; }

/* ---------- Sorteio de times (janela para imprimir) ---------- */
.popup--wide { max-width: 960px; }
.print-header { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; }
.print-header img { height: 44px; width: auto; }
.print-header span { color: var(--muted); font-weight: 600; }
.teams { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 0 0 1rem; }
.team { padding: 1rem 1.25rem; break-inside: avoid; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); }
.team h2 { font: 800 1.5rem / 1.05 var(--font-display); margin: 0 0 .5rem; }
.team ol { margin: 0; padding-left: 1.5rem; }
.team li { padding: .2rem 0; overflow-wrap: anywhere; }
.team-sums { margin: 0 0 1rem; padding: 0; list-style: none; color: var(--muted); }
.no-js [data-share-message] { display: none; }
@media print {
  .no-print, .skip-link { display: none !important; }
  body { background: #fff; }
  .team, .result { border-color: #999; box-shadow: none; }
}

/* ---------- Placar (rankings da home e de estatisticas.jsp) ---------- */
.board { list-style: none; margin: 0; padding: 0; }
.board__row {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .1rem .6rem;
}
.board__row--top { padding-left: .6rem; box-shadow: inset 3px 0 0 var(--bib-strong); }
.board__pos { grid-row: 1 / span 2; font: 800 1.3rem / 1 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.board__row--top .board__pos { color: var(--brand-strong); }
.board__who {
  grid-row: 1 / span 2; display: flex; align-items: center; gap: .55rem; min-width: 0;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.board__who:hover .board__name { text-decoration: underline; }
.board__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line); }
.board__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__stat { grid-column: 3; text-align: right; color: var(--muted); }
.board__stat strong { font: 800 1.25rem / 1 var(--font-display); color: var(--ink); }
.board__meta { grid-column: 3; max-width: 12rem; text-align: right; font-size: .8rem; color: var(--muted); }

/* ---------- Vídeo de um gol (exibirVideo) ---------- */
.video-player { max-width: 860px; }
.video-link { margin: .75rem 0 0; overflow-wrap: anywhere; }

/* ---------- Sorteio de times (tela de preparo) ---------- */
.field .inline-field { display: flex; align-items: center; gap: .6rem; }
.field .inline-field input { width: 5rem; flex: none; }
.inline-field label { font-weight: 600; }
.players { margin: 0; }
.players label { display: flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.players input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--brand); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--pitch); color: #dfe9dc; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) var(--gutter) 1.5rem;
}
.site-footer__cols { display: grid; gap: 1.75rem; }
@media (min-width: 700px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .site-footer__cols { grid-template-columns: 1.4fr 1fr 1fr 250px; align-items: start; }
}
.fcol__title { font: 800 1.4rem / 1 var(--font-display); color: var(--bib); margin: 0 0 .75rem; }
.fcol p { margin: 0; }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li a { display: flex; align-items: center; min-height: 44px; }
.fcol__text { padding: .5rem 0; }
.ad { max-width: 100%; overflow: hidden; text-align: center; }
.ad--box { min-height: 208px; justify-self: center; }
.ad--banner { min-height: 90px; }
.site-footer__ads { display: grid; justify-items: center; margin-top: 1.5rem; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgb(243 247 241 / .2);
}
.copyright { margin: 0; }
.social-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.social { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; }
.social img { height: 28px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
  .fragment[aria-busy="true"]::before { animation: none; }
  .fragment .is-entering { animation: none; }
  .fragment .is-leaving { transition: none; }
}
