.rules-page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.rules-intro {
  margin-bottom: 28px;
}

.rules-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.rules-toc__link {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.rules-toc__link:hover {
  border-color: rgba(184, 255, 46, 0.35);
  background: rgba(184, 255, 46, 0.08);
  color: var(--green);
}

.rules-section {
  scroll-margin-top: 88px;
  margin-bottom: 36px;
}

.rules-section__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.rules-section__desc {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rules-faq {
  display: grid;
  gap: 10px;
}

.rules-faq__item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.rules-faq__item[open] {
  border-color: rgba(184, 255, 46, 0.25);
}

.rules-faq__question {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rules-faq__question::-webkit-details-marker {
  display: none;
}

.rules-faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s, border-color 0.15s;
}

.rules-faq__item[open] .rules-faq__question::after {
  content: "−";
  border-color: rgba(184, 255, 46, 0.35);
  color: var(--green);
}

.rules-faq__answer {
  padding: 0 16px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.rules-faq__answer p {
  margin: 0 0 10px;
}

.rules-faq__answer p:last-child {
  margin-bottom: 0;
}

.rules-faq__answer ul {
  margin: 0 0 10px;
  padding-left: 1.2rem;
}

.rules-faq__answer li {
  margin-bottom: 4px;
}

.rules-faq__answer a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rules-faq__answer strong {
  color: var(--text);
  font-weight: 600;
}

.rules-cta {
  margin-top: 40px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(184, 255, 46, 0.08), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.rules-cta__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.rules-cta__text {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rules-cta__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
