/* ==========================================================
   Magic System FC — maquette
   Charte : vert club / orange / blanc · Bebas Neue + Source Sans 3
   ========================================================== */
:root {
  --green-950: #04231A;
  --green-900: #06301F;
  --green-800: #0A4A30;
  --green-700: #0F6B3F;
  --green-500: #18A34A;
  --orange-500: #F26B1D;
  --orange-600: #D9560B;
  --cream: #F6F3EC;
  --paper: #FFFFFF;
  --ink: #0E1512;
  --ink-2: #3D4A43;
  --line: #E3E0D7;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -18px rgba(4, 35, 26, .35);
  --font-display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--orange-500); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.text-orange { color: var(--orange-500); }
.text-green { color: var(--green-700); }
.center { text-align: center; }

/* ---------- mock banner ---------- */
.mock-banner {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px 48px 8px 16px;
  background: var(--orange-500); color: #fff; font-size: 14px; text-align: center;
}
.mock-banner__close { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; background: transparent; color: #fff; border-radius: 50%; }
.mock-banner__close:hover { background: rgba(255,255,255,.15); }
.mock-banner.is-hidden { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 16px; }
.btn--orange { background: var(--orange-500); color: #fff; }
.btn--orange:hover { background: var(--orange-600); }
.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-800); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green-900); }
.btn--line { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn--line:hover { background: var(--green-700); color: #fff; }

.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--green-700); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.badge--orange { background: var(--orange-500); }
.badge--muted { background: var(--line); color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600);
}
.eyebrow--light { color: var(--orange-500); }
.link-arrow { font-weight: 700; color: var(--green-700); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(6, 48, 31, .0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
  margin-bottom: calc(var(--header-h) * -1);
}
.header.is-solid { background: rgba(6, 48, 31, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 24px -12px rgba(0,0,0,.5); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand__crest { width: 40px; height: 46px; }
.brand__name { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; line-height: 1; }
.brand__name b { color: var(--orange-500); font-weight: 400; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 12px; color: rgba(255,255,255,.88); text-decoration: none;
  font-weight: 600; font-size: 15px; border-radius: 8px; position: relative;
}
.nav__list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--orange-500); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__list a:hover, .nav__list a.is-current { color: #fff; }
.nav__list a:hover::after, .nav__list a.is-current::after { transform: scaleX(1); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--green-950);
  padding: calc(var(--header-h) + 24px) 24px 24px;
  transform: translateY(-100%); transition: transform .35s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer a:not(.btn) { font-family: var(--font-display); font-size: 40px; color: #fff; text-decoration: none; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.drawer .btn { margin-top: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 900px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--green-950); isolation: isolate;
}
.hero__media { position: absolute; inset: -6% 0 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4,35,26,.55) 0%, rgba(4,35,26,.15) 30%, rgba(4,35,26,.85) 78%, var(--green-950) 100%),
    linear-gradient(90deg, rgba(4,35,26,.85) 0%, rgba(4,35,26,.2) 65%);
}
/* grain léger : masque la compression des photos basse définition */
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { padding: calc(var(--header-h) + 80px) 0 96px; }
.hero__eyebrow { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 0 rgba(242,107,29,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(242,107,29,0); } 100% { box-shadow: 0 0 0 0 rgba(242,107,29,0); } }
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 11vw, 148px); line-height: .88; letter-spacing: .01em;
  margin: 18px 0 20px; max-width: 12ch; text-wrap: balance;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 52ch; font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.88); margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- ticker ---------- */
