:root {
  --bg: #07080a;
  --panel: #0f1215;
  --panel-2: #14181c;
  --line: #232a30;
  --text: #eef0f2;
  --soft: #b9c1c8;
  --muted: #8b949c;
  --steel: #c5ccd3;
  --accent: #ff4b1f;
  --accent-2: #ff8a3d;
  --ok: #3ddc84;
  --warn: #ffb020;
  --cut: 18px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Language switch: every translated element carries lang="en" or lang="fr". */
html[lang="fr"] body [lang="en"],
html[lang="en"] body [lang="fr"] { display: none !important; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Oxanium", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  position: relative;
}
/* backdrop: ember glow + faint grid */
body::before, body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(620px 420px at 50% 220px, rgba(255, 75, 31, .22), transparent 70%),
    radial-gradient(900px 500px at 50% 0, rgba(120, 140, 160, .10), transparent 70%);
}
body.sub::before {
  background:
    radial-gradient(700px 320px at 50% 150px, rgba(255, 75, 31, .14), transparent 70%),
    radial-gradient(900px 500px at 50% 0, rgba(120, 140, 160, .10), transparent 70%);
}
body::after {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 700px at 50% 160px, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 700px at 50% 160px, #000 0%, transparent 75%);
}
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- nav ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; }
nav .links { display: flex; align-items: center; gap: 4px; }
nav .links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
nav .links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lang {
  display: inline-flex;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.lang button, nav .links .lang a {
  display: inline-block;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lang button:hover, nav .links .lang a:hover { color: var(--text); }
html[lang="fr"] .lang [data-set-lang="fr"],
html[lang="en"] .lang [data-set-lang="en"] { color: var(--text); background: rgba(255, 75, 31, .22); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 20px 0 56px; }
.sub .hero { padding: 36px 0 44px; }
.emblem {
  width: min(260px, 56vw);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(255, 75, 31, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-2);
}
h1.eyebrow { margin: 22px 0 0; padding: 0; line-height: normal; font-size: 13px; letter-spacing: .24em; background: none; color: var(--accent-2); }
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.eyebrow::after { transform: scaleX(-1); }
h1, .slogan {
  margin: 6px 0 16px;
  padding-top: .14em; /* room for accents (Ê), which background-clip would cut */
  font-size: clamp(30px, 10vw, 80px); /* keeps "CHAQUE ERREUR" on one line down to 320px */
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, var(--steel) 55%, #6f7880 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.sub h1 { font-size: clamp(34px, 6.5vw, 60px); }
h1 em, .slogan em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); max-width: 58ch; margin: 0 auto; font-size: 18px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .15s, background .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); }
.btn.primary {
  color: #160600;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  filter: drop-shadow(0 8px 24px rgba(255, 75, 31, .4));
}
.btn.primary:hover { filter: drop-shadow(0 10px 30px rgba(255, 75, 31, .6)) brightness(1.08); }
.arrow { display: inline-block; transition: transform .15s; }
a:hover > .arrow { transform: translateX(3px); }

