/* =========================================================
   EURO FOOTBALL FANTASY - STYLES
   1. Fonts & colours
   2. Base
   3. Header & navigation
   4. Buttons
   5. Home page
   6. Footer
   7. Play Now pop-ups
   8. Fantasy sub navigation & Team page
   9. Injuries page
   10. Scores page
   11. Tracker page
   12. 404 page
   13. Placeholder pages
   14. Join / Create a League
   ========================================================= */

/* ================= 1. FONTS & COLOURS ================= */

/* Oswald (free, Open Font License). One variable font file
   covers every weight from 200 (extra light) to 700 (bold). */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald/Oswald-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #1F72A0;    /* Medium blue */
  --secondary: #1E4A96;  /* Deep navy */
  --accent: #20B5A5;     /* Teal */
  --base: #FFFFFF;       /* White */
  --neutral: #F4F7FA;    /* Light gray */
  --text: #0F1B2D;       /* Near-black navy */

  --muted: #4A5B70;
  --border: #DCE4EC;
  --surface: var(--neutral);

  --font: "Oswald", "Arial Narrow", Arial, sans-serif;

  --max: 1100px;
  --pad: 24px;
}

/* ================= 2. BASE ================= */

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;       /* keeps the footer at the bottom on short pages */
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--base);
}

h2 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.site-main {
  flex: 1 0 auto;
  background: var(--surface);
}

@media (max-width: 520px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ================= 3. HEADER & NAVIGATION ================= */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--base);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 4px 14px rgba(15, 27, 45, 0.08);
}

/* Logo on the left, links on the right */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
}

.nav__zone--left {
  min-width: 0;
}

.nav__zone--right {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.brand__logo {
  display: block;
  width: auto;
  height: 100px;
  border-radius: 50%;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Box-style links */
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: 6px;
  color: var(--secondary);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--base);
  transform: translateY(-1px);
  outline: none;
}

/* Tablets and phones: logo above links, centered */
@media (max-width: 820px) {
  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .nav__zone--right {
    margin-left: 0;
  }

  .nav__links {
    justify-content: center;
  }

  .brand__logo {
    height: 80px;
  }
}

/* ================= 4. BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease, border-color 160ms ease;
}

.btn--primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--base);
}

.btn--primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--base);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 74, 150, 0.25);
}

@media (max-width: 520px) {
  .btn {
    padding: 12px 14px;
    border-radius: 10px;
  }
}

/* ================= 5. HOME PAGE ================= */

.hero {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 72px 0 40px;
}

.home-text {
  max-width: 80ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.volume-preview {
  max-width: 860px;
  margin: 26px auto 0;
  padding: 24px;
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
}

.volume-preview__kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--font);
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.volume-preview__title {
  margin: 0 0 12px;
  color: var(--secondary);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.volume-preview__text {
  max-width: 72ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.volume-preview__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-prelude {
  max-width: 860px;
  margin: 40px auto 0;
  padding-top: 22px;
  padding-bottom: 28px;
  text-align: center;
}

.footer-prelude__rule {
  margin: 0 0 14px;
  border: 0;
  border-top: 1px solid var(--border);
}

.footer-prelude__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.discord-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  text-decoration: underline;
}

.discord-link:hover,
.discord-link:visited {
  color: var(--secondary);
}

@media (max-width: 820px) {
  .footer-prelude {
    margin-top: 28px;
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .footer-prelude__rule {
    margin: 0 0 18px;
  }

  .footer-prelude__text {
    line-height: 1.7;
  }
}

@media (max-width: 640px) {
  .volume-preview {
    padding: 18px;
  }
}

/* ================= 6. FOOTER ================= */

.footer-dark {
  padding: 40px 0 28px;
  background: var(--primary);
  border-top: 4px solid var(--accent);
  color: #fff;
}

.footer-dark__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
}

.footer-dark__left {
  font-size: 14px;
}

.footer-meta {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-dark__note {
  max-width: 420px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-dark__center {
  display: flex;
  justify-content: center;
}

.footer-mark {
  display: block;
  width: 150px;
  height: auto;
}

.footer-dark__right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px 10px;
  text-align: right;
}

/* Play Now / How to Play buttons */
.footer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid #fff;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease,
    box-shadow 160ms ease;
}

.footer-pill:hover,
.footer-pill:focus-visible {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--base);
  transform: translateY(-2px);
  outline: none;
}

