:root {
  color-scheme: dark;
  --ink: #edf6f4;
  --muted: #9fb4b8;
  --faint: #6f878d;
  --bg: #061116;
  --panel: rgba(11, 26, 33, 0.88);
  --panel-strong: #0c2028;
  --panel-soft: rgba(18, 42, 50, 0.62);
  --line: rgba(151, 197, 197, 0.16);
  --line-bright: rgba(151, 220, 209, 0.34);
  --mint: #72e4c1;
  --cyan: #62cfe4;
  --gold: #efc46f;
  --coral: #ef9478;
  --violet: #a998ed;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  --radius: 18px;
  --max-article: 900px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(51, 139, 135, 0.12), transparent 31rem),
    radial-gradient(circle at 91% 16%, rgba(70, 116, 177, 0.12), transparent 28rem),
    linear-gradient(180deg, #07151b, var(--bg) 36rem);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(142, 204, 195, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 204, 195, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #051411;
  background: var(--mint);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.wiki-shell { min-height: calc(100vh - 66px); }

.wiki-masthead {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr) 220px;
  align-items: center;
  min-height: 78px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 22, 0.82);
  backdrop-filter: blur(18px);
}

.wiki-title {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  text-decoration: none;
}

.wiki-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(114, 228, 193, 0.42);
  border-radius: 12px;
  color: #051611;
  background: linear-gradient(145deg, #99f3d8, #53bfa9);
  box-shadow: 0 8px 28px rgba(83, 191, 169, 0.22);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 800;
}

.wiki-title span:last-child { display: grid; gap: 2px; }
.wiki-title strong { letter-spacing: -0.02em; }
.wiki-title small { color: var(--muted); font-size: 12px; }

.snapshot-chip {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(15, 35, 42, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.snapshot-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.rail-toggle { display: none; }

.wiki-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr) 220px;
  max-width: 1720px;
  min-height: calc(100vh - 144px);
  margin: 0 auto;
}

.wiki-rail,
.wiki-context {
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 66px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(114, 228, 193, 0.2) transparent;
}

.wiki-rail {
  padding: 25px 20px 38px 24px;
  border-right: 1px solid var(--line);
}

.rail-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rail-search > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(11, 27, 34, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rail-search > div:focus-within {
  border-color: rgba(114, 228, 193, 0.55);
  box-shadow: 0 0 0 3px rgba(114, 228, 193, 0.08);
}

.rail-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}
.rail-search input::placeholder { color: #6e8589; }
.rail-search kbd {
  padding: 1px 5px 2px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  background: #0b1b21;
  font-size: 10px;
}

.rail-section { margin-top: 26px; }
.rail-section-head { margin: 0 8px 9px; }
.rail-section-head strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.025em;
}
.rail-section-head small { color: var(--faint); font-size: 10px; line-height: 1.4; }
.rail-page-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 2px 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.rail-page-link::before {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}
.rail-page-link:hover { color: var(--ink); background: rgba(114, 228, 193, 0.055); }
.rail-page-link.is-current {
  color: #dffbf1;
  background: linear-gradient(90deg, rgba(75, 175, 153, 0.19), rgba(75, 175, 153, 0.045));
}
.rail-page-link.is-current::before { border-color: var(--mint); background: var(--mint); box-shadow: 0 0 10px rgba(114, 228, 193, 0.7); }

