:root {
  color-scheme: dark;
  --bg: #060a12;
  --bg-soft: #0a111d;
  --panel: rgba(13, 22, 36, 0.9);
  --panel-solid: #0d1725;
  --panel-raised: #111e2f;
  --line: rgba(145, 183, 214, 0.15);
  --line-bright: rgba(103, 232, 249, 0.34);
  --text: #f1f7fb;
  --muted: #94a7ba;
  --faint: #64778a;
  --cyan: #67e8f9;
  --cyan-strong: #22d3ee;
  --violet: #9b8cff;
  --ember: #f6a653;
  --green: #70e7bb;
  --red: #ff8d98;
  --max: 1380px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 4%, rgba(30, 91, 126, 0.2), transparent 30rem),
    radial-gradient(circle at 92% 22%, rgba(95, 71, 165, 0.11), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(127, 177, 211, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 177, 211, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  border-radius: 5px;
  color: #031116;
  background: var(--cyan);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.guide-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 18, 0.84);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  letter-spacing: 0.17em;
  font-size: 13px;
  font-weight: 780;
}
.brand b { color: var(--cyan); font-weight: inherit; }
.brand-mark {
  position: relative;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 2px solid var(--cyan);
  transform: rotate(30deg);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.brand-mark::before {
  position: absolute;
  inset: 4px;
  content: "";
  border: 1px solid rgba(103, 232, 249, 0.5);
  clip-path: inherit;
}
.brand-mark i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan);
}
.guide-header nav { display: flex; align-items: center; gap: 10px; }
.guide-header nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #b6c5d3;
  letter-spacing: 0.06em;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  transition: 160ms ease;
}
.guide-header nav a:hover,
.guide-header nav a:last-child {
  border-color: var(--line-bright);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
}

.guide-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 64px;
  align-items: end;
  min-height: 510px;
  padding: 88px max(24px, calc((100vw - var(--max)) / 2)) 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.guide-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.98) 0%, rgba(6, 10, 18, 0.72) 58%, rgba(6, 10, 18, 0.9) 100%),
    url("/landing-assets/rivet-nova-workshop.webp") center 43% / cover;
  opacity: 0.8;
}
.guide-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, var(--bg));
}
.guide-hero-grid {
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -150px;
  width: 610px;
  height: 610px;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(103, 232, 249, 0.025),
    0 0 0 140px rgba(103, 232, 249, 0.02);
}
.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  letter-spacing: 0.23em;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.guide-hero h1 {
  max-width: 780px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.055em;
  font-size: clamp(52px, 8vw, 100px);
  line-height: 0.83;
}
.guide-hero h1 em { color: var(--cyan); font-style: normal; }
.guide-hero > div > p {
  max-width: 690px;
  margin: 28px 0;
  color: #b1c0ce;
  font-size: 17px;
}
.guide-search {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  max-width: 690px;
  height: 56px;
  padding: 0 15px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 8px;
  background: rgba(5, 10, 17, 0.86);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.guide-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.08), 0 12px 32px rgba(0, 0, 0, 0.3);
}
.guide-search svg { width: 20px; fill: none; stroke: var(--cyan); stroke-width: 1.7; }
.guide-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}
.guide-search input::placeholder { color: #758799; }
.guide-search kbd {
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-bottom-color: rgba(255,255,255,.22);
  border-radius: 4px;
  color: #76899b;
  background: #0e1824;
  font-size: 11px;
}
.guide-status {
  min-height: 22px;
  margin-top: 10px;
  color: #7e93a6;
  letter-spacing: .05em;
  font-size: 10px;
  text-transform: uppercase;
}
.guide-status.is-error { color: var(--red); }

.guide-counts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 14px;
  background: rgba(7, 13, 22, 0.78);
  box-shadow: 0 25px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(12px);
}
.guide-counts span {
  min-height: 116px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guide-counts span:nth-child(2n) { border-right: 0; }
.guide-counts span:nth-last-child(-n+2) { border-bottom: 0; }
.guide-counts strong { display: block; color: var(--cyan); font-size: 34px; line-height: 1; }
.guide-counts small {
  display: block;
  margin-top: 10px;
  color: #8497a9;
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 54px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 64px 0 110px;
}
.guide-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding-right: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 232, 249, .28) transparent;
}
.guide-sidebar > span {
  display: block;
  margin-bottom: 12px;
  color: #63778a;
  letter-spacing: .2em;
  font-size: 9px;
  font-weight: 900;
}
.guide-sidebar nav { display: grid; }
.guide-sidebar nav a {
  position: relative;
  padding: 8px 9px 8px 15px;
  border-left: 1px solid rgba(144, 178, 205, .15);
  color: #8396a8;
  font-size: 11px;
  font-weight: 650;
  transition: 150ms ease;
}
.guide-sidebar nav a::before {
  position: absolute;
  top: 50%;
  left: -2px;
  width: 3px;
  height: 0;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(103,232,249,.7);
  transform: translateY(-50%);
  transition: 150ms ease;
}
.guide-sidebar nav a:hover,
.guide-sidebar nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(103,232,249,.08), transparent); }
.guide-sidebar nav a.active::before { height: 70%; }
.guide-version {
  margin-top: 20px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #617589;
  letter-spacing: .11em;
  font-size: 8px;
  font-weight: 850;
}
.guide-version b { display: block; margin-top: 3px; color: var(--green); font-size: 10px; }

