/* =====================================================================
   MinePixel — feuille de style
   Direction : obsidienne chaude, lumière de torche, bords crantés « pixel ».
   ===================================================================== */

:root {
  --bg: #0a0d0b;
  --bg-2: #0f1411;
  --panel: #141a16;
  --panel-2: #1a221d;
  --line: #26312a;
  --line-2: #364439;
  --ink: #f1ead8;
  --mute: #9aa699;
  --dim: #66726a;
  --amber: #ffb12b;
  --amber-2: #ff8a1f;
  --amber-ink: #1c1303;
  --ok: #4fdc8c;
  --bad: #ff5b4a;
  --java: #8bd35a;
  --bedrock: #58d6e6;

  --rail: 96px;
  --gut: clamp(20px, 4vw, 64px);
  --n: 6px; /* taille des crans */

  --f-display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-pixel: "Silkscreen", "Press Start 2P", ui-monospace, "Courier New", monospace;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--amber-ink); padding: 10px 14px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- Utilitaires de typographie ---------- */
.pixel { font-family: var(--f-pixel); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.eyebrow { color: var(--amber); display: block; margin-bottom: 18px; }
.out { color: transparent; -webkit-text-stroke: 2px var(--amber); text-stroke: 2px var(--amber); }
.h1, .h2, .mega, .status__word, .profile__name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; }
.h1 { font-size: clamp(48px, 6vw, 96px); line-height: .9; }
.h2 { font-size: clamp(40px, 5vw, 80px); line-height: .92; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--mute); max-width: 34em; }
.wrap { padding-left: var(--gut); padding-right: var(--gut); max-width: 1500px; margin-left: auto; margin-right: auto; }

.caret { display: inline-block; width: .42em; height: .78em; margin-left: .08em; background: var(--amber); vertical-align: baseline; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Notch (coins crantés) ---------- */
.notch, .btn, .chip, .ticket, .scard, .os, .chips button, .search, .pcard, .tag, .live-card, .cta-card, .help, .actions button, .shot__frame {
  clip-path: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
}

/* ---------- Boutons & puces ---------- */
.btn {
  --n: 4px;
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--amber); color: var(--amber-ink);
  border: 0; padding: 15px 24px 17px;
  font-family: var(--f-pixel); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.28), inset 0 3px 0 rgba(255,255,255,.35);
  transition: transform .18s var(--ease), filter .18s;
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 3px 0 rgba(0,0,0,.28); }
.btn b { font-family: var(--f-body); transition: transform .2s var(--ease); }
.btn:hover b { transform: translate(2px, -2px); }
.btn--sm { padding: 10px 16px 12px; font-size: 11px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--amber); color: var(--amber); }
.btn--dark { background: var(--amber-ink); color: var(--amber); box-shadow: none; }
.btn--off { background: repeating-linear-gradient(135deg, var(--panel-2) 0 8px, var(--panel) 8px 16px); color: var(--dim); box-shadow: none; cursor: not-allowed; }
.btn--off:hover { transform: none; filter: none; }
.btn.is-done { background: var(--ok); }

.chip {
  --n: 4px;
  display: inline-flex; gap: .5em; align-items: center;
  padding: 8px 14px 9px; background: rgba(20,26,22,.8); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 2px var(--line-2);
  font-family: var(--f-pixel); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  transition: .2s var(--ease);
}
.chip b { font-family: var(--f-body); color: var(--amber); transition: transform .2s var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 2px var(--amber); transform: translateY(-2px); }
.chip:hover b { transform: translate(2px, -2px); }
.chip--hot { background: var(--amber); color: var(--amber-ink); box-shadow: none; }
.chip--hot b { color: var(--amber-ink); }

.link-arrow { display: inline-flex; gap: .55em; align-items: center; font-weight: 600; color: var(--amber); border-bottom: 2px solid transparent; transition: .2s; }
.link-arrow b { transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--amber); }
.link-arrow:hover b { transform: translateX(5px); }

.tag { --n: 3px; display: inline-block; padding: 4px 12px 5px; font-family: var(--f-pixel); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--panel-2); }
.tag--java { color: var(--java); box-shadow: inset 0 0 0 1px rgba(139,211,90,.5); }
.tag--bedrock { color: var(--bedrock); box-shadow: inset 0 0 0 1px rgba(88,214,230,.5); }
.lab { color: var(--mute); }
.lab--java { color: var(--java); }
.lab--bedrock { color: var(--bedrock); }

