/* ArenaVS Games — thème « arcade chunky » (partagé landing + pages jeu) */
:root {
  --bg: #0a0c1e;
  --bg-2: #10142e;
  --panel: #171c3d;
  --panel-2: #1f2650;
  --ink: #07091a;
  --edge: #0c0f26;
  --line: rgba(139, 151, 255, 0.16);
  --line-strong: rgba(139, 151, 255, 0.32);
  --text: #ffffff;
  --muted: #aab3e8;
  --yellow: #ffcf3d;
  --yellow-d: #b8860b;
  --pink: #ff4fa3;
  --cyan: #3ee0ff;
  --green: #58e05c;
  --green-hi: #7cf06a;
  --green-lo: #3ecf52;
  --green-d: #1d8f2e;
  --purple: #9d6bff;
  --purple-hi: #a678ff;
  --purple-lo: #7e4fe0;
  --purple-d: #5a34ad;
  --blue: #4a9dff;
  --orange: #ff9838;
  --radius: 18px;
  --maxw: 1180px;
  --header-h: 68px;
  --display: "Lilita One", "Arial Black", sans-serif;
  font-family: Nunito, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(157, 107, 255, 0.14), transparent 60%),
    radial-gradient(900px 520px at -10% 20%, rgba(62, 224, 255, 0.10), transparent 55%),
    radial-gradient(800px 500px at 50% 110%, rgba(255, 79, 163, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

/* ---------- Wordmark (logo texte chunky) ---------- */
.wm {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
  color: var(--text);
  text-shadow:
    2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink),
    1.5px 1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px -1.5px 0 var(--ink),
    0 4px 0 var(--ink);
}
.wm .wm-games { color: var(--cyan); }
.wm .wm-vs {
  font-size: 0.72em;
  color: #3a2200;
  background: linear-gradient(180deg, #ffd95e, #ffb02e);
  border: 2px solid var(--ink);
  border-radius: 0.35em;
  padding: 0.02em 0.22em 0.06em;
  transform: rotate(-7deg);
  box-shadow: 0 3px 0 var(--ink);
  text-shadow: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 12, 30, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; }
.brand .wm { font-size: 24px; }
.nav { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(139, 151, 255, 0.12); }
.nav a.cta {
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: #083b12;
  background: linear-gradient(180deg, var(--green-hi), var(--green-lo));
  border: 2px solid var(--ink);
  border-radius: 13px;
  padding: 8px 16px 9px;
  box-shadow: 0 4px 0 var(--green-d);
  transition: transform .08s, box-shadow .08s;
}
.nav a.cta:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--green-d); }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 36px; text-align: center; position: relative; }