.rail-ecosystem {
  display: grid;
  gap: 2px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.rail-ecosystem p {
  margin: 0 8px 7px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rail-ecosystem a {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.rail-ecosystem a:hover { color: var(--mint); background: rgba(114, 228, 193, 0.05); }

.wiki-main {
  min-width: 0;
  padding: 46px clamp(28px, 5vw, 76px) 110px;
  outline: 0;
}

.article-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 55vh;
  color: var(--muted);
}
.article-loading span {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(114, 228, 193, 0.2);
  border-top-color: var(--mint);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wiki-article { max-width: var(--max-article); margin: 0 auto; }
.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--faint);
  font-size: 11px;
}
.article-breadcrumbs a { color: var(--muted); text-decoration: none; }
.article-breadcrumbs a:hover { color: var(--mint); }

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(116, 209, 196, 0.19);
  border-radius: 24px;
  background:
    linear-gradient(125deg, rgba(22, 62, 68, 0.9), rgba(9, 27, 35, 0.92) 64%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}
.guide-hero::before,
.guide-hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.guide-hero::before {
  top: -90px;
  right: -60px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(114, 228, 193, 0.13);
  box-shadow: 0 0 0 34px rgba(114, 228, 193, 0.025), 0 0 0 68px rgba(114, 228, 193, 0.018);
}
.guide-hero::after {
  right: 13%;
  bottom: -110px;
  width: 180px;
  height: 180px;
  background: rgba(82, 188, 174, 0.075);
  filter: blur(1px);
}
.guide-hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-eyebrow::before { width: 20px; height: 1px; content: ""; background: currentColor; }
.guide-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero-dek {
  max-width: 680px;
  margin: 20px 0 0;
  color: #d0e2e3;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.48;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.hero-tags span,
.data-pill,
.control-key {
  padding: 5px 8px;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: #cbe7e3;
  background: rgba(8, 22, 28, 0.54);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.article-summary {
  margin: 30px 0 4px;
  padding: 0 4px 28px;
  border-bottom: 1px solid var(--line);
  color: #c7d8da;
  font-size: 18px;
  line-height: 1.7;
}

.article-block { scroll-margin-top: 96px; margin-top: 44px; }
.article-block > h2,
.dynamic-section > h2 {
  margin: 0 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.article-block > p,
.prose-stack p {
  margin: 0 0 14px;
  color: #c1d0d2;
  font-size: 15px;
  line-height: 1.75;
}

.guide-callout {
  position: relative;
  padding: 20px 21px 20px 48px;
  border: 1px solid var(--line-bright);
  border-radius: 15px;
  background: linear-gradient(120deg, rgba(26, 62, 66, 0.62), rgba(12, 31, 38, 0.78));
}
.guide-callout::before {
  position: absolute;
  top: 21px;
  left: 19px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--mint);
  content: "i";
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
}
.guide-callout[data-tone="history"] { border-color: rgba(239, 196, 111, 0.32); background: rgba(58, 45, 26, 0.38); }
.guide-callout[data-tone="concept"] { border-color: rgba(169, 152, 237, 0.32); background: rgba(47, 38, 76, 0.35); }
.guide-callout[data-tone="careful"] { border-color: rgba(239, 148, 120, 0.32); background: rgba(73, 38, 30, 0.32); }
.guide-callout h2 { margin: 0 0 7px; font-size: 15px; }
.guide-callout p { margin: 0; color: #bcd0d1; font-size: 13px; line-height: 1.62; }

.step-list { display: grid; gap: 12px; counter-reset: step; }
.step-card {
  counter-increment: step;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 27, 34, 0.64);
}
.step-card::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(114, 228, 193, 0.34);
  border-radius: 12px;
  color: var(--mint);
  content: counter(step, decimal-leading-zero);
  font-size: 11px;
  font-weight: 850;
}
.step-card strong { display: block; margin-bottom: 4px; font-size: 14px; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field-link {
  display: flex;
  min-height: 86px;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(12, 30, 37, 0.65);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.field-link:hover { transform: translateY(-2px); border-color: rgba(114, 228, 193, 0.45); background: rgba(20, 48, 55, 0.75); }
.field-link span:first-child { color: var(--ink); font-size: 13px; font-weight: 750; }
.field-link span:last-child { color: var(--mint); font-size: 18px; }

.journey-grid,
.station-grid,
.profession-grid,
.tool-grid,
.terminal-grid,
.planet-grid,
.race-grid {
  display: grid;
  gap: 13px;
}
.journey-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.journey-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18, 48, 54, 0.75), rgba(9, 24, 30, 0.84));
}
.journey-card b { color: var(--mint); font-size: 11px; }
.journey-card h3 { margin: 34px 0 8px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.journey-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.journey-card a { position: absolute; inset: 0; text-indent: -9999px; }


.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.guide-card {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(114, 228, 193, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(16, 43, 50, 0.78), rgba(9, 24, 30, 0.88));
}
.guide-card::after {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(114, 228, 193, 0.12);
  border-radius: 50%;
  content: "";
}
.guide-card-label {
  color: var(--mint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-card h3 {
  margin: 26px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}
.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
}
.guide-card.is-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}
.guide-card.is-link:hover {
  border-color: rgba(114, 228, 193, 0.48);
  transform: translateY(-2px);
}
.guide-card.is-link:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
.guide-media figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 24, 30, 0.88);
}
.guide-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.guide-media figcaption {
  padding: 11px 13px 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.farming-gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.farming-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 24, 30, 0.88);
}
.farming-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.farming-gallery figcaption {
  padding: 11px 13px 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.unlock-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.unlock-step {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 13px;
  min-height: 108px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(120deg, rgba(16, 45, 51, 0.8), rgba(9, 25, 31, 0.88));
}
.unlock-level {
  display: grid;
  align-self: start;
  min-height: 42px;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(114, 228, 193, 0.3);
  border-radius: 11px;
  color: var(--mint);
  background: rgba(10, 31, 36, 0.72);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.unlock-step h3 {
  margin: 2px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
}
.unlock-step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.52;
}

.station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.station-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(11, 27, 34, 0.72);
}
.station-card img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; background: #0a1c22; }
.station-copy { display: flex; min-width: 0; flex-direction: column; padding: 17px; }
.station-copy .count { color: var(--gold); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.station-copy h3 { margin: 7px 0 6px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.station-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 12px; }
.card-actions a {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #d8e9e6;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}
.card-actions a:first-child { border-color: rgba(114, 228, 193, 0.38); color: var(--mint); }

.profession-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profession-card {
  position: relative;
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 28, 34, 0.65);
}
.profession-card::after { position: absolute; top: 15px; right: 15px; color: var(--mint); content: "✦"; opacity: 0.6; }
.profession-card h3 { margin: 0 0 6px; font-size: 15px; }
.profession-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profession-card small { position: absolute; bottom: 14px; left: 16px; color: var(--faint); font-size: 10px; }

.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-card {
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(10, 25, 31, 0.76);
}
.tool-card-head { display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 112px; }
.tool-card-image { display: block; width: 112px; aspect-ratio: 1; overflow: hidden; background: #07191e; }
.tool-card img { display: block; width: 112px; height: 112px; object-fit: contain; background: #07191e; }
.tool-title { padding: 15px; }
.tool-title h3 { margin: 4px 0 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.tool-title h3 a { color: var(--ink); text-decoration-color: rgba(114, 228, 193, .35); text-underline-offset: 4px; }
.tool-title p { margin: 0; color: var(--faint); font-size: 10px; }
.tool-description { padding: 15px; border-top: 1px solid var(--line); }
.tool-description p { margin: 0; color: #b9cbcd; font-size: 12px; line-height: 1.6; }
.control-strip { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.control-key { border-radius: 7px; color: var(--mint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.tool-description .card-actions { padding-top: 13px; }

.terminal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.terminal-card {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 144px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(11, 27, 34, 0.7);
}
.terminal-card img { width: 108px; height: 100%; min-height: 144px; object-fit: cover; background: #08191f; }
.terminal-card > div { padding: 14px; }
.terminal-card h3 { margin: 0 0 6px; font-size: 14px; }
.terminal-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.terminal-card small { display: inline-block; margin-top: 9px; color: var(--mint); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.terminal-card.is-image-only small { color: var(--gold); }

.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 17px; }
.metric-card { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(11, 28, 34, 0.68); }
.metric-card strong { display: block; color: var(--mint); font-family: Georgia, serif; font-size: 27px; font-weight: 500; }
.metric-card span { color: var(--faint); font-size: 9px; font-weight: 750; text-transform: uppercase; }

.planet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.planet-grid.is-current { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.planet-card { position: relative; min-height: 180px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #0b2027; }
.planet-card img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.planet-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 25%, rgba(4, 13, 18, 0.92)); }
.planet-card > div { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 14px; }
.planet-card h3 { margin: 0 0 3px; font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.planet-card a { color: var(--mint); font-size: 10px; font-weight: 750; text-decoration: none; }
.garden-place-history { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(10, 25, 31, 0.66); }
.garden-place-history > summary { padding: 16px 18px; color: var(--ink); cursor: pointer; font-family: Georgia, serif; font-size: 18px; }
.garden-place-history > summary::marker { color: var(--mint); }
.garden-place-history[open] > summary { border-bottom: 1px solid var(--line); }
.garden-place-history > .planet-grid { padding: 16px; }
.race-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.race-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: rgba(10, 25, 31, 0.78); }
.race-images { display: grid; grid-template-columns: 1fr 1fr; height: 180px; }
.race-images img { width: 100%; height: 100%; object-fit: cover; }
.race-card footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.race-card h3 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
.race-card a { color: var(--mint); font-size: 10px; text-decoration: none; }

.people-strip { display: flex; gap: 10px; margin-top: 14px; padding-bottom: 7px; overflow-x: auto; scroll-snap-type: x proximity; }
.person-mini { position: relative; min-width: 130px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #0a1b21; scroll-snap-align: start; }
.person-mini img { display: block; width: 130px; height: 130px; object-fit: cover; }
.person-mini div { padding: 10px; }
.person-mini strong { display: block; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.person-mini small { color: var(--faint); font-size: 9px; }
.person-mini a { position: absolute; inset: 0; text-indent: -9999px; }


.wiki-context { padding: 30px 24px 40px 19px; border-left: 1px solid var(--line); }
.wiki-context section { margin-bottom: 27px; }
.context-label { margin: 0 0 10px; color: var(--faint); font-size: 9px; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
#onThisPage { display: grid; gap: 2px; }
#onThisPage a { padding: 6px 8px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.35; text-decoration: none; }
#onThisPage a:hover { border-color: var(--mint); color: var(--mint); }
#fieldActions { display: grid; gap: 6px; }
#fieldActions a { display: flex; justify-content: space-between; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: #c9d9d8; background: rgba(11, 27, 34, 0.56); font-size: 10px; font-weight: 750; text-decoration: none; }
#fieldActions a:hover { border-color: rgba(114, 228, 193, 0.38); color: var(--mint); }

.search-results { max-width: var(--max-article); margin: 0 auto; }
.search-results header { margin-bottom: 22px; }
.search-results h1 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 40px; font-weight: 500; }
.search-results header p { color: var(--muted); }
.search-result-list { display: grid; gap: 9px; }
.search-result {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(11, 28, 34, 0.68);
  text-decoration: none;
}
.search-result:hover { border-color: var(--line-bright); }
.search-result small { color: var(--mint); font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.search-result strong { font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.search-result span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.empty-search { padding: 30px; border: 1px dashed var(--line-bright); border-radius: 15px; color: var(--muted); text-align: center; }

.wiki-toast {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  max-width: 320px;
  padding: 11px 14px;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  color: var(--ink);
  background: #102930;
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.wiki-toast.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

@media (max-width: 1260px) {
  .wiki-masthead,
  .wiki-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .wiki-context { display: none; }
  .wiki-rail { padding-left: 18px; }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .wiki-masthead { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; min-height: 68px; padding: 0 14px; }
  .rail-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: rgba(13, 32, 39, 0.78);
    cursor: pointer;
  }
  .rail-toggle span,
  .rail-toggle span::before,
  .rail-toggle span::after { display: block; width: 14px; height: 1px; background: currentColor; content: ""; }
  .rail-toggle span { position: relative; }
  .rail-toggle span::before { position: absolute; top: -4px; }
  .rail-toggle span::after { position: absolute; top: 4px; }
  .wiki-title { justify-self: center; }
  .wiki-title small { display: none; }
  .snapshot-chip { width: 8px; height: 8px; padding: 0; border: 0; background: var(--mint); box-shadow: 0 0 12px var(--mint); font-size: 0; }
  .snapshot-chip span { display: none; }
  .wiki-layout { display: block; }
  .wiki-rail {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100vh;
    padding: 24px;
    border-right: 1px solid var(--line-bright);
    background: #08191f;
    box-shadow: var(--shadow);
    transform: translateX(-105%);
    transition: transform 200ms ease;
  }
  .wiki-rail.is-open { transform: none; }
  .rail-scrim { position: fixed; z-index: 40; inset: 0; background: rgba(1, 7, 10, 0.68); backdrop-filter: blur(2px); }
  .wiki-main { padding-top: 32px; }
  .profession-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .wiki-main { padding: 24px 15px 80px; }
  .wiki-title strong { font-size: 13px; }
  .wiki-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 18px; }
  .rail-toggle { padding: 8px; font-size: 0; }
  .guide-hero { padding: 27px 21px; border-radius: 18px; }
  .guide-hero h1 { font-size: clamp(36px, 12vw, 52px); }
  .hero-dek { font-size: 16px; }
  .article-summary { padding-right: 2px; padding-left: 2px; font-size: 15px; }
  .article-block { margin-top: 35px; }
  .journey-grid,
  .station-grid,
  .profession-grid,
  .tool-grid,
  .terminal-grid,
  .planet-grid,
  .race-grid,
  .link-grid { grid-template-columns: 1fr; }
  .station-card { grid-template-columns: 112px minmax(0, 1fr); }
  .station-card img { min-height: 190px; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terminal-card { grid-template-columns: 92px minmax(0, 1fr); }
  .terminal-card img { width: 92px; }
  .planet-grid.is-current { grid-template-columns: 1fr; }
  .planet-card { min-height: 220px; }
  .garden-place-history > summary { padding: 14px 15px; font-size: 16px; }
  .garden-place-history > .planet-grid { padding: 12px; }
  .race-images { height: 230px; }
  .guide-callout { padding-left: 44px; }
  .step-card { grid-template-columns: 32px minmax(0, 1fr); padding: 14px; }
  .step-card::before { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
/* Phase 2 deep field manuals and explicit companion-tool boundary */
.rail-deep-dives { padding-top: 4px; border-top: 1px solid var(--line); }
.rail-ecosystem > small { display: block; margin: 0 8px 10px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.rail-ecosystem a b { color: var(--mint); font-size: 12px; font-weight: 500; }
.field-link-copy { display: grid; gap: 5px; }
.field-link-copy > small { color: var(--gold); font-size: 8px; font-weight: 850; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.field-link-copy > span { color: var(--ink); font-size: 13px; font-weight: 750; }
.field-link.is-companion { border-color: rgba(239, 196, 111, .22); background: linear-gradient(145deg, rgba(50, 43, 28, .48), rgba(12, 30, 37, .72)); }
.section-intro { max-width: 760px; margin: -4px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.68; }
.status-pill { display: inline-flex; width: fit-content; padding: 4px 7px; border: 1px solid var(--line-bright); border-radius: 999px; color: var(--muted); background: rgba(8, 22, 28, .55); font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.status-pill[data-tone="current"] { border-color: rgba(114, 228, 193, .42); color: var(--mint); }
.status-pill[data-tone="limited"] { border-color: rgba(239, 196, 111, .36); color: var(--gold); }
.status-pill[data-tone="future"] { border-color: rgba(169, 152, 237, .36); color: #c8bcff; }
.profession-card-deep { min-height: 218px; }
.profession-card-deep h3 { margin-top: 14px; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.profession-card-deep h3 a, .guide-card h3 a { text-decoration: none; }
.profession-card-deep h3 a:hover, .guide-card h3 a:hover { color: var(--mint); }
.profession-card-deep p { font-size: 12px; }
.profession-equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profession-equipment-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 25, 31, 0.76); }
.profession-equipment-image { display: block; width: 132px; aspect-ratio: 1; align-self: start; overflow: hidden; border-right: 1px solid var(--line); background: #07191e; }
.profession-equipment-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.profession-equipment-card > div { min-width: 0; padding: 15px; }
.profession-equipment-card h3 { margin: 7px 0 6px; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.profession-equipment-card h3 a { color: var(--ink); text-decoration-color: rgba(114, 228, 193, .35); text-underline-offset: 4px; }
.profession-equipment-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.profession-equipment-card .card-actions { padding-top: 12px; }
.profession-practical-link > p { max-width: 720px; color: var(--muted); line-height: 1.65; }
.profession-card-deep::after { content: "→"; }
.mini-metrics { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.mini-metrics span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 7px; color: var(--faint); font-size: 8px; text-transform: uppercase; }
.mini-metrics b { color: var(--ink); }
.specialty-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.specialty-links a { padding: 7px 9px; border: 1px solid rgba(114, 228, 193, .25); border-radius: 9px; color: var(--mint); background: rgba(10, 31, 36, .55); font-size: 10px; font-weight: 750; text-decoration: none; }
.manual-section .step-list { margin-top: 16px; }
.field-checklist { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.field-checklist li { position: relative; padding: 12px 14px 12px 38px; border: 1px solid var(--line); border-radius: 12px; color: #bed0d1; background: rgba(11, 27, 34, .58); font-size: 13px; line-height: 1.55; }
.field-checklist li::before { position: absolute; top: 12px; left: 14px; color: var(--mint); content: "✓"; font-weight: 900; }
.mini-callout { margin-top: 15px; padding: 15px 16px; border: 1px solid var(--line-bright); border-radius: 13px; background: rgba(19, 45, 51, .56); }
.mini-callout[data-tone="careful"], .mini-callout[data-tone="warning"] { border-color: rgba(239, 148, 120, .35); background: rgba(73, 38, 30, .3); }
.mini-callout[data-tone="future"] { border-color: rgba(169, 152, 237, .35); background: rgba(47, 38, 76, .3); }
.mini-callout strong { display: block; margin-bottom: 5px; font-size: 13px; }
.mini-callout p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.62; }
.companion-panel { padding: 23px; border: 1px solid rgba(239, 196, 111, .28); border-radius: 18px; background: radial-gradient(circle at 100% 0, rgba(239, 196, 111, .1), transparent 38%), rgba(38, 33, 23, .4); }
.companion-panel > h2 { margin-top: 8px; }
.companion-panel > p { max-width: 720px; color: #c8c0a9; font-size: 13px; line-height: 1.68; }
.companion-kicker { color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.companion-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 16px; }
.companion-link-grid a { display: grid; gap: 5px; min-height: 106px; padding: 14px; border: 1px solid rgba(239, 196, 111, .22); border-radius: 13px; background: rgba(8, 21, 26, .62); text-decoration: none; }
.companion-link-grid a:hover { border-color: rgba(239, 196, 111, .52); transform: translateY(-1px); }
.companion-link-grid small { color: var(--gold); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.companion-link-grid strong { font-size: 13px; }
.companion-link-grid span { align-self: end; color: var(--muted); font-size: 10px; }
.skill-group, .recipe-index { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 25, 31, .66); }
.skill-group > summary, .recipe-index > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px; cursor: pointer; list-style: none; }
.skill-group > summary::-webkit-details-marker, .recipe-index > summary::-webkit-details-marker { display: none; }
.skill-group > summary span, .recipe-index > summary span { display: grid; gap: 4px; }
.skill-group > summary strong, .recipe-index > summary strong { font-size: 14px; }
.skill-group > summary small, .recipe-index > summary small { color: var(--faint); font-size: 10px; }
.skill-group > summary b, .recipe-index > summary b { display: grid; min-width: 32px; min-height: 32px; place-items: center; border: 1px solid var(--line-bright); border-radius: 9px; color: var(--mint); font-size: 11px; }
.skill-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 0 13px 13px; }
.skill-card { display: grid; align-content: start; gap: 7px; min-height: 142px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(14, 34, 40, .7); text-decoration: none; }
.skill-card:hover { border-color: rgba(114, 228, 193, .4); }
.skill-card strong { margin-top: 3px; font-size: 13px; }
.skill-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.skill-card > small { align-self: end; color: var(--faint); font-size: 8px; text-transform: uppercase; }
.connection-grid, .recipe-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.connection-card, .recipe-index-grid a { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 28, 34, .66); text-decoration: none; }
.connection-card:hover, .recipe-index-grid a:hover { border-color: rgba(114, 228, 193, .38); }
.connection-card small, .recipe-index-grid span { color: var(--faint); font-size: 9px; text-transform: uppercase; }
.connection-card strong, .recipe-index-grid strong { font-size: 12px; }
.connection-card span { color: var(--mint); font-size: 9px; }
.recipe-index-grid { padding: 0 13px 13px; }
.tool-family { margin-top: 29px; }
.tool-family > h3 { margin: 0 0 12px; color: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.station-feature, .equipment-feature { display: grid; grid-template-columns: minmax(180px, 38%) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(11, 27, 34, .72); }
.station-feature img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; background: #08191f; }
.equipment-feature img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #08191f; }
.station-feature > div, .equipment-feature > div { align-self: center; padding: 24px; }
.station-feature h2, .equipment-feature h2 { margin: 13px 0 9px; font-family: Georgia, serif; font-size: 28px; font-weight: 500; }
.station-feature p, .equipment-feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.ingredient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.ingredient-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 28, 34, .65); }
.ingredient-card > span { display: grid; min-height: 36px; place-items: center; border: 1px solid rgba(114, 228, 193, .28); border-radius: 9px; color: var(--mint); font-size: 11px; font-weight: 800; }
.ingredient-card div { display: grid; gap: 3px; }
.ingredient-card strong { font-size: 12px; }
.ingredient-card small { color: var(--faint); font-size: 8px; text-transform: uppercase; }
.ingredient-card > a { color: var(--mint); text-decoration: none; }
.axis-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.axis-card { min-height: 132px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(11, 28, 34, .67); }
.axis-card > b { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(114, 228, 193, .32); border-radius: 9px; color: var(--mint); font-family: Georgia, serif; }
.axis-card > div { display: grid; gap: 5px; margin-top: 12px; }
.axis-card span { color: #cadbda; font-size: 10px; line-height: 1.4; }
.axis-card small { color: var(--faint); font-size: 9px; }
.companion-action { border-color: rgba(239, 196, 111, .35) !important; color: var(--gold) !important; }
.context-actions a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
.context-actions a small { grid-column: 1 / -1; color: var(--faint); font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.context-actions a span { font-size: 10px; }
.context-actions a b { color: var(--mint); font-size: 12px; font-weight: 500; }
.context-actions a.is-companion { border-color: rgba(239, 196, 111, .2); }
.context-actions a.is-companion small, .context-actions a.is-companion b { color: var(--gold); }
.companion-result { border-color: rgba(239, 196, 111, .18); }

@media (max-width: 760px) {
  .skill-card-grid, .connection-grid, .recipe-index-grid, .ingredient-grid { grid-template-columns: 1fr; }
  .profession-equipment-grid { grid-template-columns: 1fr; }
  .station-feature, .equipment-feature { grid-template-columns: 1fr; }
  .station-feature img, .equipment-feature img { max-height: 320px; min-height: 220px; }
  .axis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profession-equipment-card { grid-template-columns: 96px minmax(0, 1fr); }
  .profession-equipment-image { width: 96px; }
}

/* Haven + Crucible beginner walkthrough */
.guide-hero.guide-hero-photo {
  isolation: isolate;
  display: flex;
  min-height: clamp(420px, 54vw, 560px);
  flex-direction: column;
  justify-content: flex-end;
  background: #0a1d24;
}

.guide-hero-photo > .guide-hero-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-hero.guide-hero-photo::before {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(4, 14, 19, 0.08) 6%, rgba(4, 14, 19, 0.42) 47%, rgba(4, 14, 19, 0.96) 100%),
    linear-gradient(90deg, rgba(4, 14, 19, 0.7), transparent 78%);
  box-shadow: none;
}

.guide-hero.guide-hero-photo::after {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(114, 228, 193, 0.13), transparent 42%);
  filter: none;
}

.guide-hero-photo > :not(.guide-hero-image) { z-index: 2; }
.guide-hero-photo .hero-eyebrow { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.86); }
.guide-hero-photo h1 { max-width: 800px; text-shadow: 0 3px 26px rgba(0, 0, 0, 0.9); }
.guide-hero-photo .hero-dek { color: #e0eeed; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9); }

.tutorial-kicker {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.tutorial-route-overview {
  margin-top: 36px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(114, 228, 193, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(98, 207, 228, 0.09), transparent 38%),
    rgba(10, 27, 34, 0.78);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.tutorial-route-copy { max-width: 720px; }
.tutorial-route-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.tutorial-route-copy > p:last-child {
  margin: 13px 0 0;
  color: #bdced0;
  font-size: 14px;
  line-height: 1.68;
}

.tutorial-route-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.tutorial-route-map li { position: relative; min-width: 0; }
.tutorial-route-map a {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 128px;
  align-content: start;
  gap: 3px 11px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  background: rgba(8, 23, 29, 0.68);
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.tutorial-route-map a > span {
  grid-row: 1 / 4;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(114, 228, 193, 0.42);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(114, 228, 193, 0.07);
  font-size: 10px;
  font-weight: 850;
}
.tutorial-route-map small {
  overflow: hidden;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.tutorial-route-map strong { font-size: 13px; line-height: 1.35; }
.tutorial-route-map p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.tutorial-progress {
  position: sticky;
  z-index: 8;
  top: 10px;
  margin: 18px 0 0;
  padding: 12px 14px 14px;
  border: 1px solid rgba(114, 228, 193, 0.27);
  border-radius: 14px;
  background: rgba(8, 23, 29, 0.93);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}
.tutorial-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tutorial-progress strong { font-size: 12px; }
.tutorial-progress button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(16, 40, 47, 0.72);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.tutorial-progress > span {
  display: block;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(159, 180, 184, 0.14);
}
.tutorial-progress > span > i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  box-shadow: 0 0 12px rgba(114, 228, 193, 0.45);
  transition: width 220ms ease;
}

.tutorial-quick-help {
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid rgba(239, 196, 111, 0.22);
  border-radius: 18px;
  background: rgba(43, 35, 22, 0.34);
}
.tutorial-quick-help > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tutorial-quick-help article {
  padding: 15px;
  border: 1px solid rgba(239, 196, 111, 0.16);
  border-radius: 12px;
  background: rgba(8, 22, 27, 0.54);
}
.tutorial-quick-help h3 { margin: 0 0 6px; color: #f1d99f; font-size: 13px; }
.tutorial-quick-help article p { margin: 0; color: #bfc9c6; font-size: 12px; line-height: 1.6; }

.tutorial-phase,
.tutorial-extras {
  padding: clamp(21px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(13, 33, 40, 0.82), rgba(8, 23, 29, 0.58));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.13);
}
.tutorial-phase { scroll-margin-top: 86px; border-top-color: rgba(114, 228, 193, 0.4); }
.tutorial-extras { border-top-color: rgba(239, 196, 111, 0.38); }
.tutorial-phase-intro {
  max-width: 760px;
  margin: -4px 0 24px !important;
  color: #bdced0 !important;
  font-size: 14px !important;
  line-height: 1.68 !important;
}
.tutorial-step-list { display: grid; gap: 16px; }

.tutorial-step {
  scroll-margin-top: 86px;
  overflow: hidden;
  padding: clamp(17px, 3vw, 23px);
  border: 1px solid rgba(151, 197, 197, 0.17);
  border-radius: 16px;
  background: rgba(7, 21, 27, 0.7);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.tutorial-step.is-complete {
  border-color: rgba(114, 228, 193, 0.35);
  background: rgba(12, 36, 38, 0.72);
  box-shadow: inset 3px 0 0 rgba(114, 228, 193, 0.55);
}
.tutorial-step-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
}
.tutorial-step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(98, 207, 228, 0.34);
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(98, 207, 228, 0.06);
  font-size: 11px;
  font-weight: 850;
}
.tutorial-step-head small {
  display: block;
  margin: 1px 0 4px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-transform: uppercase;
}
.tutorial-step-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.tutorial-done {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(14, 35, 42, 0.72);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}
.tutorial-done input {
  appearance: none;
  display: grid;
  width: 18px;
  height: 18px;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(159, 180, 184, 0.46);
  border-radius: 5px;
  background: rgba(4, 14, 18, 0.64);
  cursor: pointer;
}
.tutorial-done input::after {
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #061511;
  border-left: 2px solid #061511;
  content: "";
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
}
.tutorial-done input:checked { border-color: var(--mint); background: var(--mint); }
.tutorial-done input:checked::after { opacity: 1; }
.tutorial-done input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.tutorial-step.is-complete .tutorial-done { border-color: rgba(114, 228, 193, 0.34); color: var(--mint); }

.tutorial-step-copy { max-width: 760px; margin: 17px 0 0 55px; }
.tutorial-step-copy p { margin: 0 0 11px; color: #c4d3d4; font-size: 14px; line-height: 1.72; }
.tutorial-step-copy p:last-child { margin-bottom: 0; }
.tutorial-controls { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 0 55px; }
.tutorial-controls span {
  padding: 6px 9px;
  border: 1px solid rgba(98, 207, 228, 0.28);
  border-radius: 8px;
  color: #c9edf2;
  background: rgba(98, 207, 228, 0.07);
  font-size: 10px;
  font-weight: 750;
}

.tutorial-stuck,
.tutorial-build-note {
  margin: 17px 0 0 55px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 196, 111, 0.28);
  border-radius: 12px;
  background: rgba(64, 49, 24, 0.3);
}
.tutorial-build-note { border-color: rgba(169, 152, 237, 0.29); background: rgba(48, 40, 76, 0.28); }
.tutorial-stuck strong,
.tutorial-build-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.tutorial-build-note strong { color: #c8bcff; }
.tutorial-stuck p,
.tutorial-build-note p { margin: 0; color: #c3cecb; font-size: 12px; line-height: 1.62; }

.tutorial-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 20px;
}
.tutorial-gallery.is-single { grid-template-columns: minmax(0, 1fr); }
.tutorial-figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 14, 18, 0.72);
}
.tutorial-figure button {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: #030a0d;
  cursor: zoom-in;
}
.tutorial-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 160ms ease, transform 180ms ease;
}
.tutorial-figure button > span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(237, 246, 244, 0.2);
  border-radius: 7px;
  color: #f3fbfa;
  background: rgba(3, 12, 16, 0.8);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.4);
  font-size: 9px;
  font-weight: 800;
  opacity: 0.86;
}
.tutorial-figure figcaption { padding: 10px 12px 11px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.tutorial-extra-list { display: grid; gap: 16px; }
.tutorial-extra {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(7, 21, 27, 0.62);
}
.tutorial-extra-copy:only-child { grid-column: 1 / -1; max-width: 740px; }
.tutorial-extra h3 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.tutorial-extra-copy > p { margin: 0 0 10px; color: #c0d0d1; font-size: 13px; line-height: 1.68; }
.tutorial-extra .tutorial-stuck,
.tutorial-extra .tutorial-build-note { margin-left: 0; }
.tutorial-extra .tutorial-gallery { grid-template-columns: 1fr; margin-top: 0; }
.tutorial-related {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(114, 228, 193, 0.26);
  border-radius: 9px;
  color: var(--mint);
  background: rgba(114, 228, 193, 0.055);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.tutorial-lightbox {
  width: min(96vw, 1660px);
  max-width: none;
  height: min(94vh, 1040px);
  max-height: none;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(151, 220, 209, 0.4);
  border-radius: 17px;
  color: var(--ink);
  background: #03090c;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.72);
}
.tutorial-lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.tutorial-lightbox::backdrop { background: rgba(1, 6, 9, 0.88); backdrop-filter: blur(9px); }
.tutorial-lightbox > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #020608; }
.tutorial-lightbox > p {
  margin: 0;
  padding: 13px 58px 14px 18px;
  border-top: 1px solid var(--line);
  color: #c7d7d8;
  background: #09181e;
  font-size: 12px;
  line-height: 1.5;
}
.tutorial-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(237, 246, 244, 0.26);
  border-radius: 11px;
  color: #fff;
  background: rgba(3, 12, 16, 0.86);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.42);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

@media (hover: hover) {
  .tutorial-route-map a:hover { border-color: rgba(114, 228, 193, 0.42); background: rgba(16, 43, 49, 0.84); transform: translateY(-2px); }
  .tutorial-progress button:hover { border-color: rgba(239, 148, 120, 0.42); color: var(--coral); }
  .tutorial-done:hover { border-color: rgba(114, 228, 193, 0.42); color: var(--ink); }
  .tutorial-figure button:hover img { filter: brightness(1.08); transform: scale(1.008); }
  .tutorial-figure button:hover > span { opacity: 1; }
  .tutorial-related:hover { border-color: rgba(114, 228, 193, 0.48); background: rgba(114, 228, 193, 0.1); }
  .tutorial-lightbox-close:hover { border-color: var(--mint); color: var(--mint); }
}

@media (max-width: 900px) {
  .tutorial-route-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tutorial-extra { grid-template-columns: 1fr; }
  .tutorial-extra-copy:only-child { grid-column: auto; }
  .tutorial-extra .tutorial-gallery { margin-top: 0; }
}

@media (max-width: 680px) {
  .guide-hero.guide-hero-photo { min-height: 390px; padding-top: 120px; }
  .tutorial-route-overview { margin-top: 28px; padding: 20px 17px; border-radius: 16px; }
  .tutorial-route-map { grid-template-columns: 1fr; gap: 8px; }
  .tutorial-route-map a { min-height: 0; grid-template-columns: 32px minmax(0, 1fr); padding: 12px; }
  .tutorial-route-map a > span { width: 32px; height: 32px; }
  .tutorial-route-map p { margin: 5px 0 0 43px; }
  .tutorial-progress { top: 7px; margin-top: 12px; padding: 10px 11px 12px; border-radius: 12px; }
  .tutorial-progress > div { gap: 9px; }
  .tutorial-progress strong { font-size: 10px; }
  .tutorial-progress button { flex: none; }
  .tutorial-quick-help,
  .tutorial-phase,
  .tutorial-extras { padding: 18px 15px; border-radius: 16px; }
  .tutorial-quick-help > div { grid-template-columns: 1fr; }
  .tutorial-step-list { gap: 12px; }
  .tutorial-step { padding: 15px 13px; border-radius: 14px; }
  .tutorial-step-head { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .tutorial-step-number { width: 38px; height: 38px; border-radius: 11px; }
  .tutorial-done { grid-column: 1 / -1; justify-self: start; margin-left: 48px; padding: 6px 8px; }
  .tutorial-step-copy,
  .tutorial-controls,
  .tutorial-stuck,
  .tutorial-build-note { margin-left: 0; }
  .tutorial-step-copy { margin-top: 15px; }
  .tutorial-gallery { grid-template-columns: 1fr; gap: 10px; }
  .tutorial-figure figcaption { font-size: 10px; }
  .tutorial-extra { gap: 15px; padding: 15px 13px; }
  .tutorial-lightbox { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .tutorial-lightbox > p { padding: 11px 54px 12px 13px; }
  .tutorial-lightbox-close { top: 9px; right: 9px; width: 38px; height: 38px; }
}

@media (max-width: 420px) {
  .guide-hero.guide-hero-photo { min-height: 360px; }
  .tutorial-route-copy h2 { font-size: 25px; }
  .tutorial-step-head h3 { font-size: 21px; }
  .tutorial-done { margin-left: 0; }
  .tutorial-controls span { width: 100%; }
}

/* After Haven starter route */
.after-haven-handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  border-color: rgba(114, 228, 193, 0.3);
  background: linear-gradient(135deg, rgba(15, 49, 51, 0.92), rgba(8, 24, 31, 0.9));
}
.after-haven-handoff .tutorial-kicker,
.after-haven-handoff h2,
.after-haven-handoff > p { grid-column: 1; }
.after-haven-handoff h2 { margin: 2px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.after-haven-handoff > p:last-of-type { margin: 0; color: #c3d3d3; font-size: 13px; line-height: 1.65; }
.after-haven-handoff > a {
  grid-column: 2;
  grid-row: 1 / 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(114, 228, 193, 0.34);
  border-radius: 11px;
  color: var(--mint);
  background: rgba(114, 228, 193, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.after-haven-crafting-intro {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid rgba(239, 196, 111, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(239, 196, 111, 0.1), transparent 18rem),
    rgba(11, 29, 35, 0.76);
  scroll-margin-top: 96px;
}
.after-haven-crafting-intro h2 {
  margin: 5px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
}
.after-haven-crafting-intro > p:not(.tutorial-kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.after-haven-crafting-intro nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 17px;
}
.after-haven-crafting-intro nav a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(239, 196, 111, 0.22);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(53, 42, 22, 0.22);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.after-haven-shopping > h2 { margin: 4px 0 8px; }
.after-haven-shopping > p:not(.tutorial-kicker) { max-width: 760px; margin: 5px 0 0; color: var(--muted); line-height: 1.65; }
.after-haven-shopping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.after-haven-shopping-grid article { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7, 22, 28, 0.68); }
.after-haven-shopping-grid h3 { margin: 0 0 10px; color: var(--gold); font-size: 12px; }
.after-haven-shopping-grid article > div { display: flex; flex-wrap: wrap; gap: 7px; }
.after-haven-shopping-grid a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(114, 228, 193, 0.2);
  border-radius: 9px;
  color: var(--mint);
  background: rgba(114, 228, 193, 0.05);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.starter-kit-section > h2,
.starter-gather-section > h2 { margin: 4px 0 16px; }
.starter-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 17px;
}
.starter-choice-card {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(7, 22, 28, 0.68);
}
.starter-choice-card[data-tone="ready"] { border-top-color: rgba(114, 228, 193, 0.55); }
.starter-choice-card[data-tone="later"] { border-top-color: rgba(239, 196, 111, 0.52); }
.starter-choice-card[data-tone="craft"] { border-top-color: rgba(169, 152, 237, 0.52); }
.starter-choice-label {
  color: var(--mint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.starter-choice-card h3 { margin: 8px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.starter-choice-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.62; }
.starter-tool-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.starter-tool-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(151, 206, 201, 0.2);
  border-radius: 9px;
  color: #d7e5e4;
  background: rgba(151, 206, 201, 0.05);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}
.starter-choice-card aside { margin-top: 14px; padding: 12px; border-left: 2px solid var(--gold); background: rgba(239, 196, 111, 0.055); }
.starter-choice-card aside strong { color: var(--gold); font-size: 10px; text-transform: uppercase; }
.starter-choice-card aside p { margin: 5px 0 0; color: #c7d2cf; font-size: 12px; line-height: 1.55; }
.starter-price { display: block; margin-top: 13px; color: #9db1b0; font-size: 11px; }
.starter-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
  align-items: start;
}
.starter-resource-group { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(7, 21, 27, 0.64); }
.starter-resource-group > header > h3 { margin: 0; color: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.starter-resource-group > header > p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.starter-source-list { display: grid; gap: 9px; margin-top: 14px; }
.starter-source-card { padding: 12px; border: 1px solid rgba(151, 206, 201, 0.14); border-radius: 11px; background: rgba(3, 14, 18, 0.5); }
.starter-source-card h4 { margin: 0 0 8px; font-size: 13px; }
.starter-source-card h4 .starter-material-name > a:first-child { color: var(--ink); text-decoration-color: rgba(114, 228, 193, 0.35); text-underline-offset: 3px; }
.starter-source-card ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.starter-source-card li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; }
.starter-source-card li strong { min-width: 0; font-size: 12px; }
.starter-source-card li strong .starter-material-name > a:first-child { color: var(--mint); }
.starter-source-card li small { grid-column: 1; color: #91a7a6; font-size: 11px; }
.starter-output-options { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px; font-size: 11px; }
.starter-output-options .starter-material-name > a:first-child { color: #bddbd8; }
.starter-material-name {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}
.starter-pqrv-link {
  display: inline-grid !important;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border: 1px solid rgba(114, 228, 193, 0.25);
  border-radius: 50%;
  background: rgba(114, 228, 193, 0.07);
  text-decoration: none !important;
}
.starter-pqrv-link img { display: block; width: 13px; height: 13px; object-fit: contain; }
.starter-option-divider { align-self: center; color: #708786; }
.starter-build-section { padding: 0; overflow: hidden; }
.starter-build-section > details > summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 19px 21px;
  cursor: pointer;
  list-style: none;
}
.starter-build-section > details > summary::-webkit-details-marker { display: none; }
.starter-build-section > details > summary > span:first-child { display: grid; min-width: 0; gap: 3px; }
.starter-build-section > details > summary small { color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.starter-build-section > details > summary h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.starter-build-section > details > summary em { overflow: hidden; color: var(--muted); font-size: 12px; font-style: normal; line-height: 1.5; text-overflow: ellipsis; }
.starter-build-count { display: grid; grid-template-columns: auto auto; gap: 2px 5px; align-items: center; color: var(--mint); }
.starter-build-count b { display: grid; width: 34px; height: 34px; grid-row: 1 / 3; place-items: center; border: 1px solid rgba(114, 228, 193, 0.28); border-radius: 50%; font-size: 11px; }
.starter-build-count small { align-self: end; color: var(--muted) !important; font-size: 9px !important; letter-spacing: 0 !important; text-transform: none !important; }
.starter-build-count i { width: 7px; height: 7px; align-self: start; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform 160ms ease; }
.starter-build-section details[open] .starter-build-count i { transform: rotate(225deg); }
.starter-build-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.starter-build-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(6, 20, 26, 0.74); }
.starter-build-card > header { min-width: 0; padding: 15px; }
.starter-build-card > header:has(.starter-build-image) { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
.starter-build-image { display: block; width: 84px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #07171d; cursor: pointer; }
.starter-build-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.starter-build-card header span { color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.starter-build-card h3 { margin: 5px 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.starter-build-card h3 a { color: var(--ink); text-decoration-color: rgba(114, 228, 193, 0.32); text-underline-offset: 4px; }
.starter-build-card header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.starter-amount-label { margin: -2px 15px 9px; color: #a8bfbd; font-size: 10px; line-height: 1.45; }
.starter-material-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0 15px 15px; list-style: none; }
.starter-material-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; min-width: 0; padding: 8px; border-radius: 9px; background: rgba(151, 206, 201, 0.05); }
.starter-material-list li > b { color: var(--mint); font-size: 12px; }
.starter-material-list li > div { display: grid; min-width: 0; gap: 2px; }
.starter-material-list strong { min-width: 0; font-size: 12px; }
.starter-material-list .starter-material-name > a:first-child { color: #d4e5e3; }
.starter-material-list span { display: flex; flex-wrap: wrap; gap: 3px; font-size: 11px; }
.starter-material-list .starter-material-name { display: inline-flex; flex-wrap: nowrap; gap: 4px; }
.starter-material-list small { color: #8fa4a3; font-size: 11px; line-height: 1.4; }
.starter-build-card footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 11px 15px; border-top: 1px solid var(--line); }
.starter-build-card footer > a { display: grid; min-height: 44px; align-content: center; gap: 2px; padding: 8px 10px; border: 1px solid rgba(114, 228, 193, 0.2); border-radius: 8px; color: var(--mint); font-size: 11px; font-weight: 800; text-decoration: none; }
.starter-build-card footer > a.is-companion { color: #c9c1ef; border-color: rgba(169, 152, 237, 0.25); }
.starter-build-card footer small { font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }

@media (hover: hover) {
  .after-haven-crafting-intro nav a:hover,
  .after-haven-shopping-grid a:hover,
  .after-haven-handoff > a:hover,
  .starter-tool-pill:hover,
  .starter-build-card footer > a:hover,
  .starter-pqrv-link:hover { border-color: rgba(114, 228, 193, 0.52); background: rgba(114, 228, 193, 0.11); }
}

@media (max-width: 900px) {
  .starter-choice-grid,
  .starter-resource-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .after-haven-crafting-intro { padding: 20px 16px; }
  .after-haven-crafting-intro nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .after-haven-shopping-grid { grid-template-columns: 1fr; }
  .after-haven-handoff { grid-template-columns: 1fr; padding: 18px 15px; }
  .after-haven-handoff .tutorial-kicker,
  .after-haven-handoff h2,
  .after-haven-handoff > p,
  .after-haven-handoff > a { grid-column: 1; grid-row: auto; }
  .after-haven-handoff > a { justify-content: space-between; margin-top: 7px; }
  .starter-kit-section,
  .starter-gather-section { padding: 18px 15px; }
  .starter-build-grid { grid-template-columns: 1fr; padding: 0 12px 12px; }
  .starter-build-section > details > summary { padding: 16px 14px; }
  .wiki-article:has(.after-haven-crafting-intro) > .article-summary { display: none; }
  .wiki-article:has(.after-haven-crafting-intro) .guide-hero { padding: 23px 18px; }
  .wiki-article:has(.after-haven-crafting-intro) .guide-hero h1 { font-size: clamp(34px, 10.5vw, 44px); }
  .starter-build-section > details > summary h2 { font-size: 22px; }
  .starter-material-list { grid-template-columns: 1fr; }
  .starter-build-card > header:has(.starter-build-image) { grid-template-columns: 70px minmax(0, 1fr); }
  .starter-build-image { width: 70px; }
}

@media (max-width: 440px) {
  .after-haven-crafting-intro nav { grid-template-columns: 1fr; }
}
