/* ============================================================================
   WHEN THE FIRE FADES - HOW TO PLAY
   The rules, told in the firelit world. Sits inside the shared .stage but, unlike
   the single-screen pages, this one scrolls - so .rules-stage lets the scene grow
   with the content instead of clipping it. Reuses the shared nav, eyebrow and
   buttons; owns the rules column, the firelit section cards, the role/win tiles,
   the team-size table and the callouts.
   ========================================================================== */

.stage.rules-stage { overflow: visible; height: auto; }

.rules { position: relative; z-index: 4; width: 100%; max-width: 920px; margin: 0 auto; padding: var(--sp-5) var(--sp-5) var(--sp-8); }

.rules-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.rules-title {
  font-family: var(--font-display); font-weight: 700; margin: 0;
  font-size: var(--fs-wordmark); letter-spacing: 0.06em; text-transform: uppercase;
  background: linear-gradient(180deg, #fff6e2 0%, #ffd98a 55%, #ff9a3c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)) drop-shadow(0 0 calc(20px * var(--fire-intensity)) rgba(255,150,55,.4));
}

.rule-card {
  background: linear-gradient(180deg, rgba(40,36,26,0.70), rgba(20,20,15,0.84));
  border: 1px solid var(--c-bark-line); border-top-color: rgba(255,180,90,0.18);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-5);
}
.rule-card h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); color: var(--c-core); margin: 0 0 var(--sp-3); letter-spacing: .02em; }
.rule-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--c-gold); margin: var(--sp-4) 0 var(--sp-2); }
.rule-card p { color: var(--c-ash-dim); line-height: 1.6; margin: 0 0 var(--sp-3); }
.rule-card > p:last-child { margin-bottom: 0; }
.rule-card ul { color: var(--c-ash-dim); line-height: 1.6; margin: 0 0 var(--sp-3); padding-left: 1.2em; }
.rule-card li { margin-bottom: var(--sp-1); }
.rule-card strong { color: var(--c-ash); }

/* role / win tiles, good vs evil */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-top: var(--sp-4); }
.tile {
  background: rgba(255,255,255,0.02); border: 1px solid var(--c-bark-line);
  border-radius: var(--r-md); padding: var(--sp-4);
}
.tile.human { border-left: 3px solid var(--c-gold); }
.tile.evil  { border-left: 3px solid var(--c-flame); }
.tile h4 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin: 0 0 var(--sp-2); color: var(--c-ash); display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.tile p { font-size: var(--fs-sm); margin: 0; }
.faction-tag { font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border-radius: var(--r-pill); font-weight: 700; }
.faction-tag.human { background: rgba(255,150,55,.18); color: var(--c-gold); }
.faction-tag.evil  { background: rgba(239,74,35,.2); color: #ff9b80; }

/* team-size table */
.rule-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-3); font-size: var(--fs-sm); }
.rule-table th, .rule-table td { padding: var(--sp-2) var(--sp-3); text-align: center; border-bottom: 1px solid var(--c-bark-line); }
.rule-table th { color: var(--c-ash-faint); text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-xs); font-weight: 600; }
.rule-table td { color: var(--c-ash-dim); }
.rule-table td:first-child, .rule-table th:first-child { color: var(--c-ash); font-weight: 600; }

/* warning callout - the flame turned cautionary */
.rule-callout {
  display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); font-size: var(--fs-sm);
  background: rgba(178,47,23,0.14); border: 1px solid rgba(239,74,35,0.4); color: #ffb59c;
}
.rule-callout .ic { width: 18px; height: 18px; flex: none; color: var(--c-flame); }

.rules-cta { text-align: center; margin-top: var(--sp-6); }
.rules-cta .btn { width: auto; min-width: 220px; margin: 0 auto; }

@media (max-width: 640px) {
  .nav { padding: var(--sp-3) var(--sp-4); }
  .brand span.full { display: none; }
  .tile-grid { grid-template-columns: 1fr; }
  .rule-card { padding: var(--sp-4); }
  .rule-table { font-size: var(--fs-xs); }
}
