:root {
  --steel: #4c6662;
  --steel-dark: #273f3b;
  --steel-pale: #e8efed;
  --copper: #ad6438;
  --copper-pale: #fff3ea;
  --lime: #437c65;
  --blueprint: #174e63;
}

body {
  background:
    linear-gradient(90deg, transparent 23px, #45665e0a 24px, transparent 25px) 0 0 / 25px 25px,
    linear-gradient(transparent 23px, #45665e0a 24px, transparent 25px) 0 0 / 25px 25px,
    radial-gradient(circle at 86% 4%, #be744c20, transparent 390px),
    linear-gradient(#f5f8f6 0, #edf2ef 460px);
}

.steel-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 76px;
}

.steel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, .6fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid #c4d1cd;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #ffffffed, #f8fbf9e8),
    repeating-linear-gradient(135deg, #28443e08 0 1px, transparent 1px 11px);
  box-shadow: 0 28px 80px #223f3721;
  overflow: hidden;
}

.steel-hero h1 {
  max-width: 840px;
  color: var(--steel-dark);
  font-size: clamp(42px, 7vw, 78px);
  line-height: .98;
}

.steel-hero .hero-copy {
  max-width: 760px;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--steel-dark);
  border-radius: 9px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action { background: var(--steel-dark); color: #fff; }
.secondary-action { background: #fff; color: var(--steel-dark); }
.hero-actions a:hover, .hero-actions a:focus-visible { outline: 3px solid #ad64382b; transform: translateY(-1px); }

.steel-status {
  display: flex;
  gap: 14px;
  padding: 19px;
  border: 1px solid #d4b99f;
  border-radius: 13px;
  background: #fffaf5;
}

.status-light {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #c88652;
  box-shadow: 0 0 0 6px #c8865220;
}

body[data-guide-status="ready"] .status-light { background: #3c8065; box-shadow: 0 0 0 6px #3c806520; }
body[data-guide-status="error"] .status-light { background: #b42318; box-shadow: 0 0 0 6px #b4231820; }
.steel-status small, .steel-status strong, .steel-status p { display: block; }
.steel-status small { color: var(--copper); font-weight: 900; letter-spacing: .06em; }
.steel-status strong { margin-top: 6px; color: var(--steel-dark); line-height: 1.45; }
.steel-status p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.boundary-banner {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 22px;
  align-items: center;
  margin: 18px 0 44px;
  padding: 20px 24px;
  border: 1px solid #b9cac4;
  border-radius: 13px;
  background: #eff7f3;
}

.boundary-banner h2 { margin: 0; font-size: clamp(20px, 3vw, 28px); }
.boundary-banner p:last-child { margin: 0; color: #516b64; line-height: 1.7; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 { margin: 0; color: var(--steel-dark); font-size: clamp(28px, 4vw, 42px); }
.section-note { max-width: 310px; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: right; }
.quiet-button { background: transparent; }

.build-order-section, .calculator-section, .guide-browser, .evidence-section { margin-top: 48px; scroll-margin-top: 92px; }
.roadmap-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; padding: 0; margin: 0; list-style: none; }
.roadmap-step { position: relative; min-width: 0; }
.roadmap-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 26px;
  left: calc(50% + 21px);
  width: calc(100% - 33px);
  height: 2px;
  background: #b9c8c3;
}
.roadmap-step label {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px #233e370d;
  cursor: pointer;
}
.roadmap-step input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.step-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #a9bbb5;
  border-radius: 50%;
  background: #fff;
  color: var(--steel);
  font-weight: 1000;
}
.roadmap-step b { margin-top: 15px; color: var(--steel-dark); line-height: 1.35; }
.roadmap-step span:not(.step-index) { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.roadmap-step small { margin-top: auto; padding-top: 11px; color: var(--copper); line-height: 1.4; }
.roadmap-step input:focus-visible + .step-index { outline: 3px solid #ad64383d; }
.roadmap-step label:has(input:checked) { border-color: #91b8a7; background: #eef8f3; }
.roadmap-step input:checked + .step-index { border-color: var(--lime); background: var(--lime); color: #fff; }
.roadmap-step input:checked + .step-index::after { content: "✓"; font-size: 15px; }
.roadmap-step input:checked + .step-index { font-size: 0; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.metric-card { padding: 19px; border: 1px solid #c9d4d1; border-radius: 12px; background: #fff; }
.metric-card strong, .metric-card span, .metric-card small { display: block; }
.metric-card strong { color: var(--copper); font-size: clamp(25px, 4vw, 38px); line-height: 1; }
.metric-card span { margin-top: 9px; color: var(--steel-dark); font-weight: 900; }
.metric-card small { margin-top: 6px; color: var(--muted); line-height: 1.5; }

.calculator-section {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #bfcfca;
  border-radius: 18px;
  background: linear-gradient(145deg, #eff5f2, #fff);
}
.calculator-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; }
.calculator-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.calculator-heading { display: flex; gap: 12px; align-items: start; margin-bottom: 17px; }
.calculator-number { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 7px; background: var(--steel-dark); color: #fff; font-size: 12px; font-weight: 900; }
.calculator-heading h3, .calculator-heading p { margin: 0; }
.calculator-heading h3 { color: var(--steel-dark); font-size: 21px; }
.calculator-heading p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.calculator-card label { display: grid; gap: 7px; color: #405852; font-size: 13px; font-weight: 800; }
.calculator-card input, .calculator-card select { width: 100%; min-height: 44px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.calculator-card input:focus, .calculator-card select:focus { border-color: var(--copper); outline: 3px solid #ad643821; }
.calculator-card .check-row { display: flex; align-items: center; margin-top: 13px; cursor: pointer; }
.calculator-card .check-row input { width: 19px; min-height: 19px; }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 16px; }
.result-cell { min-width: 0; padding: 12px 9px; border: 1px solid #ccd8d4; border-radius: 8px; background: #f5f9f7; text-align: center; }
.result-cell strong, .result-cell span { display: block; }
.result-cell strong { color: var(--blueprint); font-size: clamp(18px, 3vw, 25px); overflow-wrap: anywhere; }
.result-cell span { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.drill-result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calculator-footnote { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.browser-heading { align-items: end; }
.guide-search { display: grid; width: min(330px, 100%); gap: 6px; color: var(--muted); font-size: 12px; font-weight: 900; }
.guide-search input { min-height: 45px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.category-filters button[aria-pressed="true"] { border-color: var(--steel-dark); background: var(--steel-dark); color: #fff; }
.filter-status { margin: 0 0 15px; color: var(--muted); font-size: 13px; }
.guide-sections { display: grid; gap: 16px; }
.guide-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 0;
  border: 1px solid #cbd6d2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px #243d3610;
  overflow: hidden;
  scroll-margin-top: 92px;
}
.guide-card[hidden] { display: none; }
.guide-card-main { min-width: 0; padding: clamp(22px, 4vw, 34px); }
.guide-card-side { min-width: 0; padding: clamp(20px, 3vw, 28px); border-left: 1px solid var(--line); background: #f6f9f7; }
.guide-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kicker, .verdict { display: inline-flex; min-height: 27px; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.kicker { background: var(--steel-pale); color: var(--steel-dark); }
.verdict.local_verified, .verdict.player_confirmed { border: 1px solid #afd1c1; background: #eaf7f0; color: #23664d; }
.verdict.server_check { border: 1px solid #e4bd9e; background: var(--copper-pale); color: #955126; }
.verdict.defer { border: 1px solid #c9c9d4; background: #f1f1f6; color: #666477; }
.guide-card h2 { margin: 15px 0 10px; color: var(--steel-dark); font-size: clamp(25px, 4vw, 35px); line-height: 1.15; }
.card-summary { margin: 0; color: #506862; font-size: 15px; line-height: 1.75; }
.guide-figure { margin: 22px 0 0; }
.guide-figure img { display: block; width: 100%; height: auto; border: 1px solid #cbd7d2; border-radius: 11px; background: #f4f8f6; }
.guide-figure figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.guide-steps { padding-left: 23px; margin: 22px 0 0; counter-reset: card-step; list-style: none; }
.guide-steps li { position: relative; padding: 0 0 16px 34px; color: #445f58; line-height: 1.7; counter-increment: card-step; }
.guide-steps li::before { content: counter(card-step); position: absolute; top: 2px; left: 0; display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; background: var(--steel-dark); color: #fff; font-size: 11px; font-weight: 900; }
.guide-steps li:not(:last-child)::after { content: ""; position: absolute; top: 28px; bottom: 2px; left: 11px; width: 1px; background: #c7d3cf; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact { padding: 12px; border: 1px solid #ccd6d3; border-radius: 8px; background: #fff; }
.fact span, .fact strong { display: block; }
.fact span { color: var(--muted); font-size: 10px; font-weight: 900; }
.fact strong { margin-top: 6px; color: var(--steel-dark); line-height: 1.35; }
.warning-list { padding: 0; margin: 15px 0 0; list-style: none; }
.warning-list li { padding: 11px 12px; border-left: 3px solid var(--copper); background: var(--copper-pale); color: #7b4b2d; font-size: 12px; line-height: 1.55; }
.warning-list li + li { margin-top: 7px; }
.server-checks { margin-top: 16px; border: 1px solid #e0bd9f; border-radius: 9px; background: #fffaf6; }
.server-checks summary { padding: 12px; color: #825031; font-size: 12px; font-weight: 900; cursor: pointer; }
.server-checks ul { padding: 0 16px 14px 31px; margin: 0; color: #6d5748; font-size: 12px; line-height: 1.55; }
.item-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 16px; padding-top: 0; border-top: 0; }
.steel-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid #d0dad6;
  border-radius: 8px;
  background: #fff;
}
.steel-item img { width: 42px; height: 42px; padding: 4px; border-radius: 7px; background: #edf2ef; object-fit: contain; image-rendering: pixelated; }
.steel-item b, .steel-item code, .steel-item small { display: block; min-width: 0; }
.steel-item b { color: var(--steel-dark); font-size: 11px; line-height: 1.3; }
.steel-item code { margin-top: 2px; padding: 0; background: none; color: #7b8985; font-size: 8px; word-break: break-all; }
.steel-item small { margin-top: 3px; color: var(--copper); font-size: 8px; line-height: 1.25; }
.evidence-links { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.evidence-links h3 { margin: 0 0 8px; color: var(--steel-dark); font-size: 13px; }
.evidence-links ul { padding-left: 18px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.load-error { display: grid; gap: 8px; padding: 20px; border: 1px solid #e3aaa5; border-radius: 12px; background: #fff3f2; color: #8c332d; }
.load-error[hidden] { display: none; }
.load-error button { justify-self: start; }
.empty-result { padding: 35px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); text-align: center; }

.evidence-section { padding: clamp(22px, 4vw, 34px); border: 1px solid #c4d1cd; border-radius: 18px; background: #fff; }
.evidence-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.evidence-layout h3 { margin: 0 0 13px; color: var(--steel-dark); }
.checklist { padding: 0; margin: 0; list-style: none; }
.checklist li { position: relative; padding: 11px 11px 11px 39px; border: 1px solid var(--line); border-radius: 8px; color: #4a625c; line-height: 1.5; }
.checklist li + li { margin-top: 7px; }
.checklist li::before { content: "□"; position: absolute; top: 9px; left: 13px; color: var(--copper); font-size: 19px; }
.source-ledger { border: 1px solid var(--line); border-radius: 10px; background: #f7faf8; }
.source-ledger summary { padding: 15px; color: var(--steel-dark); font-weight: 900; cursor: pointer; }
.evidence-ledger { display: grid; gap: 6px; padding: 0 14px 14px; }
.evidence-record { padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.evidence-record b, .evidence-record code, .evidence-record small { display: block; }
.evidence-record b { color: var(--steel-dark); font-size: 12px; }
.evidence-record code { margin-top: 5px; padding: 0; background: none; color: #6d7e79; font-size: 9px; word-break: break-all; }
.evidence-record small { margin-top: 5px; color: var(--copper); font-size: 9px; }

.steel-footer { display: flex; justify-content: center; gap: 18px; padding: 25px 16px 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.steel-footer p { margin: 0; }

@media (max-width: 1060px) {
  .roadmap-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .roadmap-step:not(:last-child)::after { display: none; }
  .roadmap-step label { min-height: 190px; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-card-side { border-top: 1px solid var(--line); border-left: 0; }
  .item-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .steel-main { width: min(100% - 22px, 1180px); padding-top: 22px; }
  .steel-hero { grid-template-columns: 1fr; padding: 24px 18px; border-radius: 15px; }
  .steel-hero h1 { font-size: clamp(37px, 12vw, 58px); }
  .boundary-banner { grid-template-columns: 1fr; margin-bottom: 34px; padding: 18px; }
  .section-heading, .browser-heading { align-items: start; flex-direction: column; }
  .section-note { text-align: left; }
  .roadmap-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calculator-grid, .evidence-layout { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steel-footer { align-items: center; flex-direction: column; }
}

@media (max-width: 430px) {
  .steel-main { width: min(100% - 16px, 1180px); }
  .steel-hero { padding: 22px 15px; }
  .hero-actions a { width: 100%; }
  .roadmap-list { grid-template-columns: 1fr; }
  .roadmap-step label { min-height: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .calculator-section { padding: 16px 12px; }
  .calculator-card { padding: 16px 12px; }
  .guide-card-main, .guide-card-side { padding: 20px 15px; }
  .fact-grid, .item-strip { grid-template-columns: 1fr; }
  .category-filters button { flex: 1 1 125px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
