@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/BarlowCondensed-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0c2729;
  --green: #104543;
  --muted: #4d615c;
  --paper: #f6f5ee;
  --line: #d1d6cc;
  --mint: #bff0cf;
  --orange: #ff9657;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: clamp(1.25rem, 5.5vw, 5.5rem);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol, ul, fieldset, legend { margin: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(calc(100% - 2 * var(--gutter)), 74rem); margin-inline: auto; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 5; padding: .75rem; background: white; }
.skip-link:not(:focus) { transform: translateY(-160%); }
.wordmark, h1, h2, .league-inner li, .ticket-head h3, .payout strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
}

.masthead, .footer { color: var(--paper); background: var(--ink); }
.masthead { border-bottom: 1px solid #ffffff26; }
.header-inner, .footer-inner, nav, .wordmark { display: flex; align-items: center; }
.header-inner, .footer-inner { justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.75rem; }
.wordmark { gap: .55rem; font-size: 2.2rem; line-height: 1; text-decoration: none; }
.ball-mark {
  width: .8em;
  height: .8em;
  border-radius: 50%;
  background: url("/assets/hoopami.png") center / 152%;
}
nav { gap: clamp(.875rem, 3vw, 2.5rem); }
nav a, .footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
nav a:hover, .footer a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: .3em; }

