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

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

.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(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 26px;
  text-align: center;
}

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

.stamp-demo {
  display: flex;
  gap: 4px;
  margin: 10px 0 8px;
}

/* ゲーム画面と同じく、枠の上に取得済みのスタンプを重ねる */
.stamp-demo span {
  position: relative;
  width: 26px;
  height: 26px;
  background: url("../assets/images/ui/stamp-empty.png") center / contain no-repeat;
}

.stamp-demo span.is-on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/ui/stamp-filled.png") center / contain no-repeat;
}

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

.rule-table th,
.rule-table td {
  padding: 7px 4px;
  border-bottom: 1px solid rgba(227, 180, 92, 0.2);
  text-align: left;
}

.rule-table th {
  width: 9em;
  color: var(--gold);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rule-table-plain th {
  width: 7.5em;
}

.rule-table:not(.rule-table-plain) tr:last-child td {
  color: #ffd97a;
  font-weight: 700;
}
