/*
 * Zenith-MC : direction artistique « centrale ».
 * Le site reprend le logo : des plaques d'acier rivetées au contour épais, le cœur orange pour les actions
 * principales, l'éclair cyan pour ce qui est vivant ou cliquable, le vert pixel pour « serveur en ligne ».
 */

/* ---------- Couleurs ---------- */
:root {
  --page: #e3e7ec;
  --plate: #f3f5f8;
  --plate-2: #dce1e8;
  --ink: #14181e;
  --muted: #4c5561;
  --outline: #12161b;
  --bevel-hi: rgba(255, 255, 255, .95);
  --bevel-lo: rgba(18, 22, 27, .13);
  --drop: rgba(18, 22, 27, .2);
  --rivet: #b7bec7;
  --rivet-hole: #66707c;
  --core: #f5a524;
  --core-hover: #ffb93f;
  --spark: #07779a;
  --pixel: #2f8f1c;
  --header: rgba(243, 245, 248, .94);
  --seam: #12161b;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #171a1f;
  --plate: #252a32;
  --plate-2: #1d2128;
  --ink: #eef1f5;
  --muted: #a7b0bc;
  --outline: #0a0c0f;
  --bevel-hi: rgba(255, 255, 255, .08);
  --bevel-lo: rgba(0, 0, 0, .35);
  --drop: rgba(0, 0, 0, .5);
  --rivet: #828a97;
  --rivet-hole: #363c45;
  --spark: #35c6ee;
  --pixel: #62d13d;
  --header: rgba(29, 33, 40, .94);
  --seam: #0a0c0f;
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 "Barlow", system-ui, sans-serif;
  transition: background-color .25s ease, color .25s ease;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Pixelify Sans", "Barlow", sans-serif; font-weight: 700; letter-spacing: 0; font-variant-ligatures: none; }
h1 em, h2 em { font-style: normal; color: inherit; }
img { max-width: 100%; }
section[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; }

/* La plaque rivetée : contour épais, biseau, un rivet dans chaque coin. */
.plate,
.feature-card, .server-card, .server-shot, .server-status, .join-card, .access-note,
.connection-intro, .connection-step, .connection-tip, .wiki-intro,
.shop-intro, .rank-card, .shop-never, .pvp-how, .pvp-board {
  position: relative;
  border: 3px solid var(--outline);
  border-radius: 10px;
  background:
    radial-gradient(circle at 13px 13px, var(--rivet) 0 2.5px, var(--rivet-hole) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 13px) 13px, var(--rivet) 0 2.5px, var(--rivet-hole) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at 13px calc(100% - 13px), var(--rivet) 0 2.5px, var(--rivet-hole) 2.5px 4px, transparent 4.5px),
    radial-gradient(circle at calc(100% - 13px) calc(100% - 13px), var(--rivet) 0 2.5px, var(--rivet-hole) 2.5px 4px, transparent 4.5px),
    var(--plate);
  box-shadow: inset 0 3px 0 var(--bevel-hi), inset 0 -5px 0 var(--bevel-lo), 0 6px 0 var(--drop);
}