/* Instagram / Discord */
.footer-share {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 18px;
}

.instagram-icon,
.discord-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.instagram-icon:hover,
.discord-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.instagram-icon svg,
.discord-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.footer-bottom {
  margin-top: 24px;
  padding: 14px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-small {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

@media (max-width: 820px) {
  .footer-dark {
    padding: 28px 0 18px;
  }

  .footer-dark__grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .footer-dark__left,
  .footer-dark__right {
    text-align: center;
  }

  .footer-dark__right {
    justify-content: center;
  }

  .footer-dark__note {
    max-width: 320px;
    margin: 10px auto 0;
    line-height: 1.5;
  }

  .footer-share {
    justify-content: center;
  }

  .footer-bottom {
    padding: 14px 0 8px;
  }

  .footer-small {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .footer-dark {
    padding: 26px 0 16px;
  }

  .footer-dark__grid {
    gap: 18px;
  }

  .footer-dark__right {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .footer-pill {
    width: min(220px, 100%);
    padding: 10px 14px;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }

  .footer-share {
    gap: 10px;
  }

  .instagram-icon,
  .discord-icon {
    width: 38px;
    height: 38px;
  }
}

/* ================= 7. PLAY NOW POP-UPS ================= */

body.modal-open {
  overflow: hidden; /* stops the page scrolling behind the pop-up */
}

.modal {
  width: min(460px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-top: 6px solid var(--accent);
  border-radius: 14px;
  background: var(--base);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.35);
  overflow-y: auto;
}

.modal::backdrop {
  background: rgba(15, 27, 45, 0.55);
}

.modal__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 40px 28px;
  font-family: var(--font);
}

.modal__title {
  margin: 0 0 4px;
  text-align: center;
  font-family: var(--font);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}

/* Close (X) button */
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.modal__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal__close:hover,
.modal__close:focus-visible {
  background: var(--neutral);
  color: var(--secondary);
  outline: none;
}

/* Fields */
.modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.modal__req {
  color: #B42318;
}

.modal__input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border: 1px solid #C9D4DF;
  border-radius: 6px;
  background: var(--base);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.modal__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 181, 165, 0.35);
}

.modal__input.is-invalid {
  border-color: #B42318;
}

.modal__help {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.modal__error {
  margin: 0;
  font-size: 13.5px;
  color: #B42318;
}

.modal__error:empty {
  display: none;
}

.modal__error--check {
  margin-left: 32px;
}

/* Password checklist (appears once the user starts typing) */
.pw-rules {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.pw-rules.is-visible {
  display: flex;
}

.pw-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #B42318;
}

.pw-rule::before {
  content: "\2715"; /* ✕ */
  width: 16px;
  font-weight: 700;
  text-align: center;
}

.pw-rule.is-met {
  color: #127A6E;
}

.pw-rule.is-met::before {
  content: "\2713"; /* ✓ */
}

/* Terms checkbox */
.modal__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
}

.modal__check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.modal__form a {
  color: var(--primary);
  transition: color 160ms ease;
}

.modal__form a:hover {
  color: var(--secondary);
}

/* Success message */
.modal__success {
  margin: 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: #E8F7F5;
  color: #0F5E55;
  font-size: 14.5px;
}

.modal__success:empty {
  display: none;
}

/* Sign Up / Log In button: bottom right, with hover effect */
.modal__actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.modal__submit {
  height: 48px;
  padding: 0 28px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--base);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

.modal__submit:hover,
.modal__submit:focus-visible {
  background: var(--secondary);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 74, 150, 0.25);
  outline: none;
}

