/* =========================================================
   Custom NPCs Mod — Quest Board Light (Seed S17)
   Palette: plum + pink + gold + wand brown, from the CNPC+ icon
   ========================================================= */

:root {
  /* Palette sampled from the CNPC+ icon: plum ring, pink badge, gold lettering, wand brown */
  --plum-900: #3f1324;
  --berry-700: #8e2446;
  --berry-600: #b43359;
  --berry-400: #dd5176;
  --berry-100: #f8d3de;
  --berry-50: #fdf0f4;
  --wood-600: #7a4a22;
  --wood-100: #efe1cf;
  --wood-50: #faf4ec;
  --gold-500: #e0b800;
  --gold-400: #ffd21a;
  --gold-100: #fff1b3;
  --gold-50: #fffae0;
  --bg: #fbf8f9;
  --surface: #ffffff;
  --ink: #2a0d18;
  --muted: #6b4c58;
  --line: #eddfe4;
  --line-strong: #d6bfc8;

  --font: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --wrap-narrow: 860px;
  --wrap-wide: 1320px;
  --hdr-h: 72px;
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --shadow-soft: 0 1px 2px rgba(63, 19, 36, 0.06), 0 8px 24px -12px rgba(63, 19, 36, 0.18);
  --shadow-lift: 0 2px 4px rgba(63, 19, 36, 0.05), 0 18px 40px -20px rgba(180, 51, 89, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--berry-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-900); }

h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.18; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--berry-700);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border: 2px solid var(--berry-600);
  border-radius: var(--r-sm);
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2.5rem, var(--wrap-wide)); margin-inline: auto; }

section[id], [id].anchor { scroll-margin-top: calc(var(--hdr-h) + 16px); }

/* ---------- Objective tag (quest label) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--berry-700);
  margin-bottom: 1rem;
}
.tag::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--gold-400);
  border: 2px solid var(--plum-900);
  transform: rotate(45deg);
  flex: none;
}
.tag--wood { color: var(--wood-600); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font: 600 0.98rem/1.2 var(--font);
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--quest {
  background: var(--gold-400);
  color: var(--plum-900);
  border-color: var(--plum-900);
  box-shadow: 0 4px 0 var(--plum-900);
}
.btn--quest:hover { color: var(--plum-900); transform: translateY(-2px); box-shadow: 0 6px 0 var(--plum-900); }
.btn--quest:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--plum-900); }
.btn--line {
  background: transparent;
  color: var(--berry-700);
  border-color: var(--berry-600);
}
.btn--line:hover { background: var(--berry-50); color: var(--plum-900); }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.9rem; box-shadow: 0 3px 0 var(--plum-900); }
.btn--sm:hover { box-shadow: 0 4px 0 var(--plum-900); }

/* =========================================================
   HEADER
   ========================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: block;
  min-height: var(--hdr-h);
}
.hdr {
  background: rgba(251, 248, 249, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.hdr.is-scrolled { box-shadow: 0 6px 20px -16px rgba(63, 19, 36, 0.4); }
.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--hdr-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  flex: none;
}
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; line-height: 1.1; }
.brand span { line-height: 1.15; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative;
  display: block;
  padding: 0.5rem 0.7rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__list a:hover { color: var(--ink); background: var(--berry-50); }
.nav__list a.is-active,
.nav__list a[aria-current="page"] { color: var(--berry-700); font-weight: 600; }
.nav__list a.is-active::after,
.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.2rem;
  height: 2px;
  background: var(--berry-600);
}

.hdr__progress { height: 3px; background: var(--berry-50); }
.hdr__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--berry-600), var(--gold-400));
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
  position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(63, 19, 36, 0.45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
    max-height: calc(100vh - var(--hdr-h));
    overflow-y: auto;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 0.8rem 0.6rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a.is-active::after, .nav__list a[aria-current="page"]::after { left: 0; right: auto; width: 4px; top: 0.7rem; bottom: 0.7rem; height: auto; }
  .nav .btn { width: 100%; }
  .hdr__inner { position: relative; }
  #site-header { position: sticky; }
}

/* =========================================================
   HERO — mission board
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(180, 51, 89, 0.13) 1px, transparent 0) 0 0 / 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.35em; }
.hero__title-sub {
  display: block;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--berry-700);
  margin-top: 0.5em;
  max-width: 24ch;
}
.hero__brief { font-size: 1.1rem; color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 2rem; }

.optional {
  border-top: 2px dashed var(--line-strong);
  padding-top: 1.1rem;
  max-width: 560px;
}
.optional__title { font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 0.7rem; }
.optional ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.2rem; }
.optional li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; line-height: 1.45; }
.check {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 2px solid var(--berry-600);
  border-radius: 4px;
  background: var(--surface);
  position: relative;
}
.check--done { background: var(--berry-600); }
.check--done::after {
  content: "";
  position: absolute;
  left: 4px; top: 0px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.board {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--plum-900);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  box-shadow: 10px 10px 0 var(--berry-100);
}
.board__label {
  position: absolute;
  top: -15px; left: 22px;
  background: var(--gold-400);
  border: 2px solid var(--plum-900);
  border-radius: 6px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.board img { border-radius: 10px; width: 100%; }
.board__pin {
  position: absolute;
  bottom: -18px; right: 26px;
  display: flex; gap: 0.5rem; align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  font-size: 0.8rem; font-weight: 600;
  box-shadow: var(--shadow-soft);
  animation: bob 5s ease-in-out infinite;
}
.board__pin i { width: 22px; height: 22px; border-radius: 50%; background: var(--wood-100); display: grid; place-items: center; font-style: normal; color: var(--wood-600); font-weight: 800; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* =========================================================
   ABOUT — mission briefing
   ========================================================= */
