/*
 * Labyss -- le site.
 *
 * Meme direction artistique que l'application : espace profond, neon,
 * Orbitron pour les titres et les chiffres, Rajdhani pour le reste. Les
 * couleurs reprennent LabyssColors (lib/ui/theme.dart) a l'identique.
 */

@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/Orbitron-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/Orbitron-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/Orbitron-800.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/Rajdhani-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --space: #070a14;
  --space-glow: #101a33;
  --panel-border: #223055;
  --grid: #152040;
  --text: #aec3e8;
  --muted: #7386aa;
  --bright: #e8f1ff;
  --star: #ffb443;
  --star-idle: #1b2440;
  --danger: #ff5c7a;

  --mercurium: #23e7ff;
  --terrarius: #c9ff6b;
  --saturnios: #ffb443;
  --jupiteriao: #ff4fd8;
  --neptunarion: #3d7bff;
  --upcoming: #8b97b6;

  --display: 'Orbitron', 'Avenir Next', system-ui, sans-serif;
  --body: 'Rajdhani', 'Avenir Next Condensed', system-ui, sans-serif;
  --reading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 56px);
  --wide: 1180px;
  --header: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(120% 70% at 50% -10%, var(--space-glow) 0%, transparent 60%),
    var(--space);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--mercurium);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(35, 231, 255, 0.3);
  color: var(--bright);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bright);
  color: var(--space);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus {
  transform: none;
}

/* ------------------------------------------------------------------ ciel */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.sky.is-on {
  opacity: 1;
}

/* Deux nebuleuses tres douces, fixes : le ciel n'est jamais plat. */
.nebula {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 12% 18%, rgba(35, 231, 255, 0.07), transparent 70%),
    radial-gradient(45% 40% at 88% 62%, rgba(255, 79, 216, 0.06), transparent 70%),
    radial-gradient(50% 40% at 30% 100%, rgba(61, 123, 255, 0.08), transparent 70%);
}

/* ---------------------------------------------------------------- en-tete */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(7, 10, 20, 0.72);
  border-bottom-color: rgba(34, 48, 85, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--bright);
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(35, 231, 255, 0.35);
}

.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--bright);
}

/* Le retour au studio se tient a part des sections de la page. */
.site-nav .nav-studio {
  padding-left: clamp(14px, 2.4vw, 30px);
  border-left: 1px solid var(--panel-border);
}

.studio-link {
  color: var(--text);
  text-decoration-color: rgba(174, 195, 232, 0.35);
  text-underline-offset: 3px;
}

.studio-link:hover {
  color: var(--bright);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 180, 67, 0.55);
  border-radius: 999px;
  color: var(--star);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(255, 180, 67, 0.06);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-cta:hover {
  background: rgba(255, 180, 67, 0.12);
  box-shadow: 0 0 22px rgba(255, 180, 67, 0.25);
}

.header-cta::before {
  content: '';
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--star);
  box-shadow: 0 0 8px var(--star);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .header-cta {
    margin-left: auto;
  }
}

/* ------------------------------------------------------------- structure */

main {
  display: block;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wide));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(84px, 12vw, 150px);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}

.kicker {
  margin: 0 0 14px;
  color: var(--kicker, var(--mercurium));
  font-size: 14px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--bright);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
}

h2 {
  font-size: clamp(28px, 4.4vw, 50px);
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.section-head p:not(.kicker) {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text);
  text-wrap: pretty;
}

/* Apparitions au defilement : seulement si le script tourne, pour que la
 * page reste entiere sans lui. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s ease,
    transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------- boutons */

.button {
  --tint: var(--mercurium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--tint);
  border-radius: 12px;
  background: color-mix(in srgb, var(--tint) 9%, transparent);
  color: var(--tint);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--tint) 22%, transparent),
    inset 0 0 14px color-mix(in srgb, var(--tint) 10%, transparent);
  transition:
    background-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.button:hover {
  background: color-mix(in srgb, var(--tint) 16%, transparent);
  box-shadow:
    0 0 30px color-mix(in srgb, var(--tint) 40%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--tint) 16%, transparent);
}