.modal__submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* "Already have an account? Log in" */
.modal__switch {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

.modal__switch a {
  font-weight: 600;
}

/* Phones */
@media (max-width: 520px) {
  .modal__form {
    padding: 32px 22px 22px;
  }

  .modal__title {
    font-size: 28px;
  }
}

/* ================= 8. FANTASY SUB NAVIGATION & TEAM PAGE ================= */

.subnav {
  background: var(--secondary);
  box-shadow: 0 4px 12px rgba(15, 27, 45, 0.12);
  position: relative;
  z-index: 5;
}

.subnav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;          /* scrolls sideways on small screens */
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

/* Small "FANTASY" label on the left */
.subnav__label {
  flex-shrink: 0;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.subnav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.subnav__link {
  display: block;
  padding: 14px 14px 11px;
  border-bottom: 3px solid transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.subnav__link:hover,
.subnav__link:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(32, 181, 165, 0.6);
  color: var(--base);
  outline: none;
}

/* The page you're on: add aria-current="page" to its link */
.subnav__link[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--base);
  font-weight: 600;
}

/* ---------- Fantasy page content (placeholder) ---------- */

.fantasy-main {
  padding: 40px 0 60px;
}

.fantasy-panel {
  background: var(--base);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  padding: 28px 32px;
}

.fantasy-panel__title {
  margin: 0 0 8px;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}

.fantasy-panel__text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 520px) {
  .subnav__label {
    display: none;
  }

  .subnav__link {
    padding: 12px 12px 9px;
    font-size: 14px;
  }
}

/* ================= 9. INJURIES PAGE ================= */

.injuries-main {
  padding: 40px 0 60px;
}

.injuries-head {
  margin-bottom: 20px;
}

.injuries-title {
  margin: 0 0 6px;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}

.injuries-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Filter card ---------- */

.injury-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 28px;
  margin-bottom: 18px;
  padding: 20px 24px;
  background: var(--base);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filter-group--club {
  flex: 1 1 260px;
  max-width: 360px;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* League buttons */
.league-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.league-btn {
  height: 42px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--base);
  color: var(--secondary);
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.league-btn:hover,
.league-btn:focus-visible {
  border-color: var(--primary);
  background: var(--neutral);
  transform: translateY(-1px);
  outline: none;
}

.league-btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--base);
  font-weight: 600;
}

/* Club dropdown */
.club-select {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  border: 1px solid #C9D4DF;
  border-radius: 6px;
  background-color: var(--base);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E4A96' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  appearance: none;
  cursor: pointer;
}

.club-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 181, 165, 0.35);
}

/* ---------- Summary + toolbar ---------- */

.injury-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.injury-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-chip {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
}

.toggle-all {
  padding: 8px 14px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.toggle-all:hover,
.toggle-all:focus-visible {
  background: var(--primary);
  color: var(--base);
  outline: none;
}

/* ---------- Status colours ---------- */

.status--out {
  background: #FDECEA;
  color: #B42318;
}

.status--doubtful {
  background: #FFF4DB;
  color: #8A5300;
}

.status--suspended {
  background: #E6EDF8;
  color: var(--secondary);
}

.status--unavailable {
  background: #EEF1F4;
  color: #4A5B70;
}

/* ---------- Club cards ---------- */

.injury-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.club-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.club-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  transition: background-color 160ms ease;
}

.club-card__header::-webkit-details-marker {
  display: none;
}

.club-card__header:hover,
.club-card__header:focus-visible {
  background: var(--neutral);
  outline: none;
}

.club-card[open] .club-card__header {
  border-bottom: 1px solid var(--border);
}

.club-card__name {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--secondary);
}

.club-card__counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.count-badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.count-badge--clear {
  background: #E8F7F5;
  color: #0F5E55;
}

.club-card__chevron {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--secondary);
  border-bottom: 2px solid var(--secondary);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 160ms ease;
}

.club-card[open] .club-card__chevron {
  transform: rotate(-135deg) translateY(-3px);
}

.club-card__body {
  padding: 4px 0;
}

/* ---------- Player table ---------- */

.injury-table-wrap {
  overflow-x: auto;
}