.briefing { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--surface); border-block: 1px solid var(--line); }
.briefing__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.briefing__text p { font-size: 1.12rem; line-height: 1.8; color: #3a1f29; max-width: 64ch; }
.briefing__text h2 + p { font-size: clamp(1.22rem, 2vw, 1.42rem); line-height: 1.6; color: var(--ink); font-weight: 500; }
.summary {
  position: sticky;
  top: calc(var(--hdr-h) + 24px);
  border-left: 4px solid var(--gold-400);
  background: var(--gold-50);
  padding: 1.5rem 1.5rem 1.2rem;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.summary h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.summary dl { margin: 0; }
.summary div { padding: 0.65rem 0; border-top: 1px solid rgba(63, 19, 36, 0.1); }
.summary dt { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.summary dd { margin: 0.1rem 0 0; font-weight: 500; font-size: 0.97rem; }
.summary img { margin: 0 0 1rem; width: 100%; max-width: 280px; }

/* =========================================================
   FEATURES — main + optional objectives
   ========================================================= */
.objectives { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.objectives__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.objectives__head p { color: var(--muted); margin: 0; }
.objectives__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.main-obj {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.main-obj:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.main-obj--a { grid-column: 1 / span 7; background: var(--berry-50); border-color: var(--berry-100); }
.main-obj--b { grid-column: 8 / span 5; background: var(--wood-50); border-color: var(--wood-100); }
.main-obj__num { font-size: 0.82rem; font-weight: 700; color: var(--berry-700); display: flex; gap: 0.5rem; align-items: center; margin-bottom: 1.4rem; }
.main-obj__num::before { content: "!"; display: grid; place-items: center; width: 26px; height: 26px; background: var(--gold-400); border: 2px solid var(--plum-900); border-radius: 50%; font-weight: 800; color: var(--plum-900); }
.main-obj h3 { font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 700; }
.main-obj p { color: #4a2c37; }
.main-obj ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.main-obj li { font-size: 0.84rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line); padding: 0.25rem 0.7rem; border-radius: 4px; }
.side-obj { grid-column: 3 / span 10; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin-top: 1rem; }
.side-obj__title { grid-column: 1 / -1; font-size: 1rem; font-weight: 600; color: var(--muted); margin: 0 0 0.3rem; }
.side-obj article { display: grid; grid-template-columns: 42px 1fr; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.side-obj svg { width: 42px; height: 42px; }
.side-obj h4 { margin-bottom: 0.25rem; }
.side-obj p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* =========================================================
   HOW IT WORKS — quest route
   ========================================================= */
.route { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); background: var(--berry-50); border-block: 1px solid var(--berry-100); overflow: hidden; }
.route__head { max-width: 640px; margin-bottom: 3rem; }
.route__head p { color: var(--muted); }
.route__track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.route__path { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 160px; pointer-events: none; }
.route__step { position: relative; }
.route__step:nth-child(odd) { margin-top: 0; }
.route__step:nth-child(even) { margin-top: 5.5rem; }
.route__marker {
  position: relative;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--berry-600);
  font-weight: 800; font-size: 1.35rem; color: var(--berry-700);
  margin-bottom: 1.1rem;
  z-index: 1;
}
.route__marker::after {
  content: "";
  position: absolute;
  right: -6px; bottom: -4px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--gold-400);
  border: 2px solid var(--plum-900);
}
.route__step:last-child .route__marker { background: var(--gold-400); border-color: var(--plum-900); color: var(--plum-900); }
.route__step:last-child .route__marker::after { background: var(--berry-600); }
.route__step h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.route__step p { color: var(--muted); font-size: 0.96rem; margin: 0; max-width: 30ch; }

/* =========================================================
   GUIDES PREVIEW — main quest + side quests
   ========================================================= */
.guides { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.guides__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.2rem; flex-wrap: wrap; }
.guides__head h2 { margin: 0; }
.guides__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; }
.mainquest { text-decoration: none; color: inherit; display: block; }
.mainquest__img { border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line); background: var(--surface); }
.mainquest__img img { width: 100%; transition: transform 0.5s var(--ease); }
.mainquest:hover .mainquest__img img { transform: scale(1.025); }
.mainquest h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 1.2rem 0 0.5rem; }
.mainquest p { color: var(--muted); margin: 0; }
.mainquest:hover h3 { color: var(--berry-700); }
.sidequests { list-style: none; padding: 0; margin: 0; }
.sidequests li + li { border-top: 1px solid var(--line); }
.sidequests a { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; padding: 1rem 0; text-decoration: none; color: inherit; }
.sidequests img { border-radius: 8px; border: 1px solid var(--line); width: 96px; aspect-ratio: 16/10; object-fit: cover; }
.sidequests h3 { font-size: 1rem; margin: 0 0 0.2rem; transition: color 0.2s; }
.sidequests p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.sidequests a:hover h3 { color: var(--berry-700); }
.sidequests__label { font-weight: 600; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.3rem; }

