.spelling-main .play-heading > p { max-width: 61ch; }
.spelling-board { padding-top: .75rem; }
.church-route { position: relative; margin: 1.5rem 0 2rem; }
.church-stops { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: .5rem; }
.church-stop { position: relative; min-width: 0; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: end; color: var(--chalk-soft); }
.church-stop svg { display: block; width: 43px; height: 56px; margin-bottom: .4rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.church-number { font: 500 1rem/1.2 "Atkinson Hyperlegible Next", sans-serif; display: block; min-height: 28px; }
.departure-name { padding-bottom: 1rem; font-size: 1rem; }
.church-stop.is-passed { color: var(--green); }
.church-stop.is-passed .church-number::after { content: " — passée"; font: 400 .85rem/1.2 "Patrick Hand", sans-serif; }
.church-stop.is-next svg { color: var(--chalk); stroke-width: 2; }
.spelling-canoe { position: absolute; display: block; width: 96px; height: 64px; left: 0; top: 0; transform: translateX(-50%); pointer-events: none; transition: left 700ms cubic-bezier(.16,1,.3,1), top 700ms cubic-bezier(.16,1,.3,1); }
.spelling-canoe img { width: 100%; height: 100%; object-fit: contain; }
.spelling-canoe.is-positioning { transition: none; }
.spelling-board .story-line { font-size: 1.35rem; min-height: 0; margin-bottom: 1.5rem; }
.repair-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.pact-sheet { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.1rem 0 .8rem; }
.pact-sheet h3, .word-reserve h3 { font-size: 1.25rem; color: var(--chalk-soft); }
.pact-sentence { font-size: clamp(1.65rem, 2.8vw, 2.1rem); line-height: 1.9; margin: .5rem 0; }
.word-slot { display: inline-flex; justify-content: center; align-items: center; vertical-align: baseline; min-height: 60px; min-width: 150px; max-width: 100%; border: 2px dashed var(--line); padding: .15rem .8rem; margin: .15rem .15rem .15rem 0; background: transparent; font: 500 1.6rem/1.3 "Atkinson Hyperlegible Next", sans-serif; }
.word-slot:disabled { opacity: 1; }
.word-slot.is-choosable, .word-slot.is-drop-target { border-color: var(--chalk); background: var(--raised); }
.word-slot.has-patch { border: 0; background: var(--blue); color: var(--object-ink); box-shadow: 1px 3px 5px rgb(0 0 0 / 35%), inset 0 1px 1px rgb(255 255 255 / 50%); }
.word-slot.is-incorrect { background: var(--orange); }
.word-slot.is-correct { background: var(--green); }
.word-slot.has-patch:hover { background: var(--blue); }
.word-slot.is-incorrect:hover { background: var(--orange); }
.word-slot.is-correct:hover { background: var(--green); }
.pact-note { font-size: 1.05rem; color: var(--chalk-soft); min-height: 1.5em; margin: .6rem 0 0; }
.word-reserve { padding-top: 1.1rem; }
.word-reserve > p { font-size: 1.05rem; color: var(--chalk-soft); max-width: 37ch; }
.word-choices { display: flex; gap: .7rem; flex-wrap: wrap; }
.word-chip { font: 500 1.6rem/1.3 "Atkinson Hyperlegible Next", sans-serif; min-height: 64px; min-width: 100px; max-width: 100%; background: var(--blue); border: 0; color: var(--object-ink); padding: .55rem .9rem; box-shadow: 1px 3px 5px rgb(0 0 0 / 35%), inset 0 1px 1px rgb(255 255 255 / 50%); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.word-chip:hover { background: var(--blue); }
.word-chip[aria-pressed="true"] { outline: 3px solid var(--chalk); outline-offset: 4px; }
.word-chip.is-on-pact { visibility: hidden; }
.word-chip.is-drag-source { opacity: .4; }
.word-ghost { position: fixed; z-index: 100; margin: 0; pointer-events: none; box-shadow: 2px 8px 12px rgb(0 0 0 / 45%), inset 0 1px 1px rgb(255 255 255 / 60%); }
.spelling-board .game-feedback { font-size: 1.25rem; min-height: 3em; margin-top: 1.6rem; }
.spelling-board .hint-text { font-size: 1.15rem; }
@media (max-width: 800px) {
  .repair-workspace { grid-template-columns: 1fr; gap: .5rem; }
  .word-reserve > p { max-width: 60ch; }
  .church-stops { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
  .church-stop.is-passed .church-number::after { content: ""; }
  .church-stop svg { width: 32px; height: 48px; }
  .spelling-canoe { width: 72px; height: 48px; }
}
@media (max-width: 580px) {
  .spelling-main .adventure-scene { height: 170px; }
  .spelling-main .scene-caption { font-size: .9rem; left: .25rem; right: .25rem; width: fit-content; max-width: calc(100% - .5rem); }
  .church-stops { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: .6rem; row-gap: .8rem; }
  .church-stop { height: 116px; }
  .church-stop svg { width: 38px; height: 48px; margin-bottom: .2rem; }
  .church-number { min-height: 22px; }
  .church-route { margin: 1rem 0 1.5rem; }
  .pact-sentence { font-size: 1.7rem; line-height: 1.8; }
  .word-slot { min-width: 135px; }
  .word-chip { min-width: 0; flex: 1 1 80px; font-size: 1.5rem; padding-inline: .5rem; }
  .word-ghost { flex: none; }
  .spelling-board .game-feedback { min-height: 4.5em; }
}
@media (prefers-reduced-motion: reduce) { .spelling-canoe { transition: none; } }

@media (max-width: 580px) {
  body.activity-page .church-route { margin: .5rem 0 1rem; padding-inline: 22px; }
  body.activity-page .church-stops { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
  body.activity-page .church-stop { height: 84px; }
  body.activity-page .church-stop svg { width: 24px; height: 32px; margin-bottom: .25rem; }
  body.activity-page .church-number { min-height: 22px; font-size: 1rem; }
  body.activity-page .departure-name { font-size: .75rem; padding-bottom: .7rem; }
  body.activity-page .spelling-canoe { width: 52px; height: 35px; }
}
