:root {
  --bg: #0a0b0d;
  --panel: #141519;
  --panel-soft: #101114;
  --ink: #f5f0e7;
  --muted: #aaa69f;
  --line: rgba(245, 240, 231, .13);
  --gold: #efbd67;
  --gold-soft: rgba(239, 189, 103, .1);
  --red: #e27669;
  --cyan: #77d8cf;
  --green: #70d69d;
  color-scheme: dark;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 0, rgba(239, 189, 103, .12), transparent 32rem),
    radial-gradient(circle at 12% 28%, rgba(226, 118, 105, .07), transparent 34rem),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
b, strong { font-weight: 760; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, .9);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #171108;
  background: var(--gold);
  font: 900 10px/1 ui-monospace, monospace;
  transform: rotate(4deg);
}
.site-header nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 11px; }
.site-header nav a:hover { color: var(--ink); }
.header-cta { padding: 9px 13px; color: #171108 !important; background: var(--gold); font-weight: 850; }

.hero,
.section,
footer {
  width: min(1120px, calc(100% - 44px));
  margin-inline: auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  align-items: center;
  gap: 64px;
  min-height: 680px;
  padding: 82px 0 74px;
}
.eyebrow,
.section-heading p {
  margin: 0;
  color: var(--gold);
  font: 780 10px/1.5 ui-monospace, monospace;
  letter-spacing: .16em;
}
h1 {
  margin: 20px 0 0;
  font: 650 clamp(50px, 7vw, 86px)/.96 Georgia, "STSong", serif;
  letter-spacing: -.045em;
}
h1 em { color: var(--gold); font-weight: inherit; }
.lede { max-width: 680px; margin: 27px 0 0; color: #c1bbb1; font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { padding: 12px 18px; border: 1px solid var(--line); font-size: 11px; font-weight: 820; }
.button.primary { color: #171108; border-color: var(--gold); background: var(--gold); }
.button.secondary:hover { color: var(--gold); border-color: rgba(239, 189, 103, .45); }
.updated { margin: 17px 0 0; color: #75716b; font: 9px ui-monospace, monospace; }

.character-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(239, 189, 103, .3);
  background: linear-gradient(145deg, rgba(239, 189, 103, .11), transparent 42%), var(--panel);
  box-shadow: 0 28px 74px rgba(0, 0, 0, .34);
}
.character-card > p { margin: 0; color: var(--gold); font: 760 9px ui-monospace, monospace; letter-spacing: .14em; }
.character-card h2 { margin: 12px 0 25px; font: 650 32px Georgia, "STSong", serif; }
.character-card dl { margin: 0; }
.character-card dl div { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 11px; }
.character-card dt { color: var(--muted); }
.character-card dd { margin: 0; text-align: right; }

.section { padding: 84px 0; border-top: 1px solid var(--line); scroll-margin-top: 62px; }
.section-heading { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 34px; }
.section-heading > span {
  min-width: 38px;
  padding: 7px 8px;
  color: #171108;
  background: var(--gold);
  font: 900 10px ui-monospace, monospace;
  text-align: center;
}
.section-heading h2 { margin: 7px 0 0; font: 650 clamp(30px, 4vw, 47px)/1.08 Georgia, "STSong", serif; }

.answer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.answer-grid article { min-height: 172px; padding: 23px; background: var(--panel); }
.answer-grid article > span { color: var(--gold); font: 760 9px ui-monospace, monospace; letter-spacing: .12em; }
.answer-grid h3 { margin: 17px 0 0; font: 650 20px Georgia, "STSong", serif; }
.answer-grid p { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.notice { display: grid; grid-template-columns: 148px 1fr; gap: 22px; margin-top: 14px; padding: 19px 21px; border: 1px solid rgba(119, 216, 207, .24); background: rgba(119, 216, 207, .045); }
.notice strong { color: var(--cyan); font-size: 11px; }
.notice p { margin: 0; color: #bbb6ae; font-size: 11px; line-height: 1.75; }
.point-buy {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  margin-top: 14px;
  padding: 23px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}
.mini-label { margin: 0; color: var(--gold); font: 780 9px ui-monospace, monospace; letter-spacing: .14em; }
.point-buy h3 { margin: 9px 0 0; font: 650 23px Georgia, "STSong", serif; }
.point-buy > div > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.point-buy table { width: 100%; border-collapse: collapse; align-self: center; font-size: 10px; text-align: center; }
.point-buy th,
.point-buy td { padding: 11px 8px; border: 1px solid var(--line); }
.point-buy th { color: var(--gold); background: var(--gold-soft); }
.point-buy td { color: #d5cfc5; }

.walkthrough { padding-bottom: 34px; }
.step { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.step-copy { display: grid; grid-template-columns: 86px minmax(220px, 330px) minmax(0, 1fr); align-items: start; gap: 18px; margin-bottom: 24px; }
.step-number { padding-top: 8px; color: var(--gold); font: 800 9px ui-monospace, monospace; letter-spacing: .14em; }
.step h3 { margin: 0; font: 650 27px/1.22 Georgia, "STSong", serif; }
.step-copy > p { margin: 3px 0 0; color: #bbb6ae; font-size: 12px; line-height: 1.85; }
.operation-lines { grid-column: 3; display: grid; gap: 8px; }
.operation-lines p { margin: 0; padding: 12px 14px; border: 1px solid var(--line); color: #c4beb5; font-size: 11px; line-height: 1.75; }
.operation-lines b { color: var(--ink); }
.general-line { background: rgba(239, 189, 103, .055); }
.example-line { background: rgba(119, 216, 207, .035); }
.example-line b { color: var(--cyan); }
.trap,
.tip {
  grid-column: 3;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  margin-top: -4px;
  padding: 13px 14px;
  border: 1px solid rgba(226, 118, 105, .22);
  background: rgba(226, 118, 105, .045);
}
.tip { border-color: rgba(119, 216, 207, .22); background: rgba(119, 216, 207, .04); }
.trap b,
.tip b { color: var(--red); font-size: 10px; }
.tip b { color: var(--cyan); }
.trap span,
.tip span { color: var(--muted); font-size: 10px; line-height: 1.7; }
.hp-table {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.hp-table > div { display: grid; grid-template-columns: 44px 1fr; gap: 3px 12px; padding: 12px 13px; background: var(--panel-soft); }
.hp-table b { grid-row: 1 / 3; align-self: center; color: var(--gold); font: 700 18px Georgia, serif; }
.hp-table span { color: #d8d2c8; font-size: 10px; }
.hp-table small { color: var(--muted); font-size: 9px; }

.shot-strip { display: grid; gap: 12px; }
.shot-strip.two { grid-template-columns: repeat(2, 1fr); }
.shot-strip.three { grid-template-columns: repeat(3, 1fr); }
.shot {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090a0c;
}
.shot a { display: block; overflow: hidden; background: #0c0d0f; }
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.01;
  object-fit: cover;
  object-position: top;
  transition: transform .22s ease, opacity .22s ease;
}
.shot a:hover img { opacity: .92; transform: scale(1.012); }
.shot figcaption { min-height: 43px; padding: 13px 14px; border-top: 1px solid var(--line); color: #cbc5ba; font-size: 10px; }
.final-step { display: grid; grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr); gap: 30px; align-items: start; }
.final-step .step-copy { display: block; margin: 0; }
.final-step .step-number { display: block; margin-bottom: 11px; }
.final-step .step-copy > p { margin-top: 18px; }
.final-step .tip { display: grid; margin-top: 20px; }
.final-shot img { aspect-ratio: auto; }

.section-intro { max-width: 840px; margin: -14px 0 28px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.build-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.build-card { min-width: 0; border: 1px solid var(--line); background: var(--panel); scroll-margin-top: 72px; }
.build-card[open] { border-color: rgba(239, 189, 103, .34); background: linear-gradient(145deg, rgba(239, 189, 103, .055), transparent 42%), var(--panel); }
.build-card summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.build-card summary::-webkit-details-marker { display: none; }
.build-card summary::after { content: "+"; flex: 0 0 auto; color: var(--gold); font: 700 18px/1 ui-monospace, monospace; }
.build-card[open] summary::after { content: "−"; }
.build-card summary span { font: 650 21px Georgia, "STSong", serif; }
.build-card summary small { margin-left: auto; color: var(--muted); font-size: 9px; }
.build-body { padding: 0 20px 18px; border-top: 1px solid var(--line); }
.build-body p { margin: 12px 0 0; color: #bdb7ae; font-size: 10px; line-height: 1.75; }
.build-body b { color: var(--ink); }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.checklist > div { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 15px 18px; background: var(--panel); }
.checklist span { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%; color: #06140b; background: var(--green); font-size: 11px; font-weight: 900; }
.checklist p { margin: 0; color: #c7c1b8; font-size: 11px; }
.source-note { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 14px; padding: 20px 21px; border: 1px solid var(--line); background: var(--panel-soft); }
.source-note p { max-width: 760px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.source-note a { flex: 0 0 auto; color: var(--gold); font-size: 10px; font-weight: 820; }
.source-links { display: flex; flex: 0 0 auto; gap: 14px; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 34px 0 66px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer div { display: flex; flex-direction: column; gap: 7px; }
footer b { color: var(--ink); }
footer a { color: var(--gold); }

@media (max-width: 900px) {
  .site-header nav a:not(.header-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 40px; padding-top: 72px; }
  .character-card { max-width: 560px; }
  .answer-grid { grid-template-columns: repeat(2, 1fr); }
  .step-copy { grid-template-columns: 70px minmax(210px, 300px) minmax(0, 1fr); }
  .point-buy { grid-template-columns: 1fr; }
  .shot-strip.three { grid-template-columns: repeat(2, 1fr); }
  .shot-strip.three .shot:last-child { grid-column: 1 / -1; max-width: calc(50% - 6px); }
  .final-step { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { min-height: 58px; padding: 0 15px; }
  .brand > span:last-child { display: none; }
  .header-cta { padding: 9px 11px; }
  .hero,
  .section,
  footer { width: calc(100% - 30px); }
  .hero { padding: 58px 0 50px; }
  h1 { font-size: clamp(46px, 13vw, 62px); }
  .lede { font-size: 12px; line-height: 1.8; }
  .character-card { width: 100%; min-width: 0; padding: 23px; }
  .character-card dd { max-width: 65%; overflow-wrap: anywhere; }
  .section { padding: 62px 0; scroll-margin-top: 57px; }
  .section-heading { margin-bottom: 28px; }
  .answer-grid,
  .checklist,
  .build-grid { grid-template-columns: 1fr; }
  .answer-grid article { min-height: auto; }
  .notice,
  .source-note { display: grid; grid-template-columns: 1fr; }
  .step { padding: 39px 0 46px; }
  .step-copy { display: block; margin-bottom: 19px; }
  .step-number { display: block; padding: 0; margin-bottom: 10px; }
  .step h3 { font-size: 25px; }
  .step-copy > p { margin-top: 15px; }
  .operation-lines { display: grid; margin-top: 17px; }
  .trap,
  .tip { display: grid; grid-template-columns: 1fr; gap: 5px; margin-top: 17px; }
  .hp-table { display: grid; grid-template-columns: 1fr; margin-top: 17px; }
  .point-buy { padding: 18px; overflow: hidden; }
  .point-buy table { min-width: 520px; }
  .point-buy { overflow-x: auto; }
  .build-card summary { align-items: flex-start; flex-wrap: wrap; }
  .build-card summary small { order: 3; width: 100%; margin-left: 0; }
  .source-links { flex-wrap: wrap; }

  .shot-strip,
  .shot-strip.two,
  .shot-strip.three {
    display: flex;
    width: calc(100vw - 15px);
    margin-right: calc(15px - 100vw);
    padding-right: 15px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .shot-strip::-webkit-scrollbar { display: none; }
  .shot-strip .shot,
  .shot-strip.three .shot:last-child {
    flex: 0 0 min(82vw, 430px);
    max-width: none;
    scroll-snap-align: start;
  }
  .shot figcaption { min-height: 41px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot img { transition: none; }
}