/* =========================================================
   USE CASES — typographic rows (no cards)
   ========================================================= */
.usecases { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--surface); border-block: 1px solid var(--line); }
.usecases h2 { max-width: 20ch; }
.usecases__rows { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.usecase { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 2rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.usecase h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.usecase p { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 60ch; }

/* =========================================================
   COMPATIBILITY — reference table
   ========================================================= */
.compat { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.compat__grid { display: grid; grid-template-columns: 0.8fr 2fr; gap: 3rem; align-items: start; }
.compat__intro p { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.95rem 1.1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--berry-50); font-size: 0.85rem; font-weight: 600; color: var(--plum-900); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; padding: 0.15rem 0.55rem; border-radius: 4px; white-space: nowrap; }
.status--yes { background: var(--berry-600); color: #fff; }
.status--check { background: var(--gold-100); color: #5c4300; }
.status--no { background: #eee8ea; color: var(--muted); border: 1px dashed var(--line-strong); }

/* =========================================================
   INSTALLATION — checklist + side notes
   ========================================================= */
.setup { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--wood-50); border-block: 1px solid var(--wood-100); }
.setup__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 1.8rem 0 0; counter-reset: chk; }
.checklist li { counter-increment: chk; display: grid; grid-template-columns: 40px 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px dashed var(--line-strong); }
.checklist li::before {
  content: counter(chk);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 2px solid var(--berry-600);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 700; color: var(--berry-700);
}
.checklist h3 { font-size: 1.05rem; margin: 0.25rem 0 0.3rem; }
.checklist p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.checklist code, .prose code { font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); padding: 0.05rem 0.35rem; border-radius: 4px; }
.notes { background: var(--surface); border: 1.5px solid var(--wood-100); border-radius: var(--r-lg); padding: 1.6rem; position: sticky; top: calc(var(--hdr-h) + 24px); }
.notes h3 { font-size: 1.05rem; }
.notes table { font-size: 0.9rem; }
.notes th, .notes td { padding: 0.55rem 0.2rem; }
.notes p { font-size: 0.93rem; color: var(--muted); }

/* =========================================================
   DOWNLOAD — full-width callout
   ========================================================= */
.download { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.download__panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  background: linear-gradient(135deg, var(--berry-50) 0%, var(--surface) 55%, var(--gold-50) 100%);
  border: 2px solid var(--plum-900);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  box-shadow: 12px 12px 0 var(--berry-100);
}
.download__panel h2 { margin-bottom: 0.4rem; }
.download__meta { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0.45rem; }
.download__meta li { display: flex; gap: 0.6rem; font-size: 0.95rem; }
.download__meta strong { min-width: 118px; font-weight: 600; color: var(--plum-900); }
.download__note { font-size: 0.88rem; color: var(--muted); margin: 1.3rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line-strong); max-width: 60ch; }

/* =========================================================
   PROS & CONS — balanced comparison
   ========================================================= */
.proscons { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--surface); border-block: 1px solid var(--line); }
.proscons__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.proscons__head p { color: var(--muted); }
.proscons__grid { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.proscons__col { padding: clamp(1.4rem, 3vw, 2.2rem); }
.proscons__col + .proscons__col { border-left: 1.5px solid var(--line); background: #fdfafb; }
.proscons__col h3 { display: flex; align-items: center; gap: 0.6rem; }
.proscons__col ul { list-style: none; padding: 0; margin: 0; }
.proscons__col li { position: relative; padding: 0.7rem 0 0.7rem 2rem; border-top: 1px solid var(--line); font-size: 0.97rem; }
.proscons__col li::before { position: absolute; left: 0; top: 0.72rem; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; font-weight: 800; font-size: 0.95rem; line-height: 1; }
.pros li::before { content: "+"; background: var(--berry-100); color: var(--plum-900); }
.cons li::before { content: "\2212"; background: var(--gold-100); color: #5c4300; }

/* =========================================================
   TROUBLESHOOTING — problem / fix rows
   ========================================================= */
.trouble { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.trouble__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.trouble__head p { color: var(--muted); margin: 0; }
.trouble__list { margin: 0; }
.trouble__row { display: grid; grid-template-columns: 0.9fr 1.6fr; gap: 2rem; padding: 1.3rem 1.4rem; border-radius: var(--r-md); }
.trouble__row:nth-child(odd) { background: var(--surface); border: 1px solid var(--line); }
.trouble__row dt { font-weight: 600; display: flex; gap: 0.7rem; align-items: flex-start; }
.trouble__row dt::before { content: ""; flex: none; margin-top: 7px; width: 10px; height: 10px; border-radius: 2px; background: var(--gold-400); border: 2px solid var(--plum-900); transform: rotate(45deg); }
.trouble__row dd { margin: 0; color: var(--muted); }

/* =========================================================
   RELEASE — version panel
   ========================================================= */
.release { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--gold-50); border-block: 1px solid var(--gold-100); }
.release__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.release__panel { margin: 0; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 0 0 6px 6px; font-size: 0.95rem; }
.release__panel div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); }
.release__panel div:last-child { border-bottom: 0; }
.release__panel dt { font-weight: 600; color: var(--muted); font-size: 0.87rem; }
.release__panel dd { margin: 0; word-break: break-word; }
.release__panel-title { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.2rem; background: var(--berry-100); color: var(--plum-900); border: 1.5px solid var(--line-strong); border-bottom: 0; border-radius: 6px 6px 0 0; font-weight: 600; font-size: 0.92rem; }
.release__panel-title span:last-child { font-weight: 500; color: var(--muted); font-size: 0.82rem; }

/* =========================================================
   SAFETY — compact callout
   ========================================================= */
.safety { padding: clamp(3rem, 6vw, 5rem) 0; }
.safety__box { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; border-left: 5px solid var(--gold-400); background: var(--surface); padding: clamp(1.4rem, 3vw, 2rem); border-radius: 0 var(--r-md) var(--r-md) 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safety__icon { width: 54px; height: 54px; }
.safety__box h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.safety__box ul { margin: 0; padding-left: 1.1rem; color: #4a2c37; }
.safety__box li + li { margin-top: 0.4rem; }

/* =========================================================
   FAQ — quest log
   ========================================================= */
.questlog { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); background: var(--surface); border-top: 1px solid var(--line); }
.questlog__head { max-width: 660px; margin-bottom: 2.6rem; }
.questlog__head p { color: var(--muted); }
.questlog__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
.log { border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.log__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1.5px solid var(--line); }
.log__head h3 { margin: 0; font-size: 1.12rem; display: flex; gap: 0.6rem; align-items: center; }
.log__head h3 svg { width: 26px; height: 26px; }
.log__count { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--line); position: relative; }
.faq-item:last-child { border-bottom: 0; }
.faq-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold-400); transform: scaleY(0); transform-origin: top; transition: transform 0.3s var(--ease); }
.faq-item.is-open::before { transform: scaleY(1); }
.faq-item.is-open { background: var(--surface); }
.faq-item h4 { margin: 0; font-size: 1rem; }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 1fr 20px;
  gap: 0.85rem;
  align-items: start;
  text-align: left;
  background: none;
  border: 0;
  padding: 1rem 1.3rem;
  font: 500 0.98rem/1.45 var(--font);
  color: var(--ink);
  cursor: pointer;
}
.faq-q:hover { color: var(--berry-700); }
.faq-q .check { margin-top: 1px; transition: background-color 0.2s var(--ease); }
.faq-q[aria-expanded="true"] .check { background: var(--berry-600); }
.faq-q[aria-expanded="true"] .check::after {
  content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.faq-q__icon { width: 20px; height: 20px; margin-top: 1px; position: relative; }
.faq-q__icon::before, .faq-q__icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 9px; height: 2px; background: var(--berry-700); border-radius: 2px; transition: transform 0.25s var(--ease); }
.faq-q__icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-q__icon::after { transform: rotate(0deg); }
.faq-q[aria-expanded="true"] { font-weight: 600; color: var(--plum-900); }
.faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s var(--ease), visibility 0s linear 0.3s; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 1.3rem 1.2rem calc(1.3rem + 20px + 0.85rem); color: var(--muted); font-size: 0.95rem; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s var(--ease), visibility 0s; }

