@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F7F3EA;
  --bg-tint: #EFE9DC;
  --surface: #FFFFFF;
  --ink: #1F1B16;
  --ink-2: #5A544C;
  --ink-3: #7A7268;
  --line: #E4DCCC;
  --line-strong: #D3C8B3;

  --felt: #1E5B3E;
  --felt-soft: #E2ECE4;
  --gold: #B7791F;
  --gold-ink: #85570F;
  --gold-soft: #F6EBD3;
  --silver: #8A8F98;
  --bronze: #A0623A;
  --red: #B4472F;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(60, 45, 20, .06), 0 2px 8px rgba(60, 45, 20, .05);
  --shadow-2: 0 2px 4px rgba(60, 45, 20, .06), 0 12px 32px rgba(60, 45, 20, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--felt);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(circle at 1px 1px, rgba(31, 27, 22, .09) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #FBF8F1 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}

h1 {
  font-size: clamp(3rem, 11vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -.035em;
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--felt);
}

.lede {
  max-width: 34rem;
  margin: 20px 0 0;
  font-size: 1.075rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
  max-width: 34rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
}
.stat dt {
  font-size: 13px;
  color: var(--ink-2);
  order: 2;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat { display: flex; flex-direction: column-reverse; }

/* Leque de capas */
.hero-art {
  position: relative;
  height: 260px;
  max-width: 460px;
  width: 100%;
  margin: 0 auto;
}
.hero-art .fan {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  border: 4px solid #fff;
  transform-origin: 50% 120%;
  transform: translateX(-50%) rotate(var(--r)) translateY(var(--y, 0));
  animation: fan-in .7s var(--ease) both;
  animation-delay: var(--d);
}
.hero-art .fan img { width: 100%; height: 100%; object-fit: cover; }

@keyframes fan-in {
  from { opacity: 0; transform: translateX(-50%) rotate(0deg) translateY(24px); }
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section-tint {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 28px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--felt);
}
h2 { font-size: clamp(2rem, 6vw, 3rem); }
.section-sub {
  margin: 10px 0 0;
  color: var(--ink-2);
  max-width: 40rem;
}

/* ---------- Covers ---------- */

.cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--bg-tint);
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-missing {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, #F3D9D2 0 10px, #F8E7E2 10px 20px);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 2.2em;
  font-weight: 700;
}

/* ---------- Avatars ---------- */

.avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.av {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c, var(--felt));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* ---------- Champion ---------- */

.champ {
  display: grid;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 16px;
  box-shadow: var(--shadow-2);
}
.champ-cover {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-tint);
}
.champ-cover img { width: 100%; height: 100%; object-fit: cover; }
.medal {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-1);
}
.medal svg { width: 18px; height: 18px; }
.champ-info { padding: 4px 4px 8px; align-self: center; }
.champ-info h3 {
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 700;
}
.champ-alt { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }
.champ-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 6px;
}
.champ-count strong {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  color: var(--felt);
  font-variant-numeric: tabular-nums;
}
.champ-count span { color: var(--ink-2); }
.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--felt-soft);
  overflow: hidden;
  margin-bottom: 20px;
}
.meter span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--felt);
}

