@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e9eee9;
  --bg-raise: #ffffff;
  --text: #1a211c;
  --muted: #5a6b5e;
  --accent: #1f6b3a;
  --felt: #1f6b3a;
  --felt-deep: #14532d;
  --felt-ink: #f3faf5;
  --line: #c9d4cb;
  --banner: #f9fbfa;
  --menu: #171c19;
  --menu-text: #e8eee8;
  --menu-muted: #a3aea0;
  --era-5: #1f6b3a;
  --era-4: #1d4e89;
  --era-all: #222826;
  --shadow: 0 1px 0 rgba(26, 33, 28, 0.06);
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
}

.wrap {
  max-width: var(--wrap);
  width: calc(100% - 2rem);
  margin: 0 auto;
}

/* —— Banner —— */
.banner-band {
  background: var(--banner);
}

.banner-link {
  display: block;
  text-decoration: none;
}

.banner {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 170px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

@media (max-width: 700px) {
  .banner {
    max-height: 80px;
  }
}

/* —— Menu —— */
.menu-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--menu);
  border-bottom: 1px solid #0d100e;
}

.menu-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.1rem;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
}

.menu-home,
.menu-btn,
.menu-item,
.hamburger {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--menu-text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.35rem;
  padding: 0.4rem 0.8rem;
}

.menu-home:hover,
.menu-btn:hover,
.menu-item:hover,
.hamburger:hover {
  background: #243028;
}

.menu-home.is-active,
.menu-btn.is-active,
.menu-item.is-active {
  background: var(--accent);
  color: #fff;
}

.menu-group {
  position: relative;
}

.menu-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 10rem;
  padding: 0.35rem;
  background: #222826;
  border: 1px solid #2f3a33;
  border-radius: 0.45rem;
  z-index: 30;
}

.menu-group.is-open .menu-panel {
  display: grid;
  gap: 0.15rem;
}

.header-search {
  position: relative;
  width: min(16rem, 100%);
  margin-left: auto;
}

.page-search {
  position: relative;
  max-width: 24rem;
  margin: 0 0 1rem;
}

.header-search input,
input[type="search"] {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid #2f3a33;
  border-radius: 0.35rem;
  background: #101410;
  color: var(--menu-text);
  font: inherit;
}

.page-search input[type="search"] {
  border-color: var(--line);
  background: var(--bg-raise);
  color: var(--text);
}

.search-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow: auto;
  margin: 0.25rem 0 0;
  padding: 0.25rem;
  list-style: none;
  background: #222826;
  border: 1px solid #2f3a33;
  border-radius: 0.45rem;
}

.page-search .search-list {
  background: var(--bg-raise);
  border-color: var(--line);
}

.search-list a {
  display: block;
  padding: 0.4rem 0.65rem;
  text-decoration: none;
  border-radius: 0.35rem;
  color: var(--menu-text);
}

.page-search .search-list a {
  color: var(--text);
}

.search-list a:hover {
  background: #243028;
}

.page-search .search-list a:hover {
  background: #e7efe9;
}