/* =========================================================
   FOOTER — quest board footer
   ========================================================= */
#site-footer { display: block; }
.ftr { background: var(--berry-50); border-top: 1px solid var(--berry-100); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; position: relative; }
.ftr::before { content: ""; position: absolute; top: -1px; left: 0; width: 38%; height: 3px; background: linear-gradient(90deg, var(--berry-600), var(--gold-400)); }
.ftr__grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr; gap: 2.2rem; }
.ftr__done { background: var(--surface); border: 1.5px solid var(--berry-100); border-radius: var(--r-md); padding: 1.3rem; }
.ftr__done-top { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.7rem; }
.ftr__done-top strong { font-size: 1.05rem; }
.ftr__done p { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.7rem; }
.ftr__email { font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.ftr__group h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.9rem; color: var(--plum-900); display: flex; gap: 0.5rem; align-items: center; }
.ftr__group h2::before { content: ""; width: 8px; height: 8px; background: var(--gold-400); border: 2px solid var(--plum-900); transform: rotate(45deg); }
.ftr__group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.ftr a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
.ftr a:hover { color: var(--berry-700); text-decoration: underline; }
.ftr__bottom { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.87rem; color: var(--muted); }
.ftr__bottom a { font-size: 0.87rem; font-weight: 600; color: var(--berry-700); }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--gold-400);
  border: 2px solid var(--plum-900);
  box-shadow: 0 3px 0 var(--plum-900);
  color: var(--plum-900);
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  z-index: 55;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   INNER PAGES — shared
   ========================================================= */
.crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--berry-700); text-decoration: underline; }

.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20ch; }
.page-head .lead { margin: 0; }

/* ---------- Blog index: quest journal ---------- */
.journal { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem); }
.featured-quest { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; text-decoration: none; color: inherit; background: var(--surface); border: 2px solid var(--plum-900); border-radius: 20px; padding: clamp(1rem, 2.5vw, 1.6rem); box-shadow: 10px 10px 0 var(--berry-100); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.featured-quest img { border-radius: 12px; width: 100%; }
.featured-quest h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.6rem; }
.featured-quest p { color: var(--muted); }
.featured-quest:hover h2 { color: var(--berry-700); }
.featured-quest .fake-link { font-weight: 600; color: var(--berry-700); text-decoration: underline; text-underline-offset: 3px; }
.journal__group { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; padding: 2.2rem 0; border-top: 1px solid var(--line); }
.journal__group-head h2 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.journal__group-head p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.journal__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; list-style: none; padding: 0; margin: 0; }
.journal__list li:first-child { grid-column: span 2; }
.journal__list li:first-child:nth-last-child(3) { grid-row: span 2; }
.journal__list a { display: block; text-decoration: none; color: inherit; }
.journal__list img { width: 100%; border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); transition: transform 0.35s var(--ease); }
.journal__list li:first-child img { aspect-ratio: 16 / 8; }
.journal__list a:hover img { transform: translateY(-3px); }
.journal__list h3 { font-size: 1.05rem; margin: 0.9rem 0 0.3rem; }
.journal__list li:first-child h3 { font-size: 1.3rem; }
.journal__list p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.journal__list a:hover h3 { color: var(--berry-700); }

