/* ============================================================
   Makeni All Stars FC — Club Website
   Colour scheme: crest red & gold as brand accent, on a deep
   navy-charcoal neutral base (header, footer, dark sections) —
   a corporate chrome-and-accent system rather than a flat
   red-everywhere template.
   ============================================================ */

:root {
  /* Brand accent — straight from the crest, untouched */
  --red: #c8102e;
  --red-dark: #9c0b23;
  --red-deep: #5c0716;
  --red-light: #e6435a;
  --gold: #f4c04a;
  --gold-deep: #c8912a;

  /* Corporate neutral base */
  --white: #ffffff;
  --off-white: #f5f4f1;
  --paper: #faf9f7;
  --ink: #0b0d16;            /* deep navy-black — the site's "chrome" colour */
  --ink-2: #151827;          /* one step lighter, for layered dark surfaces */
  --ink-soft: #5b6178;       /* cool slate instead of warm grey */
  --line: rgba(11, 13, 22, 0.09);

  /* Glass surfaces */
  --glass-light: rgba(255, 255, 255, 0.58);
  --glass-light-strong: rgba(255, 255, 255, 0.78);
  --glass-light-border: rgba(255, 255, 255, 0.65);
  --glass-dark: rgba(21, 24, 39, 0.6);
  --glass-dark-strong: rgba(11, 13, 22, 0.78);
  --glass-dark-border: rgba(255, 255, 255, 0.1);
  --blur-sm: 10px;
  --blur-md: 18px;
  --blur-lg: 32px;

  /* Layered, neutral elevation shadows — colour is reserved for
     accents (buttons, glows) rather than every card's ambient shadow */
  --shadow-sm: 0 2px 10px rgba(11, 13, 22, 0.07);
  --shadow: 0 4px 16px rgba(11, 13, 22, 0.06), 0 16px 40px -12px rgba(11, 13, 22, 0.18);
  --shadow-lg: 0 24px 64px -16px rgba(11, 13, 22, 0.32);
  --shadow-brand: 0 14px 34px -10px rgba(200, 16, 46, 0.4);
  --shadow-gold: 0 14px 30px -10px rgba(244, 192, 74, 0.45);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --ease: cubic-bezier(.16, .8, .24, 1);

  /* Reusable film-grain texture — a tiny inline SVG noise filter, self
     contained (no network request, CSP-safe under img-src 'self' data:) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Thin scroll-position indicator, fixed to the very top of the viewport */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--red));
  box-shadow: 0 0 12px rgba(200, 16, 46, 0.5);
  transition: width .1s linear;
}

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  line-height: 1.05;
  margin: 0 0 .4em;
  text-transform: uppercase;
  letter-spacing: .5px;
}

