/* ═══════════════════════════════════════
   ECHOVEIL — Rules Page Stylesheet
   Extends style.css + universe.css patterns
═══════════════════════════════════════ */

.rules-page { background: var(--void); }

/* ── Nav active ── */
.nav-active { color: var(--gold-light) !important; }

/* ══════════════════════════════════════
   RULES HERO
══════════════════════════════════════ */
.rules-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200,150,46,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(124,58,237,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(167,139,250,0.07) 0%, transparent 60%);
}
.rules-hero #starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}
.rules-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.rules-hero-title {
  font-family: var(--font-lore);
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin: 16px 0 24px;
  letter-spacing: -0.01em;
}
.rules-hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: var(--white-70);
  max-width: 580px;
  margin: 0 auto 36px;
}
.rules-toc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rules-toc a {
  font-size: 12px;
  font-weight: 600;
  color: var(--white-50);
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border: 1px solid var(--white-10);
  border-radius: 100px;
  background: var(--white-05);
  backdrop-filter: blur(8px);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.rules-toc a:hover {
  color: var(--gold-light);
  border-color: rgba(200,150,46,0.35);
  background: rgba(200,150,46,0.08);
}
.rules-toc span { color: var(--white-15, rgba(255,255,255,.15)); font-size: 10px; display: none; }

/* ══════════════════════════════════════
   SECTION BASE
══════════════════════════════════════ */
.rules-section {
  padding: 100px 24px;
  position: relative;
}
.rules-section--alt {
  background: linear-gradient(180deg, var(--void-2) 0%, var(--void) 100%);
}
.rules-section--alt::before,
.rules-section--alt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
.rules-section--alt::before { top: 0; background: linear-gradient(90deg, transparent, rgba(200,150,46,0.18), transparent); }
.rules-section--alt::after  { bottom: 0; background: linear-gradient(90deg, transparent, rgba(124,58,237,0.12), transparent); }

.rules-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.rules-section-header {
  margin-bottom: 52px;
}
.rules-chapter-num {
  font-family: var(--font-lore);
  font-size: 80px;
  font-weight: 700;
  color: var(--white-05);
  line-height: 1;
  margin-bottom: 4px;
  user-select: none;
}
.rules-section-title {
  font-family: var(--font-lore);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-top: 6px;
}
.rules-section-lead {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.75;
  color: var(--white-70);
  max-width: 720px;
  margin-top: 14px;
}

/* ══════════════════════════════════════
   CORE MECHANIC — dice + formula display
══════════════════════════════════════ */
.core-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 48px 0;
}
.formula-die {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.die-face {
  width: 80px; height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--void-3), var(--void-4));
  border: 1.5px solid rgba(200,150,46,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-lore);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  box-shadow: 0 0 24px rgba(200,150,46,0.1), inset 0 1px 0 rgba(255,255,255,0.07);
}
.die-face--modifier {
  border-color: rgba(167,139,250,0.35);
  color: var(--glow);
  box-shadow: 0 0 24px rgba(167,139,250,0.1), inset 0 1px 0 rgba(255,255,255,0.07);
}
.die-face--dc {
  border-color: rgba(255,255,255,0.2);
  color: var(--white-90);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}
.die-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-50);
}
.formula-op {
  font-family: var(--font-lore);
  font-size: 28px;
  color: var(--white-30, rgba(255,255,255,.3));
  margin-top: -18px;
}
.formula-op--vs {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-40, rgba(255,255,255,.4));
  border: 1px solid var(--white-10);
  border-radius: 100px;
  padding: 5px 14px;
  margin-top: 0;
}

.core-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.core-rule-card {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.core-rule-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,150,46,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.core-rule-icon {
  font-size: 26px;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: block;
}
.core-rule-card h3 {
  font-family: var(--font-lore);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.core-rule-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--white-70);
}
.core-rule-card p em { color: var(--glow); font-style: normal; font-weight: 500; }
.core-rule-card p strong { color: var(--white-90); }

/* ══════════════════════════════════════
   ABILITY SCORE WHEEL
══════════════════════════════════════ */
.ability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.ability-card {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.ability-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}
.ability-card:hover { transform: translateY(-3px); }
.ability-card:hover::before { opacity: 1; }