/* ---------- Blog post ---------- */
.post-head { padding: clamp(2.2rem, 5vw, 3.6rem) 0 0; }
.post-head h1 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); max-width: 22ch; }
.post-head .lead { margin-bottom: 1.2rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.87rem; color: var(--muted); margin-bottom: 2rem; }
.post-figure { margin: 0 0 clamp(2rem, 5vw, 3.5rem); border-radius: var(--r-lg); overflow: hidden; border: 1.5px solid var(--line); background: var(--surface); }
.post-figure img { width: 100%; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose { font-size: 1.05rem; line-height: 1.8; max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin: 2.2rem 0 0.8rem; }
.prose h3 { font-size: 1.18rem; margin: 1.6rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .callout { border-left: 4px solid var(--gold-400); background: var(--gold-50); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; margin: 1.6rem 0; font-size: 0.98rem; }
.prose .callout p:last-child { margin: 0; }
.prose table { margin: 1.4rem 0; font-size: 0.93rem; }
.prose .table-scroll { margin: 1.4rem 0; }
.prose .table-scroll table { margin: 0; }
.related { margin-top: 3rem; padding-top: 2rem; border-top: 2px dashed var(--line-strong); }
.related h2 { font-size: 1.3rem; margin-top: 0; }
.related ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.related a { display: block; text-decoration: none; color: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.related img { border-radius: 8px; border: 1px solid var(--line); margin-bottom: 0.6rem; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related a:hover { color: var(--berry-700); }

.tracker { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 1.4rem; }
.tracker__box { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.3rem; }
.tracker__box h2 { font-size: 0.98rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.55rem; }
.tracker__box h2::before { content: ""; width: 9px; height: 9px; background: var(--gold-400); border: 2px solid var(--plum-900); transform: rotate(45deg); }
.tracker__toc { list-style: none; padding: 0; margin: 0; }
.tracker__toc a { display: grid; grid-template-columns: 16px 1fr; gap: 0.6rem; padding: 0.4rem 0; text-decoration: none; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.tracker__toc a::before { content: ""; width: 12px; height: 12px; margin-top: 4px; border: 2px solid var(--line-strong); border-radius: 3px; }
.tracker__toc a:hover { color: var(--berry-700); }
.tracker__toc a:hover::before { border-color: var(--berry-600); background: var(--berry-100); }
.tracker__list { list-style: none; padding: 0; margin: 0; }
.tracker__list li + li { border-top: 1px solid var(--line); }
.tracker__list a { display: block; padding: 0.55rem 0; font-size: 0.88rem; font-weight: 500; color: var(--ink); text-decoration: none; line-height: 1.4; }
.tracker__list a:hover { color: var(--berry-700); }
.tracker__cta { background: var(--gold-50); border: 2px solid var(--plum-900); border-radius: var(--r-md); padding: 1.3rem; }
.tracker__cta h2 { font-size: 1rem; margin-bottom: 0.4rem; }
.tracker__cta p { font-size: 0.87rem; color: var(--muted); }

/* ---------- Supporting pages ---------- */
.about-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 5vw, 4rem) 0; align-items: start; }
.about-split .prose { max-width: none; }
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: clamp(3rem, 6vw, 5rem); }
.scope > div { padding: 1.6rem; background: var(--surface); }
.scope > div + div { border-left: 1.5px solid var(--line); background: #fdfafb; }
.scope ul { margin: 0; padding-left: 1.1rem; }
.scope li { margin-bottom: 0.45rem; }

.contact-card { max-width: 760px; margin: clamp(2.5rem, 5vw, 4rem) auto clamp(3.5rem, 6vw, 5rem); background: var(--surface); border: 2px solid var(--plum-900); border-radius: 20px; box-shadow: 10px 10px 0 var(--berry-100); padding: clamp(1.5rem, 4vw, 2.8rem); }
.contact-email { display: inline-block; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; background: var(--gold-50); border: 1.5px dashed var(--gold-500); padding: 0.6rem 1rem; border-radius: 8px; margin: 0.5rem 0 1.5rem; user-select: all; word-break: break-all; }
.contact-reasons { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.7rem; }
.contact-reasons li { display: grid; grid-template-columns: 20px 1fr; gap: 0.8rem; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem); align-items: start; }
.legal__index { position: sticky; top: calc(var(--hdr-h) + 24px); border-left: 2px solid var(--line); padding-left: 1rem; }
.legal__index p { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.6rem; }
.legal__index ol { padding-left: 1.1rem; margin: 0; font-size: 0.88rem; }
.legal__index li { margin-bottom: 0.35rem; }
.legal__index a { color: var(--muted); text-decoration: none; }
.legal__index a:hover { color: var(--berry-700); text-decoration: underline; }
.legal .prose h2 { font-size: 1.35rem; }

.disclaimer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem); }
.disclaimer-grid section { padding: 1.5rem 0 0; border-top: 3px solid var(--berry-600); }
.disclaimer-grid section:nth-child(3n+2) { border-top-color: var(--gold-400); }
.disclaimer-grid section:nth-child(3n) { border-top-color: var(--wood-600); }
.disclaimer-grid h2 { font-size: 1.2rem; }
.disclaimer-grid p { color: #4a2c37; font-size: 0.98rem; }
.disclaimer-grid .wide { grid-column: 1 / -1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; }
  .briefing__grid, .compat__grid, .setup__grid, .release__grid, .guides__grid { grid-template-columns: 1fr; }
  .summary, .notes { position: static; }
  .main-obj--a, .main-obj--b { grid-column: 1 / -1; }
  .side-obj { grid-column: 1 / -1; }
  .route__track { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .route__step:nth-child(even) { margin-top: 2.5rem; }
  .route__path { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__done { grid-column: 1 / -1; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .tracker { position: static; grid-template-columns: 1fr 1fr; }
  .tracker__cta { grid-column: 1 / -1; }
  .journal__group { grid-template-columns: 1fr; gap: 1.4rem; }
  .legal { grid-template-columns: 1fr; }
  .legal__index { position: static; }
  .about-split { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 0.98rem; }
  .optional ul { grid-template-columns: 1fr; }
  .objectives__head, .trouble__head { grid-template-columns: 1fr; gap: 0.8rem; }
  .side-obj { grid-template-columns: 1fr; }
  .route__track { grid-template-columns: 1fr; row-gap: 0; }
  .route__step, .route__step:nth-child(even) { margin-top: 0; display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; padding-bottom: 1.8rem; }
  .route__step:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 66px; bottom: 0; border-left: 3px dashed var(--berry-600); opacity: 0.45; }
  .route__marker { margin: 0; }
  .usecase { grid-template-columns: 1fr; gap: 0.6rem; }
  .download__panel { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--berry-100); }
  .download__visual { order: -1; max-width: 360px; }
  .download .btn { width: 100%; }
  .proscons__grid { grid-template-columns: 1fr; }
  .proscons__col + .proscons__col { border-left: 0; border-top: 1.5px solid var(--line); }
  .trouble__row { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.1rem; }
  .release__panel div { grid-template-columns: 1fr; gap: 0.1rem; }
  .safety__box { grid-template-columns: 1fr; }
  .questlog__cols { grid-template-columns: 1fr; }
  .faq-q { padding: 0.95rem 1rem; }
  .faq-a p { padding: 0 1rem 1.1rem 1rem; }
  .ftr__grid { grid-template-columns: 1fr; }
  .featured-quest { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--berry-100); }
  .journal__list { grid-template-columns: 1fr; }
  .journal__list li:first-child { grid-column: auto; grid-row: auto; }
  .tracker { grid-template-columns: 1fr; }
  .related ul { grid-template-columns: 1fr; }
  .scope { grid-template-columns: 1fr; }
  .scope > div + div { border-left: 0; border-top: 1.5px solid var(--line); }
  .disclaimer-grid { grid-template-columns: 1fr; }
  .board { box-shadow: 6px 6px 0 var(--berry-100); }
  .hero__actions .btn { flex: 1 1 100%; }
  .sidequests a { grid-template-columns: 80px 1fr; }
  .sidequests img { width: 80px; }
}

@media (max-width: 400px) {
  .wrap, .wrap--narrow, .wrap--wide { width: min(100% - 1.6rem, var(--wrap)); }
  .brand small { display: none; }
  th, td { padding: 0.75rem 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .board__pin { animation: none; }
}

/* Compatibility table becomes stacked rows on small screens */
@media (max-width: 760px) {
  .compat table, .compat tbody, .compat tr, .compat th, .compat td { display: block; width: 100%; }
  .compat thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compat tr { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .compat tbody tr:last-child { border-bottom: 0; }
  .compat th, .compat td { padding: 0; border: 0; white-space: normal; }
  .compat td { margin-top: 0.45rem; }
}