/* ---------- sections ---------- */
.block { margin-top: 64px; scroll-margin-top: 20px; }
.block:first-child { margin-top: 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-intro { color: var(--muted); max-width: 70ch; margin: -6px 0 20px; }

/* ---------- home: pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 6px;
}
.pillar b {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent-2);
}
.pillar h3 {
  font-size: 17px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 6px 0 8px;
}
.pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- home: server cards ---------- */
.servers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  position: relative;
  min-width: 0;
  padding: 1px;
  background: linear-gradient(160deg, #3a434b, var(--line) 45%, #171b1f);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .2s, background .2s;
}
.card:hover { transform: translateY(-4px); background: linear-gradient(160deg, var(--accent-2), var(--accent) 40%, #2a1610); }
.card-in {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow: hidden;
  overflow: clip; /* clip, not a scroll box: the big "01" must never make the card scroll inside */
  background:
    radial-gradient(420px 220px at 100% 0, rgba(255, 75, 31, .13), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.card-in::after {
  content: attr(data-n);
  position: absolute;
  right: 14px;
  bottom: -34px;
  font-size: 150px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,.035);
  pointer-events: none;
}
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 28px; }
.head-left { display: flex; align-items: center; gap: 10px; }
.card-head small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 4px 10px;
  color: var(--accent-2);
  border: 1px solid rgba(255, 75, 31, .5);
  background: rgba(255, 75, 31, .1);
  border-radius: 999px;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status[hidden] { display: none; }
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5d666e;
}
.status.on { color: #6ee7a0; }
.status.on::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); animation: pulse 2s ease-in-out infinite; }
.status.off { color: #ff7a6b; }
.status.off::before { background: #ff4b3a; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
.card h2 {
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 10px 0 6px;
}
.card-in > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.name-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }

/* DayZ Metrics rank next to the server name, with its "i" explanation */
.rank {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.rank[hidden] { display: none; }
.rank b { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--steel); }
.info {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid #47515a;
  border-radius: 50%;
  cursor: help;
}
.info:hover, .info:focus-visible { color: var(--text); border-color: var(--accent-2); }
.tip {
  position: absolute;
  right: -6px;
  top: calc(100% + 8px);
  z-index: 5;
  width: max-content;
  max-width: 230px;
  padding: 9px 11px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  color: var(--soft);
  background: #1b2025;
  border: 1px solid #323a41;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s;
  cursor: default;
}
.info:hover .tip, .info:focus .tip { opacity: 1; visibility: visible; }

/* "Join" window */
.join-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  color-scheme: dark; /* dark scrollbars */
  color: var(--text);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid #323a41;
  border-top: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.join-dialog::backdrop { background: rgba(4, 5, 6, .78); backdrop-filter: blur(3px); }
.join-dialog h2 { font-size: 28px; line-height: 1.15; text-transform: uppercase; letter-spacing: .02em; padding-right: 34px; }
.join-dialog h2 em { font-style: normal; color: var(--accent-2); }
.join-dialog .close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.join-dialog .close:hover { color: var(--text); border-color: #47515a; }
.join-lead { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 8px 0 18px; }
.fields { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px; }
.field { min-width: 0; }
.field-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field-box { display: flex; border: 1px solid var(--line); border-radius: 6px; background: rgba(0,0,0,.3); overflow: hidden; }
.field-box input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}
.field-box:focus-within { border-color: var(--accent-2); }
.copy {
  flex: none;
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--soft);
  background: rgba(255,255,255,.06);
  border: 0;
  border-left: 1px solid var(--line);
  cursor: pointer;
}
.copy:hover { color: var(--text); background: rgba(255,255,255,.12); }
.copy.ok { color: var(--ok); }
.join-dialog .btn { width: 100%; margin-top: 16px; }
.mods { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.mods-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 10px; }
.mods-head b { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mods-head small { font-size: 12px; color: var(--muted); }
.mods ul { list-style: none; padding: 0; max-height: 216px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.mods li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; font-size: 14px; color: var(--soft); }
.mods li + li { border-top: 1px solid var(--line); }
.mods li a { color: inherit; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.mods li a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.mod-size { flex: none; color: var(--muted); font-size: 13px; }
@media (max-width: 420px) {
  .join-dialog { padding: 22px 18px; }
  .fields { grid-template-columns: 1fr; }
}
.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.stats dt {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.stats dd { font-size: 20px; font-weight: 800; color: var(--text); }
.stats .queue { margin-left: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--accent-2); vertical-align: 2px; cursor: help; }
.join {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  min-height: 48px;
  padding: 8px 18px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 75, 31, .1);
  border: 1px solid rgba(255, 75, 31, .45);
  border-radius: 6px;
  transition: background .15s, border-color .15s;
}
.join:hover { background: rgba(255, 75, 31, .22); border-color: var(--accent-2); }
.join .arrow { color: var(--accent-2); }
/* review + vote: two rows, each with its live vote count on the right when known */
.support {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.support a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 14px;
  text-decoration: none;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background .15s, border-color .15s;
}
.support a:hover { background: rgba(255,255,255,.07); }
.support .review:hover { border-color: rgba(255, 176, 32, .6); }
.support .vote:hover { border-color: rgba(255, 75, 31, .6); }
.support .ico { flex: none; width: 16px; text-align: center; font-size: 15px; line-height: 1; color: var(--warn); }
.support .vote .ico { font-size: 12px; color: var(--accent-2); }
.support .txt { flex: 1; min-width: 0; }
.support .txt b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--text); }
.support .txt small { display: block; font-size: 12px; line-height: 1.35; letter-spacing: .04em; color: var(--muted); }
.support .count { flex: none; text-align: right; }
.support .count[hidden] { display: none; }
.support .count b { display: block; font-size: 20px; font-weight: 800; line-height: 1.15; color: var(--text); }
.support .count small {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.demo-flag {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 10;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #1a1000;
  background: var(--warn);
  border-radius: 999px;
}
.more { display: flex; justify-content: center; margin-top: 30px; }
.note { text-align: center; color: var(--muted); font-size: 15px; margin: 28px auto 0; max-width: 62ch; }
.note strong { color: var(--text); }

/* ---------- info page ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  padding: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
}
.panel.fair { border-top-color: var(--ok); }
.panel.soon { border-top-color: var(--warn); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.panel h3 {
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.panel-head h3 { margin-bottom: 0; }
.panel h3 small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent-2);
  margin-top: 2px;
}
.panel > p { color: var(--soft); font-size: 15px; line-height: 1.55; }
.list { list-style: none; padding: 0; display: grid; gap: 9px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.list li { position: relative; padding-left: 18px; }
.list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .5em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}
.fair .list li::before { background: var(--ok); }
.list b { color: var(--text); font-weight: 600; }
.duo .panel { display: flex; flex-direction: column; }
.duo .panel .list:not(:last-child) { margin-bottom: 18px; }
.panel-links { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.panel-links .join { margin-top: 0; }

.chip {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #1a1000;
  background: var(--warn);
  white-space: nowrap;
}
.chip.soft { color: var(--warn); background: rgba(255, 176, 32, .12); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .45); }
.chip.live { color: var(--ok); background: rgba(61, 220, 132, .1); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .4); }
.banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  color: #ffe2b3;
  font-size: 15.5px;
  line-height: 1.5;
  border: 1px solid rgba(255, 176, 32, .5);
  border-radius: 6px;
  background: repeating-linear-gradient(-45deg, rgba(255, 176, 32, .10) 0 14px, rgba(255, 176, 32, .04) 14px 28px);
}
.banner .chip { margin-top: 1px; }
.banner strong { color: #fff; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
thead th .badge { margin-left: 8px; vertical-align: middle; }
tbody th {
  width: 21%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 17px;
}
td { color: var(--soft); width: 39.5%; }
td .chip { margin-left: 6px; }
.fineprint { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 80ch; }

/* ---------- text pages (legal, rules) ---------- */
.doc { max-width: 760px; margin: 0 auto; }
.doc h2 {
  font-size: 17px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 34px 0 10px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}
.doc > div > h2:first-child { margin-top: 0; }
.doc h3 { font-size: 15.5px; line-height: 1.3; margin: 20px 0 6px; }
.doc p, .doc li { color: var(--soft); font-size: 15.5px; line-height: 1.65; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent-2); text-underline-offset: 3px; }
.doc a:hover { color: var(--text); }
.doc .updated { color: var(--muted); font-size: 13.5px; margin-top: 34px; }
.doc .banner { margin: 0 0 24px; }
.doc .banner p { color: inherit; font-size: inherit; line-height: inherit; }
.doc .banner a { color: #fff; }
.rules { counter-reset: rule; list-style: none; padding: 0; display: grid; gap: 10px; }
.rules li { counter-increment: rule; position: relative; padding-left: 44px; }
.rules li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent-2);
}

