@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

@font-face {
  font-family: 'Arca Majora 3';
  src: url("/static/fonts/ArcaMajora3-Bold.e4ba0f806d8f.woff2") format('woff2'),
       url("/static/fonts/ArcaMajora3-Bold.cf323f9fc327.woff") format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Arca Majora 3';
  src: url("/static/fonts/ArcaMajora3-Heavy.b06fdd9149b8.woff2") format('woff2'),
       url("/static/fonts/ArcaMajora3-Heavy.c33ec882dffc.woff") format('woff');
  font-weight: 800;
  font-display: swap;
}


:root {
  --ink: #022648;
  --minor: #02881c;
  --major: #39b54a;
  --major-2: #61c612;
  --surface: #ffffff;
  --muted: #929292;

  --chalk: #F5F7F6;
  --line: rgba(2, 38, 72, 0.12);
  --radius: 6px;
  --max-width: 1180px;

  /* Falls back gracefully to Poppins/system sans until the real Arca
     Majora 3 font files are dropped into /static/fonts/ — see the README
     note there. */
  --font-display: 'Arca Majora 3', 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  color: var(--ink);
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

a { color: var(--major); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--major-2); outline-offset: 2px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* --- Touchline ticker: signature divider (navy block + green gradient) --- */
.ticker {
  position: relative;
  height: 10px;
  width: 112px;
  margin: 0.5rem 0 1.5rem 48px;
  background: linear-gradient(
    90deg,
    var(--minor) 0%, var(--minor) 27%,
    var(--major) 27%, var(--major) 50%,
    var(--major-2) 50%, var(--major-2) 100%
  );
  transform: skewX(-18deg);
}
.ticker::before {
  content: "";
  position: absolute;
  left: -48px; top: 0; bottom: 0;
  width: 30px;
  background: var(--ink);
  transform: skewX(-18deg);
}

/* --- Header / navbar (white, per brand spec) ------------------------------ */
.site-header {
  background: var(--surface);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 80px; width: auto; display: block; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: 0.02em; }
.brand-name span { color: var(--major); }

.pill-tabs { display: flex; gap: 1.05rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

/* Full-page site menu, opened by the hamburger on every screen size */
.site-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: #fff;
  z-index: 50;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.site-menu.open { display: block; }
.site-menu-inner { position: relative; padding: 5rem 1.25rem 3rem; }
.nav-close {
  position: absolute; top: 1.5rem; right: 1.25rem;
  background: none; border: none; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.site-menu-search { display: flex; gap: 0.5rem; max-width: 420px; margin-bottom: 2.5rem; }
.site-menu-search input {
  flex: 1; padding: 0.6rem 0.8rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08); color: #fff;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
}
.site-menu-search input::placeholder { color: rgba(255,255,255,0.6); }
.site-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.site-menu-grid h4 { color: var(--major-2); font-size: 0.8rem; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
.site-menu-grid a { display: block; color: #fff; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.85rem; padding: 0.15rem 0; }
.site-menu-grid a:hover { color: var(--major-2); text-decoration: none; }

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  min-height: 44px;
  line-height: 1.6;
}
.btn-gold {
    background: var(--major);
    color: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-gold:hover {
    background: var(--minor);
    text-decoration: none;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--minor);
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.field-hint::before {
  content: "ⓘ";
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.registering-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(2, 38, 72, 0.72);
  align-items: center; justify-content: center;
  /* display is intentionally NOT set here — the template sets
     style="display:none" inline and JS flips it to "flex" on submit,
     so visibility can't be silently overridden by this stylesheet again. */
}
.registering-overlay-box {
  background: var(--surface); border-radius: var(--radius);
  padding: 2rem 2.5rem; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.registering-overlay-box p {
  margin: 1rem 0 0; font-weight: 600; color: var(--ink);
}
.registering-spinner {
  width: 42px; height: 42px; margin: 0 auto;
  border: 4px solid var(--line); border-top-color: var(--major);
  border-radius: 50%; animation: registering-spin 0.8s linear infinite;
}
@keyframes registering-spin { to { transform: rotate(360deg); } }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: rgba(2,38,72,0.06); text-decoration: none; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--minor) 100%);
  color: #ffffff;
  padding: 4.5rem 0 3.5rem;
}
.hero .eyebrow { color: var(--major-2); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.hero h1 { color: #ffffff; max-width: 640px; }
.hero p { max-width: 560px; font-size: 1.05rem; opacity: 0.92; }
.hero .cta-row { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* --- Sections / cards -------------------------------------------------- */
.section { padding: 3rem 0; }
.section-alt { background: #fff; }
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  max-width: 270px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,46,34,0.1); }
.card img {
  width: 100%;
  height: 300px;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 0.75rem;
  object-fit: cover;
  aspect-ratio: 4/3; }

.tag {
  display: inline-block;
  background: rgba(57,181,74,0.12);
  color: var(--minor);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Teams page roster cards */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
}
.roster-card {
  position: relative;
  display: block;
  background: #fff;
  padding: 1.1rem 1.1rem 1.4rem;
  color: var(--ink);
}
.roster-card:hover { text-decoration: none; background: var(--chalk); }
.roster-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--ink);
}
.roster-captain {
  position: absolute;
  top: 1rem; right: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--major-2); color: var(--ink);
  font-weight: 800; font-size: 0.85rem;
}
.roster-photo-wrap { display: flex; justify-content: center; margin-top: -1.6rem; }
.roster-photo { width: 100%; max-width: 150px; height: 165px; object-fit: cover; object-position: top center; }
.roster-divider { border-top: 2px solid var(--ink); margin: 0.85rem 0 0.6rem; }
.roster-first-name { margin: 0; font-size: 0.95rem; color: var(--ink); }
.roster-last-name {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--ink);
}
.roster-position { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* --- Forms ---------------------------------------------------------------- */
form.stack { display: flex; flex-direction: column; gap: 0.9rem; max-width: 480px; }
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }
.contact-address-card p { margin: 0.3rem 0; }
@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; }
}
label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 0.3rem; color: var(--ink); }
input, select, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
}
.helptext { font-size: 0.8rem; color: var(--muted); }
.errorlist { color: #b3261e; font-size: 0.85rem; list-style: none; padding: 0; margin: 0.2rem 0; }

/* --- Messages --------------------------------------------------------------*/
.messages { list-style: none; padding: 0; margin: 1rem auto; max-width: var(--max-width); }
.messages li { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; }
.messages .success { background: rgba(57,181,74,0.14); color: var(--minor); }
.messages .error { background: #fbe6e4; color: #b3261e; }

/* --- Table (leaderboard, fees, etc.) --------------------------------------*/
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-display); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink); }

