/* =========================================================================
   Women Open Cup UAE
   DOBA's information architecture and craft — a fluid type scale, one
   vertical rhythm, a diagonal ribbon motif and scroll-reveal that degrades to
   nothing — rebuilt in the competition crest's own palette: crimson-magenta,
   gold and a near-black shield. Photography comes from the client's booklet.
   ========================================================================= */

:root {
  /* Ink stack: three steps only, so alternating bands stay legible. */
  --ink: #0a0710;
  --ink-2: #120c18;
  --ink-3: #1b1224;

  /* Sampled off the crest itself — see scripts/assets.py. */
  --pink: #c9053c;
  --pink-hi: #ee1a5c;
  --gold: #d8972f;
  --gold-hi: #f3bc56;

  --paper: #f6f1f5;
  --muted: #a99daa;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);

  --shell: 1180px;
  --header-h: 76px;

  /* Fluid scale — one ratio, no ad-hoc font sizes below. */
  --fs-display: clamp(3rem, 1.2rem + 7vw, 6.5rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem);
  --fs-h2: clamp(1.6rem, 1.1rem + 2vw, 2.55rem);
  --fs-h3: clamp(1.1rem, 0.98rem + 0.55vw, 1.35rem);
  --fs-h4: 1.02rem;
  --fs-lede: clamp(0.99rem, 0.95rem + 0.2vw, 1.08rem);
  --fs-eyebrow: 0.72rem;

  --space-section: clamp(3.5rem, 1.8rem + 6.5vw, 7rem);
  --radius: 16px;

  --display: 'Anton', 'Barlow', system-ui, sans-serif;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1rem; }
::selection { background: var(--pink); color: #fff; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; inset: 10px auto auto 10px; z-index: 100; width: auto; height: auto;
  clip: auto; padding: 0.7rem 1.1rem; background: var(--pink); color: #fff; border-radius: 8px;
}

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell.narrow { max-width: 760px; }
.section { padding-block: var(--space-section); position: relative; }
.section--alt { background: var(--ink-2); }
.page { padding-top: calc(var(--space-section) * 0.6); }

/* ---------------------------------------------------------- the backdrop */

/* A drawn court arc and two ribbons — the motif the whole page is built on.
   Fixed, so the page scrolls over it rather than dragging it along. */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.backdrop .ribbon {
  position: absolute; top: -30vh; height: 160vh; width: clamp(60px, 9vw, 150px);
  transform: rotate(18deg); opacity: 0.16; filter: blur(1px);
}
.ribbon--pink { right: 4vw; background: linear-gradient(180deg, transparent, var(--pink) 30%, var(--pink) 70%, transparent); }
.ribbon--gold { right: 15vw; width: clamp(20px, 2.4vw, 42px); background: linear-gradient(180deg, transparent, var(--gold) 35%, transparent); opacity: 0.2; }

.backdrop .arc {
  position: absolute; left: 50%; top: -42vw; width: 84vw; height: 84vw;
  transform: translateX(-50%); border: 1px solid rgba(216, 151, 47, 0.16); border-radius: 50%;
}

.backdrop .glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow--pink { width: 46vw; height: 46vw; left: -14vw; top: 4vh; background: rgba(201, 5, 60, 0.2); }
.glow--gold { width: 34vw; height: 34vw; right: -10vw; bottom: 6vh; background: rgba(216, 151, 47, 0.12); }

/* ------------------------------------------------------------ typography */

.display {
  font-family: var(--display); font-weight: 400; font-size: var(--fs-display);
  line-height: 0.92; letter-spacing: 0.005em; text-transform: uppercase;
  margin: 0 0 1.4rem; display: grid;
}
.display__accent { color: var(--pink-hi); }
.display__tail { color: var(--gold-hi); }

.h1, .h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  line-height: 1.04; letter-spacing: 0.005em; margin: 0 0 1rem; text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h2--center, .h1--center { text-align: center; margin-inline: auto; max-width: 22ch; }

.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; margin: 0 0 0.5rem; }
.h4 { font-size: var(--fs-h4); font-weight: 700; margin: 0 0 0.25rem; }

.eyebrow {
  margin: 0 0 0.8rem; font-size: var(--fs-eyebrow); font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-hi);
}
.eyebrow--center { text-align: center; }