.button:active {
  transform: scale(0.98);
}

.button.ghost {
  --tint: var(--muted);
  box-shadow: none;
  background: transparent;
}

.button.ghost:hover {
  --tint: var(--text);
  box-shadow: none;
}

/* ------------------------------------------------------ boutons boutiques */

/* Pas les badges officiels : Apple et Google n'en fournissent pas pour une
 * application pas encore publiee. Ils seront a substituer au lancement (voir
 * le README). */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 196px;
  height: 60px;
  padding: 0 20px 0 16px;
  border: 1px solid #34426b;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 28, 52, 0.9), rgba(8, 12, 24, 0.9));
  color: var(--bright);
  text-decoration: none;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}

.store svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--text);
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.store small {
  color: var(--star);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.store strong {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Un reflet passe de temps en temps, comme sur une vitrine. */
.store::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg) translateX(0);
  animation: shine 6.5s ease-in-out infinite;
  animation-delay: var(--shine-delay, 1.2s);
}

@keyframes shine {
  0%,
  72% {
    transform: skewX(-18deg) translateX(0);
  }
  100% {
    transform: skewX(-18deg) translateX(520%);
  }
}

/* Sur telephone, les deux boutiques tiennent cote a cote. */
@media (max-width: 480px) {
  .stores {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .store {
    flex: 1 1 0;
    min-width: 0;
    max-width: 200px;
    height: 56px;
    gap: 9px;
    padding: 0 12px;
  }
  .store svg {
    width: 24px;
    height: 24px;
  }
  .store small {
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }
  .store strong {
    font-size: 19px;
    white-space: nowrap;
  }
}

.store-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header) + 32px) var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}

/* La grille du jeu, en filigrane, qui s'efface vers les bords. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 68% 48%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 55% at 68% 48%, #000 0%, transparent 72%);
  opacity: 0.55;
}

.hero-inner {
  width: min(100%, var(--wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  /* Le titre se dimensionne sur sa colonne, jamais sur la fenetre : il ne
   * deborde ainsi jamais sur la planete. */
  container-type: inline-size;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.logo {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(50px, 6.2vw, 96px);
  font-size: min(15.4cqi, 118px);
  line-height: 0.95;
  letter-spacing: 0.1em;
  color: var(--bright);
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 18px rgba(35, 231, 255, 0.75),
    0 0 48px rgba(35, 231, 255, 0.45),
    0 0 110px rgba(35, 231, 255, 0.25);
  white-space: nowrap;
}

/* Un neon qui s'allume : chaque lettre gresille puis tient. */
.logo span {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .js .logo span {
    opacity: 0.14;
    animation: ignite 1.4s steps(1, end) forwards;
    animation-delay: calc(0.25s + var(--i) * 0.11s);
  }
  .js .logo span:nth-child(4) {
    animation:
      ignite 1.4s steps(1, end) forwards,
      hum 9s steps(1, end) 4s infinite;
    animation-delay: calc(0.25s + 3 * 0.11s), 4s;
  }
}

@keyframes ignite {
  0% {
    opacity: 0.14;
  }
  8% {
    opacity: 0.8;
  }
  12% {
    opacity: 0.1;
  }
  22% {
    opacity: 0.95;
  }
  26% {
    opacity: 0.3;
  }
  34%,
  100% {
    opacity: 1;
  }
}

@keyframes hum {
  0%,
  91% {
    opacity: 1;
  }
  92% {
    opacity: 0.35;
  }
  93% {
    opacity: 1;
  }
  95% {
    opacity: 0.55;
  }
  96%,
  100% {
    opacity: 1;
  }
}

.tagline {
  margin: 22px 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 2.2vw, 27px);
  letter-spacing: 0.08em;
  color: var(--mercurium);
  text-shadow: 0 0 16px rgba(35, 231, 255, 0.45);
}

.lead {
  margin: 22px 0 34px;
  max-width: 520px;
  font-size: clamp(18px, 1.55vw, 21px);
  color: var(--text);
  text-wrap: pretty;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 640px;
  justify-self: center;
}

