/*
 * One Line public landing (`/` and `/en`).
 *
 * Transcribes Figma "One-Line", page "Prototype V4", section
 * "09 · Landing oneline.ca · Proposition" (frames Desktop 1440 and Mobile 390).
 * Colours, radii and type mirror the redesigned UI tokens in
 * `src/features/redesign/theme/tokens.ts`; this static page cannot import
 * them, so keep both in sync. The legal pages keep `public-pages.css`.
 * The 2026-11-27 landing audit changes (hero order on phones, compact cards,
 * sharing block, single beta block, real app captures) are not in Figma yet.
 */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/marketing/landing/fonts/nunito-regular-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/marketing/landing/fonts/nunito-bold-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/marketing/landing/fonts/nunito-extrabold-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* Prototype · Cartes mates and v8 variables. */
  --bg: #101519;
  --card: #1a211f;
  --featured: #1b2c25;
  --ink: #edf4f0;
  --muted: #a7b5ae;
  --soft: #bcddce;
  --line: #303d37;
  --track: #2a3b33;
  --outline: #667d72;
  --accent: #5a9d8a;
  --action: #3a836f;
  --action-dark: #2a6052;
  --on-action: #ffffff;
  --gold: #f3cc6a;
  --star-gold: #ffda6a;
  --platinum: #f0f0f0;
  --daily-surface: #24251e;
  --beta: #c2addf;
  --marker: #d9fff2;
  --world-green: #3c8773;
  --pack-coral-surface: #2c211e;
  --pack-coral-badge: #5e3229;
  --pack-coral-ink: #ffdcd3;
  --pack-classic-surface: #1b2824;
  --pack-classic-badge: #254a3e;
  --pack-classic-ink: #d9fff2;
  --pack-ocean-surface: #182431;
  --pack-ocean-badge: #253d58;
  --pack-ocean-ink: #e4f0ff;
  --pack-cyan-surface: #182a30;
  --pack-cyan-badge: #264e5a;
  --pack-cyan-ink: #ddf5ff;

  /* "Prototype/Grille/Surface satinée · Reflets 1 px". */
  --satin-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.1) 100%);
  --satin-edges: inset 0 1px 0 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 0 rgba(0, 0, 0, 0.18);

  --radius-block: 20px;
  --radius-small: 16px;
  --radius-badge: 12px;

  --gutter: 16px;
  --content: min(1200px, 100% - 2 * var(--gutter));
  --header-height: 60px;
  --section-top: 56px;
  --section-gap: 28px;
  --title-gap: 12px;

  /* Mobile type ramp ("Prototype/Landing/Mobile/*"). */
  --display: 700 40px / 44px "Nunito", sans-serif;
  --display-tracking: -0.4px;
  --h2: 700 30px / 35px "Nunito", sans-serif;
  --h2-tracking: -0.15px;
  --h3: 700 19px / 25px "Nunito", sans-serif;
  --lead: 400 17px / 26px "Nunito", sans-serif;
  --body: 400 15px / 23px "Nunito", sans-serif;
  --kicker: 700 12px / 16px "Nunito", sans-serif;
  --question: 700 16px / 23px "Nunito", sans-serif;
  --fact: 700 14px / 20px "Nunito", sans-serif;
  --caption: 400 13px / 18px "Nunito", sans-serif;
  --button: 800 16px / 23px "Nunito", sans-serif;
  --label: 700 15px / 22px "Nunito", sans-serif;
}

@media (min-width: 900px) {
  :root {
    --gutter: clamp(32px, 8.334vw, 120px);
    --header-height: 76px;
    --section-top: 112px;
    --section-gap: 48px;
    --title-gap: 16px;

    /* Desktop type ramp ("Prototype/Landing/Desktop/*"), 1440 px reference. */
    --display: 700 clamp(52px, 5vw, 72px) / 1.0834 "Nunito", sans-serif;
    --display-tracking: -0.015em;
    --h2: 700 clamp(36px, 3.2vw, 46px) / 1.1304 "Nunito", sans-serif;
    --h2-tracking: -0.01em;
    --h3: 700 22px / 28px "Nunito", sans-serif;
    --lead: 400 20px / 30px "Nunito", sans-serif;
    --body: 400 16px / 25px "Nunito", sans-serif;
    --kicker: 700 13px / 18px "Nunito", sans-serif;
    --question: 700 18px / 26px "Nunito", sans-serif;
    --fact: 700 16px / 22px "Nunito", sans-serif;
  }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--soft);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font: var(--button);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* ------------------------------------------------------------ Text roles */

