/* ===========================================================
   16 DSKB Types — Wiki Stylesheet
   Pixel / military-olive aesthetic matching the original game
   =========================================================== */

:root {
  --bg:        #1f1f17;
  --bg-2:      #28281e;
  --surface:   #353528;
  --surface-2: #41412f;
  --line:      #5a5a3c;
  --line-soft: #3f3f2a;
  --ink:       #ece5c4;
  --ink-dim:   #b9b390;
  --ink-mute:  #7a7456;
  --gold:      #d8b855;
  --gold-2:    #b39140;
  --olive:     #909654;
  --rose:      #c46b6b;
  --teal:      #5e9b8e;
  --shadow:    0 6px 0 #00000040, 0 16px 36px #00000060;

  --axis-D: #d8b855;
  --axis-S: #c46b6b;
  --axis-K: #c97e58;
  --axis-B: #5e9b8e;

  --font-pixel: "DotGothic16", monospace;
  --font-body:  "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #2f3022 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 3px, #00000010 3px 4px);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: #f0d57e; }

img { max-width: 100%; display: block; }

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, #1a1a14 0%, #1a1a14e0 80%, #1a1a1400 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand__mark {
  font-family: var(--font-pixel);
  font-size: 28px;
  background: var(--gold);
  color: #1a1a14;
  padding: 2px 10px;
  letter-spacing: -1px;
  box-shadow: 4px 4px 0 #00000060;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__jp { font-family: var(--font-pixel); font-size: 18px; letter-spacing: 1px; }
.brand__sub { font-size: 11px; color: var(--ink-dim); letter-spacing: 4px; }

.topnav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a {
  color: var(--ink-dim);
  font-size: 14px; letter-spacing: 1px;
  position: relative;
  padding: 4px 0;
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}

/* ---------- LAYOUT ---------- */
main { position: relative; z-index: 1; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 28px;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.section__head { margin-bottom: 48px; max-width: 720px; }
.section__num {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--gold);
  border: 1px solid var(--gold-2);
  padding: 2px 10px;
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
  letter-spacing: 2px;
  color: var(--ink);
}
.section__sub {
  color: var(--ink-dim);
  font-size: 15px;
  margin: 0;
}

/* ---------- HERO ---------- */
.hero { padding: 56px 28px 48px; max-width: 1280px; margin: 0 auto; }
.hero__grid {
  display: grid; gap: 48px;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.hero__kicker {
  font-family: var(--font-pixel);
  font-size: 13px; letter-spacing: 4px;
  color: var(--gold);
  margin: 0 0 18px;
}
.hero__title {
  margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.hero__title-jp {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--ink-dim);
  letter-spacing: 2px;
}
.hero__title-main {
  font-family: var(--font-pixel);
  font-size: clamp(56px, 8vw, 110px);
  letter-spacing: 4px;
  color: var(--ink);
  text-shadow:
    4px 4px 0 #00000050,
    0 0 1px var(--gold);
  line-height: 1;
}
.hero__title-main .dot { color: var(--gold); }
.hero__title-sub {
  font-size: 16px;
  color: var(--ink-dim);
  letter-spacing: 6px;
}
.hero__lede {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0 0 28px;
}
.hero__lede em {
  color: var(--gold);
  font-style: normal;
  font-family: var(--font-pixel);
  padding: 0 2px;
}
.hero__cta { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.hero__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 32px; flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}
.hero__meta li {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ink);
}
.hero__meta li span {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 2px;
  margin-bottom: 4px;
  font-family: var(--font-body);
}
.hero__art {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow);
}
.hero__art picture,
.axes__official picture,
.modal-detail__img picture,
.card__picture {
  display: block;
}
.hero__art img {
  image-rendering: pixelated;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.hero__art-grain {
  position: absolute; inset: 12px;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, #ffffff08 2px 3px);
  pointer-events: none;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel);
  font-size: 16px; letter-spacing: 2px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform .12s ease, background .15s, color .15s;
  text-transform: uppercase;
}
.btn:hover { transform: translate(-1px,-1px); }
.btn--primary {
  background: var(--gold);
  color: #1a1a14;
  border-color: var(--gold-2);
  box-shadow: 4px 4px 0 #00000080;
}
.btn--primary:hover { background: #f0d57e; color: #1a1a14; }
.btn--ghost { background: transparent; color: var(--ink-dim); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-dim); }
.btn--sm { font-size: 12px; padding: 10px 16px; }