/* Wrap any table in <div class="table-scroll"> to get a clean horizontal
   scroll on narrow screens instead of a squeezed/broken layout. Also
   applies automatically to bare tables as a fallback below 600px. */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: 480px; }

/* --- Fee status badges ------------------------------------------------- */
.fee-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.fee-badge.paid { background: rgba(57,181,74,0.15); color: var(--minor); }
.fee-badge.pending, .fee-badge.partially_paid { background: rgba(97,198,18,0.18); color: #3f6b0c; }
.fee-badge.overdue, .fee-badge.failed { background: #fbe6e4; color: #b3261e; }

.rank-arrow { font-size: 0.85rem; font-weight: 700; }
.rank-up { color: var(--minor); }
.rank-down { color: #b3261e; }
.rank-same { color: var(--muted); }

/* --- Season / camp banner ------------------------------------------------ */
.season-banner {
  background: var(--minor);
  color: #fff;
  padding: 0.7rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
.season-banner strong { color: var(--major-2); }

/* --- Calendar (month grid, expandable, occupied-day highlighting) --------- */
.calendar-month {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 0.75rem;
}
.calendar-grid .dow { font-size: 0.75rem; font-weight: 700; text-align: center; color: var(--muted); text-transform: uppercase; padding-bottom: 0.3rem; }
.calendar-day {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.3rem;
  font-size: 0.8rem;
  position: relative;
  color: var(--ink);
}
.calendar-day.empty { border-color: transparent; }
.calendar-day.occupied { background: rgba(97,198,18,0.22); border-color: var(--major-2); font-weight: 600; }
.calendar-day.today { outline: 2px solid var(--ink); }
.calendar-day .day-number { font-weight: 700; }
.calendar-day .event-dot { display: block; font-size: 0.68rem; margin-top: 2px; color: var(--minor); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-toggle { margin-top: 1rem; }
.calendar-list { display: none; margin-top: 1.5rem; }
.calendar-list.expanded { display: block; }

/* --- Footer (white, per brand spec) --------------------------------------*/
.site-footer { background: var(--surface); color: var(--ink); padding: 2.5rem 0; margin-top: 3rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--major); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.footer-brand img { height: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; }
.footer-grid h4 { color: var(--minor); font-size: 0.9rem; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.82rem; color: var(--muted); }

/* --- Social icon strip (footer) ----------------------------------------- */
.social-strip { display: flex; align-items: center; gap: 0.75rem; margin: 0.5rem 0 1.5rem; flex-wrap: wrap; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { text-decoration: none; transform: translateY(-2px); }

/* --- Captain badge (individual player profile page) --------------------- */
.captain-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold, var(--major-2)); color: var(--ink);
  font-weight: 800; font-size: 0.8rem; margin-bottom: 0.4rem;
}

/* --- Stat bars (attendance %, etc.) ------------------------------------ */
.stat-bars { display: flex; flex-direction: column; gap: 0.6rem; max-width: 480px; }
.stat-bar { display: flex; align-items: center; gap: 0.6rem; }
.stat-bar span:first-child { width: 110px; font-size: 0.85rem; flex-shrink: 0; }
.bar-track { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--minor), var(--major-2)); }
.stat-row { display: flex; justify-content: space-between; max-width: 320px; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }

/* --- FIFA-style player card --------------------------------------------- */
.fifa-card {
  width: 220px; padding: 1rem 0.75rem; border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, var(--major-2), var(--minor) 60%, var(--ink));
  color: #fff; position: relative;
  margin: 0 auto;
}
.fifa-card-top { display: flex; justify-content: space-between; padding: 0 0.5rem; font-family: var(--font-display); }
.fifa-ovr { font-size: 1.8rem; font-weight: 800; }
.fifa-pos { font-size: 1rem; font-weight: 700; align-self: flex-start; margin-top: 0.3rem; }
.fifa-photo { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; margin: 0.25rem auto; border: 2px solid rgba(255,255,255,0.6); }
.fifa-name { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.06em; margin: 0.4rem 0 0.6rem; }
.fifa-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.2rem 0.8rem; font-size: 0.8rem; text-align: left; }
.fifa-stats span { font-weight: 800; margin-right: 0.3rem; }

