.landing-rules-page {
  padding-top: 5.25rem;
  padding-bottom: 3rem;
}

@media (min-width: 992px) {
  .landing-rules-page {
    padding-top: 6rem;
  }
}

.landing-rules-page__panel {
  padding: 2rem 1.15rem 2.25rem;
}

@media (min-width: 576px) {
  .landing-rules-page__panel {
    padding: 2.5rem 1.75rem 2.75rem;
  }
}

@media (min-width: 768px) {
  .landing-rules-page__panel {
    padding: 3rem 2.5rem 3.25rem;
  }
}

.rules-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.rules-title {
  margin: 0 0 0.75rem;
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rules-lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
}

.rules-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .rules-facts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rules-fact {
  margin: 0;
  padding: 0.9rem 0.85rem 0.85rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.rules-fact dt {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--heading);
}

.rules-fact dd {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.rules-section {
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.rules-section + .rules-section {
  margin-top: 1.35rem;
}

.rules-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.rules-section h2 span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.rules-section p,
.rules-section li {
  font-size: 0.95rem;
  line-height: 1.65;
}

.rules-section p:last-child,
.rules-section ul:last-child {
  margin-bottom: 0;
}

.rules-section ul {
  margin: 0;
  padding-left: 1.15rem;
}

.rules-section li + li {
  margin-top: 0.45rem;
}

.rules-section a {
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.rules-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.rules-close a {
  font-weight: 700;
}

html[data-theme="dark"] .rules-fact {
  background: var(--card-surface);
}

@media (prefers-reduced-motion: no-preference) {
  .motion .rules-fact,
  .motion .rules-section {
    animation: rules-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .motion .rules-facts li:nth-child(2) { animation-delay: 0.05s; }
  .motion .rules-facts li:nth-child(3) { animation-delay: 0.1s; }
  .motion .rules-facts li:nth-child(4) { animation-delay: 0.15s; }
  .motion .rules-section:nth-of-type(2) { animation-delay: 0.04s; }
  .motion .rules-section:nth-of-type(3) { animation-delay: 0.08s; }
  .motion .rules-section:nth-of-type(4) { animation-delay: 0.12s; }
}

@keyframes rules-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion .rules-fact,
  .motion .rules-section {
    animation: none;
  }
}
