.approx-expression-wrap {
  margin: 1.25rem 0 1.5rem;
  text-align: center;
}

.approx-expression {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.approx-expression .approx-star {
  color: var(--color-accent, #0b6e99);
  font-weight: 700;
}

.approx-expression .approx-op {
  margin: 0 0.35em;
  opacity: 0.85;
}

.mul-power {
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 0.05em;
}

.mul-prompt {
  margin-top: 0.75rem;
  text-align: center;
}

.trainer-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.approx-expression .approx-candidate {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.9;
}

.approx-expression--word {
  text-align: left;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: normal;
  font-variant-numeric: normal;
}

.approx-story {
  margin: 0;
  line-height: 1.5;
  max-width: 40rem;
}

.approx-answer {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  max-width: 36rem;
}

.approx-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.approx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.approx-hint {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(180, 130, 20, 0.55);
  background: rgba(180, 130, 20, 0.08);
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
  white-space: pre-line;
}

.approx-actions .btn[hidden],
.approx-hint[hidden],
.approx-input-row[hidden],
.approx-choices[hidden],
.approx-explanation[hidden],
.completion-block[hidden] {
  display: none !important;
}

.approx-answer-label {
  font-weight: 600;
}

.approx-answer-input {
  width: 6rem;
  padding: 0.45rem 0.6rem;
  font-size: 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.approx-choices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.approx-choice {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
}

.approx-choice:hover {
  border-color: rgba(11, 110, 153, 0.45);
}

.approx-choice input {
  margin-top: 0.2rem;
}

.approx-choice-text {
  line-height: 1.35;
}

.approx-explanation {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid rgba(11, 110, 153, 0.55);
  background: rgba(11, 110, 153, 0.06);
  border-radius: 0 8px 8px 0;
  line-height: 1.45;
}

.approx-explanation-lead {
  margin: 0 0 0.65rem;
}

.approx-choice-notes {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.45;
}

.approx-choice-notes li {
  margin: 0.35rem 0;
}

.approx-choice-notes .is-possible strong {
  color: #1a7f37;
}

.approx-choice-notes .is-impossible strong {
  color: #b42318;
}

.feedback.is-ok {
  color: #1a7f37;
  font-weight: 600;
}

.feedback.is-bad {
  color: #b42318;
  font-weight: 600;
}

.field-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9em;
  opacity: 0.8;
}

.approx-word-mask {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

.ortho-step-prompt {
  font-weight: 500;
  margin-top: 0.5rem !important;
  text-align: center;
}

.ortho-gap {
  display: inline-block;
  min-width: 0.85em;
  text-align: center;
  margin: 0 0.02em;
}

.ortho-gap--empty {
  color: var(--color-accent, #0b6e99);
  font-weight: 700;
}

.ortho-gap--filled {
  color: inherit;
  font-weight: 700;
  padding: 0 0.12em;
  border-bottom: 3px solid var(--color-accent, #0b6e99);
  background: rgba(11, 110, 153, 0.12);
  border-radius: 4px 4px 0 0;
}

.ortho-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
}

.ortho-choices--letters {
  justify-content: center;
  align-items: center;
}

.ortho-choices--reasons {
  flex-direction: column;
  align-items: stretch;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.ortho-choice-btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.ortho-choice-btn--letter {
  min-width: 2.6rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.7rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

.ortho-choice-btn--reason {
  padding: 0.7rem 0.9rem;
  line-height: 1.35;
}

.ortho-choice-btn:hover {
  border-color: rgba(11, 110, 153, 0.45);
}

.ortho-choice-btn.is-selected {
  border-color: var(--color-accent, #0b6e99);
  background: rgba(11, 110, 153, 0.1);
  box-shadow: 0 0 0 2px rgba(11, 110, 153, 0.2);
}

/* Answer block for orthography: center letter row under the word */
#ortho-answer-box {
  align-items: center;
  max-width: none;
}

#ortho-answer-box .approx-answer-label,
#ortho-choices-label {
  text-align: center;
  width: 100%;
}

#ortho-answer-box .approx-actions {
  justify-content: center;
}
