/* ==========================================================================
   Mus World Ranking — sistema visual
   Identidad: tapete de mus (verde fieltro + oro) con tipografía de
   federación deportiva (Barlow Condensed display / Barlow texto).
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  color-scheme: light;
  /* primitivos */
  --ink: #16201a;
  --muted: #51605a;
  --felt: #0f5132;
  --felt-2: #157347;
  --felt-deep: #0a3a24;
  --gold: #d8a322;
  --gold-bright: #ecc258;
  --crimson: #a83232;
  --paper: #fffaf0;
  --surface: #ffffff;
  /* semánticos */
  --line: rgba(22, 32, 26, 0.14);
  --line-strong: rgba(22, 32, 26, 0.28);
  --shadow-sm: 0 2px 10px rgba(22, 32, 24, 0.08);
  --shadow: 0 18px 55px rgba(22, 32, 24, 0.13);
  --focus-ring: 0 0 0 3px rgba(216, 163, 34, 0.55);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1180px;
  /* tipografía */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* ritmo */
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --dur: 200ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --- Base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 163, 34, .18), transparent 28rem),
    linear-gradient(180deg, #f7f2e7 0%, #eef4ed 48%, #f8f8f4 100%);
  line-height: 1.6;
}
a { color: inherit; }
a, button, [role="button"] { cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); text-wrap: balance; }
h3 { font-size: 1.35rem; line-height: 1.15; margin: .2rem 0 .5rem; letter-spacing: .01em; }
p { max-width: 72ch; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 100;
  background: var(--felt); color: #fff; font-weight: 700;
  padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip-link:focus-visible { left: .5rem; }

/* --- Cabecera ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem max(1rem, calc((100% - var(--max)) / 2));
  backdrop-filter: blur(18px);
  background: rgba(255, 250, 240, .88);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--felt); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18), 0 0 0 1px rgba(15, 81, 50, .25);
}
.brand strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  text-decoration: none; padding: .62rem .85rem; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: .95rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(15, 81, 50, .1); color: var(--felt); }
.site-nav a[aria-current="page"] { background: var(--felt); color: #fff; }

/* --- Hero ----------------------------------------------------------------- */
.hero-section, .page-hero { position: relative; overflow: hidden; padding: clamp(4rem, 8vw, 7rem) 1rem 4rem; }
.hero-section::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(135deg, rgba(15, 81, 50, .97), rgba(10, 45, 28, .96));
}
.hero-section::after, .page-hero::after {
  content: ""; position: absolute; inset: auto -10% -35% auto; width: 55vw; aspect-ratio: 1;
  border-radius: 50%; background: rgba(216, 163, 34, .18); filter: blur(24px); z-index: -1;
}
.hero-inner { max-width: var(--max); margin: 0 auto; color: #fff; }
.hero-inner h1 {
  max-width: 900px; margin: .35rem 0 1rem;
  font-size: clamp(2.6rem, 7vw, 6.2rem); font-weight: 700; line-height: .94;
  letter-spacing: -.005em; text-transform: uppercase;
}
.compact-hero { padding: clamp(3rem, 6vw, 5rem) 1rem 3.25rem; }
.compact-hero .hero-inner h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.hero-copy { max-width: 640px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .86); }
.eyebrow {
  margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .16em;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600; color: var(--gold-bright);
}
main > .section .eyebrow, .content-section .eyebrow { color: #9a7414; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 820px; margin: 2rem 0 0; }
.hero-stats div { padding: 1rem 1.1rem; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); color: #fff; }
dt { color: rgba(255, 255, 255, .72); text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-display); font-size: .82rem; font-weight: 600; }
dd { margin: 0; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.hero-media {
  position: absolute; right: 5vw; top: 7rem; z-index: -1;
  color: rgba(255, 255, 255, .07); font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 8vw, 9rem); text-transform: uppercase;
  display: grid; gap: .1em; transform: rotate(-8deg); pointer-events: none;
}

