/* Eagle RUFC — site styles */
:root {
  --black: #0b0b0c;
  --ink: #141416;
  --panel: #1b1b1e;
  --line: #2c2c31;
  --red: #e3242b;
  --red-dark: #b81a20;
  --gold: #d4a83a;
  --white: #ffffff;
  --muted: #a8a8b0;
  --paper: #f5f3ef;
  --paper-ink: #1a1a1a;
  --radius: 14px;
  --wrap: 1180px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .5px; line-height: 1.02; margin: 0 0 .4em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.kicker { font-weight: 700; font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; display: block; }
.lead { font-size: 1.15rem; color: #d9d9de; max-width: 60ch; }
.muted { color: var(--muted); }
.red { color: var(--red); }

/* Diagonal kit stripe, echoing the AVR Range #9 shirt */
.stripes {
  background-image: repeating-linear-gradient(-45deg, rgba(227,36,43,.065) 0 14px, transparent 14px 40px);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,12,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(212,168,58,.55); }
.brand span { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 8px; color: #e6e6ea; }
.nav a:hover { background: var(--panel); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--white); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: var(--white) !important; text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--red);
  cursor: pointer; transition: background .15s, transform .15s; font-family: var(--body);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.5); }
.btn.ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn.small { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.text-link { color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.text-link:hover { color: var(--red); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; transform: scale(1.08); transform-origin: 30% 20%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.75) 45%, rgba(11,11,12,.15) 100%), linear-gradient(0deg, var(--black) 0%, transparent 35%); }
.hero .wrap { position: relative; z-index: 1; padding: 120px 0 80px; }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { max-width: 46ch; }
.page-hero { position: relative; padding: 90px 0 60px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .wrap { position: relative; }

/* Sections */
section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.light { background: var(--paper); color: var(--paper-ink); }
.light .muted { color: #5c5c63; }
.light .lead { color: #3a3a40; }
.light .text-link { color: var(--paper-ink); }
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.two, .grid.three { grid-template-columns: 1fr; } section { padding: 60px 0; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.light .card { background: var(--white); border-color: #e3e0da; }
.card h3 { margin-bottom: 10px; }
.icon-num { font-family: var(--display); font-size: 2.6rem; color: var(--red); line-height: 1; margin-bottom: 8px; }

/* Split photo + text */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.reverse .photo { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse .photo { order: 0; } }
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
/* Slight zoom from the top-left keeps the photographer's corner watermark out of frame */
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transform-origin: 20% 20%; }
.credit { font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* Match strip */
.match-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 900px) { .match-strip { grid-template-columns: 1fr; } }
.match-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; }
.match-card .label { font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.match-card .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 18px 0; }
.match-card .team { font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); text-transform: uppercase; line-height: 1.05; }
.match-card .team:last-child { text-align: right; }
.match-card .team.us { color: var(--red); }
.match-card .vs { font-family: var(--display); font-size: 2.4rem; white-space: nowrap; }
.match-card .meta { color: #d0d0d6; font-size: .95rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #2a2a2f; color: var(--white); }
.badge.win { background: #1f7a3f; }
.badge.loss { background: #5b5b63; }
.badge.draw { background: #8a6d1f; }
.badge.home { background: var(--red); }
.badge.away { background: #2a2a2f; border: 1px solid #44444b; }

/* Fixtures list */
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: #d6d6dc; font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--red); color: var(--white); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.select { background: var(--panel); color: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: inherit; font-weight: 600; }
.match-list { display: grid; gap: 12px; }
.match-row {
  display: grid; grid-template-columns: 120px 1fr auto 1fr 110px; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px;
}
.match-row .date { font-weight: 700; line-height: 1.25; }
.match-row .date small { display: block; color: var(--muted); font-weight: 500; }
.match-row .side { font-weight: 700; font-size: 1.05rem; }
.match-row .side.right { text-align: right; }
.match-row .side.us { color: var(--red); }
.match-row .score { font-family: var(--display); font-size: 1.6rem; min-width: 96px; text-align: center; letter-spacing: 1px; }
.match-row .score.ko { font-family: var(--body); font-size: .95rem; font-weight: 700; color: var(--muted); }
.match-row .tag { text-align: right; }
.match-row .note { grid-column: 2 / 5; text-align: center; color: var(--muted); font-size: .88rem; margin-top: -6px; }
@media (max-width: 760px) {
  .match-row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .match-row .date { grid-column: 1 / 2; }
  .match-row .tag { grid-column: 2 / 3; grid-row: 1; }
  .match-row .side, .match-row .side.right { grid-column: 1 / 2; text-align: left; }
  .match-row .score { grid-column: 2 / 3; grid-row: 2 / 4; text-align: right; }
  .match-row .note { grid-column: 1 / 3; text-align: left; margin: 0; }
}

/* League table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.league { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 620px; }
table.league th, table.league td { padding: 13px 12px; text-align: center; border-bottom: 1px solid var(--line); }
table.league th { font-size: .75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; background: #151518; }
table.league td.team, table.league th.team { text-align: left; }
table.league td.pts { font-weight: 800; }
table.league tr:last-child td { border-bottom: 0; }
table.league tr.us td { background: rgba(227,36,43,.16); font-weight: 700; }
table.league tr.us td.team { color: var(--white); box-shadow: inset 4px 0 0 var(--red); }
.table-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* Sponsors */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.logo-tile { background: var(--white); border-radius: 12px; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 18px; text-decoration: none; transition: transform .15s, box-shadow .15s; border: 1px solid #e3e0da; }
.logo-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.logo-tile img { max-height: 100%; width: auto; object-fit: contain; }
.logo-tile span { color: var(--paper-ink); font-weight: 700; text-align: center; }
.tier { border-top: 4px solid var(--red); }
.tier .price-note { font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.tier ul { padding-left: 1.1em; margin: 0 0 1em; }
.tier li { margin-bottom: 6px; }
.stat { text-align: left; }
.stat strong { display: block; font-family: var(--display); font-size: 2.8rem; line-height: 1; color: var(--red); }

/* Forms */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.light .form-card { background: var(--white); border-color: #e3e0da; }
.field { margin-bottom: 18px; }
.field > label, .field > .legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field input[type=number], .field input[type=date], .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid #3a3a41; background: #111114; color: var(--white); font: inherit;
}
.light .field input, .light .field select, .light .field textarea { background: #faf9f7; color: var(--paper-ink); border-color: #cfcbc3; }
.field textarea { min-height: 120px; resize: vertical; }
.field input[aria-invalid=true], .field select[aria-invalid=true], .field textarea[aria-invalid=true] { border-color: var(--red); }
.field .choices { display: grid; gap: 8px; }
.field .choice { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.field .choice input { width: 18px; height: 18px; accent-color: var(--red); }
.field .help { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field .error, .form-error { color: #ff6b70; font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.light .field .error, .light .form-error { color: var(--red-dark); }
.req { color: var(--red); }
.thanks { font-size: 1.1rem; }
.thanks h3 { color: var(--red); }

/* Info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.light .info-list li { border-color: #e3e0da; }
.info-list b { color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase; padding-top: 2px; }
.light .info-list b { color: #6b6b72; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); filter: grayscale(.3); }

/* CTA band */
.cta-band { background: var(--red); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, rgba(0,0,0,.11) 0 16px, transparent 16px 44px); }
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; }
.cta-band .btn { background: var(--black); border-color: var(--black); }
.cta-band .btn:hover { background: #222; border-color: #222; }

/* Socials */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--line); transition: background .15s; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.social-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .social-cards { grid-template-columns: 1fr; } }
.social-card { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s; }
.social-card:hover { border-color: var(--red); }
.social-card svg { width: 28px; height: 28px; fill: var(--red); flex: none; }
.social-card b { display: block; }
.social-card span { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #dcdce2; }
.site-footer a:hover { color: var(--red); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }

.loading { color: var(--muted); padding: 20px 0; }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.fade { opacity: .55; transition: opacity .2s; }
/* ===== v2: modern layer ===== */
body { background: radial-gradient(1200px 600px at 85% -10%, rgba(227,36,43,.12), transparent 60%), var(--black); }
.site-header { background: rgba(11,11,12,.72); backdrop-filter: saturate(160%) blur(14px); }
.nav-social { display: inline-flex; gap: 2px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-social a { padding: 8px !important; display: inline-flex; border-radius: 50% !important; }
.nav-social svg { width: 18px; height: 18px; fill: currentColor; }
.nav-social a:hover { background: var(--red) !important; }
@media (max-width: 860px) { .nav-social { border-left: 0; padding: 8px 0 0; margin: 0; justify-content: center; gap: 10px; } .nav-social a { background: var(--panel); } }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); font-size: .85rem; font-weight: 600; margin-bottom: 22px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #39d67a; box-shadow: 0 0 0 0 rgba(57,214,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(57,214,122,0); } 100% { box-shadow: 0 0 0 0 rgba(57,214,122,0); } }

.hero { min-height: min(92vh, 820px); flex-direction: column; justify-content: flex-end; padding: 0; }
.hero .wrap.hero-inner { padding: 140px 0 60px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 960px) { .hero .wrap.hero-inner { grid-template-columns: 1fr; padding-top: 110px; } }
.hero-next:empty { display: none; }
.hero-next { background: rgba(20,20,22,.72); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); border-radius: 18px; padding: 22px; }
.hero-next .label { font-size: .75rem; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 800; color: var(--gold); }
.hero-next .fx { font-family: var(--display); text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; margin: 10px 0 6px; }
.hero-next .fx .us { color: var(--red); }
.hero-next .when { color: #d0d0d6; font-size: .95rem; margin-bottom: 14px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 4px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.countdown small { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

.ticker { position: relative; z-index: 1; width: 100%; background: var(--red); overflow: hidden; border-top: 1px solid rgba(255,255,255,.15); }
.ticker-track { display: inline-flex; gap: 0; white-space: nowrap; animation: tick 40s linear infinite; padding: 12px 0; }
.ticker-track:empty { display: none; }
.ticker span { font-weight: 700; font-size: .92rem; padding: 0 22px; letter-spacing: .3px; }
.ticker span b { font-family: var(--display); font-weight: 400; letter-spacing: .5px; margin-right: 6px; }
.ticker span::after { content: "◆"; margin-left: 44px; opacity: .5; font-size: .6rem; vertical-align: middle; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

.match-centre { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.match-centre .match-strip { grid-template-columns: 1fr; }
@media (max-width: 960px) { .match-centre { grid-template-columns: 1fr; } }
.table-card { padding: 22px; }
.table-card table.league { min-width: 0; }
.table-card table.league th, .table-card table.league td { padding: 10px 8px; }
.match-card { background: linear-gradient(135deg, #1e1e22, #141417); transition: transform .2s, border-color .2s; }
.match-card:hover { transform: translateY(-2px); border-color: #3a3a41; }

.paths { padding-top: 0; }
.path-card { position: relative; display: block; min-height: 340px; border-radius: 20px; overflow: hidden; padding: 34px; text-decoration: none; isolation: isolate; border: 1px solid var(--line); }
.path-card::before { content: ""; position: absolute; inset: 0; background: var(--img) center/cover; transform: scale(1.12); transform-origin: 20% 20%; transition: transform .6s ease; z-index: -2; }
.path-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.25), rgba(11,11,12,.92) 70%); z-index: -1; }
.path-card:hover::before { transform: scale(1.18); }
.path-card { display: flex; flex-direction: column; justify-content: flex-end; }
.path-card h2 { margin-bottom: 8px; }
.path-card p { color: #dcdce2; max-width: 40ch; }
.path-cta { font-weight: 800; color: var(--white); border-bottom: 2px solid var(--red); align-self: flex-start; padding-bottom: 3px; }

.follow { background: linear-gradient(135deg, #16161a 0%, #0b0b0c 100%); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.follow::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, rgba(227,36,43,.065) 0 14px, transparent 14px 40px); }
.follow-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .follow-inner { grid-template-columns: 1fr; } }
.follow-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
@media (max-width: 520px) { .follow-buttons { grid-template-columns: 1fr; } }
.follow-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .15s, background .15s; }
.follow-btn:hover { border-color: var(--red); transform: translateY(-2px); background: rgba(227,36,43,.08); }
.follow-btn svg { width: 26px; height: 26px; fill: var(--white); flex: none; }
.follow-btn span { flex: 1; line-height: 1.2; }
.follow-btn small { display: block; color: var(--muted); font-size: .82rem; }
.follow-btn em { font-style: normal; font-weight: 800; font-size: .8rem; background: var(--white); color: var(--black); padding: 6px 12px; border-radius: 999px; }
.follow-btn.ig { background: linear-gradient(135deg, rgba(227,36,43,.25), rgba(212,168,58,.12)); border-color: rgba(227,36,43,.5); }
.follow-btn.ig em { background: var(--red); color: var(--white); }
.mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-radius: 20px; overflow: hidden; text-decoration: none; }
.mosaic img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; transition: transform .4s, filter .4s; filter: saturate(.9); }
.mosaic:hover img { filter: saturate(1.1); }
.mosaic-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--black); font-weight: 800; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4); white-space: nowrap; }
.mosaic-tag svg { width: 18px; height: 18px; fill: var(--black); }

.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(11,11,12,.85); backdrop-filter: blur(12px); border: 1px solid var(--line); }
  .mobile-bar .btn { padding: 12px; font-size: .95rem; }
  body { padding-bottom: 80px; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .ticker-track { animation: none; } .pill .dot { animation: none; } }
.field legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; padding: 0; }
.logo-tile img { max-width: 100%; }

.light .socials a { background: #141416; border-color: #141416; color: #fff; }
.light .socials a:hover { background: var(--red); border-color: var(--red); }
.socials a { color: #fff; }

/* ===== v3: flow + mobile polish ===== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
html, body { overflow-x: clip; }
.match-card .teams { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.match-card .team { overflow-wrap: anywhere; }
.page-hero { padding: 64px 0 48px; }
.hero .wrap.hero-inner { padding-top: 96px; }
@media (max-width: 760px) {
  section { padding: 44px 0; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.3rem; }
  .lead { font-size: 1.02rem; }
  .section-head { margin-bottom: 18px; }
  .grid { gap: 14px; }
  .card { padding: 20px; }
  .split { gap: 22px; }
  .photo { aspect-ratio: 16 / 10; }
  .credit { margin-top: 6px; }
  .hero { min-height: 0; }
  .hero .wrap.hero-inner { padding: 36px 0 26px; gap: 20px; }
  .hero h1 { font-size: 2.7rem; }
  .pill { font-size: .78rem; margin-bottom: 14px; padding: 7px 12px; }
  .btn-row { margin-top: 18px; gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; }
  .hero-next { padding: 16px; border-radius: 14px; }
  .hero-next .fx { font-size: 1.35rem; }
  .hero-next .when { margin-bottom: 10px; font-size: .88rem; }
  .countdown b { font-size: 1.45rem; }
  .countdown div { padding: 8px 2px; }
  .match-centre, .match-strip { gap: 14px; }
  .match-card { padding: 18px; }
  .match-card .teams { gap: 10px; margin: 12px 0; }
  .match-card .team { font-size: 1.15rem; }
  .match-card .vs { font-size: 1.6rem; }
  .table-card { padding: 14px; }
  .paths .grid { gap: 14px; }
  .path-card { min-height: 210px; padding: 22px; border-radius: 16px; }
  .path-card p { margin-bottom: 10px; }
  section[aria-labelledby="new-title"] .grid.three { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 22px -20px 0; padding: 0 20px 6px; scrollbar-width: none; }
  section[aria-labelledby="new-title"] .grid.three::-webkit-scrollbar { display: none; }
  section[aria-labelledby="new-title"] .grid.three > * { scroll-snap-align: start; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .logo-tile { padding: 8px; border-radius: 10px; }
  .follow-inner { gap: 24px; }
  .follow-buttons { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .follow-btn { padding: 10px; gap: 8px; border-radius: 12px; }
  .follow-btn em { display: none; }
  .follow-btn svg { width: 22px; height: 22px; }
  .follow-btn b { font-size: .9rem; }
  .follow-btn small { font-size: .72rem; overflow-wrap: anywhere; }
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .mosaic img { border-radius: 8px; }
  .mosaic-tag { position: static; transform: none; grid-column: 1 / -1; justify-self: center; margin-top: 4px; padding: 10px 16px; }
  .page-hero { padding: 36px 0 30px; }
  .page-hero .grid.three, #record .grid.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  #record { margin-top: 18px !important; }
  .stat.card { padding: 12px; }
  .stat strong { font-size: 1.8rem; }
  .stat .muted, .stat span { font-size: .74rem; line-height: 1.3; display: block; }
  .info-list { gap: 10px; }
  .info-list li { grid-template-columns: 84px 1fr; gap: 8px; padding-bottom: 10px; }
  .info-list b { font-size: .72rem; }
  .form-card { padding: 20px; }
  .field { margin-bottom: 14px; }
  .toolbar { margin-bottom: 16px; }
  .match-list { gap: 10px; }
  .match-row { padding: 12px 14px; }
  .cta-band .wrap { gap: 14px; }
  .cta-band .btn { width: 100%; }
  .site-footer { padding: 36px 0 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { margin-top: 24px; }
  .tier ul { margin-bottom: .6em; }
}

/* v4: smart mobile bar */
@media (max-width: 760px) {
  .mobile-bar { transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
  .mobile-bar.show { transform: none; opacity: 1; pointer-events: auto; }
  body { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* v5: no grid blow-out */
.grid > *, .match-centre > *, .match-strip > *, .split > *, .follow-inner > *, .hero-inner > * { min-width: 0; }
.match-card, .table-card, .table-wrap { max-width: 100%; }
@media (max-width: 760px) {
  .table-card .table-wrap { border: 0; background: none; }
  .table-card table.league { font-size: .88rem; }
  .table-card table.league th, .table-card table.league td { padding: 9px 5px; }
  .table-card table.league td.team { white-space: normal; line-height: 1.25; }
  .match-card .meta { font-size: .88rem; }
}

/* v6: compact fixture rows on phones */
@media (max-width: 760px) {
  .match-row { gap: 4px 12px; padding: 12px 14px; }
  .match-row .date { font-size: .92rem; }
  .match-row .date small { display: inline; margin-left: 6px; }
  .match-row .side { font-size: 1rem; }
  .match-row:has(.score.ko) .score { display: none; }
  .match-row:has(.score.ko) .side.right::before { content: "v "; color: var(--muted); font-weight: 500; }
  .match-row .score { font-size: 1.5rem; align-self: center; }
}

/* v7: touch page + home nudge */
.touch-nudge { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 18px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid #e3e0da; border-left: 5px solid var(--gold); text-decoration: none; color: var(--paper-ink); transition: transform .15s, box-shadow .15s; }
.touch-nudge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.touch-nudge .kicker { color: #9a7614; white-space: nowrap; }
.touch-nudge span:nth-child(2) { flex: 1; color: #3a3a40; }
.touch-nudge .arrow { font-weight: 800; color: var(--red); font-size: 1.3rem; }
.touch-photo { aspect-ratio: 1 / 1; }
.touch-photo img { transform: none; object-position: 50% 30%; }
.touch-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.touch-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; background: var(--white); border: 1px solid #e3e0da; border-radius: 12px; color: #3a3a40; }
.touch-steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--display); display: grid; place-items: center; }
.touch-steps b { color: var(--paper-ink); }
.light .touch-info { background: var(--ink); color: var(--white); border-color: var(--ink); }
.light .touch-info .info-list li { border-color: var(--line); }
.light .touch-info .info-list b { color: var(--muted); }
.btn.ghost.dark { border-color: rgba(255,255,255,.5); }
@media (max-width: 760px) {
  .touch-nudge { flex-wrap: wrap; gap: 6px 12px; padding: 14px 16px; }
  .touch-nudge span:nth-child(2) { flex-basis: 100%; order: 3; }
  .touch-nudge .arrow { margin-left: auto; }
  .touch-photo { aspect-ratio: 4 / 3; }
  .social-cards[style] { grid-template-columns: 1fr !important; }
}
/* v8 touch times + gallery */
.touch-times{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}
.touch-times span{display:inline-flex;gap:8px;align-items:center;padding:9px 14px;border-radius:999px;background:rgba(212,168,58,.14);border:1px solid rgba(212,168,58,.45);color:#fff;font-size:.95rem}
.touch-times b{color:#d4a83a}
.touch-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:24px}
.touch-gallery figure{margin:0;border-radius:18px;overflow:hidden;min-width:0;aspect-ratio:4/5}
.touch-gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.touch-gallery figure:hover img{transform:scale(1.04)}
.touch-photo img{aspect-ratio:4/3;object-fit:cover;width:100%;height:auto}
@media (max-width:760px){.touch-gallery{grid-template-columns:1fr 1fr;gap:10px}.touch-gallery figure:first-child{grid-column:span 2;aspect-ratio:4/3}}