/* ---------- SEO ENTRY ---------- */
.seo-entry {
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 0 28px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.seo-entry a {
  display: block;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  color: var(--ink);
  box-shadow: 4px 4px 0 #00000040;
}
.seo-entry a:hover { border-color: var(--gold); transform: translate(-1px,-1px); }
.seo-entry span {
  display: block;
  font-family: var(--font-pixel);
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.seo-entry small { color: var(--ink-dim); font-size: 12px; line-height: 1.5; }

/* ---------- ABOUT prose ---------- */
.prose {
  max-width: 760px;
  font-size: 16px;
  color: var(--ink-dim);
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); }
.prose em { font-style: normal; color: var(--gold); font-family: var(--font-pixel); }
.prose u { text-decoration: none; border-bottom: 1px dashed var(--gold); padding-bottom: 1px; }
.prose__hint { font-size: 13px; color: var(--ink-mute); border-left: 2px solid var(--line); padding-left: 14px; }

/* ---------- AXES ---------- */
.section--axes { background: linear-gradient(180deg, transparent, #1a1a1290 50%, transparent); }
.axes {
  display: grid; gap: 22px;
  grid-template-columns: repeat(2, 1fr);
}
.axis {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--axis-color, var(--gold));
  padding: 24px 26px;
  position: relative;
  --axis-color: var(--gold);
}
.axis--D { --axis-color: var(--axis-D); }
.axis--S { --axis-color: var(--axis-S); }
.axis--K { --axis-color: var(--axis-K); }
.axis--B { --axis-color: var(--axis-B); }
.axis header { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.axis__letter {
  font-family: var(--font-pixel);
  font-size: 56px;
  color: var(--axis-color);
  line-height: 1; min-width: 64px;
  text-shadow: 3px 3px 0 #00000060;
}
.axis h3 {
  font-family: var(--font-pixel);
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: 1px;
}
.axis header p { margin: 0; color: var(--ink-dim); font-size: 14px; }
.axis__pair {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px;
  align-items: stretch;
}
.axis__side {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  padding: 16px;
}
.axis__tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 13px;
  background: var(--axis-color);
  color: #1a1a14;
  padding: 2px 8px;
  margin-bottom: 8px;
}
.axis__kw {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 6px;
}
.axis__side p:last-child { margin: 0; font-size: 14px; color: var(--ink-dim); line-height: 1.55; }
.axis__vs {
  align-self: center;
  font-family: var(--font-pixel);
  color: var(--ink-mute);
  font-size: 14px;
}

.axes__official {
  margin: 56px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.axes__official img { image-rendering: pixelated; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.axes__official figcaption {
  margin-top: 10px;
  font-size: 12px; color: var(--ink-mute);
  text-align: center; letter-spacing: 2px;
}

/* ---------- TEST ---------- */
.section--test { background: linear-gradient(180deg, transparent, #15150e 50%, transparent); }
.test {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px 32px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.test__panel--intro { text-align: center; padding: 32px 0; }
.test__panel--intro h3 {
  font-family: var(--font-pixel);
  font-size: 24px; letter-spacing: 2px;
  margin: 0 0 18px;
}
.test__panel--intro p {
  color: var(--ink-dim); margin: 0 0 28px;
}

/* progress */
.test__progress {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-pixel); font-size: 16px;
  color: var(--ink-dim);
  margin-bottom: 22px;
}
.test__progress-current { color: var(--gold); font-size: 28px; }
.test__progress-sep { color: var(--ink-mute); }
.test__progress-bar {
  flex: 1; height: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.test__progress-bar i {
  display: block; height: 100%;
  width: 0;
  background: var(--gold);
  transition: width .35s ease;
}

.test__question {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 1px;
  text-align: center;
  margin: 12px 0 28px;
  color: var(--ink);
  min-height: 2.5em;
  line-height: 1.5;
}
.test__choices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.choice {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 28px 22px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  position: relative;
  transition: transform .12s ease, border-color .12s, background .12s;
  min-height: 160px;
  display: flex; flex-direction: column; gap: 12px;
}
.choice:hover {
  background: var(--surface-2);
  border-color: var(--gold);
  transform: translate(-1px,-1px);
}
.choice__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  font-family: var(--font-pixel); font-size: 16px;
  background: var(--gold); color: #1a1a14;
}
.choice__text { white-space: pre-line; }

.test__footer {
  margin-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.test__hint { color: var(--ink-mute); font-size: 12px; letter-spacing: 1px; }

/* result */
.test__panel--result { text-align: center; }
.test__result-kicker {
  font-family: var(--font-pixel);
  color: var(--ink-dim);
  letter-spacing: 4px; font-size: 13px;
  margin: 0 0 6px;
}
.test__result-code {
  font-family: var(--font-pixel);
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: 8px;
  margin: 0 0 22px;
  color: var(--gold);
  text-shadow: 4px 4px 0 #00000050;
}
.test__result-card {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 28px; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 22px;
  text-align: left;
}
.test__result-card img {
  image-rendering: pixelated;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.test__result-meta h4 {
  font-family: var(--font-pixel);
  font-size: 24px; letter-spacing: 2px;
  margin: 0 0 8px;
}
.test__result-axes {
  font-family: var(--font-pixel);
  color: var(--gold);
  letter-spacing: 1px;
  margin: 0 0 12px;
  font-size: 14px;
}
.test__result-meta p { color: var(--ink-dim); margin: 0 0 18px; }
.test__result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.test__result-bars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 28px; text-align: left;
}
.r-bar {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  padding: 12px;
}
.r-bar__head {
  font-family: var(--font-pixel);
  font-size: 12px;
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
  color: var(--ink-dim);
}
.r-bar__head b { color: var(--ink); letter-spacing: 1px; }
.r-bar__track {
  display: grid; grid-template-columns: 1fr 1fr;
  height: 6px; background: var(--surface);
  position: relative;
}
.r-bar__fill {
  background: var(--gold);
  height: 100%;
  transition: width .4s ease;
}
.r-bar__caption {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-mute);
  margin-top: 4px;
}

/* ---------- GALLERY ---------- */
.gallery__filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 1px;
  padding: 6px 14px;
  cursor: pointer;
  transition: .12s;
}
.filter:hover { color: var(--ink); border-color: var(--ink-dim); }
.filter.is-active {
  background: var(--gold);
  border-color: var(--gold-2);
  color: #1a1a14;
}

.gallery {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s, box-shadow .15s;
  position: relative;
}
.card__link {
  display: block;
  color: inherit;
}
.card:hover {
  transform: translate(-2px,-2px);
  border-color: var(--gold);
  box-shadow: 6px 6px 0 #00000060;
}
.card__num {
  position: absolute; top: 6px; right: 10px;
  font-family: var(--font-pixel);
  font-size: 12px; color: var(--ink-mute);
}
.card__img {
  image-rendering: pixelated;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
}
.card__title {
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 1px;
  margin: 12px 0 4px;
  color: var(--ink);
}
.card__sub {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.card__code {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  display: flex; gap: 4px;
}
.card__code span { padding: 1px 4px; background: #00000040; }

/* ---------- MATCH ---------- */
.match-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.match-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px 24px;
  position: relative;
}
.match-card::before {
  content: "♥";
  position: absolute; top: -12px; left: 18px;
  background: var(--bg);
  color: var(--rose);
  font-size: 16px;
  padding: 0 8px;
}
.match-card h3 {
  font-family: var(--font-pixel);
  font-size: 16px; letter-spacing: 1px;
  margin: 0 0 10px;
  color: var(--ink);
}
.match-card p { margin: 0; color: var(--ink-dim); font-size: 14px; }

/* ---------- FOOTER ---------- */
.foot {
  margin-top: 80px;
  padding: 32px 28px;
  border-top: 1px solid var(--line-soft);
  background: #14140e;
}
.foot__inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 22px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: #00000099;
  backdrop-filter: blur(6px);
}
.modal__card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--gold-2);
  max-width: 920px; width: 100%;
  max-height: 90vh; overflow: auto;
  box-shadow: 8px 8px 0 #00000080;
  padding: 32px;
}
.modal__close {
  position: absolute; top: 10px; right: 14px;
  background: transparent; border: 0;
  color: var(--ink-dim);
  font-size: 28px; line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--gold); }
.modal-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.modal-detail__img img {
  image-rendering: pixelated;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.modal-detail__code {
  font-family: var(--font-pixel);
  font-size: 14px; letter-spacing: 4px;
  color: var(--gold);
  margin: 0 0 6px;
}
.modal-detail__title {
  font-family: var(--font-pixel);
  font-size: 28px; letter-spacing: 2px;
  margin: 0 0 4px;
  color: var(--ink);
}
.modal-detail__sub {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 2px;
  margin: 0 0 18px;
}
.modal-detail__axes {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin: 0 0 18px;
}
.modal-detail__axes div {
  font-family: var(--font-pixel); font-size: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  padding: 6px 8px;
}
.modal-detail__axes b {
  color: var(--gold); margin-right: 6px;
}
.modal-detail h5 {
  font-family: var(--font-pixel);
  font-size: 13px; letter-spacing: 2px;
  margin: 16px 0 6px;
  color: var(--ink);
}
.modal-detail p { margin: 0 0 12px; color: var(--ink-dim); font-size: 14px; }
.modal-detail__match {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.modal-detail__match a {
  font-family: var(--font-pixel); font-size: 11px;
  letter-spacing: 1px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: var(--ink);
}
.modal-detail__match a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- SEO PAGES ---------- */
.seo-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 0;
}
.seo-hero {
  margin-bottom: 48px;
  max-width: 860px;
}
.seo-hero h1 {
  font-family: var(--font-pixel);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 2px;
  margin: 0 0 18px;
}
.seo-hero h1 small {
  display: block;
  color: var(--gold);
  font-size: clamp(28px, 5vw, 48px);
  margin-top: 8px;
}
.seo-hero__lead {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 760px;
}
.seo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.seo-section {
  margin: 0 0 64px;
}
.seo-section h2,
.seo-panel h2 {
  font-family: var(--font-pixel);
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 2px;
  margin: 0 0 18px;
}
.seo-section p,
.seo-panel p {
  color: var(--ink-dim);
}
.seo-grid,
.axis-detail-grid,
.relation-grid,
.compat-table,
.tier-list,
.faq-list {
  display: grid;
  gap: 18px;
}
.seo-grid--types { grid-template-columns: repeat(4, 1fr); }
.seo-card,
.seo-panel,
.axis-detail-grid article,
.relation-grid article,
.compat-table article,
.tier-list article,
.faq-list article,
.step-list li,
.type-table a {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
}
.seo-card a { display: block; color: inherit; }
.seo-card img {
  image-rendering: pixelated;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  margin-bottom: 12px;
}
.seo-card__code {
  display: inline-block;
  font-family: var(--font-pixel);
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.seo-card h3,
.axis-detail-grid h3,
.relation-grid h3,
.compat-table h3,
.tier-list h3,
.faq-list h3 {
  font-family: var(--font-pixel);
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: var(--ink);
}
.seo-card p,
.axis-detail-grid p,
.relation-grid p,
.compat-table p,
.tier-list p,
.faq-list p {
  margin: 0 0 8px;
  color: var(--ink-dim);
  font-size: 14px;
}
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.step-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px 16px;
  counter-increment: step;
}
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  align-self: start;
  font-family: var(--font-pixel);
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
}
.step-list strong {
  font-family: var(--font-pixel);
  color: var(--ink);
  letter-spacing: 1px;
}
.step-list span {
  color: var(--ink-dim);
  font-size: 14px;
}
.term-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.term-cloud span {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink-dim);
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 10px;
}
.type-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.type-table a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px 14px;
  color: inherit;
}
.type-table strong {
  grid-row: span 2;
  font-family: var(--font-pixel);
  color: var(--gold);
  letter-spacing: 2px;
}
.type-table small { color: var(--ink-mute); }
.axis-detail-grid { grid-template-columns: repeat(4, 1fr); }
.relation-grid { grid-template-columns: repeat(3, 1fr); }
.compat-table { grid-template-columns: repeat(2, 1fr); }
.tier-list { grid-template-columns: 1fr; }
.type-layout {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 64px;
}
.type-result-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px;
  box-shadow: var(--shadow);
}
.type-result-card img {
  image-rendering: pixelated;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.axis-detail-grid strong { color: var(--gold); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .axes { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .seo-entry { grid-template-columns: repeat(2, 1fr); }
  .seo-grid--types { grid-template-columns: repeat(2, 1fr); }
  .axis-detail-grid,
  .relation-grid,
  .compat-table,
  .type-layout { grid-template-columns: 1fr; }
  .match-grid { grid-template-columns: 1fr; }
  .test__result-card { grid-template-columns: 1fr; }
  .test__result-bars { grid-template-columns: repeat(2, 1fr); }
  .modal-detail { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .topbar { padding: 10px 16px; align-items: flex-start; }
  .topnav { gap: 12px; }
  .topnav a { font-size: 12px; }
  .brand__sub { display: none; }
  .section { padding: 64px 18px; }
  .seo-page { padding: 56px 18px 0; }
  .seo-entry { grid-template-columns: 1fr; padding: 0 18px 24px; }
  .test { padding: 22px 16px; }
  .test__choices { grid-template-columns: 1fr; }
  .axis__pair { grid-template-columns: 1fr; }
  .axis__vs { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .type-table { grid-template-columns: 1fr; }
  .test__result-bars { grid-template-columns: 1fr 1fr; }
}
