/* InfiniteCraft : le site public. Charte du serveur : vert #22C55E, neutres zinc, Plus Jakarta Sans, cases et fenêtres
   du jeu (art/menus/hd/hd.css). L'interface est lisse, seuls les objets restent en pixel art. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #09090B;
  --surface: #18181B;
  --surface-low: #111114;
  --line: #27272A;
  --line-strong: #3F3F46;
  --ink: #FAFAFA;
  --ink-2: #D4D4D8;
  --ink-3: #A1A1AA;
  --well: #0B0D11;
  --green: #22C55E;
  --green-light: #4ADE80;
  --teal: #2DD4BF;
  --on-green: #052E16;
  --fuel: #38BDF8;
  --fuel-text: #7CC4E8;
  --rank: #55D7FF;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  word-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* La grille et le halo du fond, comme les fenêtres du jeu, seulement derrière le haut de la page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(1000px, 130vh);
  z-index: -1;
  background:
    radial-gradient(50% 42% at 62% 46%, rgba(34, 197, 94, .13), transparent 72%),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  pointer-events: none;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: var(--green-light); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--green); color: var(--on-green); }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

/* Les objets restent en pixel art. */
.px { image-rendering: crisp-edges; image-rendering: pixelated; }
/* Un verbe à tiret ne se coupe pas en fin de ligne. */
.nb { white-space: nowrap; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 16px; border-radius: 10px;
  background: var(--green); color: var(--on-green); font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--on-green); }

.cap {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  line-height: 1.3;
}

/* ─── Haut de page ─────────────────────────────────────────────────────────────────────────────────────────── */

.top {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 12px 24px;
}
.brand { display: block; border-radius: 6px; flex: none; }
.brand img { width: 228px; height: 32px; }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 4px 20px; font-weight: 700; font-size: .9375rem; }
.top-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.top-nav a:hover { color: var(--ink); }
.langs {
  display: flex; flex: none; padding: 3px; border-radius: 12px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.langs a {
  display: block; min-width: 40px; padding: 7px 8px; border-radius: 9px; text-align: center; text-decoration: none;
  color: var(--ink-3); font-size: .8125rem; font-weight: 800; letter-spacing: .04em; line-height: 1.4;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--green); color: var(--on-green); }

/* ─── Le titre ─────────────────────────────────────────────────────────────────────────────────────────────── */

.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(12px, 3.4vw, 44px) var(--gutter) 0; }
.kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; color: var(--ink-3);
  font-size: .875rem; font-weight: 700; letter-spacing: .02em;
}
.kicker-flags { display: flex; gap: 5px; }
.kicker-flags img { width: 24px; height: 16px; }
h1 {
  margin-top: 14px; color: var(--ink);
  font-size: var(--h1, clamp(2.625rem, 6.4vw, 5.125rem));
  font-weight: 800; letter-spacing: -.036em; word-spacing: .07em; line-height: 1.04;
}
html[lang="fr"] { --h1: clamp(2.25rem, 5vw, 4rem); }
html[lang="de"] { --h1: clamp(2.25rem, 5vw, 4rem); }
html[lang="es"] { --h1: clamp(2.625rem, 6.2vw, 5rem); }
h1 .line { display: block; }
h1 .dot { margin-left: -.05em; }
h1 em {
  font-style: normal; color: var(--green-light);
  background: linear-gradient(90deg, var(--green-light), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px clamp(28px, 6vw, 88px);
  align-items: end; margin-top: clamp(16px, 2.2vw, 26px);
}
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 44em; }
.hero-join .address { margin-top: 8px; }
.hero-join-note { margin-top: 8px; font-size: .875rem; color: var(--ink-3); }
.hero-join-note a { color: var(--ink-2); }
.hero-join-note a:hover { color: var(--ink); }