p { margin: 0 0 1em; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* ---------- Header / Nav ----------
   Dark glass chrome rather than a flat red bar — red/gold live as accents
   (underline, hover, active states) instead of flooding the whole nav.
   Starts semi-transparent over the hero photo, solidifies into frosted
   glass once the page scrolls (see .is-scrolled, toggled in js/main.js). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11, 13, 22, 0.55), rgba(11, 13, 22, 0.32));
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header::after {
  /* hairline brand-gradient underline — the header's one accent stroke */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 20%, var(--gold) 50%, var(--red) 80%, transparent);
  opacity: .55;
  transition: opacity .3s var(--ease);
}
.site-header.is-scrolled {
  background: var(--glass-dark-strong);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow: var(--shadow);
}
.site-header.is-scrolled::after { opacity: 1; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.crest {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px var(--red), 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.brand:hover .crest { transform: rotate(-6deg) scale(1.05); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 0 3px var(--gold), 0 4px 18px rgba(0, 0, 0, 0.4); }
.crest img { width: 100%; height: 100%; object-fit: cover; }
.crest.small { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.brand-text small { font-size: .68rem; opacity: .8; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 8px;
  transition: color .15s ease;
}
.nav-links a::after {
  /* animated underline sweep, centred, expands on hover */
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--white); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 55%, var(--ink) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  animation: hero-kenburns 26s ease-in-out infinite alternate;
}
@keyframes hero-kenburns {
  0% { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1%, -1.5%, 0); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Darkens the left/bottom area where the hero text sits so it stays
     readable over the photo, fading out toward the right so the image
     still shows through clearly there. Navy-black instead of a flat warm
     black wash, to tie the hero into the header/footer's chrome colour. */
  background: linear-gradient(
    100deg,
    rgba(8, 9, 16, 0.78) 0%,
    rgba(8, 9, 16, 0.5) 38%,
    rgba(8, 9, 16, 0.18) 65%,
    rgba(8, 9, 16, 0) 85%
  );
}
.hero::before {
  /* two slow-drifting brand-colour glows, the depth cue behind the glass
     badge and buttons — subtle enough to read as light, not decoration */
  content: "";
  position: absolute;
  inset: -10%;
  z-index: 1;
  background:
    radial-gradient(38% 46% at 82% 12%, rgba(244, 192, 74, 0.22), transparent 68%),
    radial-gradient(46% 55% at 6% 92%, rgba(200, 16, 46, 0.28), transparent 70%);
  animation: mesh-drift-a 24s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  /* film grain — breaks up the flat gradient/photo blend so it reads as
     a considered surface rather than a flat CSS gradient */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--noise);
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes mesh-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -3%) scale(1.06); }
}
.hero-content {
  position: relative;
  z-index: 3;
  padding: 118px 24px 120px;
  max-width: 820px;
}
.hero-crest {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  box-shadow: 0 0 0 4px var(--white), 0 0 0 7px rgba(244, 192, 74, 0.5), 0 16px 40px rgba(0,0,0,0.45);
  margin-bottom: 22px;
}
.badge {
  display: inline-block;
  background: var(--glass-light);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--glass-light-border);
  color: var(--red-dark);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin: 0 0 .2em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55), 0 12px 32px rgba(0, 0, 0, 0.4);
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  max-width: 620px;
  opacity: .95;
  margin-bottom: 28px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Entrance choreography — each hero element steps in in sequence on load
   rather than appearing all at once. Kept off the critical layout path
   (opacity/transform only) and skipped under reduced-motion below. */
.hero-crest, .badge, .hero h1, .hero-sub, .hero-actions {
  animation: hero-in .8s var(--ease) both;
}
.badge { animation-delay: .1s; }
.hero h1 { animation-delay: .2s; }
.hero-sub { animation-delay: .32s; }
.hero-actions { animation-delay: .44s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero::before { animation: none; }
  .hero-crest, .badge, .hero h1, .hero-sub, .hero-actions { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  letter-spacing: .3px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .15s ease;
}
.btn::before {
  /* diagonal light sweep on hover — a single soft highlight passing
     through, not a gimmick loop */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--white); color: var(--red); box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg), var(--shadow-brand); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.7); }
.btn-light { background: var(--white); color: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::before { transition: none; }
}

/* ---------- Fact strip ---------- */
.facts {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.facts::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(32% 60% at 10% 0%, rgba(200, 16, 46, 0.22), transparent 70%),
    radial-gradient(32% 60% at 95% 100%, rgba(244, 192, 74, 0.14), transparent 70%);
  animation: mesh-drift-b 20s ease-in-out infinite;
  pointer-events: none;
}
.facts::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
@keyframes mesh-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 2%); }
}
.facts-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fact {
  background: var(--glass-dark);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.fact:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 192, 74, 0.4);
  background: rgba(21, 24, 39, 0.75);
}
.fact-label {
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.fact-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1.05;
}
.fact-highlight { color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .facts::before { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--off-white); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.section h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Overview two-column ---------- */
.overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.overview-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
  outline: 1px solid var(--line);
}
.overview-figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
}
.overview-figure figcaption {
  background: linear-gradient(115deg, var(--red), var(--red-dark));
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 10px 16px;
  font-family: "Barlow Condensed", sans-serif;
}

