/* Steal An Egg Guide (eggipedia.com) - feuille de style unique.
   Direction : l'interface du jeu. Ciel bleu, sol à damier avec plots façon briques, murs marron du
   couloir, boutons épais cerclés d'encre, titres blancs contournés de noir. */

/* Polices hébergées sur le site (licence SIL OFL 1.1, textes dans assets/fonts/) : aucun appel à
   un autre domaine. Fredoka est une police variable, un seul fichier couvre toutes les graisses. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/fredoka-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("fonts/fredoka-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lilita One"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lilita-one-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lilita One"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lilita-one-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #1b1d36;
  --text: #1b1d36;
  --ink-soft: #3a3f6b;
  --muted: #56608a;
  --sky-1: #2fb2ff;
  --sky-2: #86d8ff;
  --sky-3: #e3f5ff;
  --paper: #fffaf0;
  --card: #ffffff;
  --grass-1: #5bd93c;
  --grass-2: #4cc72f;
  --dirt-1: #cf7e3e;
  --dirt-2: #bb6b31;
  --dirt-top: #79de45;
  --green: #3bd62e;  --green-d: #1f8f17;
  --blue: #1fb3ff;   --blue-d: #0a74b8;
  --orange: #ff9d1c; --orange-d: #c46a00;
  --red: #ff4458;    --red-d: #b51f33;
  --yellow: #ffd21a; --yellow-d: #bf8f00;
  --purple: #a15cff; --purple-d: #6330c2;
  --radius: 18px;
  --font-display: "Lilita One", "Fredoka", system-ui, sans-serif;
  --font: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --studs: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .30) 0 2.6px, transparent 3.1px),
           radial-gradient(circle at 50% 58%, rgba(0, 0, 0, .12) 0 2.6px, transparent 3.1px);
  --tabbar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 500 1.02rem/1.55 var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-3) 0, #f4fbff 520px, var(--paper) 1400px);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--tabbar-h);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.08; margin: 0; font-weight: 400; }
p, ul, ol, dl, figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 8px 14px; border: 3px solid var(--ink); border-radius: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Titres façon jeu ─────────────────────────────────────────────────── */
.game-t {
  font-family: var(--font-display);
  color: #fff;
  -webkit-text-stroke: .16em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--ink);
  letter-spacing: .01em;
}
.h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.h3 { font: 400 1.35rem/1.15 var(--font-display); }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 400 .92rem/1 var(--font-display); letter-spacing: .07em; text-transform: uppercase;
  color: var(--blue-d); margin-bottom: 10px;
}
.kicker::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--yellow); border: 2.5px solid var(--ink); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ── Boutons du HUD ───────────────────────────────────────────────────── */
.btn {
  --c: var(--green); --d: var(--green-d);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .72em 1.25em .8em;
  font: 400 1.12rem/1 var(--font-display); letter-spacing: .02em;
  color: #fff; text-decoration: none; text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff) 0 42%, var(--c) 43%);
  border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: inset 0 -5px 0 var(--d), 0 5px 0 var(--ink);
  cursor: pointer; user-select: none;
  transition: transform .14s cubic-bezier(.3, .7, .4, 1.5), box-shadow .14s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: inset 0 -5px 0 var(--d), 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 var(--d), 0 1px 0 var(--ink); }
.btn img { width: 1.5em; height: 1.5em; margin: -.3em 0; }
.btn-blue { --c: var(--blue); --d: var(--blue-d); }
.btn-orange { --c: var(--orange); --d: var(--orange-d); }
.btn-red { --c: var(--red); --d: var(--red-d); }
.btn-yellow { --c: var(--yellow); --d: var(--yellow-d); color: var(--ink); text-shadow: none; }
.btn-purple { --c: var(--purple); --d: var(--purple-d); }
.btn-white { --c: #fff; --d: #cfd7ea; color: var(--ink); text-shadow: none; }
.btn-sm { font-size: .95rem; padding: .55em .9em .62em; border-radius: 12px; }
.btn-block { width: 100%; }

/* ── Cartes ───────────────────────────────────────────────────────────── */
.card { background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 0 6px 0 var(--ink); }
.card-pad { padding: clamp(18px, 3vw, 28px); }
.lift { transition: transform .22s cubic-bezier(.3, .7, .4, 1.4), box-shadow .22s; }
.lift:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 11px 0 var(--ink); }

.rar {
  --rc: #979797; --ri: #fff;
  display: inline-flex; align-items: center;
  padding: .28em .75em .3em; border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--rc); color: var(--ri);
  font: 400 .78rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
  /* Contour sombre des lettres : le blanc reste lisible sur les couleurs claires (Common, Legendary...). */
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink), 0 1.5px 0 var(--ink);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .35em .8em; border: 2.5px solid var(--ink); border-radius: 999px;
  background: #fff; font: 600 .86rem/1.1 var(--font); white-space: nowrap;
}

/* Sols : damier à plots, couleurs du biome dans --f1 / --f2 */
.floor {
  --f1: var(--grass-1); --f2: var(--grass-2);
  background-color: var(--f1);
  background-image: var(--studs), conic-gradient(var(--f2) 90deg, transparent 90deg 180deg, var(--f2) 180deg 270deg, transparent 270deg);
  background-size: 12px 12px, 12px 12px, 56px 56px;
}
.wall {
  background-color: var(--dirt-1);
  background-image: var(--studs), conic-gradient(var(--dirt-2) 90deg, transparent 90deg 180deg, var(--dirt-2) 180deg 270deg, transparent 270deg);
  background-size: 12px 12px, 12px 12px, 64px 64px;
}

/* ── Barre du haut ────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 3px solid var(--ink);
}
.topbar-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 42px; height: 42px; transition: transform .35s cubic-bezier(.3, .7, .4, 1.6); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.brand-t { font: 400 1.32rem/1 var(--font-display); letter-spacing: .01em; }
.brand-t b { font-weight: 400; color: var(--blue-d); }
[data-theme="dark"] .brand-t b { color: var(--blue); }
.mainnav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.mainnav a {
  text-decoration: none; font: 600 .98rem/1 var(--font); padding: 9px 11px; border-radius: 11px;
  transition: background .15s, color .15s;
}
.mainnav a:hover { background: var(--sky-3); }
.mainnav a[aria-current="page"] { background: var(--ink); color: #fff; }
.topbar .play { margin-left: 8px; flex: none; }

/* ── Barre d'onglets mobile ───────────────────────────────────────────── */
.tabbar { display: none; }
.sheet[hidden] { display: none; }
@media (max-width: 900px) {
  :root { --tabbar-h: calc(78px + env(safe-area-inset-bottom)); }
  .mainnav, .topbar .play { display: none; }
  .topbar-in { height: 58px; justify-content: space-between; }
  .brand img { width: 36px; height: 36px; }
  .brand-t { font-size: 1.15rem; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 3px solid var(--ink);
  }
  .tab {
    --c: var(--green); --d: var(--green-d);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 58px; border: 2.5px solid var(--ink); border-radius: 13px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff) 0 44%, var(--c) 45%);
    box-shadow: inset 0 -4px 0 var(--d), 0 3px 0 var(--ink);
    color: #fff; text-decoration: none; cursor: pointer; padding: 0;
    font: 400 .72rem/1 var(--font-display); letter-spacing: .03em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
    transition: transform .12s;
    -webkit-tap-highlight-color: transparent;
  }
  .tab:active { transform: translateY(3px); }
  .tab svg, .tab img { width: 26px; height: 26px; }
  .tab[aria-current="page"] { outline: 3px solid var(--ink); outline-offset: 2px; }
  .tab-2 { --c: var(--orange); --d: var(--orange-d); }
  .tab-3 { --c: var(--blue); --d: var(--blue-d); }
  .tab-4 { --c: var(--red); --d: var(--red-d); }
  .tab-5 { --c: var(--purple); --d: var(--purple-d); }
  .sheet {
    position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar-h) + 8px); z-index: 69;
    background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 0 6px 0 var(--ink);
    padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
    animation: pop .28s cubic-bezier(.3, .7, .4, 1.4);
  }
  .sheet a {
    display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
    border: 2.5px solid var(--ink); text-decoration: none; font: 600 1rem/1.1 var(--font); background: var(--sky-3);
  }
  .sheet a img { width: 30px; height: 30px; }
}

