/* Doomed Raiders — styles du site
   Palette tirée du key art : noir de canopée, brume, os, lichen. */
:root {
  color-scheme: dark;
  --ink: #0b140f;        /* fond : noir de canopée */
  --canopy: #13211a;     /* surfaces */
  --moss: #24382c;       /* bordures */
  --mist: #b9c6a4;       /* texte secondaire, brume du key art */
  --bone: #efe7d2;       /* texte principal, couleur des fossiles */
  --lichen: #93b86b;     /* accent principal, boutons Steam */
  --amber: #d9a441;      /* accent secondaire, The Strong, lampes du musée */
  --teal: #4fb3a9;       /* The Fast */
  --rust: #c0532c;       /* touches « doomed » */
  --gallery: #171b16;    /* murs du musée */
  --label: #ece3c8;      /* cartels du musée */
  --fungus-bg: #0d0a0c;
  --fungus: #e7937c;     /* rose champignon de Fungus Forest */
  --shadow: #050906;

  --f-display: "Jacquard 12", "UnifrakturMaguntia", "Old English Text MT", Georgia, serif;
  --f-body: "Alegreya Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --f-pixel: "Silkscreen", "Courier New", ui-monospace, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--amber); color: var(--ink); padding: 8px 12px; font-family: var(--f-pixel);
}
.skip:focus { left: 8px; }

/* ---------- Typographie ---------- */
h1, h2 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(3rem, 7.2vw, 6.2rem); }
h2 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); margin-bottom: 0.3em; }
h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.3rem; line-height: 1.25; margin: 0 0 0.35em; text-wrap: balance; }
p { margin: 0 0 1em; }

.eyebrow, .kicker, .tag, .soon, .btn, .nav a, .lang, .step-n, .cartel-no, .biome-no, .scroll-hint,
.raider-sprite figcaption, .footer-h, .facts dt, .pillars dt {
  font-family: var(--f-pixel);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.eyebrow { color: var(--lichen); font-size: 0.8rem; margin-bottom: 0.9rem; }
.intro { color: var(--mist); max-width: 62ch; font-size: 1.2rem; }

.pixel { image-rendering: pixelated; }
.hero-logo, .brand img, .raider-big, .raider-sprite img, .wishlist-art, .studio-bear, .footer-logo, .nf-main img {
  image-rendering: pixelated;
}

/* ---------- Boutons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.85rem; line-height: 1.2;
  padding: 14px 20px;
  text-decoration: none;
  border: 3px solid var(--shadow);
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn-steam { background: var(--lichen); color: var(--ink); }
.btn-steam:hover { background: #a8cc80; }
.btn-large { font-size: 1rem; padding: 18px 26px; }
.btn-small { font-size: 0.72rem; padding: 9px 12px; box-shadow: 3px 3px 0 var(--shadow); }
.btn-ghost { background: transparent; color: var(--bone); border-color: var(--bone); box-shadow: 4px 4px 0 rgba(0,0,0,0.5); }
.btn-ghost:hover { background: rgba(239, 231, 210, 0.08); }
.btn-icon {
  display: inline-grid; place-items: center; width: 22px; height: 22px;
  background: var(--ink); color: var(--lichen); font-size: 1rem; line-height: 1;
}

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(11, 20, 15, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--moss);
}
.topbar-inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px; min-height: 64px;
}
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 20px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav a { font-size: 0.7rem; text-decoration: none; color: var(--mist); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--bone); border-bottom-color: var(--lichen); }
.topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { font-size: 0.75rem; text-decoration: none; color: var(--bone); border: 2px solid var(--moss); padding: 6px 8px; }
.lang:hover { border-color: var(--bone); }
@media (max-width: 980px) { .nav { display: none; } }
@media (max-width: 420px) { .btn-small { display: none; } }

/* ---------- Accueil ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 2px solid var(--moss); }
/* Parallaxe : l'image dépasse de son cadre de 12 % en haut et en bas,
   et site.js la déplace doucement pendant le défilement. */
.px-img {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%;
  object-fit: cover; will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}
.hero-art { object-position: 60% 40%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(11,20,15,0.94) 0%, rgba(11,20,15,0.78) 38%, rgba(11,20,15,0.12) 70%, rgba(11,20,15,0) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11,20,15,0) 30%);
}
.hero-content { padding-block: clamp(72px, 11vw, 140px) clamp(64px, 9vw, 120px); max-width: var(--wrap); }
.hero-content > * { max-width: 590px; }
.hero-logo { width: min(100%, 416px); margin-bottom: 18px; filter: drop-shadow(0 6px 0 rgba(0,0,0,0.45)); }
.kicker { color: var(--lichen); font-size: 0.8rem; letter-spacing: 0.4em; margin-bottom: 1rem; }
.hero h1 { margin-bottom: 0.35em; }
.lede { font-size: 1.25rem; color: var(--bone); max-width: 52ch; margin-bottom: 1.6rem; }
.soon { color: var(--mist); font-size: 0.72rem; margin-top: 1.4rem; }