.hero { isolation: isolate; position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 68%; }
.hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 60% 47%; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink), rgb(12 39 41 / 78%) 13%, transparent 49%);
}
.hero-inner { position: relative; padding-block: clamp(3.3rem, 5.8vw, 6rem) clamp(3rem, 5.3vw, 5.3rem); }
.eyebrow, .league-inner > p, .ticket-caption {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.eyebrow { display: flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 1.9rem; height: 2px; background: currentColor; }
.hero .eyebrow { color: var(--mint); }
h1 {
  width: fit-content;
  margin-top: 1.4rem;
  font-size: clamp(5.25rem, 9.25vw, 8.75rem);
  line-height: .84;
  text-transform: uppercase;
  letter-spacing: -.035em;
}
h1 em { display: block; color: var(--orange); }
.intro {
  max-width: min(26rem, 41%);
  margin-block: 1.65rem;
  color: #e1e8df;
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  padding: .8rem 1.5rem;
  border-radius: .75rem;
  background: var(--orange);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.cta:hover { background: #ffad7d; }
.cta:focus-visible { outline-color: white; }
.release { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; color: #d1ddd4; font-size: .875rem; }
.phone-icon { position: relative; flex: none; width: .68rem; height: 1.03rem; border: 1.5px solid; border-radius: .18rem; }
.phone-icon::after { content: ""; position: absolute; inset: auto 24% 1px; height: 1px; background: currentColor; }

.league-band { background: var(--mint); }
.league-inner { display: flex; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: 1.05rem; }
.league-inner > p { color: var(--green); }
.league-inner ul { display: flex; flex: 1; justify-content: space-around; align-items: center; list-style: none; }
.league-inner li { position: relative; text-transform: uppercase; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.15; }
.league-inner li + li::before {
  content: "";
  position: absolute;
  left: clamp(-5.5rem, -5.5vw, -2rem);
  top: 14%;
  height: 72%;
  width: 1px;
  background: #79aa8b;
  transform: skew(-18deg);
}

.play-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  padding-block: clamp(3.5rem, 7.2vw, 7rem);
}
#le-jeu, #pronostic { scroll-margin-top: 1.25rem; }
h2 { margin-bottom: 1.6rem; font-size: clamp(3rem, 4.9vw, 4.8rem); line-height: .98; letter-spacing: -.025em; }
.steps { list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 1.1rem 0 1.1rem 2.85rem; border-top: 1px solid var(--line); counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 1.95rem;
  height: 1.95rem;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--mint);
  font: italic 700 1.3rem/1 var(--display);
}
.steps h3 { font-size: 1.125rem; line-height: 1.35; }
.steps p { max-width: 37ch; margin-top: .22rem; color: var(--muted); }

.ticket {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 .65rem 1.75rem -.85rem #0c27292b;
}
.ticket-head { position: relative; isolation: isolate; overflow: hidden; padding: 1.35rem 1.6rem; color: white; background: var(--ink); }
.ticket-caption { color: var(--mint); }
.ticket-head h3 { margin-top: .4rem; font-size: clamp(2.25rem, 3.2vw, 3.1rem); line-height: 1; }
.ticket-head h3 span { margin-inline: .15em; color: var(--mint); font: 600 .9375rem/1 system-ui, sans-serif; vertical-align: middle; }
.court-lines, .court-lines::before, .court-lines::after { position: absolute; z-index: -1; border: 1.5px solid #ffffff2e; }
.court-lines { top: 55%; right: -2.7rem; width: 11rem; height: 11rem; border-radius: 50%; transform: translateY(-50%) rotate(-18deg); }
.court-lines::before { content: ""; inset: 30%; border-radius: 50%; }
.court-lines::after { content: ""; top: 30%; left: 50%; width: 70%; height: 40%; }
.ticket-body { display: grid; gap: 1.2rem; padding: 1.5rem; }
.fallback { padding: 1.5rem; }
fieldset { min-width: 0; border: 0; }
legend { margin-bottom: .5rem; font-weight: 700; }
.team-options, .stakes { display: flex; gap: .6rem; }
.team-options label { flex: 1; }
.ticket label { position: relative; cursor: pointer; }
.ticket input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ticket input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.choice, .stakes label > span { border: 1px solid #a8b7ae; }
.choice { position: relative; display: grid; padding: .7rem .85rem; border-radius: .7rem; }
.choice::after {
  content: "";
  position: absolute;
  right: .75rem;
  top: .85rem;
  width: .85rem;
  height: .85rem;
  border: 1px solid #748880;
  border-radius: 50%;
}
.choice strong { padding-right: 1.1rem; }
.odds { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.team-options input:checked + .choice { background: #edf8ef; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.team-options input:checked + .choice::after { background: var(--green); border: 3px solid white; outline: 1px solid var(--green); }
.stakes label > span { display: grid; place-items: center; min-width: 3.1rem; min-height: 2.75rem; border-radius: 2rem; font-weight: 650; }
.stakes input:checked + span { background: var(--green); color: white; border-color: var(--green); }
.ticket label:hover > span { border-color: var(--green); }
.payout { background: var(--mint); padding: 1rem 1.1rem; border-radius: .75rem; }
.payout output { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .15rem .75rem; font-weight: 650; }
.payout strong { font-size: 2.2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.fine-print { color: var(--green); font-size: .8125rem; }
.footer-inner { min-height: 5.25rem; }
.footer .wordmark { font-size: 1.7rem; }

@media (max-width: 50rem) {
  .play-section { grid-template-columns: 1fr; gap: 2.25rem; }
  .steps p { max-width: 56ch; }
  .league-inner { gap: 1rem; }
  .league-inner li + li::before { left: -2.1rem; }
}

@media (max-width: 42rem) {
  .header-inner { min-height: 4rem; }
  .wordmark { font-size: 1.8rem; }
  nav a { font-size: .875rem; }
  .hero-photo { inset: 0 0 auto; width: 100%; height: clamp(17rem, 67vw, 24rem); }
  .hero-photo img { object-position: 50% 40%; }
  .hero-photo::after { background: linear-gradient(0deg, var(--ink) 4%, rgb(12 39 41 / 90%) 20%, transparent 62%); }
  .hero-inner { padding-block: clamp(12.5rem, 50vw, 18rem) 2.25rem; }
  h1 { font-size: clamp(4.65rem, 16vw, 6.5rem); margin-top: 1rem; }
  .intro { max-width: 32ch; margin-block: 1.2rem; }
  .release { margin-top: .85rem; }
  .league-inner { display: block; padding-block: .85rem 1rem; }
  .league-inner > p { margin-bottom: .45rem; }
  .league-inner ul { justify-content: space-between; gap: .55rem; }
  .league-inner li + li::before { display: none; }
  .ticket-head { padding: 1.25rem; }
  .ticket-body { padding: 1.125rem; }
}

@media (forced-colors: active) {
  .ticket input:checked + span { outline: 2px solid Highlight; }
  .ticket input:focus-visible + span { outline-style: dashed; outline-offset: 4px; }
}