/* ---------- Rail (bureau) ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 0 24px;
  background: var(--bg); border-right: 1px solid var(--line);
}
.rail__logo { width: 46px; color: var(--amber); transition: transform .3s var(--ease); }
.rail__logo:hover { transform: rotate(-6deg) scale(1.08); }
.rail__logo svg, .topbar__brand svg { width: 100%; height: auto; overflow: visible; }
.logo-spark { animation: logoSpark 2.4s steps(1) infinite; }
@keyframes logoSpark { 0%, 40% { opacity: 1; } 50%, 60% { opacity: 0; } 70%, 100% { opacity: 1; } }

.rail__nav { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.rail__nav a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 14px 0; width: 100%; color: var(--dim);
  font-family: var(--f-pixel); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: color .2s;
}
.rail__txt { writing-mode: vertical-rl; transform: rotate(180deg); }
.rail__idx { font-size: 9px; opacity: .6; }
.rail__nav a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 0; background: var(--amber);
  transform: translateY(-50%); transition: height .3s var(--ease);
}
.rail__nav a:hover { color: var(--ink); }
.rail__nav a:hover::before { height: 18px; }
.rail__nav a.is-active { color: var(--amber); }
.rail__nav a.is-active::before { height: 46px; box-shadow: 0 0 18px var(--amber); }

.rail__live { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--f-pixel); font-size: 13px; color: var(--mute); }
.rail__live i { width: 10px; height: 10px; background: var(--dim); }
.rail__live[data-state="online"] i { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: beat 2s ease-in-out infinite; }
.rail__live[data-state="online"] { color: var(--ink); }
.rail__live[data-state="offline"] i { background: var(--bad); }
@keyframes beat { 50% { transform: scale(1.35); opacity: .7; } }

/* ---------- Barre mobile + menu ---------- */
.topbar { display: none; }
.topbar__brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: .04em; color: var(--ink); }
.topbar__brand svg { width: 30px; color: var(--amber); }
.topbar__brand b { color: var(--amber); font-weight: 900; }
.burger { width: 46px; height: 46px; background: transparent; border: 0; display: grid; place-content: center; gap: 6px; }
.burger i { display: block; width: 26px; height: 3px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.rail__live--bar { flex-direction: row; margin-left: auto; margin-right: 8px; }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); padding: 110px var(--gut) 40px; display: flex; flex-direction: column; justify-content: center; }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu a { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 14vw, 80px); line-height: 1.02; opacity: 0; transform: translateX(-18px); animation: menuIn .5s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
.menu a small { font-family: var(--f-pixel); font-size: 11px; color: var(--amber); letter-spacing: .1em; }
.menu a.is-active { color: var(--amber); }
@keyframes menuIn { to { opacity: 1; transform: none; } }

.extbar { position: absolute; top: 24px; right: var(--gut); z-index: 30; display: flex; gap: 10px; }

/* ---------- Mise en page globale ---------- */
main, .footer { margin-left: var(--rail); }
main { min-height: 100vh; position: relative; animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Apparition au scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Captures (screens) ---------- */
.shot { margin: 0; position: relative; }
.shot__frame {
  --n: 8px;
  display: block; position: relative; width: 100%; aspect-ratio: var(--ratio, 16 / 10);
  border: 0; padding: 0; background: var(--panel); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2); cursor: zoom-in;
}
.shot__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px rgba(255,255,255,.06); pointer-events: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.shot__frame:hover img { transform: scale(1.05); }
.shot figcaption { margin-top: 10px; font-family: var(--f-pixel); font-size: 9px; letter-spacing: .16em; color: var(--dim); display: flex; gap: 10px; align-items: center; }
.shot figcaption::before { content: ""; width: 22px; height: 2px; background: var(--amber); }
.shot--empty .shot__frame { cursor: default; background:
  repeating-conic-gradient(rgba(255,255,255,.035) 0 25%, transparent 0 50%) 0 0 / 16px 16px, var(--panel); }
.shot__empty { position: absolute; inset: 14px; display: grid; place-content: center; gap: 12px; justify-items: center; border: 2px dashed var(--line-2); color: var(--dim); font-family: var(--f-pixel); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.shot__empty i { width: 22px; height: 22px; background: linear-gradient(var(--dim), var(--dim)) center / 100% 2px no-repeat, linear-gradient(var(--dim), var(--dim)) center / 2px 100% no-repeat; }
.shot--tilt-l { transform: rotate(-1.6deg); transition: transform .5s var(--ease); }
.shot--tilt-r { transform: rotate(1.6deg); transition: transform .5s var(--ease); }
.shot--tilt-l:hover, .shot--tilt-r:hover { transform: rotate(0) translateY(-4px); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,7,6,.94); display: grid; place-items: center; padding: 4vw; animation: fade .25s; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; box-shadow: 0 0 0 2px var(--line-2), 0 30px 80px rgba(0,0,0,.6); animation: pop .35s var(--ease); }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; background: var(--panel-2); border: 0; font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* =====================================================================
   ACCUEIL
   ===================================================================== */
