.howto {
  margin-bottom: 14px;
  padding: 16px 18px;
}

.howto p {
  margin: 4px 0 0;
  color: var(--ink-dim);
  font-size: 14px;
}

.howto p + p {
  margin-top: 8px;
}

.howto strong {
  color: var(--ink);
}

.howto .warn {
  color: var(--orange);
  font-weight: 700;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 40px;
  counter-increment: step;
}

.steps li + li {
  margin-top: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

.steps h2,
.howto-title {
  margin: 0;
  color: var(--blue-900);
  font-size: 16px;
}

.howto-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.howto-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 3px;
  background: var(--blue-500);
}

.rule-table {
  width: 100%;
  margin: 6px 0 8px;
  border-collapse: collapse;
  font-size: 14px;
}

.rule-table th,
.rule-table td {
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.rule-table tr:last-child th,
.rule-table tr:last-child td {
  border-bottom: 0;
}

.rule-table th {
  width: 8.5em;
  color: var(--blue-700);
  font-weight: 700;
}

.rule-table td {
  color: var(--ink);
}

/* キャラクター紹介 */
.chara-list {
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
}

.chara-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.chara-list li:last-child {
  border-bottom: 0;
}

.chara-list .chara-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--blue-100);
}

.chara-list img {
  width: 48px;
  height: 48px;
}

@media (min-resolution: 2dppx) {
  .chara-list img {
    image-rendering: pixelated;
  }
}

.chara-list .chara-name {
  display: block;
  color: var(--blue-900);
  font-weight: 700;
}

.chara-list .chara-ability {
  display: block;
  color: var(--ink-dim);
  font-size: 13px;
}

.chara-list .chara-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

.chara-list .is-secret img {
  filter: brightness(0) opacity(0.25);
}

/* 画面のボタン（ゲームのヘッダーと同じ見た目） */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid var(--blue-300);
  border-radius: 7px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 700;
}

/* 画像の見本 */
.sample {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
}

.sample img {
  display: block;
  border-radius: 10px;
  background: var(--blue-100);
}

@media (min-resolution: 2dppx) {
  .sample img {
    image-rendering: pixelated;
  }
}

.sample figcaption {
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 700;
}

.sample.is-real img {
  outline: 2px solid var(--blue-500);
}

.sample.is-fake img {
  outline: 2px solid var(--orange);
}

.sample.is-fake figcaption {
  color: var(--orange);
}

.sample-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.sample-row p {
  margin: 0;
}

/* ジャマもの */
.jama-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.jama-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.jama-list li:last-child {
  border-bottom: 0;
}

.jama-images {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.jama-name {
  display: block;
  color: var(--blue-900);
  font-weight: 700;
}

.jama-text {
  display: block;
  color: var(--ink-dim);
  font-size: 14px;
}

.jama-text strong {
  color: var(--ink);
}

.howto-foot {
  margin: 18px 0 0;
  text-align: center;
}