.runner-ups {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.runner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.runner { text-decoration: none; }
.stack { flex: none; display: flex; }
.stack > span { display: block; width: 48px; position: relative; border-radius: var(--radius-s); box-shadow: 0 0 0 2px #fff; }
.stack > span + span { margin-left: -22px; }
.runner .stack .cover { width: 100%; }
.runner:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.runner .cover { width: 64px; flex: none; }
.runner-place {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.runner-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.runner-votes { font-size: 14px; color: var(--ink-2); }

/* ---------- Ranking ---------- */

.rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.rank-item {
  display: grid;
  grid-template-columns: 34px 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px 10px 8px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.rank-item:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.rank-pos {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.rank-pos.p1 { color: var(--gold); }
.rank-pos.p2 { color: var(--silver); }
.rank-pos.p3 { color: var(--bronze); }
.rank-main { min-width: 0; }
.rank-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.rank-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-count {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--felt);
  font-variant-numeric: tabular-nums;
}
.rank-bar {
  height: 6px;
  margin: 8px 0 8px;
  border-radius: 999px;
  background: var(--felt-soft);
  overflow: hidden;
}
.rank-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--felt);
  border-radius: inherit;
  transform-origin: left;
  animation: grow .8s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } }
.rank-who {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.rank-who .av { width: 22px; height: 22px; font-size: 9px; margin-right: -4px; border: 2px solid #fff; box-sizing: content-box; }
.rank-who-names { margin-left: 10px; align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }

/* ---------- Families ---------- */

.families {
  display: grid;
  gap: 12px;
}
.family {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.family-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.family h3 { font-size: 1.4rem; }
.family-count {
  flex: none;
  text-align: right;
  line-height: 1.1;
}
.family-count strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--felt);
  font-variant-numeric: tabular-nums;
}
.family-count span { font-size: 12px; color: var(--ink-2); }
.family-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.family-game {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  min-height: 44px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.family-game:hover { border-color: var(--line-strong); background: #fff; }
.family-game .cover { width: 34px; flex: none; border-radius: 6px; }
.family-game small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }

/* ---------- Complexidade ---------- */

.weight-chart {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 16px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.wbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 6px;
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.wbar:hover { background: var(--bg); }
.wbar:focus-visible { outline: 2px solid var(--felt); outline-offset: 2px; }
.wbar-plot {
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 6px;
}
.wbar-val {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wbar-fill {
  width: min(56px, 70%);
  height: calc(var(--h) * .78);
  min-height: 2px;
  background: #BCD3C2;
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: rise .8s var(--ease) both;
  transition: background-color .2s var(--ease);
}
@keyframes rise { from { transform: scaleY(0); } }
.wbar[aria-pressed="true"] .wbar-fill { background: var(--felt); }
.wbar-label { font-size: 13px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; }
.wbar[aria-pressed="true"] .wbar-label { color: var(--felt); }
.wbar-games { font-size: 12px; color: var(--ink-3); }
.weight-detail { margin-top: 20px; }
.detail-head { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.detail-head strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.detail-empty { margin: 0; color: var(--ink-3); }

/* ---------- Categorias ---------- */

.cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-items: start; }
.cat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.cat summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  min-height: 56px;
  padding: 12px 16px 12px 8px;
  list-style: none;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}
.cat summary::-webkit-details-marker { display: none; }
.cat summary:hover { background: var(--bg); }
.cat summary:focus-visible { outline: 2px solid var(--felt); outline-offset: -2px; }
.cat[open] summary { border-bottom: 1px solid var(--line); }
.cat-pos {
  grid-row: span 2;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cat-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cat-count { font-size: 14px; font-weight: 600; color: var(--felt); text-align: right; font-variant-numeric: tabular-nums; }
.cat .rank-bar { margin: 0; }
.cat-games { font-size: 12px; color: var(--ink-3); text-align: right; }
.cat .grid-games { padding: 12px; }
.grid-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 8px;
}
.cats-more { margin-top: 16px; }

/* ---------- Exclusive ---------- */

.exclusive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ex-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ex-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ex-card .cover { border-radius: 0; }
.ex-body { padding: 10px 12px 12px; display: grid; gap: 8px; flex: 1; align-content: space-between; }
.ex-name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ex-by { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.ex-by .av { width: 20px; height: 20px; font-size: 9px; }

.ex-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin: -8px 0 20px;
}
.ex-filter::-webkit-scrollbar { display: none; }
.pill {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.pill:hover { border-color: var(--ink-3); }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- People ---------- */

.search {
  position: relative;
  max-width: 420px;
  margin-bottom: 20px;
}
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--felt); box-shadow: 0 0 0 4px rgba(30, 91, 62, .15); }
.search-empty { color: var(--ink-2); font-style: italic; }

.people {
  display: grid;
  gap: 14px;
}
.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-1);
}
.person[hidden] { display: none; }
.person-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.person-head .av { width: 40px; height: 40px; font-size: 14px; }
.person-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.15; }
.person-meta { font-size: 13px; color: var(--ink-2); }
.person-note {
  margin: 8px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-2);
}
.person-games {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
}
.pg {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 6px 4px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: background-color .15s var(--ease);
}
.person-games li:first-child .pg { border-top: 0; }
.pg:hover { background: var(--bg); }
.pg .cover { border-radius: 6px; }
.pg-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.pg-note { display: block; font-size: 12px; color: var(--ink-3); font-style: italic; line-height: 1.35; margin-top: 2px; }
.pg-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pg-badge.solo { background: #F8E7E2; color: #8E3522; }
.pg-badge.multi { background: var(--felt-soft); color: var(--felt); }
.pg.is-match { background: var(--gold-soft); }

/* ---------- Footer ---------- */

.footer {
  padding: 32px 0 48px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--felt); }