/* ---------- Honours ---------- */
.honours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.honour-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.honour-card::before {
  /* soft sheen highlight along the top edge — reads as depth/glass even
     on an otherwise solid card */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  opacity: .5;
  pointer-events: none;
}
.honour-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.honour-card.feature {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--ink) 130%);
  color: var(--white);
  border-color: transparent;
}
.honour-card.feature::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent); opacity: 1; }
.honour-card.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .06;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.honour-card.feature:hover { box-shadow: var(--shadow-lg), var(--shadow-brand); }
.honour-card.feature p { color: rgba(255, 255, 255, 0.9); }
.honour-year {
  position: relative;
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  background: rgba(200, 16, 46, 0.08);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.honour-card.feature .honour-year { color: var(--red-deep); background: var(--gold); }
.honour-card h3 { position: relative; font-size: 1.4rem; }
.honour-card p { position: relative; margin: 0; }

/* ---------- Trophy strip ----------
   A contained dark "stage" panel rather than loose glow blobs directly on
   the light section — glassmorphism needs real contrast behind it to read
   as glass at all; frosted-white-on-near-white (an earlier pass here)
   washed out to near-invisible. A dark panel guarantees the frosted cards
   actually pop. */
.trophy-strip-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin-bottom: 32px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink) 0%, #2a0d15 55%, var(--ink) 100%);
  box-shadow: var(--shadow-lg);
}
.trophy-strip-wrap::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(34% 70% at 12% 20%, rgba(200, 16, 46, 0.55), transparent 70%),
    radial-gradient(34% 70% at 88% 80%, rgba(244, 192, 74, 0.38), transparent 70%);
  animation: mesh-drift-a 18s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
.trophy-strip-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.trophy-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
}
.trophy-stat {
  text-align: center;
  background: var(--glass-light);
  border: 1px solid var(--glass-light-border);
  border-radius: var(--radius);
  padding: 22px 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.trophy-stat:hover { transform: translateY(-5px); background: var(--glass-light-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34); }
.trophy-stat strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 6px;
}
.trophy-stat span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  .trophy-strip-wrap::before { animation: none; }
}

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.story {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border-left: 5px solid var(--red);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.story:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-left-color: var(--gold); }
.story-tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--white);
  background: linear-gradient(115deg, var(--red), var(--red-dark));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.story h3 { font-size: 1.5rem; color: var(--red-dark); }
.story p:last-child { margin-bottom: 0; }
.story strong { color: var(--ink); }

/* ---------- Results table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 560px;
}
.results-table thead {
  background: linear-gradient(115deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--white);
}
.results-table th {
  text-align: left;
  padding: 15px 18px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.results-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  color: var(--ink-soft);
  transition: border-color .2s ease;
}
.results-table tbody tr:nth-child(even) { background: var(--off-white); }
.results-table tbody tr:hover { background: rgba(200, 16, 46, 0.05); }
.results-table tbody tr:hover td:first-child { border-left-color: var(--red); }
.vs { color: var(--red); font-weight: 700; font-size: .8rem; padding: 0 4px; }
.team-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -5px;
  margin-right: 6px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.score {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(115deg, var(--ink), var(--ink-2));
  padding: 2px 12px;
  border-radius: 6px;
}
.note { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; font-style: italic; }

.standings-wrap { position: relative; }
.standings-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  z-index: 1;
}
.standings-table th:not(:first-child):not(:nth-child(2)),
.standings-table td:not(:first-child):not(:nth-child(2)) { text-align: center; }
.standings-table td { vertical-align: middle; }
.standings-table .team-badge { width: 26px; height: 26px; }
.standings-table td:nth-child(2) { font-weight: 600; color: var(--ink); }

.pos-chip {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--off-white);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
/* League leader gets the gold treatment regardless of promotion/relegation
   rules we don't know — "currently top of the table" is always unambiguous. */