.hero {
  position: relative; min-height: 100vh; padding: 120px var(--gut) 190px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 70px); align-items: center;
  background:
    radial-gradient(900px 520px at 12% 88%, rgba(255,150,40,.16), transparent 70%),
    radial-gradient(700px 420px at 92% 8%, rgba(79,220,140,.07), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero::before { /* trame de tramage, très discrète */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-conic-gradient(rgba(255,255,255,.022) 0 25%, transparent 0 50%) 0 0 / 8px 8px;
  -webkit-mask-image: linear-gradient(#000, transparent 75%); mask-image: linear-gradient(#000, transparent 75%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; left: -240px; height: 34px; width: 150px; background: rgba(241,234,216,.055);
  clip-path: polygon(0 100%, 0 40%, 14% 40%, 14% 0, 46% 0, 46% 30%, 70% 30%, 70% 12%, 90% 12%, 90% 55%, 100% 55%, 100% 100%);
  animation: drift 90s linear infinite; }
.cloud.c1 { top: 16%; animation-duration: 110s; }
.cloud.c2 { top: 34%; width: 220px; height: 46px; animation-duration: 150s; animation-delay: -60s; opacity: .7; }
.cloud.c3 { top: 8%; width: 110px; height: 26px; animation-duration: 80s; animation-delay: -35s; }
@keyframes drift { to { transform: translateX(calc(100vw + 560px)); } }

.hero__copy { position: relative; z-index: 3; }
.tagline { display: flex; align-items: center; gap: 12px; color: var(--mute); margin-bottom: 26px; }
.blink-dot { width: 10px; height: 10px; background: var(--ok); box-shadow: 0 0 12px var(--ok); animation: beat 2s ease-in-out infinite; }
.mega { font-size: clamp(60px, 8.6vw, 150px); line-height: .84; margin-bottom: 30px; }
.mega__l { display: block; }
.mega__l--out { color: transparent; -webkit-text-stroke: 3px var(--amber); transition: color .4s; }
.mega:hover .mega__l--out { color: var(--amber); }
.mega .caret { width: .3em; height: .66em; margin-left: .1em; }

.ticket { margin-top: 38px; max-width: 560px; background: var(--panel); box-shadow: 0 0 0 1px var(--line-2); --n: 8px; }
.ticket__row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; }
.ticket__row + .ticket__row { border-top: 2px dashed var(--line); }
.addr { font-family: var(--f-pixel); font-size: clamp(13px, 1.25vw, 16px); letter-spacing: .04em; font-weight: 400; color: var(--ink); word-break: break-all; }
.addr em { display: block; font-style: normal; font-size: 10px; color: var(--mute); letter-spacing: .1em; margin-top: 4px; }

.hero__shots { position: relative; z-index: 3; height: clamp(420px, 44vw, 640px); }
.hero__shots .shot { position: absolute; transition: transform .25s ease-out; will-change: transform; }
.hero__shots .shot--a { top: 0; right: 0; width: 86%; transform: translate(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -8px)) rotate(2deg); }
.hero__shots .shot--b { top: 36%; left: 0; width: 56%; z-index: 2; transform: translate(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 12px)) rotate(-3deg); }
.hero__shots .shot--c { bottom: 0; right: 4%; width: 34%; z-index: 3; transform: translate(calc(var(--px, 0) * -26px), calc(var(--py, 0) * -16px)) rotate(4deg); }
.hero__shots .shot__frame { box-shadow: 0 0 0 2px var(--line-2), 18px 22px 0 rgba(0,0,0,.35); }

.terrain { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 2; display: flex; align-items: flex-end; pointer-events: none; }
.terrain::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, var(--bg) 92%); }
.terrain b {
  flex: 0 0 auto; display: block; position: relative; margin-bottom: -2px;
  background:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,.22) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 62%, rgba(0,0,0,.18) 0 3px, transparent 4px),
    #4b3523;
  animation: rise .9s var(--ease) backwards; animation-delay: calc(var(--k) * 14ms);
}
.terrain b::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: #4c8f36; box-shadow: inset 0 3px 0 #6db84a, inset 0 -3px 0 #3c7229; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } }

.section-head { margin-bottom: clamp(50px, 8vw, 110px); }
.section-head .pixel { color: var(--amber); display: block; margin-bottom: 18px; }