/* --- Botones ---------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .72rem 1.35rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 32, 24, .22); }
.button:active { transform: translateY(0) scale(.98); }
.button.primary { background: var(--gold); color: #1d1604; }
.button.primary:hover { background: var(--gold-bright); }
.button.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.button.ghost:hover { background: rgba(255, 255, 255, .16); }
.content-section .button.ghost, .surface .button.ghost { color: var(--felt); border-color: var(--felt); background: transparent; }

/* --- Secciones ----------------------------------------------------------------- */
.section, .page-shell { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4.5rem) 1rem; }
.page-shell { display: grid; gap: var(--space-3); }
.surface, .content-section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2.25rem);
}
.section-heading { max-width: 780px; margin-bottom: 1.6rem; }
.section-heading h2, .content-section h2, .surface h2, .site-footer h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; line-height: 1;
  letter-spacing: .005em; text-transform: uppercase; margin: .2rem 0 .65rem;
}
.section-heading p { color: var(--muted); }

/* --- Tabla de ranking -------------------------------------------------------------- */
.table-container { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ranking-table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.ranking-table caption { text-align: left; padding: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; color: var(--felt); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
td { font-variant-numeric: tabular-nums; }
th { background: #eef5ef; color: var(--felt); font-family: var(--font-display); font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
tbody tr { transition: background var(--dur) var(--ease); }
tbody tr:nth-child(even):not(.champion-row):not(.muted-row) { background: #fbfcf9; }
tbody tr:hover:not(.champion-row) { background: #f2f7f3; }
td small { display: block; color: var(--muted); margin-top: .2rem; font-size: .85rem; }
.champion-row { background: linear-gradient(90deg, rgba(216, 163, 34, .2), rgba(216, 163, 34, .04) 70%, transparent); box-shadow: inset 3px 0 0 var(--gold); }
.rank-badge {
  display: inline-grid; place-items: center; min-width: 2.3rem; height: 2.3rem; padding: 0 .45rem;
  border-radius: 999px; background: var(--felt); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums;
}
.champion-row .rank-badge { background: var(--gold); color: #1d1604; box-shadow: 0 0 0 3px rgba(216, 163, 34, .3); }
.flag { font-size: 1.6rem; }
.flag-img { width: 2.15rem; height: 1.45rem; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(23, 33, 27, .12); }
.rainbow-flag { display: inline-block; width: 2.15rem; height: 1.45rem; border-radius: 4px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(23, 33, 27, .12); background: linear-gradient(180deg, #e40303 0 16.66%, #ff8c00 16.66% 33.33%, #ffed00 33.33% 50%, #008026 50% 66.66%, #24408e 66.66% 83.33%, #732982 83.33% 100%); }
.muted-row { color: var(--muted); }

/* --- Tarjetas y rejillas ----------------------------------------------------------- */
.feature-grid, .books-grid, .content-grid, .metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.books-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid article, .feature-card, .content-grid article, .news-card, .book-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .92);
}
.metric-grid article, .feature-card, .content-grid article, .news-card, .book-card { box-shadow: var(--shadow-sm); }
.feature-card, .book-card, .metric-grid article, .content-grid article, .news-card { padding: 1.2rem; text-decoration: none; }
a.feature-card, a.book-card, a.news-card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
a.feature-card:hover, a.book-card:hover, a.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(216, 163, 34, .55); }
.feature-card span, .news-card span { color: var(--crimson); font-family: var(--font-display); font-weight: 600; font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; }
.feature-card strong, .book-card strong { display: block; margin: .3rem 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.feature-card p, .book-card span:last-child { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.book-card img { aspect-ratio: 3 / 4; width: 100%; object-fit: contain; border-radius: var(--radius-sm); background: linear-gradient(180deg, #f8f3e7, #ffffff); margin-bottom: 1rem; padding: .45rem; }

/* --- Detalle de libro ------------------------------------------------------------- */
.book-detail { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 2rem; align-items: start; }
.book-detail img { border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 5.5rem; }
.book-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.book-meta li { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; color: var(--muted); background: #fbfaf5; font-variant-numeric: tabular-nums; }
.book-meta li strong { color: var(--felt); font-weight: 700; }
.chapter-list { list-style: none; counter-reset: cap; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.chapter-list li { counter-increment: cap; display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: baseline; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fdfcf8; }
.chapter-list li::before { content: counter(cap, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--gold); text-align: right; }
.chapter-list li em { display: block; font-style: normal; color: var(--muted); font-size: .88rem; }

/* --- Reseñas y citas de prensa ------------------------------------------------------ */
.review-grid, .press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.review-card, .press-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); padding: 1.2rem; margin: 0; }
.review-card blockquote, .press-card blockquote { margin: 0 0 .8rem; font-size: 1.02rem; line-height: 1.5; }
.review-card blockquote::before, .press-card blockquote::before { content: "“"; display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: .6; color: var(--gold); margin-bottom: .35rem; }
.review-card figcaption, .press-card figcaption { color: var(--muted); font-size: .88rem; }
.review-card figcaption strong, .press-card figcaption strong { display: block; color: var(--ink); font-weight: 700; }
.stars { color: var(--gold); letter-spacing: .1em; font-size: .9rem; }

/* --- FAQ ----------------------------------------------------------------------------- */
.faq-list { display: grid; gap: .75rem; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: .7rem; height: .7rem; border-right: 2px solid var(--felt); border-bottom: 2px solid var(--felt); transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list details > p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--muted); }

/* --- Listas, sellos y bloques -------------------------------------------------------- */
.split-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem; align-items: start; }
.proof-list { display: grid; gap: .65rem; }
.proof-list a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .8rem 1.1rem; text-decoration: none; font-weight: 700; color: var(--felt); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.proof-list a:hover { border-color: rgba(216, 163, 34, .6); transform: translateX(4px); }
.entity-list a { border-radius: var(--radius); display: block; }
.entity-list span { display: block; }
.entity-list small { display: block; margin-top: .25rem; color: var(--muted); font-weight: 500; line-height: 1.4; }
.metric-grid article span, .price { display: block; color: var(--felt); font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { display: block; font-size: .9rem; color: var(--muted); margin-top: .5rem; }
.formula, .callout, .note { background: #f2f7f3; border-left: 4px solid var(--felt); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0; }
.callout.gold { background: #fdf6e2; border-left-color: var(--gold); }
.check-list { padding-left: 1.2rem; }
.check-list li { margin: .55rem 0; }
.timeline { display: grid; gap: 1rem; }
.product-band { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; background: linear-gradient(135deg, #fff8df, #ecf7ee); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.seal {
  display: inline-flex; align-items: center; gap: .5rem; margin: .5rem 0;
  border: 2px solid var(--gold); border-radius: 999px; padding: .4rem 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem;
  letter-spacing: .12em; text-transform: uppercase; color: #9a7414; background: #fdf6e2;
}

/* --- Panel de estadísticas (existente) ------------------------------------------------ */
.stats-dashboard { display: grid; gap: 1.25rem; overflow: hidden; }
.stats-dashboard > *, .metric-grid > *, .radar-grid > * { min-width: 0; }
.dashboard-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #ffffff, #fbf7ed); padding: clamp(1rem, 3vw, 1.5rem); box-shadow: var(--shadow); }
.history-chart { position: relative; min-height: 340px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #f8fbf6, #fffaf0); }
.chart-grid { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(23, 33, 27, .08) 1px, transparent 1px), linear-gradient(to bottom, rgba(23, 33, 27, .08) 1px, transparent 1px); background-size: 16.66% 100%, 100% 20%; }
.history-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.line { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.line-nacho { stroke: var(--gold); filter: drop-shadow(0 4px 8px rgba(216, 163, 34, .45)); }
.line-borjian { stroke: #157347; }
.line-piparrigan { stroke: #4a7c59; }
.line-albert { stroke: #6f8f72; }
.line-james { stroke: #a83232; }
.line-mikele { stroke: #51605a; }
.line-raphelo { stroke: #732982; stroke-dasharray: 10 10; }
.chart-years { position: absolute; left: 1rem; right: 1rem; bottom: .75rem; display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.legend-grid { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: 1rem; color: var(--muted); font-weight: 700; font-size: .9rem; }
.legend-grid span { min-width: 0; }
.legend { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; margin-right: .35rem; vertical-align: -.1rem; }
.legend.nacho { background: var(--gold); } .legend.borjian { background: #157347; } .legend.piparrigan { background: #4a7c59; } .legend.albert { background: #6f8f72; } .legend.james { background: #a83232; } .legend.mikele { background: #51605a; } .legend.raphelo { background: #732982; }
.dominance-bars { display: grid; gap: .8rem; }
.bar-row { display: grid; grid-template-columns: 10rem 1fr 3rem; gap: .85rem; align-items: center; }
.bar-row strong { font-size: .95rem; }
.bar-row div { min-width: 0; height: 1rem; border-radius: 999px; background: #e7eee7; overflow: hidden; }
.bar-row span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--felt), var(--gold)); }
.bar-row em { font-style: normal; font-weight: 800; color: var(--felt); text-align: right; font-variant-numeric: tabular-nums; }
.radar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.radar-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1rem; }
.radar-card h3 { margin: .2rem 0 1rem; }
.radar-card svg { width: 100%; max-width: 220px; margin: 0 auto; display: block; }
.radar-bg { fill: #f2f7f3; stroke: rgba(23, 33, 27, .18); stroke-width: 2; }
.radar-fill { fill: rgba(21, 115, 71, .42); stroke: #157347; stroke-width: 3; }
.elite-fill { fill: rgba(216, 163, 34, .48); stroke: var(--gold); }
.radar-card.elite { background: linear-gradient(180deg, #fff8df, #ffffff); }

/* --- Pie ---------------------------------------------------------------------------- */
.site-footer { background: var(--felt-deep); color: #fff; margin-top: 3rem; padding: 3rem 1rem 1.5rem; border-top: 4px solid var(--gold); }
.footer-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; }
.site-footer p { color: rgba(255, 255, 255, .74); }
.site-footer .eyebrow { color: var(--gold-bright); }
.site-footer nav { display: grid; gap: .6rem; align-content: start; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--gold-bright); }
.copyright { max-width: var(--max); margin: 2rem auto 0; color: rgba(255, 255, 255, .55); font-size: .9rem; }

/* --- Responsive ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .feature-grid, .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid, .press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: space-between; width: 100%; flex-wrap: nowrap; padding-bottom: .25rem; gap: 0; overflow-x: auto; }
  .hero-stats, .feature-grid, .books-grid, .content-grid, .metric-grid, .split-section, .footer-grid, .book-detail, .product-band, .radar-grid, .review-grid, .press-grid { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .ranking-table { min-width: 680px; }
  .book-detail img { position: static; max-width: 320px; }
  .bar-row { grid-template-columns: 1fr; gap: .35rem; }
  .bar-row em { text-align: left; }
}
@media (max-width: 520px) {
  .hero-section, .page-hero { padding-left: .85rem; padding-right: .85rem; }
  .section, .page-shell { padding-left: .75rem; padding-right: .75rem; }
  th, td { padding: .75rem; }
  .button { width: 100%; }
}
@media (max-width: 640px) {
  #tournamentTable { min-width: 0; }
  #tournamentTable thead { display: none; }
  #tournamentTable, #tournamentTable tbody, #tournamentTable tr, #tournamentTable td { display: block; width: 100%; }
  #tournamentTable tr { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  #tournamentTable td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; border: 0; padding: .35rem 1rem; }
  #tournamentTable td::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
  .site-nav a { padding: .5rem .42rem; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
