@font-face{font-family:'Bitter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/bitter-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Bitter';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/bitter-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Bitter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/bitter-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Bitter';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/bitter-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Bitter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/bitter-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Bitter';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/bitter-latin-ext-700-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/nunito-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/nunito-latin-ext-400-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/nunito-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/nunito-latin-ext-500-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/nunito-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/nunito-latin-ext-600-normal.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}

:root {
  --bg:       #0d1f18;
  --surface:  #152a22;
  --card:     #1a3028;
  --border:   #254034;
  --gold:     #f5c842;
  --gold-dim: #c49e2e;
  --text:     #e2ede8;
  --muted:    #8aaa9a;
  --radius:   6px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}


/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Bitter', Georgia, serif;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: .75rem; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: .5rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ── */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
html:not([data-theme="light"]) .site-header { background: #131e1a; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem;
  max-width: 1100px; margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.site-logo:hover { text-decoration: none; }
.site-logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { font-family: 'Bitter', serif; font-size: 1.35rem; font-weight: 700; color: var(--gold); }

nav { display: flex; gap: 1.5rem; align-items: center; }
nav a { color: var(--text); font-size: .9rem; font-weight: 600; transition: color .2s; }
nav a:hover { color: var(--gold); text-decoration: none; }

/* ── Hamburger ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: .25rem 0 .75rem;
    border-top: 1px solid var(--border);
    margin-top: .5rem;
  }
  nav.is-open { display: flex; }
  nav a { padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  nav a:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Table → card layout ── */
@media (max-width: 900px) {
  .stats-table thead { display: none; }
  .stats-table, .stats-table tbody,
  .stats-table tr, .stats-table td { display: block; width: 100%; min-width: 0 !important; }
  .stats-table tbody tr {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: .75rem;
    padding: .6rem .75rem;
  }
  .stats-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    text-align: left;
  }
  .stats-table tbody td:last-child { border-bottom: none; }
  .stats-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    flex-shrink: 0;
    margin-right: .75rem;
  }
  .stats-table tbody td:first-child {
    font-weight: 700;
    font-size: 1rem;
    justify-content: flex-start;
    border-bottom: 1px solid var(--gold);
    padding-bottom: .5rem;
    margin-bottom: .1rem;
  }
  .stats-table tbody td:first-child::before { display: none; }
  .stats-table tbody td[colspan] {
    font-weight: 700;
    justify-content: flex-start;
    color: var(--gold);
    border-top: 1px solid var(--border);
  }
  .stats-table tbody td[colspan]::before { display: none; }
}

/* ── Table card layout: narrow screens — stack label above value ── */
@media (max-width: 550px) {
  .stats-table tbody td {
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    padding: .4rem 0;
  }
  .stats-table tbody td::before {
    margin-right: 0;
    margin-bottom: .05rem;
  }
  .stats-table tbody td:first-child {
    font-size: .95rem;
  }
}