.chapters { padding-top: clamp(80px, 10vw, 150px); padding-bottom: 40px; }
.chapter { display: grid; grid-template-columns: 150px minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.chapter--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 150px; }
.chapter--flip .chapter__no { order: 3; text-align: right; }
.chapter--flip .chapter__txt { order: 2; }
.chapter--flip .chapter__shot { order: 1; }
.chapter__no { font-size: clamp(54px, 7vw, 110px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line-2); letter-spacing: 0; align-self: start; }
.chapter__txt h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 4.4vw, 68px); line-height: .94; margin-bottom: 20px; }
.chapter__txt p { color: var(--mute); max-width: 30em; margin-bottom: 26px; }

.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; padding-top: 60px; padding-bottom: clamp(90px, 10vw, 150px); }
.live-card, .cta-card { --n: 10px; position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(26px, 3vw, 44px); overflow: hidden; min-height: 340px; transition: transform .35s var(--ease); }
.live-card:hover, .cta-card:hover { transform: translateY(-6px); }
.live-card { background: var(--panel); box-shadow: inset 0 0 0 2px var(--line-2); }
.live-card .pixel { color: var(--mute); }
.live-card__n { font-family: var(--f-pixel); font-weight: 700; font-size: clamp(70px, 9vw, 140px); line-height: 1; margin-top: auto; color: var(--ok); text-shadow: 0 0 40px rgba(79,220,140,.35); }
.live-card__l { color: var(--mute); margin-bottom: 14px; }
.live-card__beam { position: absolute; right: 38px; bottom: 0; width: 18px; height: 70%; background: linear-gradient(to top, rgba(79,220,140,.5), transparent); animation: beamPulse 3s ease-in-out infinite; }
.live-card[data-state="offline"] .live-card__n { color: var(--bad); text-shadow: none; }
.live-card[data-state="offline"] .live-card__beam { background: linear-gradient(to top, rgba(255,91,74,.3), transparent); }
@keyframes beamPulse { 50% { opacity: .45; transform: scaleX(.6); } }
.cta-card { background: var(--amber); color: var(--amber-ink); background-image: repeating-conic-gradient(rgba(0,0,0,.05) 0 25%, transparent 0 50%); background-size: 12px 12px; }
.cta-card .pixel { color: rgba(28,19,3,.7); }
.cta-card h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 5.4vw, 88px); line-height: .9; margin-top: auto; }
.cta-card p { max-width: 24em; color: rgba(28,19,3,.78); font-weight: 500; }
.cta-card .btn { align-self: flex-start; margin-top: 10px; }