.ab-str::before { background: linear-gradient(90deg, var(--void-red), transparent); }
.ab-dex::before { background: linear-gradient(90deg, var(--gold), transparent); }
.ab-con::before { background: linear-gradient(90deg, var(--glow), transparent); }
.ab-int::before { background: linear-gradient(90deg, var(--purple) 0%, var(--glow), transparent); }
.ab-wis::before { background: linear-gradient(90deg, var(--gold-light), transparent); }
.ab-cha::before { background: linear-gradient(90deg, #ec4899, transparent); }

.ability-abbr {
  font-family: var(--font-lore);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.ab-str .ability-abbr { color: #f87171; }
.ab-dex .ability-abbr { color: var(--gold-light); }
.ab-con .ability-abbr { color: var(--glow); }
.ab-int .ability-abbr { color: #818cf8; }
.ab-wis .ability-abbr { color: var(--gold-light); }
.ab-cha .ability-abbr { color: #f472b6; }

.ability-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-bottom: 14px;
}
.ability-card h3 {
  font-family: var(--font-lore);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.ability-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--white-60, rgba(255,255,255,.6));
}
.ability-uses {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--white-05);
  font-size: 11px;
  color: var(--white-40, rgba(255,255,255,.4));
  font-style: italic;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   CHARACTER CREATION STEPS
══════════════════════════════════════ */
.creation-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.creation-steps::before {
  content: '';
  position: absolute;
  left: 36px;
  top: 56px;
  bottom: 56px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-glow), rgba(124,58,237,0.2), transparent);
}
.creation-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--white-05);
}
.creation-step:last-child { border-bottom: none; }
.step-number {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--void-3), var(--void-4));
  border: 1.5px solid rgba(200,150,46,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-lore);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-light);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(200,150,46,0.1);
}
.step-body h3 {
  font-family: var(--font-lore);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--white-70);
  margin-bottom: 10px;
}
.step-body p strong { color: var(--white-90); }
.step-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.step-option-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,150,46,0.08);
  border: 1px solid rgba(200,150,46,0.2);
  border-radius: 100px;
  padding: 4px 12px;
}
.step-option-tag--purple {
  color: var(--glow);
  background: rgba(167,139,250,0.08);
  border-color: rgba(167,139,250,0.2);
}

/* ══════════════════════════════════════
   SPECIES RULES CARDS
══════════════════════════════════════ */
.species-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.species-rule-card {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.species-rule-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200,150,46,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.species-rule-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.species-rule-card:hover::after { opacity: 1; }

.species-rule-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--white-05);
}
.species-rule-name {
  font-family: var(--font-lore);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.species-rule-epithet {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}
.species-rule-asi {
  font-family: var(--font-lore);
  font-size: 13px;
  font-weight: 600;
  color: var(--glow);
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.species-rule-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--white-70);
  margin-bottom: 18px;
}
.species-traits-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.species-traits-list li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--white-60, rgba(255,255,255,.6));
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.species-traits-list li::before {
  content: '◈';
  color: var(--gold);
  font-size: 10px;
  margin-top: 3px;
  flex-shrink: 0;
}
.species-traits-list li strong {
  color: var(--white-90);
}

/* ══════════════════════════════════════
   VEIL CASTING
══════════════════════════════════════ */
.veil-casting-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.veil-point-tracker {
  background: var(--void-3);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 0 40px rgba(124,58,237,0.1);
}
.vp-title {
  font-family: var(--font-lore);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 20px;
}
.vp-orbs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.vp-orb {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(167,139,250,0.6), rgba(124,58,237,0.4));
  border: 1px solid rgba(167,139,250,0.5);
  box-shadow: 0 0 12px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.2s ease;
}
.vp-orb.spent {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
.vp-restore {
  font-size: 12px;
  color: var(--white-50);
  font-style: italic;
  line-height: 1.5;
}
.vp-restore strong { color: var(--glow); font-style: normal; }

.veil-cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.veil-cost-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-50);
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1px solid var(--white-10);
}
.veil-cost-table tbody tr {
  border-bottom: 1px solid var(--white-05);
  transition: background 0.15s ease;
}
.veil-cost-table tbody tr:hover { background: rgba(167,139,250,0.04); }
.veil-cost-table tbody td {
  padding: 12px 14px;
  color: var(--white-70);
  line-height: 1.4;
}
.veil-cost-table tbody td:first-child {
  font-family: var(--font-lore);
  color: var(--white);
}
.veil-cost-table .vp-cost {
  font-family: var(--font-lore);
  font-size: 15px;
  font-weight: 600;
  color: var(--glow);
}
.veil-paths {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.veil-path-card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid var(--white-10);
  transition: all var(--transition);
}
.veil-path-card:hover { transform: translateX(4px); }
.veil-path-card--tide {
  background: linear-gradient(135deg, rgba(200,150,46,0.06), rgba(167,139,250,0.04));
  border-color: rgba(200,150,46,0.2);
}
.veil-path-card--void {
  background: linear-gradient(135deg, rgba(220,38,38,0.06), rgba(0,0,0,0.2));
  border-color: rgba(220,38,38,0.2);
}
.veil-path-card--void:hover { box-shadow: 0 8px 30px rgba(220,38,38,0.08); }
.veil-path-card--tide:hover { box-shadow: 0 8px 30px rgba(200,150,46,0.08); }
.veil-path-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.veil-path-sigil { font-size: 22px; }
.veil-path-card--tide .veil-path-sigil { color: var(--gold-light); }
.veil-path-card--void .veil-path-sigil { color: #f87171; }
.veil-path-card h3 {
  font-family: var(--font-lore);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
}
.veil-path-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--white-60, rgba(255,255,255,.6));
}
.veil-path-card p em { color: var(--glow); font-style: normal; font-weight: 500; }