@media (max-width: 720px) {
  .hero-shade { background: linear-gradient(0deg, var(--ink) 8%, rgba(11,20,15,0.82) 55%, rgba(11,20,15,0.55) 100%); }
  .hero-art { object-position: 72% 50%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }

/* L'expédition */
.steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.step { background: var(--canopy); border: 2px solid var(--moss); display: flex; flex-direction: column; }
.step-art { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 2px solid var(--moss); }
.step-art img { width: 100%; height: 100%; object-fit: cover; }
.step-body { padding: 20px 20px 22px; position: relative; }
.step-n {
  position: absolute; top: -26px; left: 16px;
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--amber); color: var(--ink); font-size: 1.1rem;
  border: 3px solid var(--shadow); box-shadow: 3px 3px 0 var(--shadow);
}
.step h3 { margin-top: 18px; }
.step p { color: var(--mist); font-size: 1.05rem; margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Le jeu : la « pas-baleine » en grand fond, avec parallaxe */
.section-game { position: relative; border-top: 2px solid var(--moss); padding-bottom: clamp(64px, 8vw, 110px); }
/* Grand bandeau pleine largeur : la baleine à gauche, le bateau et sa bulle à droite */
.game-bg { position: relative; overflow: hidden; height: clamp(440px, 58vw, 900px); }
/* Moins de débordement ici pour garder la bulle « NOT A WHALE » visible en haut */
.game-bg img { top: -6%; height: 112%; object-position: 50% 0%; }
.game-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--ink) 0%, rgba(11,20,15,0) 34%);
}
.game-grid { position: relative; display: flex; justify-content: flex-end; margin-top: clamp(-260px, -16vw, -120px); }
.game-copy {
  max-width: 560px;
  background: rgba(11, 20, 15, 0.9);
  border: 2px solid var(--moss);
  box-shadow: 8px 8px 0 var(--shadow);
  padding: clamp(24px, 3vw, 36px);
}
.game-copy > p { color: var(--mist); }
.pillars { display: grid; gap: 14px; margin: 1.6rem 0 0; }
.pillars div { border-left: 3px solid var(--lichen); padding-left: 14px; }
.pillars dt { font-size: 0.72rem; color: var(--lichen); margin-bottom: 2px; }
.pillars dd { margin: 0; font-size: 1.05rem; }
@media (max-width: 860px) {
  .game-bg { height: 62vw; min-height: 280px; }
  .game-grid { display: block; margin-top: -40px; }
  .game-copy { max-width: none; }
}