.hero-mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 8.5vw, 92px);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16em;
  flex-wrap: wrap;
  margin: 0 0 22px;
  color: var(--text);
  text-shadow:
    3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink),
    0 8px 0 var(--ink), 0 16px 30px rgba(0, 0, 0, 0.5);
}
.hero-mark .hm-games { color: var(--cyan); }
.hero-mark .hm-vs {
  font-size: 0.62em;
  color: #3a2200;
  background: linear-gradient(180deg, #ffd95e, #ffb02e);
  border: 3px solid var(--ink);
  border-radius: 0.3em;
  padding: 0.04em 0.24em 0.1em;
  transform: rotate(-8deg);
  box-shadow: 0 6px 0 var(--ink), 0 12px 22px rgba(0, 0, 0, 0.4);
  text-shadow: none;
}

/* cubes flottants décoratifs */
.fcube {
  position: absolute;
  border: 3px solid var(--ink);
  border-radius: 22%;
  box-shadow: 0 6px 0 rgba(7, 9, 26, 0.6);
  opacity: 0.9;
  pointer-events: none;
  animation: float 7s ease-in-out infinite alternate;
}
.fcube.c1 { width: 34px; height: 34px; background: var(--pink);   top: 12%; left: 7%;  transform: rotate(14deg);  animation-delay: 0s; }
.fcube.c2 { width: 24px; height: 24px; background: var(--cyan);   top: 58%; left: 13%; transform: rotate(-11deg); animation-delay: -2.4s; }
.fcube.c3 { width: 42px; height: 42px; background: var(--purple); top: 20%; right: 8%; transform: rotate(-16deg); animation-delay: -1.2s; }
.fcube.c4 { width: 22px; height: 22px; background: var(--yellow); top: 66%; right: 14%; transform: rotate(9deg);  animation-delay: -4s; }
.fcube.c5 { width: 18px; height: 18px; background: var(--green);  top: 38%; right: 24%; transform: rotate(20deg); animation-delay: -3.1s; }
@keyframes float {
  from { translate: 0 -8px; }
  to   { translate: 0 14px; }
}

.hero h1 {
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.hero h1 span { color: var(--yellow); }
.hero p {
  color: var(--muted);
  font-size: clamp(15px, 2.2vw, 19px);
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Boutons chunky ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px 15px;
  border-radius: 16px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.btn.primary {
  color: #083b12;
  background: linear-gradient(180deg, var(--green-hi), var(--green-lo));
  box-shadow: 0 6px 0 var(--green-d), 0 14px 26px rgba(0, 0, 0, 0.35);
}
.btn.primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--green-d), 0 10px 20px rgba(0, 0, 0, 0.3); }
.btn.primary:active { transform: translateY(6px); box-shadow: 0 0 0 var(--green-d); }
.btn.ghost {
  color: #fff;
  background: linear-gradient(180deg, var(--purple-hi), var(--purple-lo));
  box-shadow: 0 6px 0 var(--purple-d), 0 14px 26px rgba(0, 0, 0, 0.35);
}
.btn.ghost:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--purple-d), 0 10px 20px rgba(0, 0, 0, 0.3); }
.btn.ghost:active { transform: translateY(6px); box-shadow: 0 0 0 var(--purple-d); }