.hero-planet {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
}

.hero-moon {
  position: absolute;
  top: -2%;
  right: -4%;
  width: 24%;
  height: 24%;
  opacity: 0.9;
}

/* Losanges d'etoiles qui flottent autour de la planete. */
.float-star {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: var(--star);
  box-shadow:
    0 0 10px var(--star),
    0 0 24px rgba(255, 180, 67, 0.5);
  animation: drift 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.float-star::after {
  content: '';
  position: absolute;
  inset: 30%;
  background: rgba(255, 255, 255, 0.9);
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Un couloir vertical : la bille y glisse jusqu'au mur du bas, encore et
 * encore. */
.scroll-cue i {
  position: relative;
  width: 18px;
  height: 44px;
  border: solid rgba(35, 231, 255, 0.55);
  border-width: 0 1.5px 1.5px;
  box-shadow: 0 4px 10px -6px rgba(35, 231, 255, 0.8);
}

.scroll-cue i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--bright);
  box-shadow: 0 0 10px var(--mercurium);
  animation: fall 2.4s linear infinite;
}

@keyframes fall {
  0%,
  30% {
    transform: translateY(0);
    opacity: 0;
  }
  36% {
    opacity: 1;
  }
  52%,
  84% {
    transform: translateY(28px);
    opacity: 1;
  }
  100% {
    transform: translateY(28px);
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .hero {
    align-items: start;
    padding-top: calc(var(--header) + 8px);
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-visual {
    order: -1;
    width: min(88vw, 440px);
    margin-bottom: -2vw;
  }
  .hero-copy {
    text-align: center;
  }
  .lead {
    margin-inline: auto;
  }
  .stores {
    justify-content: center;
  }
  .scroll-cue {
    display: none;
  }
}

/* ---------------------------------------------------------------- principe */

.rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.card {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background:
    radial-gradient(
      420px circle at var(--mx, 50%) var(--my, -20%),
      color-mix(in srgb, var(--accent, var(--mercurium)) 9%, transparent),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.35s var(--ease);
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--mercurium)) 45%, var(--panel-border));
  box-shadow: 0 20px 60px -30px color-mix(in srgb, var(--accent, var(--mercurium)) 55%, transparent);
}

.rule {
  padding: 26px 26px 30px;
}

