/* SixStarMods, codes de triche */
:root {
  --night: #0c0d1b;
  --night-2: #18182d;
  --card: #1a1a31;
  --pink: #ffb2c6;
  --lavender: #d8cff0;
  --muted: #aba4c9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { margin: 0; background: var(--night); }
body { margin: 0; }

/* Fond nuit en dégradé, comme le site GTA VI de Rockstar */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(189deg, #1f1f38 0.5%, #18182d 30%, #111222 65%, #0c0d1b 100%);
}

body {
  color: #ffffff;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: rgba(12, 13, 27, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand { display: flex; align-items: center; padding: 8px 0; color: #ffffff; text-decoration: none; transition: color 0.2s ease; }
.brand:hover { color: var(--pink); }
.brand svg { display: block; width: 40px; height: auto; fill: currentColor; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; }
.nav a { color: #d9cff0; text-decoration: none; font-weight: 600; font-size: 15px; padding: 11px 0; }
.nav a:hover { color: #ffffff; }
.nav [aria-current="page"] { color: #ffffff; font-weight: 700; font-size: 15px; padding: 9px 0; border-bottom: 2px solid var(--pink); }

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px max(20px, env(safe-area-inset-right)) 64px max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.intro { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.intro h1 {
  margin: 0;
  font-family: Archivo, "Arial Narrow", sans-serif;
  font-weight: 850;
  font-stretch: 78%;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--lavender); }

/* Mode d'emploi */
.howto {
  background: var(--night-2);
  border-radius: 18px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.howto h2 { margin: 0; font-family: Archivo, "Arial Narrow", sans-serif; font-weight: 800; font-stretch: 85%; font-size: 24px; }

.steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 10px 32px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--lavender);
}

.steps strong { color: #ffffff; }
.steps li::marker { color: var(--pink); font-weight: 700; }


/* Recherche et filtres */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.search {
  flex: 1 1 280px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search:focus-within { border-color: rgba(255, 178, 198, 0.75); box-shadow: 0 0 0 4px rgba(255, 178, 198, 0.14); }
.search input:focus { outline: none; }
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  cursor: pointer;
  background: center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8cff0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}
.search svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; color: #ffffff; font: 500 16px Inter, system-ui, sans-serif; padding: 11px 0; }
.search input::placeholder { color: #a99cc8; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.filter {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  font: 600 14px Inter, system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter span { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #0c0d1b; }
.filter[aria-pressed="true"] span { color: #0c0d1b; }

.count { margin: 0; flex-basis: 100%; font-size: 14px; color: var(--muted); }

/* Liste */
.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: 16px;
}

.cheat {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cheat h3 {
  margin: 0;
  font-family: Archivo, "Arial Narrow", sans-serif;
  font-weight: 800;
  font-stretch: 85%;
  font-size: 22px;
  line-height: 1.1;
}


.effect { margin: 0; font-size: 15px; line-height: 1.5; color: var(--lavender); }

.unlock { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.unlock b { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #ffffff; margin-right: 6px; }

.code { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

.key {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom-width: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.key svg { width: 18px; height: 18px; fill: none; stroke: #ffffff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.empty { margin: 0; font-size: 15px; color: var(--muted); }

.source {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

button:focus-visible, a:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

@media (max-width: 700px) {
  .page { padding-top: 32px; gap: 22px; }
  .search { max-width: none; }
}

/* Arrivée sur la page : le contenu monte en douceur */
.page { animation: page-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }

/* Discord : tout a droite de la barre du haut */
.discord { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; color: #d9cff0; text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.discord svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.discord:hover, .discord:focus-visible { color: #ffffff; background: #5865f2; border-color: #5865f2; }
@media (max-width: 640px) {
  .discord { width: 36px; padding: 0; justify-content: center; }
  .discord span { display: none; }
  .topbar { column-gap: 16px; }
  .nav { column-gap: 16px; }
}
