/* ===================== RULES PAGE =====================
   Rules header and rule list. Shared styles: base.css */

:root {
  --rule-accent: #6dd45e;
}

/* ===================== RULES HEADER ===================== */
.rules-header {
  position: relative; padding: 140px 24px 60px;
  text-align: center; overflow: hidden;
}
.rules-header__bg { position: absolute; inset: 0; z-index: 0; }
.rules-header__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: blur(3px) saturate(0.6); }
.rules-header__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.5) 0%, var(--bg-deep) 100%);
}
.rules-header__content { position: relative; z-index: 2; }
.rules-header__label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 16px;
}
.rules-header__label::before { content: ''; width: 20px; height: 1px; background: var(--accent-dim); }
.rules-header__title {
  font-family: var(--font-display); font-size: 2.8rem; font-weight: 700;
  letter-spacing: 1px; color: var(--text-primary); margin-bottom: 16px;
}
.rules-header__subtitle {
  font-size: 1.05rem; color: var(--text-secondary); max-width: 600px;
  margin: 0 auto; line-height: 1.7;
}

/* ===================== RULES CONTENT ===================== */
.rules { max-width: 820px; margin: 0 auto; padding: 40px 24px 100px; }

.rule-section {
  margin-bottom: 48px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.rule-section.visible { opacity: 1; transform: translateY(0); }

.rule-section__heading {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.5px;
  margin-bottom: 24px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 10px;
}
.rule-section__heading .rule-ref {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--rule-accent); font-weight: 500; flex-shrink: 0;
}

.rule-sub { margin-bottom: 20px; }
.rule-sub__heading {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.5px;
  margin-bottom: 12px; margin-top: 28px;
  display: flex; align-items: baseline; gap: 8px;
}
.rule-sub__heading .rule-ref {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--rule-accent); opacity: 0.8; font-weight: 500; flex-shrink: 0;
}

.rule-item {
  display: flex; gap: 12px;
  padding: 12px 16px; margin-bottom: 6px;
  border-radius: 8px; background: transparent;
  transition: background 0.3s ease; align-items: flex-start;
}
.rule-item:hover { background: rgba(255,255,255,0.02); }

.rule-item__ref {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--rule-accent); font-weight: 500;
  white-space: nowrap; padding-top: 3px;
  opacity: 0.75; flex-shrink: 0; min-width: 52px;
}
.rule-item__text {
  font-size: 0.94rem; color: var(--text-secondary); line-height: 1.75;
}
.rule-item__text strong { color: var(--text-primary); font-weight: 600; }
.rule-item__text em { color: var(--text-muted); font-style: italic; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 700px) {
  .rules-header { padding: 120px 20px 40px; }
  .rules-header__title { font-size: 2rem; }
  .rules { padding: 30px 16px 60px; }
  .rule-section__heading { font-size: 1.3rem; }
  .rule-item { padding: 10px 10px; gap: 8px; }
  .rule-item__ref { min-width: 44px; font-size: 0.65rem; }
}