/* ---------- Pied de page ---------- */
.footer { padding: 70px var(--gut) 24px; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand p { color: var(--mute); margin-top: 8px; }
.footer__links { display: flex; gap: 12px 30px; flex-wrap: wrap; align-items: flex-start; font-family: var(--f-pixel); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer__links a { color: var(--mute); transition: color .2s; }
.footer__links a:hover { color: var(--amber); }
.footer__word { font-family: var(--f-display); font-weight: 900; font-size: clamp(60px, 15vw, 270px); line-height: .78; letter-spacing: .01em; color: transparent; -webkit-text-stroke: 1px var(--line-2); margin: 50px 0 -2.5vw; user-select: none; white-space: nowrap; transition: -webkit-text-stroke-color .4s; }
.footer:hover .footer__word { -webkit-text-stroke-color: var(--amber); }
.footer__legal { position: relative; font-size: 12px; color: var(--dim); }

/* =====================================================================
   ANNUAIRE
   ===================================================================== */
.directory { display: grid; grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); padding-top: 120px; padding-bottom: 100px; align-items: start; }
.directory__side { position: sticky; top: 40px; }
.directory__side .h1 { margin-bottom: 34px; font-size: clamp(40px, 4.6vw, 76px); overflow-wrap: anywhere; }
.search { --n: 6px; display: flex; align-items: center; gap: 12px; padding: 0 18px; background: var(--panel); box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--amber); }
.search .pixel { color: var(--amber); font-size: 16px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 500 18px var(--f-body); padding: 18px 0; }
.search input::placeholder { color: var(--dim); }
.chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chips button { --n: 4px; background: var(--panel); border: 0; padding: 8px 16px 9px; font-family: var(--f-pixel); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line-2); transition: .2s; }
.chips button:hover { color: var(--ink); }
.chips button.is-on { background: var(--amber); color: var(--amber-ink); box-shadow: none; }
.count { color: var(--dim); margin-top: 18px; min-height: 16px; }
.directory__shots { display: grid; gap: 26px; margin-top: 40px; max-width: 420px; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pcard { --n: 8px; position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 118px; padding: 12px 18px 12px 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), background .2s, box-shadow .2s; animation: cardIn .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 35ms); }
.pcard:hover { background: var(--panel-2); box-shadow: inset 0 0 0 2px var(--amber); transform: translateY(-4px); }
.pcard__bust { width: 92px; height: 92px; display: block; background: radial-gradient(circle at 50% 100%, rgba(255,177,43,.2), transparent 70%), var(--bg-2); overflow: hidden; position: relative; }
.pcard__bust img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; transition: transform .4s var(--ease); image-rendering: pixelated; }
.pcard:hover .pcard__bust img { transform: scale(1.12) translateY(-3px); }
.pcard__letter { display: none; position: absolute; inset: 0; place-items: center; font-family: var(--f-pixel); font-size: 30px; color: var(--dim); }
.pcard__bust.no-img .pcard__letter { display: grid; }
.pcard__body { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.pcard__body strong { font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.pcard__body small { color: var(--dim); font-size: 13px; }
.pcard__go { color: var(--amber); font-size: 20px; transition: transform .25s var(--ease); }
.pcard:hover .pcard__go { transform: translate(4px, -4px); }
.pcard--skel { background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 220% 100%; animation: shimmer 1.4s linear infinite; box-shadow: none; }
.pgrid__empty { grid-column: 1 / -1; padding: 50px 0; color: var(--mute); font-family: var(--f-pixel); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes shimmer { to { background-position: -120% 0; } }

/* =====================================================================
   FICHE JOUEUR + PERSONNAGE 3D
   ===================================================================== */
.profile { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); padding-top: 110px; padding-bottom: 100px; align-items: center; }
.stage { --s: 9px; position: relative; height: clamp(420px, 62vh, 600px); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; perspective: 1500px; cursor: grab; touch-action: pan-y; user-select: none; }
.stage.is-drag { cursor: grabbing; }
.stage__light { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 50% 55% at 50% 38%, rgba(255,177,43,.2), transparent 70%),
  repeating-conic-gradient(rgba(255,255,255,.02) 0 25%, transparent 0 50%) 0 0 / 8px 8px; }
.stage__scene { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.stage__shadow { position: absolute; left: calc(var(--s) * -9); top: calc(var(--s) * 16.8); width: calc(var(--s) * 18); height: calc(var(--s) * 3.2); background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent); transform: translateZ(0); }
.plinth { position: absolute; left: 0; top: calc(var(--s) * 18); transform: translateX(-50%); display: grid; justify-items: center; gap: 0; }
.plinth i { display: block; height: 10px; background: #2a352d; box-shadow: inset 0 3px 0 #3d4c41; }
.plinth i:nth-child(1) { width: calc(var(--s) * 20); background: #364439; box-shadow: inset 0 3px 0 var(--amber); }
.plinth i:nth-child(2) { width: calc(var(--s) * 22); }
.plinth i:nth-child(3) { width: calc(var(--s) * 24); background: #1d251f; box-shadow: none; }
.stage__fallback { position: absolute; left: 50%; top: 50%; height: 80%; width: auto; transform: translate(-50%, -50%); animation: floaty 3.4s ease-in-out infinite; image-rendering: pixelated; }
@keyframes floaty { 50% { transform: translate(-50%, -54%); } }
.stage__msg { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--dim); margin: 0; }
.stage__hint { position: absolute; left: 18px; top: 16px; margin: 0; color: var(--dim); font-size: 9px; opacity: .9; transition: opacity .6s; }
.stage.is-ready .stage__msg { display: none; }

/* --- Personnage : cuboïdes CSS 3D --- */
.mc { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.mc .root, .mc .p { position: absolute; transform-style: preserve-3d; }
.mc .root { left: 0; top: 0; width: 0; height: 0; }
.mc .p { width: calc(var(--s) * var(--pw)); height: calc(var(--s) * var(--ph)); left: calc(var(--s) * (var(--cx) - var(--pw) / 2)); top: calc(var(--s) * (var(--cy) - var(--ph) / 2)); }
.mc .f {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--s) * var(--w)); height: calc(var(--s) * var(--h));
  margin-left: calc(var(--s) * var(--w) / -2); margin-top: calc(var(--s) * var(--h) / -2);
  background-image: var(--skin); background-repeat: no-repeat; image-rendering: pixelated; backface-visibility: hidden;
  background-size: calc(var(--s) * 64 * var(--w) / var(--tw)) calc(var(--s) * var(--ih) * var(--h) / var(--th));
  background-position: calc(var(--s) * var(--u) * var(--w) / var(--tw) * -1) calc(var(--s) * var(--v) * var(--h) / var(--th) * -1);
}

.mc .p[data-mir] .f { backface-visibility: visible; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions button { --n: 4px; background: var(--panel); border: 0; padding: 11px 18px 12px; font-family: var(--f-pixel); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line-2); transition: .2s; }
.actions button:hover { color: var(--ink); transform: translateY(-2px); }
.actions button.is-on { background: var(--amber); color: var(--amber-ink); box-shadow: none; }

.profile__info .tag { margin-bottom: 14px; }
.profile__name { font-size: clamp(56px, 7vw, 120px); line-height: .88; word-break: break-all; margin-bottom: 20px; }
.profile__desc { color: var(--mute); max-width: 30em; margin-bottom: 30px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-bottom: 26px; }
.facts div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { color: var(--dim); font-size: 10px; }
.facts dd { font-weight: 600; text-align: right; }
.verified { display: flex; align-items: center; gap: 12px; color: var(--ok); font-size: 14px; font-weight: 600; margin-bottom: 30px; }
.verified i { width: 12px; height: 12px; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.profile__btns { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.profile__shots { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); margin-top: 50px; }

/* =====================================================================
   STATUT
   ===================================================================== */
.status { --st: var(--dim); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 20px clamp(24px, 5vw, 80px); padding-top: 120px; padding-bottom: 100px; min-height: 100vh; align-content: start; }
.status[data-state="online"] { --st: var(--ok); }
.status[data-state="offline"] { --st: var(--bad); }
.status__main { position: relative; z-index: 2; }
.status__word { font-size: clamp(80px, 13vw, 230px); line-height: .82; color: var(--st); text-shadow: 0 0 60px color-mix(in srgb, var(--st) 35%, transparent); transition: color .5s; }
.status__sub { margin-top: 20px; color: var(--mute); font-size: clamp(17px, 1.6vw, 21px); max-width: 28em; }
.status__count { display: flex; align-items: baseline; gap: 18px; margin-top: 44px; flex-wrap: wrap; }
.status__count b { font-size: clamp(54px, 7vw, 100px); line-height: 1; color: var(--ink); font-weight: 700; letter-spacing: .02em; }
.status__count span { color: var(--mute); font-size: 19px; }
.crowd { display: flex; flex-wrap: wrap; gap: 8px 6px; margin-top: 28px; max-width: 620px; align-items: flex-end; }
.crowd i { position: relative; width: 14px; height: 24px; animation: bob 2.2s ease-in-out infinite; animation-delay: calc(var(--k) * 120ms); }
.crowd i::before { content: ""; position: absolute; left: 3px; top: 0; width: 8px; height: 8px; background: var(--st); }
.crowd i::after { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 15px; background: var(--st); opacity: .85; clip-path: polygon(0 0, 100% 0, 100% 55%, 71% 55%, 71% 100%, 29% 100%, 29% 55%, 0 55%); }
.crowd em { font: normal 11px var(--f-pixel); color: var(--mute); align-self: center; margin-left: 8px; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.status__empty { margin-top: 26px; color: var(--mute); font-family: var(--f-pixel); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* Balise */
.status__beacon { position: relative; min-height: 460px; align-self: stretch; }
.beam { position: absolute; left: 50%; bottom: 120px; top: -140px; width: 60px; transform: translateX(-50%); transition: opacity .6s; }
.beam::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--st) 80%, transparent), color-mix(in srgb, var(--st) 18%, transparent) 70%, transparent); filter: blur(1px); animation: beamPulse 3s ease-in-out infinite; }
.beam i { position: absolute; left: 50%; top: 0; bottom: 0; width: 16px; transform: translateX(-50%); background: repeating-linear-gradient(to top, rgba(255,255,255,.9) 0 12px, rgba(255,255,255,.35) 12px 24px); background-size: 100% 48px; animation: beamRise 1.6s linear infinite; opacity: .8; }
@keyframes beamRise { to { background-position: 0 -48px; } }
.status[data-state="offline"] .beam { opacity: .12; }
.status[data-state="pending"] .beam { opacity: .18; }
.status[data-state="offline"] .beam i, .status[data-state="pending"] .beam i { animation: none; }
.beacon__cap { position: absolute; left: 50%; bottom: 96px; width: 44px; height: 44px; transform: translateX(-50%); background: color-mix(in srgb, var(--st) 55%, #fff); box-shadow: 0 0 40px var(--st), inset 0 -6px 0 rgba(0,0,0,.2), inset 0 6px 0 rgba(255,255,255,.5); }
.pyramid { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: grid; justify-items: center; }
.pyramid i { display: block; height: 32px; background: #2a352d; box-shadow: inset 0 4px 0 #3d4c41, inset 0 -4px 0 rgba(0,0,0,.3); }
.pyramid i:nth-child(1) { width: 90px; }
.pyramid i:nth-child(2) { width: 150px; }
.pyramid i:nth-child(3) { width: 210px; }
.spark { position: absolute; bottom: 130px; width: 6px; height: 6px; background: var(--st); opacity: 0; animation: sparkUp 4s linear infinite; }
.status[data-state="online"] .spark { opacity: 1; }
.spark.s1 { left: 46%; animation-delay: 0s; } .spark.s2 { left: 54%; animation-delay: 1.1s; } .spark.s3 { left: 50%; animation-delay: 2.3s; } .spark.s4 { left: 43%; animation-delay: 3.1s; }
@keyframes sparkUp { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-340px); opacity: 0; } }

.status__cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.scard { --n: 8px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); padding: 22px 24px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; position: relative; overflow: hidden; }
.scard .addr { margin-bottom: 6px; }
.scard small { color: var(--dim); font-size: 13px; }
.pulse { position: absolute; right: 16px; top: 18px; width: 90px; fill: none; stroke: var(--st); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: ecg 2.4s linear infinite; }
.status[data-state="offline"] .pulse, .status[data-state="pending"] .pulse { animation: none; stroke-dashoffset: 0; stroke-opacity: .3; }
@keyframes ecg { 60%, 100% { stroke-dashoffset: 0; opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
.status__shots { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 60px); margin-top: 50px; }

/* =====================================================================
   LAUNCHER
   ===================================================================== */
.launcher { padding-top: 120px; padding-bottom: 110px; }
.launcher__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.launcher__head .h1 { margin-bottom: 26px; }
.os-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 80px; align-items: start; }
.os { --n: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); padding: 34px 30px 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; transition: transform .35s var(--ease), box-shadow .25s, opacity .8s var(--ease); }
.os:nth-child(2) { margin-top: 44px; }
.os:nth-child(3) { margin-top: 88px; }
.os:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 2px var(--amber); }
.os h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 54px; line-height: 1; margin-top: 22px; }
.os p { color: var(--mute); margin-bottom: 22px; }
.os__glyph { width: 84px; height: 84px; display: grid; place-items: center; background: var(--bg-2); color: var(--amber); font: 700 34px var(--f-pixel); box-shadow: inset 0 0 0 2px var(--line-2); transition: transform .4s var(--ease); }
.os:hover .os__glyph { transform: rotate(-6deg) scale(1.06); }
.os__glyph--win { grid-template-columns: 1fr 1fr; gap: 4px; padding: 22px; }
.os__glyph--win i { background: var(--amber); display: block; width: 100%; height: 100%; }
.os__glyph--mac { font-family: system-ui, sans-serif; font-weight: 400; font-size: 44px; }

