/*
 * The home page: one scrolling page in the application's neo-arcade editorial style (DESIGN_SYSTEM.md §1). It holds no
 * image and no script: the scene (scene.css), the cards and the poster are HTML, and their sizes follow their container
 * (cqw). This file and scene.css describe a still page; motion.css adds the movement, for those who accept it.
 */

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  gap: var(--bf-space-9);
  align-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2.5rem, 8vh, 5.5rem) var(--gutter) clamp(6rem, 12vh, 8rem);
  background:
    radial-gradient(64rem 40rem at -8% -12%, var(--bf-plum), transparent 72%),
    radial-gradient(48rem 38rem at 108% 108%, var(--bf-plum-deep), transparent 72%);
}

.pitch {
  display: grid;
  gap: var(--bf-space-5);
  justify-items: start;
  container-type: inline-size;
}

.wordmark {
  width: 100%;
  margin-block: var(--bf-space-2) calc(var(--bf-space-1) * -1);
  font-family: var(--bf-family-display);
  /* The six capitals fill the column, and stop growing on very wide screens. */
  font-size: min(16.2cqw, 8.5rem);
  font-weight: var(--bf-weight-display);
  letter-spacing: var(--bf-tracking-display);
  line-height: 1;
  text-transform: uppercase;
}

.tagline {
  margin-block-start: var(--bf-space-2);
  font-size: clamp(1.45rem, 5.6cqw, 2.25rem);
  font-weight: var(--bf-weight-bold);
  line-height: 1.2;
}

.tagline em {
  color: var(--bf-accent);
  font-style: normal;
}

.lede {
  max-width: 34rem;
  color: var(--bf-text-muted);
  font-size: var(--bf-font-body-l);
  line-height: 1.45;
}

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bf-space-1) var(--bf-space-3);
  color: var(--bf-accent);
  font-size: var(--bf-font-label);
  font-weight: var(--bf-weight-bold);
  letter-spacing: var(--bf-tracking-label);
  text-transform: uppercase;
}

.promises li:not(:last-child)::after {
  margin-inline-start: var(--bf-space-3);
  content: '•';
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--bf-space-3);
  min-height: 3.25rem;
  padding: 0 var(--bf-space-6);
  border: 2px solid var(--bf-accent);
  border-radius: var(--bf-radius-button);
  background: var(--bf-surface-1);
  font-family: var(--bf-family-display);
  font-size: 0.95rem;
  font-weight: var(--bf-weight-bold);
  letter-spacing: var(--bf-tracking-display);
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--bf-accent);
}

/* ---------- Ticker: the arcade's banner, across the fold ---------- */

.ticker {
  position: relative;
  z-index: 2;
  width: 106%;
  margin-block: -1.75rem;
  margin-inline-start: -3%;
  overflow: hidden;
  background: var(--bf-accent);
  color: var(--bf-on-accent);
  font-family: var(--bf-family-display);
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  font-weight: var(--bf-weight-display);
  line-height: 1;
  rotate: -1.4deg;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-track p {
  padding-block: 1rem;
  padding-inline-end: 0.35em;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(5rem, 12vw, 9.5rem) var(--gutter);
}

.section-head {
  display: grid;
  gap: var(--bf-space-4);
  max-width: 62rem;
}

.section-title {
  font-family: var(--bf-family-display);
  font-size: clamp(1.85rem, 6vw, 4.25rem);
  font-weight: var(--bf-weight-display);
  hyphens: auto;
  letter-spacing: var(--bf-tracking-display);
  line-height: var(--bf-leading-tight);
  text-transform: uppercase;
  text-wrap: balance;
}

.section-lede {
  max-width: 42rem;
  color: var(--bf-text-muted);
  font-size: var(--bf-font-body-l);
  line-height: 1.45;
}

/* ---------- Five games: posters stuck on top of one another, each in its mechanic's colour ---------- */

.deck {
  display: grid;
  margin-block-start: clamp(2.5rem, 6vw, 4.5rem);
}

.game {
  --game-shadow: color-mix(in srgb, var(--game) 55%, var(--bf-bg));
  position: relative;
  display: grid;
  gap: var(--bf-space-4);
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.35rem, 4.5vw, 3.5rem);
  border-radius: var(--bf-radius-card);
  container-type: inline-size;
  background: var(--game);
  box-shadow: 0 0.6rem 0 var(--game-shadow);
  color: var(--bf-on-color);
  rotate: var(--tilt);
  transition:
    rotate var(--bf-dur-base) var(--bf-ease-out),
    translate var(--bf-dur-base) var(--bf-ease-out);
}