.kicker {
  color: var(--accent);
  font: var(--kicker);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display {
  color: var(--ink);
  font: var(--display);
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}

.display span {
  color: var(--accent);
}

.h2 {
  color: var(--ink);
  font: var(--h2);
  letter-spacing: var(--h2-tracking);
  text-wrap: balance;
}

.h3 {
  color: var(--ink);
  font: var(--h3);
}

.lead {
  font: var(--lead);
}

.muted {
  color: var(--muted);
}

.caption {
  color: var(--muted);
  font: var(--caption);
}

/* --------------------------------------------------------------- Actions */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: var(--button);
  text-align: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.button svg {
  flex: none;
}

.button--primary {
  background: var(--action);
  color: var(--on-action);
}

.button--primary:hover {
  background: var(--action-dark);
}

.button--secondary {
  border-color: var(--outline);
  color: var(--ink);
  font: var(--label);
}

.button--secondary:hover {
  border-color: var(--soft);
}

.button--gold {
  width: 100%;
  padding-inline: 14px;
  background: var(--gold);
  color: var(--daily-surface);
}

.button--gold:hover {
  background: #f7d98a;
}

.button--compact {
  min-height: 44px;
  padding: 0 18px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font: 700 13px / 19px "Nunito", sans-serif;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--ink);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Official App Store and Google Play badges, used as provided: no recolour,
   hover effect or animation (Apple and Google brand rules). The App Store
   badge comes first, and the 14px gap keeps Apple's minimum clear space
   (a quarter of the badge height). */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-badge {
  display: block;
  border-radius: 10px;
}

.store-badge img {
  display: block;
  width: auto;
  height: 44px;
}

@media (min-width: 640px) {
  .actions:has(.store-badges) {
    align-items: center;
    column-gap: 14px;
  }

  .store-badge img {
    height: 50px;
  }
}

/* ---------------------------------------------------------- Satin squares */

.satin {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--satin-sheen), var(--swatch, var(--world-green));
  box-shadow: var(--satin-edges);
}

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  width: var(--content);
  height: var(--header-height);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font: 800 19px / 26px "Nunito", sans-serif;
  white-space: nowrap;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand__one {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__anchor {
  display: none;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font: 700 15px / 20px "Nunito", sans-serif;
}

.site-nav__anchor:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border-radius: 999px;
  background: var(--card);
}

.language-switch a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font: 800 13px / 18px "Nunito", sans-serif;
  letter-spacing: 0.04em;
}

.language-switch a:hover {
  color: var(--ink);
}

.language-switch a[aria-current="page"] {
  background: var(--track);
  color: var(--ink);
}