/* L'adresse et son bouton : le même dessin partout. */
.address {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 7px 7px 7px 16px; border-radius: 16px;
  background: var(--well); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .65), 0 0 0 1.5px rgba(74, 222, 128, .55);
}
.address code {
  flex: 1 1 auto; min-width: 0; font-family: inherit; font-weight: 700; color: var(--ink);
  font-size: clamp(.9375rem, 1.45vw, 1.0625rem); letter-spacing: -.005em;
  overflow-wrap: anywhere; -webkit-user-select: all; user-select: all;
}
.copy {
  flex: none; min-height: 44px; min-width: 92px; padding: 8px 16px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--green); color: var(--on-green); font-weight: 800; font-size: .9375rem; line-height: 1.2;
  transition: background .15s;
}
.copy:hover { background: var(--green-light); }
.copy.is-done { background: var(--ink); }
.copy-buffer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }

/* ─── La scène de la fusion : deux items, la machine, un troisième item ───────────────────────────────────────── */

.stage {
  position: relative; margin-top: clamp(26px, 3.6vw, 44px); padding: clamp(18px, 2.6vw, 32px); border-radius: 28px;
  background:
    radial-gradient(38% 62% at 46% 42%, rgba(74, 222, 128, .12), transparent 75%),
    linear-gradient(180deg, var(--surface), var(--surface-low));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.eq {
  display: grid; align-items: center; gap: 10px 14px;
  grid-template-columns: auto clamp(30px, 3.6vw, 52px) minmax(0, 1fr) clamp(30px, 3.6vw, 52px) minmax(250px, 340px);
}

/* Les cases, dessinées comme dans la fenêtre de la machine en jeu. */
.slot {
  --size: 96px;
  position: relative; display: grid; place-items: center; flex: none; width: var(--size); height: var(--size);
  border-radius: 18px;
  /* Une lueur derrière l'objet : les textures sombres (briquet, éclat) se détachent du fond de la case. */
  background: radial-gradient(closest-side, rgba(255, 255, 255, .13), transparent 92%), var(--well);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
}
.slot img { width: 64px; height: 64px; transition: opacity .2s; }
.slot-ing { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 2px rgba(74, 222, 128, .5); }
.slot-ing img.is-gone { opacity: 0; transition: none; }
.slot-fuel {
  --size: 56px; border-radius: 12px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .34), transparent 92%), var(--well);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 2px rgba(56, 189, 248, .75), 0 0 16px -2px rgba(56, 189, 248, .3);
}
.slot-fuel img { width: 32px; height: 32px; }
.slot-res {
  --size: 112px; border-radius: 22px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7), 0 0 0 3px var(--rank), 0 0 34px -4px var(--rank);
  transition: box-shadow .35s;
}
.slot-res img { width: 80px; height: 80px; }
.slot-res img.is-empty { opacity: 0; transition: none; }
.slot-res.is-reveal::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; box-shadow: 0 0 0 3px var(--rank);
  animation: ring .7s ease-out both; pointer-events: none;
}
@keyframes ring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }

/* L'éclat corrompu animé d'Ewan : 54 images de 16 × 16 les unes sous les autres. */
.glitch {
  position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; opacity: 0;
  background: url("img/corrupted.png") 0 0 / 100% 5400%;
}
.glitch.is-on { opacity: 1; animation: glitch 1.08s steps(53) infinite; }
@keyframes glitch { to { background-position: 0 100%; } }