.guide-content { min-width: 0; }
.guide-section {
  position: relative;
  padding: 58px 0 74px;
  border-bottom: 1px solid var(--line);
}
.guide-section:first-child { padding-top: 0; }
.guide-section:last-of-type { border-bottom: 0; }
.guide-section > header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.guide-section > header > span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(34,211,238,.05);
  font-size: 10px;
  font-weight: 900;
}
.guide-section > header small {
  display: block;
  margin: 1px 0 4px;
  color: #718699;
  letter-spacing: .19em;
  font-size: 8px;
  font-weight: 900;
}
.guide-section h2 {
  margin: 0;
  letter-spacing: -.025em;
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.05;
}
.guide-section h3 { margin: 0 0 8px; color: #e9f1f7; font-size: 15px; }
.guide-section p { color: #a0b1c1; }
.guide-section > p { max-width: 920px; }
.lead { margin: -10px 0 28px; color: #bdcad6 !important; font-size: 17px; }
code {
  padding: 2px 5px;
  border: 1px solid rgba(103,232,249,.12);
  border-radius: 4px;
  color: #bceff6;
  background: rgba(34,211,238,.06);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .86em;
}

.step-grid,
.stat-definition-grid,
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.step-grid article,
.stat-definition-grid article,
.catalog-card,
.base-card,
.guild-upgrade-card {
  position: relative;
  min-width: 0;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(17,30,47,.88), rgba(9,16,27,.88));
}
.step-grid article { min-height: 170px; }
.step-grid article > b {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 26px;
  place-items: center;
  border: 1px solid rgba(103,232,249,.25);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 9px;
}
.step-grid p,
.stat-definition-grid p { margin: 0; font-size: 12px; }

.prose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.prose-grid > div { padding-left: 18px; border-left: 2px solid rgba(103,232,249,.2); }
.prose-grid p { margin: 0 0 13px; }

.callout {
  position: relative;
  margin: 24px 0;
  padding: 19px 22px 18px 54px;
  border: 1px solid rgba(103,232,249,.23);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(34,211,238,.1), rgba(34,211,238,.025));
}
.callout::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  content: "i";
  font-size: 10px;
  font-weight: 900;
}
.callout strong { color: #e6fbff; font-size: 13px; }
.callout p { margin: 5px 0 0; font-size: 12px; }
.callout.subtle { border-color: var(--line); background: rgba(13,24,38,.64); }
.callout.warning { border-color: rgba(246,166,83,.28); background: rgba(246,166,83,.06); }
.callout.warning::before { border-color: var(--ember); color: var(--ember); content: "!"; }

.formula {
  margin: 25px 0;
  padding: 20px 22px;
  border: 1px solid rgba(139,122,255,.24);
  border-left: 3px solid var(--violet);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(139,122,255,.09), rgba(9,16,27,.55));
}
.formula small {
  display: block;
  margin-bottom: 7px;
  color: #aea3ff;
  letter-spacing: .14em;
  font-size: 8px;
  font-weight: 900;
}
.formula code { display: inline-block; padding: 5px 8px; color: #e1dcff; border-color: rgba(139,122,255,.2); background: rgba(139,122,255,.08); }
.formula p { margin: 9px 0 0; font-size: 12px; }

.rule-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10,18,29,.74);
}
.rule-strip span { padding: 17px; border-right: 1px solid var(--line); }
.rule-strip span:last-child { border: 0; }
.rule-strip b { display: block; color: var(--cyan); font-size: 18px; }
.rule-strip small { display: block; color: #728598; font-size: 9px; line-height: 1.35; }

.data-table-wrap {
  width: 100%;
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8,14,23,.75);
  scrollbar-width: thin;
}
table { width: 100%; border-collapse: collapse; text-align: left; }
th {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(103,232,249,.2);
  color: #7890a3;
  background: rgba(17,29,46,.75);
  letter-spacing: .07em;
  font-size: 8px;
  text-transform: uppercase;
}
td { padding: 11px 14px; border-bottom: 1px solid rgba(145,183,214,.09); color: #aebdca; font-size: 11px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(103,232,249,.035); }
td strong { color: #edf5fa; }
.compact-table { max-height: 620px; overflow: auto; }
.compact-table thead { position: sticky; z-index: 2; top: 0; }

.filter-bar {
  display: flex;
  gap: 7px;
  margin: 20px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}
.filter-bar button {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #879aac;
  background: rgba(12,21,34,.8);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: 140ms ease;
}
.filter-bar button:hover,
.filter-bar button.active { border-color: rgba(103,232,249,.42); color: var(--cyan); background: rgba(34,211,238,.08); }

.catalog-card { display: flex; min-height: 172px; flex-direction: column; }
.catalog-card::after,
.base-card::after,
.guild-upgrade-card::after {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(103,232,249,.08);
  border-radius: 50%;
  content: "";
}
.catalog-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 13px; }
.catalog-card img,
.material-card img,
.rune-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 9px 12px rgba(0,0,0,.36));
}
.catalog-card .catalog-title { min-width: 0; }
.catalog-card .catalog-title small {
  display: block;
  color: var(--cyan);
  letter-spacing: .11em;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}