/* Le musée */
.section-museum {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(217,164,65,0.14), transparent 70%),
    var(--gallery);
  border-block: 2px solid var(--moss);
}
.section-museum .eyebrow { color: var(--amber); }
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 2.4rem; align-items: start; }
.plate { margin: 0; }
.plate-art { aspect-ratio: 4 / 3; overflow: hidden; border: 3px solid #0a0c0a; box-shadow: 0 18px 30px -18px rgba(0,0,0,0.9); }
.plate-art img { width: 100%; height: 100%; object-fit: cover; }
.cartel {
  display: grid; gap: 4px;
  background: var(--label); color: #231d12;
  margin: 16px 12px 0; padding: 14px 16px 16px;
  box-shadow: 3px 3px 0 #0a0c0a;
  font-size: 0.98rem; line-height: 1.45;
}
.cartel-no { font-size: 0.66rem; color: #7a5a1c; }
.cartel-name { font-style: italic; font-size: 1.3rem; }
.cartel-era { font-size: 0.9rem; color: #5a4d33; }
.cartel-note { border-top: 1px solid rgba(35,29,18,0.25); padding-top: 8px; margin-top: 4px; }
@media (max-width: 900px) { .plates { grid-template-columns: 1fr; max-width: 560px; } }

/* Les Raiders */
.raiders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 2.4rem; }
.raider { --acc: var(--lichen); background: linear-gradient(180deg, var(--canopy), #0f1a14); border: 2px solid var(--moss); display: flex; flex-direction: column; }
.raider-fast { --acc: var(--teal); }
.raider-strong { --acc: var(--amber); }
.raider-stage {
  position: relative; height: 440px; display: flex; align-items: flex-end; justify-content: center;
  padding: 24px 16px 0; border-bottom: 3px solid var(--acc);
  background: radial-gradient(ellipse at 50% 88%, color-mix(in srgb, var(--acc) 30%, transparent) 0%, transparent 62%);
}
.raider-big { max-height: 400px; width: auto; max-width: 88%; object-fit: contain; }
.raider-sprite {
  position: absolute; right: 14px; bottom: 14px; margin: 0;
  background: var(--ink); border: 3px solid var(--acc); padding: 10px 10px 6px; text-align: center;
}
.raider-sprite img { height: 84px; width: auto; margin: 0 auto 6px; transition: transform 0.2s steps(2); }
.raider:hover .raider-sprite img { animation: hop 0.6s steps(2) infinite; }
.raider-sprite figcaption { font-size: 0.6rem; color: var(--acc); }
.raider-body { padding: 22px 24px 26px; }
.raider-body h3 { font-family: var(--f-pixel); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.06em; text-transform: uppercase; }
.tag { display: inline-block; background: var(--acc); color: var(--ink); font-size: 0.7rem; padding: 5px 9px; margin-bottom: 14px; }
.raider-body p:last-child { color: var(--mist); font-size: 1.05rem; margin: 0; }
@keyframes hop { 50% { transform: translateY(-6px); } }
@media (max-width: 980px) { .raiders { grid-template-columns: 1fr; max-width: 520px; } .raider-stage { height: 400px; } }

/* Les biomes : carrousel à rotation automatique */
.carousel { margin-top: 2.4rem; }
.car-stage {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  border: 3px solid var(--shadow); box-shadow: 10px 10px 0 var(--shadow);
  background: var(--canopy);
}
.car-slides { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.car-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transform: translateX(calc(var(--from, 1) * 3%));
  transition: opacity 0.7s ease, transform 0.9s ease, visibility 0s linear 0.9s;
}
.car-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.7s ease, transform 0.9s ease, visibility 0s; }
.car-slide.is-leaving { transform: translateX(calc(var(--from, 1) * -3%)); }
.car-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-caption {
  position: absolute; left: clamp(16px, 3vw, 36px); bottom: clamp(20px, 3vw, 36px);
  max-width: 440px;
  background: rgba(11, 20, 15, 0.94); border: 2px solid var(--moss);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 16px 20px 18px;
}
.car-caption h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-top: 6px; }
.car-caption p { color: var(--mist); margin: 0; font-family: var(--f-pixel-text, var(--f-body)); font-size: 1.08rem; line-height: 1.5; }
.biome-no { color: var(--lichen); font-size: 0.7rem; }

.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 56px; height: 72px;
  background: rgba(11, 20, 15, 0.9); color: var(--lichen);
  border: 3px solid var(--shadow); box-shadow: 4px 4px 0 var(--shadow);
  cursor: pointer; transition: background-color 0.12s, color 0.12s;
}
.car-arrow:hover { background: var(--lichen); color: var(--ink); }
.car-prev { left: 14px; }
.car-next { right: 14px; }

.car-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(11, 20, 15, 0.6); z-index: 2; }
.car-progress i { display: block; height: 100%; width: 0; background: var(--lichen); }
.car-progress i.run { animation: car-fill var(--car-dur, 6s) linear forwards; }
.carousel.is-paused .car-progress i { animation-play-state: paused; }
@keyframes car-fill { to { width: 100%; } }

