/* Ancelade Game — maquette accueil (direction A + B) */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --night: #05070d;
  --night-2: #0a0f1f;
  --night-3: #111833;
  --ink: #f4f6ff;
  --muted: #a7b0d6;
  --roi: #1e48ff;
  --roi-hi: #4d6dff;
  --cyan: #3de0ff;
  --lime: #c6ff3d;
  --magenta: #ff3dae;
  --accent: var(--lime); /* change avec le monde sélectionné */
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --ui: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 18px;
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 500 16px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
.wrap {
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--lime);
  color: #000;
  padding: 8px 12px;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.mock-flag {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  margin: 0;
  padding: 6px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.8);
  font: 12px var(--mono);
  color: var(--muted);
}

/* ---------- Typo ---------- */
.display,
.display-2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
  margin: 0;
}
.display {
  font-size: clamp(64px, 9.6vw, 156px);
  text-shadow: 0 6px 0 rgba(0, 0, 0, 0.55);
}
.display .line {
  display: block;
}
.display-2 {
  font-size: clamp(44px, 6vw, 92px);
}
.hl {
  font-style: normal;
  color: var(--lime);
  position: relative;
  display: inline-block;
  text-shadow:
    4px 4px 0 #000,
    0 0 40px rgba(198, 255, 61, 0.35);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 500 13px var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}
.lead,
.sec-lead {
  color: #d5dbf5;
  font-size: clamp(16px, 1.35vw, 19px);
  max-width: 34em;
}

/* ---------- Boutons ---------- */
.btn {
  --b: var(--roi);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 14px;
  border: 0;
  background: var(--b);
  color: #fff;
  font: 700 16px var(--ui);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.55);
  transition:
    transform 0.25s var(--ease-pop),
    box-shadow 0.25s,
    filter 0.2s;
}
.btn:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow:
    0 9px 0 rgba(0, 0, 0, 0.55),
    0 0 32px color-mix(in srgb, var(--b) 60%, transparent);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}
.btn-blue {
  --b: var(--roi);
}
.btn-lime {
  --b: var(--lime);
  color: #0b0f00;
}
.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 999px;
  box-shadow: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px clamp(16px, 3vw, 40px);
  transition:
    background 0.3s,
    backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-word {
  margin: 0;
  font: 800 24px/1 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand-word b {
  margin-left: 6px;
  color: var(--lime);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #dfe4ff;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 3px;
  background: var(--lime);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover::after {
  right: 0;
}
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: 500 13px var(--mono);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -3%;
  z-index: -3;
  will-change: transform;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.65) 32%, rgba(5, 7, 13, 0) 60%),
    linear-gradient(0deg, var(--night) 0%, rgba(5, 7, 13, 0) 28%),
    linear-gradient(180deg, rgba(5, 7, 13, 0.6) 0%, rgba(5, 7, 13, 0) 18%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero-copy {
  position: relative;
  z-index: 4;
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
  padding-top: 90px;
}
.hero-copy .display .line {
  opacity: 0;
  transform: translateY(40px) skewY(4deg);
  animation: rise 0.9s var(--ease-out) forwards;
}
.hero-copy .display .line:nth-child(2) {
  animation-delay: 0.12s;
}
.hero-copy .hl {
  animation: hl-pop 0.7s var(--ease-pop) 0.7s both;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 26px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #c9d1f2;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--roi-hi);
}
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #35ff8b;
  box-shadow: 0 0 0 0 rgba(53, 255, 139, 0.6);
  animation: pulse 1.8s infinite;
}