.rule-art {
  height: 108px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(7, 10, 20, 0.6);
  border: 1px solid rgba(34, 48, 85, 0.6);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rule-art svg {
  width: 100%;
  height: 100%;
}

.rule h3 {
  font-size: 20px;
  letter-spacing: 0.06em;
}

.rule h3 em {
  font-style: normal;
  color: var(--mercurium);
  margin-right: 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
  vertical-align: 2px;
}

.rule p {
  margin: 12px 0 0;
  color: var(--text);
}

@media (max-width: 900px) {
  .rules {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

/* Illustrations animees des regles. Les valeurs reprennent le jeu : bille de
 * 0,24 case, murs neon, losanges d'etoile. */
.art-grid {
  stroke: var(--grid);
  stroke-width: 1;
}

.art-wall {
  stroke: #9ff4ff;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.art-wall-glow {
  stroke: var(--mercurium);
  stroke-width: 9;
  opacity: 0.28;
  filter: url(#soft);
}

.art-ball {
  animation: glide 4.2s linear infinite;
}

@keyframes glide {
  0%,
  12% {
    transform: translateX(0);
  }
  23%,
  50% {
    transform: translateX(200px);
  }
  61%,
  100% {
    transform: translateX(0);
  }
}

.art-hit {
  stroke: var(--mercurium);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0;
  filter: url(#soft);
}

.art-hit.right {
  animation: hit-right 4.2s linear infinite;
}

.art-hit.left {
  animation: hit-left 4.2s linear infinite;
}

@keyframes hit-right {
  0%,
  22.9% {
    opacity: 0;
  }
  23% {
    opacity: 0.9;
  }
  30%,
  100% {
    opacity: 0;
  }
}

@keyframes hit-left {
  0%,
  60.9% {
    opacity: 0;
  }
  61% {
    opacity: 0.9;
  }
  68%,
  100% {
    opacity: 0;
  }
}

.art-ball.collect {
  animation-name: glide-collect;
}

@keyframes glide-collect {
  0%,
  14% {
    transform: translateX(0);
  }
  25%,
  60% {
    transform: translateX(200px);
  }
  71%,
  100% {
    transform: translateX(0);
  }
}

.art-star {
  transform-box: fill-box;
  transform-origin: center;
  animation: taken 4.2s linear infinite;
}

@keyframes taken {
  0%,
  20.5% {
    opacity: 1;
    transform: scale(1);
  }
  24% {
    opacity: 0;
    transform: scale(1.9);
  }
  80% {
    opacity: 0;
    transform: scale(0.2);
  }
  88%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.art-ring {
  fill: none;
  stroke: var(--star);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ring 4.2s linear infinite;
}

@keyframes ring {
  0%,
  20.4% {
    opacity: 0;
    transform: scale(0.4);
  }
  20.5% {
    opacity: 0.9;
    transform: scale(0.5);
  }
  31%,
  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

.art-result {
  font-family: var(--display);
}

.art-result .title {
  fill: var(--mercurium);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

.art-result .note {
  fill: var(--muted);
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 1.5px;
}

.art-pip {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.25;
  animation: pip 4.2s ease-out infinite;
  animation-delay: var(--d);
}

@keyframes pip {
  0% {
    opacity: 0.25;
    transform: scale(1);
    fill: var(--star-idle);
  }
  4% {
    opacity: 1;
    transform: scale(1.45);
    fill: var(--star);
  }
  9%,
  70% {
    opacity: 1;
    transform: scale(1);
    fill: var(--star);
  }
  80%,
  100% {
    opacity: 0.25;
    transform: scale(1);
    fill: var(--star-idle);
  }
}

/* ------------------------------------------------------------------- demo */

.demo {
  --accent: var(--mercurium);
}

.device {
  position: relative;
  width: min(100%, 860px);
  margin-inline: auto;
  aspect-ratio: 844 / 390;
  padding: 1.25%;
  border-radius: 7% / 15%;
  background: linear-gradient(150deg, #27314f 0%, #121a31 30%, #0b1022 70%, #1d2744 100%);
  box-shadow:
    0 0 0 1px #2e3a5f,
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 90px -30px rgba(35, 231, 255, 0.28),
    0 30px 60px -20px rgba(0, 0, 0, 0.9);
}

/* Les boutons de volume et le bouton lateral, pour que l'objet se lise
 * comme un telephone couche. */
.device::before,
.device::after {
  content: '';
  position: absolute;
  top: -3px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #2a3556;
}
.device::before {
  left: 16%;
  width: 7%;
  box-shadow: calc(100% + 60px) 0 0 #2a3556;
}
.device::after {
  right: 22%;
  width: 11%;
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 5.8% / 12.6%;
  overflow: hidden;
  container-type: size;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--space-glow), transparent 60%),
    var(--space);
  outline: none;
  transition: box-shadow 0.3s ease;
}

.screen:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(35, 231, 255, 0.6);
}

/* L'ilot de l'ecran, cote gauche en paysage. */
.island {
  position: absolute;
  left: 2.6cqh;
  top: 50%;
  width: 9cqh;
  height: 31cqh;
  translate: 0 -50%;
  border-radius: 99px;
  background: #000;
  z-index: 3;
}

.hud {
  display: flex;
  align-items: center;
  padding-inline: 15cqh 12cqh;
  color: var(--muted);
}

.hud-top {
  height: max(34px, 10.3cqh);
  gap: max(6px, 1.8cqh);
  border-bottom: 1px solid var(--panel-border);
}

.hud-label {
  font-size: max(9px, 2.4cqh);
  letter-spacing: 0.2em;
}

.hud-moves {
  min-width: 1.3em;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 800;
  font-size: max(15px, 4.5cqh);
  text-shadow: 0 0 10px var(--accent);
}

.hud-par {
  margin-left: -0.3em;
  font-size: max(11px, 2.8cqh);
}

.hud-stars {
  display: flex;
  gap: max(7px, 1.9cqh);
  margin-inline: auto;
}

.hud-stars i,
.end-rating i {
  display: block;
  width: max(7px, 2.1cqh);
  aspect-ratio: 1;
  transform: rotate(45deg);
  background: var(--star-idle);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hud-stars i.on,
.end-rating i.on {
  background: var(--star);
  box-shadow: 0 0 max(6px, 1.8cqh) var(--star);
}

.hud-buttons {
  display: flex;
  gap: max(2px, 0.6cqh);
}

.hud-buttons button {
  display: grid;
  place-items: center;
  width: max(30px, 8.6cqh);
  height: max(30px, 8.6cqh);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text);
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.hud-buttons button:hover {
  color: var(--bright);
  background: rgba(255, 255, 255, 0.05);
}

.hud-buttons svg {
  width: max(16px, 4.6cqh);
  height: max(16px, 4.6cqh);
}

.board-wrap {
  position: relative;
  min-height: 0;
}

.board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: auto;
  cursor: pointer;
}

.is-playing .board {
  touch-action: none;
  cursor: grab;
}

.is-playing .board:active {
  cursor: grabbing;
}

.demo-chip {
  position: absolute;
  top: max(8px, 2.6cqh);
  right: max(10px, 12cqh);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(35, 231, 255, 0.35);
  background: rgba(7, 10, 20, 0.7);
  color: var(--mercurium);
  font-family: var(--display);
  font-size: max(8px, 2.2cqh);
  font-weight: 700;
  letter-spacing: 0.2em;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.demo-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: blink 1.6s steps(1, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.2;
  }
}

.is-playing .demo-chip {
  opacity: 0;
}

.hud-bottom {
  height: max(26px, 7.2cqh);
  gap: max(10px, 3.6cqh);
  border-top: 1px solid var(--panel-border);
  font-size: max(9px, 2.6cqh);
  letter-spacing: 0.2em;
}

.gauge {
  position: relative;
  flex: 1;
  height: max(3px, 0.8cqh);
  border-radius: 2px;
  background: var(--grid);
}

.gauge i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: var(--gauge, var(--accent));
  box-shadow: 0 0 7px var(--gauge, var(--accent));
}

.hud-time {
  width: 2.2em;
  text-align: right;
  font-family: var(--display);
  font-weight: 600;
  font-size: max(11px, 3.1cqh);
  letter-spacing: 0;
}

.hud-time.is-low {
  text-shadow: 0 0 10px currentColor;
}

.demo-end {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: max(8px, 2.6cqh);
  text-align: center;
  background: rgba(7, 10, 20, 0.74);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: end-in 0.45s var(--ease);
}

.demo-end[hidden] {
  display: none;
}

@keyframes end-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
}

.end-title {
  margin: 0;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 800;
  font-size: max(15px, 5.6cqh);
  letter-spacing: 0.24em;
  text-shadow: 0 0 14px var(--accent);
}

.demo-end[data-state='timeout'] .end-title {
  color: var(--danger);
  text-shadow: 0 0 14px var(--danger);
}

.end-rating {
  display: flex;
  gap: max(14px, 4cqh);
  margin: max(4px, 1cqh) 0;
}

.end-rating i {
  width: max(12px, 4cqh);
}

.end-note {
  margin: 0;
  font-size: max(12px, 3.2cqh);
  letter-spacing: 0.16em;
  color: var(--text);
}

.end-replay {
  display: none;
  min-height: 0;
  margin-top: max(4px, 1.4cqh);
  padding: max(8px, 2cqh) max(18px, 5cqh);
  font-size: max(10px, 2.6cqh);
}

.is-playing .end-replay {
  display: inline-flex;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 30px;
}

.demo [data-auto],
.is-playing [data-take] {
  display: none;
}

.is-playing [data-auto] {
  display: inline-flex;
}

.demo-hint {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.06em;
}

.demo-hint kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 6px;
  border: 1px solid var(--panel-border);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: 11px;
  text-align: center;
}

.hint-touch {
  display: none;
}

@media (pointer: coarse) {
  .hint-touch {
    display: inline;
  }
  .hint-keys {
    display: none;
  }
}

/* Sur telephone, pas de telephone dans le telephone : l'ecran de jeu seul,
 * plus haut, pour que les cases restent assez grandes sous le doigt. */
@media (max-width: 640px) {
  .device {
    aspect-ratio: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  .device::before,
  .device::after,
  .island {
    display: none;
  }
  .screen {
    aspect-ratio: 10 / 9.4;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--panel-border);
    box-shadow: 0 30px 70px -30px rgba(35, 231, 255, 0.35);
  }
  .hud {
    padding-inline: 14px 8px;
  }
  /* Le plateau occupe toute la largeur : la puce le chevaucherait, et le
   * bouton sous la demo dit deja qu'elle se joue seule. */
  .demo-chip {
    display: none;
  }
}

/* ------------------------------------------------------------------ mondes */

.worlds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

.world {
  padding: 18px 26px 28px;
  overflow: hidden;
}

.world-planet {
  position: relative;
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin: 0 auto 6px;
  transition: transform 0.6s var(--ease);
}

.world:hover .world-planet {
  transform: scale(1.05);
}

.world-planet canvas {
  width: 100%;
  height: 100%;
}

.world-index {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.world h3 {
  margin-top: 6px;
  color: var(--accent);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 55%, transparent);
}

.world-mechanic {
  margin: 12px 0 0;
  color: var(--bright);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.world-text {
  margin: 8px 0 0;
  color: var(--text);
}

.world-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.world-meta li {
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--panel-border));
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
  font-size: 14px;
  letter-spacing: 0.1em;
}

.world.is-upcoming {
  border-style: dashed;
}

.world.is-upcoming h3 {
  color: var(--upcoming);
  text-shadow: none;
}

@media (max-width: 1000px) {
  .worlds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sur telephone, les mondes defilent de cote, comme le carrousel du jeu. */
@media (max-width: 640px) {
  .worlds-track {
    margin-inline: calc(var(--gutter) * -1);
  }
  .worlds {
    display: flex;
    gap: 14px;
    padding: 4px var(--gutter) 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .worlds::-webkit-scrollbar {
    display: none;
  }
  .world {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }
}

.worlds-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.worlds-dots i {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--star-idle);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.worlds-dots i.on {
  background: var(--dot, var(--mercurium));
  box-shadow: 0 0 8px var(--dot, var(--mercurium));
}

@media (max-width: 640px) {
  .worlds-dots {
    display: flex;
  }
}

/* ----------------------------------------------------------------- atouts */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel-border);
}

.feature {
  padding: 30px 28px 32px;
  background: linear-gradient(180deg, rgba(10, 15, 30, 0.96), rgba(8, 11, 22, 0.96));
}

.feature svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--tint, var(--mercurium));
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tint, var(--mercurium)) 60%, transparent));
}