/* ══════════════════════════════════════
   COMBAT
══════════════════════════════════════ */
.combat-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 40px 0;
}
.combat-step {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}
.combat-step:hover { transform: translateY(-3px); border-color: rgba(200,150,46,0.3); }
.combat-step::after {
  content: '›';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white-20);
  font-size: 20px;
  z-index: 2;
}
.combat-step:last-child::after { display: none; }
.combat-step-num {
  font-family: var(--font-lore);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.combat-step h4 {
  font-family: var(--font-lore);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.combat-step p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--white-50);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.action-card {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  transition: all var(--transition);
}
.action-card:hover { border-color: rgba(200,150,46,0.25); background: rgba(255,255,255,0.03); }
.action-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.action-tag--main    { color: var(--gold); background: rgba(200,150,46,0.1); border: 1px solid rgba(200,150,46,0.2); }
.action-tag--bonus   { color: var(--glow); background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); }
.action-tag--reaction{ color: #f87171; background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2); }
.action-card h4 {
  font-family: var(--font-lore);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.action-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--white-60, rgba(255,255,255,.6));
}

/* ══════════════════════════════════════
   SKILLS TABLE
══════════════════════════════════════ */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.skills-table-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-10);
}
.skills-table {
  width: 100%;
  border-collapse: collapse;
}
.skills-table thead {
  background: rgba(200,150,46,0.07);
}
.skills-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 18px;
  text-align: left;
}
.skills-table tbody tr {
  border-bottom: 1px solid var(--white-05);
  transition: background 0.15s ease;
}
.skills-table tbody tr:last-child { border-bottom: none; }
.skills-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.skills-table td {
  padding: 11px 18px;
  font-size: 14px;
  color: var(--white-70);
}
.skills-table td:first-child { color: var(--white-90); font-weight: 500; }
.skills-table .ability-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--glow);
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 4px;
  padding: 2px 7px;
}

.skill-checks-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.skill-check-rule {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.skill-check-rule h4 {
  font-family: var(--font-lore);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.skill-check-rule p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--white-70);
}
.skill-check-rule p em { color: var(--glow); font-style: normal; font-weight: 500; }
.skill-check-rule p strong { color: var(--white-90); }

/* ══════════════════════════════════════
   CONDITIONS
══════════════════════════════════════ */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.condition-card {
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.condition-card--red    { border-left-color: var(--void-red); }
.condition-card--purple { border-left-color: var(--purple); }
.condition-card--gold   { border-left-color: var(--gold); }
.condition-card--glow   { border-left-color: var(--glow); }
.condition-card:hover { transform: translateX(3px); background: rgba(255,255,255,0.025); }

.condition-name {
  font-family: var(--font-lore);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.condition-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--white-60, rgba(255,255,255,.6));
}
.condition-card p strong { color: var(--white-90); }