.help { --n: 10px; margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; background: var(--panel); padding: clamp(24px, 4vw, 56px); box-shadow: inset 0 0 0 1px var(--line-2); }
.help__txt .pixel { color: var(--amber); display: block; margin-bottom: 14px; }
.help__txt h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 4vw, 62px); line-height: .94; margin-bottom: 16px; }
.help__txt p { color: var(--mute); margin-bottom: 26px; max-width: 28em; }

/* =====================================================================
   404 / introuvable
   ===================================================================== */
.lost { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: 110px; padding-bottom: 80px; }
.lost .mega { margin-bottom: 26px; }
.lost .btn { margin-top: 30px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-height: 760px) { .rail__idx { display: none; } .rail__nav a { padding: 8px 0; } }

@media (max-width: 1100px) {
  .chapter, .chapter--flip { grid-template-columns: 100px minmax(0, 1fr); }
  .chapter--flip .chapter__no { order: 0; text-align: left; }
  .chapter--flip .chapter__txt { order: 0; }
  .chapter--flip .chapter__shot, .chapter__shot { order: 0; grid-column: 1 / -1; }
  .os-row { grid-template-columns: 1fr; }
  .os:nth-child(2), .os:nth-child(3) { margin-top: 0; }
  .status__cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail, .extbar { display: none; }
  .topbar { display: flex; align-items: center; position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; padding: 0 var(--gut); background: rgba(10,13,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .hero, .directory, .profile, .status, .launcher__head, .lost, .help, .duo { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; padding-bottom: 170px; min-height: 0; }
  .hero__shots { height: 420px; margin-top: 20px; }
  .directory, .profile, .status, .launcher, .lost { padding-top: 100px; }
  .directory__side { position: static; }
  .directory__shots, .profile__shots, .status__shots { grid-template-columns: 1fr 1fr; max-width: none; }
  .status__beacon { min-height: 300px; order: 3; }
  .beam { top: -60px; bottom: 90px; }
  .pyramid i:nth-child(1) { width: 70px; } .pyramid i:nth-child(2) { width: 120px; } .pyramid i:nth-child(3) { width: 170px; }
  .launcher__shot { max-width: 520px; }
  .stage { --s: 7px; height: 420px; }
  .os:nth-child(n) { margin-top: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .ticket__row { grid-template-columns: 1fr auto; }
  .ticket__row .lab { grid-column: 1 / -1; }
  .hero__shots { height: 340px; }
  .directory__shots, .profile__shots, .status__shots { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: 1fr; }
  .chapter, .chapter--flip { grid-template-columns: 1fr; }
  .chapter__no { font-size: 60px; }
  .stage { --s: 6px; height: 380px; }
  .status__word { font-size: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Wiki ---------- */
.wiki { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(32px, 6vw, 80px); padding-bottom: 96px; align-items: start; }
.wiki__side { position: sticky; top: 32px; }
.wiki__nav { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.wiki__nav a { padding: 9px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mute); font-weight: 500; transition: color .2s, border-color .2s, background .2s; }
.wiki__nav a:hover { color: var(--ink); background: var(--panel); }
.wiki__nav a.is-active { color: var(--amber); border-left-color: var(--amber); background: var(--panel); }
.wiki__head { margin-bottom: 32px; display: grid; gap: 18px; }
.wiki__toc { display: flex; flex-direction: column; gap: 4px; background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; margin-bottom: 36px; max-width: 520px; }
.wiki__toc .pixel { color: var(--amber); margin-bottom: 8px; }
.wiki__toc a { color: var(--mute); font-size: 15px; }
.wiki__toc a:hover { color: var(--ink); }
.wiki__toc .lvl-3 { padding-left: 16px; font-size: 14px; }
.wiki__date { color: var(--dim); margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }

.prose { max-width: 46em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); text-transform: uppercase; font-weight: 800; line-height: 1; margin-top: 2em; scroll-margin-top: 24px; position: relative; }
.prose h2 { font-size: clamp(30px, 3.4vw, 46px); }
.prose h3 { font-size: clamp(24px, 2.4vw, 32px); color: var(--amber); }
.prose h4 { font-size: 20px; color: var(--mute); }
.prose .anchor { position: absolute; left: -1.1em; color: var(--dim); opacity: 0; transition: opacity .2s; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor { opacity: 1; }
.prose a { color: var(--amber); border-bottom: 1px solid rgba(255,177,43,.35); }
.prose a:hover { border-bottom-color: var(--amber); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--amber); }
.prose strong { color: #fff; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font: 500 .88em ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--line); padding: .1em .4em; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); padding: 16px 20px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 14px; }
.prose blockquote { background: var(--panel); border-left: 4px solid var(--amber); padding: 14px 20px; color: var(--mute); }
.prose blockquote > * + * { margin-top: .6em; }
.prose img { border: 1px solid var(--line); }
.wiki__table { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--f-pixel); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }

@media (max-width: 900px) {
  .wiki { grid-template-columns: 1fr; }
  .wiki__side { position: static; }
  .wiki__nav { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .wiki__nav a { border: 1px solid var(--line); margin: 0; padding: 8px 14px; }
  .wiki__nav a.is-active { border-color: var(--amber); }
  .prose .anchor { display: none; }
}

/* ---------- MWE ---------- */
.mwe { padding-top: clamp(32px, 6vw, 80px); padding-bottom: 96px; }
.mwe__hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.mwe__txt { display: grid; gap: 24px; justify-items: start; }
.mwe__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.mwe__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: clamp(40px, 7vw, 96px) 0; }
.mwe__stat { padding: 28px 0; text-align: center; display: grid; gap: 4px; }
.mwe__stat + .mwe__stat { border-left: 1px solid var(--line); }
.mwe__stat b { font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 10vw, 150px); line-height: .9; color: var(--amber); }
.mwe__stat .pixel { color: var(--mute); }
.mwe__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: clamp(48px, 7vw, 96px); }
.mwe__block { background: var(--panel); border: 1px solid var(--line); padding: 28px; display: grid; gap: 14px; align-content: start; }
.mwe__block .pixel { color: var(--amber); }
.mwe__block h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(32px, 3vw, 44px); line-height: .95; }
.mwe__block p { color: var(--mute); }
.mwe__block--final { background: var(--panel-2); border-color: var(--amber); }
.mwe__tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mwe__tags li { border: 1px solid var(--line-2); padding: 6px 10px; color: var(--ink); }
@media (max-width: 1100px) { .mwe__body { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .mwe__hero { grid-template-columns: 1fr; } }
