/* No LimitZ — site vitrine. Mêmes couleurs et même police que le jeu (Lilita One, contours sombres, boutons épais). */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #1c1830;
  --navy: #212b5c;
  --night: #141638;
  --sky: #2f6fe0;
  --gold: #ffcc33;
  --orange: #ff8f1f;
  --green: #4dcc73;
  --blue: #4099ff;
  --pink: #ff5c80;
  --purple: #9e59f2;
  --paper: #f5f3ff;
  --text: #e9ecff;
  --muted: #aab3e6;
  --radius: 26px;
  --gutter: 16px;
  --title: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--night);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(64, 153, 255, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(158, 89, 242, .28), transparent 60%),
    linear-gradient(180deg, #141638 0%, #1b2560 45%, #141638 100%);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Titres façon jeu : contour sombre et ombre portée ---------- */
.title, h1, h2, h3 {
  font-family: var(--title);
  font-weight: 400;
  letter-spacing: .5px;
  line-height: 1.1;
  margin: 0 0 .4em;
  color: #fff;
  -webkit-text-stroke: 0;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--ink), 0 0 2px var(--ink);
}
h1 { font-size: clamp(40px, 7vw, 74px); }
h2 { font-size: clamp(32px, 5vw, 50px); text-align: center; }
h3 { font-size: 26px; }
.gold { color: var(--gold); }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.center { text-align: center; }
.section-intro { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }

/* ---------- Logo en texte (même dessin que le logo du jeu) ---------- */
.wordmark {
  font-family: var(--title);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  transform: rotate(-4deg);
  -webkit-text-stroke: 6px var(--navy);
  paint-order: stroke fill;
  filter: drop-shadow(0 3px 0 var(--ink));
}
.wordmark .no { color: var(--gold); font-size: .72em; margin-right: 4px; }
.wordmark .lim { color: #fff; }
.wordmark .z { color: var(--gold); font-size: 1.25em; }

/* ---------- Barre du haut ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 22, 56, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid rgba(0, 0, 0, .35);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-family: var(--title); font-size: 18px; letter-spacing: .5px; }
.nav-links a:not(.btn):hover { color: var(--gold); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Boutons épais du jeu ---------- */
.btn {
  --c: var(--green);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 26px 16px;
  font-family: var(--title); font-size: 22px; letter-spacing: .5px;
  color: #fff; text-decoration: none; text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  background: var(--c);
  border: 4px solid var(--ink);
  border-bottom-width: 10px;
  border-radius: 22px;
  cursor: pointer;
  transition: transform .12s ease, border-bottom-width .08s ease, filter .12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(4px); border-bottom-width: 5px; }
.btn.small { font-size: 17px; padding: 9px 16px 11px; border-bottom-width: 7px; border-radius: 16px; }
.btn.gold { --c: var(--orange); background: linear-gradient(180deg, var(--gold), var(--orange)); }
.btn.blue { --c: var(--blue); }
.btn .ico { width: 30px; height: 30px; flex: none; }
.btn .sub { display: block; font-family: var(--body); font-size: 13px; font-weight: 600; opacity: .9; letter-spacing: 0; text-shadow: none; }
.btn .txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }

/* Bouton de magasin pas encore disponible */
.btn.soon {
  --c: #3a4170;
  color: #c7cbea;
  cursor: default;
  position: relative;
}
.btn.soon:hover, .btn.soon:active { transform: none; border-bottom-width: 10px; filter: none; }
.badge {
  position: absolute; top: -14px; right: -10px;
  font-family: var(--title); font-size: 13px; letter-spacing: .5px;
  background: var(--pink); color: #fff;
  border: 3px solid var(--ink); border-radius: 12px;
  padding: 2px 9px 3px;
  transform: rotate(6deg);
  text-shadow: none;
}

.stores { display: flex; flex-wrap: wrap; gap: 18px 14px; margin: 28px 0 12px; }
.store-note { color: var(--muted); font-size: 14px; }