.feature h3 {
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 18px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------- histoire */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.story-copy .kicker {
  --kicker: var(--saturnios);
}

.story-copy p:not(.kicker) {
  margin: 20px 0 0;
  font-size: clamp(18px, 1.6vw, 21px);
  text-wrap: pretty;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 34px clamp(20px, 3vw, 34px);
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: rgba(10, 15, 30, 0.7);
}

.year {
  text-align: center;
}

.year strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1;
  color: var(--muted);
  transition:
    color 0.4s ease,
    text-shadow 0.4s ease;
}

.year span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.year.now strong {
  color: var(--bright);
}

.track {
  position: relative;
  height: 2px;
  background: var(--grid);
}

.track::before {
  content: '';
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(35, 231, 255, 0.2), var(--mercurium));
  box-shadow: 0 0 10px var(--mercurium);
  transition: transform 1.1s cubic-bezier(0.55, 0, 0.9, 0.4) 0.4s;
}

.track i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--bright);
  box-shadow:
    0 0 0 4px rgba(35, 231, 255, 0.15),
    0 0 18px var(--mercurium);
  transition: left 1.1s cubic-bezier(0.55, 0, 0.9, 0.4) 0.4s;
}

.timeline.is-visible .track::before {
  transform: scaleX(1);
}

.timeline.is-visible .track i {
  left: 100%;
}

