:root {
  --orange: #ed6d1c;
  --orange-2: #ff8a33;
  --ink: #171717;
  --ink-2: #22201e;
  --paper: #f7f4ef;
  --white: #fff;
  --muted: #706b65;
  --line: #ded8d0;
  --green: #2d9b66;
  --container: 1240px;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0,0,0,.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; min-width: 280px; overflow-x: clip; color: var(--ink); background: var(--ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-160%); padding: 12px 18px; color: var(--white); background: var(--orange); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; inset: 0 0 auto; z-index: 100; height: 94px; border-bottom: 1px solid rgba(255,255,255,.13); color: var(--white); }
.site-header.scrolled { position: fixed; height: 78px; background: rgba(23,23,23,.95); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: header-in .24s ease both; }
@keyframes header-in { from { transform: translateY(-100%); } }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.2); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font: 900 16px/1 "Arial Black", "Segoe UI", sans-serif; letter-spacing: -.02em; }
.brand small { margin-top: 6px; color: rgba(255,255,255,.58); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 30px); font-size: 13px; font-weight: 750; }
.main-nav a { position: relative; padding: 12px 0; color: rgba(255,255,255,.78); transition: color .2s ease; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; inset: auto 0 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--white); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav .nav-cta { padding: 13px 20px; color: var(--ink); background: var(--orange); border-radius: 999px; }
.main-nav .nav-cta:hover { color: var(--ink); background: var(--orange-2); }
.menu-button { display: none; width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); }
.menu-button span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--white); transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 790px; height: min(900px, 100svh); display: grid; align-items: center; overflow: hidden; color: var(--white); background: #090909; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.93) 0%, rgba(0,0,0,.65) 47%, rgba(0,0,0,.1) 79%); }
.hero-media { position: absolute; inset: 0; background: url('/assets/img/hero-terrain-futsal.webp') center/cover no-repeat; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .55fr); gap: 8vw; align-items: end; padding-top: 120px; }
.hero-copy { align-self: center; max-width: 760px; }
.eyebrow { margin: 0 0 20px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 42px; height: 2px; background: var(--orange); }
.eyebrow.dark { color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Arial Black", Impact, "Segoe UI", sans-serif; font-weight: 900; letter-spacing: -.055em; text-transform: uppercase; line-height: .92; }
h1 { margin-bottom: 28px; font-size: clamp(62px, 8.2vw, 128px); }
h2 { margin-bottom: 24px; font-size: clamp(44px, 5.6vw, 78px); }
h1 em, h2 em { color: var(--orange); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 34px; color: rgba(255,255,255,.72); font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 13px 22px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 850; transition: background .2s, color .2s, border-color .2s; }
.button-primary { color: var(--ink); background: var(--orange); }
.button-primary:hover { background: var(--orange-2); }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.03); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #303030; }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding-bottom: 4px; border: 0; border-bottom: 2px solid var(--orange); background: none; font-weight: 850; }
.next-match { align-self: end; margin-bottom: 44px; padding: 22px; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(18,18,18,.76); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.match-label { color: var(--orange-2); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.match-date { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.12); }
.match-date strong { font-size: 12px; }
.match-date span { font: 900 30px/1 "Arial Black",sans-serif; }
.match-teams { padding: 18px 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 9px; align-items: center; font-weight: 850; text-align: center; }
.match-teams b { color: var(--orange); font-size: 12px; }
.match-place { color: rgba(255,255,255,.56); font-size: 12px; }
.next-match a { color: var(--white); font-size: 12px; font-weight: 800; }
.hero-ball { position: absolute; z-index: 3; right: 32%; bottom: -95px; width: clamp(150px, 15vw, 250px); filter: drop-shadow(0 20px 24px rgba(0,0,0,.45)); transform: rotate(-12deg); }

.stat-band { position: relative; z-index: 4; color: var(--white); background: var(--orange); }
.stat-grid { min-height: 116px; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-grid div { display: flex; align-items: center; justify-content: center; gap: 14px; border-right: 1px solid rgba(23,23,23,.16); }
.stat-grid div:last-child { border-right: 0; }
.stat-grid strong { font: 900 38px/1 "Arial Black",sans-serif; }
.stat-grid span { max-width: 100px; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; line-height: 1.3; }

.section { position: relative; padding: clamp(88px, 10vw, 150px) 0; color: var(--white); background: var(--ink); }
.section-light { color: var(--ink); background: var(--paper); }
.split-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 9vw; align-items: end; }
.intro-copy { padding-bottom: 16px; }
.intro-copy p { margin-bottom: 28px; color: var(--muted); font-size: 18px; }
.feature-grid { margin-top: 65px; display: grid; grid-template-columns: .8fr 1.5fr .8fr; gap: 18px; }
.feature-card { min-height: 420px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 28px; color: var(--white); background: var(--ink); border-radius: var(--radius); }
.feature-card h3 { margin-bottom: 8px; font: 900 28px/1 "Arial Black",sans-serif; text-transform: uppercase; }
.feature-card p { margin-bottom: 0; color: rgba(255,255,255,.65); font-size: 14px; }
.feature-card a { margin-top: 22px; color: var(--orange-2); font-weight: 800; }
.feature-number { position: absolute; top: 24px; right: 24px; color: rgba(255,255,255,.46); font: 800 13px/1 sans-serif; }
.feature-orange { color: var(--ink); background: var(--orange); }
.feature-orange p { color: rgba(23,23,23,.72); }
.feature-photo { justify-content: flex-end; }
.feature-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent 70%); }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111; }
.feature-photo div { position: relative; z-index: 1; }