.cta { text-align: center; }
.cta h2 { font-size: clamp(26px, 4.5vw, 38px); text-transform: uppercase; letter-spacing: .02em; }
.cta .actions { margin-top: 22px; }

/* ---------- footer ---------- */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #5d666e;
  font-size: 13px;
  letter-spacing: .1em;
  padding: 56px 0 32px;
}
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.foot-row.legal { font-size: 12.5px; letter-spacing: .05em; }
.foot-row.legal a { text-transform: none; }
footer .mark { display: inline-flex; align-items: center; gap: 10px; }
footer img { opacity: .7; }
footer a { color: var(--muted); text-decoration: none; text-transform: uppercase; }
footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */
/* ---------- rules page ---------- */
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.toc a {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}
.toc a:hover { color: var(--text); border-color: var(--accent); }
.rulebook { max-width: 900px; margin: 0 auto; }
.rulebook .block { scroll-margin-top: 24px; }
.rulebook .intro { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.rulebook .rules { gap: 14px; }
.rulebook .rules li { color: var(--soft); font-size: 15.5px; line-height: 1.6; padding-left: 58px; }
.rulebook .rules b { color: var(--text); font-weight: 600; }
.rulebook .rules a { color: var(--accent-2); text-underline-offset: 3px; }
.rules.coded li::before { content: var(--p) counter(rule); top: 3px; letter-spacing: .06em; }
.rulebook .duo .panel .rules li { padding-left: 62px; font-size: 15px; }
.rulebook .banner { margin-bottom: 16px; }
.sanctions { min-width: 520px; }
.sanctions thead th { font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.sanctions tbody th { width: 42%; font-weight: 600; color: var(--text); }
.sanctions td { width: auto; }
.sanction { font-weight: 600; }
.sanction.perm { color: var(--accent); }
.sanction.temp { color: var(--accent-2); }
.sanction.warn { color: var(--warn); }

/* rules page: callouts, tags, zones */
.toc a b { color: var(--accent-2); font-weight: 800; margin-right: 4px; }
.rulebook .stack { display: grid; gap: 16px; }
.rulebook .panel h3 { margin-bottom: 16px; }
.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 75, 31, .09), rgba(255, 75, 31, 0) 70%), var(--panel);
}
.callout .chip { flex: none; margin-top: 2px; }
.callout p { color: var(--soft); font-size: 15.5px; line-height: 1.65; }
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 3px;
  vertical-align: 1px;
  color: var(--steel);
  background: rgba(197, 204, 211, .08);
  box-shadow: inset 0 0 0 1px rgba(197, 204, 211, .28);
}
.tag.perm { color: var(--accent); background: rgba(255, 75, 31, .1); box-shadow: inset 0 0 0 1px rgba(255, 75, 31, .45); }
.tag.temp { color: var(--accent-2); background: rgba(255, 138, 61, .1); box-shadow: inset 0 0 0 1px rgba(255, 138, 61, .4); }
.tag.warn { color: var(--warn); background: rgba(255, 176, 32, .1); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, .4); }
.tag.ok { color: var(--ok); background: rgba(61, 220, 132, .08); box-shadow: inset 0 0 0 1px rgba(61, 220, 132, .35); }
.eg {
  display: block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid var(--line);
}
.note-line { color: var(--soft); font-size: 14.5px; margin: -4px 0 16px; }
.note-line .tag { margin: 0 8px 0 0; }
.zones { list-style: none; padding: 0; display: grid; }
.zones li { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.zones li:first-child { border-top: 0; padding-top: 0; }
.zones li:last-child { padding-bottom: 0; }
.zones .tag { margin: 2px 0 0; text-align: center; }
.zones b { display: block; color: var(--text); font-weight: 600; font-size: 15px; line-height: 1.4; }
.zones p { color: var(--soft); font-size: 14.5px; line-height: 1.5; margin-top: 2px; }

/* rules page: sidebar and codes */
.rules-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 36px; align-items: start; }
.rules-layout .rulebook { max-width: none; margin: 0; }
.rules-layout .toc { position: sticky; top: 24px; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 2px; margin-top: 0; }
.rules-layout .toc a { padding: 9px 14px; border: 0; border-left: 2px solid var(--line); border-radius: 0; background: none; }
.rules-layout .toc a:hover { border-left-color: var(--accent-2); }
.rules-layout .toc a.on { color: var(--text); border-left-color: var(--accent); background: linear-gradient(90deg, rgba(255, 75, 31, .12), rgba(255, 75, 31, 0)); }
.zones li { grid-template-columns: 52px 1fr; }
.zones .code { margin-top: 3px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--accent-2); }
.zones b { display: inline; }
.zones .tag { margin: 0 0 0 8px; }
@media (max-width: 900px) {
  .rules-layout { display: block; }
  .rules-layout .toc { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
  .rules-layout .toc a, .rules-layout .toc a.on { padding: 7px 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
  .rules-layout .toc a.on { border-color: var(--accent); }
}

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .servers, .duo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .btn { flex: 1 1 100%; }
  .more .btn { flex: 0 1 auto; width: 100%; }
  .block { margin-top: 48px; }
}
@media (max-width: 560px) {
  .pillars, .grid3 { grid-template-columns: 1fr; }
  nav { flex-wrap: wrap; }
  .brand { gap: 8px; }
  .brand img:first-child { width: 30px; height: auto; }
  .brand img:last-child { width: 88px; height: auto; }
  nav .links a.ext { display: none; }
  nav .links a { padding: 8px; font-size: 13px; }
  .banner { flex-direction: column; gap: 10px; }
  .card-in { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .emblem { animation: none; }
  .status.on::before { animation: none; }
  * { transition: none !important; }
}