.standings-table tbody tr:first-child .pos-chip {
  background: linear-gradient(145deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ink);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.standings-table td[data-label="GD"] { font-variant-numeric: tabular-nums; }
.gd-pos { color: #1b8a52; font-weight: 700; }
.gd-neg { color: var(--red-dark); font-weight: 700; }
.gd-even { color: var(--ink-soft); }

.standings-table td[data-label="Pts"] strong {
  display: inline-block;
  min-width: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(115deg, var(--ink), var(--ink-2));
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
}

.standings-table tbody tr.is-us { background: rgba(200, 16, 46, 0.06); }
.standings-table tbody tr.is-us td:first-child { border-left-color: var(--red); }
.standings-table tbody tr.is-us td:nth-child(2) { color: var(--red-dark); font-weight: 700; }
.standings-table tbody tr.is-us .pos-chip {
  background: linear-gradient(145deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.standings-table tbody tr.is-us td[data-label="Pts"] strong {
  background: linear-gradient(115deg, var(--red), var(--red-dark));
}

/* ---------- Player ---------- */
.player-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.player-photo {
  position: relative;
  background: linear-gradient(160deg, var(--red) 0%, var(--ink) 130%);
  display: grid;
  place-items: center;
  min-height: 240px;
  overflow: hidden;
}
.player-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--noise);
  opacity: .07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.player-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
  transition: transform .5s var(--ease);
}
.player-card:hover .player-photo img { transform: scale(1.05); }
.player-number {
  position: relative;
  z-index: 3;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 0 60px rgba(244, 192, 74, 0.35);
}
.player-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(200,16,46,0.4) 0%, rgba(11,13,22,0.75) 100%);
}
.player-info { padding: 34px 36px; }
.player-pos {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 6px;
}
.player-info h3 { font-size: 2.2rem; }
.player-info p { color: var(--ink-soft); }
.player-stats {
  display: flex;
  gap: 34px;
  list-style: none;
  padding: 18px 0 0;
  margin: 6px 0 0;
  border-top: 1px solid var(--line);
}
.player-stats li { display: flex; flex-direction: column; }
.player-stats strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
}
.player-stats span { font-size: .78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Youth Pathway ---------- */
.youth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.youth-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.youth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  opacity: .5;
  pointer-events: none;
}
.youth-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.youth-card.featured {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 55%, var(--ink) 130%);
  color: var(--white);
  border-color: transparent;
}
.youth-card.featured::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent); opacity: 1; }
.youth-card.featured:hover { box-shadow: var(--shadow-lg), var(--shadow-brand); }
.youth-card.featured p { color: rgba(255, 255, 255, 0.9); }
.youth-card.featured .youth-tag { background: var(--gold); color: var(--red-deep); }
.youth-card > * { position: relative; }
.youth-icon { display: block; font-size: 2rem; margin-bottom: 10px; }
.youth-tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--white);
  background: var(--red);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.youth-card h3 { font-size: 1.7rem; }
.youth-card p { margin-bottom: 0; }
.youth-stats {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 16px 0 0;
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}
.youth-card.featured .youth-stats { border-top-color: rgba(255, 255, 255, 0.25); }
.youth-stats li { display: flex; flex-direction: column; }
.youth-stats strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
}
.youth-card.featured .youth-stats strong { color: var(--gold); }
.youth-stats span { font-size: .75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .5px; }
.youth-card.featured .youth-stats span { color: rgba(255, 255, 255, 0.75); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.g-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow .3s var(--ease);
}
.g-item:hover { box-shadow: var(--shadow-lg); }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.g-item:hover img { transform: scale(1.08); }
.g-item::before {
  /* glass sheen that rises from the bottom on hover, standing in for a
     caption strip without needing extra markup per image */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(11, 13, 22, 0.65), transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.g-item:hover::before { opacity: 1; transform: none; }
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 3px rgba(200, 16, 46, 0.0);
  transition: box-shadow .2s ease;
}
.g-item:hover::after { box-shadow: inset 0 0 0 3px rgba(244, 192, 74, 0.85); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- Club Shop ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 22px;
}
.shop-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
  outline: 1px solid var(--line);
  background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shop-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shop-item img, .shop-item video {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: var(--off-white);
}
.shop-item.shop-wide { grid-column: span 2; }
.shop-item figcaption {
  background: linear-gradient(115deg, var(--red), var(--red-dark));
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 10px 16px;
  font-family: "Barlow Condensed", sans-serif;
}
.shop-sponsors {
  text-align: center;
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 0 0 32px;
}
.shop-sponsors strong { color: var(--ink); }
.shop-info {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
}
.shop-info-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.shop-info-item p { margin: 0; font-size: 1.02rem; }
.shop-info-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-solid { background: var(--red); color: var(--white); }
.btn-solid:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: rgba(200, 16, 46, 0.08); }
/* WhatsApp's own brand green, not the club's red — this is the one button
   on the page meant to read as "WhatsApp," not "Makeni All Stars." */