/* Héros détourés */
.hero-cast {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.cast {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  will-change: transform;
  opacity: 0;
  animation: cast-in 1.1s var(--ease-pop) forwards;
}
.cast-builder {
  width: clamp(300px, 31vw, 520px);
  right: 22%;
  bottom: -6%;
  animation-delay: 0.35s;
}
.cast-survivor {
  width: clamp(220px, 21vw, 360px);
  right: 15%;
  top: 9%;
  animation-delay: 0.55s;
}
.cast-rider {
  width: clamp(320px, 33vw, 560px);
  right: -3%;
  bottom: 6%;
  animation-delay: 0.75s;
}
.cube {
  position: absolute;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--roi-hi), #0d1fa8);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    0 0 26px rgba(30, 72, 255, 0.85);
  animation: float 6s ease-in-out infinite;
}
.c1 {
  left: 52%;
  top: 24%;
}
.c2 {
  left: 47%;
  top: 62%;
  width: 22px;
  animation-delay: -2s;
}
.c3 {
  left: 70%;
  top: 14%;
  width: 18px;
  animation-delay: -4s;
  background: linear-gradient(135deg, var(--lime), #6a9b00);
  box-shadow: 0 0 22px rgba(198, 255, 61, 0.8);
}
.c4 {
  left: 88%;
  top: 30%;
  width: 26px;
  animation-delay: -1s;
}
.c5 {
  left: 58%;
  top: 80%;
  width: 16px;
  animation-delay: -3s;
  background: linear-gradient(135deg, var(--magenta), #a3005f);
  box-shadow: 0 0 22px rgba(255, 61, 174, 0.8);
}

/* Stickers */
.stickers {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.sticker {
  --bg: var(--magenta);
  --fg: #fff;
  --rot: -8deg;
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px 10px;
  background: var(--bg);
  color: var(--fg);
  font: 800 34px/0.9 var(--display);
  text-transform: uppercase;
  border: 3px solid #000;
  border-radius: 16px;
  box-shadow: 6px 6px 0 #000;
  transform: rotate(var(--rot));
  animation: sticker-in 0.6s var(--ease-pop) both;
}
.sticker small {
  font: 700 14px var(--ui);
  letter-spacing: 0.08em;
}
.st-setup {
  left: 50%;
  top: 19%;
  animation-delay: 1.1s;
}
.st-ddos {
  --bg: var(--roi);
  --rot: 7deg;
  right: 4%;
  top: 16%;
  animation-delay: 1.3s;
}
.st-paris {
  --bg: var(--lime);
  --fg: #0b0f00;
  --rot: -5deg;
  right: 6%;
  bottom: 13%;
  font-size: 44px;
  animation-delay: 1.5s;
}
.sticker-inline {
  position: absolute;
  top: -16px;
  right: 18px;
  font-size: 22px;
  padding: 8px 14px;
  z-index: 2;
}
.st-tilt-l {
  --rot: -6deg;
}
.st-tilt-r {
  --rot: 5deg;
}
.st-lime {
  --bg: var(--lime);
  --fg: #0b0f00;
}
.st-magenta {
  --bg: var(--magenta);
}
.proof-ddos .sticker-inline {
  --bg: var(--roi);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  transform: translateX(-50%);
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--lime);
  animation: wheel 1.6s infinite;
}

/* ---------- Sélecteur de mondes ---------- */
.worlds {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.worlds-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.wb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition:
    opacity 0.9s ease,
    transform 6s ease;
}
.wb.is-on {
  opacity: 0.42;
  transform: scale(1);
}
.worlds-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(5, 7, 13, 0.55) 30%, rgba(5, 7, 13, 0.7) 70%, var(--night) 100%),
    radial-gradient(60% 50% at 70% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  transition: background 0.6s;
}
.sec-head {
  margin-bottom: 40px;
}
.world-focus {
  min-height: 210px;
  max-width: 640px;
  margin-bottom: 36px;
}
.wf-game {
  margin: 0;
  font: 500 14px var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.wf-verb {
  margin: 4px 0 8px;
  font: 800 clamp(48px, 6vw, 84px) / 0.9 var(--display);
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 4px 4px 0 #000;
}
.wf-verb.swap,
.wf-pitch.swap {
  animation: swap-in 0.5s var(--ease-out);
}
.wf-pitch {
  margin: 0 0 18px;
  color: #d5dbf5;
}
.wf-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.wf-price {
  margin: 0;
  color: var(--muted);
}
.wf-price strong {
  font: 800 34px var(--display);
  color: var(--ink);
  margin: 0 4px;
}

.world-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 18px 4px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.world-card {
  --c: var(--lime);
  --tilt: -2.5deg;
  scroll-snap-align: start;
}
.world-card:nth-child(even) {
  --tilt: 2deg;
}
.world-card button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-2);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transform: rotate(var(--tilt));
  transition:
    transform 0.45s var(--ease-pop),
    border-color 0.3s,
    box-shadow 0.3s;
}
.world-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition:
    transform 0.8s var(--ease-out),
    filter 0.4s;
  filter: saturate(0.85) brightness(0.8);
}
.world-card button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.95) 0%, rgba(5, 7, 13, 0.1) 55%);
}
.world-card .wc-body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
}
.wc-num {
  font: 500 12px var(--mono);
  color: var(--c);
}
.wc-name {
  display: block;
  font: 800 26px/1 var(--display);
  text-transform: uppercase;
}
.wc-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--c);
  color: #05070d;
  font: 800 15px var(--display);
  text-transform: uppercase;
  transform: rotate(-4deg);
}
.world-card button:hover,
.world-card button:focus-visible,
.world-card.is-active button {
  transform: rotate(0deg) translateY(-12px) scale(1.04);
  border-color: var(--c);
  box-shadow:
    0 0 0 2px #000,
    0 18px 50px color-mix(in srgb, var(--c) 45%, transparent);
}
.world-card button:hover img,
.world-card.is-active img {
  transform: scale(1);
  filter: saturate(1.05) brightness(1);
}