.injury-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.injury-table th {
  padding: 10px 20px;
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.injury-table td {
  padding: 11px 20px;
  border-top: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.injury-table tbody tr:nth-child(even) {
  background: var(--neutral);
}

.injury-player {
  font-weight: 600;
}

.injury-pos {
  color: var(--muted);
}

.injury-return {
  white-space: nowrap;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.injury-empty {
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
}

.source-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.source-note a {
  color: var(--primary);
}

/* ---------- Phones: rows become stacked cards ---------- */

@media (max-width: 640px) {
  .injury-filters {
    padding: 18px;
  }

  .filter-group--club {
    max-width: none;
  }

  .league-btn {
    flex: 1 1 auto;
  }

  .club-card__header {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .club-card__name {
    flex-basis: calc(100% - 30px);
  }

  .club-card__counts {
    order: 3;
    justify-content: flex-start;
  }

  .injury-table thead {
    display: none;
  }

  .injury-table,
  .injury-table tbody,
  .injury-table tr,
  .injury-table td {
    display: block;
    width: 100%;
  }

  .injury-table tr {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
  }

  .injury-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
    border: 0;
  }

  .injury-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 13px;
    color: var(--muted);
  }

  .injury-table td.injury-player {
    font-size: 16px;
  }

  .injury-table td.injury-player::before {
    content: none;
  }
}

/* ================= 10. SCORES PAGE =================
   Uses .injuries-title, .injury-filters, .filter-group,
   .filter-label, .league-btn and .toggle-all from the
   Injuries page styles, so paste this after those. */

.scores-main {
  padding: 40px 0 60px;
}

/* ---------- Week navigator ---------- */

.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.week-nav__btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--base);
  color: var(--secondary);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.week-nav__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.week-nav__btn:hover,
.week-nav__btn:focus-visible {
  border-color: var(--primary);
  background: var(--neutral);
  transform: translateY(-1px);
  outline: none;
}

.week-nav__label {
  min-width: 140px;
  text-align: center;
  font-weight: 600;
  color: var(--secondary);
}

.week-nav__today {
  height: 42px;
  padding: 0 14px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.week-nav__today:hover:not(:disabled),
.week-nav__today:focus-visible {
  background: var(--primary);
  color: var(--base);
  outline: none;
}

.week-nav__today:disabled {
  border-color: var(--border);
  color: var(--muted);
  cursor: default;
}

/* ---------- Day groups ---------- */

.score-results {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.match-day__title {
  margin: 0 0 10px;
  font-family: var(--font);
  font-size: 16px !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}

.match-day__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Match card ---------- */

.match-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.match-card--live {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.match-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.match-time {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.match-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.match-tag--ft {
  background: var(--neutral);
  color: var(--muted);
}

.match-tag--live {
  background: #E8F7F5;
  color: #0F5E55;
}

.match-tag--off {
  background: #FFF4DB;
  color: #8A5300;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: live-pulse 1.4s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

.match-clock {
  font-size: 14px;
  font-weight: 600;
  color: #0F5E55;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 440px;
}

.match-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
}

.match-team__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-team__score {
  min-width: 22px;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-team--winner {
  font-weight: 600;
  color: var(--secondary);
}

.match-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.match-league {
  padding: 2px 8px;
  border-radius: 6px;
  background: #E6EDF8;
  color: var(--secondary);
  font-weight: 600;
  white-space: nowrap;
}

.score-empty {
  padding: 28px 20px;
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
}

.score-empty p {
  margin: 0 0 12px;
}

.score-empty p:only-child {
  margin: 0;
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .week-nav {
    width: 100%;
  }

  .week-nav__label {
    flex: 1;
    min-width: 0;
  }

  .match-card {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .match-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    text-align: left;
  }

  .match-venue {
    align-self: center;
  }
}

/* ================= 11. TRACKER PAGE =================
   Reuses styles from the Injuries and Scores pages
   (.league-btn, .match-day, .match-tag, .status-pill…),
   so paste this after those. */

.tracker-main {
  padding: 40px 0 60px;
}

/* Preview notice while there are no real accounts */
.sample-banner {
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px dashed var(--primary);
  border-radius: 6px;
  background: #E6EDF8;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.5;
}

/* Placeholder values */
.placeholder-value {
  color: var(--muted);
  cursor: help;
}

.placeholder-chip {
  display: inline-block;
  padding: 2px 10px;
  border: 1px dashed #C9D4DF;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Team summary card ---------- */

.tracker-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 18px;
  padding: 22px 24px;
  background: var(--secondary);
  border-radius: 14px;
  color: var(--base);
}

.tracker-summary__name {
  margin: 0 0 6px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 28px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--base);
}

.tracker-summary__league {
  margin: 0;
}

.tracker-summary .placeholder-chip {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.8);
}

.tracker-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.tracker-stat {
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.tracker-stat--placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  background: transparent;
}

.tracker-stat dt {
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.tracker-stat dd {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.tracker-summary .placeholder-value {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Match cards ---------- */

.tracker-match {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.tracker-match__head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.tracker-match__teams {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
}

.squad-rules {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Player chips ---------- */

.tracker-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 14px 20px 16px;
}

.tracker-players--muted {
  padding: 0;
}

.tracker-players--muted .tracker-player {
  background: var(--base);
  opacity: 0.8;
}

.tracker-player {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: var(--neutral);
}

.tracker-player__top,
.tracker-player__bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tracker-player__pos {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--primary);
  color: var(--base);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tracker-player__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}


.tracker-player__club {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}

.tracker-player__bottom .status-pill {
  font-size: 12px;
  padding: 2px 8px;
}

.tracker-player__pts {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--muted);
}

.tracker-not-playing {
  margin-top: 26px;
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .tracker-summary {
    padding: 18px;
  }

  .tracker-stats {
    width: 100%;
  }

  .tracker-stat {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  .tracker-match__head {
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 12px 14px;
  }

  .tracker-match__head .match-league {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .tracker-players {
    grid-template-columns: 1fr;
    padding: 12px 14px 14px;
  }
}

/* ================= 12. 404 PAGE ================= */

.notfound-main {
  padding: 72px 0 88px;
}

.notfound {
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 32px;
  background: var(--base);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  text-align: center;
}

.notfound__code {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(72px, 12vw, 112px) !important;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--secondary);
}

.notfound__text {
  margin: 12px 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.notfound__hint {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.notfound__btn {
  border-radius: 6px;
}

/* ================= 13. PLACEHOLDER PAGES =================
   League, Players/Transfers and Help. Keeps the footer from
   jumping up while the pages are still empty. */

.page-main {
  min-height: 60vh;
  padding: 40px 0 60px;
}

/* ================= 14. JOIN / CREATE A LEAGUE ================= */

.join-main .sample-banner {
  margin-bottom: 18px;
}

.league-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.league-card {
  padding: 26px 28px 28px;
  background: var(--base);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
}

.league-card__title {
  margin: 0 0 6px;
  color: var(--secondary);
  font-family: var(--font);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.league-card__text {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Form fields ---------- */

.league-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.league-form[hidden] {
  display: none;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.field__req {
  color: #B42318;
}

.field__input {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border: 1px solid #C9D4DF;
  border-radius: 6px;
  background: var(--base);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 181, 165, 0.35);
}

.field__input.is-invalid {
  border-color: #B42318;
}

.field__input--code {
  max-width: 220px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.field__input--code::placeholder {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.field__select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231E4A96' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  cursor: pointer;
}

.field__help {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.field__error {
  margin: 0;
  color: #B42318;
  font-size: 13.5px;
}

.field__error:empty {
  display: none;
}

/* Private / Public choice */
.field--choice {
  gap: 8px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.choice:hover {
  border-color: var(--primary);
  background: var(--neutral);
}

.choice:has(input:checked) {
  border-color: var(--primary);
  background: #E6EDF8;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}

/* ---------- Buttons (same style as the pop-up forms) ---------- */

.league-form__actions {
  display: flex;
  justify-content: flex-end;
}

.league-form__submit,
.league-code__copy {
  height: 48px;
  padding: 0 28px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: var(--primary);
  color: var(--base);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

.league-form__submit:hover,
.league-form__submit:focus-visible,
.league-code__copy:hover,
.league-code__copy:focus-visible {
  background: var(--secondary);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 74, 150, 0.25);
  outline: none;
}

.league-form__success {
  margin: 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: #E8F7F5;
  color: #0F5E55;
  font-size: 14.5px;
}

.league-form__success:empty {
  display: none;
}

/* ---------- League created ---------- */

.league-created {
  padding: 18px;
  border-radius: 6px;
  background: #E8F7F5;
}

.league-created__title {
  margin: 0 0 4px;
  color: #0F5E55;
  font-size: 17px;
}

.league-created__text {
  margin: 0 0 12px;
  color: var(--muted);
}

.league-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.league-code__value {
  padding: 8px 16px;
  border: 2px dashed var(--accent);
  border-radius: 6px;
  background: var(--base);
  color: var(--secondary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.league-code__copy {
  height: 44px;
  padding: 0 20px;
}

.league-created__again {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.league-created__again:hover {
  color: var(--secondary);
}

@media (max-width: 820px) {
  .league-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .league-card {
    padding: 22px 18px;
  }

  .field__input--code {
    max-width: none;
  }
}

/* ================= 15. POP-UP MOTION: RISE AND FADE =================
   Sign Up and Log In now share one pop-up (#authModal).
   Opening rises and fades in, closing drops and fades out, and the
   switch between the two forms is animated in js/modals.js. */

.modal__form[hidden] {
  display: none;
}

.modal__close {
  z-index: 2;
}

@keyframes modal-rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes modal-rise-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.modal[open] {
  animation: modal-rise-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal[open]::backdrop {
  animation: modal-backdrop-in 220ms ease-out;
}

.modal.is-closing {
  animation: modal-rise-out 180ms ease-in forwards;
}

.modal.is-closing::backdrop {
  animation: modal-backdrop-out 180ms ease-in forwards;
}

/* No motion for anyone who has "reduce motion" turned on */
@media (prefers-reduced-motion: reduce) {
  .modal[open],
  .modal[open]::backdrop,
  .modal.is-closing,
  .modal.is-closing::backdrop {
    animation: none;
  }
}

/* ================= 16. TEAM PAGE: SQUAD LIST ================= */

.team-main .sample-banner {
  margin-bottom: 18px;
}

.squad-card {
  background: var(--base);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 14px;
  overflow: hidden;
}

/* The table scrolls sideways; the Player column stays put */
.squad-table-wrap {
  overflow-x: auto;
}

.squad-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.squad-table th,
.squad-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.squad-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--secondary);
  color: var(--base);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.squad-table abbr {
  text-decoration: none;
  cursor: help;
}

.squad-table td {
  color: var(--text);
}

.squad-table tbody tr:not(.squad-table__group):hover td,
.squad-table tbody tr:not(.squad-table__group):hover .squad-table__player {
  background: var(--neutral);
}

/* Sticky Player column */
.squad-table__player {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 220px;
  padding-left: 16px !important;
  background: var(--base);
  text-align: left !important;
  box-shadow: 1px 0 0 var(--border);
}

.squad-table thead .squad-table__player {
  z-index: 3;
  background: var(--secondary);
}

/* Position group rows */
.squad-table__group th {
  padding: 8px 16px;
  background: #E6EDF8;
  text-align: left;
}

.squad-table__group-name {
  position: sticky;
  left: 16px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.squad-table__group-note {
  margin-left: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Player name with jersey */
.squad-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.squad-player__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.squad-player__name {
  color: var(--text);
  font-weight: 600;
}

.squad-player__club {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}

.jersey-wrap {
  display: inline-flex;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.jersey-wrap .jersey {
  width: 100%;
  height: 100%;
}

/* White and pale shirts get a thin outline so they show on white */
.jersey-wrap--light .jersey {
  filter: drop-shadow(0 0 0.6px #4A5B70) drop-shadow(0 0 0.6px #4A5B70);
}

/* Key to the abbreviations */
.stat-key {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.stat-key summary {
  width: fit-content;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.stat-key__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 18px;
  margin: 10px 0 0;
}

.stat-key__item {
  display: flex;
  gap: 8px;
}

.stat-key__item dt {
  min-width: 64px;
  color: var(--secondary);
  font-weight: 600;
}

.stat-key__item dd {
  margin: 0;
}

@media (max-width: 640px) {
  .squad-table__player {
    min-width: 170px;
  }

  .squad-table__group-note {
    display: none;
  }
}