/* ══════════════════════════════════════
   AI GAME MASTER
══════════════════════════════════════ */
.ai-gm-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.ai-gm-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ai-gm-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--void-3);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.ai-gm-feature:hover {
  border-color: rgba(167,139,250,0.25);
  box-shadow: 0 8px 30px rgba(124,58,237,0.07);
}
.ai-gm-feature-icon {
  font-size: 24px;
  color: var(--glow);
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-gm-feature-body h4 {
  font-family: var(--font-lore);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.ai-gm-feature-body p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--white-60, rgba(255,255,255,.6));
}
.ai-gm-feature-body p em { color: var(--glow); font-style: normal; font-weight: 500; }

.ai-gm-terminal {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(124,58,237,0.1);
  position: sticky;
  top: 96px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(124,58,237,0.12);
  border-bottom: 1px solid rgba(167,139,250,0.15);
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-50);
  margin-left: 4px;
}
.terminal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.terminal-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.terminal-line .prefix {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.prefix-player { color: var(--gold); }
.prefix-gm     { color: var(--glow); }
.prefix-dice   { color: #4ade80; }
.terminal-line p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--white-80, rgba(255,255,255,.8));
  font-style: italic;
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,0.08);
}
.terminal-divider {
  height: 1px;
  background: rgba(255,255,255,0.05);
}

/* ══════════════════════════════════════
   PROFICIENCY TABLE
══════════════════════════════════════ */
.proficiency-table-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-10);
  margin-top: 32px;
}
.proficiency-table {
  width: 100%;
  border-collapse: collapse;
}
.proficiency-table thead {
  background: rgba(167,139,250,0.07);
}
.proficiency-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--glow);
  padding: 12px 18px;
  text-align: left;
}
.proficiency-table tbody tr { border-bottom: 1px solid var(--white-05); }
.proficiency-table tbody tr:last-child { border-bottom: none; }
.proficiency-table tbody tr:hover { background: rgba(167,139,250,0.03); }
.proficiency-table td {
  padding: 10px 18px;
  font-size: 14px;
  color: var(--white-70);
}
.proficiency-table td:first-child { color: var(--white); font-weight: 500; }
.proficiency-table .bonus {
  font-family: var(--font-lore);
  font-size: 15px;
  font-weight: 700;
  color: var(--glow);
}

/* ══════════════════════════════════════
   CALLOUT (reuse from universe pattern)
══════════════════════════════════════ */
.rules-callout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 40px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(200,150,46,0.07), rgba(124,58,237,0.04));
  border: 1px solid rgba(200,150,46,0.2);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--gold);
}
.rules-callout--glow {
  background: linear-gradient(135deg, rgba(167,139,250,0.07), rgba(124,58,237,0.04));
  border-color: rgba(167,139,250,0.2);
  border-left-color: var(--glow);
}
.rules-callout-icon {
  font-size: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.rules-callout--glow .rules-callout-icon { color: var(--glow); }
.rules-callout-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--white-70);
}
.rules-callout-text strong { color: var(--white-90); }
.rules-callout-text em { color: var(--gold-light); font-style: normal; font-weight: 500; }

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.rules-cta {
  padding: 100px 24px 120px;
  text-align: center;
  position: relative;
}
.rules-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.rules-cta .section-title  { margin-bottom: 20px; }
.rules-cta .section-lead   { margin: 0 auto 36px; }
.rules-cta .download-glow {
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(200,150,46,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .ability-grid           { grid-template-columns: repeat(2, 1fr); }
  .veil-casting-layout    { grid-template-columns: 1fr; }
  .ai-gm-layout           { grid-template-columns: 1fr; }
  .ai-gm-terminal         { position: static; }
  .skills-layout          { grid-template-columns: 1fr; }
  .combat-step::after     { display: none; }
  .creation-step          { grid-template-columns: 56px 1fr; gap: 20px; }
  .creation-steps::before { left: 27px; }
  .step-number            { width: 54px; height: 54px; font-size: 18px; }
}
@media (max-width: 600px) {
  .rules-section          { padding: 64px 20px; }
  .rules-hero             { padding: 120px 20px 60px; min-height: auto; }
  .rules-chapter-num      { font-size: 52px; }
  .ability-grid           { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .species-rules-grid     { grid-template-columns: 1fr; }
  .conditions-grid        { grid-template-columns: 1fr; }
  .actions-grid           { grid-template-columns: 1fr; }
  .combat-flow            { grid-template-columns: repeat(2, 1fr); }
  .core-formula           { gap: 8px; }
  .die-face               { width: 60px; height: 60px; font-size: 15px; }
  .formula-op             { font-size: 20px; }
}