@media (min-width: 900px) {
  .brand {
    gap: 10px;
    font-size: 24px;
    line-height: 33px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .site-nav {
    gap: 28px;
  }

  .site-nav__anchor {
    display: inline-flex;
  }
}

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

.section {
  width: var(--content);
  margin-inline: auto;
  padding-top: var(--section-top);
}

.section > * + * {
  margin-top: var(--section-gap);
}

.section-title {
  display: flex;
  max-width: 780px;
  flex-direction: column;
  gap: var(--title-gap);
}

.section-title .lead {
  color: var(--muted);
}

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

.hero {
  display: grid;
  width: var(--content);
  margin-inline: auto;
  padding: 28px 0 16px;
  gap: 32px;
  /* Phones: the play button and store badges come before the grid, so the
     first screen holds an action (landing audit, 2026-11-27). */
  grid-template-areas:
    "copy"
    "actions"
    "visual";
}

.hero__copy {
  display: flex;
  grid-area: copy;
  flex-direction: column;
  gap: 16px;
}

.hero__copy .muted {
  font: var(--body);
}

.hero__visual {
  display: flex;
  min-width: 0;
  grid-area: visual;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__scene {
  position: relative;
  display: grid;
  width: min(100%, 500px);
  place-items: center;
  padding: 11px 0;
}

.hero__scene::before {
  content: "";
  position: absolute;
  width: 81%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(60, 135, 115, 0.42);
  filter: blur(48px);
}

.hero__scene picture {
  position: relative;
  display: block;
  width: min(100%, 308px);
}

.hero__grid {
  width: 100%;
  height: auto;
}

.hero__legend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.grid-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  color: var(--muted);
  font: var(--caption);
}

.grid-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.grid-legend__mark {
  display: inline-block;
  flex: none;
  background: var(--marker);
}

.grid-legend__mark--start {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

/* Hollow until the line reaches it, as on the board. */
.grid-legend__mark--end {
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border: 2.5px solid var(--marker);
  border-radius: 3.3px;
  background: none;
}

.grid-legend__mark--wall {
  width: 3px;
  height: 14px;
  border-radius: 1.5px;
}

/* The board's rounded arrow (getRoundedDirectionMarkerPath, size 12). */
.grid-legend__mark--direction {
  width: 12px;
  height: 11px;
  clip-path: path(
    "M4.927 10.117L0.847 1.957A1.2 1.2 0 0 1 1.92 0.22L10.08 0.22A1.2 1.2 0 0 1 11.153 1.957L7.073 10.117A1.2 1.2 0 0 1 4.927 10.117Z"
  );
}

.hero__actions {
  display: flex;
  grid-area: actions;
  flex-direction: column;
  gap: 16px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font: var(--fact);
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 24px;
    align-items: center;
    column-gap: 48px;
    row-gap: 22px;
    grid-template-areas:
      "copy visual"
      "actions visual";
    grid-template-columns: minmax(0, 650fr) minmax(0, 502fr);
  }

  .hero__copy {
    align-self: end;
    gap: 22px;
  }

  .hero__actions {
    align-self: start;
    gap: 22px;
    padding-top: 10px;
  }

  .hero__actions .facts {
    padding-top: 4px;
    column-gap: 28px;
  }

  .hero__visual,
  .hero__legend {
    gap: 14px;
  }

  .hero__scene picture {
    width: min(100%, 428px);
  }

  .grid-legend {
    gap: 20px;
  }
}

/* ---------------------------------------------------- Les puzzles (rules) */

.rules {
  display: grid;
  gap: 16px;
}

.rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-block);
  background:
    linear-gradient(
      90deg,
      rgb(var(--rule-rgb) / 0.26) 0%,
      rgb(var(--rule-rgb) / 0.06) 55%,
      rgb(var(--rule-rgb) / 0) 100%
    ),
    var(--card);
}

.rule--line {
  --rule-rgb: 60 135 115;
}

.rule--wall {
  --rule-rgb: 47 110 197;
}

.rule--direction {
  --rule-rgb: 116 64 201;
}

.rule__grid,
.pack__grid {
  display: grid;
  place-items: center;
  border-radius: var(--radius-small);
  background: var(--bg);
}

.rule__grid {
  width: 112px;
  height: 112px;
  flex: none;
}

.rule__grid img {
  width: 88px;
  height: auto;
}

.rule__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

@media (min-width: 900px) {
  .rules {
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rule {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px;
  }

  .rule__grid {
    width: auto;
    height: 236px;
  }

  .rule__grid img {
    width: 175px;
  }
}

/* -------------------------------------------------------- Le défi du jour */

.daily {
  display: grid;
  gap: 24px;
  padding: 28px 20px;
  border-radius: var(--radius-block);
  background: var(--daily-surface);
}

.daily .kicker {
  color: var(--gold);
}

.daily__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.daily__copy .lead {
  color: var(--ink);
}

.phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone__frame {
  width: 260px;
  padding: 8px;
  border-radius: 40px;
  background: #070a0c;
}

.phone__frame img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: var(--bg);
}