.eq-in { display: grid; gap: 10px; justify-items: start; }
.slots { display: flex; align-items: center; gap: 8px; }
.plus {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(74, 222, 128, .12);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .4);
}
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 2px; background: var(--green-light);
  transform: translate(-50%, -50%);
}
.plus::before { width: 16px; height: 4px; }
.plus::after { width: 4px; height: 16px; }
.fuel { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.fuel-text { font-size: .8125rem; line-height: 1.35; color: var(--ink-3); max-width: 170px; }
.fuel-text strong { display: block; color: var(--fuel-text); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

.arrow { display: block; width: 100%; height: auto; overflow: visible; }

.machine { position: relative; }
.machine::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 1%; height: 14%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
}
.machine-halo {
  position: absolute; left: 8%; right: 8%; top: 6%; bottom: 6%; z-index: 0; border-radius: 50%;
  background: var(--rank); opacity: .1; filter: blur(46px); transition: opacity .45s, background-color .45s;
}
.machine-body { position: relative; z-index: 1; }
.machine-body > img:first-child { width: 100%; height: auto; }
.machine-fire { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.bulb {
  position: absolute; width: 10.6%; height: auto; aspect-ratio: 1; opacity: 0;
  transform: translate(-50%, -50%);
}
.bulb-a { left: 17.67%; top: 45%; }
.bulb-b { left: 82.33%; top: 56%; }
.bulb.is-in { opacity: 1; animation: bob 1.1s ease-in-out infinite alternate; }
.bulb-b.is-in { animation-delay: -.5s; }
@keyframes bob { from { transform: translate(-50%, -56%); } to { transform: translate(-50%, -44%); } }
.machine.is-on .machine-halo { opacity: .42; animation: halo 1.3s ease-in-out infinite alternate; }
.machine.is-on .machine-fire { opacity: 1; animation: flicker .9s steps(4) infinite; }
.machine.is-on .machine-body { animation: rumble .26s linear infinite; }
@keyframes halo { from { opacity: .3; } to { opacity: .52; } }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes rumble {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1px, .5px); }
  50% { transform: translate(1px, -.5px); }
  75% { transform: translate(-.5px, -.5px); }
}

.flyer { position: absolute; z-index: 5; pointer-events: none; transform-origin: 50% 50%; }

.eq-out { display: grid; gap: 12px; justify-items: start; align-content: center; }
.cards { display: grid; width: 100%; }
.card {
  grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .28s, transform .28s;
}
.card.is-on { visibility: visible; opacity: 1; transform: none; }
.card-name { color: var(--c); font-size: clamp(1.25rem, 1.9vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.card-rank { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--c); font-size: .875rem; font-weight: 700; line-height: 1.3; }
.star { flex: none; width: 13px; height: 13px; fill: currentColor; }
.card-desc { margin-top: 10px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.card-power { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.card-power strong { color: var(--ink); font-weight: 700; }
.card-recipe { margin-top: 8px; font-size: .8125rem; line-height: 1.4; color: var(--ink-3); }

.stage-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.rail { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb {
  --c: var(--line-strong);
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--well); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: box-shadow .2s, transform .15s;
}
.thumb img { width: 32px; height: 32px; }
.thumb:hover { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6), 0 0 0 1px var(--c); transform: translateY(-1px); }
.thumb[aria-pressed="true"] { box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6), 0 0 0 2px var(--c), 0 0 16px -4px var(--c); }
.pause {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px;
  cursor: pointer; background: transparent; color: var(--ink-2); font-weight: 700; font-size: .875rem;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.pause:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); }
.pause svg { width: 12px; height: 12px; fill: currentColor; }
.pause .icon-play { display: none; }
.pause.is-paused .icon-pause { display: none; }
.pause.is-paused .icon-play { display: block; }
.note { flex: 1 1 320px; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }

/* ─── Comment ça se joue ───────────────────────────────────────────────────────────────────────────────────── */

.section { max-width: var(--wrap); margin: clamp(64px, 9vw, 112px) auto 0; padding: 0 var(--gutter); scroll-margin-top: 20px; }
.section-title { color: var(--green-light); font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
.play {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px clamp(24px, 5vw, 72px);
  padding: clamp(26px, 3.6vw, 44px) 0; border-top: 1px solid var(--line);
}
.play h3 { color: var(--ink); font-size: clamp(2rem, 4.1vw, 3.375rem); font-weight: 800; letter-spacing: -.032em; word-spacing: .07em; line-height: 1.06; }
.play-text { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.65; max-width: 40em; }
.proof { margin-top: 20px; }
.proof-caption { margin-top: 10px; font-size: .875rem; color: var(--ink-3); }

.window { max-width: 460px; }
.window img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent);
}

