/* ════════════════════════════════════════════════════════════════════
   Classic D&D 5e stat block — shared styling.
   Used by the Bestiary (bestiary.html) and the Mission read-view
   (missions.html), both via the shared renderer in statblock-render.js.
   ════════════════════════════════════════════════════════════════════ */
.stat-block {
  font-family: 'Crimson Pro', 'Noto Serif', serif;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #000;
  background: #FDF1DC;
  background-image: linear-gradient(rgba(253,241,220,0.55), rgba(253,241,220,0.55)),
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  padding: 0.55rem 0.85rem 0.7rem;
  border: 1px solid #E0D6BE;
  border-top: 0.35rem solid #E69A28;
  border-bottom: 0.35rem solid #E69A28;
  box-shadow: 0 0 0.5rem rgba(0,0,0,0.18), 0 0.4rem 0.9rem rgba(0,0,0,0.12);
}
.stat-block__name {
  font-family: 'IM Fell English SC', serif;
  color: #7A200D;
  font-size: 1.45rem;
  line-height: 1.05;
  margin: 0;
}
.stat-block__type { font-style: italic; font-size: 0.92rem; margin: 0 0 0.35rem; }
.stat-block__prop { color: #7A200D; margin: 0.05rem 0; }
.stat-block__prop .lbl { font-weight: 700; }
.stat-block__meta { color: #7A200D; margin: 0.05rem 0; }
.stat-block__meta .lbl { font-weight: 700; }

/* tapered red rule */
.tapered-rule { display: block; width: 100%; height: 0.32rem; margin: 0.4rem 0; fill: #922610; }

/* ability score row */
.abilities { display: flex; text-align: center; color: #7A200D; margin: 0.1rem 0; }
.abilities > div { flex: 1; padding: 0.1rem 0; }
.abilities .ab-lbl { font-weight: 700; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.02em; }
.abilities .ab-val { font-size: 0.92rem; }

/* traits + actions */
.stat-block__trait { margin: 0.35rem 0; }
.stat-block__trait .nm { font-style: italic; font-weight: 700; }
.actions-header {
  font-family: 'IM Fell English SC', serif;
  color: #7A200D; font-size: 1.2rem;
  border-bottom: 1px solid #7A200D;
  margin: 0.6rem 0 0.35rem; padding-bottom: 0.05rem;
}
.legendary-intro { font-style: italic; margin: 0.3rem 0; }

/* flavor / lore prose, shown beneath the mechanics */
.stat-block__flavor {
  margin-top: 0.7rem; padding-top: 0.55rem;
  border-top: 1px dashed rgba(122,32,13,0.35);
  font-size: 0.92rem; opacity: 0.85;
}
.stat-block__flavor p { margin: 0 0 0.5rem; }
.stat-block__flavor p:last-child { margin-bottom: 0; }

@media print {
  .stat-block { box-shadow: none; break-inside: avoid; }
}