/* ---------- Modal ---------- */

.modal {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(30, 20, 5, .35);
  overflow: hidden;
}
.modal::backdrop {
  background: rgba(31, 27, 22, .5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal[open] { animation: modal-in .28s var(--ease); }
.modal[open]::backdrop { animation: fade-in .28s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

.modal-body {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: end;
  padding: 20px 20px 0;
}
.modal-hero .cover { border-radius: var(--radius); box-shadow: var(--shadow-2); }
.modal-hero .cover img { object-fit: contain; background: var(--bg-tint); }
.modal h3 { font-size: 1.6rem; padding-right: 36px; }
.modal-alt { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; }
.modal-stat {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--felt);
}
.modal-section { padding: 20px; }
.modal-section + .modal-section { padding-top: 0; }
.modal-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.voters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.voter {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.voter .av { width: 32px; height: 32px; font-size: 11px; }
.voter-name { font-weight: 600; font-size: 15px; }
.voter-note { display: block; font-size: 13px; font-style: italic; color: var(--ink-2); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { background: var(--bg); border-color: var(--ink-3); }
.btn-primary { background: var(--felt); border-color: var(--felt); color: #fff; }
.btn-ludo { background: #F6EBD3; border-color: #E2C98F; color: #6B4510; }
.btn-ludo:hover { background: #F0DFB9; border-color: #C9A35A; }
.btn-primary:hover { background: #164a31; border-color: #164a31; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: background-color .2s var(--ease);
}
.modal-close:hover { background: var(--bg-tint); }
.modal-close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }

.mini-games { display: flex; flex-wrap: wrap; gap: 8px; }

.modal-weight { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.wdots { display: inline-flex; gap: 3px; }
.wdots i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.wdots i.on { background: var(--gold); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags + .tags { margin-top: 8px; }
.tag { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 12px; color: var(--ink-2); }
.tag-cat { background: var(--felt-soft); border-color: #BCD3C2; color: var(--felt); font-weight: 600; }

/* ---------- Breakpoints ---------- */

@media (min-width: 560px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .exclusive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .runner-ups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runner-ups > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rank-item { grid-template-columns: 44px 64px minmax(0, 1fr); gap: 16px; padding: 12px 16px 12px 10px; }
  .rank-name { font-size: 16px; }
  .modal-hero { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (min-width: 820px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 80px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .hero-art { height: 360px; }
  .section { padding: 88px 0; }
  .champ { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding: 20px; gap: 36px; }
  .champ-info { padding: 12px 16px 12px 0; }
  .families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .weight-chart { padding: 24px 20px 12px; gap: 12px; }
  .wbar-plot { height: 220px; }
  .grid-games { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .exclusive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

@media (min-width: 1080px) {
  .exclusive-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .families { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rank { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
}

/* Layout empilhado: altura do leque proporcional à largura, sem espaço vazio acima das capas */
@media (max-width: 819px) {
  .hero-art { height: auto; aspect-ratio: 460 / 250; }
}

/* Celular: sem os cards de números e com o leque de capas logo abaixo do texto */
@media (max-width: 559px) {
  .stats { display: none; }
  .hero { padding: 28px 0 20px; }
  .hero-grid { gap: 8px; }
  .lede { margin-top: 14px; }
  .hero-art { aspect-ratio: 460 / 225; }
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 20px; }
  .wbar-plot { height: 140px; }
  .wbar-val { font-size: 1.2rem; }
  .wbar-label { font-size: 11px; }
  .wbar-games { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
