.enc-intro { color: var(--muted); max-width: 60ch; margin: 8px 0 24px; }

/* Inputs row - align labels at the top so "Players" and "Party level" line up,
   regardless of control height. */
.enc-inputs { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.enc-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
/* Inputs use .field (base.css); this is the encounter-specific delta. */
.enc-field input { font-size: 20px; width: 90px; height: 42px; font-variant-numeric: tabular-nums; }
.enc-label { font-size: 14px; color: var(--muted); font-weight: 600; }

/* Players stepper (mirrors the point-buy stepper) */
.enc-stepper { display: inline-flex; align-items: center; gap: 12px; }
.enc-stepper button {
    /* Match the .field input height (font 20px + 0.5rem padding + 1px border) so the
       stepper and the level input bottom-align too. */
    width: 42px; height: 42px; font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
    border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color .15s, color .15s;
}
.enc-stepper button:hover { border-color: var(--accent); color: var(--accent); }
.enc-stepper > span {
    min-width: 1.5ch; text-align: center; font-size: 20px; font-weight: 600;
    color: var(--text); font-variant-numeric: tabular-nums;
}

/* Result */
.enc-result { text-align: center; margin: 8px 0 24px; }
.enc-cr {
    font-family: "Fraunces", Georgia, serif; font-weight: 600;
    font-size: clamp(48px, 12vw, 80px); line-height: 1; color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.enc-sub { color: var(--muted); margin-top: 4px; }
.enc-caption { color: var(--faint); font-size: 14px; margin-top: 8px; min-height: 1.2em; }

/* Difficulty table */
.enc-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.enc-table th, .enc-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); }
.enc-table thead th {
    font-size: 13px; color: var(--faint); font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
}
.enc-table tbody th { font-weight: 600; color: var(--text); }
.enc-table td { font-variant-numeric: tabular-nums; color: var(--text); font-size: 18px; }

.enc-note { color: var(--faint); font-size: 13px; max-width: 60ch; margin-top: 8px; }