.car-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.car-tab {
  font-family: var(--f-pixel-text, var(--f-body)); font-size: 0.98rem; line-height: 1.2;
  color: var(--mist); background: var(--canopy);
  border: 2px solid var(--moss); padding: 8px 12px; cursor: pointer;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.car-tab span { font-family: var(--f-pixel); font-size: 0.66rem; color: var(--lichen); margin-right: 4px; }
.car-tab:hover { color: var(--bone); border-color: var(--lichen); }
.car-tab.is-active { background: var(--lichen); color: var(--ink); border-color: var(--shadow); box-shadow: 3px 3px 0 var(--shadow); }
.car-tab.is-active span { color: var(--ink); }

.biome-secret-note { margin: 1.6rem 0 0; color: var(--mist); font-family: var(--f-pixel-text, var(--f-body)); border-left: 3px dashed var(--rust); padding-left: 14px; }
.biome-secret-note strong { color: var(--rust); font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; margin-right: 6px; vertical-align: -2px; }

@media (max-width: 720px) {
  .car-stage { aspect-ratio: 4 / 5; }
  .car-caption { left: 12px; right: 12px; bottom: 16px; max-width: none; padding: 12px 14px 14px; }
  .car-arrow { top: 38%; width: 44px; height: 56px; }
  .car-prev { left: 8px; } .car-next { right: 8px; }
  .car-tab { font-size: 0.9rem; padding: 7px 10px; }
}

/* Voyager : carte du monde en fond (parallaxe), montgolfière par-dessus à gauche */
.travel-band {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(560px, 52vw, 860px);
  display: flex; align-items: center;
  padding-block: clamp(64px, 8vw, 110px);
  border-block: 2px solid var(--moss);
}
.travel-band .px-img { z-index: -2; object-position: 50% 50%; image-rendering: pixelated; }
.travel-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11,20,15,0.55) 0%, rgba(11,20,15,0) 18%, rgba(11,20,15,0) 82%, rgba(11,20,15,0.55) 100%),
    linear-gradient(270deg, rgba(11,20,15,0.55) 0%, rgba(11,20,15,0) 50%);
}
.travel-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.travel-balloon { margin: 0; border: 3px solid var(--shadow); box-shadow: 10px 10px 0 var(--shadow); }
.travel-copy {
  background: rgba(11, 20, 15, 0.92); border: 2px solid var(--moss);
  box-shadow: 8px 8px 0 var(--shadow); padding: clamp(22px, 3vw, 34px);
}
.travel-copy p:last-child { color: var(--mist); margin: 0; }
@media (max-width: 860px) { .travel-grid { grid-template-columns: 1fr; } }

/* Réseaux sociaux */
.social { padding-block: clamp(64px, 8vw, 100px); background: var(--ink); border-top: 2px solid var(--moss); }
.social h2 { margin-bottom: 0.25em; }
.social-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.social-link {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 22px 10px 18px; text-decoration: none;
  background: var(--canopy); border: 2px solid var(--moss); color: var(--bone);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s, color 0.12s;
}
.social-link .px-icon { width: 48px; height: 48px; color: var(--lichen); image-rendering: pixelated; }
.social-link:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow); border-color: var(--lichen); }
.social-link:hover .px-icon { color: var(--bone); }
.social-name { font-family: var(--f-pixel); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }
.social-handle { font-family: var(--f-pixel-text, var(--f-body)); color: var(--mist); font-size: 0.86rem; overflow-wrap: normal; }
@media (max-width: 980px) { .social-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .social-list { grid-template-columns: repeat(2, 1fr); } }

/* Liste de souhaits */
.wishlist {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 90% at 20% 100%, rgba(147,184,107,0.22), transparent 60%), #0f1d15;
  border-block: 3px solid var(--lichen);
  padding-block: clamp(64px, 9vw, 110px);
}
.wishlist-art { position: absolute; right: max(2vw, calc((100vw - var(--wrap)) / 2)); bottom: 0; height: 88%; width: auto; z-index: -1; opacity: 0.95; }
.wishlist-inner > * { max-width: 620px; }
.wishlist-lede { font-size: 1.3rem; }
.reasons { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 10px; }
.reasons li { padding-left: 28px; position: relative; color: var(--mist); }
.reasons li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 12px; background: var(--lichen); box-shadow: 3px 3px 0 var(--shadow); }
@media (max-width: 860px) { .wishlist-art { opacity: 0.18; height: 70%; } }

/* Le studio */
.studio-grid { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 64px); align-items: center; }
.studio-copy > p { color: var(--mist); max-width: 60ch; }
.studio-copy .from a { font-family: var(--f-pixel); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; color: var(--fungus); text-decoration: none; }
.studio-copy .from a:hover { text-decoration: underline; }
/* Logo de l'ours : dessiné en blocs de 4 px (153 × 98 pixels réels).
   Toujours affiché à un multiple entier pour garder des bords nets. */
.studio-bear { width: 612px; height: auto; max-width: none; justify-self: center; image-rendering: pixelated; }
@media (max-width: 1180px) { .studio-bear { width: 459px; } }
@media (max-width: 520px) { .studio-bear { width: 306px; } }
.team { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { display: flex; align-items: center; gap: 16px; background: var(--canopy); border: 2px solid var(--moss); padding: 16px; }
.member img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; border: 3px solid var(--moss); }
.member strong { display: block; font-size: 1.1rem; line-height: 1.25; }
.member span { color: var(--mist); font-size: 0.95rem; }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } .team { grid-template-columns: 1fr; max-width: 520px; } }