.catalog-card h3 { margin: 2px 0; overflow-wrap: anywhere; line-height: 1.2; font-size: 13px; }
.catalog-card p { margin: 0 0 10px; font-size: 11px; line-height: 1.5; }
.stat-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.stat-pills span,
.tag {
  padding: 4px 7px;
  border: 1px solid rgba(145,183,214,.14);
  border-radius: 4px;
  color: #aabac8;
  background: rgba(5,10,17,.5);
  font-size: 8px;
  font-weight: 750;
}
.stat-pills b { color: #e8f5fa; }
.starter-tag { border-color: rgba(112,231,187,.28) !important; color: var(--green) !important; }
.catalog-loading {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: #718598;
  text-align: center;
  font-size: 11px;
}
.is-filtered-out,
.search-hidden { display: none !important; }

.material-catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.material-card { min-height: 190px; text-align: center; }
.material-card img { width: 76px; height: 76px; margin: 0 auto 10px; }
.material-card p { margin: 7px 0 0; font-size: 10px; }
.rune-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rune-card { min-height: 150px; }
.rune-card img { width: 64px; height: 64px; }
.rune-card .rune-bonus { color: var(--violet); font-size: 9px; font-weight: 900; text-transform: uppercase; }

.fluid-catalog { display: grid; gap: 14px; margin-top: 25px; }
.fluid-family {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(9,16,26,.72);
}
.fluid-family > header { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.fluid-family > header img { width: 64px; height: 64px; object-fit: contain; }
.fluid-family > header h3 { margin: 0; font-size: 17px; }
.fluid-family > header p { margin: 3px 0 0; font-size: 11px; }
.fluid-family > header > span { color: var(--cyan); letter-spacing: .11em; font-size: 8px; font-weight: 900; }
.fluid-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fluid-level {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(17,29,45,.38), transparent);
}
.fluid-level:nth-child(5n) { border-right: 0; }
.fluid-level:nth-last-child(-n+5) { border-bottom: 0; }
.fluid-level strong { display: block; color: #edf7fb; font-size: 11px; }
.fluid-level > span { display: block; color: var(--green); font-size: 9px; font-weight: 800; }
.fluid-level > small { display:block;margin-top:3px;color:#71869a;font-size:7px;font-weight:750;text-transform:uppercase; }
.recipe { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.recipe span { display: flex; gap: 4px; align-items: center; color: #8094a6; font-size: 8px; }
.recipe img { width: 17px; height: 17px; object-fit: contain; }

.monster-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(12,21,34,.72);
}
.monster-toolbar label { color: #8093a4; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.monster-toolbar input { width: 70px; margin-left: 8px; padding: 5px 7px; border: 1px solid var(--line-bright); border-radius: 4px; outline: 0; color: var(--text); background: #08101a; }
.monster-toolbar span { color: #65798c; font-size: 10px; }
.monster-list { display: grid; gap: 8px; }
.monster-card {
  display: grid;
  grid-template-columns: 84px minmax(130px, .9fr) minmax(260px, 1.4fr);
  gap: 16px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(15,27,43,.8), rgba(8,14,23,.66));
}
.monster-card:target { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,232,249,.08); }
.monster-card > img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.4)); }
.monster-identity small { color: var(--red); letter-spacing: .1em; font-size: 8px; font-weight: 850; }
.monster-identity h3 { margin: 2px 0 7px; font-size: 14px; }
.monster-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.monster-stats span { padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; color: #899cad; font-size: 8px; }
.monster-drops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.drop-box { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: rgba(5,10,17,.48); }
.drop-box small { display: block; color: #687d90; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.drop-box strong { display: block; overflow: hidden; color: #dce8f0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.drop-box em { color: var(--cyan); font-size: 8px; font-style: normal; }

.quest-chain { display: grid; gap: 0; margin-top: 22px; counter-reset: quest; }
.quest-card { position: relative; padding: 16px 18px 16px 58px; border-left: 1px solid rgba(103,232,249,.22); }
.quest-card::before {
  position: absolute;
  top: 16px;
  left: -17px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(103,232,249,.32);
  border-radius: 50%;
  color: var(--cyan);
  background: var(--bg);
  counter-increment: quest;
  content: counter(quest, decimal-leading-zero);
  font-size: 8px;
  font-weight: 900;
}
.quest-card h3 { margin: 0 0 4px; }
.quest-card p { margin: 0; font-size: 11px; }
.quest-reward { display: inline-block; margin-top: 7px; color: var(--green); font-size: 9px; font-weight: 800; }

.guild-upgrade-catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guild-upgrade-card small { color: var(--cyan); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.guild-upgrade-card p { min-height: 50px; font-size: 11px; }
.guild-upgrade-card strong { display: block; color: var(--green); font-size: 10px; }

.base-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.base-card { display: grid; grid-template-columns: 70px 1fr; gap: 15px; min-height: 190px; }
.base-number {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(246,166,83,.3);
  border-radius: 50%;
  color: var(--ember);
  background: rgba(246,166,83,.055);
  font-size: 18px;
  font-weight: 900;
}
.base-card h3 { font-size: 16px; }
.base-card p { margin: 5px 0 9px; font-size: 11px; }
.base-rewards { display: grid; gap: 4px; }
.base-rewards span { color: #8296a8; font-size: 9px; }
.base-rewards b { color: #e4edf3; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 25px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.timeline article { min-height: 155px; padding: 17px; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(16,28,44,.75), rgba(8,14,23,.7)); }
.timeline article:last-child { border: 0; }
.timeline small { color: var(--ember); letter-spacing: .08em; font-size: 8px; font-weight: 900; }
.timeline h3 { margin: 15px 0 5px; }
.timeline p { margin: 0; font-size: 10px; }

.no-results { margin: 30px 0; padding: 28px; border: 1px dashed var(--line); border-radius: 9px; text-align: center; }
.no-results strong { color: var(--cyan); }
.no-results p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.guide-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  min-height: 110px;
  padding: 24px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  color: #66798c;
  background: #050910;
  font-size: 10px;
}
.guide-footer p { margin: 0; text-align: center; }
.guide-footer > div { display: flex; justify-content: flex-end; gap: 17px; }
.guide-footer a:hover { color: var(--cyan); }

@media (max-width: 1120px) {
  .guide-hero { grid-template-columns: 1fr 330px; gap: 34px; }
  .guide-shell { grid-template-columns: 200px minmax(0,1fr); gap: 34px; }
  .step-grid, .stat-definition-grid, .catalog-grid, .guild-upgrade-catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .material-catalog { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .fluid-levels { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .fluid-level:nth-child(5n) { border-right: 1px solid var(--line); }
  .fluid-level:nth-last-child(-n+5) { border-bottom: 1px solid var(--line); }
  .fluid-level:nth-child(2n) { border-right: 0; }
  .fluid-level:nth-last-child(-n+2) { border-bottom: 0; }
  .monster-card { grid-template-columns: 78px 1fr; }
  .monster-drops { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  body { font-size: 15px; }
  .guide-header { min-height: 62px; padding-inline: 18px; }
  .guide-header nav a:first-child { display: none; }
  .guide-hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 20px 55px; }
  .guide-hero h1 { font-size: clamp(48px, 15vw, 76px); }
  .guide-hero > div > p { font-size: 15px; }
  .guide-counts { grid-template-columns: repeat(4, 1fr); }
  .guide-counts span { min-height: 82px; padding: 16px 9px; border-right: 1px solid var(--line); border-bottom: 0; text-align: center; }
  .guide-counts span:last-child { border: 0; }
  .guide-counts strong { font-size: 23px; }
  .guide-counts small { font-size: 7px; }
  .guide-shell { display: block; width: min(calc(100% - 32px), 720px); padding-top: 0; }
  .guide-sidebar {
    position: sticky;
    z-index: 80;
    top: 62px;
    max-height: none;
    margin: 0 -16px;
    overflow-x: auto;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(6,10,18,.92);
    backdrop-filter: blur(14px);
  }
  .guide-sidebar > span, .guide-version { display: none; }
  .guide-sidebar nav { display: flex; width: max-content; }
  .guide-sidebar nav a { padding: 8px 12px; border: 0; border-radius: 4px; white-space: nowrap; }
  .guide-sidebar nav a::before { top: auto; bottom: 0; left: 50%; width: 0; height: 2px !important; transform: translateX(-50%); }
  .guide-sidebar nav a.active::before { width: 70%; }
  .guide-section { padding: 48px 0 58px; }
  .guide-section:first-child { padding-top: 42px; }
  .rule-strip, .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rule-strip span:nth-child(2) { border-right: 0; }
  .rule-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline article:nth-child(2) { border-right: 0; }
  .timeline article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .material-catalog { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .base-catalog { grid-template-columns: 1fr; }
  .guide-footer { grid-template-columns: 1fr; text-align: center; }
  .guide-footer .brand, .guide-footer > div { justify-self: center; }
}

@media (max-width: 560px) {
  .brand { font-size: 11px; }
  .guide-header nav a { padding: 7px 9px; font-size: 9px; }
  .guide-hero { padding-top: 58px; }
  .guide-hero h1 { font-size: clamp(44px, 16vw, 66px); }
  .guide-search { grid-template-columns: 19px 1fr; }
  .guide-search kbd { display: none; }
  .guide-counts { gap: 0; }
  .guide-counts span { min-width: 0; }
  .guide-counts small { overflow-wrap: anywhere; letter-spacing: .06em; }
  .guide-section > header { gap: 12px; }
  .guide-section > header > span { flex-basis: 36px; width: 36px; height: 36px; }
  .guide-section h2 { font-size: 30px; }
  .lead { font-size: 15px; }
  .step-grid, .stat-definition-grid, .catalog-grid, .rune-catalog, .guild-upgrade-catalog, .prose-grid { grid-template-columns: 1fr; }
  .step-grid article { min-height: 140px; }
  .prose-grid { gap: 20px; }
  .callout { padding-left: 48px; }
  .callout::before { left: 16px; }
  .rule-strip { grid-template-columns: 1fr 1fr; }
  .fluid-family > header { grid-template-columns: 58px 1fr; padding: 14px; }
  .fluid-family > header img { width: 52px; height: 52px; }
  .fluid-family > header > span { grid-column: 1 / -1; }
  .fluid-levels { grid-template-columns: 1fr; }
  .fluid-level, .fluid-level:nth-child(2n), .fluid-level:nth-child(5n), .fluid-level:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .fluid-level:last-child { border-bottom: 0; }
  .monster-toolbar { align-items: flex-start; flex-direction: column; }
  .monster-card { grid-template-columns: 64px 1fr; gap: 11px; padding: 11px; }
  .monster-card > img { width: 62px; height: 62px; }
  .monster-drops { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .timeline { grid-template-columns: 1fr; }
  .timeline article, .timeline article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline article:last-child { border-bottom: 0; }
  .base-card { grid-template-columns: 52px 1fr; padding: 15px; }
  .base-number { width: 48px; height: 48px; font-size: 14px; }
  .guide-footer > div { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