/* ---------- Preuves ---------- */
.proofs {
  padding: 110px 0;
  background:
    radial-gradient(50% 60% at 15% 20%, rgba(30, 72, 255, 0.18), transparent 70%),
    radial-gradient(40% 50% at 90% 80%, rgba(255, 61, 174, 0.1), transparent 70%), var(--night);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.proof {
  position: relative;
  padding: 22px 22px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--night-3), var(--night-2));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.proof h3 {
  margin: 20px 0 8px;
  font: 800 30px/1 var(--display);
  text-transform: uppercase;
}
.proof p {
  margin: 0;
  color: var(--muted);
}
.reveal {
  opacity: 0;
  transform: translateY(40px) rotate(1deg);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.reveal:nth-child(3) {
  transition-delay: 0.24s;
}

.shield-stage,
.ping-stage,
.console {
  position: relative;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #060a17;
}
.shield {
  position: absolute;
  left: 58%;
  top: 50%;
  width: 92px;
  height: 108px;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, var(--roi-hi), #0b1c99);
  clip-path: path('M46 0 L92 18 L92 52 C92 80 70 98 46 108 C22 98 0 80 0 52 L0 18 Z');
  box-shadow: 0 0 40px rgba(30, 72, 255, 0.9);
  animation: shield-hit 2.4s infinite;
}
.wave {
  position: absolute;
  left: -40%;
  top: 0;
  bottom: 0;
  width: 40%;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    rgba(255, 61, 90, 0.75) 10px 13px,
    transparent 13px 22px
  );
  filter: blur(0.5px);
  mask: radial-gradient(60% 50% at 50% 50%, #000 40%, transparent 80%);
  animation: wave 2.4s linear infinite;
}
.w2 {
  animation-delay: 0.8s;
  top: -30%;
}
.w3 {
  animation-delay: 1.6s;
  top: 30%;
}
.players-ok {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(53, 255, 139, 0.12);
  color: #6dffaa;
  font: 12px var(--mono);
}
.ping-map {
  width: 100%;
  height: 100%;
}
.ping-map .hub {
  fill: var(--lime);
  filter: drop-shadow(0 0 8px var(--lime));
}
.ping-map .arc {
  fill: none;
  stroke: var(--roi-hi);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  opacity: 0.8;
}
.ping-map .packet {
  fill: var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
}
.ping-map .city {
  fill: #fff;
}
.ping-map text {
  fill: #c9d1f2;
  font: 11px var(--mono);
}
.console {
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #0d1430;
  font: 12px var(--mono);
  color: var(--muted);
}
.console-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3463;
}
.console-bar i:first-child {
  background: var(--magenta);
}
.console-bar span {
  margin-left: 8px;
}
.console-body {
  margin: 0;
  padding: 12px 14px;
  font: 12.5px/1.65 var(--mono);
  color: #b9c3ee;
  white-space: pre-wrap;
}
.console-body .ok {
  color: var(--lime);
}