.hamburger {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 700px) {
  .hamburger {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 0.9rem;
    background: var(--menu);
    border-bottom: 1px solid #0d100e;
  }

  .menu.is-open {
    display: flex;
  }

  .menu-bar-inner {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .menu-panel {
    position: static;
    display: none;
    border: 0;
    background: transparent;
    padding: 0.2rem 0 0.2rem 0.6rem;
  }

  .menu-group.is-open .menu-panel {
    display: grid;
  }
}

/* —— Type —— */
main {
  padding: 1.25rem 0 2.5rem;
}

h1, h2, h3,
.display,
.felt-champ-name,
.felt-stat-fig,
.felt-stat-names,
.counts-grid strong,
.stat-tiles strong,
.plaque-count {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  text-transform: uppercase;
}

h2 {
  margin: 1.5rem 0 0.45rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  text-transform: uppercase;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p {
  margin: 0.4rem 0;
}

.muted,
.footnote,
.site-footer,
.ranked-by,
.board-desc {
  color: var(--muted);
}

.ranked-by {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
}

.callout {
  margin: 0.8rem 0;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-raise);
  color: var(--muted);
  box-shadow: var(--shadow);
}

/* —— Felt band —— */
.felt-band {
  --felt-pale: #c6e6d1;
  --felt-gold: #e3c25a;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.18), transparent 45%),
    linear-gradient(180deg, #248048 0%, var(--felt) 45%, var(--felt-deep) 100%);
  color: #fff;
  padding: 28px 0;
  border-bottom: 4px solid #0f3d22;
}

.felt-halves {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.felt-champ {
  min-width: 0;
}

.felt-label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--felt-pale);
  text-transform: none;
}

.felt-champ .felt-label {
  font-size: 14px;
}

.felt-champ-name {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.95;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.felt-champ-name a {
  color: #fff;
  text-decoration: none;
}

.felt-champ-name a:hover {
  text-decoration: underline;
}

.felt-detail {
  margin: 0.45rem 0 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--felt-pale);
}

.felt-detail strong {
  color: #fff;
  font-weight: 700;
}

.felt-full-btn {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0.25rem;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.felt-full-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.felt-stats {
  min-width: 0;
}

.felt-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.felt-stat-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.felt-stat-row:last-child {
  padding-bottom: 0;
}

.felt-stat-fig-col {
  width: 7.5rem;
  text-align: right;
}

.felt-stat-fig {
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: var(--felt-gold);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.felt-stat-unit {
  margin: 0.15rem 0 0;
  font-size: 12px;
  line-height: 1.2;
  color: var(--felt-pale);
}

.felt-stat-body .felt-label {
  font-size: 14px;
}

.felt-stat-names {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.felt-stat-names a {
  color: #fff;
  text-decoration: none;
}

.felt-stat-names a:hover {
  text-decoration: underline;
}

.felt-stat-sub {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--felt-pale);
}

@media (max-width: 799px) {
  .felt-halves {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }

  .felt-champ-name {
    font-size: 44px;
  }
}

/* —— Counts panel —— */
.counts-panel {
  margin: 1.1rem 0 0.4rem;
}

.counts-panel h2 {
  margin: 0 0 0.85rem;
}

.counts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.counts-grid .count-fig {
  text-align: center;
  padding: 0.35rem 0.6rem;
  border-left: 1px solid var(--line);
}

.counts-grid .count-fig:first-child {
  border-left: none;
}

.counts-grid strong {
  display: block;
  font-family: var(--display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.counts-grid span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 700px) {
  .counts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .counts-grid .count-fig {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 0.75rem 0.4rem;
  }

  .counts-grid .count-fig:nth-child(-n+2) {
    border-top: none;
  }

  .counts-grid .count-fig:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .counts-grid .count-fig-span {
    grid-column: 1 / -1;
    border-left: none;
  }

  .counts-grid strong {
    font-size: 48px;
  }
}

/* —— Season pair —— */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 1.4rem 0 0.55rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  font-size: 0.95rem;
}

.pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 800px) {
  .pair-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Panels / boards —— */
.panel,
.board,
.top3-col {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem 1rem;
  box-shadow: var(--shadow);
}

.panel h2,
.board-title {
  margin: 0 0 0.25rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}

a.board-title:hover {
  color: var(--accent);
}

.board-desc {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.boards-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .boards-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .boards-wall {
    grid-template-columns: 1fr;
  }
}

.board-eras {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 0.65rem;
}

.era-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: #f3f7f3;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 0.25rem;
  cursor: pointer;
}

.era-tab[data-era="5man"].is-active {
  background: var(--era-5);
  border-color: var(--era-5);
  color: #fff;
}

.era-tab[data-era="4man"].is-active {
  background: var(--era-4);
  border-color: var(--era-4);
  color: #fff;
}

.era-tab[data-era="all"].is-active {
  background: var(--era-all);
  border-color: var(--era-all);
  color: #fff;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-list li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0;
  border-top: 1px solid #e4ebe5;
  font-size: 0.92rem;
}

.board-list li:first-child {
  border-top: 0;
}

.board-stat {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board .full-list {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

/* —— Pool balls —— */
.ball {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #111;
  background: #ddd;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  flex: 0 0 auto;
}

.ball-plain {
  display: inline-block;
  min-width: 1.45rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.ball-1 { background: #f2d11a; }
.ball-2 { background: #2f6fd6; color: #fff; }
.ball-3 { background: #d43b3b; color: #fff; }
.ball-4 { background: #6b3fa0; color: #fff; }
.ball-5 { background: #e67a22; color: #fff; }
.ball-6 { background: #2f8f45; color: #fff; }
.ball-7 { background: #7a1f2b; color: #fff; }
.ball-8 { background: #1a1a1a; color: #fff; }
.ball-9,
.ball-10,
.ball-11,
.ball-12,
.ball-13,
.ball-14,
.ball-15 {
  background:
    linear-gradient(#fff 0 38%, transparent 38% 62%, #fff 62%),
    var(--stripe, #f2d11a);
  color: #111;
}

.ball-9 { --stripe: #f2d11a; }
.ball-10 { --stripe: #2f6fd6; color: #fff; }
.ball-11 { --stripe: #d43b3b; color: #fff; }
.ball-12 { --stripe: #6b3fa0; color: #fff; }
.ball-13 { --stripe: #e67a22; color: #fff; }
.ball-14 { --stripe: #2f8f45; color: #fff; }
.ball-15 { --stripe: #7a1f2b; color: #fff; }

td .ball,
th .ball {
  vertical-align: middle;
}

/* —— Legends wall —— */
.legends-wall {
  margin-top: 1.75rem;
}

.plaque-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .plaque-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .plaque-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plaque {
  background:
    linear-gradient(180deg, #3a2a14 0%, #24180b 100%);
  color: #f3e2b0;
  border: 2px solid #8a6a2f;
  border-radius: 0.25rem;
  padding: 0.55rem 0.65rem 0.6rem;
  box-shadow: inset 0 0 0 1px rgba(243, 226, 176, 0.15);
}

.plaque-link {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: #f7e7b4;
  text-decoration: none;
}

.plaque-link:hover .plaque-name {
  text-decoration: underline;
}

.plaque-count {
  flex: 0 0 auto;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  line-height: 1;
  color: #f7e7b4;
}

.plaque-name {
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: uppercase;
  color: #f3e2b0;
}

.section-note {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* —— Era bar / chips —— */
.era {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 1rem;
}

.era-link,
.chip,
.show-all {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: 0.3rem;
  padding: 0.25rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.era-link.is-active,
.chip.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.show-all {
  margin-top: 0.55rem;
}

/* —— Tables —— */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: clip;
}

table {
  width: max-content;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.38rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: #f1f5f1;
  font-weight: 650;
}

th.is-sorted {
  color: var(--accent);
}

th button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

th.num,
td.num,
th.num button {
  text-align: right;
  width: 100%;
}

tr.is-muted td {
  color: var(--muted);
}

tr.is-hidden,
tr.is-overflow {
  display: none;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

/* —— Hub / leaderboards —— */
.hub {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.hub-nav {
  display: grid;
  gap: 0.25rem;
  position: sticky;
  top: 4.2rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: 0.45rem;
  box-shadow: var(--shadow);
}

.hub-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 0.3rem;
}

.hub-nav a:hover {
  background: #e7efe9;
}

.hub-nav a.is-active {
  background: var(--accent);
  color: #fff;
}

.hub-select {
  display: none;
  width: 100%;
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--bg-raise);
  color: var(--text);
  font: inherit;
}

@media (max-width: 800px) {
  .hub {
    grid-template-columns: 1fr;
  }

  .hub-nav {
    display: none;
  }

  .hub-select {
    display: block;
  }
}

/* —— Records / top3 —— */
.top3-grid {
  display: grid;
  gap: 0.75rem;
}

.top3-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.top3-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 800px) {
  .top3-grid.cols-2,
  .top3-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

.top3-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top3-list li {
  display: flex;
  gap: 0.55rem;
  margin: 0.45rem 0;
  align-items: flex-start;
}

.full-list {
  display: inline-block;
  margin-top: 0.45rem;
}

/* —— Player / stats —— */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.5rem 0 1rem;
}

@media (max-width: 800px) {
  .stat-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-tiles div {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  box-shadow: var(--shadow);
}

.stat-tiles span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-tiles strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.85rem;
}

.player-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.legend-plaque {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: linear-gradient(180deg, #3a2a14, #24180b);
  border: 1px solid #8a6a2f;
  color: #f3e2b0;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart {
  display: block;
  width: min(100%, 40rem);
  height: auto;
  margin: 0.4rem 0 1rem;
  background: var(--bg-raise);
  border: 1px solid var(--line);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.chart-dot {
  fill: var(--accent);
}

.chart-base {
  stroke: var(--line);
  stroke-width: 1;
}

.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.3rem 0 0.8rem;
}

.stat-line div {
  min-width: 5rem;
}

.stat-line span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.footnote,
.site-footer {
  max-width: var(--wrap);
  width: calc(100% - 2rem);
  margin: 0 auto 1.5rem;
}

.site-footer {
  padding: 0.9rem 0 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.main-flush {
  width: 100%;
  max-width: none;
  padding: 0;
}

.main-flush > .wrap,
.page-body {
  max-width: var(--wrap);
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0 0 2rem;
}

.felt-band + .page-body {
  padding-top: 0.25rem;
}

.board-note,
.tile-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.tile-note {
  font-size: 0.78rem;
  font-weight: 400;
}

.send-panel {
  margin-top: 1rem;
}

.send-button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 0.3rem;
}

.send-button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.send-note,
.send-fallback {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.gap-count {
  margin: 0 0 0.65rem;
  font-weight: 600;
}

.gaps-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.wanted-block,
.wanted-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wanted-block {
  display: grid;
  gap: 1rem;
}

.wanted-subhead {
  margin: 1rem 0 0.55rem;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.wanted-subhead:first-of-type {
  margin-top: 0.35rem;
}

.wanted-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.wanted-nothing {
  margin: 0;
  line-height: 1.45;
}

.wanted-list li {
  margin: 0.15rem 0;
  padding-left: 1rem;
  position: relative;
}

.wanted-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.cov {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  font-size: 0.9rem;
}

.cov-mark {
  font-weight: 700;
}

.cov-have .cov-mark { color: var(--accent); }
.cov-mid .cov-mark { color: #8a6a2f; }
.cov-missing .cov-mark { color: #8a3030; }

.missing-note-cell {
  color: var(--muted);
  font-style: italic;
}

.season-missing {
  margin-top: 1.25rem;
}

.season-missing h2 {
  margin-bottom: 0.4rem;
}