.ranks { display: flex; flex-wrap: wrap; gap: 8px; }
.rank {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--c); font-size: .875rem; font-weight: 700; line-height: 1.4;
}
.rank b { color: var(--ink-3); font-weight: 700; }

.hearts { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hearts span { display: block; width: 240px; height: 24px; background: url("img/heart.png") 0 0 / 24px 24px repeat-x; image-rendering: crisp-edges; image-rendering: pixelated; }
.hearts .hearts-more { filter: grayscale(1) brightness(.42); }

.members { display: grid; grid-template-columns: repeat(10, minmax(0, 34px)); gap: clamp(3px, 1.2vw, 6px); }
.member {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 22%; background: var(--well);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 0 0 1px rgba(74, 222, 128, .3);
}
.members img { width: 70%; height: auto; }

.flags { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.flags li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: .9375rem; }
.flags img { width: 48px; height: 32px; }

/* ─── Rejoindre ────────────────────────────────────────────────────────────────────────────────────────────── */

.join-panel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(28px, 5vw, 72px);
  grid-template-rows: auto 1fr; grid-template-areas: "head addresses" "how addresses";
  padding: clamp(22px, 4vw, 56px); border-radius: 28px;
  background:
    radial-gradient(70% 120% at 100% 0, rgba(34, 197, 94, .15), transparent 62%),
    linear-gradient(180deg, var(--surface), var(--surface-low));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.join-panel h2 { color: var(--ink); font-size: clamp(2rem, 4.1vw, 3.375rem); font-weight: 800; letter-spacing: -.032em; word-spacing: .07em; line-height: 1.06; }
.join-version { margin-top: 12px; color: var(--ink); font-weight: 700; }
.join-warning {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(245, 197, 66, .08); color: #F4DE9C;
  box-shadow: inset 0 0 0 1px rgba(245, 197, 66, .28); font-size: .9375rem; line-height: 1.5;
}
.join-warning strong { color: #F5C542; font-weight: 800; }
.join-head { grid-area: head; }
.join-how { grid-area: how; }
.addresses { grid-area: addresses; display: grid; gap: 10px; align-content: start; }
.addr {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 14px;
  border-radius: 18px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px var(--line);
}
.addr.is-mine { box-shadow: inset 0 0 0 1.5px rgba(74, 222, 128, .55); }
.addr > img { width: 48px; height: 32px; }
.addr-country { color: var(--ink); font-weight: 800; font-size: 1.0625rem; line-height: 1.3; }
.addr-country span { color: var(--ink-3); font-weight: 500; font-size: .875rem; margin-left: 6px; }
.addr .address { grid-column: 1 / -1; margin-top: 10px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); }
.addr.is-mine .address { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .65), 0 0 0 1px rgba(74, 222, 128, .35); }
.addr:not(.is-mine) .copy { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.addr:not(.is-mine) .copy:hover { background: var(--line); }
.addr:not(.is-mine) .copy.is-done { background: var(--ink); color: var(--on-green); }
.steps { counter-reset: step; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 40px; counter-increment: step; line-height: 1.5; font-size: .9375rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(74, 222, 128, .12); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .4);
  color: var(--green-light); font-weight: 800; font-size: .8125rem;
}
.join-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 12px; text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-weight: 700;
}
.btn:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }

/* ─── Règles et données ────────────────────────────────────────────────────────────────────────────────────── */

.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(32px, 6vw, 88px); }
.info h2 { color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.022em; word-spacing: .05em; line-height: 1.15; }
.facts { margin-top: 20px; display: grid; gap: 16px; }
.facts dt { color: var(--ink); font-weight: 700; }
.facts dd { color: var(--ink-3); font-size: .9375rem; line-height: 1.55; }
.facts dd a { color: var(--ink-2); }
.facts dd a:hover { color: var(--ink); }
.info-end { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9375rem; line-height: 1.55; }
.info-end a { color: var(--ink-2); }
.info-end a:hover { color: var(--ink); }