/* --- Legal scroll-to-accept gate ---------------------------------------- */
.legal-gate { display: flex; flex-direction: column; gap: 1rem; }
.legal-block h4 { margin-bottom: 0.3rem; }
.legal-scroll-box {
  max-height: 160px; overflow-y: scroll; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.75rem; font-size: 0.85rem; background: #fff;
  -webkit-overflow-scrolling: touch;
}
.legal-checkbox-label { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-weight: 600; }
.legal-checkbox-label input:disabled { opacity: 0.4; }

/* --- Countdown ------------------------------------------------------------*/
.countdown-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; }
.countdown-box .countdown-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--major-2); }
.countdown-box .countdown-timer { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }

/* --- Hero carousel (video first, then images) --------------------------- */
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-slide img, .carousel-slide video { width: 100%; height: 450px; object-fit: cover; display: block; }
.carousel-controls { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 0.75rem; }
.carousel-controls button {
  background: rgba(2,38,72,0.55); color: #fff; border: none; border-radius: 50%;
  width: 36px; height: 36px; cursor: pointer; font-size: 1.1rem;
}

/* --- Sponsor strip (footer) --------------------------------------------- */
.sponsor-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 1.5rem 0; min-height: 80px; }
.sponsor-strip img { height: 80px; width: auto; object-fit: contain; }