.section-top { margin-bottom: 54px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-top h2 { margin-bottom: 0; }
.section-top .button { margin-bottom: 10px; }
.player-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px 22px; }
.full-squad { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px 28px; }
.player-card { min-width: 0; container-type: inline-size; }
.player-shell { min-height: 0; aspect-ratio: .62; position: relative; overflow: hidden; isolation: isolate; color: var(--white); background: linear-gradient(122deg,#f0f2f1 0%,#707774 13%,#d8dcda 26%,#4d5451 45%,#d7dbd9 64%,#676e6a 81%,#eef0ef 100%); clip-path: polygon(50% 0,57% 5%,64% 8%,71% 5%,83% 7%,94% 15%,98% 23%,98% 78%,92% 88%,50% 100%,8% 88%,2% 78%,2% 23%,6% 15%,17% 7%,29% 5%,36% 8%,43% 5%); filter: drop-shadow(0 22px 28px rgba(0,0,0,.26)); transition: transform .24s ease,filter .24s ease; }
.player-card:hover .player-shell { transform: translateY(-5px); filter: drop-shadow(0 28px 34px rgba(0,0,0,.36)); }
.player-shell::before { content: ""; position: absolute; inset: 7px; z-index: -2; clip-path: inherit; background: linear-gradient(145deg,#8c9591 0%,#444c48 24%,#a3aaa6 48%,#303735 74%,#757e79 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.42),inset 0 0 42px rgba(5,9,8,.5); }
.player-shell::after { content: ""; position: absolute; inset: 12px; z-index: 6; pointer-events: none; clip-path: inherit; border: 1px solid rgba(237,241,239,.58); background: linear-gradient(118deg,transparent 12%,rgba(255,255,255,.16) 29%,transparent 43%),radial-gradient(circle at 84% 16%,rgba(237,109,28,.2),transparent 22%); mix-blend-mode: screen; }
.player-metal { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .58; background: repeating-linear-gradient(108deg,transparent 0 8px,rgba(255,255,255,.06) 9px,transparent 10px 20px),radial-gradient(ellipse at 50% 15%,rgba(255,255,255,.38),transparent 30%); }
.player-visual { position: absolute; inset: 12px 12px 24%; overflow: hidden; clip-path: polygon(50% 0,57% 5%,64% 8%,71% 5%,84% 7%,96% 17%,100% 25%,100% 100%,0 100%,0 25%,4% 17%,16% 7%,29% 5%,36% 8%,43% 5%); background: #222a27; }
.player-photo { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center top; transform: scale(1.08); transform-origin: center top; filter: saturate(.9) contrast(1.02); }
.player-visual-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg,rgba(24,31,29,.46),transparent 25% 75%,rgba(24,31,29,.34)),linear-gradient(0deg,#3d4743 0%,rgba(47,56,52,.72) 16%,transparent 44%); }
.player-rating { position: absolute; z-index: 3; top: 15%; left: 10%; display: grid; min-width: 62px; text-align: center; text-shadow: 0 2px 8px rgba(0,0,0,.62); }
.player-rating strong { font: 500 clamp(48px,15cqi,68px)/.88 Impact,"Arial Narrow",sans-serif; letter-spacing: .01em; }
.player-rating span { margin-top: 11px; font: 500 clamp(19px,5cqi,25px)/1 Impact,"Arial Narrow",sans-serif; letter-spacing: .08em; }
.player-identity { position: absolute; z-index: 3; top: 32%; left: 11%; display: grid; justify-items: center; gap: 10px; }
.player-identity::before,.player-identity::after { content: ""; width: 48px; height: 1px; background: rgba(255,255,255,.58); }
.player-flag { width: 48px; height: 31px; border: 1px solid rgba(255,255,255,.65); background: linear-gradient(90deg,#173a8f 0 33.33%,#fff 33.33% 66.66%,#e42836 66.66%); box-shadow: 0 3px 8px rgba(0,0,0,.3); }
.player-identity img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 3px 7px rgba(0,0,0,.55)); }
.player-data { position: absolute; z-index: 4; right: 11%; bottom: 7.5%; left: 11%; padding: 23px 9% 20px; background: transparent; }
.player-data::before { content: none; }
.player-data h3 { margin-bottom: 20px; padding-bottom: 17px; border-bottom: 2px solid rgba(255,255,255,.52); overflow-wrap: anywhere; font: 500 clamp(24px,7cqi,34px)/1 Impact,"Arial Narrow",sans-serif; letter-spacing: .05em; text-align: center; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.player-stats { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 14%; }
.player-stats::after { content: ""; position: absolute; top: 2px; bottom: 2px; left: 50%; width: 1px; background: rgba(255,255,255,.48); transform: translateX(-50%); }
.player-stats span { display: grid; grid-template-columns: minmax(30px,auto) 1fr; gap: 8px; align-items: baseline; color: rgba(255,255,255,.88); font: 500 clamp(13px,3.8cqi,17px)/1 Impact,"Arial Narrow",sans-serif; letter-spacing: .05em; }
.player-stats strong { color: var(--white); font-size: clamp(27px,7cqi,36px); font-weight: 500; line-height: .9; }
.section-lead { max-width: 650px; color: var(--muted); }
.dark-top .eyebrow { color: var(--muted); }
.full-squad { row-gap: 32px; }

.registration-callout { padding-top: 20px; }
.callout-card { min-height: 510px; overflow: hidden; position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; padding: clamp(36px,6vw,80px); color: var(--white); background: var(--orange); border-radius: 28px; }
.callout-card .eyebrow { color: rgba(23,23,23,.66); }
.callout-card h2 em { color: var(--ink); }
.callout-card p { max-width: 620px; color: rgba(23,23,23,.74); font-size: 17px; }
.callout-card > img { width: 100%; max-height: 450px; object-fit: contain; filter: drop-shadow(0 25px 28px rgba(0,0,0,.28)); }
.partners-section { padding-top: 90px; }
.partners-wrap { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.partner-card { min-width: min(100%,360px); display: flex; align-items: center; gap: 20px; padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; transition: border-color .2s; }
.partner-card:hover { border-color: var(--orange); }
.partner-card img { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; }
.partner-card span { display: flex; flex: 1; justify-content: space-between; gap: 12px; font-weight: 850; }

.page-hero { min-height: 600px; position: relative; display: flex; align-items: flex-end; padding: 180px 0 90px; overflow: hidden; color: var(--white); background: #0c0c0c; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .34; background: url('/assets/img/hero-terrain-futsal.webp') center/cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.28)),linear-gradient(0deg,rgba(0,0,0,.7),transparent); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 950px; margin-bottom: 22px; }
.page-hero p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.72); font-size: 18px; }
.club-hero::before { background-image: url('/assets/img/galerie-equipe-03.webp'); background-position: center 36%; }
.gallery-hero::before { background-image: url('/assets/img/galerie-equipe-01.webp'); background-position: center; }
.registration-hero::before { background-image: url('/assets/img/action-futsal-igny.webp'); }
.contact-hero::before { background-image: url('/assets/img/hero-terrain-futsal.webp'); }

.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; align-items: center; }
.story-media { position: relative; padding: 16px; background: var(--ink); border-radius: var(--radius); }
.story-media img { width: 100%; max-height: 680px; object-fit: contain; border-radius: 12px; }
.story-media span { position: absolute; right: -25px; bottom: 45px; padding: 12px 19px; color: var(--ink); background: var(--orange); font-weight: 900; letter-spacing: .13em; transform: rotate(-90deg); }
.story-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.identity-list { margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.identity-list div { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.identity-list dt { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.identity-list dd { margin: 5px 0 0; font-weight: 800; }
.values-section { overflow: hidden; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.value-grid article { min-height: 270px; padding: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); }
.value-grid strong { color: var(--orange); font: 900 50px/1 "Arial Black",sans-serif; }
.value-grid h3 { margin: 55px 0 12px; font: 900 28px/1 "Arial Black",sans-serif; text-transform: uppercase; }
.value-grid p { color: rgba(255,255,255,.62); }
.gear-decoration { position: absolute; opacity: .12; pointer-events: none; }
.gear-decoration.glove { top: 15px; right: -90px; width: 420px; transform: rotate(12deg); }

.competitions-section { color: var(--ink); background: var(--paper); }
.competition-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.competition-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 18px 50px rgba(0,0,0,.07); }
.competition-poster { min-height: 320px; display: grid; place-items: center; overflow: hidden; background: #171717; }
.competition-poster img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.poster-placeholder img { width: 58%; height: auto; opacity: .85; }
.competition-content { padding: 24px; }
.competition-status { display: inline-flex; margin-bottom: 14px; padding: 7px 10px; border-radius: 999px; color: var(--ink); background: var(--orange); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.competition-card h3 { margin: 0 0 12px; font: 900 clamp(22px,2.3vw,34px)/1 "Arial Black",sans-serif; letter-spacing: -.045em; text-transform: uppercase; overflow-wrap: anywhere; }
.competition-card p { margin: 7px 0 0; color: var(--muted); }
.competition-date, .competition-place { font-size: 12px; font-weight: 800; text-transform: uppercase; }

.bracket-section { overflow: hidden; }
.bracket-heading { margin-bottom: 56px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.live-pill { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }
.live-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(237,109,28,.14); }
.bracket { display: grid; gap: 46px; align-items: stretch; }
.bracket.rounds-1 { grid-template-columns: 1fr; }
.bracket.rounds-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.bracket.rounds-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.bracket.rounds-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bracket.rounds-5 { grid-template-columns: repeat(5,minmax(0,1fr)); }
.round { min-width: 0; display: flex; flex-direction: column; }
.round > h3 { margin: 0 0 20px; color: var(--orange-2); font-size: 11px; text-align: center; text-transform: uppercase; letter-spacing: .15em; }
.round-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 22px; }
.bracket-match { position: relative; padding: 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: #201f1e; box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.round:not(:last-child) .bracket-match::after { content: ""; position: absolute; top: 50%; left: 100%; width: 47px; height: 1px; background: rgba(255,255,255,.2); }
.match-meta { margin-bottom: 7px; display: flex; justify-content: space-between; color: rgba(255,255,255,.47); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.bracket-team { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 9px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.bracket-team + .bracket-team { margin-top: 5px; }
.bracket-team:nth-of-type(2) { background: #2d2b29; }
.bracket-team:nth-of-type(3) { background: #282725; }
.bracket-team span { overflow-wrap: anywhere; }
.bracket-team strong { color: var(--orange-2); }
.bracket-team.winner { color: var(--ink); background: var(--orange); }
.bracket-team.winner strong { color: var(--ink); }
.poster-link { display: block; margin-top: 9px; color: var(--orange-2); font-size: 10px; font-weight: 800; text-align: right; }
.tournament-info { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; }
.info-cards { display: grid; gap: 12px; }
.info-cards article { display: grid; grid-template-columns: 42px 150px 1fr; gap: 12px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-cards strong { color: var(--orange); font-size: 13px; }
.info-cards h3 { margin: 0; font-size: 18px; text-transform: uppercase; }
.info-cards p { margin: 0; color: var(--muted); }

.gallery-intro { margin-bottom: 55px; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; }
.gallery-intro p { color: var(--muted); }
.masonry-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gallery-card { min-width: 0; min-height: 390px; position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 18px; color: var(--white); background: var(--ink); }
.gallery-card:nth-child(4n+1) { grid-row: span 2; min-height: 798px; }
.gallery-card img { width: 100%; height: 100%; min-height: inherit; object-fit: contain; transition: opacity .25s; }
.gallery-card:hover img { opacity: .82; }
.gallery-index { position: absolute; z-index: 2; top: 14px; right: 14px; padding: 5px 8px; border-radius: 999px; background: rgba(0,0,0,.65); font-size: 9px; font-weight: 900; }
.gallery-caption { position: absolute; z-index: 2; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 50px 18px 18px; background: linear-gradient(0deg,rgba(0,0,0,.86),transparent); text-align: left; }
.gallery-caption strong { font-size: 14px; text-transform: uppercase; }
.gallery-caption small { color: var(--orange-2); font-size: 9px; text-transform: uppercase; }
.lightbox { width: min(96vw,1100px); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: #080808; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(0,0,0,.86); backdrop-filter: blur(8px); }
.lightbox img { width: 100%; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--white); background: rgba(0,0,0,.74); font-size: 28px; }

.registration-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 7vw; align-items: start; }
.registration-aside { position: sticky; top: 110px; }
.registration-aside ol { margin: 38px 0; padding: 0; list-style: none; }
.registration-aside li { display: flex; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.registration-aside li > strong { color: var(--orange); }
.registration-aside li span { display: grid; color: var(--muted); font-size: 13px; }
.registration-aside li b { color: var(--ink); font-size: 15px; }
.pdf-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 15px; align-items: center; padding: 18px; color: var(--white); background: var(--ink); border-radius: 14px; }
.pdf-card > span { display: grid; place-items: center; aspect-ratio: 1; color: var(--ink); background: var(--orange); border-radius: 9px; font-size: 11px; font-weight: 900; }
.pdf-card div { display: grid; }
.pdf-card small { color: rgba(255,255,255,.57); }
.form-card { padding: clamp(26px,5vw,54px); background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 60px rgba(20,15,10,.08); }
.form-section { margin: 38px 0 22px; display: flex; align-items: center; gap: 14px; }
.form-section:first-of-type { margin-top: 0; }
.form-section span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); background: var(--orange); border-radius: 50%; font-size: 11px; font-weight: 900; }
.form-section h2 { margin: 0; font: 900 21px/1 "Arial Black",sans-serif; letter-spacing: -.03em; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-size: 12px; font-weight: 850; }
label small { color: var(--muted); font-weight: 500; }
.field-wide { grid-column: 1/-1; }
input, select, textarea { min-width: 0; width: 100%; padding: 13px 14px; border: 1px solid #cfc9c1; border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(237,109,28,.13); }
textarea { resize: vertical; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-box { position: relative; display: flex; min-height: 150px; flex-direction: column; justify-content: center; padding: 20px; border: 1px dashed #bbb3aa; border-radius: 14px; background: var(--paper); }
.upload-box > span { font-size: 14px; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box b { width: fit-content; margin-top: 15px; color: var(--orange); font-size: 11px; }
.image-rights { margin: 34px 0 0; padding: 25px; border: 1px solid var(--line); border-radius: 14px; }
.image-rights legend { padding: 0 8px; font-weight: 900; }
.image-rights legend small { color: var(--orange); }
.image-rights > p { color: var(--muted); font-size: 13px; }
.image-rights > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.image-rights label { position: relative; }
.image-rights input { position: absolute; opacity: 0; }
.image-rights label span { display: grid; padding: 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.image-rights input:checked + span { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); color: var(--ink); background: #fff8f2; }
.consent { margin: 25px 0; display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--muted); font-weight: 500; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
.consent a { text-decoration: underline; }
.submit-button { width: 100%; border: 0; }
.submit-button[disabled] { opacity: .65; cursor: wait; }
.alert { margin-bottom: 24px; padding: 15px 17px; border-radius: 10px; font-size: 13px; }
.alert strong { display: block; }
.alert.success { color: #145b3b; background: #e4f6ec; border: 1px solid #a7dec0; }
.alert.error { color: #8b2d28; background: #fff0ee; border: 1px solid #edbab5; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 7vw; }
.contact-info address { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; font-style: normal; }
.contact-info address div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-info address span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.map-frame { margin-top: 30px; overflow: hidden; border-radius: 18px; background: #ddd; }
.map-frame iframe { width: 100%; height: 340px; display: block; border: 0; filter: grayscale(1) contrast(1.1); }

.legal-page { padding-top: 160px; }
.prose { max-width: 850px; }
.prose h1 { font-size: clamp(48px,8vw,86px); }
.prose h2 { margin: 45px 0 12px; font-size: 25px; letter-spacing: -.03em; }
.prose p { color: var(--muted); }
.prose a { color: var(--orange); text-decoration: underline; }

.site-footer { padding: 72px 0 25px; color: var(--white); background: #0e0e0e; border-top: 1px solid rgba(255,255,255,.1); }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr 1fr; gap: 50px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-grid > div:first-child p { max-width: 330px; margin-top: 20px; color: rgba(255,255,255,.55); }
.footer-grid h2 { margin: 5px 0 18px; font: 900 13px/1 sans-serif; letter-spacing: .1em; }
.footer-grid > div:not(:first-child) a, .footer-grid address { display: block; margin-bottom: 10px; color: rgba(255,255,255,.58); font-size: 13px; font-style: normal; }
.footer-grid a:hover { color: var(--orange-2); }
.footer-bottom { margin-top: 55px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: 11px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .main-nav { gap: 13px; }
  .hero-inner { grid-template-columns: 1fr .48fr; gap: 30px; }
  .player-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: 1/-1; min-height: 280px; }
  .bracket { gap: 24px; }
  .round:not(:last-child) .bracket-match::after { width: 25px; }
  .registration-layout { grid-template-columns: .8fr 1.2fr; gap: 35px; }
}

@media (max-width: 850px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .site-header, .site-header.scrolled { height: 74px; }
  .brand img { width: 46px; height: 46px; }
  .brand small { display: none; }
  .menu-button { display: block; }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 74px 0 auto; max-height: 0; overflow: hidden; display: grid; padding: 0 20px; gap: 0; background: rgba(23,23,23,.98); visibility: hidden; opacity: 0; transition: max-height .25s, opacity .2s, visibility .2s; }
  .main-nav.open { max-height: calc(100vh - 74px); padding-top: 12px; padding-bottom: 22px; visibility: visible; opacity: 1; }
  .main-nav a { min-height: 50px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.09); }
  .main-nav .nav-cta { margin-top: 12px; justify-content: center; border: 0; }
  .hero { min-height: 760px; height: auto; padding: 150px 0 65px; }
  .hero::after { background: linear-gradient(90deg,rgba(0,0,0,.91),rgba(0,0,0,.54)); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 0; }
  .hero-copy { padding-top: 0; }
  .next-match { max-width: 480px; margin: 0; }
  .hero-ball { right: -55px; bottom: 30px; opacity: .8; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid div { min-height: 92px; border-bottom: 1px solid rgba(23,23,23,.16); }
  .split-intro, .story-grid, .tournament-info, .gallery-intro, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .section-top, .partners-wrap, .bracket-heading { align-items: flex-start; flex-direction: column; }
  .callout-card { grid-template-columns: 1fr; }
  .callout-card > img { max-height: 320px; margin-top: 30px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article { min-height: 210px; }
  .value-grid h3 { margin-top: 28px; }
  .bracket { grid-template-columns: 1fr !important; gap: 46px; }
  .round > h3 { position: sticky; top: 84px; z-index: 4; width: fit-content; margin-inline: auto; padding: 8px 14px; border-radius: 999px; color: var(--ink); background: var(--orange); }
  .round-matches { gap: 14px; }
  .round:not(:last-child) .bracket-match::after { top: 100%; left: 50%; width: 1px; height: 47px; }
  .info-cards article { grid-template-columns: 34px 120px 1fr; }
  .masonry-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-card:nth-child(4n+1) { grid-row: span 1; min-height: 420px; }
  .registration-layout { grid-template-columns: 1fr; }
  .registration-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .competition-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(50px,15vw,72px); }
  h2 { font-size: clamp(39px,12vw,58px); }
  .hero-copy > p:not(.eyebrow), .page-hero p:not(.eyebrow) { font-size: 16px; }
  .hero { min-height: 730px; padding-top: 122px; }
  .button-row .button { width: 100%; }
  .hero-ball { display: none; }
  .match-teams { font-size: 12px; }
  .stat-grid strong { font-size: 28px; }
  .stat-grid span { font-size: 9px; }
  .section { padding: 78px 0; }
  .feature-grid, .player-grid, .masonry-gallery, .competition-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:last-child { min-height: 340px; grid-column: auto; }
  .player-shell { min-height: 540px; }
  .full-squad { gap: 24px; }
  .callout-card { padding: 32px 20px; border-radius: 20px; }
  .partner-card { min-width: 100%; }
  .page-hero { min-height: 520px; padding: 145px 0 65px; }
  .identity-list { grid-template-columns: 1fr; }
  .story-media span { right: -15px; }
  .info-cards article { grid-template-columns: 35px 1fr; }
  .info-cards p { grid-column: 2; }
  .gallery-card, .gallery-card:nth-child(4n+1) { min-height: 440px; }
  .field-grid, .upload-grid, .image-rights > div { grid-template-columns: 1fr; }
  .form-card { padding: 24px 17px; border-radius: 18px; }
  .contact-info address { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; }
}

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