/* ── Rules Page ── */
.rules-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Headings use Playfair Display — decorative labels, not game data */
.rules-page h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: #1e1610;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rules-page h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: #1e1610;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 2.5px solid #b87838;
  letter-spacing: 1px;
}

.rules-page h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #3a2a1a;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.rules-page h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: bold;
  font-size: 1rem;
  color: #1e1610;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

.rules-page section { margin-bottom: 1rem; }

/* Body text: Georgia — readable first */
.rules-page ul,
.rules-page ol {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.rules-page li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.6;
}

.rules-page li ul,
.rules-page li ol {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}

.rules-page p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Symbol rows ── */
.symbols-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.symbol-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  background: #e9e0c6;
  border: 2px solid #1e1610;
  box-shadow: 2px 2px 0 #1e1610;
}

.symbol-row img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}

.symbol-row p { margin: 0; font-size: 0.95rem; }

/* ── Card backs / suit row ── */
.cacti-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.cacti-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.cacti-item img {
  width: 60px;
  height: 84px;
  border: 2px solid #1e1610;
  box-shadow: 3px 3px 0 #1e1610;
  object-fit: cover;
}

.cacti-item span {
  font-size: 0.8rem;
  color: #1e1610;
  text-align: center;
  max-width: 120px;
}

/* ── Pyramid diagrams ── */
.pyramid-demos {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.25rem 0 1rem;
  flex-wrap: wrap;
}

.pyramid-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.pyramid-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.pyramid-row {
  display: flex;
  gap: 3px;
}

.pcard {
  width: 22px;
  height: 32px;
  border: 1.5px solid #1e1610;
  border-radius: 2px;
  background: #6b4c32;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.06) 3px,
    rgba(255,255,255,0.06) 4px
  );
  box-shadow: 1px 1px 0 rgba(0,0,0,0.35);
}

.pcard.face-up {
  background: #e9e0c6;
  background-image: none;
  box-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

.pyramid-demo-label {
  font-size: 0.8rem;
  font-weight: bold;
  color: #3a2a1a;
  text-align: center;
  line-height: 1.4;
}

/* ── Footer CTA ── */
.rules-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2.5px solid #b87838;
}

/* Active nav link */
nav a.active { color: #e9e0c6; text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .rules-page { padding: 1.5rem 1rem 2rem; }
  .rules-page h1 { font-size: 1.8rem; }
  .rules-page h2 { font-size: 1.3rem; }
  .rules-page h3 { font-size: 1.05rem; }
  .symbol-row img { width: 56px; height: 56px; }
  .cacti-item img { width: 50px; height: 70px; }
  .symbol-row p { font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .rules-page { padding: 1rem 0.75rem 1.5rem; }
  .symbol-row img { width: 44px; height: 44px; }
  .cacti-item img { width: 42px; height: 59px; }
  .cacti-item span { font-size: 0.7rem; }
}