.lede { margin: 0 0 1.1rem; color: #cdc2cc; font-size: var(--fs-lede); max-width: 62ch; }
.lede--center { margin-inline: auto; text-align: center; margin-bottom: 2.6rem; }
.lede--hero { max-width: 48ch; }
.body { color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- icons */

.icon { width: 1.35em; height: 1.35em; flex: none; }

/* --------------------------------------------------------------- button */

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.72rem 1.25rem; border: 0; border-radius: 999px;
  background: var(--pink); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--pink-hi); transform: translateY(-1px); }
.btn--lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* --------------------------------------------------------------- header */

.head {
  position: sticky; top: 0; z-index: 20; height: var(--header-h);
  background: rgba(10, 7, 16, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: auto; }
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: 1.02rem; letter-spacing: 0.02em;
}
.brand__text em { font-style: normal; font-size: 0.68rem; letter-spacing: 0.3em; color: var(--gold-hi); }

.nav { display: flex; gap: 1.35rem; }
.nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: #d6ccd5; }
.nav a:hover { color: #fff; }

@media (max-width: 900px) { .nav { display: none; } }

/* ----------------------------------------------------------------- hero */

.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,7,16,0.55), rgba(10,7,16,0.88) 55%, var(--ink));
}
.hero__inner {
  position: relative; z-index: 1; display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
}
.hero__crest { width: min(100%, 420px); margin-inline: auto; filter: drop-shadow(0 24px 60px rgba(0,0,0,0.55)); }
.hero__cta { margin: 1.6rem 0 0.6rem; }
.hero__note { margin: 0; color: var(--gold-hi); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.04em; }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__crest { width: min(72%, 300px); order: -1; }
}

/* -------------------------------------------------------------- figures */

.figures {
  position: relative; z-index: 1; list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.figures li { background: var(--ink-2); padding: 1.4rem 1.2rem; text-align: center; }
.figures strong {
  display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem);
  line-height: 1; color: var(--gold-hi);
}
.figures span { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.figures--inline { margin-top: 2rem; background: none; border: 0; gap: 0.8rem; }
.figures--inline li { background: var(--ink-3); border-radius: 12px; }

/* ---------------------------------------------------------------- split */

.split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev figure { order: 2; }
}

.frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); position: relative; }
.frame img { width: 100%; }
.frame::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
}
.frame--wide { margin-top: 3rem; max-height: 480px; }
.frame--wide img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; }

/* ---------------------------------------------------------------- tiles */