/* ── Héros : le couloir ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 58%, #c5ecff 100%);
  border-bottom: 3px solid var(--ink);
  min-height: min(760px, 92vh);
}
.clouds { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.cloud {
  position: absolute; width: 220px; height: 70px; border-radius: 999px; background: #fff; opacity: .92;
  filter: drop-shadow(0 6px 0 rgba(27, 29, 54, .08));
  animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 110px; height: 110px; left: 30px; top: -52px; }
.cloud::after { width: 80px; height: 80px; right: 34px; top: -34px; }
.cloud.c1 { top: 9%; left: -10%; animation-duration: 70s; }
.cloud.c2 { top: 24%; left: 30%; transform: scale(.7); animation-duration: 95s; animation-delay: -40s; opacity: .8; }
.cloud.c3 { top: 5%; left: 62%; transform: scale(1.15); animation-duration: 85s; animation-delay: -20s; }
.cloud.c4 { top: 32%; left: 80%; transform: scale(.55); animation-duration: 110s; animation-delay: -70s; opacity: .75; }
@keyframes drift { from { translate: -30vw 0; } to { translate: 130vw 0; } }

/* Le couloir du jeu : un sol à damier par biome, des murs marron coiffés d'herbe, des décors en
   briques debout face à la caméra et les gardiens endormis près de leurs nids. On avance : le sol
   défile vers nous, de la zone sûre jusqu'aux Anges & Démons, puis ça recommence. */