/* ── Hero strip ── */
.hero-strip {
  background: linear-gradient(135deg, var(--surface) 0%, #0f2820 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
}
.hero-strip .tagline {
  font-size: 1.1rem; color: var(--muted); margin-top: .75rem;
}
.hero-strip h1 span { color: var(--gold); }

/* ── Section headings ── */
.section { padding: 2rem 0; }
.section-title {
  font-size: 1.4rem; margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
main p {
  color: var(--muted);
  font-size: .92rem;
}
.section-title + p {
  margin-top: -.5rem;
  margin-bottom: 1.25rem;
}

/* ── Logo wrappers (used in tables and lists) ── */
.logo-row { display: flex; align-items: center; gap: .5rem; }
.logo-row-sm { display: flex; align-items: center; gap: .45rem; }
.logo-inline-row { display: inline-flex; align-items: center; gap: .4rem; }
.logo-inline-row-wrap { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.logo-square {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: white;
  border-radius: 4px;
  padding: 2px;
  flex-shrink: 0;
}
.logo-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-circle-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-square img,
.logo-circle img,
.logo-circle-sm img { object-fit: contain; }

/* ── Player profile bits ── */
.player-subtitle { font-size: .95rem; margin-bottom: 1.5rem; }
.stats-table-spaced { margin: 1.25rem 0 2rem; }
.card-meta { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ── Hero CTA buttons + row ── */
.hero-cta-row {
  margin-top: 1.25rem;
  display: flex;
  gap: .65rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta {
  display: inline-block;
  background: var(--gold);
  font-weight: 700;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .95rem;
  min-width: 220px;
  text-align: center;
}
.hero-cta-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

/* ── Quiz callout (homepage) ── */
.callout-quiz {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.callout-quiz > span { font-size: .95rem; }
.callout-quiz strong { color: var(--text); }
.callout-quiz a {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
  font-size: .95rem;
}

/* ── Utility classes ── */
.mt-1 { margin-top: 1rem; }
.mt-125 { margin-top: 1.25rem; }
.mt-15 { margin-top: 1.5rem; }
.note-small { margin-top: .6rem; font-size: .8rem; }
.note-small-15 { margin-top: .85rem; font-size: .82rem; line-height: 1.5; }
.see-also { margin-top: 1rem; font-size: .9rem; }
.bold { font-weight: 700; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.overflow-x { overflow-x: auto; }

/* ── Scrollable table wrappers (replace inline min-width) ── */
.stats-table-wide { min-width: 700px; }
.stats-table-wide-720 { min-width: 720px; }

/* Other one-offs from games / livescore */
.cell-flag { width: 18px; text-align: center; margin-left: .4rem; }
.cell-divider { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.lead-text { font-size: 1.1rem; font-weight: 600; }
.body-sm { font-size: .88rem; }
.body-sm-15 { font-size: .88rem; line-height: 1.55; color: var(--muted); }
.body-sm-mb { font-size: .88rem; margin-bottom: 1.5rem; }
.wdl-win { background: #3cbe7a; }
.wdl-draw { background: #8a9a90; }
.wdl-loss { background: #d95f5f; }

/* ── Stats table ── */
.stats-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.stats-table th {
  background: var(--surface);
  color: var(--gold);
  font-family: 'Bitter', serif;
  text-align: left; padding: .65rem .85rem;
  border-bottom: 2px solid var(--gold);
}
.stats-table td { padding: .6rem .85rem; border-bottom: 1px solid var(--border); }
.stats-table tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.stats-table tr:has(a):hover td { background: var(--card); }
.stats-table .see-more { color: var(--gold); font-weight: 600; white-space: nowrap; font-size: .88rem; }
.stats-table tr:has(a):hover .see-more { text-decoration: underline; }
.num { text-align: left; font-weight: 600; color: var(--gold); }

/* ── Player card grid ── */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.player-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
  position: relative;
}
.card-badge {
  position: absolute;
  top: .55rem;
  right: .55rem;
  background: rgba(245, 200, 66, .12);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .12rem .5rem;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}
@media (hover: hover) {
  .player-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
  }
}
.player-card:active { transform: scale(.97); }
.player-card .position {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gold); margin-bottom: .3rem;
}
.player-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.player-card .nationality { font-size: .85rem; color: var(--muted); }
.flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  vertical-align: -2px;
  border-radius: 2px;
  margin-right: .4rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.player-card a { text-decoration: none; display: block; }
.player-card a:hover h3 { color: var(--gold); }

/* ── Info box ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.info-item { background: var(--card); border-radius: var(--radius); padding: .9rem 1rem; }
.info-item .label { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.info-item .value { font-size: 1.05rem; font-weight: 600; margin-top: .2rem; }

/* ── Breadcrumb ── */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 1rem 0 .5rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb > *:not(:first-child)::before { content: ' › '; }

/* ── Achievement list ── */
.achievement-list { list-style: none; padding: 0; margin-bottom: 2rem; }
.achievement-list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  padding-left: 1.2rem;
  position: relative;
}
.achievement-list li::before {
  content: '\25B8';
  color: var(--gold);
  position: absolute; left: 0;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 2rem 1.25rem;
  font-size: .85rem;
  color: var(--muted);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; }

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* ── Back to top button (floating) ── */
.back-to-top {
  position: fixed;
  bottom: 70px;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .2s;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: #ffe07a; }
.back-to-top svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Theme toggle ── */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text);
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(128,128,128,.15); }
.theme-toggle svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
html:not([data-theme="light"]) .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }

/* Primary CTA button — dark text by default, light text in light mode */
.cta-primary { color: #000; }
html[data-theme="light"] .cta-primary { color: #f5f1eb; }

/* CTA button animation */
.cta-btn { transition: transform .2s, box-shadow .2s; }
@media (hover: hover) {
  .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245,200,66,.3);
    text-decoration: none;
  }
}
.cta-btn:active { transform: scale(.96); }

/* Desktop: nav before header-actions visually */
@media (min-width: 641px) {
  nav { order: 1; margin-left: 2rem; }
  .header-actions { order: 2; }
}

/* ── Light mode ── */
html[data-theme="light"] {
  --bg:       #f7f5f2;
  --surface:  #edeae5;
  --card:     #ffffff;
  --border:   #d5cfc6;
  --gold:     #a07808;
  --gold-dim: #886606;
  --text:     #201c18;
  --muted:    #6a6058;
}
html[data-theme="light"] .hero-strip {
  background: linear-gradient(135deg, #edeae5 0%, #e4ddd4 100%);
}
html[data-theme="light"] .stats-table tr:nth-child(even) td {
  background: rgba(0,0,0,.025);
}
html[data-theme="light"] .stats-table tr:has(a):hover td {
  background: var(--surface);
}
html[data-theme="light"] .site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
html[data-theme="light"] .back-to-top { color: #fff; }
html[data-theme="light"] .site-logo svg circle,
html[data-theme="light"] .site-logo svg polygon { stroke: var(--gold); }
html[data-theme="light"] .site-logo svg circle:last-child { fill: var(--gold); stroke: none; }