.btn-whatsapp { background: #25D366; color: var(--white); border: 2px solid #25D366; }
.btn-whatsapp:hover { background: #1EBE57; border-color: #1EBE57; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Fan Zone ---------- */
.fanzone {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.fanzone::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 55% at 12% 15%, rgba(200, 16, 46, 0.35), transparent 70%),
    radial-gradient(34% 55% at 88% 20%, rgba(244, 192, 74, 0.22), transparent 70%),
    radial-gradient(40% 60% at 50% 100%, rgba(92, 7, 22, 0.4), transparent 70%);
  animation: mesh-drift-a 26s ease-in-out infinite;
  pointer-events: none;
}
.fanzone::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .045;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.fanzone .container { position: relative; z-index: 1; }
.fanzone .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.fanzone .eyebrow { color: var(--gold); }
.fanzone .eyebrow::before { background: linear-gradient(90deg, var(--gold), var(--red-light)); }
.fanzone h2 { color: var(--white); }
.fanzone .section-head p { color: rgba(255, 255, 255, 0.7); }
.fan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.fan-card {
  position: relative;
  background: var(--glass-light);
  border: 1px solid var(--glass-light-border);
  border-radius: var(--radius-lg);
  padding: 30px 30px 34px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.fan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--glass-light-border); }
.fan-card h3 { font-size: 1.7rem; margin-bottom: 6px; }
.fan-tag {
  display: inline-block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .74rem;
  color: var(--white);
  background: linear-gradient(115deg, var(--red), var(--red-dark));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.fixture-meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 4px; }

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}
.countdown-unit {
  text-align: center;
  background: var(--glass-light-strong);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 4px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.countdown-unit:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.countdown-unit strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.countdown-unit strong.tick { animation: bump .25s ease; }
.countdown-unit span {
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-soft);
}
.countdown.is-live .countdown-unit strong { color: var(--gold); }

/* Kick-off time not confirmed yet — show only the days-to-go unit instead
   of implying a precise (and fake) HH:MM:SS to midnight. */
.countdown.is-tbc { grid-template-columns: 1fr; }
.countdown.is-tbc .countdown-unit:not(:first-child) { display: none; }
.countdown.is-tbc .countdown-unit span { white-space: nowrap; }

