/* Woordkoppelaar: three words, each with the same row of boxes in front of or behind it. */
.ow { max-width: 640px; margin: 0 auto; }
.ow-loading { font-size: 18px; color: #4b5563; text-align: center; padding: 30px 0; }
.ow-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 12px; }
.ow-count { margin: 0; font-weight: 700; font-size: 17px; color: #2f5d45; }
.ow-dots { display: flex; gap: 6px; }
.ow-dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #cfe2d6; }
.ow-dot.is-now { border-color: #2f5d45; }
.ow-dot.is-found { background: #2f5d45; border-color: #2f5d45; }
.ow-dot.is-shown { background: #e7e2d6; border-color: #c9c1b0; }
.ow-ask { margin: 0 0 14px; font: 400 22px/1.35 Georgia, 'Times New Roman', serif; color: #1a1a1a; text-align: center; }
.ow-clues { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; container-type: inline-size; }
/* --box: as large as fits the longest row (--units boxes wide), 28 to 36px; a row
   that does not fit even at 28px puts its word on a line of its own */
.ow-clue { --box: max(28px, min(36px, calc((100cqi - 44px) / var(--units)))); display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 4px 6px; max-width: 100%; padding: 6px 10px; border-radius: 10px; background: #f3f6f3; }
.ow-part { font: 700 calc(var(--box) * .74)/1 Inter, system-ui, sans-serif; letter-spacing: .02em; color: #1f2937; padding: 0 2px; }
.ow-boxes { display: flex; gap: 2px; }
.ow-box { display: grid; place-items: center; width: var(--box); height: calc(var(--box) * 1.25); border-radius: 6px; background: #fff; border: 2px solid #2f5d45;
  font: 700 calc(var(--box) * .7)/1 Inter, system-ui, sans-serif; color: #2f5d45; }
.ow-box.is-cursor { box-shadow: inset 0 -4px 0 #f2b705; }
.ow-boxes.is-found .ow-box { background: #2f5d45; color: #fff; }
.ow-boxes.is-shown .ow-box { background: #f1efea; border-color: #c9c1b0; color: #6b6255; }
.ow-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 14px; }
.ow-result { margin: 0 0 4px; font-size: 20px; text-align: center; }
.ow-compounds { margin: 0 0 14px; font-size: 18px; color: #4b5563; text-align: center; }
@media (max-width: 760px) {
  .ow-ask { font-size: 20px; }
}

/* The round's words at the end. */
.ow-summary__title { margin: 8px 0 8px; font: 700 20px/1.3 Georgia, 'Times New Roman', serif; color: #1a1a1a; }
.ow-summary { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.ow-summary__item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 8px 10px; border-radius: 10px; background: #f3f6f3; font-size: 17px; line-height: 1.4; }
.ow-summary__item.is-shown { background: #f4f1ea; }
.ow-summary__mark { font-weight: 800; color: #2f5d45; text-align: center; }
.ow-summary__words { color: #4b5563; overflow-wrap: anywhere; }

/* Larger text: the boxes may grow further, the question and the results too. */
.sp--large .ow-clue { --box: max(30px, min(44px, calc((100cqi - 44px) / var(--units)))); }
.sp--large .ow-ask { font-size: 25px; }
.sp--large .ow-result { font-size: 23px; }
.sp--large .ow-compounds, .sp--large .ow-summary__item { font-size: 20px; }

/* More contrast. */
.sp--contrast .ow-clue { background: #fff; box-shadow: inset 0 0 0 1.5px #1f2937; }
.sp--contrast .ow-part, .sp--contrast .ow-box { color: #000; }
.sp--contrast .ow-box { border-color: #000; }
.sp--contrast .ow-boxes.is-found .ow-box { background: #14532d; color: #fff; }
.sp--contrast .ow-compounds, .sp--contrast .ow-summary__words, .sp--contrast .ow-count { color: #111; }
.sp--contrast .ow-dot { border-color: #1f2937; }