.archives {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.archives__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily__more {
  display: grid;
  gap: 32px;
}

/* Sharing a Daily run by link (#640): the page a friend opens. */
.friends {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.friends__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.friends .kicker {
  color: var(--gold);
}

.friends__free {
  color: var(--ink);
  font: var(--fact);
}

.friends__shot {
  width: 220px;
  align-self: center;
  overflow: hidden;
  padding: 8px 8px 0;
  border-radius: 34px 34px 0 0;
  background: #070a0c;
}

.friends__shot img {
  width: 100%;
  height: auto;
  border-radius: 26px 26px 0 0;
  background: var(--bg);
}

@media (min-width: 900px) {
  .daily {
    align-items: center;
    column-gap: 56px;
    row-gap: 48px;
    padding: 56px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 316px);
  }

  .daily__copy {
    max-width: 560px;
    gap: 20px;
  }

  .phone__frame {
    width: min(100%, 316px);
    border-radius: 44px;
  }

  .phone__frame img {
    border-radius: 36px;
  }

  .daily__more {
    align-items: start;
    gap: 56px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .friends {
    flex-direction: row;
    align-items: flex-end;
    gap: 28px;
  }

  .friends__text {
    flex: 1;
    align-self: center;
  }

  .friends__shot {
    width: 220px;
    flex: none;
  }

  .archives {
    gap: 20px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .daily__more {
    grid-template-columns: minmax(0, 1fr);
  }

  .archives {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .archives__text {
    flex: 1;
  }
}

/* Calendar: a copy of the game's Daily calendar, June 2026. */
.calendar {
  display: flex;
  width: 100%;
  max-width: 348px;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-block);
  background: var(--card);
}

.calendar__month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 21px / 27px "Nunito", sans-serif;
  letter-spacing: -0.3px;
}

.calendar__weekdays,
.calendar__days {
  display: grid;
  gap: 6px 4px;
  grid-template-columns: repeat(7, minmax(0, 40px));
  justify-content: space-between;
}

.calendar__weekdays {
  color: var(--muted);
  font: 400 12px / 18px "Nunito", sans-serif;
  text-align: center;
}

.day {
  display: flex;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 20px;
  font: 700 15px / 22px "Nunito", sans-serif;
}

.day--done,
.day--platinum {
  background: var(--track);
}

.day--done::after {
  content: "★★★";
  color: var(--star-gold);
  font: 400 12px / 18px "Nunito", sans-serif;
}

.day--platinum img {
  width: 14px;
  height: 14px;
}

.day--today {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.day--future {
  color: var(--muted);
  opacity: 0.35;
}

/* ------------------------------------------------------------- Les packs */

.packs-head {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.phone--home .phone__frame {
  width: 220px;
}

@media (min-width: 900px) {
  .packs-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }

  .phone--home {
    flex: none;
  }

  .phone--home .phone__frame {
    width: 280px;
  }
}

.packs {
  display: grid;
  gap: 16px;
}

.pack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-block);
  background: var(--pack-surface);
  color: var(--pack-ink);
}

.pack--coral {
  --pack-surface: var(--pack-coral-surface);
  --pack-badge: var(--pack-coral-badge);
  --pack-ink: var(--pack-coral-ink);
}

.pack--classic {
  --pack-surface: var(--pack-classic-surface);
  --pack-badge: var(--pack-classic-badge);
  --pack-ink: var(--pack-classic-ink);
}

.pack--ocean {
  --pack-surface: var(--pack-ocean-surface);
  --pack-badge: var(--pack-ocean-badge);
  --pack-ink: var(--pack-ocean-ink);
}

.pack--cyan {
  --pack-surface: var(--pack-cyan-surface);
  --pack-badge: var(--pack-cyan-badge);
  --pack-ink: var(--pack-cyan-ink);
}

.pack__presentation {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pack__text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.badge {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: var(--radius-badge);
  background: var(--pack-badge, var(--track));
}

.pack__name {
  font: 700 24px / 30px "Nunito", sans-serif;
  letter-spacing: -0.4px;
}

.pack__meta {
  font: 700 15px / 21px "Nunito", sans-serif;
}

.pack__grid {
  width: 104px;
  height: 104px;
  flex: none;
}

.pack__grid img {
  width: 84px;
  height: auto;
}

.pack__worlds {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font: var(--caption);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.swatches .satin {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.progression {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.progression__stars {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 900px) {
  /* Two cards per row; an odd last card sits centred under them, at the same
     width (Figma Prototype V4, section 09). */
  .packs {
    gap: 24px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .packs > .pack {
    grid-column: span 2;
  }

  .packs > .pack:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }

  .pack {
    gap: 24px;
    padding: 32px;
  }

  .pack__presentation {
    gap: 24px;
  }

  .pack__text {
    gap: 12px;
  }

  .pack__name {
    font-size: 30px;
    line-height: 35px;
    letter-spacing: -0.5px;
  }

  .pack__meta {
    font-size: 16px;
    line-height: 22px;
  }

  .pack__grid {
    width: 230px;
    height: 230px;
  }

  .pack__grid img {
    width: 190px;
  }

  .progression {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .progression > p {
    max-width: 640px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .pack__presentation {
    flex-direction: column;
    align-items: stretch;
  }

  .pack__grid {
    width: 100%;
  }
}

/* --------------------------------------------------- Rush et multijoueur */

/* Beta modes stay a single quiet block: they sit behind the beta program. */
.beta {
  display: grid;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-block);
  background: var(--card);
}

.beta__intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.beta .kicker {
  color: var(--beta);
}

.beta__modes {
  display: grid;
  gap: 16px;
}

.beta__mode {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.beta__name {
  margin-bottom: 2px;
  font: var(--label);
}

@media (min-width: 900px) {
  .beta {
    gap: 28px;
    padding: 32px;
  }

  .beta__modes {
    gap: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .beta {
    align-items: center;
    gap: 48px;
    grid-template-columns: minmax(0, 380fr) minmax(0, 748fr);
  }
}

/* ------------------------------------------------------------- Questions */

.faq {
  display: grid;
  gap: 28px;
}

.faq__list {
  border-radius: var(--radius-block);
  background: var(--card);
}

.faq__item + .faq__item {
  border-top: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font: var(--question);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary svg {
  flex: none;
  color: var(--muted);
  transition: transform 200ms ease;
}

.faq__item[open] summary svg {
  transform: rotate(180deg);
}

.faq__item p {
  margin-top: -8px;
  padding: 0 20px 18px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .faq {
    gap: var(--section-gap);
  }

  .faq__item summary {
    padding: 22px 28px;
  }

  .faq__item p {
    margin-top: -12px;
    padding: 0 68px 22px 28px;
  }
}

/* --------------------------------------------------------------- Clôture */

.closing {
  padding-bottom: 56px;
}

.closing__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 40px 20px;
  border-radius: var(--radius-block);
  background: var(--featured);
  text-align: center;
}

.closing__block .actions {
  width: 100%;
  justify-content: center;
}

.closing__block .store-badges {
  justify-content: center;
}

.arrival {
  width: min(100%, 284px);
  height: auto;
  margin-bottom: 4px;
  /* The end-cell glow spills past the viewBox; the UA sheet clips svg:not(:root). */
  overflow: visible;
}

.arrival__glow {
  opacity: 0;
  filter: blur(11px);
}

.arrival__last {
  transform: translateX(-67px);
}

.arrival__head {
  transform-box: view-box;
}

/* The finish fills once the line reaches it. */
.arrival__end {
  opacity: 0;
}

.arrival__glow,
.arrival__last,
.arrival__head,
.arrival__end {
  transition:
    opacity 500ms ease-out,
    transform 500ms ease-out;
}

.closing__block:hover .arrival__glow,
.arrival.is-arrived .arrival__glow {
  opacity: 0.5;
}

.closing__block:hover .arrival__last,
.arrival.is-arrived .arrival__last {
  transform: none;
}

.closing__block:hover .arrival__end,
.arrival.is-arrived .arrival__end {
  opacity: 1;
}

.closing__block:hover .arrival__head,
.arrival.is-arrived .arrival__head {
  opacity: 0;
  transform: translateX(58px);
}

.closing__credit {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 8px;
}

.closing__credit a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent);
}

.closing__credit a:hover {
  color: var(--soft);
}

@media (min-width: 640px) {
  .closing__block .actions {
    width: auto;
  }
}

@media (min-width: 900px) {
  .closing {
    padding-bottom: 96px;
  }

  .closing__block {
    gap: 24px;
    padding: 72px;
  }

  .arrival {
    margin-bottom: 8px;
  }

  .closing__block .actions {
    padding-top: 8px;
  }
}

/* ------------------------------------------- Comment jouer / How to play */

.howto-intro {
  padding-top: 32px;
}

.howto-heading {
  font: 700 24px / 30px "Nunito", sans-serif;
  letter-spacing: -0.2px;
}

.howto-text {
  max-width: 72ch;
}

.howto-tips {
  display: grid;
  gap: 16px;
  padding: 0;
  counter-reset: tip;
  list-style: none;
}

.howto-tips li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius-block);
  background: var(--card);
  counter-increment: tip;
}

.howto-tips li::before {
  content: counter(tip);
  color: var(--accent);
  font: var(--kicker);
}

.howto-packs {
  display: grid;
  max-width: 72ch;
  gap: 12px;
}

.howto-packs__name {
  font: var(--label);
}

@media (min-width: 900px) {
  .howto-intro {
    padding-top: 64px;
  }

  .howto-heading {
    font-size: 30px;
    line-height: 36px;
  }

  .howto-tips {
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .howto-tips li {
    padding: 28px;
  }
}

/* ---------------------------------------------------------------- Footer */

.site-footer {
  width: var(--content);
  margin-inline: auto;
  padding-bottom: 40px;
  color: var(--muted);
  font: var(--caption);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.site-footer nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-footer a:hover {
  color: var(--ink);
}

.site-footer__language {
  color: var(--soft);
}

.site-footer__trademarks {
  max-width: 72ch;
  margin-top: 16px;
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .site-footer {
    padding-bottom: 48px;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 8px;
  }

  .site-footer nav {
    gap: 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .arrival__glow,
  .arrival__last,
  .arrival__head,
  .arrival__end,
  .faq__item summary svg {
    transition: none;
  }
}