.lane-box {
  --tilt: 80deg; --lw: 940px; --bd: 396px; --wh: 230px; --ps: 1;
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -2; height: 74%;
  perspective: 620px; perspective-origin: 50% 0%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
          mask-image: linear-gradient(180deg, transparent 0, #000 26%);
}
.lane {
  position: absolute; left: 50%; bottom: 0; margin-left: calc(var(--lw) / -2);
  width: var(--lw); height: calc(var(--bd) * var(--nb));
  transform-origin: 50% 100%; transform: rotateX(var(--tilt));
  transform-style: preserve-3d;
}
.lane-floor, .lane-track, .lane-band { transform-style: preserve-3d; }
.lane-floor { position: absolute; inset: 0; }
.lane-track { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--bd) * var(--nt)); animation: run 90s linear infinite; will-change: transform; }
.lane-band { position: relative; height: var(--bd); background-size: 22px 22px, 22px 22px, 132px 132px; box-shadow: inset 0 -6px 0 rgba(27, 29, 54, .12); }
@keyframes run { from { transform: translateY(0); } to { transform: translateY(calc(var(--bd) * var(--nb))); } }
.lane-wall { position: absolute; top: 0; bottom: 0; width: var(--wh); overflow: hidden; }
.lane-wall.l { right: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); }
.lane-wall.r { left: 100%; transform-origin: 0% 50%; transform: rotateY(-90deg); }
.lane-wall i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--bd) * var(--nb) * 2); animation: run 90s linear infinite; will-change: transform; background-size: 22px 22px, 22px 22px, 132px 132px; }
.lane-wall.l i { border-left: 20px solid var(--dirt-top); }
.lane-wall.r i { border-right: 20px solid var(--dirt-top); }
/* L'herbe au-delà des murs : un simple fond fixe (bien moins coûteux que deux plans 3D qui défilent). */
.lane-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #8fe06a 0%, #72d64c 40%, #5bcf3c 100%); }
.lane .stand { position: absolute; transform-origin: 50% 100%; transform: translate(-50%, -100%) rotateX(calc(var(--tilt) * -1)); }
.lane .prop, .lane .guard { width: calc(var(--w) * var(--ps) * 1px); height: auto; }
.nest3, .nest3s { position: absolute; }
.lane .nest3 { width: calc(120px * var(--ps)); }
.nest3 img, .nest3s img { position: absolute; width: 36%; bottom: 34%; }
.nest3 img:first-child, .nest3s img:first-child { position: relative; width: 100%; bottom: 0; }
.nest3 img:nth-child(2), .nest3s img:nth-child(2) { left: 4%; }
.nest3 img:nth-child(3), .nest3s img:nth-child(3) { left: 32%; bottom: 44%; }
.nest3 img:nth-child(4), .nest3s img:nth-child(4) { left: 60%; }
.lane .sign {
  display: grid; justify-items: center; gap: 3px; padding: 7px 14px 8px;
  background: #d9873f; border: 4px solid #6b3e18; border-radius: 9px; box-shadow: inset 0 -5px 0 #b86a2a;
  white-space: nowrap; font: 400 calc(26px * var(--ps))/1 var(--font-display); color: #fff;
  -webkit-text-stroke: .12em #3a2210; paint-order: stroke fill;
}
.lane .sign span { font-size: .72em; color: #8cff6a; }
.lane .sign::after { content: ""; position: absolute; left: 50%; top: 100%; width: 12px; height: calc(46px * var(--ps)); translate: -50% 4px; background: #8a5a2b; border: 3px solid #6b3e18; }
.safe-mark {
  position: absolute; left: 6%; right: 6%; top: 16%; height: 66%; display: grid; place-items: center;
  border-top: 14px solid #ff3b4a;
  font: 400 150px/1 var(--font-display); color: #fff; letter-spacing: .04em; text-transform: uppercase;
  -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill;
}
/* Détails posés à plat, propres à chaque biome */
.lane-band::before, .lane-band::after { position: absolute; pointer-events: none; }
.band-lac::before, .band-lac::after { content: ""; top: 22%; width: 30%; height: 38%; border-radius: 42%; background: #4fc3ff; box-shadow: inset 0 0 0 12px #8fe3ff; }
.band-lac::before { left: 34%; }
.band-lac::after { left: 58%; top: 58%; width: 22%; height: 26%; }
.band-desert::before { content: ""; left: 30%; right: 30%; top: 0; bottom: 0; background: repeating-linear-gradient(180deg, transparent 0 60px, rgba(180, 130, 50, .18) 60px 72px); }
.band-neige::before { content: ""; left: 36%; top: 30%; width: 28%; height: 40%; border-radius: 30%; background: #bdeeff; box-shadow: inset 0 0 0 10px #e3f7ff; }
.band-volcan::before { content: ""; left: 0; right: 0; top: 40%; height: 11%; background: linear-gradient(90deg, #ff6a1a, #ffb020 50%, #ff6a1a); box-shadow: 0 0 40px 10px rgba(255, 106, 26, .6); }
.band-volcan::after { content: ""; left: 62%; top: 12%; width: 16%; height: 20%; border-radius: 40%; background: #ff8a2a; box-shadow: 0 0 30px rgba(255, 120, 30, .7); }
.band-ocean-des-abysses::before { content: ""; inset: 0; background-image: radial-gradient(circle, rgba(170, 225, 255, .55) 0 6px, transparent 7px); background-size: 90px 110px; }
.band-cosmique::before { content: ""; inset: 0; background-image: radial-gradient(circle, #fff 0 3px, transparent 4px), radial-gradient(circle, #ffe45c 0 4px, transparent 5px); background-size: 70px 90px, 150px 130px; background-position: 0 0, 35px 50px; }
.band-cerisiers-en-fleurs::before { content: ""; inset: 0; background-image: radial-gradient(ellipse 7px 4px, #ff6fa8 98%, transparent), radial-gradient(ellipse 6px 3px, #fff 98%, transparent); background-size: 80px 70px, 110px 95px; background-position: 0 0, 40px 30px; }
.band-temple-du-titan::before { content: ""; left: 38%; right: 38%; top: 0; bottom: 0; background: repeating-linear-gradient(180deg, #b9a978 0 60px, #a6955f 60px 64px); border-inline: 6px solid #c9a54a; }
.band-anges-et-demons::before, .band-anges-et-demons::after { content: ""; top: 0; bottom: 0; width: 12%; background: #4fc3ff; border-inline: 8px solid #f2c230; }
.band-anges-et-demons::before { left: 4%; }
.band-anges-et-demons::after { right: 4%; }
.lane-box.is-off .lane-track, .lane-box.is-off .lane-wall i { animation-play-state: paused; }

.hero-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 24px;
  padding: clamp(28px, 6vh, 64px) 0 clamp(150px, 20vh, 210px);
}
.live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 8px 10px; border: 2.5px solid var(--ink); border-radius: 999px;
  background: rgba(255, 255, 255, .9); font: 600 .92rem/1 var(--font); box-shadow: 0 3px 0 var(--ink);
}
.live i { width: 11px; height: 11px; border-radius: 50%; background: #2fd12a; border: 2px solid var(--ink); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { transform: scale(.72); background: #9ff29a; } }
.hero h1 { font-size: clamp(3.3rem, 10vw, 7.4rem); line-height: .9; margin: 18px 0 16px; }
.hero h1 span { display: inline-block; animation: popword .7s cubic-bezier(.3, .7, .35, 1.55) both; }
.hero h1 span:nth-child(2) { animation-delay: .08s; }
.hero h1 .egg-w { color: var(--yellow); animation-delay: .16s; }
.hero h1 .fr { display: block; font-size: .36em; letter-spacing: .04em; color: #fff; margin-top: .25em; animation-delay: .24s; }
@keyframes popword { from { opacity: 0; transform: translateY(26px) scale(.6) rotate(-6deg); } }
.hero-sub {
  font: 600 clamp(1.05rem, 1.8vw, 1.25rem)/1.5 var(--font); color: var(--ink);
  background: rgba(255, 255, 255, .88); border: 3px solid var(--ink); border-radius: 16px;
  padding: 14px 18px; max-width: 560px; box-shadow: 0 5px 0 var(--ink);
  animation: rise .7s .3s cubic-bezier(.2, .8, .3, 1) both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; animation: rise .7s .42s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.scene { position: relative; height: clamp(300px, 44vw, 520px); }
.scene img { position: absolute; }
.scene .guardian {
  width: 62%; left: -4%; bottom: 4%;
  filter: drop-shadow(0 10px 0 rgba(27, 29, 54, .18));
  animation: chase 1.1s ease-in-out infinite alternate;
}
.scene .runner {
  width: 50%; right: 0; bottom: 0;
  filter: drop-shadow(0 12px 0 rgba(27, 29, 54, .2));
  animation: gallop .42s ease-in-out infinite alternate;
}
.scene .alert {
  position: absolute; left: 44%; top: 6%;
  font: 400 clamp(2.6rem, 6vw, 4.6rem)/1 var(--font-display); color: var(--red);
  -webkit-text-stroke: .12em var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink);
  transform: rotate(10deg); animation: alarm .9s ease-in-out infinite;
}
.scene .dust {
  position: absolute; right: 38%; bottom: 3%; width: 70px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, .8); filter: blur(2px);
  animation: dust .42s ease-out infinite;
}
.scene .shadow { position: absolute; bottom: -2%; height: 26px; border-radius: 50%; background: rgba(27, 29, 54, .22); filter: blur(3px); }
.scene .shadow.g { left: 6%; width: 44%; }
.scene .shadow.r { right: 8%; width: 32%; animation: shadowpulse .42s ease-in-out infinite alternate; }
@keyframes chase { from { transform: translate(0, 0) rotate(-2deg); } to { transform: translate(5%, -3%) rotate(2deg); } }
@keyframes gallop { from { transform: translate(0, 0) rotate(3deg); } to { transform: translate(0, -6%) rotate(-2deg); } }
@keyframes alarm { 0%, 100% { transform: rotate(10deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.14); } }
@keyframes dust { from { opacity: .9; transform: translateX(0) scale(.6); } to { opacity: 0; transform: translateX(-60px) scale(1.4); } }
@keyframes shadowpulse { to { transform: scaleX(.86); opacity: .8; } }

/* ── Chiffres ─────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: -58px; position: relative; z-index: 3; }
.stat { padding: 16px 16px 14px; text-align: center; }
.stat b { display: block; font: 400 clamp(1.6rem, 3vw, 2.2rem)/1 var(--font-display); color: var(--ink); }
.stat span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); line-height: 1.3; }
.stat:nth-child(1) { background: #eaffe4; } .stat:nth-child(2) { background: #fff4d6; } .stat:nth-child(3) { background: #e6f5ff; }
.stat:nth-child(4) { background: #f3e9ff; } .stat:nth-child(5) { background: #ffe8ee; }
.src-note { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: right; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.sec { padding: clamp(52px, 8vw, 96px) 0; }
.sec-head { margin-bottom: 30px; }
.sec-head .lead { margin-top: 12px; }
.sec-grass { position: relative; border-block: 3px solid var(--ink); }
.sec-sky { background: linear-gradient(180deg, #d6f0ff, #eef9ff); border-block: 3px solid var(--ink); }
.more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { overflow: hidden; display: flex; flex-direction: column; }
.step figure { position: relative; aspect-ratio: 16 / 9; border-bottom: 3px solid var(--ink); overflow: hidden; background: var(--sky-2); }
.step figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .3, 1); }
.step:hover figure img { transform: scale(1.06); }
.step figure::after {
  counter-increment: step; content: counter(step);
  position: absolute; left: 10px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center;
  font: 400 1.35rem/1 var(--font-display); color: #fff; background: var(--red); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
}
.step .card-pad { display: flex; flex-direction: column; gap: 8px; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* La route du couloir */
.road { position: relative; display: grid; gap: 18px; padding: 8px 0; }
.road::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 56px; translate: -50% 0;
  border-inline: 3px solid var(--ink);
  background: var(--dirt-1);
  background-image: var(--studs), var(--road, repeating-linear-gradient(180deg, var(--dirt-2) 0 28px, var(--dirt-1) 28px 56px));
  background-size: 12px 12px, 12px 12px, 100% 100%;
}
.road-end {
  position: relative; z-index: 1; justify-self: center; text-align: center;
  padding: 10px 18px; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink);
  font: 400 1.05rem/1.2 var(--font-display); background: #fff;
}
.road-end small { display: block; font: 600 .84rem/1.3 var(--font); color: var(--muted); }
.road-end.safe { background: #e8ffe3; }
.road-end.far { background: #fff6d8; }
.stop {
  position: relative; z-index: 1; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center;
  width: calc(50% - 44px); padding: 12px; text-decoration: none;
}
.stop:nth-of-type(odd) { justify-self: start; }
.stop:nth-of-type(even) { justify-self: end; }
@media (min-width: 901px) { .stop + .stop { margin-top: -52px; } }
.stop::after {
  content: attr(data-n); position: absolute; top: 50%; width: 38px; height: 38px; display: grid; place-items: center;
  translate: 0 -50%; font: 400 1.05rem/1 var(--font-display); color: #fff;
  background: var(--acc, var(--blue)); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink);
}
.stop:nth-of-type(odd)::after { right: -63px; }
.stop:nth-of-type(even)::after { left: -63px; }
.stop-tile { position: relative; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; }
.stop-tile img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; transition: transform .3s cubic-bezier(.3, .7, .4, 1.5); }
.stop:hover .stop-tile img { transform: scale(1.1) rotate(-4deg); }
.stop h3 { font: 400 1.4rem/1.05 var(--font-display); }
.stop h3 small { display: block; font: 600 .82rem/1.3 var(--font); color: var(--muted); margin-top: 2px; }
.stop-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.stop-meta .chip { white-space: normal; max-width: 100%; }
.stop-eggs { display: flex; flex-wrap: wrap; gap: 2px; }
.stop-eggs img { width: 34px; height: 34px; }

/* Grilles de pets */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.pet {
  --rc: #979797; --ri: #fff;
  position: relative; display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
}
.pet-art {
  position: relative; aspect-ratio: 1; border-bottom: 3px solid var(--ink);
  background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--rc) 55%, transparent) 0, transparent 68%), var(--sky-3);
}
.pet-art::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background-color: var(--f1, var(--grass-1));
  background-image: var(--studs), conic-gradient(var(--f2, var(--grass-2)) 90deg, transparent 90deg 180deg, var(--f2, var(--grass-2)) 180deg 270deg, transparent 270deg);
  background-size: 12px 12px, 12px 12px, 40px 40px; border-top: 3px solid var(--ink);
}
.pet-art img { position: relative; width: 86%; margin: 5% auto 0; transition: transform .35s cubic-bezier(.3, .7, .4, 1.5); }
.pet:hover .pet-art img { transform: translateY(-6%) scale(1.07) rotate(-3deg); }
.pet-body { padding: 10px 12px 13px; display: flex; flex-direction: column; gap: 5px; }
.pet-body h3 { font: 400 1.12rem/1.1 var(--font-display); }
.pet-inc { font: 700 1rem/1 var(--font); color: #178a10; }
.pet-bio { font-size: .84rem; color: var(--muted); }
.pet .rar { position: absolute; top: 9px; left: 9px; z-index: 1; }
.grid-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* Outils */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; overflow: hidden; padding: 22px 22px 24px; min-height: 250px; }
.tool .h3 { font-size: 1.6rem; }
.tool p { color: var(--ink-soft); max-width: 62%; position: relative; z-index: 1; }
.tool img { position: absolute; right: -10px; bottom: -12px; width: 36%; transition: transform .35s cubic-bezier(.3, .7, .4, 1.5); }
.tool:hover img { transform: rotate(-8deg) scale(1.08); }
.tool .btn { align-self: flex-start; margin-top: auto; position: relative; z-index: 1; }
.tool-1 { background: #eaffe4; } .tool-2 { background: #e6f5ff; } .tool-3 { background: #fff4d6; }

/* Mutations */
.muts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mut { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; }
.mut img { width: 64px; height: 64px; }
.mut h3 { font: 400 1.12rem/1.1 var(--font-display); }
.mut .x { font: 400 1.5rem/1 var(--font-display); color: var(--orange-d); }
.mut p { font-size: .88rem; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.mut-hero .x { font-size: 1.9rem; }

/* Nouveautés */
.news { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: stretch; }
.news-main { overflow: hidden; display: flex; flex-direction: column; }
.news-main figure { border-bottom: 3px solid var(--ink); aspect-ratio: 2 / 1; overflow: hidden; }
.news-main figure img { width: 100%; height: 100%; object-fit: cover; }
.news-main ul { padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-soft); }
.news-side { display: grid; gap: 14px; align-content: start; }
.news-side .card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; text-decoration: none; }
.news-side img { border-radius: 10px; border: 2.5px solid var(--ink); aspect-ratio: 16 / 10; object-fit: cover; }
.date { font: 600 .84rem/1 var(--font); color: var(--blue-d); }

/* Bandeau échanges */
.banner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: 22px 26px; background: linear-gradient(135deg, #fff4d6, #ffe3f0);
}
.banner img { width: 110px; }
.banner .h3 { font-size: 1.6rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font: 400 1.12rem/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 30px; height: 30px;
  display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--yellow);
  font: 400 1.3rem/1 var(--font-display); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 18px 18px; color: var(--ink-soft); }
.faq details > div p + p { margin-top: 8px; }

/* ── Pages intérieures ────────────────────────────────────────────────── */
.page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2));
  border-bottom: 3px solid var(--ink);
  padding: clamp(28px, 5vw, 54px) 0 clamp(26px, 4vw, 44px);
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; z-index: -1;
  background-color: var(--grass-1);
  background-image: var(--studs), conic-gradient(var(--grass-2) 90deg, transparent 90deg 180deg, var(--grass-2) 180deg 270deg, transparent 270deg);
  background-size: 12px 12px, 12px 12px, 44px 44px; border-top: 3px solid var(--ink);
}
.page-head .clouds .cloud { opacity: .7; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin: 6px 0 12px; }
.page-head .lead { color: var(--ink); background: rgba(255, 255, 255, .86); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: 0 4px 0 var(--ink); display: inline-block; margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font: 600 .88rem/1.2 var(--font); }
.crumbs a { text-decoration: none; background: rgba(255, 255, 255, .8); border: 2px solid var(--ink); border-radius: 8px; padding: 3px 8px; }
.crumbs span { padding: 3px 2px; }
.page-body { padding: clamp(30px, 5vw, 56px) 0 clamp(54px, 8vw, 90px); }
.page-body > .wrap > * + * { margin-top: clamp(30px, 5vw, 48px); }
.prose { max-width: 820px; }
.prose p, .prose ul, .prose ol { color: var(--ink-soft); }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p, .prose p + ol { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 7px; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { font: 400 1.35rem/1.2 var(--font-display); margin: 22px 0 8px; }
.prose strong { color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { text-decoration: none; }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; background: #fff8dc; }
.callout img { width: 64px; }
.callout-blue { background: #e6f5ff; }
.callout-red { background: #ffe8ec; }

/* Outil de filtre */
.toolbar { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; position: sticky; top: 76px; z-index: 20; }
.field { display: grid; gap: 4px; }
.field label { font: 400 .8rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.input, .select {
  width: 100%; min-height: 46px; padding: 9px 12px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff;
  font: 600 1rem/1.2 var(--font); appearance: none; -webkit-appearance: none;
}
.select {
  padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 11px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 179, 255, .35); }
.count { font: 600 .95rem/1 var(--font); color: var(--muted); margin: 18px 0 12px; }
.empty { display: none; padding: 30px; text-align: center; }
.records { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.record { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; }
.record img { width: 84px; }
.record small { font: 400 .78rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.record b { display: block; font: 400 1.2rem/1.1 var(--font-display); margin: 3px 0; }

/* Fiche d'un pet */
.pet-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.stage { position: relative; aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 26px; overflow: hidden; box-shadow: 0 7px 0 var(--ink); background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 60%); }
.stage .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; border-top: 3px solid var(--ink); }
.stage .glow { position: absolute; inset: 10% 10% 18%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 70%, #fff) 0, transparent 66%); animation: glow 3s ease-in-out infinite; }
.stage .big { position: absolute; left: 12%; top: 6%; width: 76%; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 0 rgba(27, 29, 54, .16)); }
.stage .nest { position: absolute; right: 5%; bottom: 7%; width: 28%; }
.stage .nest img { width: 100%; animation: wobble 2.8s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes bob { 50% { transform: translateY(-4%); } }
@keyframes glow { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes wobble { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-7deg); } 80% { transform: rotate(6deg); } 90% { transform: rotate(-3deg); } }
.pet-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin: 12px 0 10px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 20px; }
.facts div { padding: 10px 12px; border: 2.5px solid var(--ink); border-radius: 12px; background: #fff; }
.facts dt { font: 400 .76rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { margin: 5px 0 0; font: 700 1.05rem/1.25 var(--font); }
.facts dd a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.mini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: end; }
.mini-out { padding: 12px 16px; border: 3px solid var(--ink); border-radius: 14px; background: #eaffe4; box-shadow: 0 4px 0 var(--ink); }
.mini-out small { font: 400 .78rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mini-out b { display: block; font: 400 1.8rem/1.1 var(--font-display); color: #178a10; margin-top: 4px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl-wrap { overflow-x: auto; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); background: #fff; }
.tbl th, .tbl td { padding: 11px 14px; text-align: left; border-bottom: 2px solid #e3e8f5; white-space: nowrap; }
.tbl th { font: 400 .82rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; background: var(--ink); color: #fff; position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #f4faff; }
.tbl td.num { font-weight: 700; color: #178a10; }
.tbl img { width: 44px; height: 44px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.tbl a { text-decoration: none; font-weight: 700; }

/* Œufs */
.egg-group + .egg-group { margin-top: 36px; }
.egg-group-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.egg-group-h .h3 { font-size: 1.6rem; }
.eggs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.egg { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px 14px; text-align: center; text-decoration: none; }
.egg-art { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.egg-art::after { content: ""; position: absolute; bottom: 6%; width: 64%; height: 12%; border-radius: 50%; background: rgba(27, 29, 54, .16); z-index: 0; }
.egg-art img { position: relative; z-index: 1; width: 82%; transform-origin: 50% 88%; }
.egg:hover .egg-art img { animation: wobble 1s ease-in-out; }
.egg b { font: 400 1rem/1.15 var(--font-display); }
.egg span { font-size: .82rem; color: var(--muted); }
.sizes { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 3vw, 34px); padding: 18px 0 6px; }
.sizes figure { display: grid; justify-items: center; gap: 8px; }
.sizes figcaption { font: 600 .9rem/1.2 var(--font); color: var(--muted); text-align: center; }

/* Biomes */
.biome-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: center; }
.biome-stage { position: relative; aspect-ratio: 4 / 3; border: 3px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 7px 0 var(--ink); background: linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.biome-stage .floor { position: absolute; left: -20%; right: -20%; bottom: 0; height: 75%; transform: perspective(420px) rotateX(55deg); transform-origin: 50% 100%; border-top: 3px solid var(--ink); background-size: 16px 16px, 16px 16px, 90px 90px; }
.biome-stage img.g { position: absolute; z-index: 2; left: 50%; bottom: 8%; width: 58%; translate: -50% 0; animation: bob 3.4s ease-in-out infinite; filter: drop-shadow(0 12px 0 rgba(27, 29, 54, .2)); }
.biome-stage img.g.second { width: 42%; left: 74%; bottom: 6%; animation-delay: -1.2s; }
.biome-stage img.g.first-of-two { width: 42%; left: 28%; }
.biome-stage .bprop { position: absolute; z-index: 1; bottom: 16%; width: calc(var(--w) * .1%); }
.biome-stage .bprop-0 { left: 2%; }
.biome-stage .bprop-1 { right: 2%; }
.biome-stage .bprop-2 { left: 20%; bottom: 36%; width: calc(var(--w) * .065%); z-index: 0; }
.biome-stage .nest3s { z-index: 3; left: 56%; bottom: 3%; width: 24%; }
.biome-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Calculateur et échange */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.panel { padding: 18px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel-h .h3 { font-size: 1.45rem; }
.picker { position: relative; }
.results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 330px; overflow: auto;
  background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 var(--ink); padding: 6px;
}
.results[hidden] { display: none; }
.results button {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%;
  padding: 6px 8px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left;
}
.results button:hover, .results button.is-active { background: var(--sky-3); }
.results img { width: 44px; height: 44px; }
.results b { font: 400 1rem/1.1 var(--font-display); display: block; }
.results small { color: var(--muted); font-size: .8rem; }
.rows { display: grid; gap: 10px; margin-top: 12px; }
.row {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) 104px 150px auto; gap: 10px; align-items: center;
  padding: 8px 10px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fff;
  animation: pop .3s cubic-bezier(.3, .7, .4, 1.5);
}
.row img { width: 58px; height: 58px; }
.row b { font: 400 1.05rem/1.1 var(--font-display); display: block; }
.row .inc { font: 700 .95rem/1.2 var(--font); color: #178a10; }
.row .input, .row .select { min-height: 40px; padding: 6px 9px; font-size: .92rem; }
.row .select { padding-right: 28px; background-position: calc(100% - 15px) 55%, calc(100% - 9px) 55%; }
.row .kg { position: relative; }
.row .kg::after { content: "kg"; position: absolute; right: 10px; top: 50%; translate: 0 -50%; font-size: .8rem; color: var(--muted); pointer-events: none; }
.row .kg .input { padding-right: 30px; }
.x-btn {
  width: 36px; height: 36px; border: 2.5px solid var(--ink); border-radius: 10px; background: var(--red); color: #fff;
  font: 400 1.1rem/1 var(--font-display); cursor: pointer; box-shadow: 0 3px 0 var(--ink);
}
.x-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.rows-empty { padding: 22px; text-align: center; color: var(--muted); border: 2.5px dashed #b9c3de; border-radius: 14px; }
.totals { position: sticky; top: 84px; display: grid; gap: 12px; }
.tot { padding: 14px 16px; }
.tot small { font: 400 .8rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tot b { display: block; font: 400 2rem/1.1 var(--font-display); color: #178a10; margin-top: 4px; word-break: break-word; }
.tot-list { display: grid; gap: 6px; margin-top: 10px; }
.tot-list div { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.tot-list span { color: var(--muted); font-weight: 500; }

.trade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.side-give { background: #fff1f3; }
.side-get { background: #ecffe8; }
.side-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 2.5px dashed #c5cde3; font-weight: 700; }
.side-sum b { font: 400 1.35rem/1 var(--font-display); color: #178a10; }
.trade .row { grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1.15fr) 34px; grid-template-rows: auto auto; }
.trade .row img { width: 50px; height: 50px; grid-row: 1 / 3; }
.trade .row .who { grid-column: 2 / 4; grid-row: 1; }
.trade .row .x-btn { grid-column: 4; grid-row: 1; justify-self: end; width: 32px; height: 32px; }
.trade .row .kg { grid-column: 2; grid-row: 2; }
.trade .row .select { grid-column: 3 / 5; grid-row: 2; }
.judge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: center; padding: 22px; margin-top: 22px; }
.verdict { font: 400 clamp(1.6rem, 3.4vw, 2.3rem)/1.05 var(--font-display); }
.verdict.win { color: #178a10; } .verdict.lose { color: var(--red-d); } .verdict.fair { color: var(--blue-d); }
.verdict-sub { margin-top: 8px; color: var(--ink-soft); }
.scale { position: relative; height: 230px; }
.scale .post { position: absolute; left: 50%; bottom: 14px; width: 18px; height: 150px; translate: -50% 0; background: linear-gradient(90deg, #ffe38a, #d9a524); border: 3px solid var(--ink); border-radius: 8px; }
.scale .base { position: absolute; left: 50%; bottom: 0; width: 150px; height: 22px; translate: -50% 0; background: #d9a524; border: 3px solid var(--ink); border-radius: 12px; }
.scale .beam {
  position: absolute; left: 50%; top: 58px; width: min(440px, 88%); height: 16px; translate: -50% 0;
  background: linear-gradient(180deg, #ffe38a, #d9a524); border: 3px solid var(--ink); border-radius: 10px;
  transform: rotate(var(--tilt, 0deg)); transition: transform .9s cubic-bezier(.3, 1.6, .5, 1);
}
.scale .beam::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; translate: -50% -50%; border-radius: 50%; background: var(--red); border: 3px solid var(--ink); }
.scale .pan {
  position: absolute; top: 8px; width: 132px; transform: rotate(calc(var(--tilt, 0deg) * -1)); transform-origin: 50% 0;
  transition: transform .9s cubic-bezier(.3, 1.6, .5, 1);
}
.scale .pan.l { left: -40px; } .scale .pan.r { right: -40px; }
.scale .pan::before { content: ""; position: absolute; left: 50%; top: 0; width: 3px; height: 62px; translate: -50% 0; background: var(--ink); }
.scale .dish { position: absolute; top: 60px; left: 0; right: 0; height: 26px; border: 3px solid var(--ink); border-radius: 0 0 70px 70px; background: linear-gradient(180deg, #ffe38a, #d9a524); }
.scale .load { position: absolute; top: 22px; left: 0; right: 0; display: flex; justify-content: center; }
.scale .load img { width: 46px; height: 46px; margin: 0 -8px; filter: drop-shadow(0 3px 0 rgba(27, 29, 54, .25)); animation: pop .35s cubic-bezier(.3, .7, .4, 1.5); }
.trade-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bars { display: grid; gap: 14px; margin-top: 12px; }
.bars:empty { display: none; }
.bar-line { display: grid; gap: 5px; }
.bar-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.bar-h b { font: 400 1.05rem/1.1 var(--font-display); }
.bar-q { font: 700 .95rem/1.2 var(--font); }
.bar-q.win { color: #178a10; }
.bar-q.lose { color: var(--red-d); }
.bar-q.fair { color: var(--blue-d); }
.bar { position: relative; display: flex; height: 18px; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; background: #eef1f8; }
.bar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; translate: -50% 0; background: var(--ink); opacity: .45; }
.bar i { display: block; height: 100%; min-width: 6px; transition: width .7s cubic-bezier(.3, 1.2, .5, 1); }
.bar .give { background: #ff8a98; }
.bar .get { background: #5bd93c; }
.bar-wrap { position: relative; }
.bar-k {
  position: absolute; top: 50%; z-index: 1; width: 30px; height: 30px; translate: -50% -50%;
  display: grid; place-items: center; border: 2.5px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 0 2px 0 var(--ink);
  transition: left .7s cubic-bezier(.3, 1.2, .5, 1);
}
.bar-k i { width: 0; height: 0; margin-left: 3px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 10px solid #1f9a17; }
.bar-k.to-l i { margin: 0 3px 0 0; border-left: 0; border-right: 10px solid var(--red-d); }
.bar-k.eq i { width: 12px; height: 9px; margin: 0; border: 0; border-block: 3px solid var(--blue-d); }
.bar-k.to-r { animation: nudge-r 1.1s ease-in-out infinite; }
.bar-k.to-l { animation: nudge-l 1.1s ease-in-out infinite; }
@keyframes nudge-r { 50% { transform: translateX(5px); } }
@keyframes nudge-l { 50% { transform: translateX(-5px); } }
.bar-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: .86rem; color: var(--muted); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px); z-index: 90; translate: -50% 0;
  padding: 11px 18px; border: 3px solid var(--ink); border-radius: 14px; background: var(--yellow); box-shadow: 0 4px 0 var(--ink);
  font: 400 1rem/1.2 var(--font-display); animation: pop .3s cubic-bezier(.3, .7, .4, 1.5);
}

/* Disponibilité et indice de rareté */
.avail { position: absolute; top: 9px; right: 9px; z-index: 1; padding: .28em .6em .3em; border: 2.5px solid var(--ink); border-radius: 999px; font: 400 .7rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.avail-limite { background: #ff8a1f; }
.avail-retire { background: #3a3f6b; }
.fact-sub { display: block; margin-top: 3px; font: 500 .8rem/1.3 var(--font); color: var(--muted); }
.modes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; margin-bottom: 18px; }
.modes-l { font: 400 .95rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.mode { flex: 1 1 220px; display: grid; gap: 3px; text-align: left; padding: 10px 14px; border: 3px solid var(--ink); border-radius: 14px; background: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--ink); transition: transform .12s, background .15s; }
.mode b { font: 400 1.1rem/1.1 var(--font-display); }
.mode small { font-size: .82rem; color: var(--muted); }
.mode:active { transform: translateY(2px); }
.mode.is-on { background: #fff4c2; box-shadow: 0 3px 0 var(--ink), inset 0 0 0 3px var(--yellow); }
#trade.is-rarete .row .kg { opacity: .35; pointer-events: none; }
.mix { display: none; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 6px 8px 2px; }
#trade.is-mixte .mix { display: flex; }
.mix label { font: 400 .85rem/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mix-end { font: 600 .9rem/1 var(--font); }
.mix input[type="range"] { flex: 1 1 180px; accent-color: var(--orange); height: 30px; cursor: pointer; }
.mix output { font: 700 .92rem/1.2 var(--font); color: var(--ink); min-width: 190px; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule-list { list-style: none; padding: 0; display: grid; gap: 7px; }
.rule-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rule-list b { font: 400 1rem/1 var(--font-display); }
@media (max-width: 900px) { .rules { grid-template-columns: minmax(0, 1fr); } }

/* Bouton du mode sombre et classes qui remplacent des styles en ligne */
.theme-btn {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center; margin-left: 6px; padding: 0;
  border: 2.5px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 0 3px 0 var(--ink); cursor: pointer;
}
.theme-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.theme-btn svg { width: 22px; height: 22px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }
/* Bouton de langue : le drapeau derrière le code (FR sur les pages anglaises, EN sur les françaises) */
.lang-btn {
  flex: none; position: relative; isolation: isolate; overflow: hidden; height: 42px; width: 56px; display: grid; place-items: center; margin-left: 6px;
  text-decoration: none; border: 2.5px solid #1b1d36; border-radius: 12px; background: #fff; box-shadow: 0 3px 0 var(--ink);
}
.lang-btn svg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; transition: transform .25s cubic-bezier(.3, .7, .4, 1.6); }
.lang-btn span { font: 400 1.14rem/1 var(--font-display); letter-spacing: .05em; color: #fff; -webkit-text-stroke: .22em #1b1d36; paint-order: stroke fill; }
.lang-btn:hover svg { transform: scale(1.12); }
.lang-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.lang-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
/* Interrupteur (passe x2 Money du calculateur et des fiches) */
.switch { position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; line-height: 1.25; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.switch-ui { flex: none; position: relative; width: 52px; height: 30px; border: 2.5px solid var(--ink); border-radius: 99px; background: #d9deef; box-shadow: 0 2px 0 var(--ink); transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 21px; height: 21px; border: 2.5px solid var(--ink); border-radius: 50%; background: #fff; transition: transform .22s cubic-bezier(.3, .7, .4, 1.4); }
.switch input:checked + .switch-ui { background: var(--green); }
.switch input:checked + .switch-ui::after { transform: translateX(22px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--blue); outline-offset: 2px; }
.tot-switch { margin-top: 12px; padding-top: 12px; border-top: 2px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.mini-x2 { grid-column: 1 / -1; }
.calc.is-x2 .tot b::after { content: " x2"; font-size: .6em; color: var(--orange-d); vertical-align: .25em; }
.kicker-dark { color: var(--text); }
.lead-box { color: var(--text); background: rgba(255, 255, 255, .85); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; display: inline-block; }
.road-zone { border: 3px solid var(--ink); border-radius: 22px; padding: 22px 14px; }
.toast, .btn-yellow, .faq summary::after { color: #1b1d36; }
.scene .guardian.angel { width: 66%; left: -6%; bottom: 10%; }

/* Tier list */
.tier { display: grid; grid-template-columns: 110px minmax(0, 1fr); border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 5px 0 var(--ink); background: #fff; }
.tier + .tier { margin-top: 14px; }
.tier-label { display: grid; place-items: center; align-content: center; gap: 4px; padding: 10px; border-right: 3px solid var(--ink); text-align: center; }
.tier-label b { font: 400 2.8rem/1 var(--font-display); color: #fff; -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
.tier-label small { font: 600 .78rem/1.2 var(--font); color: var(--ink); }
.tier-pets { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; align-content: flex-start; }
.tier-pet { width: 78px; text-align: center; text-decoration: none; }
.tier-pet img { width: 70px; height: 70px; margin: 0 auto; transition: transform .25s cubic-bezier(.3, .7, .4, 1.6); }
.tier-pet:hover img { transform: scale(1.15) rotate(-5deg); }
.tier-pet span { display: block; font: 600 .7rem/1.15 var(--font); color: var(--ink-soft); }
.t-s { background: #ff5a6e; } .t-a { background: #ff9d3c; } .t-b { background: #ffd84a; } .t-c { background: #7be35b; } .t-d { background: #52c7ff; } .t-e { background: #b69cff; }

/* Chronologie */
.timeline { position: relative; display: grid; gap: 22px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 6px; border-radius: 6px; background: var(--ink); }
.tl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding: 18px; }
.tl::before { content: ""; position: absolute; left: -32px; top: 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); }
.tl img { border: 3px solid var(--ink); border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tl ul { padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-soft); margin-top: 8px; }
.tl .h3 { margin-top: 4px; }

/* ── Pied de page ─────────────────────────────────────────────────────── */
.foot { position: relative; margin-top: 0; background: #1f2347; color: #e6e9ff; padding: 0 0 36px; }
.foot-grass { height: 26px; border-block: 3px solid var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; padding-top: 36px; }
.foot h2 { font: 400 1.05rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.foot a { color: #e6e9ff; text-decoration: none; }
.foot a:hover { color: var(--yellow); }
.foot p { color: #b8bee6; font-size: .92rem; }
.foot .brand-t { color: #fff; }
.foot .brand-t b { color: var(--yellow); }
.legal { margin-top: 28px; padding-top: 18px; border-top: 2px solid rgba(255, 255, 255, .12); font-size: .84rem !important; }
.made { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.made img { width: 28px; height: 28px; }
.legend { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ── Apparition au défilement ─────────────────────────────────────────── */
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(8px); } }
/* Seuls les blocs encore sous l'écran au chargement sont cachés (classe posée par sae.js) :
   rien ne clignote au-dessus de la ligne de flottaison, et sans JavaScript tout reste visible. */
.rv { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .9, .3, 1.25); transition-delay: var(--d, 0s); }
.rv.rv-wait { opacity: 0; transform: translateY(26px) scale(.97); transition: none; }

/* ── Adaptations ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .totals { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .theme-btn { margin-left: auto; }
  .lane-box { --lw: 640px; --bd: 264px; --wh: 170px; --ps: .66; height: 64%; }
  .lane .p2 { display: none; }
  .safe-mark { font-size: 100px; }
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding: 26px 0 150px; gap: 8px; }
  .scene { height: clamp(250px, 62vw, 380px); order: 2; }
  .stats { margin-top: -110px; }
  .tools, .news, .records { grid-template-columns: minmax(0, 1fr); }
  .road::before { left: 28px; }
  .stop { width: auto; margin-left: 64px; grid-template-columns: 104px minmax(0, 1fr); justify-self: stretch !important; }
  .stop::after, .stop:nth-of-type(odd)::after, .stop:nth-of-type(even)::after { left: -55px; right: auto; }
  .road-end { justify-self: start; margin-left: 0; }
  .pet-hero, .biome-hero { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 440px; width: 100%; margin-inline: auto; }
  .mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mini-out { grid-column: 1 / -1; }
  .trade, .judge { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: minmax(0, 1fr); }
  .banner { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar { top: 66px; }
}
@media (max-width: 600px) {
  .wrap { width: min(1180px, 100% - 24px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: 12px 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pet-body { padding: 8px 10px 11px; }
  .pet-body h3 { font-size: 1rem; }
  .toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: static; }
  .toolbar .field:first-child, .toolbar .field:last-child { grid-column: 1 / -1; }
  .row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.15fr) 36px; grid-template-rows: auto auto; }
  .row img { width: 48px; height: 48px; grid-row: 1 / 3; }
  .row .who { grid-column: 2 / 4; grid-row: 1; }
  .row .x-btn { grid-column: 4; grid-row: 1; justify-self: end; }
  .row .kg { grid-column: 2; grid-row: 2; }
  .row .select { grid-column: 3 / 5; grid-row: 2; }
  .totals { grid-template-columns: minmax(0, 1fr); }
  .tier { grid-template-columns: 74px minmax(0, 1fr); }
  .tier-label b { font-size: 2.1rem; }
  .tier-pet { width: 64px; }
  .tier-pet img { width: 58px; height: 58px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .scale { height: 200px; }
  .scale .pan { width: 108px; }
  .scale .pan.l { left: -22px; } .scale .pan.r { right: -22px; }
  .hero h1 .fr { font-size: .42em; }
  .eggs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Mode sombre (bouton du bandeau ou réglage de l'appareil, cf theme.js) ── */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #2f376d; --text: #eef0ff; --ink-soft: #c7cdf0; --muted: #9fa8d4;
  --card: #1a1f45; --sky-3: #232b5c; --paper: #0e1230;
  --grass-1: #3f9f2d; --grass-2: #368f26;
}
[data-theme="dark"] body { background: linear-gradient(180deg, #0b1230 0, #10163a 520px, #0c1029 1400px); }
[data-theme="dark"] .game-t, [data-theme="dark"] .tier-label b, [data-theme="dark"] .safe-mark, [data-theme="dark"] .scene .alert { -webkit-text-stroke-color: #05060e; text-shadow: 0 .09em 0 #05060e; }
[data-theme="dark"] .chip, [data-theme="dark"] .faq details, [data-theme="dark"] .facts div, [data-theme="dark"] .tbl-wrap,
[data-theme="dark"] .results, [data-theme="dark"] .row, [data-theme="dark"] .road-end, [data-theme="dark"] .mode,
[data-theme="dark"] .tier, [data-theme="dark"] .skip:focus, [data-theme="dark"] .sheet { background-color: #20264f; color: var(--text); }
[data-theme="dark"] .input, [data-theme="dark"] .select { background-color: #141939; color: var(--text); }
[data-theme="dark"] .select { background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); }
[data-theme="dark"] .input::placeholder { color: #7f88b8; }
[data-theme="dark"] .topbar, [data-theme="dark"] .tabbar { background: rgba(12, 16, 44, .9); }
[data-theme="dark"] .mainnav a[aria-current="page"] { background: #eef0ff; color: #0e1230; }
[data-theme="dark"] .live, [data-theme="dark"] .hero-sub, [data-theme="dark"] .page-head .lead, [data-theme="dark"] .lead-box,
[data-theme="dark"] .crumbs a { background: rgba(16, 21, 58, .9); color: var(--text); }
[data-theme="dark"] .hero, [data-theme="dark"] .page-head, [data-theme="dark"] .stage, [data-theme="dark"] .biome-stage { background: linear-gradient(180deg, #081536 0%, #16326e 62%, #24508f 100%); }
[data-theme="dark"] .cloud { opacity: .16; }
[data-theme="dark"] .lane-box { filter: brightness(.8); }
[data-theme="dark"] .sec-sky { background: linear-gradient(180deg, #111942, #0e1535); }
[data-theme="dark"] .grass-zone { --f1: #2e7424 !important; --f2: #286a1f !important; }
[data-theme="dark"] .page-head::after, [data-theme="dark"] .foot-grass { filter: brightness(.7); }
[data-theme="dark"] .stat:nth-child(1), [data-theme="dark"] .tool-1, [data-theme="dark"] .mini-out, [data-theme="dark"] .side-get, [data-theme="dark"] .road-end.safe { background: #15372a; }
[data-theme="dark"] .stat:nth-child(2), [data-theme="dark"] .tool-3, [data-theme="dark"] .callout, [data-theme="dark"] .road-end.far { background: #3a3118; }
[data-theme="dark"] .stat:nth-child(3), [data-theme="dark"] .tool-2, [data-theme="dark"] .callout-blue { background: #152f4d; }
[data-theme="dark"] .stat:nth-child(4) { background: #2c2250; }
[data-theme="dark"] .stat:nth-child(5), [data-theme="dark"] .callout-red, [data-theme="dark"] .side-give { background: #3d1c2b; }
[data-theme="dark"] .banner { background: linear-gradient(135deg, #3a3118, #3d1c2b); }
[data-theme="dark"] .mode.is-on { background: #4a3f16; }
[data-theme="dark"] .bar { background: #2a3160; }
[data-theme="dark"] .bar-k { background: #eef0ff; }
[data-theme="dark"] .tbl th { background: #0b0e24; }
[data-theme="dark"] .tbl th, [data-theme="dark"] .tbl td { border-bottom-color: #2c3469; }
[data-theme="dark"] .tbl tbody tr:hover td { background: #242c5c; }
[data-theme="dark"] .rows-empty { border-color: #444d86; }
[data-theme="dark"] .side-sum { border-top-color: #444d86; }
[data-theme="dark"] .btn-white { --c: #2b3368; --d: #1b2150; color: var(--text); }
[data-theme="dark"] .stat b, [data-theme="dark"] .prose strong, [data-theme="dark"] .mix output { color: var(--text); }
[data-theme="dark"] .pet-inc, [data-theme="dark"] .tot b, [data-theme="dark"] .mini-out b, [data-theme="dark"] .tbl td.num,
[data-theme="dark"] .row .inc, [data-theme="dark"] .side-sum b, [data-theme="dark"] .verdict.win, [data-theme="dark"] .bar-q.win { color: #62e34d; }
[data-theme="dark"] .verdict.lose, [data-theme="dark"] .bar-q.lose { color: #ff7384; }
[data-theme="dark"] .verdict.fair, [data-theme="dark"] .bar-q.fair, [data-theme="dark"] .kicker, [data-theme="dark"] .date { color: #7fd0ff; }
[data-theme="dark"] .mut .x { color: #ffb24a; }
[data-theme="dark"] .timeline::before { background: #3a4480; }
[data-theme="dark"] .tier-label small { color: #10132b; }
[data-theme="dark"] .switch-ui { background: #2a3160; }
[data-theme="dark"] .switch input:checked + .switch-ui { background: #2f9a24; }
[data-theme="dark"] .calc.is-x2 .tot b::after { color: #ffb24a; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv.rv-wait { opacity: 1; transform: none; }
}

/* ── Œufs rares en direct (/spawns, encart de l'accueil ; rempli par live.js) ── */
.live-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); animation: livepulse 1.6s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(255, 68, 88, .55); } 100% { box-shadow: 0 0 0 9px rgba(255, 68, 88, 0); } }
.mainnav .nav-live { display: inline-flex; align-items: center; gap: 7px; }
.live-status { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 600; box-shadow: 0 4px 0 var(--ink); }
.live-status.is-off .live-dot { background: #9aa3ad; animation: none; }
.live-now { padding: 16px 18px; background: #fff3f4; }
.live-now.is-fresh { border-color: var(--red-d); box-shadow: 0 6px 0 var(--red-d); }
.live-now-h { display: flex; align-items: center; gap: 10px; font: 400 1.25rem/1.2 var(--font-display); }
.live-now .spawn { margin-top: 12px; }
.live-hist-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; }
.live-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.live-filters .chip { cursor: pointer; }
.live-filters .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 16px; }
.spawn { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; text-decoration: none; color: inherit; }
.spawn-art { display: grid; place-items: center; border-radius: 14px; border: 2.5px solid var(--ink); background: radial-gradient(circle at 50% 60%, #fff6d8, #ffe7a3 70%); }
.spawn-art img { width: 96px; height: 96px; object-fit: contain; }
.spawn-big { grid-template-columns: 150px minmax(0, 1fr); }
.spawn-big .spawn-art img { width: 150px; height: 150px; }
.spawn-name { display: block; font: 400 1.2rem/1.15 var(--font-display); }
.spawn-big .spawn-name { font-size: 1.6rem; }
.spawn-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 6px; }
.spawn-time { display: block; color: var(--muted); font-weight: 600; font-size: .92rem; }
.spawn-inc { display: block; margin-top: 3px; font: 700 .95rem/1 var(--font); color: #178a10; }
.live-home { margin-top: 26px; }
.live-home-in { display: grid; gap: 12px; padding: 16px 18px; justify-items: start; }
.live-home-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.live-home .spawn { width: 100%; max-width: 560px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: .3em .8em; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--red-d); font: 400 .85rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 600px) {
  .spawn-big { grid-template-columns: 110px minmax(0, 1fr); }
  .spawn-big .spawn-art img { width: 110px; height: 110px; }
}
[data-theme="dark"] .live-now { background: #3d1c2b; }
[data-theme="dark"] .spawn-art { background: radial-gradient(circle at 50% 60%, #3a3118, #2a2412 70%); }
[data-theme="dark"] .spawn-inc { color: #62e34d; }
[data-theme="dark"] .live-pill { background: #20264f; color: #ff7384; }
[data-theme="dark"] .live-filters .chip[aria-pressed="true"] { background: #eef0ff; color: #0e1230; }
/* Menu du haut : 9 entrées depuis « En direct », jamais sur deux lignes ; plus serré sur les écrans moyens. */
.mainnav a { white-space: nowrap; }
.mainnav a { padding: 9px 8px; font-size: .94rem; }
.topbar-in { gap: 12px; }
.topbar .play { margin-left: 2px; }
@media (max-width: 1260px) { .mainnav a { padding: 8px 6px; font-size: .9rem; } .mainnav { gap: 0; } }
/* Écrans moyens (au-dessus de la barre d onglets du téléphone) : le logo seul, sans son texte. */
@media (max-width: 1140px) and (min-width: 901px) { .topbar .brand-t { display: none; } .mainnav a { padding: 8px 5px; font-size: .86rem; } .topbar-in { gap: 8px; } }
/* Encart de l'accueil : la carte à gauche, le bouton à droite sur grand écran. */
@media (min-width: 761px) {
  .live-home-in { grid-template-columns: minmax(0, 560px) auto; align-items: center; column-gap: 26px; }
  .live-home-h { grid-column: 1 / -1; }
}
/* Avertissement sous l'état des alertes (page /spawns) : sur sa propre ligne. */
.live-status { flex-wrap: wrap; }
.live-note { flex-basis: 100%; margin-left: 20px; color: var(--muted); font-weight: 500; font-size: .88rem; line-height: 1.35; }
/* Performance et accessibilité (mesure Lighthouse du 2026-09-24) */
html.js .lane-box:not(.is-go) .lane-track, html.js .lane-box:not(.is-go) .lane-wall i { animation-play-state: paused; }
.nest3 img, .nest3s img { height: auto; }
.foot .legal a { text-decoration: underline; text-underline-offset: 2px; }
[data-theme="dark"] .mode.is-on small { color: #d9dcf2; }

/* ── Liste des valeurs (/values) et passes de jeu (/game-passes) ── */
.vt-toolbar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
.vtable td { vertical-align: middle; }
.vtable td.rank { width: 44px; color: var(--muted); font-weight: 700; }
.vt-pet { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: inherit; text-decoration: none; }
.vt-pet:hover { text-decoration: underline; }
.vt-pet img { width: 44px; height: 44px; flex: none; }
.passes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.pass { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.pass img { width: 120px; height: 120px; }
.pass-price { margin: 4px 0 8px; font: 400 1.5rem/1 var(--font-display); color: #178a10; }
@media (max-width: 1100px) { .vt-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .vt-toolbar .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .pass { grid-template-columns: 80px minmax(0, 1fr); } .pass img { width: 80px; height: 80px; } }
[data-theme="dark"] .pass-price { color: #62e34d; }