/* ---------- Boutons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 3px solid var(--outline);
  border-radius: 10px;
  background: var(--core);
  color: #14181e;
  font: 700 15px/1 "Barlow", sans-serif;
  text-decoration: none;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .22), 0 5px 0 var(--outline);
  transition: transform .12s ease, box-shadow .12s ease, background-color .2s ease;
}
.button:hover { background: var(--core-hover); }
.button:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .22), 0 1px 0 var(--outline); }
.discord-link, .button.discord-link { background: #5865f2; color: #fff; }
.discord-link:hover, .button.discord-link:hover { background: #6f7af5; }
.discord-icon { width: 20px; height: 20px; flex: 0 0 auto; object-fit: contain; border-radius: 5px; }
.text-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(53, 198, 238, .7); padding-bottom: 2px; }
.text-link:hover { color: #35c6ee; }
.text-link span { padding-left: 6px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, calc((100% - 1280px) / 2));
  background: var(--header);
  border-bottom: 3px solid var(--seam);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .3)); }
.brand img.brand-wordmark { width: auto; height: 24px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.nav { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 14.5px; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav > a:not(.discord-link):not(.nav-connection-link) { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav > a:not(.discord-link):not(.nav-connection-link):hover { color: var(--spark); border-color: var(--spark); }
.nav a[aria-current="page"] { color: var(--spark); }
.nav .nav-discord, .nav .nav-connection-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 3px solid var(--outline);
  border-radius: 9px;
  font-weight: 700;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -3px 0 rgba(0, 0, 0, .2), 0 3px 0 var(--outline);
}
.nav .nav-discord .discord-icon { width: 18px; height: 18px; }
.nav .nav-connection-link { background: var(--core); color: #14181e; }
.nav .nav-connection-link:hover { background: var(--core-hover); }
.nav .nav-connection-link[aria-current="page"] { color: #14181e; background: var(--core-hover); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 2px solid var(--outline);
  border-radius: 9px;
  background: var(--plate-2);
  color: var(--ink);
  font: 600 14px "Barlow", sans-serif;
  cursor: pointer;
}
.theme-toggle:hover { color: var(--spark); }
.theme-icon { color: var(--core); font-size: 16px; line-height: 1; }
.menu-toggle { display: none; padding: 6px; border: 2px solid var(--outline); border-radius: 8px; background: var(--plate-2); cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 3px; margin: 4px 0; background: var(--ink); }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: center;
  padding: 140px max(5vw, calc((100% - 1280px) / 2)) 100px;
  overflow: hidden;
  background: #171a1f;
  color: #fff;
  border-bottom: 3px solid var(--seam);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 0;
  border: 0;
  background: #171a1f;
  cursor: zoom-in;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 19, 24, .88) 0%, rgba(16, 19, 24, .6) 30%, rgba(16, 19, 24, .08) 56%, transparent 100%),
    linear-gradient(0deg, rgba(16, 19, 24, .55), transparent 40%);
}
.hero-copy { position: relative; z-index: 2; width: min(100%, 600px); }
.hero-logo { display: block; width: 150px; height: 150px; object-fit: contain; margin: 0 0 6px -10px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; margin: 0 0 22px; text-shadow: 0 4px 0 #0a0c0f; }
.hero-text { max-width: 470px; color: #dfe4ea; font-size: 18px; line-height: 1.6; }

/* Statut du serveur : un compteur de centrale. */
.server-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 10px;
  padding: 14px 18px 14px 30px;
  --plate: #1d2128;
  --rivet: #7d8592;
  --rivet-hole: #30353e;
  --bevel-hi: rgba(255, 255, 255, .07);
  border-color: #0a0c0f;
  color: #fff;
  font-size: 15px;
}
.server-status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--core); box-shadow: 0 0 0 3px rgba(245, 165, 36, .2); }
.server-status[data-state="online"] .server-status-dot { background: #62d13d; box-shadow: 0 0 0 3px rgba(98, 209, 61, .22), 0 0 12px #62d13d; animation: voyant 2.4s ease-in-out infinite; }
.server-status[data-state="offline"] .server-status-dot, .server-status[data-state="error"] .server-status-dot { background: #e5533f; box-shadow: 0 0 0 3px rgba(229, 83, 63, .22); }
.server-status-label { font-weight: 700; }
.player-count { font: 700 22px/1 "Pixelify Sans", sans-serif; color: #62d13d; }
.player-caption { color: #b8c0cb; }
.copy-server {
  padding: 8px 12px;
  border: 2px solid #35c6ee;
  border-radius: 8px;
  background: rgba(53, 198, 238, .12);
  color: #8fe3fa;
  font: 700 14px "Barlow", sans-serif;
  cursor: pointer;
}
.copy-server:hover { background: rgba(53, 198, 238, .26); color: #fff; }
.copy-server:active { transform: translateY(1px); }
@keyframes voyant { 50% { box-shadow: 0 0 0 5px rgba(98, 209, 61, .1), 0 0 4px #62d13d; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section-shell { padding: 104px max(6vw, calc((100% - 1240px) / 2)); border-bottom: 3px solid var(--seam); }
.intro, .features, .footer { background: var(--page); }
.gallery, .server-features { background: var(--plate-2); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin: 0 0 48px; }
.section-heading h2, .intro h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin: 0; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); font-size: 17px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8vw; align-items: start; }
.lead { font-size: 23px; line-height: 1.45; font-weight: 500; }
.intro-grid div p:last-child { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0; }

/* Images */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.server-shot { margin: 0; padding: 12px 12px 0; overflow: hidden; }
.image-open { font: inherit; color: inherit; }
.gallery-image-open { display: block; width: 100%; padding: 0; border: 2px solid var(--outline); border-radius: 6px; background: #101318; overflow: hidden; cursor: zoom-in; }
.server-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.gallery-image-open:hover img { transform: scale(1.03); }
.server-shot figcaption { display: flex; align-items: center; gap: 10px; padding: 14px 18px 16px; font: 700 20px "Pixelify Sans", sans-serif; }
.server-shot figcaption span { display: none; }

/* Cartes */
.feature-grid, .server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card, .server-card { padding: 34px 30px 30px; }
.feature-card h3 { font-size: 26px; line-height: 1.12; margin: 22px 0 12px; }
.server-card h3 { font-size: 22px; line-height: 1.15; margin: 20px 0 10px; }
.feature-card > p:not(.card-index), .server-card > p:not(.card-index) { margin: 0; color: var(--muted); font-size: 16px; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--core);
  color: #14181e;
  font-size: 24px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .25);
}
.card-index, .card-line { display: none; }
.server-voice { display: flex; align-items: center; gap: 12px; margin: 36px 0 0; color: var(--muted); font-size: 16px; }
.server-voice strong { color: var(--ink); }
.server-voice .note-icon { color: var(--spark); border-color: var(--spark); }
.note-icon { display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border: 2px solid currentColor; border-radius: 50%; }

/* Nous rejoindre */
.join { background: var(--page); }
.join-card {
  overflow: hidden;
  padding: 64px 8%;
  --plate: #1f242b;
  --rivet: #7d8592;
  --rivet-hole: #30353e;
  --bevel-hi: rgba(255, 255, 255, .07);
  border-color: #0a0c0f;
  color: #fff;
}
.join-card h2 { position: relative; z-index: 2; max-width: 640px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; margin: 0 0 18px; }
.join-card > p { position: relative; z-index: 2; max-width: 440px; color: #cfd6df; font-size: 18px; }
.join-card .button { position: relative; z-index: 2; margin: 12px 14px 0 0; }
.join-logo { position: absolute; z-index: 1; right: -60px; bottom: -80px; width: 380px; height: 380px; object-fit: contain; opacity: .2; transform: rotate(14deg); }
.join-orbit, .grain, .eyebrow { display: none; }
.access-note { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 22px 18px 34px; }
.access-note .note-icon { color: var(--core); }
.access-note strong { font-size: 16px; }
.access-note p { margin: 2px 0 0; color: var(--muted); }

/* Pied de page */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 32px; border-bottom: 0; }
.footer p, .copyright { margin: 0; color: var(--muted); font-size: 14px; }

/* Visionneuse d'images */
.image-lightbox {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 52px 18px 18px;
  border: 3px solid #0a0c0f;
  border-radius: 12px;
  background: #1d2128;
  color: #fff;
  overflow: auto;
}
.image-lightbox[open] { display: grid; justify-items: center; gap: 10px; }
.image-lightbox::backdrop { background: rgba(8, 10, 13, .88); backdrop-filter: blur(5px); }
.lightbox-image { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; border: 2px solid #0a0c0f; border-radius: 6px; }
.lightbox-caption { margin: 0; font: 700 18px "Pixelify Sans", sans-serif; }
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 2px solid #0a0c0f;
  border-radius: 50%;
  background: var(--core);
  color: #14181e;
  font: 700 22px/1 "Barlow", sans-serif;
  cursor: pointer;
}

/* ---------- Page de connexion ---------- */
.connection-page { padding: 136px max(6vw, calc((100% - 1100px) / 2)) 60px; }
.connection-intro {
  margin-bottom: 40px;
  padding: clamp(28px, 5vw, 56px);
  --plate: #1f242b;
  --rivet: #7d8592;
  --rivet-hole: #30353e;
  --bevel-hi: rgba(255, 255, 255, .07);
  border-color: #0a0c0f;
  color: #fff;
}
.connection-intro h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 0 0 18px; }
.connection-intro > p { max-width: 640px; color: #cfd6df; font-size: 18px; }
.connection-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  width: fit-content;
  margin-top: 24px;
  padding: 12px 16px;
  border: 2px solid #0a0c0f;
  border-radius: 8px;
  background: #15181d;
}
.connection-address > span { color: #b8c0cb; }
.connection-address strong { color: #8fe3fa; font: 700 20px "Pixelify Sans", sans-serif; }
.connection-steps { display: grid; gap: 28px; }
.connection-step { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(20px, 4vw, 44px); padding: clamp(22px, 3vw, 36px); }
.connection-step:nth-child(even) .connection-step-copy { order: 2; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--core);
  color: #14181e;
  font: 700 22px/1 "Pixelify Sans", sans-serif;
}
.connection-step-copy h2 { font-size: 26px; line-height: 1.15; margin: 18px 0 12px; }
.connection-step-copy > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.connection-step-copy strong { color: var(--ink); }
.connection-step-copy .password-rules { margin: 0 0 14px; padding: 12px 14px; border: 2px solid var(--spark); border-radius: 8px; background: rgba(53, 198, 238, .1); font-weight: 600; }
.connection-step kbd { padding: 1px 7px; border: 2px solid var(--outline); border-radius: 5px; background: var(--plate-2); font: 700 14px "Barlow", sans-serif; }
.connection-step > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border: 2px solid var(--outline); border-radius: 6px; background: #101318; }
.connection-back { margin: 32px 0 0; }
.connection-back a { color: var(--spark); font-weight: 700; text-decoration: none; }
.connection-back a:hover { text-decoration: underline; }

/* ---------- Écrans plus petits ---------- */
/* Onze liens dans l’en-tête : plus serrés avant de passer au menu. */
@media (max-width: 1320px) {
  .nav { gap: 18px; }
}
@media (max-width: 1340px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 5vw;
    right: 5vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border: 3px solid var(--outline);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: var(--plate);
    box-shadow: 0 6px 0 var(--drop);
  }
  .nav.open { display: flex; }
  .theme-toggle { width: 100%; }
}
@media (max-width: 1000px) {
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 16px; }
  .hero-art::after { background: linear-gradient(180deg, rgba(16, 19, 24, .82) 0%, rgba(16, 19, 24, .62) 55%, rgba(16, 19, 24, .35) 100%); }
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .connection-step { grid-template-columns: minmax(0, 1fr); }
  .connection-step:nth-child(even) .connection-step-copy { order: 0; }
  .footer { display: block; }
  .footer p { margin: 12px 0; }
}
@media (max-width: 640px) {
  .server-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .feature-grid { gap: 18px; }
  .site-header { height: 68px; padding: 0 16px; }
  .nav { top: 68px; left: 16px; right: 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand img.brand-wordmark { height: 20px; }
  .hero { min-height: 0; padding: 104px 16px 48px; }
  .hero-logo { width: 104px; height: 104px; }
  .hero-text { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-shell { padding: 64px 16px; }
  .feature-card, .server-card { padding: 30px 24px 26px; }
  .join-card { padding: 40px 24px; }
  .join-logo { width: 240px; height: 240px; right: -50px; bottom: -50px; }
  .access-note { padding: 16px 18px 16px 30px; }
  .server-voice { align-items: flex-start; }
  .connection-page { padding: 100px 16px 40px; }
}
@media (max-width: 360px) {
  .brand img.brand-wordmark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Page de connexion : emplacement d'une capture pas encore faite, et encadrés d'aide */
.shot-todo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 20px;
  border: 3px dashed var(--muted);
  border-radius: 6px;
  background: var(--plate-2);
  color: var(--muted);
  font: 700 18px/1.3 "Pixelify Sans", sans-serif;
  text-align: center;
}
.connection-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.connection-tip { padding: 30px 28px 26px; }
.connection-tip h2 { font-size: 22px; line-height: 1.15; margin: 0 0 12px; }
.connection-tip p { margin: 0 0 10px; color: var(--muted); }
.connection-tip p:last-child { margin-bottom: 0; }
.connection-tip strong { color: var(--ink); }
.connection-tip kbd { display: inline-block; margin: 2px 0; padding: 1px 7px; border: 2px solid var(--outline); border-radius: 5px; background: var(--plate-2); color: var(--ink); font: 700 14px "Barlow", sans-serif; }
.connection-inline-link { color: var(--spark); font-weight: 700; }
@media (max-width: 900px) { .connection-help { grid-template-columns: minmax(0, 1fr); } }

/* Page de connexion : la fenêtre du règlement, reproduite comme en jeu (texte du plugin de connexion) */
.connection-step.connection-step-rules { grid-template-columns: minmax(0, 1fr); align-items: start; }
.connection-step-rules .connection-step-copy { order: 0; max-width: 720px; }
.rules-dialog {
  padding: clamp(18px, 3vw, 30px);
  border: 2px solid var(--outline);
  border-radius: 6px;
  background: #101318;
  color: #fff;
}
.rules-title { margin: 0 0 14px; color: #ffaa00; font: 700 24px/1.2 "Pixelify Sans", sans-serif; text-align: center; }
.rules-lead { margin: 0 0 22px; font-weight: 700; text-align: center; }
.rules-gear { color: #f28c28; }
.rules-green { color: #55ff55; }
.rules-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin: 0; padding: 0; list-style: none; }
.rules-list li { display: flex; align-items: flex-start; gap: 12px; }
.rules-list img { flex: 0 0 auto; width: 32px; height: 32px; image-rendering: pixelated; }
.rules-list strong { color: #ffaa00; font-size: 16px; }
.rules-list p { margin: 2px 0 0; color: #e4e7eb; font-size: 15px; line-height: 1.5; }
.rules-accept { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); }
.rules-checkbox { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid #a0a0a0; background: #000; color: #55ff55; font: 700 15px/1 "Barlow", sans-serif; }
.rules-check-label { color: #ffff55; font: 600 16px "Pixelify Sans", sans-serif; }
.rules-button { padding: 9px 40px; border: 2px solid #35c6ee; border-radius: 3px; background: #000; color: #55ff55; font: 600 16px "Pixelify Sans", sans-serif; }
@media (max-width: 760px) {
  .rules-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Wiki ---------- */
/* Les objets sont présentés dans des cases d'inventaire Minecraft : elles restent les mêmes en thème clair et sombre. */
.wiki-page { padding: 136px max(6vw, calc((100% - 1240px) / 2)) 72px; }
.wiki-intro {
  margin-bottom: 36px;
  padding: clamp(28px, 5vw, 52px);
  --plate: #1f242b;
  --rivet: #7d8592;
  --rivet-hole: #30353e;
  --bevel-hi: rgba(255, 255, 255, .07);
  border-color: #0a0c0f;
  color: #fff;
}
.wiki-intro h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 0 0 16px; }
.wiki-intro > p { max-width: 640px; color: #cfd6df; font-size: 18px; }
.wiki-search { display: grid; gap: 8px; max-width: 460px; margin-top: 26px; }
.wiki-search span { color: #b8c0cb; font-weight: 600; font-size: 15px; }
.wiki-search input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid #35c6ee;
  border-radius: 8px;
  background: #15181d;
  color: #fff;
  font: 600 17px "Barlow", sans-serif;
}
.wiki-search input::placeholder { color: #7f8894; }
.wiki-search input:focus-visible { outline: 3px solid #35c6ee; outline-offset: 2px; }

.wiki-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.wiki-toc { position: sticky; top: 100px; display: grid; gap: 8px; }
.wiki-toc a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 2px solid var(--outline);
  border-radius: 8px;
  background: var(--plate);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 2px 0 var(--bevel-hi), 0 3px 0 var(--drop);
}
.wiki-toc a:hover { color: var(--spark); border-color: var(--spark); }
.wiki-toc small { min-width: 28px; padding: 1px 7px; border-radius: 6px; background: var(--plate-2); color: var(--muted); font: 700 13px/1.6 "Barlow", sans-serif; text-align: center; }

.wiki-category { scroll-margin-top: 100px; }
.wiki-category + .wiki-category { margin-top: 56px; padding-top: 48px; border-top: 3px solid var(--seam); }
.wiki-category h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 10px; }
.wiki-category-intro { max-width: 640px; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.wiki-group + .wiki-group { margin-top: 30px; }
.wiki-group h3 { margin: 0 0 14px; font-size: 21px; }
.wiki-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.wiki-tile {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 16px 10px 14px;
  border: 2px solid var(--outline);
  border-radius: 9px;
  background: var(--plate);
  color: var(--ink);
  font: 700 15px/1.25 "Barlow", sans-serif;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 2px 0 var(--bevel-hi), inset 0 -4px 0 var(--bevel-lo), 0 4px 0 var(--drop);
  transition: transform .12s ease, border-color .12s ease;
}
.wiki-tile[hidden] { display: none; }
.wiki-tile:hover { transform: translateY(-3px); border-color: var(--spark); }
.wiki-tile:active { transform: translateY(1px); }
.wiki-tile-name { border-bottom: 3px solid var(--item-color, transparent); padding-bottom: 2px; }
.wiki-empty { margin: 32px 0 0; padding: 20px; border: 3px dashed var(--muted); border-radius: 8px; color: var(--muted); font-weight: 600; text-align: center; }

/* Case d'inventaire */
.slot {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 0;
  background: #8b8b8b;
  box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #ffffff;
  font: inherit;
  color: inherit;
}
.slot img { display: block; width: 64px; height: 64px; object-fit: contain; }
.slot-missing { color: #373737; font: 700 26px "Pixelify Sans", sans-serif; }
.slot-big { width: 88px; height: 88px; }
.slot-big img { width: 72px; height: 72px; }
.slot-hero { width: 112px; height: 112px; flex: 0 0 auto; }
.slot-hero img { width: 96px; height: 96px; }
.slot-link { cursor: pointer; }
.slot-link:hover { background: #a8a8a8; }
.slot-count, .slot-any {
  position: absolute;
  font: 700 22px/1 "Pixelify Sans", sans-serif;
  color: #fff;
  text-shadow: 2px 2px 0 #3f3f3f;
}
.slot-count { right: 6px; bottom: 4px; }
.slot-any { left: 6px; top: 3px; font-size: 18px; color: #ffff7a; }

/* Fiche d'un objet */
.wiki-item {
  width: min(94vw, 760px);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  border: 3px solid var(--outline);
  border-radius: 12px;
  background: var(--plate);
  color: var(--ink);
  box-shadow: inset 0 3px 0 var(--bevel-hi), 0 8px 0 var(--drop);
}
.wiki-item::backdrop { background: rgba(8, 10, 13, .78); backdrop-filter: blur(4px); }
.wiki-item-body { padding: 32px clamp(20px, 4vw, 40px) 36px; }
.wiki-item-close {
  position: sticky;
  float: right;
  top: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 12px 12px 0 0;
  border: 2px solid var(--outline);
  border-radius: 50%;
  background: var(--core);
  color: #14181e;
  font: 700 24px/1 "Barlow", sans-serif;
  cursor: pointer;
}
.wiki-item-head { display: flex; align-items: center; gap: 22px; margin: 0 40px 22px 0; }
.wiki-item-head h2 { display: inline-block; margin: 0; padding-bottom: 4px; border-bottom: 4px solid var(--item-color, transparent); font-size: clamp(28px, 4vw, 38px); line-height: 1.08; }
.wiki-item-cat { margin: 0 0 6px; color: var(--muted); font-weight: 600; font-size: 15px; }
.wiki-item-desc { max-width: 62ch; margin: 0 0 20px; font-size: 17px; }
.wiki-stats { display: grid; margin: 0 0 20px; border: 2px solid var(--outline); border-radius: 8px; overflow: hidden; }
.wiki-stats div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 10px 16px; background: var(--plate-2); }
.wiki-stats div:nth-child(even) { background: var(--plate); }
.wiki-stats dt { color: var(--muted); font-weight: 600; }
.wiki-stats dd { margin: 0; font-weight: 700; }
/* Récompenses d'une caisse : nom à gauche, chance à droite */
.wiki-loot div { grid-template-columns: minmax(0, 1fr) auto; }
.wiki-loot dt { color: inherit; }
.wiki-loot dd { text-align: right; font-variant-numeric: tabular-nums; }
.wiki-loot-link { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.wiki-loot-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.wiki-obtain { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 20px; padding: 12px 16px; border: 2px solid var(--spark); border-radius: 8px; background: rgba(53, 198, 238, .1); }
.wiki-obtain strong { color: var(--spark); }
.wiki-item h3 { margin: 28px 0 14px; font-size: 22px; }
.recipe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 390px), 1fr)); gap: 16px; }
.recipe-list + .recipe-list, .wiki-uses + .recipe-list { margin-top: 16px; }
.wiki-uses { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.wiki-use {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border: 2px solid var(--outline);
  border-radius: 8px;
  background: var(--plate-2);
  color: var(--ink);
  font: 700 15px/1.25 "Barlow", sans-serif;
  text-align: left;
  cursor: pointer;
}
.wiki-use:hover { border-color: var(--spark); color: var(--spark); }
.wiki-use .slot { width: 56px; height: 56px; flex: 0 0 auto; }
.wiki-use .slot img { width: 48px; height: 48px; }
.recipe-card { margin: 0; padding: 18px; border: 2px solid var(--outline); border-radius: 8px; background: #c6c6c6; color: #3f3f3f; }
.recipe { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, 72px); }
.recipe-row { display: flex; align-items: center; gap: 10px; }
.recipe-arrow { width: 44px; height: 30px; background: #8b8b8b; clip-path: polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%); }
.recipe-fire { width: 28px; height: 32px; background: linear-gradient(#ffd24a, #f5a524 55%, #d9541a); clip-path: polygon(50% 0, 70% 30%, 85% 20%, 100% 60%, 85% 100%, 15% 100%, 0 60%, 20% 35%, 35% 45%); }
.recipe-card figcaption { margin-top: 12px; font: 700 15px "Barlow", sans-serif; }

@media (max-width: 900px) {
  .wiki-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wiki-toc { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
  .wiki-toc a { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .wiki-page { padding: 100px 16px 48px; }
  .wiki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .wiki-item { width: calc(100vw - 16px); max-height: 92vh; }
  .wiki-item-head { gap: 14px; }
  .slot-hero { width: 84px; height: 84px; }
  .slot-hero img { width: 72px; height: 72px; }
  .slot { width: 56px; height: 56px; }
  .slot img { width: 48px; height: 48px; }
  .recipe-card { padding: 14px; }
  .recipe { flex-wrap: nowrap; gap: 8px; }
  .recipe .slot { width: 48px; height: 48px; padding: 3px; }
  .recipe .slot img { width: 40px; height: 40px; }
  .recipe-grid { grid-template-columns: repeat(3, 48px); }
  .recipe .slot-big { width: 60px; height: 60px; }
  .recipe .slot-big img { width: 50px; height: 50px; }
  .recipe-row { gap: 6px; }
  .recipe-arrow { flex: 0 0 auto; width: 24px; height: 20px; }
  .slot-count { font-size: 18px; right: 4px; bottom: 2px; }
}

/* ---------- Boutique ---------- */
/* Les grades sont des plaques comme le reste : la couleur du grade (--tier) est une étiquette accrochée en haut,
   l'icône et les coches. Volt, mis en avant, est cerclé d'orange comme les actions principales. */
.shop-page { padding: 136px max(6vw, calc((100% - 1240px) / 2)) 72px; }
.shop-intro {
  margin-bottom: 72px;
  padding: clamp(28px, 5vw, 52px);
  --plate: #1f242b;
  --rivet: #7d8592;
  --rivet-hole: #30353e;
  --bevel-hi: rgba(255, 255, 255, .07);
  border-color: #0a0c0f;
  color: #fff;
}
.shop-intro h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 0 0 16px; }
.shop-intro > p { max-width: 680px; color: #cfd6df; font-size: 18px; }
.shop-intro > p.shop-promise { display: flex; align-items: center; gap: 12px; margin: 26px 0 0; color: #fff; font-weight: 600; font-size: 17px; }
.shop-promise .note-icon { color: #62d13d; }
.shop-block { margin-bottom: 80px; }
.shop-block:last-child { margin-bottom: 0; }

.rank-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.rank-card { display: flex; flex-direction: column; padding: 40px 26px 28px; }
.rank-etincelle { --tier: #f5a524; }
.rank-volt { --tier: #35c6ee; }
.rank-tesla { --tier: #62d13d; }
.rank-zenith { --tier: #ffc83d; }
.rank-card::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 30px;
  width: 64px;
  height: 12px;
  border: 3px solid var(--outline);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: var(--tier);
}
.rank-card .feature-icon { background: var(--tier); }
.rank-top h3 { font-size: 28px; line-height: 1.1; margin: 18px 0 6px; }
.rank-price { margin: 0 0 20px; font: 700 36px/1 "Pixelify Sans", sans-serif; }
.rank-perks { display: grid; align-content: start; gap: 10px; flex: 1; margin: 0 0 26px; padding: 20px 0 0; border-top: 3px solid var(--outline); list-style: none; }
.rank-perks li { position: relative; padding-left: 26px; color: var(--muted); line-height: 1.4; }
.rank-perks li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--ink); font-weight: 700; }
.rank-perks li.rank-includes { color: var(--ink); font-weight: 700; }
.rank-perks li.rank-includes::before { content: "+"; font-size: 18px; line-height: 1.1; }
.rank-card .button, .server-card .button { justify-content: center; width: 100%; }
.shop-page .server-card { display: flex; flex-direction: column; }
.shop-page .server-card > p { margin-bottom: 24px; }
.server-card .button { margin-top: auto; }
.rank-featured {
  transform: translateY(-12px);
  box-shadow: inset 0 3px 0 var(--bevel-hi), inset 0 -5px 0 var(--bevel-lo), 0 6px 0 var(--drop), 0 0 0 5px var(--core);
}
.rank-badge {
  position: absolute;
  top: -17px;
  right: 18px;
  margin: 0;
  padding: 5px 12px;
  border: 3px solid var(--outline);
  border-radius: 8px;
  background: var(--core);
  color: #14181e;
  font: 700 13px/1.2 "Barlow", sans-serif;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--outline);
}
.button.shop-buy.is-soon,
.button.shop-buy.is-soon:hover {
  background: var(--plate-2);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: inset 0 2px 0 var(--bevel-hi), inset 0 -3px 0 var(--bevel-lo), 0 3px 0 var(--outline);
}
.button.shop-buy.is-soon:active { transform: none; }

.shop-never { padding: clamp(28px, 4vw, 46px); }
.shop-never h2, .shop-credits h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 10px; }
.shop-never > p, .shop-credits > p { max-width: 620px; color: var(--muted); font-size: 17px; }
.never-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; margin: 26px 0 0; padding: 0; list-style: none; }
.never-list li { position: relative; padding: 10px 0 10px 34px; border-bottom: 2px solid var(--bevel-lo); font-weight: 600; }
.never-list li::before { content: "✘"; position: absolute; left: 4px; top: 9px; color: #d64541; font-weight: 700; }

.shop-faq { display: grid; gap: 16px; max-width: 860px; }
.shop-faq details { padding: 20px 28px 20px 34px; }
.shop-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.shop-faq summary::-webkit-details-marker { display: none; }
.shop-faq summary::after { content: "+"; flex: 0 0 auto; color: var(--spark); font: 700 24px/1 "Pixelify Sans", sans-serif; }
.shop-faq details[open] summary::after { content: "−"; }
.shop-faq details p { margin: 12px 0 0; color: var(--muted); }
.shop-faq strong { color: var(--ink); }
.shop-link { color: var(--spark); font-weight: 700; }

.shop-credits { padding: clamp(28px, 4vw, 46px); }
.shop-credits > p.shop-credits-empty { margin: 22px 0 0; padding: 14px 18px; border: 2px dashed var(--outline); border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 16px; }

@media (max-width: 1100px) {
  .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .rank-featured { transform: none; }
}
@media (max-width: 640px) {
  .shop-page { padding: 100px 16px 40px; }
  .shop-intro { margin-bottom: 48px; }
  .shop-block { margin-bottom: 56px; }
  .rank-grid { grid-template-columns: minmax(0, 1fr); }
  .never-list { grid-template-columns: minmax(0, 1fr); }
  .shop-faq details { padding: 18px 20px 18px 30px; }
}

/* ---------- PvP : un serveur à part, en plaques sombres comme l'accueil ---------- */
.pvp {
  background: #171a1f;
  color: #fff;
  --plate: #1f242b;
  --rivet: #7d8592;
  --rivet-hole: #30353e;
  --bevel-hi: rgba(255, 255, 255, .07);
  --bevel-lo: rgba(0, 0, 0, .35);
  --drop: rgba(0, 0, 0, .5);
  --outline: #0a0c0f;
  --muted: #b8c0cb;
}
.pvp .section-heading p { color: #b8c0cb; }
.pvp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
.pvp-how { padding: 34px 30px 30px; }
.pvp-how h3, .pvp-board h3 { font-size: 22px; line-height: 1.15; margin: 0; }
.pvp-how h3 { margin: 18px 0 14px; }
.pvp-how > p { margin: 18px 0 0; color: var(--muted); }
.pvp-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid #f5a524;
  border-radius: 7px;
  background: rgba(245, 165, 36, .14);
  color: #ffc564;
  font-weight: 700;
  font-size: 14px;
}
.pvp-steps { margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.pvp-steps li { counter-increment: etape; position: relative; min-height: 46px; padding: 9px 0 9px 42px; border-top: 2px solid rgba(255, 255, 255, .07); }
.pvp-steps li:first-child { border-top: 0; }
.pvp-steps li::before {
  content: counter(etape);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #35c6ee;
  border-radius: 50%;
  color: #8fe3fa;
  font: 700 15px/1 "Pixelify Sans", sans-serif;
  position: absolute;
  left: 0;
  top: 8px;
}
.pvp-steps strong { white-space: nowrap; }
.pvp-board { padding: 28px 30px 26px; }
.pvp-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 16px; }
.pvp-updated { color: var(--muted); font-size: 14px; }
.pvp-table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.pvp-table th { padding: 0 10px 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-align: right; }
.pvp-table td { padding: 9px 10px; border-top: 2px solid rgba(255, 255, 255, .07); text-align: right; }
.pvp-table th:nth-child(-n+2), .pvp-table td:nth-child(-n+2) { text-align: left; }
.pvp-table th:first-child, .pvp-table td:first-child { width: 56px; padding-left: 0; }
.pvp-table th:last-child, .pvp-table td:last-child { padding-right: 0; }
.pvp-rank { font: 700 20px/1 "Pixelify Sans", sans-serif; color: #b8c0cb; }
.pvp-table tr:nth-child(1) .pvp-rank { color: #f5a524; }
.pvp-table tr:nth-child(2) .pvp-rank { color: #d7dde5; }
.pvp-table tr:nth-child(3) .pvp-rank { color: #c98a52; }
.player-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; overflow-wrap: anywhere; }
.player-cell img { flex: 0 0 auto; width: 28px; height: 28px; border: 2px solid #0a0c0f; border-radius: 4px; image-rendering: pixelated; background: #30353e; }
.pvp-kills { color: #62d13d; font-weight: 700; }
.pvp-short { display: none; }
.pvp-empty {
  margin: 0;
  padding: 36px 20px;
  border: 2px dashed rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 900px) {
  .pvp-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pvp-how, .pvp-board { padding: 28px 20px 22px; }
  .pvp-table { font-size: 15px; }
  .pvp-table th, .pvp-table td { padding-left: 6px; padding-right: 6px; }
  .pvp-table th:nth-child(4), .pvp-table td:nth-child(4) { display: none; }
  .player-cell img { width: 24px; height: 24px; }
  .pvp-board-head { display: block; }
  .pvp-updated { display: block; margin-top: 4px; }
  .pvp-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pvp-short { display: inline; }
}

/* ---------- Classements du réseau ---------- */
.ranks { background: var(--page); }
.ranks-board { max-width: 760px; }
.ranks-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ranks-tab {
  padding: 8px 14px;
  border: 2px solid var(--outline);
  border-radius: 9px;
  background: var(--plate);
  color: var(--ink);
  font: 600 15px "Barlow", sans-serif;
  cursor: pointer;
  box-shadow: inset 0 2px 0 var(--bevel-hi), 0 3px 0 var(--drop);
}
.ranks-tab:hover { color: var(--spark); }
.ranks-tab[aria-selected="true"] { background: var(--core); color: #14181e; }
.ranks-list { margin: 0; padding: 0; list-style: none; }
.ranks-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 3px solid var(--outline);
  border-radius: 10px;
  background: var(--plate);
  box-shadow: inset 0 3px 0 var(--bevel-hi), inset 0 -4px 0 var(--bevel-lo), 0 4px 0 var(--drop);
}
.ranks-list li + li { margin-top: 10px; }
.ranks-rank { font: 700 22px/1 "Pixelify Sans", sans-serif; color: var(--muted); }
.ranks-list li:nth-child(1) .ranks-rank { color: #d98a00; }
.ranks-list li:nth-child(2) .ranks-rank { color: #8a96a5; }
.ranks-list li:nth-child(3) .ranks-rank { color: #b0703a; }
:root[data-theme="dark"] .ranks-list li:nth-child(1) .ranks-rank { color: #f5a524; }
:root[data-theme="dark"] .ranks-list li:nth-child(2) .ranks-rank { color: #d7dde5; }
:root[data-theme="dark"] .ranks-list li:nth-child(3) .ranks-rank { color: #c98a52; }
.ranks .player-cell { font-size: 17px; }
.ranks .player-cell img { width: 32px; height: 32px; }
.ranks-value { color: var(--pixel); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranks-empty {
  margin: 0;
  padding: 36px 20px;
  border: 2px dashed var(--muted);
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}
.ranks-updated { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .ranks-list li { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 10px 14px; }
  .ranks .player-cell { font-size: 15px; }
  .ranks .player-cell img { width: 26px; height: 26px; }
  .ranks-value { font-size: 14px; }
}

/* ---------- Wiki : guides ---------- */
.wiki-guides[hidden], .wiki-guide[hidden] { display: none; }
.wiki-guide {
  border: 2px solid var(--outline);
  border-radius: 9px;
  background: var(--plate);
  box-shadow: inset 0 2px 0 var(--bevel-hi), inset 0 -4px 0 var(--bevel-lo), 0 4px 0 var(--drop);
  scroll-margin-top: 100px;
}
.wiki-guide + .wiki-guide { margin-top: 14px; }
.wiki-guide summary {
  display: grid;
  gap: 4px;
  padding: 16px 52px 16px 20px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.wiki-guide summary::-webkit-details-marker { display: none; }
.wiki-guide summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font: 700 26px/1 "Pixelify Sans", sans-serif;
  color: var(--spark);
}
.wiki-guide[open] summary::after { content: "−"; }
.wiki-guide summary:hover .guide-title { color: var(--spark); }
.wiki-guide summary:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 7px; }
.guide-title { font: 700 21px/1.2 "Barlow", sans-serif; }
.guide-summary { color: var(--muted); font-size: 16px; }
.guide-body { padding: 4px 20px 22px; border-top: 2px solid var(--plate-2); }
.guide-section { max-width: 760px; }
.guide-section + .guide-section { margin-top: 22px; }
.guide-section h3 { margin: 18px 0 10px; font-size: 18px; }
.guide-section p { margin: 0 0 14px; line-height: 1.55; }
.guide-section code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--plate-2);
  font: 600 .95em/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  white-space: nowrap;
}
.guide-steps, .guide-list { margin: 0 0 16px; padding-left: 24px; line-height: 1.55; }
.guide-steps li + li, .guide-list li + li { margin-top: 6px; }
.guide-steps li::marker { color: var(--spark); font-weight: 700; }
.guide-cmds dt code { white-space: normal; }
.guide-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 16px; }
.guide-step { min-height: 72px; }
.guide-step-text { display: grid; gap: 2px; }
.guide-step-text small { color: var(--muted); font: 500 13px/1.3 "Barlow", sans-serif; }
.guide-step:hover .guide-step-text small { color: inherit; }
.guide-arrow { width: 22px; height: 14px; flex: 0 0 auto; background: var(--muted); clip-path: polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%); }
@media (max-width: 640px) {
  .guide-chain { flex-direction: column; align-items: stretch; }
  .guide-arrow { align-self: center; transform: rotate(90deg); }
  .wiki-guide summary { padding: 14px 46px 14px 14px; }
  .guide-body { padding: 4px 14px 18px; }
  .wiki-stats.guide-cmds div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.guide-choices { gap: 10px 12px; }