.game + .game {
  margin-block-start: -0.35rem;
}

.game-rafale {
  --game: var(--bf-mech-rafale);
  --tilt: -0.9deg;
}
.game-five {
  --game: var(--bf-mech-five-seconds);
  --tilt: 0.7deg;
}
.game-tribunal {
  --game: var(--bf-mech-tribunal);
  --tilt: -0.5deg;
}
.game-duel {
  --game: var(--bf-mech-duel);
  --tilt: 0.9deg;
}
.game-bluff {
  --game: var(--bf-mech-bluff);
  --tilt: -0.7deg;
}

.game-name {
  font-family: var(--bf-family-display);
  font-size: clamp(1.9rem, 10.8cqw, 3.5rem);
  font-weight: var(--bf-weight-display);
  line-height: 1;
  text-transform: uppercase;
}

.game-rule {
  font-size: var(--bf-font-body-l);
  font-weight: var(--bf-weight-medium);
  line-height: 1.32;
}

.game-card {
  padding: var(--bf-space-4) var(--bf-space-5);
  border-radius: var(--bf-radius-field);
  background: var(--bf-bg);
  color: var(--bf-text);
  font-size: var(--bf-font-body);
  font-weight: var(--bf-weight-medium);
  line-height: 1.35;
  rotate: calc(var(--tilt) * -1.6);
}

/* ---------- Memory: the same story as the phone above, from the Tribunal's vote to the verdict ---------- */

.memory {
  position: relative;
  border-block: 1px solid var(--bf-surface-2);
  background:
    radial-gradient(52rem 34rem at 88% 8%, var(--bf-plum-deep), transparent 72%), var(--bf-surface-1);
}

.story {
  display: grid;
  gap: var(--bf-space-3);
  margin-block-start: clamp(2.5rem, 6vw, 4.5rem);
}

.beat {
  display: grid;
  gap: var(--bf-space-3);
  padding: var(--bf-space-6);
  border-radius: var(--bf-radius-panel);
  background: var(--bf-bg);
}

.beat-round {
  color: var(--bf-text-muted);
  font-size: var(--bf-font-label);
  font-weight: var(--bf-weight-bold);
  letter-spacing: var(--bf-tracking-label);
  text-transform: uppercase;
}

.beat-say {
  max-width: 44rem;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: var(--bf-weight-medium);
  line-height: 1.3;
}

.beat-note {
  color: var(--bf-text-muted);
}

.beat-shout {
  color: var(--bf-callback);
  font-family: var(--bf-family-display);
  font-weight: var(--bf-weight-display);
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.beat-flame {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  /* The scanlines and the lime edge of the application's screen. */
  background:
    repeating-linear-gradient(
      0deg,
      color-mix(in srgb, var(--bf-callback) 7%, transparent) 0 1px,
      transparent 1px 6px
    ),
    var(--bf-bg);
  box-shadow: inset 0 0 0 3px var(--bf-callback);
}

.beat-flame .beat-shout {
  font-size: clamp(2.15rem, 9vw, 7rem);
}

.beat-revenge .beat-shout {
  font-size: clamp(1.5rem, 4.4vw, 3rem);
}

.memory-foot {
  max-width: 42rem;
  margin-block-start: var(--bf-space-7);
  color: var(--bf-text-muted);
}

.memory-foot strong {
  color: var(--bf-text);
}

/* ---------- Grand Verdict ---------- */

.verdict {
  display: grid;
  gap: var(--bf-space-9);
  align-items: center;
  padding-block-end: clamp(3rem, 6vw, 5rem);
}

.poster {
  width: min(100%, 27rem);
  margin-inline: auto;
  rotate: 2.2deg;
  container-type: inline-size;
}

/* The application's poster (RecapPoster.module.css), its pixels at 1080 turned into hundredths of its width. */
.poster-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4.4cqw;
  padding: 8cqw 7cqw;
  overflow: hidden;
  isolation: isolate;
  border-radius: 4cqw;
  background: var(--bf-bg);
  box-shadow:
    0 0 0 1px var(--bf-plum),
    0 4cqw 10cqw color-mix(in srgb, var(--bf-violet) 28%, transparent);
}

