main {
  align-items: center;
  border-bottom: 1px solid #d9b46a;
  padding-bottom: 1.5rem;
}

.rules {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 45rem;
  background-color: #3a2719;
  border: 1px solid #d9b46a;
  padding: 1.5rem;
  line-height: 1.6;
}

.rules h2 {
  margin: 0.5rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 1.75rem;
  color: #d9b46a;
  border-bottom: 1px solid #5a3a24;
  padding-bottom: 0.4rem;
}

.rules ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.rules li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 2rem;
}

/* Chess piece bullets, one per piece in list order. \FE0E keeps them as text rather than emoji. */
.rules li::before {
  position: absolute;
  left: 0;
  top: -0.15rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #d9b46a;
}

.rules li:nth-child(1)::before { content: "\265A\FE0E"; } /* king */
.rules li:nth-child(2)::before { content: "\265B\FE0E"; } /* queen */
.rules li:nth-child(3)::before { content: "\265C\FE0E"; } /* rook */
.rules li:nth-child(4)::before { content: "\265D\FE0E"; } /* bishop */
.rules li:nth-child(5)::before { content: "\265E\FE0E"; } /* knight */
.rules li:nth-child(6)::before { content: "\265F\FE0E"; } /* pawn */

.rules strong {
  color: #d9b46a;
}