.ticker { background: var(--orange-500); color: #fff; overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-display); font-size: 24px; letter-spacing: .04em; white-space: nowrap; }
.ticker__track i { font-style: normal; color: var(--green-900); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--dark { background: var(--green-950); color: #fff; }
.section--green { background: var(--green-800); color: #fff; }
.section--cream { background: var(--cream); }
.section__head { margin-bottom: 40px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: .95; margin: 0; letter-spacing: .01em; }
.section--dark .text-green, .section--green .text-green { color: var(--green-500); }
.note { font-size: 14px; color: var(--ink-2); margin-top: 24px; }
.note--light { color: rgba(255,255,255,.65); }

/* ---------- match center ---------- */
.match { background: var(--cream); }
.match__grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.card-next {
  grid-row: span 2; display: flex; flex-direction: column; background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 28px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.card-next::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 50px solid rgba(255,255,255,.04);
}
.card-next__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.card-next__comp { font-size: 14px; color: rgba(255,255,255,.7); }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 32px 0 28px; text-align: center; }
.versus__team { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.versus__team strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .03em; line-height: 1; }
.versus__crest { width: clamp(72px, 9vw, 108px); height: clamp(84px, 10.5vw, 126px); }
.versus__crest--tbd { display: grid; place-items: center; border-radius: 50%; width: clamp(80px, 9vw, 108px); height: clamp(80px, 9vw, 108px); border: 2px dashed rgba(255,255,255,.3); font-family: var(--font-display); font-size: 48px; color: rgba(255,255,255,.4); }
.versus__vs { font-family: var(--font-display); font-size: 40px; color: var(--orange-500); }
.live-score { font-family: var(--font-display); font-size: clamp(56px, 7vw, 84px); line-height: 1; display: flex; align-items: center; gap: 10px; position: relative; }
.live-score em { font-style: normal; color: var(--orange-500); }
.live-score small { position: absolute; left: 50%; bottom: -26px; translate: -50% 0; font-family: var(--font-body); font-size: 13px; font-weight: 800; background: #E11D48; padding: 2px 8px; border-radius: 6px; letter-spacing: .05em; }
.live-score .bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); color: var(--orange-500); } }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 12px 6px; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 4.5vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65); }
.card-next__meta { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: rgba(255,255,255,.85); font-size: 15px; }
.card-next__meta li { display: flex; align-items: center; gap: 8px; }
.card-next__meta svg { width: 20px; height: 20px; fill: none; stroke: var(--orange-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-next__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.card-next__actions .btn--line { color: #fff; border-color: rgba(255,255,255,.5); }
.card-next__actions .btn--line:hover { background: #fff; color: var(--green-900); }
.card-next.is-live { background: linear-gradient(135deg, var(--green-900), #0b3d28 60%, #3a1f0b); }

.card-result { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 260px; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.card-result img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-result:hover img { transform: scale(1.05); }
.card-result::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 20%, rgba(4,35,26,.95)); }
.card-result__body { position: relative; z-index: 2; padding: 22px; width: 100%; }
.card-result__score { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 4px; font-family: var(--font-display); font-size: 22px; }
.card-result__score b { font-weight: 400; font-size: 46px; color: var(--orange-500); line-height: 1; }
.card-result p { margin: 0; font-size: 14px; color: rgba(255,255,255,.75); }
.card-result .link-arrow { color: #fff; }

.card-table { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-table__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-table h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.table td:nth-child(n+3), .table th:nth-child(n+3) { text-align: right; }
.table td:nth-child(2) { display: flex; align-items: center; gap: 8px; }
.table td svg { width: 18px; height: 21px; }
.table tr.is-us { background: color-mix(in srgb, var(--orange-500) 12%, transparent); font-weight: 700; }
.table tr.is-us td:first-child { box-shadow: inset 3px 0 0 var(--orange-500); }

/* ---------- stats ---------- */
.stats { background: var(--green-700); color: #fff; padding: 48px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; color: rgba(255,255,255,.8); }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.news__card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.news__card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.news__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news__card a:hover .news__img img { transform: scale(1.06); }
.news__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news__body h3 { font-size: 20px; line-height: 1.25; margin: 0; font-weight: 800; }
.news__body p { margin: 0; color: var(--ink-2); }
.news__body time { margin-top: auto; font-size: 13px; color: var(--ink-2); }
.news__body .badge { align-self: flex-start; }
.news__card--feature { grid-row: span 2; }
.news__card--feature .news__img { aspect-ratio: 4 / 3; }
.news__card--feature h3 { font-size: clamp(24px, 2.6vw, 32px); }
.news__card:nth-child(4) { grid-column: 2 / span 2; }
.news__card:nth-child(4) a { flex-direction: row; }
.news__card:nth-child(4) .news__img { aspect-ratio: auto; width: 45%; }

/* ---------- squad ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.tabs--light { background: var(--cream); }
.tab { min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-weight: 700; font-size: 15px; transition: background-color .2s, color .2s; }
.tab.is-active { background: var(--orange-500); color: #fff; }
.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.player {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(24,163,74,.35), transparent 60%),
    linear-gradient(160deg, var(--green-800), var(--green-950));
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .3s var(--ease), border-color .3s;
}
.player:hover { transform: translateY(-6px); border-color: var(--orange-500); }
.player--staff { background: radial-gradient(120% 80% at 50% 0%, rgba(242,107,29,.3), transparent 60%), linear-gradient(160deg, #1d2a24, var(--green-950)); }
.player__num { position: absolute; top: 10px; left: 16px; font-family: var(--font-display); font-size: 64px; line-height: 1; color: rgba(255,255,255,.12); }
.player__mono { position: absolute; inset: 0; display: grid; place-items: end center; }
.player__sil { width: 82%; height: auto; fill: rgba(255,255,255,.09); }
.player__crest { position: absolute; top: 14px; right: 14px; width: 30px; height: 35px; }
.player__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(180deg, transparent, rgba(4,35,26,.95) 45%); }
.player__info small { display: block; color: var(--orange-500); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.player__info strong { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .02em; }
.player.is-hidden { display: none; }

/* ---------- gallery ---------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery__item { break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: zoom-in; border: 0; padding: 0; width: 100%; background: var(--cream); display: block; }
.gallery__item img { width: 100%; height: auto; transition: transform .6s var(--ease), filter .3s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 700; font-size: 14px; text-align: left; background: linear-gradient(180deg, transparent, rgba(4,35,26,.85)); opacity: 0; transition: opacity .3s; }
.gallery__item:hover::after, .gallery__item:focus-visible::after { opacity: 1; }
.gallery__item.is-hidden { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,20,14,.95); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 12px; }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange-500); }
.lightbox__close { top: 12px; right: 12px; font-size: 18px; }
.lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }

/* ---------- studio ---------- */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.studio__text > p:not(.eyebrow) { color: var(--ink-2); margin: 16px 0 24px; max-width: 52ch; }
.studio__form { display: grid; gap: 12px; }
.studio__form .btn { justify-self: start; margin-top: 8px; }
.studio__preview canvas { width: 100%; max-width: 460px; height: auto; display: block; margin-inline: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -24px rgba(4,35,26,.55); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field--xs { flex: 0 0 90px; }
.field-row { display: flex; gap: 12px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select {
  min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px;
  border: 1.5px solid #CFCABD; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-700) 22%, transparent); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #DC2626; }
.form { display: grid; gap: 14px; margin-top: 24px; }
.form .btn { justify-self: start; }
.form__error { color: #B91C1C; font-weight: 600; margin: 0; }

/* ---------- club ---------- */
.club__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.club__media { position: relative; padding-bottom: 18%; }
.club__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.club__media > img:first-child { width: 88%; aspect-ratio: 4 / 3; object-fit: cover; }
.club__media-2 { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 5; object-fit: cover; border: 6px solid #fff; }
.club__text > p:not(.eyebrow) { color: var(--ink-2); margin: 16px 0 24px; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pillars li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.pillars b { font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--green-700); line-height: 1; }
.pillars span { color: var(--ink-2); }

/* ---------- partners ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner { min-height: 150px; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); transition: transform .3s var(--ease), background-color .3s; }
.partner:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.partner__tier { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-500); }
.partner b { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; }
.partner--empty { border-style: dashed; background: transparent; }
.partner--empty b { color: rgba(255,255,255,.55); }
.partners__cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--green-950); }
.partners__cta p { margin: 0; max-width: 56ch; font-size: 18px; }

/* ---------- detection ---------- */
.detect { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.detect__media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.detect__form-wrap > p:not(.eyebrow):not(.form__error) { color: var(--ink-2); margin: 16px 0 0; }

/* ---------- footer ---------- */
.footer { background: var(--green-950); color: rgba(255,255,255,.8); padding: 64px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__crest { width: 64px; height: 75px; flex: none; }
.footer__brand p { margin: 0; font-family: var(--font-display); font-size: 26px; color: #fff; line-height: 1.05; }
.footer__brand span { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,.6); }
.footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--orange-500); margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer a { text-decoration: none; display: inline-block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); padding: 0; }
.socials a:hover { background: var(--orange-500); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); transition: opacity .25s, translate .25s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .match__grid { grid-template-columns: 1fr 1fr; }
  .card-next { grid-column: 1 / -1; grid-row: auto; }
  .news { grid-template-columns: 1fr 1fr; }
  .news__card--feature { grid-column: 1 / -1; grid-row: auto; }
  .news__card:nth-child(4) { grid-column: auto; }
  .news__card:nth-child(4) a { flex-direction: column; }
  .news__card:nth-child(4) .news__img { width: auto; aspect-ratio: 16 / 10; }
  .partners { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .match__grid, .news, .studio, .club__grid, .detect { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .card-next { padding: 20px; }
  .countdown { gap: 6px; }
  .pillars li { grid-template-columns: 1fr; gap: 4px; }
  .partners__cta { padding: 20px; }
  .detect__media { order: 2; }
  .detect__media img { aspect-ratio: 16 / 10; }
  .field-row { flex-wrap: wrap; }
  .field-row .field:not(.field--xs) { flex-basis: 180px; }
  .tabs { overflow-x: auto; max-width: 100%; }
  .squad { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; }
  .player__info strong { font-size: 21px; }
  .player__num { font-size: 48px; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker__track { animation: none; }
}