/* La bille arrive, le mur s'allume. */
.timeline.is-visible .year.now strong {
  color: var(--mercurium);
  text-shadow:
    0 0 14px rgba(35, 231, 255, 0.8),
    0 0 40px rgba(35, 231, 255, 0.4);
  transition-delay: 1.45s;
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
  }
}

/* Trop etroit pour une frise horizontale : la bille descend d'une annee a
 * l'autre, comme dans un couloir vertical. */
@media (max-width: 560px) {
  .timeline {
    grid-template-columns: 1fr;
    grid-template-rows: auto 72px auto;
    justify-items: center;
    gap: 16px;
  }
  .track {
    width: 2px;
    height: 100%;
  }
  .track::before {
    transform-origin: top;
    transform: scaleY(0);
    background: linear-gradient(180deg, rgba(35, 231, 255, 0.2), var(--mercurium));
  }
  .timeline.is-visible .track::before {
    transform: scaleY(1);
  }
  .track i {
    top: 0;
    left: 50%;
    margin: -7px 0 0 -7px;
    transition: top 1.1s cubic-bezier(0.55, 0, 0.9, 0.4) 0.4s;
  }
  .timeline.is-visible .track i {
    top: 100%;
    left: 50%;
  }
}

/* -------------------------------------------------------------------- pass */

.offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  max-width: 960px;
  margin-inline: auto;
  align-items: stretch;
}

.offer {
  position: relative;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: 24px;
}

.offer h3 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.34em;
}

.offer .headline {
  margin: 16px 0 0;
  color: var(--bright);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
}

.perks {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.perks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.perks li::before {
  content: '';
  width: 9px;
  height: 9px;
  margin: 8px 0 0 6px;
  transform: rotate(45deg);
  background: var(--perk, var(--mercurium));
  box-shadow: 0 0 8px var(--perk, var(--mercurium));
}

.offer-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.offer.free {
  --accent: var(--terrarius);
  --perk: var(--terrarius);
}

.offer.free h3 {
  color: var(--terrarius);
}

/* Le pass garde son liseré lumineux, comme dans le jeu : une comete doree
 * fait le tour du cadre. */
@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.offer.pass {
  --perk: var(--star);
  border: 1px solid transparent;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 180, 67, 0.12), transparent 60%) padding-box,
    linear-gradient(180deg, #0d1326, #080c18) padding-box,
    conic-gradient(
        from var(--spin),
        rgba(255, 180, 67, 0.25) 0deg,
        rgba(255, 180, 67, 0.25) 250deg,
        rgba(255, 180, 67, 0.9) 320deg,
        #fff5dc 340deg,
        rgba(255, 180, 67, 0.25) 345deg
      )
      border-box;
  box-shadow: 0 30px 80px -40px rgba(255, 180, 67, 0.55);
  animation: orbit 6s linear infinite;
}

@keyframes orbit {
  to {
    --spin: 360deg;
  }
}

.offer.pass h3 {
  color: var(--star);
  text-shadow: 0 0 14px rgba(255, 180, 67, 0.6);
}

.offer.pass .badge {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--star);
  color: #1a1206;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

@media (max-width: 760px) {
  .offers {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
}

/* ---------------------------------------------------------------- lancement */

.launch {
  text-align: center;
}

.launch-icon {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 34px;
}

.launch-icon img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  position: relative;
  z-index: 1;
}

.launch-icon::before {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 231, 255, 0.35), transparent 65%);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    transform: scale(1.12);
    opacity: 0.7;
  }
}

.launch h2 {
  font-size: clamp(34px, 6vw, 68px);
  letter-spacing: 0.06em;
  text-shadow: 0 0 30px rgba(35, 231, 255, 0.35);
}