/* ─── Bas de page ──────────────────────────────────────────────────────────────────────────────────────────── */

.foot {
  max-width: var(--wrap); margin: clamp(56px, 8vw, 96px) auto 0; padding: 28px var(--gutter) 40px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px;
}
.foot-legal { color: var(--ink-2); font-size: .9375rem; font-weight: 700; line-height: 1.5; max-width: 46em; }
.foot-credits { margin-top: 8px; color: var(--ink-3); font-size: .8125rem; line-height: 1.55; max-width: 60em; }
.foot-credits a { color: var(--ink-3); }
.foot-credits a:hover { color: var(--ink); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; font-weight: 700; }
.foot-langs a { color: var(--ink-2); padding: 4px 0; }
.foot-langs a:hover { color: var(--ink); }
.foot-langs a[aria-current] { color: var(--green-light); }

/* ─── Écrans étroits ───────────────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .eq { grid-template-columns: auto clamp(30px, 3.6vw, 44px) minmax(0, 1fr) clamp(30px, 3.6vw, 44px) minmax(240px, 280px); }
  .slot { --size: 80px; }
  .slot img { width: 48px; height: 48px; }
  .slot-fuel { --size: 52px; }
  .slot-fuel img { width: 32px; height: 32px; }
  .slot-res { --size: 96px; }
  .slot-res img, .glitch { width: 64px; height: 64px; }
  .glitch { margin: -32px 0 0 -32px; }
}

@media (max-width: 960px) {
  .slot { --size: 96px; }
  .slot img { width: 64px; height: 64px; }
  .slot-fuel { --size: 56px; }
  .slot-fuel img { width: 32px; height: 32px; }
  .slot-res { --size: 112px; }
  .slot-res img, .glitch { width: 80px; height: 80px; }
  .glitch { margin: -40px 0 0 -40px; }
  .eq { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
  .eq-in { justify-items: center; }
  .fuel-text { max-width: 220px; }
  .arrow { width: 34px; transform: rotate(90deg); }
  .machine { width: min(100%, 420px); }
  .eq-out { width: 100%; max-width: 560px; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; align-items: center; }
  .eq-out .cap { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero-row, .play, .info { grid-template-columns: minmax(0, 1fr); }
  .join-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "addresses" "how"; }
  .top-nav a:not([data-link]):first-child { display: none; }
  .play-body { margin-top: 2px; }
}

@media (max-width: 560px) {
  .top { padding-top: 14px; padding-bottom: 14px; gap: 10px; }
  .top-nav { display: none; }
  .langs { margin-left: auto; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .stage { border-radius: 22px; }
  .slot { --size: 84px; }
  .slot-fuel { --size: 52px; }
  .slot-res { --size: 96px; }
  .slot-res img, .glitch { width: 64px; height: 64px; }
  .glitch { margin: -32px 0 0 -32px; }
  .slot-fuel img { width: 32px; height: 32px; }
  .eq-out { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .eq-out .cap { text-align: center; }
  .card { text-align: center; }
  .card-rank { justify-content: center; }
  .rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .thumb { width: auto; height: auto; aspect-ratio: 1; }
  .join-panel { border-radius: 22px; }
}

@media (max-width: 400px) {
  .brand img { width: 171px; height: 24px; }
  .langs a { min-width: 34px; padding: 6px 6px; }
  .address { padding-left: 12px; }
  .copy { flex: 1 1 100%; }
}

/* ─── Sans animation, pour ceux qui le demandent ───────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Contraste forcé (Windows) : le titre en dégradé repasse en couleur système. */
@media (forced-colors: active) {
  h1 em { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; }
  .langs a[aria-current] { outline: 2px solid CanvasText; }
}