.poster-sheet::before,
.poster-sheet::after {
  position: absolute;
  z-index: -1;
  width: 83cqw;
  height: 83cqw;
  border-radius: 50%;
  content: '';
}

.poster-sheet::before {
  top: -33cqw;
  left: -33cqw;
  background: radial-gradient(circle, var(--bf-violet), transparent 70%);
  opacity: 0.45;
}

.poster-sheet::after {
  right: -35cqw;
  bottom: -35cqw;
  background: radial-gradient(circle, var(--bf-lime), transparent 70%);
  opacity: 0.25;
}

.poster-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2cqw;
}

.poster-brand {
  color: var(--bf-lime);
  font-family: var(--bf-family-display);
  font-size: 6.7cqw;
  font-weight: var(--bf-weight-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.poster-kicker {
  color: var(--bf-violet);
  font-size: 3.15cqw;
  font-weight: var(--bf-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.poster-headline {
  font-family: var(--bf-family-display);
  font-size: 8.5cqw;
  font-weight: var(--bf-weight-display);
  line-height: 1.05;
  text-transform: uppercase;
}

.poster-awards {
  display: grid;
  gap: 1.7cqw;
}

.award {
  display: grid;
  grid-template-columns: 5.2cqw minmax(0, 1fr);
  gap: 0 1.9cqw;
  align-items: baseline;
  padding: 1.9cqw 2.6cqw;
  border-left: 0.93cqw solid var(--p);
  border-radius: 2.2cqw;
  background: var(--bf-surface-1);
}

.award .glyph {
  grid-row: span 2;
  align-self: center;
  width: 4cqw;
  height: 4cqw;
  color: var(--p);
}

.award-name {
  font-size: 3.4cqw;
  font-weight: var(--bf-weight-bold);
}

.award-title {
  color: var(--bf-lime);
  font-family: var(--bf-family-display);
  font-size: 3.2cqw;
  font-weight: var(--bf-weight-display);
  text-transform: uppercase;
}

.poster-moments {
  display: grid;
  gap: 1.5cqw;
}

.poster-moments li {
  padding-left: 2.6cqw;
  border-left: 0.56cqw solid var(--bf-callback);
  font-size: 3.4cqw;
  line-height: 1.25;
}

.poster-foot {
  color: var(--bf-text-muted);
  font-size: 2.9cqw;
  text-align: center;
}

/* ---------- Your rules ---------- */

.rules {
  padding-block-start: clamp(2rem, 5vw, 4rem);
}

.parties {
  display: grid;
  gap: var(--bf-space-4);
  margin-block-start: clamp(2.5rem, 6vw, 4rem);
}

.party {
  display: grid;
  gap: var(--bf-space-2);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--bf-radius-button);
  color: var(--bf-on-color);
}

.party-surprise {
  background: var(--bf-mech-rafale);
  box-shadow: 0 0.5rem 0 color-mix(in srgb, var(--bf-mech-rafale) 55%, var(--bf-bg));
}

.party-custom {
  background: var(--bf-mech-duel);
  box-shadow: 0 0.5rem 0 color-mix(in srgb, var(--bf-mech-duel) 55%, var(--bf-bg));
}

.party-name {
  font-family: var(--bf-family-display);
  font-size: clamp(1.45rem, 3.6vw, 2.5rem);
  font-weight: var(--bf-weight-display);
  line-height: 1.05;
  text-transform: uppercase;
}

.party-hint {
  font-size: var(--bf-font-body-l);
  font-weight: var(--bf-weight-medium);
  line-height: 1.3;
}

.settings {
  display: grid;
  gap: var(--bf-space-7);
  margin-block-start: var(--bf-space-8);
}

.setting {
  display: grid;
  gap: var(--bf-space-3);
  align-content: start;
}

.setting dt {
  color: var(--bf-accent);
  font-size: var(--bf-font-label);
  font-weight: var(--bf-weight-bold);
  letter-spacing: var(--bf-tracking-label);
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bf-space-2);
}

.chips li {
  padding: var(--bf-space-1) var(--bf-space-4);
  border-radius: var(--bf-radius-chip);
  background: var(--bf-surface-2);
  font-weight: var(--bf-weight-medium);
}

/* ---------- Respect ---------- */

.respect {
  display: grid;
  gap: var(--bf-space-8);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.respect-list {
  display: grid;
  gap: var(--bf-space-5);
  margin-block-start: var(--bf-space-7);
}

.respect-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--bf-space-3);
  color: var(--bf-text-muted);
}

.respect-list .glyph {
  width: 1.25rem;
  height: 1.25rem;
  margin-block-start: 0.2rem;
  color: var(--p);
}

.respect-list strong {
  display: block;
  color: var(--bf-text);
  font-weight: var(--bf-weight-bold);
}

.respect-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-block-start: var(--bf-space-3);
  font-weight: var(--bf-weight-bold);
}