/* ---------- Calculateur ---------- */
.calc {
  padding: 110px 0 130px;
  background: linear-gradient(180deg, var(--night), #0a0e24);
}
.calc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.calc-label {
  display: block;
  margin: 34px 0 14px;
  font: 500 15px var(--mono);
  color: var(--muted);
}
.calc-label output {
  color: var(--lime);
  font-size: 22px;
}
.slider {
  width: 100%;
  accent-color: var(--lime);
  height: 28px;
}
.calc-result {
  margin-top: 26px;
  padding: 22px;
  border-radius: 18px;
  border: 2px solid #000;
  background: var(--night-3);
  box-shadow: 6px 6px 0 var(--roi);
}
.calc-result p {
  margin: 0 0 16px;
  font-size: 18px;
}
.calc-result strong {
  color: var(--lime);
}
.squad {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 8px;
  align-content: center;
  min-height: 300px;
}
.squad span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--roi);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
  animation: pop-in 0.35s var(--ease-pop) both;
}
.squad span:nth-child(3n) {
  background: var(--lime);
}
.squad span:nth-child(7n) {
  background: var(--magenta);
}

/* ---------- Pied ---------- */
.foot {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 14px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

/* ---------- Animations ---------- */
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hl-pop {
  0% {
    transform: scale(0.6) rotate(-8deg);
  }
  100% {
    transform: scale(1) rotate(-2deg);
  }
}
@keyframes cast-in {
  from {
    opacity: 0;
    translate: 0 80px;
    scale: 0.9;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes sticker-in {
  from {
    opacity: 0;
    transform: rotate(calc(var(--rot) - 25deg)) scale(0.2);
  }
  to {
    opacity: 1;
    transform: rotate(var(--rot)) scale(1);
  }
}
@keyframes float {
  0%,
  100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 0 -18px;
    rotate: 25deg;
  }
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(53, 255, 139, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(53, 255, 139, 0);
  }
}
@keyframes wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes swap-in {
  from {
    opacity: 0;
    transform: translateY(16px) skewY(3deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes wave {
  from {
    left: -40%;
  }
  to {
    left: 46%;
    opacity: 0;
  }
}
@keyframes shield-hit {
  0%,
  40%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  48% {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 0 70px rgba(61, 224, 255, 1);
  }
}
@keyframes pop-in {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .proof-grid {
    grid-template-columns: 1fr;
  }
  .calc-inner {
    grid-template-columns: 1fr;
  }
  .cast-survivor,
  .st-setup {
    display: none;
  }
}
@media (max-width: 720px) {
  .hero {
    align-items: end;
    padding-bottom: 80px;
  }
  .hero-shade {
    background:
      linear-gradient(0deg, var(--night) 0%, rgba(5, 7, 13, 0.75) 45%, rgba(5, 7, 13, 0.1) 75%),
      linear-gradient(180deg, rgba(5, 7, 13, 0.6) 0%, transparent 18%);
  }
  .cast-builder {
    width: 62vw;
    right: -6%;
    bottom: auto;
    top: 10%;
  }
  .cast-rider,
  .st-ddos {
    display: none;
  }
  .st-paris {
    font-size: 30px;
    right: auto;
    left: 16px;
    top: 15%;
    bottom: auto;
  }
  .brand-word {
    font-size: 20px;
  }
  .squad {
    grid-template-columns: repeat(10, 1fr);
    min-height: 0;
  }
}

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

/* ---------- Logo Ancelade Game ---------- */
.brand-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
}
.foot-emblem {
  width: 96px;
  height: auto;
}
@media (max-width: 720px) {
  .brand-logo {
    height: 30px;
  }
}