/* Fungus Forest */
.section-fungus { background: var(--fungus-bg); border-top: 3px solid var(--fungus); }
.section-fungus .eyebrow { color: var(--fungus); }
.fungus-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 1rem; }
.fungus-media { display: grid; gap: 20px; }
.fungus-title { font-family: var(--f-pixel); text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; color: var(--fungus); letter-spacing: 0.02em; margin-bottom: 0.5em; }
.fungus-copy > p { color: #d9cfc9; }
.video { position: relative; display: block; border: 3px solid var(--fungus); aspect-ratio: 16 / 9; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.2s; }
.video:hover img { opacity: 1; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--fungus); color: #1a0f0c; padding: 12px 18px;
  font-family: var(--f-pixel); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
  border: 3px solid #000; box-shadow: 4px 4px 0 #000; white-space: nowrap;
}
.play-icon { width: 0; height: 0; border-left: 12px solid #1a0f0c; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 1.4rem 0 1.8rem; }
.facts { grid-auto-flow: dense; }
.facts div:nth-child(2) { grid-column: 1 / -1; }
.facts dt { font-size: 0.66rem; color: var(--fungus); }
.facts dd { margin: 0; font-size: 1rem; }
.btn-fungus { background: var(--fungus); color: #1a0f0c; border-color: #000; box-shadow: 4px 4px 0 #000; }
.btn-fungus:hover { background: #f2a893; box-shadow: 6px 6px 0 #000; }
.section-fungus .btn-ghost { border-color: #d9cfc9; color: #d9cfc9; }
.fungus-handheld { margin-top: 2rem; max-width: 360px; border: 3px solid #000; }
@media (max-width: 900px) { .fungus-grid { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* Pied de page */
.footer { background: #070d0a; border-top: 2px solid var(--moss); padding-block: 56px 28px; color: var(--mist); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { width: 210px; margin-bottom: 14px; }
.footer-h { font-size: 0.7rem; color: var(--bone); margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bone); text-decoration: underline; }
.legal { font-size: 0.85rem; margin-top: 40px; }

/* Page 404 */
.nf { min-height: 100vh; display: grid; place-items: center; }
.nf-main { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: 60px; }
.nf-main img { width: 416px; }
.nf-main h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.nf-main p { color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .px-img { transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Pixel art : sous-titres et textes courts ----------
   Pixelify Sans, une police pixel lisible en minuscules.
   Les longs paragraphes restent en Alegreya Sans. */
:root { --f-pixel-text: "Pixelify Sans", "Silkscreen", "Courier New", ui-monospace, monospace; }
h3,
.intro, .lede, .soon,
.step p, .biome p, .raider-body p, .pillars dd,
.wishlist-lede, .reasons li,
.member strong, .member span,
.facts dd, .cartel-note, .footer-grid p, .footer ul a, .legal {
  font-family: var(--f-pixel-text);
  letter-spacing: 0.01em;
}
h3 { font-weight: 600; font-size: 1.4rem; line-height: 1.2; }
.footer ul a { font-size: 1.05rem; }
.biome h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.intro { font-size: 1.25rem; line-height: 1.5; }
.lede { font-size: 1.3rem; line-height: 1.5; }
.step p, .biome p, .raider-body p:last-child, .pillars dd, .reasons li, .facts dd { font-size: 1.08rem; line-height: 1.5; }
.member strong { font-weight: 600; font-size: 1.15rem; }
.cartel-note { font-size: 1rem; line-height: 1.45; }

/* Fungus Forest : visuel principal en bandeau pleine largeur, avec parallaxe.
   Le fond de l'image est noir, donc l'image est « contenue » et se fond dans le bandeau. */
.fungus-band {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(420px, 56vw, 900px);
  background: #000;
  border-top: 3px solid var(--fungus);
  display: flex; align-items: flex-end;
}
.fungus-band .px-img { object-fit: contain; object-position: 50% 50%; z-index: -2; image-rendering: pixelated; }
.fungus-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, var(--fungus-bg) 0%, rgba(13,10,12,0) 28%);
}
.fungus-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 0 clamp(24px, 4vw, 48px); }
.fungus-band-inner .eyebrow { color: var(--fungus); margin: 0; }
.section-fungus { border-top: 0; padding-top: clamp(40px, 6vw, 72px); }

/* Étiquette « Page Steam : prochainement » (tant que la page Steam n'est pas ouverte) */
.btn-soon {
  background: repeating-linear-gradient(135deg, rgba(147,184,107,0.16) 0 10px, rgba(147,184,107,0.06) 10px 20px);
  color: var(--lichen); border: 3px dashed var(--lichen); box-shadow: none; cursor: default;
}
.btn-soon:hover, .btn-soon:active { transform: none; box-shadow: none; }
.btn-soon .btn-icon { background: var(--lichen); color: var(--ink); }
.footer .soon-link { font-family: var(--f-pixel-text, var(--f-body)); font-size: 1.05rem; color: var(--mist); opacity: 0.8; }