.tiles {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.tile {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.3rem; display: flex; flex-direction: column; gap: 0.15rem;
}
.tile__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(201, 5, 60, 0.16); color: var(--pink-hi); margin-bottom: 0.8rem;
}
.tile__label { margin: 0; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.tile__value { margin: 0.1rem 0 0.4rem; font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; }
.tile__note { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

/* ---------------------------------------------------------------- cards */

.cards {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.card {
  position: relative; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.4rem 1.4rem;
}
.card__num {
  position: absolute; top: 1rem; right: 1.2rem; font-family: var(--display);
  font-size: 1.9rem; color: rgba(255, 255, 255, 0.07); line-height: 1;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------- format */

.roundone {
  margin: 0 0 2rem; padding: 1.1rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(201,5,60,0.18), rgba(216,151,47,0.1));
  border: 1px solid var(--line-2); color: #e6dde6; font-size: 0.97rem;
}
.roundone__tag {
  display: inline-block; margin-right: 0.8rem; padding: 0.15rem 0.7rem; border-radius: 999px;
  background: var(--pink); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; vertical-align: 2px;
}

.series { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.serie { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.serie__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.serie__crest { width: 84px; height: auto; flex: none; }
.serie__note { margin: 0; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hi); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.steps li { display: flex; gap: 0.8rem; font-size: 0.95rem; color: var(--muted); }
.steps__n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(216, 151, 47, 0.16); color: var(--gold-hi); font-size: 0.8rem; font-weight: 700;
}

/* ---------------------------------------------------------------- dates */

.dates {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.date {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.3rem; border-top: 3px solid var(--pink);
}
.date__day { display: block; font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--gold-hi); }
.date__month { display: block; margin-bottom: 0.9rem; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.date p { margin: 0; font-size: 0.93rem; color: var(--muted); }

.callout {
  margin: 2rem 0 0; display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
  background: rgba(201, 5, 60, 0.12); border: 1px solid rgba(201, 5, 60, 0.35);
  font-size: 0.95rem; color: #eddde5;
}
.callout .icon { color: var(--pink-hi); margin-top: 0.15rem; }

/* --------------------------------------------------------------- groups */

.groups { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.groups--two { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.group { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem; }
.groups--two .group { background: var(--ink-2); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { display: flex; gap: 0.7rem; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
.ticks .icon { color: var(--pink-hi); margin-top: 0.2rem; width: 1.1em; height: 1.1em; }
.ticks--plain .icon { color: var(--gold-hi); }

.points {
  list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.points li { background: var(--ink-3); padding: 1.2rem; text-align: center; }
.points strong { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--pink-hi); }
.points span { font-size: 0.85rem; color: var(--muted); }

/* ------------------------------------------------------------------ fee */

.price { text-align: center; margin: 0 0 2.6rem; }
.price strong {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 1.5rem + 4.5vw, 5rem); line-height: 1;
  background: linear-gradient(120deg, var(--gold-hi), var(--pink-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price span { display: block; margin-top: 0.4rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }

.includes {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  /* 320px against the 1180px shell gives three columns, so the nine tiles
     land as a 3x3 block rather than 4 + 4 + a lone one. */
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.includes li {
  display: flex; gap: 0.85rem; padding: 1.15rem 1.2rem; border-radius: 12px;
  background: var(--ink-3); border: 1px solid var(--line);
}
.includes .icon { color: var(--gold-hi); margin-top: 0.15rem; }
.includes p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.mid-cta { margin: 3rem 0 0; text-align: center; display: grid; gap: 0.8rem; justify-items: center; }
.mid-cta--left { text-align: left; justify-items: start; margin-top: 1.5rem; }
.mid-cta__note { font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------------- awards */

.awards { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.awards li { display: flex; gap: 0.9rem; }
.awards__icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(216, 151, 47, 0.16); color: var(--gold-hi);
}
.awards p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* -------------------------------------------------------------- gallery */

.gallery {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.gallery li { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-3); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery li:hover img { transform: scale(1.05); }

.teamwall {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.teamwall li { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.teamwall img { width: 100%; aspect-ratio: 624 / 392; object-fit: cover; }

/* ---------------------------------------------------------------- stats */

.chips { list-style: none; margin: 0 0 2.2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.chips li {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--ink-3);
  font-size: 0.88rem; color: #ded3dc;
}
.chips .icon { width: 1.05em; height: 1.05em; color: var(--gold-hi); }

.shots { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.shots li { background: var(--ink-3); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; }
.shots p { margin: 0; padding: 0.8rem 1rem; background: var(--ink-3); font-size: 0.86rem; color: var(--muted); }

/* ------------------------------------------------------------- partners */

.partners { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.partner { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.3rem; text-align: center; }
/* Several of these marks are themselves mostly white, so they sit on a white
   plate rather than being keyed onto the dark ground. */
.partner__plate {
  display: grid; place-items: center; height: 96px; margin-bottom: 1rem;
  background: #fff; border-radius: 12px; padding: 0.9rem;
}
/* An absolute max-height, not 100%: a percentage height on a centred grid
   item does not resolve against the plate here, so the logo kept its own
   aspect height and spilled over the role line below. 96px - 2 x 0.9rem. */
.partner__plate img { max-width: 100%; max-height: 67px; width: auto; height: auto; object-fit: contain; }
.partner__role { margin: 0; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi); }
.partner__body { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--muted); }

/* -------------------------------------------------------------- contact */

.contact { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

.vcard {
  background: linear-gradient(150deg, var(--ink-3), rgba(201, 5, 60, 0.18));
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 2rem 1.8rem;
}
.vcard__name { margin: 0; font-family: var(--display); font-size: 1.7rem; text-transform: uppercase; }
.vcard__role { margin: 0 0 1.3rem; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-hi); }
.vcard__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.vcard__list li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; }
.vcard__list a { text-decoration: none; }
.vcard__list a:hover { text-decoration: underline; }
.vcard__list .icon { color: var(--pink-hi); }
.vcard__quote { margin: 1.5rem 0 0; font-style: italic; color: var(--muted); font-size: 0.92rem; }

/* ------------------------------------------------------- register pages */

.facts { list-style: none; margin: 0 0 2.4rem; padding: 0; display: grid; gap: 0.7rem; }
.facts li { display: flex; align-items: center; gap: 0.8rem; font-size: 0.96rem; color: #ddd2dc; }
.facts .icon { color: var(--gold-hi); }

.reg { display: grid; gap: 2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.step { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.step__h { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 0.7rem; }
.step__n {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: #fff; font-size: 0.9rem; font-weight: 700;
}
.step__note { margin: 0 0 1.3rem; font-size: 0.92rem; color: var(--muted); }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: #ded3dc; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: 10px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--paper);
}
.field input::placeholder { color: #6f6472; }
.field.has-error input, .field.has-error select { border-color: var(--pink-hi); background: rgba(201, 5, 60, 0.12); }
.field .hint { margin: 0; font-size: 0.8rem; color: var(--muted); }
.field .err { margin: 0; font-size: 0.82rem; color: #ff789f; font-weight: 500; }

.field--check label { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 400; font-size: 0.93rem; line-height: 1.6; color: #ded3dc; }
.field--check input { width: 20px; height: 20px; flex: none; margin-top: 0.2rem; accent-color: var(--pink); }

.banner { padding: 0.85rem 1.1rem; border-radius: 10px; font-size: 0.93rem; }
.banner--err { background: rgba(201, 5, 60, 0.18); border: 1px solid rgba(238, 26, 92, 0.5); color: #ffc9d9; }

/* --------------------------------------------------------------- roster */

.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; counter-reset: none; }
.roster__row {
  display: grid; gap: 0.5rem; align-items: center;
  grid-template-columns: 30px minmax(0, 1fr) 84px;
}
.roster__n { font-size: 0.82rem; color: var(--muted); text-align: right; }
.roster__row input {
  font: inherit; width: 100%; padding: 0.6rem 0.75rem; border-radius: 9px;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.3); color: var(--paper);
}
.roster__jersey input { text-align: center; }
.roster__row.has-error input { border-color: var(--pink-hi); background: rgba(201, 5, 60, 0.12); }
.roster__err { grid-column: 2 / -1; margin: 0; font-size: 0.8rem; color: #ff789f; }
.roster__count { margin: 1rem 0 0; font-size: 0.88rem; color: var(--muted); }
.roster__count [data-count] { color: var(--gold-hi); font-weight: 700; }

.fine { margin: 1rem 0 0; font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------- confirmation */

.ref { color: var(--gold-hi); letter-spacing: 0.08em; }
.receipt { margin: 2rem 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.receipt .h3 { margin-top: 1.6rem; }
.receipt .h3:first-child { margin-top: 0; }

.dl { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: 0.5rem 1rem; margin: 0; font-size: 0.94rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.squad { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.squad li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.94rem; }
.squad__no {
  flex: none; min-width: 34px; text-align: center; padding: 0.15rem 0.4rem; border-radius: 7px;
  background: var(--pink); color: #fff; font-weight: 700; font-size: 0.85rem;
}

/* --------------------------------------------------------------- footer */

.foot { position: relative; z-index: 1; background: #06040a; border-top: 1px solid var(--line); padding-top: 3rem; margin-top: auto; }
.foot__inner { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-bottom: 2.5rem; }
.foot__brand img { width: 96px; }
.foot__tag { margin: 0.9rem 0 0; font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-hi); }
.foot__h { margin: 0 0 0.9rem; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.foot__col p { margin: 0 0 0.5rem; font-size: 0.94rem; }
.foot__col a { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.foot__col a:hover { text-decoration: underline; }
.foot__socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.foot__socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: #d6ccd5;
}
.foot__socials a:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.foot__partners { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.foot__partners img { height: 42px; width: auto; background: #fff; border-radius: 8px; padding: 5px 8px; }

.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  border-top: 1px solid var(--line); padding-block: 1.2rem; font-size: 0.82rem; color: var(--muted);
}
.foot__legal p { margin: 0; }
.foot__legal a { color: var(--muted); }

/* --------------------------------------------------------- scroll reveal */

/* Applied by site.js only when IntersectionObserver exists, so with JS off
   everything is simply visible. site.js also carries a 3s failsafe — content
   that never appears is the worst failure mode of the lot. */
.js [data-reveal] { opacity: 0; transform: translateY(20px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .gallery li:hover img { transform: none; }
}

@media (max-width: 560px) {
  .dl { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .dl dd { margin-bottom: 0.6rem; }
  .roster__row { grid-template-columns: 24px minmax(0, 1fr) 70px; }
}