/* ---------- Stickers (pills du hero) ---------- */
.pills { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.pill {
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 7px 14px 8px;
  box-shadow: 0 4px 0 var(--ink);
}
.pill b { font-weight: 400; }
.pills .pill:nth-child(1) { background: var(--yellow); transform: rotate(-3deg); }
.pills .pill:nth-child(2) { background: var(--cyan);   transform: rotate(2deg); }
.pills .pill:nth-child(3) { background: var(--pink);   transform: rotate(-2deg); color: #fff; }
.pills .pill:nth-child(4) { background: var(--green);  transform: rotate(3deg); }

/* ---------- Sections ---------- */
section { padding: 30px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  margin: 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 var(--ink);
}
.section-head .muted { color: var(--muted); font-size: 14px; font-weight: 700; }

/* ---------- Grille de jeux ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 7px 0 var(--edge), 0 20px 36px rgba(0, 0, 0, 0.4);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 0 var(--edge), 0 28px 48px rgba(0, 0, 0, 0.5);
}
.card .thumb { aspect-ratio: 16 / 9; position: relative; display: block; overflow: hidden; background: var(--bg-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.card:hover .thumb img { transform: scale(1.06); }
.card .badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px 6px;
  border-radius: 10px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transform: rotate(4deg);
}
.badge.hot { background: var(--yellow); color: var(--ink); }
.badge.new { background: var(--pink); color: #fff; }
.badge.soon-b { background: var(--panel-2); color: var(--muted); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card .body h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 var(--ink);
}
.card .body p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(62, 224, 255, 0.14);
  color: var(--cyan);
  border: 2px solid rgba(62, 224, 255, 0.4);
}
.tag.alt { background: rgba(157, 107, 255, 0.14); color: var(--purple); border-color: rgba(157, 107, 255, 0.4); }
.card .play { margin-top: 8px; width: 100%; }
.card.soon .thumb {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(139, 151, 255, 0.05), rgba(139, 151, 255, 0.05) 14px, transparent 14px, transparent 28px),
    var(--bg-2);
}
.card.soon .qmark {
  font-family: var(--display);
  font-size: 84px;
  color: var(--panel-2);
  text-shadow: 0 4px 0 var(--ink);
}

/* ---------- Catégories ---------- */
.cats { display: flex; gap: 14px; flex-wrap: wrap; }
.cat {
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 11px 20px 12px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: var(--panel-2);
  color: var(--text);
  box-shadow: 0 5px 0 var(--edge);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.cat:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge); background: var(--panel); }

/* ---------- À propos ---------- */
.about-box {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 6px 0 var(--edge);
  padding: 22px 26px;
  color: var(--muted);
  max-width: 820px;
  font-size: 15px;
}
.about-box b { color: var(--text); }

/* ---------- Emplacements pub ---------- */
.ad {
  display: grid;
  place-items: center;
  margin-inline: auto;
  background: repeating-linear-gradient(45deg, rgba(139, 151, 255, 0.03), rgba(139, 151, 255, 0.03) 10px, transparent 10px, transparent 20px);
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  position: relative;
  overflow: hidden;
}
.ad::before { content: "Espace publicitaire"; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .5; }
.ad.leaderboard { width: 100%; max-width: 728px; height: 90px; }
.ad.rect { width: 300px; height: 250px; }
.ad.sky { width: 160px; height: 600px; }
.ad-row { display: flex; justify-content: center; padding: 18px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--line); margin-top: 46px; padding: 32px 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer .flinks { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }

/* ---------- Page jeu ---------- */
.game-top { padding: 24px 0 8px; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.crumbs a:hover { color: var(--cyan); }
.game-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.game-title h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 46px);
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 var(--ink), 0 8px 16px rgba(0, 0, 0, 0.4);
}
.game-title .by { color: var(--muted); font-size: 14px; font-weight: 700; }
.game-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr) 160px; gap: 18px; align-items: start; padding-top: 14px; }
.game-aside { position: sticky; top: calc(var(--header-h) + 14px); display: grid; gap: 18px; justify-items: center; }
.stage {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: #05060f;
  box-shadow: 0 8px 0 var(--edge), 0 26px 60px rgba(0, 0, 0, 0.55);
  position: relative;
}
.stage .bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 2px solid var(--line); background: var(--panel); }
.stage .bar .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.stage .bar .name { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 0.03em; }
.stage .bar .spacer { flex: 1; }
.stage .bar button {
  background: var(--panel-2);
  color: var(--text);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 6px 12px 7px;
  font: 800 13px/1 Nunito, sans-serif;
  box-shadow: 0 3px 0 var(--edge);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
}
.stage .bar button:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.stage .bar .btn { font-size: 13px; padding: 6px 12px 7px; border-width: 2px; border-radius: 10px; box-shadow: 0 3px 0 var(--purple-d); }
.frame { aspect-ratio: 16 / 9; width: 100%; background: #05060f; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-meta { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.game-meta .box {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--panel);
  box-shadow: 0 5px 0 var(--edge);
}
.game-meta h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 0.03em; }
.game-meta p, .game-meta li { color: var(--muted); font-size: 14px; }
.game-meta ul { margin: 0; padding-left: 18px; }
kbd {
  background: var(--bg-2);
  border: 2px solid var(--line-strong);
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 2px 8px;
  font: 800 12px/1.4 ui-monospace, monospace;
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-aside { position: static; flex-direction: row; display: flex; flex-wrap: wrap; }
  .ad.sky { width: 100%; max-width: 336px; height: 280px; }
  .fcube { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 12, 30, 0.97);
    border-bottom: 2px solid var(--line);
    padding: 12px;
    gap: 6px;
  }
  .burger {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2.5px solid var(--ink);
    background: var(--panel-2);
    box-shadow: 0 3px 0 var(--edge);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fcube { animation: none; }
  .card, .btn, .cat, .nav a.cta, .stage .bar button { transition: none; }
  .card .thumb img { transition: none; }
}