.nav-link {
  color: var(--ink);
}

.nav-link:hover {
  color: var(--major);
  text-decoration: none;
}

/* ============================================================
   MOBILE OPTIMISATION
   Breakpoints: 860px (tablet / small laptop), 600px (phone),
   400px (small phone). Mobile-first tweaks layered on top of
   the desktop rules above.
   ============================================================ */

/* --- Tablet & below (860px) ------------------------------------------- */
@media (max-width: 860px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }

  .hero { padding: 3rem 0 2.5rem; }

  /* Collapse the inline top nav down to logo + hamburger; the full
     link set is already duplicated in the #site-menu overlay. */
  .site-header .nav-link,
  .site-header .btn-gold {
    display: none;
  }
  .site-header .container {
    justify-content: space-between;
  }
  .brand img { height: 56px; }

  .carousel-slide img, .carousel-slide video { height: 220px; }
  .fifa-card { width: 190px; }

  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .roster-photo { height: 130px; }
  .roster-number { font-size: 2rem; }

  .footer-brand img { height: 56px; }
  .sponsor-strip img { height: 56px; }
  .sponsor-strip { min-height: 56px; }
}

/* --- Phone (600px) ------------------------------------------------------ */
@media (max-width: 600px) {
  .container { padding: 0 1rem; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }

  .ticker { margin-left: 30px; width: 90px; }
  .ticker::before { left: -30px; width: 20px; }

  .hero { padding: 2.25rem 0 2rem; }
  .hero .cta-row { flex-direction: column; align-self: stretch; }
  .hero .cta-row .btn { width: 100%; text-align: center; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { max-width: none; }
  .card img { height: 200px; }

  .site-menu-inner { padding: 4rem 1rem 2.5rem; }
  .site-menu-search { flex-direction: column; max-width: none; }
  .site-menu-search .btn { width: 100%; }
  .site-menu-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }

  form.stack { max-width: none; }

  /* Fall back to horizontal scroll for any table not already wrapped
     in .table-scroll, so leaderboard/fees data doesn't get crushed. */
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  th, td { padding: 0.55rem 0.6rem; font-size: 0.85rem; }

  .calendar-month { padding: 0.85rem; }
  .calendar-grid { gap: 3px; }
  .calendar-day { min-height: 52px; padding: 0.2rem; font-size: 0.7rem; }
  .calendar-day .event-dot { font-size: 0.6rem; }

  .stat-bar span:first-child { width: 84px; font-size: 0.78rem; }
  .stat-row { max-width: none; }

  .fifa-card { width: 100%; max-width: 260px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social-icon { width: 48px; height: 48px; }
  .sponsor-strip { gap: 1rem; min-height: 44px; }
  .sponsor-strip img { height: 44px; }

  .countdown-box .countdown-timer { font-size: 1.3rem; }
}

/* --- Small phone (400px) ------------------------------------------------ */
@media (max-width: 400px) {
  .container { padding: 0 0.85rem; }

  h1 { font-size: 1.5rem; }


  .brand img { height: 44px; }

  .site-menu-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand img { height: 44px; }

  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
  .roster-photo { height: 110px; }

  .calendar-day { min-height: 42px; font-size: 0.62rem; }
  .calendar-day .day-number { font-size: 0.72rem; }

  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .fifa-card { width: 100%; max-width: 220px; }
  .contact-layout { gap: 1.25rem; }
  .pill-tabs { gap: 0.5rem; }
  .pill-tabs .btn { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .stat-bar span:first-child { width: 90px; font-size: 0.78rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}