/* Predictor */
.predict-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.p-team { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.p-team img, .opp-crest {
  width: 66px; height: 66px; border-radius: 50%;
  object-fit: cover; background: var(--white);
  box-shadow: 0 0 0 3px var(--white), 0 6px 16px rgba(0,0,0,0.15);
}
.opp-crest {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ink), #3a3033);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; font-size: 1.5rem; letter-spacing: 1px;
}
.p-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem; text-transform: uppercase; text-align: center; line-height: 1.05;
}
.p-vs {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800; color: var(--red); font-size: 1.4rem;
  padding: 0 6px;
}
.stepper { display: flex; align-items: center; gap: 8px; }
.step-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--red); background: var(--white); color: var(--red);
  font-size: 1.3rem; line-height: 1; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; transition: background .15s, color .15s, transform .1s;
}
.step-btn:hover { background: var(--red); color: var(--white); }
.step-btn:active { transform: scale(.9); }
.score-input {
  width: 58px; height: 58px; text-align: center;
  font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 2rem;
  color: var(--ink); border: 2px solid var(--line); border-radius: 12px;
  background: var(--off-white); -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input.bump { animation: bump .25s ease; }
@keyframes bump { 0%{transform:scale(1);} 40%{transform:scale(1.18);} 100%{transform:scale(1);} }
.predict-submit { width: 100%; }
.predict-msg {
  margin: 14px 0 0; font-size: .95rem; color: var(--red-dark); font-weight: 600;
  min-height: 1.2em; opacity: 0; transform: translateY(6px);
}
.predict-msg.show { animation: fadeUp .4s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Consensus */
.consensus { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); }
.consensus h4 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.consensus-count {
  font-family: "Inter", sans-serif; font-size: .72rem; font-weight: 700;
  background: rgba(200,16,46,0.1); color: var(--red); padding: 3px 10px; border-radius: 999px;
  text-transform: none; letter-spacing: 0;
}
.consensus-bars { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.cbar { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; }
.cbar-label { font-size: .82rem; color: var(--ink-soft); }
.cbar-track { height: 12px; background: var(--off-white); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.cbar-fill { height: 100%; width: 0; border-radius: 999px; transition: width .7s cubic-bezier(.2,.7,.2,1); }
.cbar-fill.win { background: linear-gradient(90deg, var(--red), var(--red-dark)); }
.cbar-fill.draw { background: linear-gradient(90deg, var(--gold), #d89a1f); }
.cbar-fill.loss { background: linear-gradient(90deg, #4a4045, var(--ink)); }
.cbar-pct { font-size: .82rem; font-weight: 700; text-align: right; }
.consensus-fav { font-size: .92rem; color: var(--ink-soft); margin: 6px 0 12px; }
.link-btn { background: none; border: 0; color: var(--red); font-weight: 600; cursor: pointer; padding: 0; font-size: .85rem; text-decoration: underline; }

/* Quiz */
.quiz-progress { height: 8px; background: var(--off-white); border-radius: 999px; overflow: hidden; margin-bottom: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.quiz-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--red-dark)); transition: width .4s ease; }
.quiz-question { font-size: 1.2rem; font-weight: 600; color: var(--ink); min-height: 3em; margin-bottom: 18px; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  text-align: left; padding: 14px 16px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--white); color: var(--ink);
  font-size: .98rem; font-weight: 500; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--red); background: rgba(200,16,46,0.04); transform: translateX(3px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { border-color: #1f9d55; background: rgba(31,157,85,0.12); color: #147a40; font-weight: 700; }
.quiz-opt.wrong { border-color: var(--red); background: rgba(200,16,46,0.1); color: var(--red-dark); }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: .85rem; color: var(--ink-soft); }
.quiz-score { font-weight: 700; color: var(--red); }
.quiz-result { text-align: center; padding: 14px 0; animation: fadeUp .5s ease; }
.quiz-result-emoji { font-size: 3.4rem; line-height: 1; margin-bottom: 8px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { 0%{transform:scale(0);} 100%{transform:scale(1);} }
.quiz-result h4 { font-size: 1.8rem; }
.quiz-result-score { font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; color: var(--red); font-weight: 700; }
.quiz-result-msg { color: var(--ink-soft); max-width: 320px; margin: 6px auto 20px; }

/* Confetti overlay */
.confetti-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 999;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 55%, var(--ink) 130%);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(45% 70% at 50% 0%, rgba(244, 192, 74, 0.22), transparent 70%);
  animation: mesh-drift-b 22s ease-in-out infinite;
  pointer-events: none;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .05;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem, 5vw, 3rem); }
.cta p { color: rgba(255, 255, 255, 0.9); max-width: 520px; margin: 0 auto 26px; }
@media (prefers-reduced-motion: reduce) {
  .cta::before { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold), var(--red), transparent);
  opacity: .5;
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: .04;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 54px 24px 40px;
}
.footer-brand { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.footer-brand:hover strong { color: var(--gold); }
.footer-brand strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; text-transform: uppercase; }
.footer-brand p { margin: 2px 0 0; color: rgba(255,255,255,0.6); font-size: .9rem; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: grid; place-items: center;
  color: var(--white);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.footer-social a:hover {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-brand);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-sources h4 {
  font-size: 1rem; letter-spacing: 1px; margin-bottom: 14px;
  color: var(--gold);
}
.footer-sources ul { list-style: none; margin: 0; padding: 0; }
.footer-sources li {
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; }
.footer-bottom p { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .honours-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .player-card { grid-template-columns: 1fr; }
  .player-photo { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .fan-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-item.shop-wide { grid-column: span 1; }
  .shop-info { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    /* Solid, not glass: this panel nests inside the header's own
       backdrop-filter, and stacking two blurred layers renders
       inconsistently across engines — a legible menu matters more than
       the glass effect here, so it goes fully opaque instead. */
    background: var(--ink);
    border-bottom: 1px solid var(--glass-dark-border);
    padding: 10px 16px 16px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero-content { padding: 64px 24px 70px; }
  .section { padding: 56px 0; }
  .player-stats { gap: 24px; }
}

@media (max-width: 420px) {
  .facts-grid { grid-template-columns: 1fr; }
  .countdown-unit strong { font-size: 1.3rem; }
}

/* Small one-off spacing tweaks, pulled out of inline style="" attributes so
   the site can run a strict CSP (style-src with no 'unsafe-inline'). */
.mt-56 { margin-top: 56px; }
.mb-14 { margin-bottom: 14px; }

/* ---------- Mobile responsiveness ---------- */
/* minmax(0, …) lets grid children shrink below their content's width, which is
   what stops the predictor and quiz cards from overflowing narrow screens. */
.fan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.predict-match { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.p-team { min-width: 0; }
.p-name, .quiz-opt, .quiz-question { overflow-wrap: anywhere; }
.quiz-foot { flex-wrap: wrap; gap: 6px 12px; }

@media (max-width: 900px) {
  .fan-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (pointer: coarse) {
  .step-btn { width: 44px; height: 44px; }
}

/* Hover effects stick after a tap on touch screens. */
@media (hover: none) {
  .fan-card:hover, .youth-card:hover { transform: none; }
  .quiz-opt:hover:not(:disabled) { transform: none; background: var(--white); border-color: var(--line); }
}

@media (max-width: 680px) {
  /* Pathway */
  .youth-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .youth-card { padding: 26px 22px; }
  .youth-stats { flex-wrap: wrap; gap: 14px 28px; }

  /* Fixtures and results become stacked cards; standings keeps its own scroll. */
  .table-wrap:not(.standings-wrap) { overflow: visible; box-shadow: none; border-radius: 0; }
  .results-table:not(.standings-table) { display: block; min-width: 0; background: none; }
  .results-table:not(.standings-table) thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .results-table:not(.standings-table) tbody { display: block; }
  .results-table:not(.standings-table) tbody tr,
  .results-table:not(.standings-table) tbody tr:nth-child(even),
  .results-table:not(.standings-table) tbody tr:hover {
    display: block;
    margin-bottom: 12px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
  }
  .results-table:not(.standings-table) td,
  .results-table:not(.standings-table) tbody tr:hover td:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 5px 0;
    border: 0;
    font-size: .92rem;
    text-align: right;
  }
  .results-table:not(.standings-table) td::before {
    content: attr(data-label);
    flex: none;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
  .results-table:not(.standings-table) td[data-label="Fixture"] {
    display: block;
    padding: 2px 0 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    text-align: left;
  }
  .results-table:not(.standings-table) td[data-label="Fixture"]::before { content: none; }

  /* Fan zone */
  .fan-card { padding: 22px 18px 26px; }
  .predict-match { gap: 8px; }
  .p-vs { padding: 0; font-size: 1.15rem; }
  .p-team img, .opp-crest { width: 54px; height: 54px; }
  .opp-crest { font-size: 1.25rem; }
  .p-name { font-size: .95rem; }
  /* Score above its buttons, so both 44px tap targets fit beside the other team. */
  .stepper { flex-wrap: wrap; justify-content: center; }
  .score-input { order: -1; width: 100%; max-width: 96px; height: 52px; }
  .quiz-question { font-size: 1.08rem; min-height: 0; }
  .quiz-opt { padding: 13px 14px; }
}

/* ---------- PWA install prompt ---------- */
.pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--glass-dark-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.pwa-banner[hidden] { display: none; }
.pwa-banner img { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.pwa-banner-text { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.35; }
.pwa-banner-text strong { display: block; font-size: .95rem; color: var(--white); }
.pwa-banner button { flex: none; min-height: 44px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.pwa-install { padding: 0 16px; color: var(--white); background: var(--red); border-radius: 10px; }
.pwa-dismiss { width: 36px; padding: 0; color: var(--white); background: none; font-size: 1.3rem; line-height: 1; }

/* The full nav needs about 860px, so collapse it to the menu button below 900px. */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    background: var(--ink);
    border-bottom: 1px solid var(--glass-dark-border);
    padding: 10px 16px 16px;
    gap: 2px;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}