.launch p {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(18px, 1.7vw, 22px);
}

.launch .stores {
  justify-content: center;
  margin-top: 36px;
}

.launch .contact {
  margin-top: 30px;
  color: var(--muted);
  font-size: 17px;
}

.launch .contact a {
  color: var(--text);
  text-decoration-color: rgba(174, 195, 232, 0.35);
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------ pied de page */

.site-footer {
  position: relative;
  padding: 44px var(--gutter) 40px;
  border-top: 1px solid var(--panel-border);
  background: rgba(7, 10, 20, 0.7);
}

.footer-inner {
  width: min(100%, var(--wide));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--bright);
}

/* ------------------------------------------------------------ pages legales */

.legal {
  width: min(100% - var(--gutter) * 2, 780px);
  margin: 0 auto;
  padding: calc(var(--header) + 56px) 0 96px;
  font-family: var(--reading);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: #c3d2ec;
}

.legal .kicker {
  font-family: var(--body);
  font-weight: 600;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 0.03em;
}

.legal .updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.legal h2 {
  margin: 52px 0 0;
  padding-top: 8px;
  font-size: clamp(19px, 2.4vw, 23px);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.legal h2 .num {
  color: var(--mercurium);
  margin-right: 12px;
}

.legal h3 {
  margin: 28px 0 0;
  font-family: var(--reading);
  font-size: 17px;
  font-weight: 700;
  color: var(--bright);
}

.legal p,
.legal ul {
  margin: 14px 0 0;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--mercurium);
  text-underline-offset: 3px;
  text-decoration-color: rgba(35, 231, 255, 0.4);
  overflow-wrap: anywhere;
}

.legal strong {
  color: var(--bright);
}

.summary {
  margin-top: 36px;
  padding: 24px 26px;
  border: 1px solid rgba(35, 231, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(35, 231, 255, 0.06), rgba(35, 231, 255, 0.015));
}

.summary h2 {
  margin: 0;
  padding: 0;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mercurium);
}

.summary ul {
  margin-top: 12px;
}

.toc {
  margin-top: 34px;
  padding: 22px 26px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: rgba(10, 15, 30, 0.6);
}

.toc p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.toc ol {
  margin: 12px 0 0;
  padding-left: 22px;
  columns: 2 260px;
  column-gap: 32px;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  color: var(--bright);
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
}

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
}

.legal th,
.legal td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--panel-border);
}

.legal tr:last-child td {
  border-bottom: 0;
}

.legal th {
  color: var(--bright);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

/* Sur telephone, chaque ligne devient une fiche : un tableau a trois
 * colonnes n'y tient pas sans defilement de cote. */
@media (max-width: 600px) {
  .legal table {
    min-width: 0;
  }
  .legal thead {
    display: none;
  }
  .legal tr {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--panel-border);
  }
  .legal tr:last-child {
    border-bottom: 0;
  }
  .legal td {
    display: block;
    padding: 3px 0;
    border: 0;
  }
  .legal td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 15px;
}

/* -------------------------------------------------------------------- 404 */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: calc(var(--header) + 20px) var(--gutter) 60px;
  text-align: center;
}

.lost .code {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(72px, 16vw, 160px);
  line-height: 1;
  color: var(--bright);
  text-shadow:
    0 0 18px rgba(255, 92, 122, 0.7),
    0 0 60px rgba(255, 92, 122, 0.35);
}

.lost p {
  margin: 0;
  max-width: 460px;
  font-size: 20px;
}

/* ------------------------------------------------------ mouvement reduit */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
  }
  .art-ball,
  .art-star,
  .art-ring,
  .art-hit,
  .art-pip,
  .store::after,
  .scroll-cue i::after,
  .offer.pass {
    animation: none !important;
  }
  .art-pip {
    opacity: 1;
    fill: var(--star);
  }
}

.site-nav a[aria-current='page'],
.footer-links a[aria-current='page'] {
  color: var(--bright);
}

.lost h1 {
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: 0.04em;
}
