/* ==========================================================================
   Before or After? (/before-or-after/): the pieces only this game has.
   The setup form and the stage come from games.css.
   ========================================================================== */

.bo-more { margin: var(--s-6) 0 0; }

/* ---------- Write: two events, A and B (on Ink) ---------- */
.bo-ask { outline: none; }
.bo-ask:focus, .bo-ask:focus-visible { outline: none; } /* moved to by script, not a control */
.bo-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: var(--s-5); margin-bottom: var(--s-6); }
.bo-card { display: flex; flex-direction: column; gap: var(--s-4); border: 1px solid var(--line-on-dark); border-top: 6px solid var(--gold); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.5rem); }
.bo-letter { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 7vw, 7rem); line-height: .85; color: var(--gold); }
.bo-title { margin: 0; max-width: none; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.8vw, 3.75rem); line-height: 1.08; letter-spacing: -.015em; overflow-wrap: break-word; }
.bo-or { align-self: center; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.5rem); letter-spacing: .24em; text-transform: uppercase; color: var(--muted-on-dark); }
.bo-stage .ww-say b { color: var(--scroll); }
@media (max-width: 767px) {
  .bo-pair { grid-template-columns: 1fr; gap: var(--s-3); }
  .bo-card { flex-direction: row; align-items: center; }
  .bo-or { justify-self: center; }
}

/* ---------- Reveal: on Scroll paper ---------- */
.bo-answer { display: flex; align-items: center; gap: var(--s-4); font-size: clamp(2rem, 4.6vw, 4.5rem); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; margin-bottom: var(--s-2); outline: none; }
.bo-answer:focus, .bo-answer:focus-visible { outline: none; }
.bo-answer .bo-letter--sm { font-size: .55em; }
.bo-sub { margin: 0 0 var(--s-5); padding-left: calc(.55 * clamp(2rem, 4.6vw, 4.5rem) * 1.75 + var(--s-4)); font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.4rem); letter-spacing: .03em; color: var(--stone); }
.bo-letter--sm { flex: none; display: grid; place-items: center; width: 1.75em; height: 1.75em; border-radius: 50%; font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1; background: var(--ink); color: var(--scroll); }
.bo-teach { margin: 0 0 var(--s-5); max-width: 60ch !important; font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.4; padding-left: calc(.55 * clamp(2rem, 4.6vw, 4.5rem) * 1.75 + var(--s-4)); }
/* The later event: smaller, struck through, with an outlined letter */
.bo-later { display: flex; align-items: flex-start; gap: var(--s-4); margin: 0 0 var(--s-6); max-width: none; }
.bo-later > div { min-width: 0; }
.bo-later p { margin: 0; max-width: 60ch; }
.bo-later .bo-letter--sm { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 2px var(--stone); }
.bo-later s { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.85rem); line-height: 1.15; color: var(--stone); text-decoration-thickness: 2px; }
.bo-later-meta { margin-top: .2em !important; font-family: var(--font-display); font-weight: 600; font-size: clamp(.85rem, 1.2vw, 1.05rem); letter-spacing: .03em; color: var(--stone); }
.bo-later-note { margin-top: .35em !important; font-size: clamp(.95rem, 1.4vw, 1.15rem); line-height: 1.4; color: var(--stone); }
.bo-teach { margin-bottom: 0; }
.bo-about-first { margin: var(--s-3) 0 var(--s-5); padding-left: calc(.55 * clamp(2rem, 4.6vw, 4.5rem) * 1.75 + var(--s-4)); }
.bo-about-first:empty { display: block; margin-top: 0; }
@media (max-width: 767px) { .bo-sub, .bo-teach, .bo-about-first { padding-left: 0; } }

/* The ten eras of the story, with A and B pinned where they happen */
.bo-eras { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; max-width: none; }
.bo-eras li.bo-spacer { visibility: hidden; } /* blank column between Old Testament and church history */
.bo-eras li { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.bo-eras li:first-child .bo-pins { justify-content: flex-start; }
.bo-eras li:last-child .bo-pins { justify-content: flex-end; }
/* Both packs (16 eras): only the two marked eras are named, so labels never collide */
.bo-eras.is-wide li:not(.is-on) .bo-era { visibility: hidden; }
.bo-eras.is-wide .bo-era { justify-self: center; white-space: nowrap; }
.bo-eras.is-wide li:first-child .bo-era { justify-self: start; }
.bo-eras.is-wide li:last-child .bo-era { justify-self: end; }
.bo-eras li { display: grid; grid-template-rows: auto 10px auto; align-content: start; gap: var(--s-2); max-width: none; }
.bo-pins { display: flex; justify-content: center; gap: 4px; min-height: clamp(1.9rem, 3vw, 2.6rem); align-items: end; }
.bo-pin { display: grid; place-items: center; width: clamp(1.9rem, 3vw, 2.6rem); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: var(--scroll);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(.95rem, 1.5vw, 1.3rem); line-height: 1; }
.bo-seg { background: var(--line); border-radius: 2px; }
.bo-eras li.is-on .bo-seg { background: var(--ink); }
.bo-era { font-family: var(--font-display); font-weight: 600; font-size: clamp(.7rem, 1vw, .95rem); line-height: 1.2; text-align: center; color: var(--stone); overflow-wrap: break-word; }
.bo-eras li.is-on .bo-era { color: var(--ink); font-weight: 800; }
@media (max-width: 767px) {
  .bo-pins { min-height: 1.5rem; gap: 2px; }
  .bo-pin { width: 1.5rem; font-size: .8rem; }
  .bo-era { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* era names are in the list above */
}

.bo-note b { font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; margin-right: .3em; }
.bo-note[hidden] { display: none; }
.bo-note { margin: 0; max-width: 62ch !important; font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.45; border-left: 4px solid var(--gold); padding-left: var(--s-4); }