.offer {
  display: grid;
  gap: var(--bf-space-3);
  align-self: center;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--bf-radius-card);
  background: var(--bf-card);
  box-shadow: 0 0.5rem 0 var(--bf-violet);
  rotate: -1.2deg;
}

.offer-title {
  font-family: var(--bf-family-display);
  font-size: var(--bf-font-title);
  font-weight: var(--bf-weight-display);
  line-height: 1.15;
  text-transform: uppercase;
}

/* ---------- Closing ---------- */

.closing {
  display: grid;
  gap: var(--bf-space-5);
  justify-items: center;
  padding: clamp(4.5rem, 10vw, 8rem) var(--gutter);
  background: radial-gradient(48rem 26rem at 50% 110%, var(--bf-plum), transparent 72%);
  text-align: center;
  container-type: inline-size;
}

.closing-name {
  font-family: var(--bf-family-display);
  font-size: min(15cqw, 8.5rem);
  font-weight: var(--bf-weight-display);
  line-height: 1;
  text-transform: uppercase;
}

.closing-line {
  max-width: 34rem;
  color: var(--bf-text-muted);
  font-size: var(--bf-font-body-l);
  line-height: 1.4;
}

/* ---------- Large screens: the single column opens up ---------- */

@media (min-width: 48rem) {
  .game {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--bf-space-4) var(--bf-space-8);
    align-items: center;
  }

  .game-name {
    grid-row: span 2;
    font-size: min(6.1cqw, 4.75rem);
  }

  /* Posters do not line up: each one sits its own way on the wall. */
  .game-rafale {
    margin-inline-end: 7%;
  }
  .game-five {
    margin-inline-start: 9%;
  }
  .game-tribunal {
    margin-inline: 2% 4%;
  }
  .game-duel {
    margin-inline-start: 12%;
  }
  .game-bluff {
    margin-inline: 3% 8%;
  }

  .parties {
    grid-template-columns: 1.15fr 1fr;
    align-items: end;
  }

  .party-custom {
    translate: 0 var(--bf-space-5);
  }

  .settings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-block-start: var(--bf-space-10);
  }
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: var(--bf-space-8);
    align-items: center;
  }

  .beat {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: var(--bf-space-3) var(--bf-space-7);
    padding: var(--bf-space-7);
  }

  .beat > :not(.beat-round) {
    grid-column: 2;
  }

  .beat-round {
    grid-row: 1 / span 3;
  }

  .verdict {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--bf-space-10);
  }

  /* The poster climbs over the edge of the section above it. */
  .poster {
    margin-block-start: calc(clamp(5rem, 12vw, 9.5rem) * -1.55);
    z-index: 1;
    position: relative;
  }

  .respect {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--bf-space-10);
  }
}

/* A phone on its side (Android 16 ignores the orientation lock on large screens): the hero need not fill the height. */
@media (orientation: landscape) and (max-height: 30rem) {
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
  }
}