/* ---------- Bandeau d'accueil ---------- */
.hero { position: relative; padding: 56px 0 90px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.tag {
  display: inline-block;
  font-family: var(--title); font-size: 16px; letter-spacing: .6px;
  color: var(--ink); background: var(--gold);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: 4px 14px 5px;
  margin-bottom: 18px;
  transform: rotate(-2deg);
}
.hero h1 .line { display: block; }
.hero h1 .gold { color: var(--gold); }

.phone {
  position: relative;
  width: min(330px, 78vw);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 42px;
  border: 10px solid var(--ink);
  background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .08);
  overflow: hidden;
  transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone::after {          /* encoche */
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 20px; border-radius: 20px; background: var(--ink);
}
.hero-visual { position: relative; }

/* Pièces qui tournent autour du téléphone */
.coin {
  position: absolute; width: 64px; height: 64px;
  background: url("../img/coin.webp") center / contain no-repeat;
  animation: spin 2.4s linear infinite, float 4s ease-in-out infinite;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .35));
  z-index: 2;
}
.coin.c1 { top: 8%; left: 2%; }
.coin.c2 { top: 52%; right: 0; width: 52px; height: 52px; animation-delay: -.8s, -1.5s; }
.coin.c3 { bottom: 4%; left: 12%; width: 44px; height: 44px; animation-delay: -1.6s, -3s; }
@keyframes spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(.12); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(.12); } 100% { transform: scaleX(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Rayures des obstacles du jeu, en séparateur */
.stripes {
  height: 22px;
  background: repeating-linear-gradient(-45deg, #e8202a 0 22px, #f7f5f0 22px 44px);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

@media (max-width: 900px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .hero-visual { order: -1; }
}

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -40px; position: relative; z-index: 3; }
.stat {
  background: var(--paper); color: var(--ink);
  border: 4px solid var(--ink); border-bottom-width: 10px; border-radius: var(--radius);
  padding: 16px 12px 14px; text-align: center;
}
.stat b { display: block; font-family: var(--title); font-weight: 400; font-size: 38px; line-height: 1; color: var(--orange); -webkit-text-stroke: 0; }
.stat span { font-weight: 700; font-size: 15px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

section { padding: 84px 0; }

/* ---------- Cartes génériques ---------- */
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards.three, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards.three, .cards.four { grid-template-columns: 1fr; } }

.card {
  --c: var(--blue);
  background: var(--c);
  border: 4px solid var(--ink); border-bottom-width: 12px; border-radius: var(--radius);
  padding: 22px 20px 20px;
  color: #fff;
}
.card p { margin: 0; color: rgba(255, 255, 255, .92); font-weight: 600; }
.card h3 { font-size: 25px; }
.card .ico { width: 64px; height: 64px; margin-bottom: 10px; }
.card.green { --c: #2fa85a; } .card.pink { --c: #e8456b; } .card.purple { --c: #7d45d6; } .card.orange { --c: #e8780f; } .card.blue { --c: #2b7fe0; }

/* Gestes : flèches dessinées */
.gesture {
  width: 76px; height: 76px; margin-bottom: 12px;
  border-radius: 22px; border: 4px solid var(--ink);
  background: rgba(255, 255, 255, .95);
  display: grid; place-items: center;
}
.gesture svg { width: 46px; height: 46px; stroke: var(--ink); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Univers : carrousel ---------- */
.worlds {
  display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 26px;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.world {
  scroll-snap-align: start;
  background: var(--paper); color: var(--ink);
  border: 4px solid var(--ink); border-bottom-width: 12px; border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s;
}
.world:hover { transform: translateY(-6px) rotate(-1deg); }
.world .shot { aspect-ratio: 9 / 13; overflow: hidden; border-bottom: 4px solid var(--ink); }
.world .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.world .info { padding: 12px 14px 14px; }
.world .num { font-family: var(--title); font-size: 14px; color: #fff; background: var(--navy); border-radius: 10px; padding: 1px 8px 2px; }
.world h3 { color: var(--ink); text-shadow: none; font-size: 23px; margin: 8px 0 4px; }
.world p { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; color: #3b3760; }
.worlds-hint { text-align: center; color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (min-width: 1200px) { .worlds { justify-content: safe center; } }

/* ---------- Personnages ---------- */
.chars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.char { text-align: center; }
.char .face {
  width: 170px; height: 170px; margin: 0 auto 14px;
  border-radius: 50%; border: 6px solid #fff;
  box-shadow: 0 0 0 5px var(--ink), 0 12px 0 5px var(--ink);
  overflow: hidden;
}
.char .face img { width: 100%; height: 100%; object-fit: cover; }
.char.c-jay .face { background: var(--gold); }
.char.c-jade .face { background: var(--pink); }
.char.c-kai .face { background: var(--blue); }
.char h3 { font-size: 34px; text-align: center; margin-bottom: 6px; }
.pill {
  display: inline-block; font-weight: 800; font-size: 14px;
  background: rgba(255, 255, 255, .12); border: 2px solid rgba(255, 255, 255, .25);
  border-radius: 999px; padding: 4px 12px;
}
.pill img { display: inline; width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
@media (max-width: 700px) { .chars { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- Boosts ---------- */
.boosts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.boost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-bottom-width: 7px; border-radius: 16px;
  padding: 6px 14px 6px 8px; font-family: var(--title); font-size: 18px;
}
.boost img { width: 34px; height: 34px; }

/* ---------- Bloc téléchargement ---------- */
.download {
  position: relative;
  background: linear-gradient(160deg, #3d7df0 0%, #6b3fd6 100%);
  border: 5px solid var(--ink); border-bottom-width: 16px; border-radius: 34px;
  padding: 44px 28px 36px;
  text-align: center;
  overflow: hidden;
}
.download::before {
  content: ""; position: absolute; inset: auto -10% -60px -10%; height: 120px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .08) 0 24px, transparent 24px 48px);
}
.download .stores { justify-content: center; }
.download .lead { margin: 0 auto; color: #e6e8ff; }
.apk-info { font-weight: 700; color: #fff; opacity: .9; font-size: 15px; min-height: 1.5em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; text-align: left; }
.step { background: rgba(20, 22, 56, .35); border: 3px solid rgba(0, 0, 0, .35); border-radius: 20px; padding: 16px; }
.step b { font-family: var(--title); font-weight: 400; font-size: 30px; color: var(--gold); display: block; line-height: 1; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15px; font-weight: 600; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
footer { padding: 46px 0 40px; border-top: 3px solid rgba(0, 0, 0, .35); background: rgba(10, 11, 32, .45); margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--gold); }
footer small { color: var(--muted); display: block; margin-top: 6px; }

/* ---------- Pages légales ---------- */
.legal { padding: 40px 0 20px; }
.legal .paper {
  max-width: 860px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  border: 5px solid var(--ink); border-bottom-width: 14px; border-radius: 30px;
  padding: 34px clamp(18px, 5vw, 50px) 40px;
}
.legal h1 { font-size: clamp(32px, 6vw, 48px); color: #fff; text-align: center; }
.legal .updated { text-align: center; color: var(--muted); margin-bottom: 26px; }
.legal h2 { text-align: left; font-size: 26px; color: var(--navy); text-shadow: none; margin-top: 1.6em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; }
.legal a { color: #3b5bdb; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { border: 2px solid #d9d5f2; padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: #ece9ff; }
.legal .toc { background: #ece9ff; border-radius: 18px; padding: 14px 20px; margin-bottom: 10px; }
.legal .toc ol { margin: 6px 0; padding-left: 22px; }
.todo { background: #ffe066; padding: 0 5px; border-radius: 5px; font-weight: 700; }
.back { display: inline-block; margin: 0 0 18px; color: var(--gold); font-family: var(--title); text-decoration: none; font-size: 18px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.legal .back { color: var(--gold); }
